/* Шапка и меню-сэндвич: один механизм для всех страниц (главная, маршруты, /booking/, /terms/, /privacy/).
   Разметку генерирует scripts/build-pages.js, поведение — /js/site-header.js. Не зависит от site.css и стилей /booking/.
   Высота шапки — одна переменная --header-h (телефон 44px). Шапка закреплена (sticky), панель меню раскрывается вниз. */
:root { --header-h: 44px; }
html { scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 12px); }

.site-hdr { position: sticky; top: 0; z-index: 60; background: #0B2B2D; color: #fff; padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 1px 0 #1B4647; font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; line-height: 1.2; }
.site-hdr, .site-hdr *, .site-hdr *::before, .site-hdr *::after { box-sizing: border-box; }
.site-hdr a { color: inherit; text-decoration: none; }
.site-hdr-in { max-width: 1200px; height: var(--header-h); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-logo { display: inline-flex; align-items: center; gap: 8px; height: 100%; font-family: 'Unbounded', 'Arial Black', system-ui, sans-serif; font-weight: 700; font-size: 16px; white-space: nowrap; }
.site-logo svg { width: 26px; height: 26px; flex: none; }
.site-hdr-end { display: flex; align-items: center; gap: 12px; }
.site-phone { font-size: 16px; color: #D6EDE6; }
.site-hdr [data-slot]:empty { display: none; }
.site-cta { display: none; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: #FF6A2B; color: #0E2A2B !important; font-weight: 600; font-size: 16px; white-space: nowrap; }
.site-hdr :focus-visible { outline: 3px solid #FF6A2B; outline-offset: 2px; border-radius: 4px; }

/* Кнопка-сэндвич: зона нажатия 44×44, значок 20px; при открытом меню — крестик */
.site-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -8px 0 0; padding: 0; border: 0; border-radius: 12px; background: #123F40; color: #fff; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.site-burger svg { width: 20px; height: 20px; }
.site-burger .ico-close { display: none; }
.site-burger[aria-expanded="true"] .ico-open { display: none; }
.site-burger[aria-expanded="true"] .ico-close { display: block; }

/* Панель меню (телефон и планшет): на всю ширину сразу под шапкой, не выше половины экрана, внутри — прокрутка */
.site-menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; max-height: 50vh; max-height: 50dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; background: #0B2B2D; box-shadow: 0 1px 0 #1B4647, 0 14px 24px -12px rgba(0, 0, 0, .45); }
.site-hdr.open .site-menu { display: flex; }
.site-menu a { display: flex; align-items: center; flex: none; min-height: 48px; padding: 12px 20px; border-top: 1px solid #1B4647; font-size: 17px; }
.site-menu a:first-child { border-top: 0; }
.site-menu a:active { background: #123F40; }
.site-menu .site-menu-cta { margin: 12px 20px; padding: 12px 24px; justify-content: center; border: 0; border-radius: 999px; background: #FF6A2B; color: #0E2A2B; font-weight: 600; }
.site-menu .site-menu-cta:active { background: #FF6A2B; opacity: .9; }

/* Компьютер: меню в строку, сэндвича нет; шапка тоже закреплена и компактная */
@media (min-width: 901px) {
  :root { --header-h: 60px; }
  .site-hdr-in { padding: 0 40px; gap: 24px; }
  .site-logo { font-size: 20px; gap: 10px; }
  .site-logo svg { width: 32px; height: 32px; }
  .site-burger, .site-menu .site-menu-cta { display: none; }
  .site-menu, .site-hdr.open .site-menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 28px; max-height: none; overflow: visible; background: none; box-shadow: none; font-size: 16px; }
  .site-menu a { display: inline; min-height: 0; padding: 0; border: 0; font-size: 16px; }
  .site-menu a:hover { color: #FF6A2B; }
  .site-hdr-end { gap: 20px; }
  .site-cta { display: inline-flex; }
}
@media (max-width: 900px) { .site-phone { display: none; } }
