/* ==========================================================================
   Белотурка — design system
   ========================================================================== */

/* self-hosted variable fonts (Cormorant, Manrope — SIL OFL) */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/cormorant-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/cormorant-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/cormorant-cyrillic-wght-italic.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 300 800; font-display: swap; src: url('../fonts/cormorant-latin-wght-italic.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/manrope-cyrillic-wght-normal.woff2') format('woff2'); unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 800; font-display: swap; src: url('../fonts/manrope-latin-wght-normal.woff2') format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  /* palette */
  --cream:      #f6eee2;
  --paper:      #fbf7f0;
  --flour:      #fffdf9;
  --ink:        #241b14;
  --ink-2:      #4b3d31;
  --ink-3:      #7a6a5b;
  --line:       rgba(36, 27, 20, .12);
  --gold:       #c9a24a;
  --gold-deep:  #8c6a1c;   /* AA on cream for small text */
  --crust:      #6e4320;
  --night:      #1a130e;

  /* type */
  --f-display: "Cormorant", "Times New Roman", serif;
  --f-body:    "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-xs:   .8125rem;
  --fs-sm:   .9375rem;
  --fs-base: 1.0625rem;
  --fs-lg:   clamp(1.125rem, 1rem + .4vw, 1.3125rem);
  --fs-h3:   clamp(1.5rem, 1.2rem + 1vw, 1.5rem);
  --fs-h2:   clamp(2.5rem, 1.6rem + 3.6vw, 5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 6.4vw, 7.25rem);

  /* rhythm */
  --gutter:  clamp(1rem, .5rem + 2.5vw, 2.5rem);
  --section: clamp(1rem, 1rem + 8vw, 3rem);
  --radius:  20px;
  --radius-lg: 32px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --header-h: 76px;

  color-scheme: light;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  font-family: var(--f-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
h1, h2, h3 { font-family: var(--f-display); color: var(--ink); font-weight: 600; line-height: 1.02; letter-spacing: -.01em; text-wrap: balance; }
p { text-wrap: pretty; }
em { font-style: italic; color: var(--gold-deep); }
/* Cormorant defaults to old-style figures; use lining numerals for dates, phones and labels */
h1, h2, h3, .eyebrow, .chrono__year, .chrono__label, .fact dt, .contacts__phones a, .news-card__date, .sour-list__n, .site-footer__col h2, .timeline__k, .motto footer { font-variant-numeric: lining-nums; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

/* grain overlay for tactile paper feel */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1000;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; }
.skip-link {
  position: fixed; left: 1rem; top: -100px; z-index: 2000;
  background: var(--ink); color: var(--paper); padding: .75rem 1.25rem; border-radius: 999px;
}
.skip-link:focus { top: 1rem; }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .85rem;
  font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 2.6rem; height: 7px; flex-shrink: 0;
  background: radial-gradient(circle, currentColor 2.2px, transparent 2.6px) right center / 7px 7px no-repeat,
              linear-gradient(currentColor, currentColor) left center / calc(100% - 11px) 1px no-repeat;
}
.eyebrow--light { color: var(--gold); }

.section { padding-block: var(--section); position: relative; }
.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 40rem; }
.section-head--row .section-lead { max-width: 26rem; margin: 0; }
.section-title { font-size: var(--fs-h2); }
.section-lead { font-size: var(--fs-lg); color: var(--ink-3); margin-top: 1.5rem; max-width: 36rem; }
.center-row { display: flex; justify-content: center; margin-top: 3rem; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--ink); --bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .8rem 1.6rem; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-weight: 600; font-size: var(--fs-sm); letter-spacing: .01em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease-out), border-color .4s, transform .4s var(--ease-out), box-shadow .4s;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--ink)); transform: translateY(101%);
  transition: transform .55s var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateY(0); }
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.btn--gold { --bg: var(--gold); --fg: var(--ink); --fill: var(--ink); }
.btn--gold:hover { --fg: var(--paper); box-shadow: 0 14px 34px -14px rgba(36, 27, 20, .55); }
.btn--outline { --bd: var(--ink); --fill: var(--ink); }
.btn--outline:hover { --fg: var(--paper); }
.btn--ghost-light { --fg: var(--paper); --bd: rgba(255, 253, 249, .45); --fill: var(--paper); backdrop-filter: blur(6px); }
.btn--ghost-light:hover { --fg: var(--ink); --bd: var(--paper); }
.btn--lg { min-height: 58px; padding-inline: 2.1rem; font-size: var(--fs-base); }
.btn--sm { min-height: 40px; padding: .5rem 1.15rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .5s var(--ease-out);
}
.link-arrow span { transition: transform .5s var(--ease-out); }
.link-arrow:hover { background-size: 100% 1px; }
.link-arrow:hover span { transform: translate(3px, -1px); }

.icon-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); transition: background .3s, border-color .3s, transform .3s var(--ease-out);
}
.icon-btn svg { width: 19px; height: 19px; fill: currentColor; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }

.round-btn {
  width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--ink); font-size: 1.25rem;
  transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease-out);
}
.round-btn:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.round-btn:disabled { opacity: .3; cursor: default; }

