/* ==========================================================================
   Responsive Styles
   Optimized for Mobile Smartphones, Tablets & High-DPI screens in Uzbekistan
   SONIKO Authorized Service (soniko.uz)
   ========================================================================== */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .delonghi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .services-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  .workflow-timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .contacts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 880px) {
  html {
    font-size: 106.25%; /* 17px base scale for clear readability on mobile/tablets */
  }

  :root {
    --header-height: 64px;
  }

  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  /* Hide desktop theme toggle button from the tight mobile header bar */
  .header-actions #themeToggleBtn {
    display: none;
  }

  .lang-switcher {
    padding: 2px;
    gap: 1px;
    flex-shrink: 0;
  }

  .lang-btn {
    padding: 5px 8px;
    font-size: 0.78rem;
  }

  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(10, 13, 20, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    padding: 20px 24px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
  }

  [data-theme="light"] .main-nav {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .main-nav.mobile-open {
    display: flex;
  }

  /* Mobile menu footer with theme switcher */
  .mobile-nav-footer {
    display: flex;
    width: 100%;
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-subtle);
  }

  .mobile-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    color: var(--text-primary);
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all var(--transition-fast);
  }

  [data-theme="light"] .mobile-theme-btn {
    background: rgba(0, 0, 0, 0.04);
  }

  .mobile-theme-btn:active {
    transform: scale(0.98);
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.65;
  }

  .section-subtitle {
    font-size: 1.02rem;
  }

  .srv-desc,
  .delonghi-card p,
  .faq-answer p {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .hero-features-grid {
    grid-template-columns: 1fr;
  }

  .workflow-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    font-size: 0.88rem;
  }

  .hero-bg-overlay,
  .section-bg-overlay {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-position: center center !important;
  }
}

@media (max-width: 640px) {
  html {
    font-size: 106.25%;
  }

  body {
    padding-bottom: 74px; /* Clearance for mobile sticky action bar */
  }

  .container {
    padding: 0 16px;
  }

  .header-inner {
    gap: 8px;
  }

  .logo-title {
    font-size: 1.15rem;
  }

  .logo-subtitle {
    font-size: 0.65rem;
  }

  .logo-badge {
    width: 34px;
    height: 34px;
    font-size: 1rem;
    border-radius: 9px;
  }

  .hero-section {
    padding-top: calc(var(--header-height) + 16px);
    padding-bottom: 36px;
  }

  .hero-badge {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  .hero-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.62;
  }

  .section-title {
    font-size: 1.6rem;
    line-height: 1.28;
  }

  .section-subtitle {
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    font-size: 1.02rem;
    padding: 14px 20px;
  }

  .brands-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand-card-logo {
    font-size: 1.3rem;
  }

  .brand-card-role {
    font-size: 0.94rem;
    line-height: 1.5;
  }

  .delonghi-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .delonghi-card h3 {
    font-size: 1.18rem;
  }

  .delonghi-card p {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .services-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .srv-card h3 {
    font-size: 1.2rem;
  }

  .srv-brands {
    font-size: 0.95rem;
  }

  .srv-desc {
    font-size: 0.96rem;
    line-height: 1.6;
  }

  .workflow-timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .workflow-step h3 {
    font-size: 1.15rem;
  }

  .workflow-desc {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .faq-question {
    font-size: 1.02rem;
    padding: 18px 20px;
    line-height: 1.4;
  }

  .faq-answer p {
    font-size: 0.96rem;
    line-height: 1.62;
    padding: 0 20px 18px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-group label {
    font-size: 0.94rem;
  }

  .form-control {
    font-size: 1.02rem;
    padding: 14px 16px;
  }

  .phone-prefix-badge {
    font-size: 1.02rem;
  }

  .phone-input-field {
    padding-left: 64px !important;
  }

  .consult-container {
    padding: 24px 18px;
  }

  .contact-details h4 {
    font-size: 1.02rem;
  }

  .contact-details p {
    font-size: 0.95rem;
    line-height: 1.55;
  }

  .btn-nav-map {
    font-size: 0.95rem;
    padding: 12px 16px;
  }

  .map-wrapper {
    height: 360px;
  }

  .mobile-sticky-bar {
    display: block;
  }

  .mobile-sticky-bar .btn {
    font-size: 0.96rem;
    padding: 11px 16px;
  }

  .header-actions .btn-telegram,
  .header-actions .btn-primary {
    display: none;
  }

  /* ==========================================================================
     Mobile Background Overlays (Full-width centered symmetry & no half-cut)
     ========================================================================== */
  .hero-bg-overlay,
  .section-bg-overlay {
    width: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background-position: center center !important;
    background-size: cover !important;
    mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9) 10%, transparent 75%) !important;
    -webkit-mask-image: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.9) 10%, transparent 75%) !important;
  }

  .hero-bg-overlay {
    opacity: 0.14 !important;
  }

  [data-theme="light"] .hero-bg-overlay {
    opacity: 0.08 !important;
  }

  .section-bg-overlay {
    opacity: 0.12 !important;
  }

  [data-theme="light"] .section-bg-overlay {
    opacity: 0.06 !important;
  }

  .hero-badge-wrap {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}

