@media (max-width: 1120px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .main-nav {
    flex-wrap: wrap;
  }
}
@media (max-width: 980px) {
  .section-pair,
  .card-grid.four,
  .step-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    text-align: center;
  }
  .balanced-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .brand-logo {
    width: 54px;
    height: 54px;
  }
  h1 {
    font-size: 38px;
  }
  .section-pair,
  .booking-section,
  .content-section,
  .page-hero,
  .page-content {
    padding: 32px 16px;
  }
  .booking-shell {
    padding: 8px;
    border-radius: 18px;
  }
}

@media (max-width: 1120px) {
  body {
    padding-top: 150px;
  }

  .site-header {
    min-height: 150px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 170px;
  }

  .site-header {
    min-height: 170px;
  }

  .brand-logo {
    width: 62px;
    height: 62px;
  }

  .main-nav a {
    font-size: 15px;
  }
}

@media (max-width: 1120px) {
  body {
    padding-top: 175px;
  }

  .hero-section {
    padding-top: 54px;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 195px;
  }

  .hero-section {
    padding-top: 42px;
  }
}

@media (max-width: 1120px) {
  body {
    padding-top: 175px !important;
  }

  main {
    padding-top: 24px !important;
  }
}

@media (max-width: 640px) {
  body {
    padding-top: 195px !important;
  }

  main {
    padding-top: 18px !important;
  }
}

/* =========================================================
   Mobile header/menu fix
   Keeps header compact, prevents menu wrapping over content
========================================================= */
@media (max-width: 760px) {
  body {
    padding-top: 0 !important;
  }

  .site-header {
    position: sticky !important;
    top: 0;
    z-index: 9999;
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px 12px;
    padding: 12px 18px !important;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(7, 17, 31, 0.08);
  }

  .brand {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .brand-logo {
    width: 48px !important;
    height: 48px !important;
    flex: 0 0 48px;
    border-radius: 14px;
  }

  .brand-text {
    min-width: 0;
  }

  .brand-text strong {
    display: block;
    font-size: 19px !important;
    line-height: 1.1;
    white-space: nowrap;
  }

  .brand-text small {
    display: block;
    font-size: 13px !important;
    line-height: 1.2;
    color: var(--muted);
  }

  .header-call {
    grid-column: 2;
    grid-row: 1;
    padding: 10px 14px !important;
    font-size: 15px !important;
    line-height: 1;
    border-radius: 999px;
    white-space: nowrap;
  }

  .main-nav {
    grid-column: 1 / -1;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 2px;
    margin: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a,
  .language-link {
    flex: 0 0 auto;
    padding: 8px 12px !important;
    font-size: 14px !important;
    line-height: 1;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
  }

  .hero-section {
    padding-top: 34px !important;
  }
}

@media (max-width: 420px) {
  .site-header {
    padding: 10px 14px !important;
    gap: 8px;
  }

  .brand-logo {
    width: 44px !important;
    height: 44px !important;
    flex-basis: 44px;
  }

  .brand-text strong {
    font-size: 17px !important;
  }

  .brand-text small {
    font-size: 12px !important;
  }

  .header-call {
    padding: 9px 12px !important;
    font-size: 14px !important;
  }
}