.tag {
  position: absolute; top: 1rem; left: 1rem; z-index: 2;
  padding: .4rem .85rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.tag--gold { background: var(--gold); color: var(--ink); }
.tag--dark { background: var(--ink); color: var(--paper); }

/* live open/closed pill */
.status-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .35rem .8rem; border-radius: 999px; font-size: var(--fs-xs); font-weight: 600;
  background: rgba(36, 27, 20, .06); color: var(--ink-2); white-space: nowrap;
}
.status-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: #a33; }
.status-pill__dot { position: relative; }
.status-pill.is-open .status-pill__dot { background: #2f8a4c; }
.status-pill.is-open .status-pill__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: #2f8a4c;
  animation: pulse 2.2s ease-out infinite; will-change: transform, opacity;
}
@keyframes pulse { 0% { transform: scale(1); opacity: .5; } 70%, 100% { transform: scale(2.6); opacity: 0; } }
.status-pill--card { margin-bottom: .9rem; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--paper);
  transition: background .4s var(--ease-out), color .4s, box-shadow .4s;
}
/* the bar never slides away: pinned to the top in every state (guards against cached old scripts too) */
.site-header, .site-header.is-hidden, .site-header.is-scrolled { top: 0; transform: none !important; }
.site-header.is-scrolled {
  background: rgba(246, 238, 226, .82); color: var(--ink);
  backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { position: relative; display: block; height: 42px; aspect-ratio: 541 / 105; }
.brand img { position: absolute; inset: 0; width: 100%; height: unset; transition: opacity .5s var(--ease-out); }
.brand__dark { opacity: 0; }
.is-scrolled .brand__light, .nav-open .brand__light { opacity: 0; }
.is-scrolled .brand__dark, .nav-open .brand__dark { opacity: 1; }
@media (max-width: 480px) { .brand { height: 34px; } }

.nav { margin-inline: auto; }
.nav__list { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav__list a {
  position: relative; font-size: var(--fs-sm); font-weight: 500; padding-block: .5rem;
}
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-extra { display: none; }

.site-header__actions { display: flex; align-items: center; gap: .6rem; }
.site-header .icon-btn { border-color: currentColor; border-color: color-mix(in srgb, currentColor 30%, transparent); }
.site-header .status-pill { background: color-mix(in srgb, currentColor 12%, transparent); color: inherit; margin-right: .4rem; }

.burger { display: none; width: 46px; height: 46px; position: relative; border-radius: 50%; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger span:first-child { top: 19px; } .burger span:last-child { top: 26px; }
.nav-open .burger span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .burger span:last-child  { top: 22px; transform: rotate(-45deg); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .site-header .icon-btn, .site-header .status-pill { display: none; }
  .site-header__inner { justify-content: space-between; }
  .nav {
    position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; z-index: 99; margin: 0; overflow-y: auto; overscroll-behavior: contain;
    display: flex; flex-direction: column; justify-content: center; gap: 2.5rem; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
    background: var(--cream); color: var(--ink);
    clip-path: circle(0% at calc(100% - 44px) 38px);
    transition: clip-path .8s var(--ease-io); visibility: hidden;
  }
  .nav-open .nav { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
  .nav-open .site-header { color: var(--ink); background: transparent; box-shadow: none; }
  .nav__list { flex-direction: column; gap: .25rem; }
  .nav__list a { font-family: var(--f-display); font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 600; line-height: 1.15; display: inline-block; }
  .nav__list li { opacity: 0; transform: translateY(24px); transition: opacity .5s, transform .6s var(--ease-out); }
  .nav-open .nav__list li { opacity: 1; transform: none; }
  .nav-open .nav__list li:nth-child(1) { transition-delay: .15s } .nav-open .nav__list li:nth-child(2) { transition-delay: .2s }
  .nav-open .nav__list li:nth-child(3) { transition-delay: .25s } .nav-open .nav__list li:nth-child(4) { transition-delay: .3s }
  .nav-open .nav__list li:nth-child(5) { transition-delay: .35s } .nav-open .nav__list li:nth-child(6) { transition-delay: .4s }
  .nav-open .nav__list li:nth-child(7) { transition-delay: .45s }
  .nav__mobile-extra { display: block; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--paper); overflow: hidden; background: var(--night);
}
.hero__media { position: absolute; inset: -12% 0 0; will-change: transform; }
.hero__media picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 18% 30%; transform: scale(1.08); animation: heroZoom 2.4s var(--ease-out) forwards; }
.hero__wind { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 2s ease 1s; }
.is-loaded .hero__wind { opacity: 1; }
@media (min-width: 641px) and (max-width: 1080px) and (orientation: portrait) { .hero__media img { object-position: 50% 20%; } }
@keyframes heroZoom { to { transform: scale(1); } }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 19, 14, .86) 0%, rgba(26, 19, 14, .6) 34%, rgba(26, 19, 14, .15) 58%, rgba(26, 19, 14, 0) 70%),
    linear-gradient(180deg, rgba(26, 19, 14, .5) 0%, transparent 22%, transparent 60%, rgba(26, 19, 14, .7) 100%);
}
.hero__content { position: relative; padding-block: calc(var(--header-h) + 3rem) clamp(4rem, 9vh, 7rem); }

