/* СПОРТ-ТУР.РФ / Sticky global navigation — presentational and accessibility-only. */
:root{--st-header-height:84px;--st-sticky-gap:14px}
/* Full-width sticky shell keeps the original brand/navigation in the same component. */
.sticky-header-shell{
  position:sticky;position:-webkit-sticky;top:0;
  z-index:90;background:#FAFBF8;border-bottom:1px solid #DFE6DC;
  box-shadow:0 3px 15px rgba(27,42,27,.055);
  isolation:isolate;
}
.sticky-header-shell .site-header{
  position:relative;z-index:1;background:transparent;
  /* Height retained from the pre-existing layout; no first-screen shift. */
}
html{scroll-padding-top:calc(var(--st-header-height) + var(--st-sticky-gap));}
:where(section[id],main[id],div[id],h1[id],h2[id],h3[id],.builder-section[id]){
  scroll-margin-top:calc(var(--st-header-height) + var(--st-sticky-gap));
}
/* Menu is an overlay, not a new row: no content jump when it opens. */
.sticky-header-shell .mobile-nav:not([hidden]){
  position:absolute;z-index:3;inset-inline:0;top:100%;
  background:#FFF;border-top:1px solid #D5D9D8;border-bottom:1px solid #D5D9D8;
  max-height:calc(100vh - var(--st-header-height) - 12px);
  max-height:calc(100dvh - var(--st-header-height) - 12px);
  overflow-y:auto;overscroll-behavior:contain;
  box-shadow:0 15px 28px rgba(17,17,17,.12);
}
/* The dimmer sits below navigation but above the page and booking dock. */
body[data-st-menu-open="true"]::before{
  content:"";position:fixed;inset:var(--st-header-height) 0 0;
  background:rgba(17,17,17,.18);z-index:85;
}
@media(max-width:920px){
  :root{--st-header-height:72px}
  .sticky-header-shell .site-header{height:var(--st-header-height)}
  .sticky-header-shell .menu-toggle{min-width:44px;min-height:44px}
}
@media(max-width:370px){
  :root{--st-header-height:66px}
  .sticky-header-shell .site-header{height:var(--st-header-height)}
  .sticky-header-shell .site-header .brand{width:min(164px,58vw)}
}
@media(prefers-reduced-motion:reduce){.sticky-header-shell,.sticky-header-shell *{scroll-behavior:auto}}
