/* Keep the main sections visible on phones and compact tablets. */
@media (max-width: 1100px) {
  html { scroll-padding-top: 150px; }
  header .nav { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 16px; padding-bottom: 6px; }
  header .brand { flex: 1; min-width: 0; order: 1; }
  header .nav > .consultation-nav { display: inline-flex; order: 2; min-height: 44px; padding: 8px 12px; }
  header .mobile-menu { display: none; }
  header nav, header nav.open { display: flex; order: 3; width: 100%; flex-wrap: wrap; justify-content: space-between; gap: 4px 8px; padding: 0; border: 0; }
  header nav > a, header .service-toggle { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 0; font-size: .875rem; line-height: 1.35; text-align: center; white-space: nowrap; }
  header nav > a:not(.btn), header .service-toggle { border-radius: 0; background: transparent; }
  header nav .mobile-consultation { display: none !important; }
  header .service-toggle { width: 100%; height: 100%; }
  header .service-menu, header .service-menu:has(.service-links:not([hidden])) { position: static; width: auto; order: 0; }
  header .service-links { position: absolute; top: 100%; left: 20px; right: 20px; width: auto; margin: 0; max-height: 55vh; overflow-y: auto; box-shadow: 0 15px 35px #13253a20; }
  header .service-links a { min-height: 44px; }
}
@media (max-width: 760px) {
  header .wrap { width: calc(100% - 32px); }
  header .brand { font-size: clamp(16px, 4.5vw, 19px); }
  header .brand small { font-size: 10px; letter-spacing: 1.4px; }
  header .nav > .consultation-nav { max-width: 108px; padding: 7px 9px; font-size: .875rem; line-height: 1.3; text-align: center; }
}
@media (max-width: 760px) and (max-height: 500px) {
  header { position: relative; }
  html { scroll-padding-top: 20px; }
}