.hero__title {
    font-size: var(--fs-h1);
    color: var(--paper);
    font-weight: 500;
    line-height: .78;
    letter-spacing: -.025em;
    margin-bottom: 2rem;
}

.hero__title .line {
    display: block;
    overflow: hidden;
    padding-bottom: .06em;
    text-shadow: 1px 2px 5px #00000036;
}
.hero__title em { color: var(--gold); font-weight: 500; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { max-width: 33rem; font-size: var(--fs-lg); color: rgba(255, 253, 249, .82); margin-bottom: 2.5rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; }

[data-hero-in] { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out); }
.hero__title [data-hero-in] { transform: translateY(105%); opacity: 1; }
.is-loaded [data-hero-in] { opacity: 1; transform: none; }
.is-loaded .hero__eyebrow { transition-delay: .15s; }
.is-loaded .hero__title .line:nth-child(1) span { transition-delay: .25s; }
.is-loaded .hero__title .line:nth-child(2) span { transition-delay: .35s; }
.is-loaded .hero__title .line:nth-child(3) span { transition-delay: .45s; }
.is-loaded .hero__lead { transition-delay: .65s; }
.is-loaded .hero__cta { transition-delay: .8s; }

.hero__scroll {
  position: absolute; right: var(--gutter); bottom: clamp(4rem, 9vh, 7rem); width: 28px; height: 46px;
  border: 1.5px solid rgba(255, 253, 249, .6); border-radius: 999px;
}
.hero__scroll span { position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--paper); animation: scrollDot 2s var(--ease-io) infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }
@media (max-width: 640px) {
  .hero__scroll { display: none; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__veil { background: linear-gradient(180deg, rgba(26, 19, 14, .55) 0%, rgba(26, 19, 14, .15) 30%, rgba(26, 19, 14, .75) 62%, rgba(26, 19, 14, .92) 100%); }
  .hero__media { inset: -14% 0 0; }
  .hero__media img { object-position: 47% 0%; }
  .hero__eyebrow { margin-bottom: .9rem; opacity:0!important; }
}

/* ==========================================================================
   Marquee
   ========================================================================== */
.marquee { background: var(--ink); color: var(--cream); overflow: hidden; padding-block: 1.35rem; }
.marquee__track { display: flex; align-items: center; gap: 2.25rem; width: max-content; animation: marquee 42s linear infinite; }
.marquee span { font-family: var(--f-display); font-style: italic; font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.5rem); white-space: nowrap; }
.marquee i { color: var(--gold); font-style: normal; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Menu
   ========================================================================== */
.menu-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(.75rem, 1.4vw, 1.25rem); }
.menu-card {
  position: relative; display: block; aspect-ratio: 3 / 4.2; border-radius: var(--radius); overflow: hidden;
  background: var(--ink); color: var(--paper); isolation: isolate;
}
.menu-card:nth-child(even) { transform: translateY(3rem); }
.menu-card__media { position: absolute; inset: 0; z-index: -1; }
.menu-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.92); }
.menu-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(26, 19, 14, .88)); transition: opacity .6s; }
.menu-card__body { position: absolute; inset: auto 0 0; padding: clamp(1.25rem, 2vw, 1.75rem); display: grid; gap: .35rem; }
.menu-card__num { font-size: var(--fs-xs); letter-spacing: .2em; color: var(--gold); font-weight: 600; }
.menu-card__name { font-family: var(--f-display); font-size: clamp(1.75rem, 1.2rem + 1.2vw, 2.5rem); font-weight: 600; line-height: 1; }
.menu-card__sub { font-size: var(--fs-sm); color: rgba(255, 253, 249, .72); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .6s var(--ease-out), opacity .5s; }
.menu-card__arrow {
  position: absolute; top: 1.1rem; right: 1.1rem; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.15rem;
  transform: scale(.4) rotate(-45deg); opacity: 0; transition: transform .6s var(--ease-out), opacity .4s;
}
.menu-card:hover .menu-card__media img, .menu-card:focus-visible .menu-card__media img { transform: scale(1.08); filter: saturate(1.05); }
.menu-card:hover .menu-card__sub, .menu-card:focus-visible .menu-card__sub { max-height: 3em; opacity: 1; }
.menu-card:hover .menu-card__arrow, .menu-card:focus-visible .menu-card__arrow { transform: scale(1) rotate(-45deg); opacity: 1; }
.menu__foot { display: flex; justify-content: center; margin-top: clamp(4rem, 7vw, 6rem); }

@media (hover: none) { .menu-card__sub { max-height: 3em; opacity: 1; } }
@media (max-width: 960px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-card { aspect-ratio: 4 / 3; }
  .menu-card:nth-child(even) { transform: none; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--paper); }
