/* =====================================================================
   Irin. – shared header / menu / language switcher / bottom bar
   Loaded after each page's inline <style>, so these rules win.
   ===================================================================== */

/* no layout jump (burger / X shifting) when the menu locks scrolling */
html{scrollbar-gutter:stable}

/* ---------- Hamburger icon ----------
   Lines are 2px and sit on whole pixels (old 1.5px lines at 0 / 9.25 / 18.5px
   rendered with different thickness). The button is a 44px tap target but
   draws the same 26×20 icon in the same place as before. Height 45 (odd) because the
   header's inner height is odd (60/76 minus its 1px border) – keeps the lines on whole pixels. */
.burger{position:relative;display:block;width:44px;height:45px;margin:-12px -9px;padding:0;background:none;border:0;color:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.burger span{position:absolute;left:9px;right:9px;top:21px;height:2px;border-radius:0;background:currentColor;transition:transform .4s cubic-bezier(.65,0,.35,1),opacity .2s ease}
.burger span:nth-child(1){transform:translateY(-8px)}
.burger span:nth-child(3){transform:translateY(8px)}
.burger.is-x span:nth-child(1){transform:rotate(45deg)}
.burger.is-x span:nth-child(2){opacity:0}
.burger.is-x span:nth-child(3){transform:rotate(-45deg)}
.burger:focus-visible{outline:1px solid currentColor;outline-offset:-6px}

/* ---------- Menu overlay ----------
   Full screen under the header (no edge or border line while it animates);
   the header just turns ink-on-paper, so the burger morphs into the X in place. */
.navm{inset:0;padding-top:60px;border-top:0;transform:none;opacity:0;visibility:hidden;transition:opacity .4s ease,visibility 0s linear .4s}
.navm.is-open{opacity:1;visibility:visible;transition:opacity .4s ease,visibility 0s}
@media (min-width:900px){.navm{inset:0;padding-top:76px}}
.navm__list li{opacity:0;transform:translateY(10px);transition:opacity .25s ease,transform .25s ease}
.navm.is-open .navm__list li{opacity:1;transform:none;transition:opacity .5s ease,transform .6s cubic-bezier(.2,.7,.2,1)}
.navm.is-open .navm__list li:nth-child(2){transition-delay:.04s}
.navm.is-open .navm__list li:nth-child(3){transition-delay:.08s}
.navm.is-open .navm__list li:nth-child(4){transition-delay:.12s}
.navm.is-open .navm__list li:nth-child(5){transition-delay:.16s}
.navm.is-open .navm__list li:nth-child(6){transition-delay:.2s}
.navm.is-open .navm__list li:nth-child(7){transition-delay:.24s}
body.nav-open .hdr{color:var(--ink);background:transparent;border-color:transparent;-webkit-backdrop-filter:none;backdrop-filter:none}
body.nav-open .hdr__logo{opacity:1;pointer-events:auto}
body.nav-open .m3-bar{display:flex}   /* stays under the opaque menu – no pop on close */
@media (prefers-reduced-motion:reduce){
  .navm,.navm.is-open,.navm__list li,.navm.is-open .navm__list li,.burger span{transition-duration:.01s!important;transition-delay:0s!important}
}

/* ---------- Language switcher ---------- */
.lang{position:relative;justify-self:start}
.lang .hdr__lang{background:none;border:0;padding:10px 0;margin:-10px 0;font:inherit;font-size:16px;color:inherit;cursor:pointer;letter-spacing:.02em}
.lang .hdr__lang svg{transition:transform .25s ease}
.lang.is-open .hdr__lang svg{transform:rotate(180deg)}
.lang__menu{position:absolute;top:calc(100% + 12px);left:-12px;min-width:56px;margin:0;padding:6px 0;list-style:none;background:var(--ink);opacity:0;visibility:hidden;transform:translateY(-4px);transition:opacity .2s ease,transform .2s ease,visibility 0s linear .2s;z-index:31}
.lang.is-open .lang__menu{opacity:1;visibility:visible;transform:none;transition:opacity .2s ease,transform .2s ease,visibility 0s}
.lang__menu a{display:block;padding:7px 12px;font-size:15px;letter-spacing:.04em;line-height:1.2;color:#8F8988;text-decoration:none;text-align:center;transition:color .15s}
.lang__menu a:hover,.lang__menu a:focus-visible{color:var(--paper)}
.lang__menu a[aria-current]{color:var(--paper);font-weight:600}

/* ---------- Bottom bar (Rezervácie · Str – Sob) ----------
   The fade is a long eased gradient that is fully opaque before the text starts,
   so content never shows through behind the words and there is no hard edge. */
.m3-bar{padding-top:56px;padding-bottom:calc(22px + env(safe-area-inset-bottom));background:none!important;isolation:isolate}
.m3-bar::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;transition:opacity .35s ease;
  background:linear-gradient(to bottom,
    rgba(245,243,243,0) 0px, rgba(245,243,243,.013) 4px, rgba(245,243,243,.049) 8px, rgba(245,243,243,.104) 12px,
    rgba(245,243,243,.175) 16px, rgba(245,243,243,.259) 20px, rgba(245,243,243,.352) 24px, rgba(245,243,243,.45) 28px,
    rgba(245,243,243,.55) 32px, rgba(245,243,243,.648) 36px, rgba(245,243,243,.741) 40px, rgba(245,243,243,.825) 44px,
    rgba(245,243,243,.896) 48px, rgba(245,243,243,.951) 52px, rgba(245,243,243,.987) 56px, #F5F3F3 60px)}
.m3-bar a,.m3-bar span{position:relative}
@media (max-width:899px){.m3-bar{padding-bottom:calc(14px + env(safe-area-inset-bottom))}}   /* text sits 8px lower on phones */
/* homepage: white text over the hero video, the fade comes in once the bar reaches the page */
.m3-bar--hero::before{opacity:0}
.m3-bar--hero.is-dark::before{opacity:1}

/* ---------- Private-events enquiry form ---------- */
.pe__lead-form{position:relative}
.pe__lead-form .hp{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}   /* spam trap */
.pe__lead-form .pe__err{margin:0;color:#8E2F2A;font-size:15px;line-height:1.6}
.pe__lead-form .pe__err a{color:inherit;text-underline-offset:3px}
.pe__lead-form button[disabled]{opacity:.6;cursor:progress}
@media (min-width:900px){.pe__lead-form > .hp + label,.pe__lead-form .pe__err{grid-column:1/-1}}
/* reCAPTCHA: badge hidden (Google allows it when the notice below is shown under the form) */
.grecaptcha-badge{visibility:hidden}
.pe__lead-form .pe__legal{margin:0;font-size:12px;line-height:1.6;color:var(--muted)}
.pe__lead-form .pe__legal a{color:inherit;text-underline-offset:2px}
@media (min-width:900px){.pe__lead-form .pe__legal{grid-column:1/-1}}