.about__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(3rem, 7vw, 8rem); align-items: center; }
.about__visual { position: relative; }
.about__img { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; }
.about__img img { width: 100%; height: 115%; object-fit: cover; }
.about__seal {
  position: absolute; right: -2.5rem; bottom: -2.5rem; width: 9.5rem; height: 9.5rem; border-radius: 50%;
  background: var(--gold); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 24px 50px -20px rgba(36, 27, 20, .45);
}
.about__seal-ring { position: absolute; inset: 0; animation: spin 24s linear infinite; will-change: transform; }
.about__seal svg { width: 100%; height: 100%; }
.about__seal text { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; fill: var(--ink); font-family: var(--f-body); }
.about__seal > span { font-size: 1.6rem; }
@keyframes spin { to { transform: rotate(360deg); } }
.about__text p { margin-bottom: 1.25rem; max-width: 36rem; }
.about__text .section-title { margin-bottom: 2rem; }
.about__lead { font-size: var(--fs-lg); color: var(--ink); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 3rem; padding-top: 2.25rem; border-top: 1px solid var(--line); }
.fact dt { font-family: var(--f-display); font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.75rem); font-weight: 600; color: var(--ink); line-height: 1; margin-bottom: .5rem; }
.fact dd { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.45; }

@media (max-width: 900px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__visual { max-width: 30rem; }
  .about__seal { right: -.75rem; bottom: -1.5rem; width: 7.5rem; height: 7.5rem; }
}
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; gap: 1.25rem; } }

/* award */
.award {
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center;
  margin: 2.25rem 0 0; padding: 1.4rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--flour);
}
.award img { width: 56px; height: auto; }
.award figcaption { font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.5; }
.award strong { display: block; font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; color: var(--ink); line-height: 1.1; margin: .2rem 0 .35rem; }
.award__kicker { font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); font-weight: 600; }

/* ==========================================================================
   Sourdough (dark, parallax image)
   ========================================================================== */
.sourdough { background: var(--night); color: rgba(255, 253, 249, .78); overflow: hidden; }
.sourdough__bg { position: absolute; inset: -20% 0; opacity: .32; will-change: transform; }
.sourdough__bg img { width: 100%; height: 100%; object-fit: cover; }
.sourdough::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, var(--night), transparent 30%, transparent 70%, var(--night)); }
.sourdough__inner { position: relative; z-index: 2; }
.section-head--light .section-title { color: var(--paper); }
.section-head--light em, .sourdough em { color: var(--gold); }

.sour-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255, 253, 249, .12); border-radius: var(--radius); overflow: hidden; }
.sour-list li { background: rgba(26, 19, 14, .72); backdrop-filter: blur(10px); padding: clamp(1.75rem, 2.5vw, 2.5rem); transition: background .5s; }
.sour-list li:hover { background: rgba(46, 34, 25, .85); }
.sour-list__n { display: inline-block; font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; letter-spacing: .06em; color: var(--gold); margin-bottom: 2.25rem; line-height: 1; padding: .35rem .7rem; border: 1px solid rgba(201, 162, 74, .45); border-radius: 999px; }
.sour-list h3 { color: var(--paper); font-size: var(--fs-h3); margin-bottom: .9rem; }
.sour-list p { font-size: var(--fs-sm); }
@media (max-width: 1080px) { .sour-list { grid-template-columns: repeat(2, 1fr); } }
.history .section-lead + p { margin-top: 1.25rem; max-width: 36rem; }
@media (max-width: 560px)  { .sour-list { grid-template-columns: 1fr; } .sour-list__n { margin-bottom: 1.25rem; } }

/* ==========================================================================
   History — editorial intro + pinned horizontal chronicle
   ========================================================================== */
.history { position: relative; background: var(--paper); padding-top: var(--section); overflow: clip; }
.history::before {           /* faint period frame */
  content: ""; position: absolute; inset: clamp(.75rem, 1.6vw, 1.5rem); pointer-events: none;  outline-offset: -8px;
}
.history__title { font-size: clamp(3rem, 1.6rem + 6vw, 8.5rem); line-height: .95; letter-spacing: -.02em; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.history__title em { display: block; }
.history__cols { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 6vw, 7rem); align-items: start; }
.history__lead { font-size: clamp(1.15rem, 1rem + .5vw, 1.45rem); line-height: 1.6; color: var(--ink); max-width: 38rem; }
.dropcap {
  float: left; font-family: var(--f-display); font-weight: 600; color: var(--gold-deep);
  font-size: 5.4em; line-height: .8; margin: .06em .12em 0 -.04em;
}
.motto { position: relative; margin: 0; padding: 0rem 0 0 2.5rem; border-left: 1px solid rgba(140, 106, 28, .35); }
.motto::before { content: ""; position: absolute; left: 2.2rem; top: -1.2rem; font-family: var(--f-display); font-size: 7rem; line-height: 1; color: var(--gold); }
.motto p { font-family: var(--f-display); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 1.2rem + 1.3vw, 2.4rem); line-height: 1.2; color: var(--ink); }
.motto footer { margin-top: 1.25rem; font-family: var(--f-display); font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }

/* chronicle — default: vertical list (mobile, no JS, reduced motion) */
.chrono { margin-top: clamp(4rem, 8vw, 7rem); padding-bottom: var(--section); }
.chrono__head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2.5rem; }
.chrono__label { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); white-space: nowrap; }
.chrono__rail { position: relative; flex: 1; height: 1px; background: rgba(36, 27, 20, .15); }
.chrono__progress { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--gold-deep); height: 2px; top: -.5px; }
.chrono__track { width: min(1320px, 100% - var(--gutter) * 2); margin-inline: auto; display: grid; gap: 0; }
.chrono__item { position: relative; display: grid; grid-template-columns: minmax(7rem, 15rem) 1fr; column-gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.chrono__year {
  grid-row: span 2; font-family: var(--f-display); font-weight: 600; line-height: .9; letter-spacing: -.02em;
  font-size: clamp(3.4rem, 2rem + 6vw, 6rem); color: var(--gold-deep);
}
.chrono__dot { display: none; }
.chrono__place { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin-bottom: .5rem; }
.chrono__item p { color: var(--ink-2); max-width: 26rem; }
.chrono__year { white-space: nowrap; }

/* pinned horizontal mode (enabled by JS on wide screens, motion allowed) */
.chrono.is-pinned { height: calc(var(--n) * 62vh + 100vh); padding-bottom: 0; }
.chrono.is-pinned .chrono__sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.chrono.is-pinned .chrono__track {
  width: max-content; margin: 0; display: flex; gap: clamp(3rem, 6vw, 7rem);
  padding-inline: max(var(--gutter), (100vw - 1320px) / 2) 30vw; will-change: transform;
}
.chrono.is-pinned .chrono__item {
  flex: 0 0 auto; width: auto; min-width: clamp(20rem, 28vw, 28rem); display: block; padding: 0; border: 0;
  opacity: .38; transform: translateY(14px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
}
.chrono.is-pinned .chrono__year {
  display: block; font-size: clamp(6rem, 3rem + 8vw, 12rem); margin-bottom: 1.75rem;
  color: transparent; -webkit-text-stroke: 1.5px var(--gold-deep); white-space: nowrap;
  transition: color .8s var(--ease-out);
}
.chrono.is-pinned .chrono__dot {
  display: block; width: 14px; height: 14px; border-radius: 50%; margin-bottom: 1.5rem;
  border: 1.5px solid var(--gold-deep); background: var(--paper); transition: background .5s, box-shadow .5s;
}
.chrono.is-pinned .chrono__item.is-active { opacity: 1; transform: none; }
.chrono.is-pinned .chrono__item.is-active .chrono__year { color: var(--gold-deep); }
.chrono.is-pinned .chrono__item.is-active .chrono__dot { background: var(--gold-deep); box-shadow: 0 0 0 6px rgba(201, 162, 74, .22); }

@media (max-width: 900px) {
  .history__cols { grid-template-columns: 1fr; }
  .motto { padding-left: 1.75rem; }
}
@media (max-width: 560px) {
  .chrono__item { grid-template-columns: 1fr; }
  .chrono__year { grid-row: auto; margin-bottom: .6rem; }
  .history::before { display: none; }
}

/* ==========================================================================
   Interior gallery (masonry via columns)
   ========================================================================== */
.gallery { columns: 3 300px; column-gap: clamp(.75rem, 1.4vw, 1.25rem); }
.gallery__item { break-inside: avoid; margin-bottom: clamp(.75rem, 1.4vw, 1.25rem); }
.gallery__btn { display: block; width: 100%; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; background: var(--paper); }
.gallery__btn img { width: 100%; transition: transform 1.1s var(--ease-out), filter .6s; filter: saturate(.9); }
.gallery__btn:hover img { transform: scale(1.05); filter: saturate(1.05); }

.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(26, 19, 14, .92); backdrop-filter: blur(6px); }
.lightbox[open] { display: grid; place-items: center; animation: fadeIn .4s var(--ease-out); }
.lightbox img { max-width: min(92vw, 1400px); max-height: 88vh; border-radius: 12px; object-fit: contain; }
.lightbox__close { position: fixed; top: 1rem; right: 1rem; width: 52px; height: 52px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.75rem; line-height: 1; }
@keyframes fadeIn { from { opacity: 0; } }

/* ==========================================================================
   Branches
   ========================================================================== */
.branches { background: var(--paper); }
.branch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.75rem); }
.branch {
  display: flex; flex-direction: column; background: var(--flour); border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), border-color .4s;
}
.branch:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(36, 27, 20, .3); border-color: transparent; }
.branch__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--cream); }
.branch__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.branch:hover .branch__media img { transform: scale(1.05); }
.branch__body { padding: clamp(1.5rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; flex: 1; }
.branch__title { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.branch__info { display: grid; gap: .65rem; margin-bottom: 1.75rem; flex: 1; }
.branch__info > div { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; font-size: var(--fs-sm); padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.branch__info dt { color: var(--ink-3); }
.branch__info dd { color: var(--ink); }
.branch__info a:hover { color: var(--gold-deep); }
.branch__note { font-size: var(--fs-sm); color: var(--ink-3); }

.branch--main { grid-column: 1 / -1; flex-direction: row; background: var(--ink); color: rgba(255, 253, 249, .8); border-color: var(--ink); }
.branch--main .branch__media { aspect-ratio: auto; flex: 1.15; min-height: 26rem; }
.branch--main .branch__body { flex: 1; justify-content: center; padding: clamp(2rem, 4vw, 3.75rem); }
.branch--main .branch__title { color: var(--paper); font-size: clamp(2rem, 1.4rem + 2vw, 3.25rem); }
.branch--main .branch__info > div { border-color: rgba(255, 253, 249, .12); }
.branch--main .branch__info dt { color: rgba(255, 253, 249, .55); }
.branch--main .branch__info dd, .branch--main .link-arrow { color: var(--paper); }
.branch--main .status-pill { background: rgba(255, 253, 249, .1); color: var(--paper); }
.branch--main .branch__info a:hover { color: var(--gold); }

.branch--soon .branch__info { flex: 0; }
.branch--soon { border-style: dashed; border-color: var(--gold-deep); background: transparent; }
.branch--soon .branch__media img { filter: grayscale(.7) contrast(.9); }

@media (max-width: 860px) {
  .branch-grid { grid-template-columns: 1fr; }
  .branch--main { flex-direction: column; }
  .branch--main .branch__media { min-height: 0; aspect-ratio: 16 / 10; }
}

/* ==========================================================================
   News — card grid + reader
   ========================================================================== */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.news-card {
  position: relative; display: flex; flex-direction: column; background: var(--flour);
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.news-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -32px rgba(36, 27, 20, .35); }
.news-card__hit { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.news-card__hit:focus-visible { outline-offset: -3px; }
.news-card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out); }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 1.5rem 1.6rem 1.75rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.news-card__date { font-family: var(--f-display); font-size: 1rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-deep); }
.news-card__title { font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem); }
.news-card__excerpt {
  font-size: var(--fs-sm); color: var(--ink-3); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__more { margin-top: auto; padding-top: .75rem; font-weight: 600; color: var(--ink); font-size: var(--fs-sm); }
.news-card__more span { display: inline-block; transition: transform .5s var(--ease-out); }
.news-card:hover .news-card__more span { transform: translateX(4px); }

/* Карточка-афиша (формат «только картинка»): без анонса, картинка целиком, в исходных пропорциях */
.news-card--poster .news-card__media { aspect-ratio: auto; }
.news-card--poster .news-card__media img { display: block; height: auto; }
.news-card--poster:hover .news-card__media img { transform: none; }

/* emoji and inline images inside rich text from the admin */
.news-card__excerpt img, .news-modal__text img { display: inline-block; width: auto; height: 1.15em; vertical-align: -0.2em; margin: 0 .1em; }

.news-modal { margin: auto; border: 0; padding: 0; border-radius: var(--radius-lg); width: min(46rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); background: var(--flour); color: var(--ink-2); overflow: auto; overscroll-behavior: contain; }
.news-modal::backdrop { background: rgba(26, 19, 14, .7); backdrop-filter: blur(4px); }
.news-modal[open] { animation: modalIn .5s var(--ease-out); }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.news-modal__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-modal__body { padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; gap: .9rem; }
.news-modal__title { font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem); }
.news-modal__text { line-height: 1.75; }
.news-modal__text p { margin-bottom: .6rem; }
.news-modal__text a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.news-modal .btn { justify-self: start; margin-top: .5rem; }
.news-modal .lightbox__close { position: sticky; float: right; top: 1rem; margin: 1rem 1rem -4.25rem 0; z-index: 2; box-shadow: 0 6px 20px -6px rgba(0, 0, 0, .35); }
body.modal-open { overflow: hidden; }

@media (max-width: 1000px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px)  { .news-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Career
   ========================================================================== */
.career__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(3rem, 7vw, 7rem); align-items: start; }
.career__text { position: sticky; top: calc(var(--header-h) + 2rem); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.25rem; }
.chips li { padding: 0; border: 0; background: none; }
.chip {
  font: inherit; font-size: var(--fs-sm); color: var(--ink); cursor: pointer;
  padding: .55rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; background: var(--flour);
  transition: background .3s, color .3s, border-color .3s, transform .2s var(--ease-out);
}
.chip:hover { background: var(--gold); border-color: var(--gold); }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.field.is-picked select { animation: picked 1s var(--ease-out); }
@keyframes picked { 0% { box-shadow: 0 0 0 0 rgba(201, 162, 74, .55); border-color: var(--gold-deep); } 100% { box-shadow: 0 0 0 10px rgba(201, 162, 74, 0); } }

.form-card { background: var(--flour); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3.5vw, 3rem); box-shadow: 0 40px 80px -50px rgba(36, 27, 20, .4); border: 1px solid var(--line); }
.form-card__title { font-size: var(--fs-h3); }
.form-card__sub { color: var(--ink-3); font-size: var(--fs-sm); margin: .35rem 0 2rem; }
.form { display: grid; gap: 1rem; }

.field { position: relative; }
.field input, .field select {
  width: 100%; height: 62px; padding: 1.5rem 1.1rem .5rem; border: 1px solid var(--line); border-radius: 14px;
  background: var(--paper); color: var(--ink); font-size: var(--fs-base); appearance: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.field label { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; transition: all .3s var(--ease-out); transform-origin: left; }
.field input:focus, .field select:focus { outline: none; border-color: var(--gold-deep); background: var(--flour); box-shadow: 0 0 0 4px rgba(201, 162, 74, .2); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select:valid + label { top: 1.05rem; transform: translateY(-50%) scale(.78); color: var(--gold-deep); }
.field--select::after { content: ""; position: absolute; right: 1.25rem; top: 50%; width: 8px; height: 8px; border: solid var(--ink-3); border-width: 0 1.5px 1.5px 0; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field.is-invalid input, .field.is-invalid select { border-color: #b23b2e; }

.segmented { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.segmented legend { font-size: var(--fs-sm); color: var(--ink-3); margin-bottom: .5rem; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span { display: grid; place-items: center; height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-weight: 600; font-size: var(--fs-sm); transition: all .3s var(--ease-out); }
.segmented input:checked + span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.segmented input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.segmented.is-invalid span { border-color: #b23b2e; }

.form .btn { margin-top: .5rem; min-height: 58px; }
.form__legal { font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.form__status { font-size: var(--fs-sm); text-align: center; min-height: 1.5em; font-weight: 600; }
.form__status.is-ok { color: #2f6e40; } .form__status.is-err { color: #a3352a; }

@media (hover: hover) and (pointer: fine) {
  html { scrollbar-width: none; }
  html::-webkit-scrollbar,
  body::-webkit-scrollbar { display: none; }
}

/* дорожка: широкая невидимая зона захвата */
.ov-bar {
  position: absolute;
  width: 14px;
  opacity: 0;
  transition: opacity .25s;
  touch-action: none;
}
.ov-bar:hover,
.ov-bar.is-visible,
.ov-bar.is-dragging { opacity: 1; }

/* сам ползунок: тонкий, при наведении толще */
.ov-thumb {
  position: absolute;
  right: 3px;
  width: 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, .35);
  /*box-shadow: 0 0 0 1px rgba(255, 255, 255, .5);*/
  transition: width .15s, background-color .15s;
}
.ov-bar:hover .ov-thumb,
.ov-bar.is-dragging .ov-thumb {
  width: 9px;
  background: rgba(0, 0, 0, .5);
}

.ov-bar--modal {
  top: var(--news-radius);
  bottom: var(--news-radius);
  right: 2px;
  z-index: 2;
}
.news-modal:hover .ov-bar--modal { opacity: 1; }

.ov-bar--page {
  position: fixed;
  top: 8px;
  bottom: 8px;
  right: 1px;
  z-index: 9999;
}

/* во время любого перетаскивания: без выделения текста, курсор «рука» */
.is-scroll-dragging,
.is-scroll-dragging * {
  user-select: none !important;
  cursor: grabbing !important;
}

.news-modal {
  --news-radius: 28px;
  padding: 0;
  border-radius: var(--news-radius);
  overflow: hidden !important;      /* рамка только обрезает углы */
  max-height: none !important;      /* высоту держит inner */
}

.news-modal .news-modal__inner {
  max-height: 90vh;
  max-height: 90dvh;                /* корректно на мобильных с адресной строкой */
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.news-modal .news-modal__inner::-webkit-scrollbar { display: none; }

/* Афиша в окне новости: окно поджимается под картинку, афиша целиком по высоте экрана */
.news-modal:has(.news-modal__poster) { width: auto; }
.news-modal__poster { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(90dvh - 1rem); margin: 0 auto; }

@media (max-width: 900px) { .career__grid { grid-template-columns: 1fr; } .career__text { position: static; } }

/* ==========================================================================
   Contacts
   ========================================================================== */
.contacts { position: relative; display: grid; grid-template-columns: 1fr minmax(0, 32rem); min-height: 40rem; background: var(--night); }
.contacts__map { position: relative; min-height: 26rem; background: #241b14; overflow: hidden; }
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.contacts__map.is-active iframe { pointer-events: auto; }
.contacts__map-lock {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 1.25rem; cursor: pointer;
}
.contacts__map-lock span {
  padding: .6rem 1.1rem; border-radius: 999px; background: rgba(26, 19, 14, .82); color: var(--paper);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .02em; transition: opacity .3s;
}
.contacts__map-lock:hover span, .contacts__map-lock:focus-visible span { background: var(--ink); }
.contacts__map.is-active .contacts__map-lock { display: none; }
.contacts__map-open {
  position: absolute; z-index: 2; top: 1rem; right: 1rem; padding: .55rem 1rem; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-size: var(--fs-xs); font-weight: 600; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .5);
}
.contacts__map-open:hover { background: var(--gold); }
.contacts__card { padding: clamp(2.5rem, 5vw, 4.5rem); color: rgba(255, 253, 249, .72); display: flex; flex-direction: column; justify-content: center; }
.contacts__title { color: var(--paper); font-size: clamp(2.25rem, 1.6rem + 2.2vw, 3.5rem); margin-bottom: 2.25rem; }
.contacts__title em { color: var(--gold); }
.contacts__phones { display: grid; gap: 1.1rem; margin-bottom: 2.25rem; }
.contacts__phones li { display: flex; flex-direction: column; }
.contacts__phones a { font-family: var(--f-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); color: var(--paper); font-weight: 600; line-height: 1.15; transition: color .3s; }
.contacts__phones a:hover { color: var(--gold); }
.contacts__phones span { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; }
.contacts__social { display: flex; flex-wrap: wrap; gap: .6rem; }
.contacts__taxi { margin-top: 1.25rem; align-self: flex-start; }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } .contacts__map { order: 2; min-height: 22rem; } }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--night); color: rgba(255, 253, 249, .62); padding: clamp(3.5rem, 6vw, 5.5rem) 0 2rem; border-top: 1px solid rgba(255, 253, 249, .08); font-size: var(--fs-sm); }
.site-footer__top { display: grid; grid-template-columns: 1.4fr 1fr .8fr 1fr; gap: clamp(2rem, 4vw, 4rem); padding-bottom: clamp(2.5rem, 4vw, 3.5rem); }
.site-footer__brand img { width: 220px; height: auto; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 22rem; line-height: 1.6; }
.site-footer__social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.site-footer__social .icon-btn { border-color: rgba(255, 253, 249, .2); color: var(--paper); }
.site-footer__social .icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.site-footer__col h2 { font-family: var(--f-display); font-size: 1.05rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.site-footer__col ul { display: grid; gap: .8rem; }
.site-footer__col li { display: flex; flex-direction: column; line-height: 1.35; }
.site-footer__col li span { font-size: var(--fs-xs); color: rgba(255, 253, 249, .4); margin-top: .15rem; }
.site-footer__col a { color: rgba(255, 253, 249, .88); transition: color .3s; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__col .is-soon { color: rgba(255, 253, 249, .5); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center;
  padding-top: 1.75rem; border-top: 1px solid rgba(255, 253, 249, .1); font-size: var(--fs-xs); color: rgba(255, 253, 249, .45);
}
.site-footer__bottom a:hover { color: var(--paper); }
.site-footer .link-arrow { color: rgba(255, 253, 249, .8); }
@media (max-width: 980px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .site-footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Mobile quick bar
   ========================================================================== */
.quickbar { display: none; }
@media (max-width: 760px) {
  .quickbar {
    position: fixed; z-index: 150; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 6px;
    background: rgba(36, 27, 20, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-radius: 999px; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6);
    transform: translateY(160%); transition: transform .6s var(--ease-out);
  }
  .quickbar.is-shown { transform: none; }
  .quickbar a { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 48px; border-radius: 999px; color: var(--paper); font-size: var(--fs-sm); font-weight: 600; }
  .quickbar a:first-child { background: var(--gold); color: var(--ink); }
  .quickbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .cookie { bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-footer { padding-bottom: 6.5rem; }
}

/* ==========================================================================
   Cookie notice
   ========================================================================== */
.cookie {
  position: fixed; left: 50%; bottom: 1rem; z-index: 200; transform: translateX(-50%);
  width: min(36rem, calc(100% - 2rem)); display: flex; align-items: center; gap: 1rem;
  padding: .9rem .9rem .9rem 1.25rem; border-radius: 18px; background: var(--ink); color: rgba(255, 253, 249, .8);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .6); font-size: var(--fs-xs); animation: cookieIn .7s var(--ease-out);
}
.cookie a { color: var(--gold); text-decoration: underline; }
.cookie .btn { flex-shrink: 0; }
@keyframes cookieIn { from { opacity: 0; transform: translate(-50%, 20px); } }

/* looping animations pause while off-screen (class set by JS) */
.is-paused, .is-paused *, .is-paused *::after { animation-play-state: paused !important; }

/* ==========================================================================
   Scroll reveal (progressive enhancement: only hidden when JS is active)
   ========================================================================== */
.js [data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .menu-card:nth-child(even)[data-reveal].is-visible { transform: translateY(3rem); }
@media (max-width: 520px) { .js .menu-card:nth-child(even)[data-reveal].is-visible { transform: none; } }

/* ==========================================================================
   Reduced motion
   ========================================================================== */
/* phones & touch tablets: calmer, earlier reveals; no parallax, blur or blend layers */
@media (max-width: 900px), (pointer: coarse) {
  body::after { display: none; }
  .site-header.is-scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(246, 238, 226, .97); }
  .quickbar { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; background: rgba(36, 27, 20, .97) !important; }
  .btn--ghost-light { backdrop-filter: none; }
  .hero__wind { display: none; }
  .menu-card__media img, .gallery__btn img, .branch__media img, .news-card__media img { transition: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }   /* content is simply there — no off-screen work */
  .js .menu-card:nth-child(even)[data-reveal].is-visible { transform: none; }
  .menu-card:nth-child(even) { transform: none; }
  .hero__media { will-change: auto; }
  .sourdough__bg { inset: 0; will-change: auto; }
  .sour-list li { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(26, 19, 14, .9); }
  .hero__media img { animation-duration: 1.4s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0ms !important; }
  [data-parallax] { transform: none !important; }
  .marquee__track { animation: none; }
}


