/* =========================================================
   GoD by BAZA — «Спектакль в XII актах»
   БЭМ, mobile-first. Брейкпоинты: 48rem, 64rem, 90rem.
   На десктопе (≥64rem) каждый акт — «сцена» 1680×980,
   все размеры задаются в rem. Единая формула пропорций — в html:
   1rem = 16 дизайн-пикселей макета, вписанного в экран,
   поэтому композиция одинакова на любом экране.
   ========================================================= */

/* ===== Шрифты (self-host, subset cyrillic + latin) ===== */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-tight-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400; font-display: swap; src: url('../assets/fonts/inter-tight-latin-400-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-tight-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 500; font-display: swap; src: url('../assets/fonts/inter-tight-latin-500-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-tight-cyrillic-600-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 600; font-display: swap; src: url('../assets/fonts/inter-tight-latin-600-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/inter-tight-cyrillic-800-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 800; font-display: swap; src: url('../assets/fonts/inter-tight-latin-800-normal.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }
@font-face { font-family: 'STIX Two Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/stix-two-text-cyrillic-400-italic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'STIX Two Text'; font-style: italic; font-weight: 400; font-display: swap; src: url('../assets/fonts/stix-two-text-latin-400-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215; }

/* ===== Токены ===== */
@property --chrome-ink { syntax: '<color>'; inherits: true; initial-value: #121214; }
@property --chrome-paper { syntax: '<color>'; inherits: true; initial-value: #ede6d6; }
@property --chrome-accent { syntax: '<color>'; inherits: true; initial-value: #5f1401; }
:root {
  /* Палитра */
  --color-paper: #ede6d6;
  --color-paper-soft: #f6efe2;
  --color-paper-line: #ddd7c8;
  --color-night: #121214;
  --color-night-soft: #1d1d1f;
  --color-night-line: #343436;
  --color-burgundy: #5f1401;
  --color-burgundy-light: #8c2513;
  --color-tan: #c3a483;
  --color-bronze: #a57c50;
  --color-bronze-dark: #7a4f24;
  --color-grey: #9a9a9b;
  --color-grey-dark: #5c5c5e;
  --color-online: #00e764;
  --color-white: #ffffff;

  /* Шрифты */
  --font-sans: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --font-serif: 'STIX Two Text', 'Georgia', serif;

  /* Шкала (мобильная по умолчанию) */
  --fs-display: clamp(2.5rem, 9vw, 3.5rem);
  --fs-title: clamp(2.25rem, 8vw, 3rem);
  --fs-serif-xl: clamp(2rem, 7vw, 2.75rem);
  --fs-serif-l: 1.75rem;
  --fs-body: 1rem;
  --fs-small: 0.8125rem;
  --fs-micro: 0.6875rem;

  /* Отступы и радиусы */
  --gap-xs: 0.5rem;
  --gap-s: 1rem;
  --gap-m: 1.5rem;
  --gap-l: 2.5rem;
  --gap-xl: 4rem;
  --side: 1.25rem;
  --radius-s: 0.375rem;
  --radius-m: 0.75rem;
  --radius-l: 1.125rem;
  --radius-pill: 62.4375rem;

  /* Движение */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --dur-micro: 0.35s;
  --dur-reveal: 1.2s;

  /* Хром */
  --header-h: 4rem;
  --hud-h: 3.5rem;
  --z-stage: 1;
  --z-chrome: 50;
  --z-cookie: 60;
  --z-cursor: 90;
  --z-preloader: 100;

}

@media (min-width: 1024px) and (orientation: landscape) {
  @property --chrome-ink { syntax: '<color>'; inherits: true; initial-value: #121214; }
@property --chrome-paper { syntax: '<color>'; inherits: true; initial-value: #ede6d6; }
@property --chrome-accent { syntax: '<color>'; inherits: true; initial-value: #5f1401; }
:root {
    --header-h: 5.5rem;
  }
}

/* ===== Reset / base ===== */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
em { font-style: normal; }
cite { font-style: normal; }
kbd { font: inherit; }

html { -webkit-text-size-adjust: 100%; font-size: 100%; }
/* Единая формула пропорций: макет 1680×980 вписывается в экран, 1rem = 16 дизайн-px */
@media (min-width: 1024px) and (orientation: landscape) {
  html { font-size: calc(min(100vw / 1680, 100svh / 980) * 16); }
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  transition: --chrome-ink 1s var(--ease-in-out), --chrome-paper 1s var(--ease-in-out), --chrome-accent 1s var(--ease-in-out);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.5;
  color: var(--color-night);
  background: var(--color-night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--color-burgundy); color: var(--color-paper); }

:focus-visible { outline: 0.125rem solid var(--color-tan); outline-offset: 0.1875rem; border-radius: 0.25rem; }

/* ===== Утилиты ===== */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: -6.25rem; left: 1rem; z-index: 200; padding: .75rem 1rem;
  background: var(--color-paper); color: var(--color-night); border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

/* Курсивный акцент — главный «голос» сайта */
.accent { font-family: var(--font-serif); font-style: italic; color: var(--accent); letter-spacing: 0; }

/* ===== Прелоадер-занавес ===== */
.preloader { position: fixed; inset: 0; z-index: var(--z-preloader); display: none; pointer-events: none; background: var(--color-night); color: var(--color-paper); }
.js .preloader { display: block; }
.preloader__track { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(237, 230, 214, .1); }
.preloader__line { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--color-tan); }
.preloader__count {
  position: absolute; top: 50%; left: 0; translate: 0 calc(-100% - 0.625rem);
  font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; color: var(--color-tan); font-variant-numeric: tabular-nums;
}
.preloader__corner { position: absolute; bottom: 2.75rem; font-size: 0.75rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; opacity: .5; }
.preloader__corner--left { left: 3rem; }
.preloader__corner--right { right: 3rem; }

/* ===== Курсор ===== */
.cursor { position: fixed; inset: 0; z-index: var(--z-cursor); pointer-events: none; display: none; }
.cursor__ring, .cursor__dot { position: absolute; top: 0; left: 0; border-radius: 50%; will-change: transform; }
.cursor__dot { width: 0.375rem; height: 0.375rem; margin: -0.1875rem 0 0 -0.1875rem; background: var(--color-tan); }
.cursor__ring {
  width: 2.5rem; height: 2.5rem; margin: -1.25rem 0 0 -1.25rem;
  border: 1px solid rgba(195, 164, 131, .7);
  display: flex; align-items: center; justify-content: center;
  transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .45s var(--ease-out), border-color .45s var(--ease-out);
}
.cursor__label {
  font-family: var(--font-serif); font-style: italic; font-size: 1rem; color: var(--color-burgundy);
  opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease-out);
}
.cursor--active .cursor__ring { width: 3.5rem; height: 3.5rem; margin: -1.75rem 0 0 -1.75rem; border-color: var(--color-tan); }
.cursor--text .cursor__ring { width: 5.5rem; height: 5.5rem; margin: -2.75rem 0 0 -2.75rem; background: rgba(237, 230, 214, .94); border-color: transparent; }
.cursor--text .cursor__label { opacity: 1; transform: scale(1); }
.cursor--text .cursor__dot { opacity: 0; }
.cursor--hidden .cursor__ring, .cursor--hidden .cursor__dot { opacity: 0; }
.cursor__ring, .cursor__dot { transition-property: width, height, margin, background-color, border-color, opacity; }
@media (hover: hover) and (pointer: fine) {
  .js .cursor { display: block; }
}

/* ===== Прогресс ===== */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 0.125rem; z-index: var(--z-chrome); pointer-events: none; }
.progress__bar { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--color-burgundy), var(--color-tan)); }

/* ===== Хедер ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-chrome);
  height: var(--header-h); display: flex; align-items: center; gap: .75rem; padding: 0 var(--side);
  color: var(--chrome-ink, var(--color-night));
  transition: color 1s var(--ease-in-out);
  pointer-events: none;
}
.header > * { pointer-events: auto; }
.header__logo { flex: none; position: relative; display: block; width: 2.5rem; height: 2.5rem; border-radius: 50%; margin-right: 1.75rem; transition: scale .4s var(--ease-out); }
.header__logo:hover { scale: 1.06; }
/* Логотип одного цвета во всех актах: ночной диск, золотой знак, золотое кольцо сториз */
.header__logo-img { position: absolute; inset: 12%; width: 76%; height: 76%; border-radius: 50%; z-index: 2; }
.header__logo-ring { position: absolute; inset: 0; border-radius: 50%; border: 0.125rem solid var(--color-tan); z-index: 1; background: var(--color-night); }
/* Выглядывающие сториз: две аватарки за логотипом справа */
.header__logo-peek { position: absolute; left: calc(100% - 0.625rem); top: 50%; translate: 0 -50%; display: flex; width: max-content; z-index: 0; transition: opacity .35s var(--ease-out), translate .5s var(--ease-out); }
.header__logo-peek img { flex: none; width: 1.375rem; height: 1.375rem; border-radius: 50%; object-fit: cover; border: 0.125rem solid var(--color-night); }
.header__logo-peek img + img { margin-left: -0.875rem; position: relative; z-index: -1; }
.header__logo:hover .header__logo-peek { translate: 0.25rem -50%; }
.stories--open .header__logo-peek { opacity: 0; translate: -0.5rem -50%; }
.header__brand { font-weight: 600; font-size: .875rem; white-space: nowrap; }
.header__brand-by { font-family: var(--font-serif); font-style: italic; font-weight: 400; }
.header__brand { display: inline-flex; align-items: center; gap: .4rem; }
.header__actions { display: none; margin-left: auto; }
.header__button {
  display: inline-flex; align-items: center; height: 2.5rem; padding: 0 1rem; border-radius: var(--radius-pill);
  font-size: .8125rem; font-weight: 600; transition: translate var(--dur-micro) var(--ease-out), background-color 1s var(--ease-in-out), color 1s var(--ease-in-out), border-color 1s var(--ease-in-out);
}
.header__button--solid { background: var(--chrome-ink, var(--color-night)); color: var(--chrome-paper, var(--color-paper)); }
.header__button--outline { border: 1px solid currentColor; }
.header__burger {
  margin-left: auto; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid currentColor;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.3125rem;
}
.header__burger span { width: 1rem; height: 0.0938rem; background: currentColor; transition: transform .4s var(--ease-out); }
.header__burger--open span:first-child { transform: translateY(0.2031rem) rotate(45deg); }
.header__burger--open span:last-child { transform: translateY(-0.2031rem) rotate(-45deg); }

/* Меню: на мобильных — полноэкранный оверлей, на десктопе — чёрная пилюля по центру */
.menu {
  position: fixed; inset: 0; z-index: -1; padding: 6rem var(--side) 2rem;
  background: var(--color-night); color: var(--color-paper);
  display: flex; flex-direction: column; gap: 2rem;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease-out), visibility .5s;
}
.menu--open { opacity: 1; visibility: visible; }
.menu__list { display: flex; flex-direction: column; gap: .25rem; }
.menu__link { font-family: var(--font-serif); font-style: italic; font-size: 2.25rem; }
.menu__item--skull { display: none; }
.menu__kit { align-self: flex-start; display: block; }
.menu__kit-pill {
  display: flex; flex-direction: column; align-items: center; padding: .55rem 1.4rem; border-radius: var(--radius-pill);
  background: var(--color-bronze); color: var(--color-paper); line-height: 1.25;
}
.menu__kit-title { font-weight: 600; font-size: .875rem; }
.menu__kit-meta { font-family: var(--font-serif); font-style: italic; font-size: .75rem; opacity: .64; }

@media (min-width: 1024px) and (orientation: landscape) {
  .header { padding: 0 1.5rem 0 1.25rem; gap: 1rem; align-items: flex-start; padding-top: 1.25rem; }
  .header__logo { width: 3rem; height: 3rem; margin-right: 2.25rem; }
  .header__logo-peek img { width: 1.625rem; height: 1.625rem; }
  .header__brand { margin-top: 0.875rem; }
  .header__actions { display: flex; margin-top: 0.25rem; }
  .header__burger { display: none; }

  .menu {
    position: absolute; inset: auto; z-index: auto; left: 50%; top: 1.5rem; transform: translateX(-50%);
    padding: 0; background: none; opacity: 1; visibility: visible; gap: 0; align-items: center; transition: none;
  }
  .menu__list {
    flex-direction: row; align-items: center; gap: 1.625rem; height: 2.5rem; padding: 0 1.5rem; border-radius: var(--radius-pill);
    background: var(--color-night); color: var(--color-paper); transition: background-color 1s var(--ease-in-out), box-shadow 1s;
  }
  .page[data-theme="dark"] .menu__list { background: transparent; }
  .menu__item--skull { display: block; }
  .menu__skull { width: 1.5rem; height: 1.5rem; transition: transform .6s var(--ease-out); }
  .menu__list:hover .menu__skull { transform: rotate(-12deg) scale(1.15); }
  .menu__link { font-family: var(--font-sans); font-style: normal; font-size: 0.8125rem; font-weight: 500; position: relative; }
  .menu__link::after {
    content: ''; position: absolute; left: 0; right: 0; bottom: -0.25rem; height: 1px; background: currentColor;
    transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
  }
  .menu__link:hover::after { transform: scaleX(1); transform-origin: left; }
  /* Вкладка под меню: тёмная «ушка» с вогнутыми углами, внутри бронзовая пилюля (как в макете: 231×46) */
  .menu__kit { position: relative; align-self: center; width: 11.5625rem; height: 2.875rem; padding: 0.125rem 0.25rem 0.25rem; background: var(--color-night); border-radius: 0 0 1.4375rem 1.4375rem; }
  .menu__kit::before, .menu__kit::after { content: ''; position: absolute; top: 0; width: 1.4375rem; height: 1.4375rem; }
  .menu__kit::before { right: calc(100% - 1px); background: radial-gradient(circle at 0 100%, transparent 1.4062rem, var(--color-night) 1.4375rem); }
  .menu__kit::after { left: calc(100% - 1px); background: radial-gradient(circle at 100% 100%, transparent 1.4062rem, var(--color-night) 1.4375rem); }
  .menu__kit-pill { height: 2.5rem; padding: 0; justify-content: center; gap: 0; transition: background-color var(--dur-micro); }
  .menu__kit:hover .menu__kit-pill { background: #b88d5e; }
  .menu__kit, .menu__kit::before, .menu__kit::after { transition: background-color 1s var(--ease-in-out), opacity 1s var(--ease-in-out); }
  .page[data-theme="dark"] .menu__kit { background-color: transparent; }
  .page[data-theme="dark"] .menu__kit::before, .page[data-theme="dark"] .menu__kit::after { opacity: 0; }
  .menu__kit-title { font-size: 0.75rem; font-weight: 600; line-height: 1.125rem; }
  .menu__kit-meta { font-size: 0.6875rem; line-height: 0.875rem; }
}

/* ===== Сториз (логотип раскрывает столбик кружков, как на ba-za.gg) ===== */
.stories { position: relative; flex: none; }
.stories__list {
  position: absolute; left: calc(100% - 1.25rem); top: 50%; translate: 0 -50%; display: flex; flex-direction: row; gap: 0.625rem;
  pointer-events: none; z-index: 3;
}
/* кружки выезжают вправо из-за логотипа */
.stories__item { opacity: 0; translate: -1.5rem 0; scale: .6; transition: opacity .45s var(--ease-out), translate .6s var(--ease-out), scale .6s var(--ease-out); }
.stories--open .stories__list { pointer-events: auto; }
.stories--open .stories__item { opacity: 1; translate: 0 0; scale: 1; }
.stories--open .stories__item:nth-child(2) { transition-delay: .05s; }
.stories--open .stories__item:nth-child(3) { transition-delay: .1s; }
.stories--open .stories__item:nth-child(4) { transition-delay: .15s; }
.stories--open .stories__item:nth-child(5) { transition-delay: .2s; }
/* пока сториз раскрыты, подпись бренда уступает им место */
.header__brand { transition: opacity .3s var(--ease-out); }
.header:has(.stories--open) .header__brand { opacity: 0; pointer-events: none; }
.stories__avatar {
  display: block; width: 2.5rem; height: 2.5rem; padding: 0.125rem; border-radius: 50%;
  background: #5c5c5e; transition: scale .35s var(--ease-out);
}
.stories__avatar.is-new { background: conic-gradient(from 210deg, var(--color-burgundy), var(--color-tan), var(--color-burgundy)); }
.stories__avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 0.125rem solid var(--color-night); }
.stories__avatar:hover { scale: 1.1; }
@media (min-width: 1024px) and (orientation: landscape) { .stories__avatar { width: 3rem; height: 3rem; } }

.story-viewer { padding: 0; border: 0; background: none; max-width: none; max-height: none; width: 100vw; height: 100svh; overflow: hidden; }
.story-viewer::backdrop { background: rgba(10, 10, 12, .82); -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem); }
.story-viewer[open] { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 0.75rem; }
.story-viewer__close { color: var(--color-paper); font-size: 0.8125rem; display: flex; flex-direction: column; align-items: center; gap: 0.25rem; }
.story-viewer__close span { font-size: 1.375rem; line-height: 1; }
.story-viewer__phone { position: relative; height: min(80svh, 45rem); aspect-ratio: 9 / 16; max-width: 94vw; border-radius: 1rem; overflow: hidden; background: #000; }
.story-viewer__slide { position: absolute; inset: 0; display: none; }
.story-viewer__slide.is-active { display: block; }
.story-viewer__slide video, .story-viewer__slide img { width: 100%; height: 100%; object-fit: cover; }
.story-viewer__bars { position: absolute; left: 0.625rem; right: 0.625rem; top: 0.625rem; z-index: 3; display: flex; gap: 0.25rem; }
.story-viewer__bar { flex: 1; height: 0.125rem; border-radius: 1px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-viewer__bar i { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; transform: scaleX(0); }
.story-viewer__nav { position: absolute; top: 0; bottom: 5rem; width: 35%; z-index: 2; }
.story-viewer__nav--prev { left: 0; }
.story-viewer__nav--next { right: 0; }
.story-viewer .story-viewer__more { position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; z-index: 3; }

/* ===== Сцена и акты ===== */
.stage { position: relative; z-index: var(--z-stage); }

.act {
  --ink: var(--color-night);
  --paper: var(--color-paper);
  --accent: var(--color-bronze-dark);
  --muted: var(--color-grey-dark);
  position: relative; overflow: hidden;
  background: var(--paper); color: var(--ink);
  padding: calc(var(--header-h) + 2.5rem) var(--side) calc(var(--hud-h) + 3rem);
}
.act--dark {
  --ink: var(--color-paper);
  --paper: var(--color-night);
  --accent: var(--color-tan);
  --muted: var(--color-grey);
}
.act__stage { position: relative; display: flex; flex-direction: column; gap: var(--gap-m); }
.act__title { font-weight: 800; font-size: var(--fs-title); line-height: 1; letter-spacing: -0.03em; }

/* Декоративная сетка окружностей — «чертёж сцены» */
/* Декоративная сетка окружностей — вектор из макета, линии всегда 1 физический пиксель */
.pattern { position: absolute; inset: 0; pointer-events: none; }
.pattern__svg { width: 100%; height: 100%; max-width: none; overflow: visible; }
.pattern__svg ellipse, .pattern__svg circle, .pattern__svg line { fill: none; stroke: #ddd7c8; stroke-width: 1; vector-effect: non-scaling-stroke; shape-rendering: geometricPrecision; }
.pattern--dark .pattern__svg ellipse, .pattern--dark .pattern__svg circle, .pattern--dark .pattern__svg line { stroke: rgba(237, 230, 214, .06); }

@media (min-width: 1024px) and (orientation: landscape) {
  /* Горизонтальный режим включает JS классом .stage--horizontal; без JS акты стоят столбиком */
  .act { --stage-w: 1680; width: max(100vw, calc(var(--stage-w) * 0.0625rem)); height: 100svh; padding: 0; flex: none; display: flex; align-items: center; justify-content: center; }
  .act--wide { --stage-w: 2564; }
  .act--wider { --stage-w: 2712; }
  /* Сцена всегда 1680×980 дизайн-пикселей; на сверхшироких экранах акт шире сцены, и она стоит по центру */
  .act__stage { position: relative; display: block; flex: none; width: calc(var(--stage-w) * 0.0625rem); height: 61.25rem; }
  /* (0,2,0): сильнее одиночных классов блоков, поэтому на десктопе всё внутри сцены позиционируется абсолютно */
  .act .act__stage > * { position: absolute; }
  .act .act__stage > .pattern { inset: 0; }
  .act__title { font-size: 3.75rem; left: 5.25rem; top: 9.25rem; }

  .stage--horizontal { height: 100svh; overflow: hidden; }
  .stage--horizontal .stage__track { display: flex; height: 100%; width: max-content; will-change: transform; }
}
/* ===== Общие элементы: кнопки, поля, чекбоксы, ссылки ===== */
.button {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.75rem; padding: 0 1.5rem; border-radius: var(--radius-pill); overflow: hidden;
  font-size: .9375rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: box-shadow var(--dur-micro);
}
.button::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; background: rgba(255,255,255,.14);
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.button:hover::before { transform: translateY(0); }
.button--accent { background: var(--color-burgundy); color: var(--color-paper); box-shadow: 0 0.625rem 1.625rem rgba(95, 20, 1, .35); }
.button--ghost-light { background: var(--color-night-soft); color: var(--color-paper); }
.button--wide { width: 100%; }
.button--tall { height: 3.25rem; }
.button--icon img { width: 1.125rem; height: 1.125rem; }

.field {
  width: 100%; height: 3rem; padding: 0 1.1rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  background: var(--color-white); color: var(--color-night); font-size: .9375rem;
  transition: border-color var(--dur-micro), box-shadow var(--dur-micro);
}
.field::placeholder { color: var(--color-grey); }
.field:focus { outline: none; border-color: var(--color-bronze); box-shadow: 0 0 0 0.25rem rgba(165, 124, 80, .18); }
.field.is-invalid { border-color: var(--color-burgundy-light); }

.checkbox { display: flex; gap: .75rem; align-items: flex-start; font-size: .75rem; line-height: 1.35; cursor: pointer; }
.checkbox__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.checkbox__box {
  flex: none; width: 1.25rem; height: 1.25rem; border-radius: 0.375rem; border: 0.0938rem solid var(--color-bronze-dark); background: var(--color-white);
  display: flex; align-items: center; justify-content: center; transition: background-color var(--dur-micro);
}
.checkbox__box::after {
  content: ''; width: 0.625rem; height: 0.375rem; border-left: 0.125rem solid var(--color-paper); border-bottom: 0.125rem solid var(--color-paper);
  transform: rotate(-45deg) scale(0); transition: transform .3s var(--ease-out); margin-top: -0.125rem;
}
.checkbox__input:checked + .checkbox__box { background: var(--color-burgundy); border-color: var(--color-burgundy); }
.checkbox__input:checked + .checkbox__box::after { transform: rotate(-45deg) scale(1); }
.checkbox__input:focus-visible + .checkbox__box { outline: 0.125rem solid var(--color-tan); outline-offset: 0.125rem; }
.checkbox__input.is-invalid + .checkbox__box { border-color: var(--color-burgundy-light); box-shadow: 0 0 0 0.1875rem rgba(140, 37, 19, .2); }
.checkbox__text a { text-decoration: underline; text-underline-offset: 0.125rem; }

.text-link { font-size: .9375rem; font-weight: 500; }
.text-link em { font-family: var(--font-serif); font-style: italic; color: var(--accent); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out); }
.text-link:hover em { background-size: 0 1px; background-position: 100% 100%; }

/* Круглое видео с подписью по дуге (размеры в дизайн-пикселях макета: 224×224) */
.round-video { position: relative; width: 14rem; height: 14rem; flex: none; text-align: left; }
.round-video__arc { position: absolute; left: 0; top: -3.75rem; width: 22.5rem; max-width: none; height: 18.125rem; overflow: visible; pointer-events: none; }
.round-video__text { font-family: var(--font-sans); font-weight: 500; font-size: 15px; letter-spacing: 0; fill: #8a8a8c; }
.round-video__circle {
  position: absolute; left: 0; top: 1.75rem; width: 12.25rem; height: 12.25rem;
  border-radius: 50%; border: 1px solid rgba(237, 230, 214, .16); padding: 0.4375rem;
}
.round-video__thumb {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 1px solid rgba(237, 230, 214, .04);
  box-shadow: 0 0 6.625rem rgba(195, 164, 131, .4); transition: scale .6s var(--ease-out);
}
.round-video__play {
  position: absolute; left: 50%; top: 50%; width: 1rem; height: 1.125rem; translate: -40% -50%;
  background: var(--color-paper); clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 0.125rem;
}
.round-video:hover .round-video__thumb { scale: 1.06; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Акт I · Hero ===== */
.hero { padding-bottom: calc(var(--hud-h) + 1.5rem); background: linear-gradient(180deg, var(--color-paper) 0 42%, #3a2e2a 62%, var(--color-night) 82%); }
.hero .act__stage { min-height: calc(100svh - var(--header-h) - 6rem); }
.hero__title { font-weight: 800; font-size: var(--fs-display); line-height: .98; letter-spacing: -0.035em; position: relative; z-index: 3; }
.hero__elf { position: absolute; right: -34%; top: 9rem; width: 100%; max-width: 30rem; z-index: 1; pointer-events: none; }
.hood { position: absolute; left: 2%; top: 13rem; width: 46%; max-width: 15rem; aspect-ratio: 564 / 844; z-index: 2; pointer-events: none; }
.hood__shake { position: absolute; inset: 0; transform-origin: 60% 82%; animation: hood-shake 3.2s cubic-bezier(.45, 0, .25, 1) infinite; }
.hood__layer { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Девушка потряхивает палочкой с маской: короткая серия качаний и пауза */
@keyframes hood-shake {
  0%, 52%, 100% { rotate: 0deg; }
  60% { rotate: -3.2deg; } 68% { rotate: 2.6deg; } 76% { rotate: -1.8deg; } 84% { rotate: 1deg; } 92% { rotate: -.4deg; }
}
/* Логотип внутри шлема: позиция из макета (кадр 256×256 в слое 564×844) */
.hood__cavity { position: absolute; inset: 0; -webkit-mask: url('../assets/img/hood-mask.png') center / 100% 100% no-repeat; mask: url('../assets/img/hood-mask.png') center / 100% 100% no-repeat; }
.hood__logo { position: absolute; left: 27.3%; top: 19.67%; width: 45.4%; aspect-ratio: 1; }
.hood__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.hood__sym { position: absolute; left: 50%; top: 50%; width: 37.6%; translate: -50% -50%; }
.hero__clouds { position: absolute; left: -40%; width: 180%; max-width: none; pointer-events: none; }
.hero__clouds--back { top: 17rem; z-index: 2; }
.hero__lead { position: relative; z-index: 3; max-width: 22rem; margin-top: 21rem; }
.hero__update { position: relative; z-index: 3; display: flex; align-items: center; gap: .9rem; }
.hero__update-badge { width: 3rem; height: 3rem; animation: spin 30s linear infinite; }
.hero__update-label { display: block; font-size: var(--fs-small); font-weight: 500; }
.hero__update-title { font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; }
.hero .hero__update, .hero .hero__lead { color: var(--color-paper); text-shadow: 0 1px 0.75rem rgba(0,0,0,.5); }
.hero .hero__lead .accent { color: var(--color-tan); }

/* Стеклянная ссылка «Изучить концепцию» (вариант 06) */
.concept-link {
  position: relative; z-index: 4; align-self: flex-start; display: inline-flex; align-items: center; gap: .85rem;
  height: 3.5rem; padding: 0 1.5rem 0 .5rem; border-radius: var(--radius-pill);
  background: rgba(18, 18, 20, .55); border: 1px solid rgba(255,255,255,.18); color: var(--color-paper);
  -webkit-backdrop-filter: blur(0.875rem); backdrop-filter: blur(0.875rem);
  box-shadow: 0 0.625rem 1.875rem rgba(0,0,0,.3); font-weight: 600; font-size: 1rem;
  transition: background-color var(--dur-micro), border-color var(--dur-micro);
}
.concept-link__icon {
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(237, 230, 214, .12); color: var(--color-tan); transition: transform .6s var(--ease-out), background-color .4s;
}
.concept-link__meta { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--color-tan); }
.concept-link:hover { background: rgba(18, 18, 20, .75); border-color: rgba(195, 164, 131, .5); }
.concept-link:hover .concept-link__icon { transform: rotate(-10deg) scale(1.08); background: var(--color-tan); color: var(--color-night); }

/* Карточка запуска с таймером */
/* Карточка старта — точная копия блока «timer» из макета (346×264, всё в дизайн-пикселях) */
.launch-card {
  position: relative; z-index: 4; width: 21.625rem; border-radius: 1rem;
  background: var(--color-night); color: var(--color-paper); box-shadow: 0 1.875rem 3.75rem rgba(0,0,0,.35);
}
.launch-card__head { padding: 1rem 1rem 0.5rem; }
.launch-card__date { font-size: 0.8125rem; line-height: 1.125rem; font-weight: 600; color: var(--color-tan); margin-bottom: 0.375rem; }
.launch-card__name { font-family: var(--font-serif); font-style: italic; font-size: 2.5rem; line-height: 3rem; }
.launch-card__obt { font-family: var(--font-serif); font-style: italic; font-size: 0.9375rem; line-height: 1.125rem; color: var(--color-paper); opacity: .64; }
.launch-card__panel { margin: 0.5rem; padding: 0.5rem; border-radius: 1.25rem 1.25rem 1.625rem 1.625rem; border: 1px solid #343436; }
.launch-card__buttons { display: grid; grid-template-columns: 1fr 1fr; }
.launch-card__buttons .button { height: 2.5rem; padding: 0; font-size: 0.8125rem; box-shadow: none; }
.button--ghost-light { background: var(--color-night-soft); color: var(--color-paper); }

.countdown { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.5rem; height: 4.875rem; }
.countdown__cell { display: flex; flex-direction: column; align-items: center; width: 6.0625rem; }
.countdown__value { font-weight: 800; font-size: 2rem; line-height: 2.25rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.countdown__unit { margin-top: 0.125rem; font-family: var(--font-serif); font-style: italic; font-size: 0.75rem; line-height: 1rem; color: var(--color-grey); }
.countdown__sep { display: flex; flex-direction: column; gap: 0.25rem; padding-top: 0.875rem; }
.countdown__sep i { display: block; width: 0.25rem; height: 0.25rem; border-radius: 50%; background: var(--color-night-line); }

@media (min-width: 768px) {
  .hero__elf { right: -8%; max-width: 38.75rem; width: 70%; }
  .hood { left: 22%; max-width: 18.75rem; }
  .launch-card { align-self: flex-end; }
}
@media (min-width: 1024px) and (orientation: landscape) {
  .hero__title { left: 5.25rem; top: 9.25rem; width: 32.5rem; font-size: 4rem; }
  .hero__elf { left: 52.5rem; right: auto; top: 2.75rem; width: 52.5rem; max-width: none; opacity: 1; -webkit-mask-image: linear-gradient(#000 82%, transparent); mask-image: linear-gradient(#000 82%, transparent); }
  .hood { left: 34.875rem; right: auto; top: 12.25rem; width: 35.25rem; max-width: none; }
  /* Облака прижаты к низу сцены, как в макете (кадр 1680×776 от y=204) */
  .hero__clouds { left: -2.5rem; width: 110rem; }
  .hero__clouds--back { top: auto; bottom: -5.625rem; z-index: 0; }
  .concept-link { left: 5.25rem; top: 34.25rem; height: 3.875rem; font-size: max(0.875rem, 1.0625rem); }
  .concept-link__icon { width: 2.625rem; height: 2.625rem; }
  .hero { background: var(--paper); }
  .hero .hero__lead, .hero .hero__update { text-shadow: 0 1px 0.125rem rgba(0,0,0,.55), 0 0.125rem 1.125rem rgba(0,0,0,.6); }
  .hero__lead { left: 5.25rem; top: 41.25rem; width: 25rem; padding: 0; margin: 0; font-size: max(0.875rem, 1.0625rem); }
  .hero__update { left: 5.25rem; top: 48.5rem; }
  .hero__update-badge { width: 3.5rem; height: 3.5rem; }
  .hero__update-label { font-size: max(0.75rem, 0.8125rem); }
  .hero__update-title { font-size: max(0.875rem, 1.125rem); }
  .launch-card { left: 81.875rem; top: 39.75rem; }
}

/* ===== Акт II · Театр ===== */
.theatre__screen { position: relative; border-radius: var(--radius-m); overflow: hidden; aspect-ratio: 948 / 712; order: 2; }
.theatre__image { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.theatre__screen { -webkit-mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 58% 58% at 50% 50%, #000 70%, transparent 100%); }
/* Курсор-проектор: тёмная вуаль с «окном» света в точке курсора */
/* Курсор-проектор: на весь акт ложится темнота, свет только в точке курсора */

.time__arc { display: none; }
.theatre__title { order: 1; }
.theatre__quote { order: 3; font-size: 1.25rem; }
.theatre__quote .accent { font-size: 1.5rem; }
.theatre__note { order: 4; color: var(--muted); max-width: 28rem; }
.theatre__video { order: 5; }
.ticket { order: 6; width: min(100%, 22.5rem); align-self: center; filter: drop-shadow(0 1.875rem 2.5rem rgba(0,0,0,.5)); }
.ticket__image { width: 100%; }

@media (min-width: 1024px) and (orientation: landscape) {
  /* Вариант 01 «Полный кадр»: сцена на весь акт, слева и снизу затемнение под текст */
  .theatre__screen {
    left: min(0px, calc((105rem - 100vw) / 2)); top: min(0px, calc((61.25rem - 100svh) / 2));
    width: max(100vw, 105rem); height: max(100svh, 61.25rem); border-radius: 0; aspect-ratio: auto; z-index: 1;
    -webkit-mask-image: none; mask-image: none;
  }
  .theatre__screen::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background:
      linear-gradient(90deg, rgba(18, 18, 20, .95) 0, rgba(18, 18, 20, .75) 30%, rgba(18, 18, 20, 0) 55%),
      linear-gradient(0deg, rgba(18, 18, 20, .85), transparent 28%),
      linear-gradient(180deg, rgba(18, 18, 20, .7), transparent 18%);
  }
  .theatre__video { z-index: 3; }
  .theatre .ticket { z-index: 4; }
  .theatre__title { width: 40rem; font-size: 3.75rem; z-index: 3; }
  .theatre__quote { left: 5.25rem; top: 26.875rem; width: 30rem; font-size: max(0.875rem, 1.0625rem); z-index: 3; }
  .theatre__note { left: 5.25rem; top: 49.375rem; width: 20.625rem; font-size: max(0.8125rem, 0.9375rem); z-index: 3; }
  .theatre__video { left: 5.25rem; top: 33.75rem; z-index: 2; }
  .ticket { left: 73.875rem; top: 9.875rem; width: 25.875rem; }
}

/* ===== Акт III · Время ===== */
.time__year {
  display: flex; justify-content: center; font-weight: 800; font-size: clamp(6rem, 30vw, 12rem); line-height: 1; letter-spacing: -0.04em;
  margin: 0 0 1rem; overflow: visible;
}
.time__digit { display: inline-block; padding: 0 .06em; margin: 0 -.06em; background: linear-gradient(180deg, #b88d5e, #c9a57e 60%, #a57c50); -webkit-background-clip: text; background-clip: text; color: transparent; }
.time__digit--zero { position: relative; }
/* «Проявка золотом»: контур 2026 заливается золотом снизу вверх (--fill анимируется из JS) */
@property --fill { syntax: '<percentage>'; inherits: true; initial-value: 100%; }
.time__year { position: relative; --fill: 100%; }
.time__year .time__digit {
  -webkit-text-stroke: 0.125rem #b88d5e;
  background-image: linear-gradient(0deg, #a57c50 0, #c9a57e calc(var(--fill) * .6), #b88d5e var(--fill), transparent var(--fill));
}
.time__since {
  position: absolute; left: 50%; top: 100%; translate: -50% 0; margin-top: .25rem; white-space: nowrap;
  font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.125rem; letter-spacing: 0; line-height: 1.2; color: var(--color-burgundy);
}
.time__watch {
  position: relative; z-index: 3; align-self: center; width: min(52%, 13.75rem); margin: 0 0 -7.5rem;
  transform-origin: 50% 0; filter: drop-shadow(0 1.5rem 1.875rem rgba(95, 20, 1, .25)); pointer-events: none;
}
.time__quote, .time__lead { max-width: 26rem; }
.time__lead { font-weight: 500; }
.milestones { display: flex; flex-direction: column; gap: .75rem; }
.milestones__item { display: flex; align-items: center; gap: .75rem; font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--color-burgundy); }
.milestones__mark { flex: none; width: 0.75rem; height: 0.75rem; transform: rotate(45deg); background: linear-gradient(135deg, var(--color-tan), var(--color-bronze)); }
.time__title { position: relative; z-index: 2; }

@media (min-width: 1024px) and (orientation: landscape) {
  .time__title { width: 35rem; }
  .time__year { left: 0; right: 0; top: 18.75rem; margin: 0; font-size: 20.625rem; }
  .time__watch { left: 38.6875rem; top: 0; width: 27.625rem; margin: 0; z-index: 3; }
  .time__arc { display: block; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
  .time__arc circle { fill: none; stroke: var(--color-night); stroke-opacity: .7; stroke-width: 1; vector-effect: non-scaling-stroke; }
  .time__quote { width: 23.75rem; font-size: max(0.8125rem, 1rem); }
  .time__quote--first { left: 5.25rem; top: 41.875rem; }
  .time__quote--second { left: 5.25rem; top: 47.5rem; }
  .time__lead { left: 5.25rem; top: 18.5rem; width: 25rem; font-size: max(0.875rem, 1.0625rem); }
  .milestones { inset: 0; pointer-events: none; }
  .milestones__item { position: absolute; font-family: var(--font-sans); font-style: normal; font-weight: 500; color: var(--ink); font-size: max(0.75rem, 0.875rem); line-height: 1.3; width: 13.75rem; gap: 1.25rem; }
  .milestones__mark { width: 1.25rem; height: 1.25rem; background: linear-gradient(135deg, #8c2513, var(--color-burgundy)); }
  /* Ромбы сидят на дуге окружности (центр 816/490, r 563) */
  .milestones__item--1 { left: 80.375rem; top: 10.5rem; }
  .milestones__item--2 { left: 85.125rem; top: 23rem; }
  .milestones__item--3 { left: 85.125rem; top: 36.625rem; }
  .milestones__item--4 { left: 80.375rem; top: 48.375rem; }
  .time__wiki { left: 40rem; width: 25rem; text-align: center; top: 43.125rem; font-size: max(0.8125rem, 0.9375rem); }
}

/* ===== Акт IV · Нокс ===== */
.nox__vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(farthest-side, rgba(18,18,20,0) 40%, #121214 100%); }
@media (min-width: 1024px) and (orientation: landscape) { .nox__vignette { background: radial-gradient(closest-side, rgba(18,18,20,0) 32%, #121214 100%); } }
.nox__bg { filter: grayscale(1) contrast(1.05); position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 65% center; opacity: .55; }
.nox__title, .nox__intro, .callouts, .nox__video { position: relative; z-index: 2; }
.nox__intro { max-width: 22rem; }
.callouts { display: flex; flex-direction: column; gap: 2rem; margin-top: 8rem; }
.callout { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .5rem 1rem; max-width: 24rem; }
.callout__num { font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; color: var(--accent); }
.callout__line { height: 1px; width: 3rem; background: var(--accent); opacity: .6; transform-origin: left; }
.callout__text { grid-column: 1 / -1; font-size: .9375rem; }

@media (min-width: 1024px) and (orientation: landscape) {
  .nox__bg, .nox__vignette { inset: auto; left: 11.75rem; top: 0; width: 81.5625rem; height: 61.25rem; opacity: 1; object-fit: cover; }
  .nox__title { position: absolute; }
  .nox__intro { position: absolute; left: 5.25rem; top: 14.5rem; width: 23.75rem; max-width: none; font-size: max(0.875rem, 1.0625rem); }
  .callouts { position: absolute; inset: 0; margin: 0; pointer-events: none; }
  .callout { position: absolute; width: 21.25rem; max-width: none; }
  .callout__text { font-size: max(0.8125rem, 0.9375rem); }
  .callout--1 { left: 9.375rem; top: 26.25rem; }
  .callout--2 { left: 81.625rem; top: 25rem; width: 18.75rem; }
  .callout--3 { left: 52.5rem; top: 43.125rem; width: 20.625rem; }
  .nox__video { position: absolute; left: 82rem; top: 9.25rem; }
}

/* ===== Акт V · Концепт ===== */
.marquee { overflow: hidden; pointer-events: none; }
.marquee__inner { display: flex; width: max-content; will-change: transform; }
.marquee__item { font-family: var(--font-serif); font-style: italic; font-size: 4rem; line-height: 1; white-space: nowrap; padding-right: .6em; color: var(--ink); opacity: .14; }
.concept__marquee { margin: 0 calc(var(--side) * -1); }
.concept__lead { max-width: 24rem; }
.keyhole { align-self: center; width: min(70%, 17.5rem); }
.keyhole__image { width: 100%; }
.tabs__list { display: flex; flex-direction: column; align-items: flex-start; gap: .25rem; }
.tabs__tab {
  font-family: var(--font-serif); font-style: italic; font-size: 1.9rem; line-height: 1.2; color: var(--ink); opacity: .3;
  transition: opacity .5s var(--ease-out), color .5s, transform .6s var(--ease-out);
}
.tabs__tab:hover { opacity: .65; transform: translateX(0.375rem); }
.tabs__tab.is-active { opacity: 1; color: var(--color-burgundy); }
.concept__wiki { display: inline-block; margin: 1rem 0 2rem; }
.tabs__panel[hidden] { display: none; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 1.25rem; }
.features__tag { display: block; font-size: var(--fs-micro); font-weight: 600; color: var(--color-burgundy-light); margin-bottom: .2rem; }
.features__title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.35rem; line-height: 1.15; margin-bottom: .35rem; }
.features__text { font-size: var(--fs-small); color: var(--muted); }

@media (min-width: 1024px) and (orientation: landscape) {
  /* Бегущая строка живёт на всю ширину акта и уходит под соседние «страницы» по краям акта */
  .concept__marquee { position: absolute; left: 0; right: 0; top: max(-1.125rem, calc(50% - 30.625rem - 1.125rem)); margin: 0; z-index: 0; }
  .marquee__item { font-size: 7.5rem; opacity: .1; }
  .concept__title { width: 25rem; font-size: 4.5rem; }
  .concept__lead { left: 5.25rem; top: 19.75rem; width: 23.75rem; max-width: none; font-size: max(0.875rem, 1.0625rem); }
  .keyhole { left: 41.125rem; top: 9.25rem; width: 22.6875rem; }
  .concept__tabs { inset: 0; pointer-events: none; }
  .concept__tabs > * { pointer-events: auto; position: absolute; }
  .tabs__list { left: 5.25rem; top: 36.875rem; }
  .tabs__tab { font-size: 2.5rem; }
  .concept__wiki { left: 5.25rem; top: 49.375rem; margin: 0; font-size: max(0.8125rem, 0.9375rem); }
  .tabs__panel { left: 66.875rem; top: 11.5rem; width: 34.5rem; }
  .features { gap: 2.75rem 2.5rem; }
  .features__text { line-height: 1.45; }
    .features__tag { font-size: max(0.6875rem, 0.75rem); }
  .features__title { font-size: 1.5rem; }
  .features__text { font-size: max(0.75rem, 0.875rem); }
}

/* ===== Акт VI · QoL: стена полароидов ===== */
.qol__lead { max-width: 24rem; }
.qol__hint { display: none; }
.qol__more { position: relative; z-index: 6; display: flex; flex-direction: column; gap: .75rem; width: min(100%, 22rem); padding-top: 1.1rem; border-top: 1px solid rgba(237, 230, 214, .2); color: var(--ink); }
.qol__more-num { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-size: 1rem; }
.qol__more-title { font-family: var(--font-serif); font-style: italic; font-size: 2.25rem; line-height: 1.05; }
.qol__more-arrow { display: inline-block; color: var(--accent); transition: translate .5s var(--ease-out); }
.qol__more-line { display: block; height: 0.125rem; width: 8.75rem; background: var(--accent); transform-origin: left; transition: width .6s var(--ease-out); }
.qol__more:hover .qol__more-arrow { translate: 0.625rem 0; }
.qol__more:hover .qol__more-line { width: 100%; }

.polaroids { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem .9rem; }
.polaroid {
  padding: .6rem .6rem .8rem; background: var(--color-paper-soft); color: var(--color-night);
  box-shadow: 0 1rem 2rem rgba(0,0,0,.45); rotate: calc(var(--r) * .5);
}
.polaroid__image { display: block; width: 100%; height: auto; pointer-events: none; background: #121214; }
.polaroid__title { font-size: .8125rem; font-weight: 600; line-height: 1.2; margin-top: .55rem; }
.polaroid__num { font-family: var(--font-serif); font-style: italic; font-weight: 400; color: var(--color-burgundy); }
.polaroid__text { font-size: .6875rem; line-height: 1.3; color: var(--color-grey-dark); margin-top: .2rem; }

@media (min-width: 768px) {
  .polaroids { grid-template-columns: repeat(3, 1fr); gap: 2rem 1.5rem; }
  .polaroid__title { font-size: .9375rem; }
  .polaroid__text { font-size: .8125rem; }
}
@media (min-width: 1024px) and (orientation: landscape) {
  .qol__title { width: 27.5rem; }
  .qol__lead { left: 5.25rem; top: 18.75rem; width: 23.75rem; max-width: none; font-size: max(0.875rem, 1.125rem); }
  .qol__hint { display: block; left: 5.25rem; top: 23.75rem; font-family: var(--font-serif); font-style: italic; color: var(--accent); font-size: max(0.8125rem, 0.9375rem); }
  .qol__more { left: 5.25rem; top: 28.75rem; width: 21.875rem; gap: 0.75rem; padding-top: 1.125rem; }
  .qol__more-num { font-size: max(0.8125rem, 1rem); }
    .qol__more-title { font-size: 2.5rem; }
  .qol__more-line { width: 8.75rem; }
  .polaroids { display: block; inset: 0; pointer-events: none; }
  .polaroid { pointer-events: auto; }
  .polaroid {
    position: absolute; left: calc(var(--x) * 0.0625rem); top: calc(var(--y) * 0.0625rem); width: calc(var(--w, 236) * 0.0625rem);
    padding: 0.625rem 0.625rem 0.75rem; rotate: var(--r);
    cursor: grab; touch-action: none; transition: rotate .7s var(--ease-out), scale .6s var(--ease-out), box-shadow .7s;
  }
  .polaroid:hover { rotate: 0deg; scale: 1.12; box-shadow: 0 2.5rem 5rem rgba(0,0,0,.7); z-index: 5; }
  .polaroid:active { cursor: grabbing; }
  .polaroid__title { font-size: max(0.75rem, 0.875rem); margin-top: 0.625rem; }
  .polaroid__text { font-size: max(0.625rem, 0.7188rem); }
}

/* ===== Акт VII · Онлайн ===== */
.online__word { order: -1; margin-bottom: -1rem; display: flex; justify-content: space-between; font-weight: 800; font-size: clamp(5rem, 26vw, 10rem); line-height: 1.05; letter-spacing: -0.05em; margin-top: 1rem; }
.online__half { display: block; background: linear-gradient(180deg, var(--color-bronze), var(--color-tan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.online__hint { max-width: 20rem; }
.lens { align-self: center; width: min(80vw, 20rem); aspect-ratio: 1; margin-top: 0; position: relative; z-index: 2; }
.lens__glass {
  width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative;
  border: 0.5rem solid var(--color-tan); box-shadow: 0 0 0 0.125rem var(--color-bronze), 0 1.875rem 3.75rem rgba(95, 20, 1, .3), inset 0 0 2.5rem rgba(0,0,0,.4);
}
.lens__glass::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.35), transparent 35%); pointer-events: none; }
.lens__image { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); }
.online__claim { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-serif-xl); line-height: 1; color: var(--accent); }
.online__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }

@media (min-width: 1024px) and (orientation: landscape) {
  .online__title { width: 29.375rem; font-size: 3.3125rem; }
  .online__word { inset: 0; margin: 0; display: block; font-size: 24rem; line-height: 1.05; pointer-events: none; }
  .online__half { position: absolute; top: 18.75rem; }
  .online__half--left { left: 12.5rem; }
  .online__half--right { left: 64.375rem; }
  .online__hint { left: 72.5rem; top: 9.375rem; width: 18.75rem; max-width: none; font-size: max(0.875rem, 1.0625rem); }
  .lens { left: 38.625rem; top: 16.25rem; width: 27.75rem; margin: 0; }
  .lens__glass { border-width: 0.625rem; }
  .online__claim { left: 5.25rem; top: 43rem; width: 20rem; font-size: 4.5rem; }
  .online__cta { left: 84.375rem; top: 43.75rem; width: 17.5rem; font-size: max(0.875rem, 1rem); }
}

/* ===== Акт VIII · Рецепт ===== */
.recipe__card { width: min(100%, 26.25rem); align-self: center; transform: rotate(-3deg); filter: drop-shadow(0 1.875rem 2.5rem rgba(95, 20, 1, .18)); }
.recipe__note { max-width: 24rem; }
.recipe__label { font-size: var(--fs-small); font-weight: 500; margin-top: 2rem; }
.recipe__claim { font-family: var(--font-serif); font-style: italic; font-size: var(--fs-serif-xl); line-height: 1; color: var(--accent); }
.recipe__drag { display: none; }
.reviews { display: flex; flex-direction: column; gap: .75rem; }
.review {
  background: var(--color-white); border-radius: var(--radius-m); padding: .85rem; box-shadow: 0 0.625rem 1.875rem rgba(95, 20, 1, .08), 0 1px 0 rgba(95, 20, 1, .06);
  display: flex; flex-direction: column; gap: .6rem; color: var(--color-night);
}
.review__text { font-size: var(--fs-small); line-height: 1.45; color: var(--color-grey-dark); }
.review__author { display: flex; align-items: center; justify-content: space-between; font-size: .75rem; font-weight: 600; }
.review__avatar { width: 2rem; height: 2rem; border-radius: 50%; object-fit: cover; }
.review__player { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; }
.review__player::before {
  content: ''; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--color-paper-line) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23ffffff'/%3E%3C/svg%3E") center / 1rem no-repeat;
  transition: background-color var(--dur-micro);
}
.review__player.is-playing::before { background: var(--color-bronze) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 6h3v12H8zM13 6h3v12h-3z' fill='%23ffffff'/%3E%3C/svg%3E") center / 1rem no-repeat; }
.review__wave {
  flex: 1; height: 1.125rem;
  background: repeating-linear-gradient(90deg, var(--color-paper-line) 0 0.125rem, transparent 0.125rem 0.25rem);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 7h4v4H0zM8 4h4v10H8zM16 2h4v14h-4zM24 6h4v6h-4zM32 3h4v12h-4zM40 7h4v4h-4zM48 1h4v16h-4zM56 5h4v8h-4zM64 3h4v12h-4zM72 6h4v6h-4zM80 2h4v14h-4zM88 5h4v8h-4zM96 7h4v4h-4zM104 3h4v12h-4zM112 6h4v6h-4z'/%3E%3C/svg%3E") center / 100% 100%;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 18' preserveAspectRatio='none'%3E%3Cpath d='M0 7h4v4H0zM8 4h4v10H8zM16 2h4v14h-4zM24 6h4v6h-4zM32 3h4v12h-4zM40 7h4v4h-4zM48 1h4v16h-4zM56 5h4v8h-4zM64 3h4v12h-4zM72 6h4v6h-4zM80 2h4v14h-4zM88 5h4v8h-4zM96 7h4v4h-4zM104 3h4v12h-4zM112 6h4v6h-4z'/%3E%3C/svg%3E") center / 100% 100%;
}
.review__player.is-playing .review__wave { background: linear-gradient(90deg, var(--color-bronze) var(--played, 0%), var(--color-paper-line) var(--played, 0%)); }

@media (min-width: 1024px) and (orientation: landscape) {
  .recipe__title { width: 29.375rem; font-size: 3.25rem; }
  .recipe__card { left: 37.5rem; top: 11.875rem; width: 29.375rem; transform: none; rotate: -8deg; }
  .recipe__note { left: 5.25rem; top: 47.5rem; width: 21.25rem; font-size: max(0.8125rem, 0.9375rem); }
  .recipe__label { left: 73.5rem; top: 9.375rem; margin: 0; font-size: max(0.75rem, 0.8125rem); }
  .recipe__claim { left: 73.5rem; top: 11.875rem; width: 26.875rem; font-size: 4.5rem; color: #c9a57e; }
  .recipe__drag { display: block; left: 73.5rem; top: 53.875rem; font-family: var(--font-serif); font-style: italic; color: var(--accent); font-size: max(0.8125rem, 0.9375rem); }
  .reviews { display: block; left: 77.0625rem; top: 11.875rem; width: 81.25rem; height: 40rem; }
  .review {
    position: absolute; left: calc(var(--x) * 0.0625rem); top: calc(var(--y) * 0.0625rem); width: calc(var(--w) * 0.0625rem);
    padding: 0.75rem; gap: 0.5rem; cursor: grab; touch-action: none;
  }
  .review:active { cursor: grabbing; }
  .review--audio .review__author { margin-top: 0; }
  .review__text { font-size: max(0.6875rem, 0.75rem); }
  .review__author { font-size: max(0.6875rem, 0.75rem); }
  .review__avatar { width: 2rem; height: 2rem; }
}

/* ===== Акт IX · В объективе ===== */
.media__hint { font-size: var(--fs-small); color: var(--muted); }
.media__lead { max-width: 26rem; }
.gallery { width: 100%; overflow: visible; }
.exhibit { display: flex; flex-direction: column; gap: 1.25rem; width: 82%; }
.exhibit__frame {
  display: block; position: relative; aspect-ratio: var(--fw) / var(--fh);
  transform-origin: 50% -8%; animation: sway 6.5s ease-in-out infinite alternate; transition: scale .8s var(--ease-out);
  filter: drop-shadow(0 1.875rem 1.875rem rgba(0,0,0,.45));
}
.exhibit--2 .exhibit__frame { animation-duration: 5.2s; animation-delay: -1.3s; }
.exhibit--3 .exhibit__frame { animation-duration: 7.4s; animation-delay: -3s; }
.exhibit--4 .exhibit__frame { animation-duration: 5.8s; animation-delay: -2.1s; }
.exhibit__frame:hover { scale: 1.03; animation-play-state: paused; }
/* Превью YouTube лежит в «окне» рамы — координаты окна взяты из макета */
.exhibit__preview {
  position: absolute; left: calc(var(--px) / var(--fw) * 100%); top: calc(var(--py) / var(--fh) * 100%);
  width: calc(var(--pw) / var(--fw) * 100%); height: calc(var(--ph) / var(--fh) * 100%); object-fit: cover;
}
.exhibit__preview--oval { border-radius: 50%; }
.exhibit__image { position: relative; width: 100%; height: 100%; }
.exhibit__play {
  position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; translate: -50% -50%; border-radius: 50%;
  background: rgba(18,18,20,.35) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23ede6d6'/%3E%3C/svg%3E") center / 1.75rem no-repeat;
  -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); transition: background-color .4s, scale .4s var(--ease-out);
}
.exhibit__frame:hover .exhibit__play { background-color: var(--color-burgundy); scale: 1.08; }
/* Картины слегка качаются, будто висят на гвозде */
@keyframes sway { from { rotate: -1.6deg; } to { rotate: 1.6deg; } }
.exhibit__quote { padding: 0 .5rem; }
.exhibit__num { display: block; font-family: var(--font-serif); font-style: italic; color: var(--accent); margin-bottom: .35rem; }
.exhibit__text { font-family: var(--font-serif); font-style: italic; font-size: 1.125rem; line-height: 1.3; margin-bottom: .5rem; }
.exhibit__cite { font-size: var(--fs-small); color: var(--muted); }

@media (min-width: 1024px) and (orientation: landscape) {
  .media__hint { left: 5.25rem; top: 49.375rem; width: 16.25rem; font-size: max(0.8125rem, 0.9375rem); }
  .media__lead { left: 5.25rem; top: 14.5rem; width: 25rem; max-width: none; font-size: max(0.875rem, 1rem); }
  .gallery { inset: 0; width: auto; overflow: visible; }
  .gallery__list { display: block; position: absolute; inset: 0; }
  .exhibit { position: absolute; width: auto; gap: 2rem; }
  .exhibit__quote { width: 21.75rem; padding: 0; margin-left: 5.1875rem; }
  .exhibit__num { font-size: max(0.8125rem, 1rem); }
  .exhibit__text { font-size: max(0.9375rem, 1.125rem); }
  .exhibit__cite { font-size: max(0.75rem, 0.8125rem); }
  .exhibit--1 { left: 36.4375rem; top: 14.4375rem; }
  .exhibit--1 .exhibit__frame { width: 32.125rem; }
  .exhibit--2 { left: 73.75rem; top: 9.25rem; }
  .exhibit--2 .exhibit__frame { width: 18.375rem; margin-left: 6.875rem; }
  .exhibit--3 { left: 100.8125rem; top: 18.75rem; }
  .exhibit--3 .exhibit__frame { width: 31.875rem; }
  .exhibit--4 { left: 136.5625rem; top: 8.625rem; }
  .exhibit--4 .exhibit__frame { width: 21.1875rem; margin-left: 5.5rem; }
}

/* ===== Акт X · Минимум ===== */
.minimum__lead { max-width: 24rem; }
.perk {
  position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--radius-l);
  background: var(--color-paper); color: var(--color-night); --accent: var(--color-bronze-dark);
  box-shadow: 0 1.875rem 3.75rem rgba(0,0,0,.45);
}
.perk::before { content: ''; position: absolute; inset: 0.5rem; border: 1px solid rgba(95, 20, 1, .55); border-radius: 0.75rem; pointer-events: none; }
.perk__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.perk__num { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--color-burgundy); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-style: italic; color: var(--color-burgundy); }
.perk__tag { font-size: var(--fs-micro); font-weight: 600; color: var(--color-burgundy); }
.perk__title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.75rem; line-height: 1.12; color: var(--color-burgundy); padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px dashed rgba(95, 20, 1, .5); }
.perk__text { font-size: .9375rem; margin-bottom: 1rem; }
.perk__form { display: flex; flex-direction: column; gap: .5rem; }
.perk__form .checkbox { margin-top: .5rem; }
.perk__status, .signup__status { min-height: 1.2em; font-size: var(--fs-small); font-weight: 600; color: var(--color-burgundy); }
.perk__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.perk__prizes { width: 100%; margin-bottom: 1rem; }
.meter { margin-bottom: 1rem; }
.meter__row { display: flex; justify-content: space-between; font-size: var(--fs-small); font-weight: 500; margin-bottom: .6rem; }
.meter__value { font-weight: 700; font-variant-numeric: tabular-nums; }
.meter__track { height: 0.375rem; border-radius: 0.1875rem; background: var(--color-paper-line); overflow: hidden; }
.meter__fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(.169); background: linear-gradient(90deg, var(--color-burgundy), var(--color-tan)); }

@media (min-width: 1024px) and (orientation: landscape) {
  .minimum__title { width: 43.75rem; }
  .minimum__lead { left: 73.75rem; top: 9.375rem; width: 25rem; max-width: none; font-size: max(0.875rem, 1.0625rem); }
  .perk { width: 24.75rem; padding: 2rem 2rem 1.75rem; }
  .perk--1 { left: 10rem; top: 22.5rem; --r: 5deg; }
  .perk--2 { left: 39.375rem; top: 18.5rem; --r: -5deg; }
  .perk--3 { left: 69.375rem; top: 19.75rem; --r: 5deg; }
  .perk { rotate: var(--r); transition: rotate .8s var(--ease-out), translate .8s var(--ease-out), box-shadow .8s; }
  .perk:hover { rotate: 0deg; translate: 0 -0.625rem; box-shadow: 0 2.5rem 5rem rgba(0,0,0,.55); z-index: 3; }
  .perk__num { width: 2.5rem; height: 2.5rem; }
  .perk__title { font-size: 2rem; }
  .perk__text { font-size: max(0.8125rem, 0.9375rem); }
    .perk__title { padding-bottom: 0.875rem; margin-bottom: 0.875rem; }
  .perk__head { margin-bottom: 0.75rem; }
}

/* ===== Акт XI · Премьера ===== */
.premiere__kicker { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.signup { display: flex; flex-direction: column; gap: .5rem; }
.signup__title, .files__title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: var(--fs-serif-l); color: var(--color-burgundy); }
.signup__lead { margin-bottom: .75rem; }
.signup .button { margin: 1rem 0; }

/* Мини-игра в рамке полароида (вариант 05) */
.bubble-game {
  position: relative; padding: 0.75rem 0.75rem 0; background: var(--color-paper-soft); box-shadow: 0 1.5rem 3.125rem rgba(95, 20, 1, .18);
  user-select: none; touch-action: manipulation; display: flex; flex-direction: column;
}
.bubble-game__photo { position: relative; flex: 1; overflow: hidden; aspect-ratio: 480 / 560; }
.bubble-game__art { width: 100%; height: 100%; object-fit: cover; }
.bubble-game__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bubble-game__caption { display: flex; justify-content: space-between; align-items: baseline; padding: 0.875rem 0.25rem 0.5rem; }
.bubble-game__name { font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: var(--color-burgundy); }
.bubble-game__percent { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.bubble-game__track { height: 0.1875rem; margin: 0 0.25rem 1rem; background: var(--color-paper-line); overflow: hidden; }
.bubble-game__fill { height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--color-burgundy); }
.bubble-game__sound {
  position: absolute; right: 0.75rem; top: 0.75rem; width: 2.125rem; height: 2.125rem; border-radius: 50%;
  background: rgba(18, 18, 20, .5); color: var(--color-paper); -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem);
}
.bubble-game__sound[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }

/* Модалка выигрыша: выпадающий полароид */
.prize { padding: 0; border: 0; background: none; overflow: visible; max-width: none; margin: auto; }
.prize::backdrop { background: rgba(18, 18, 20, .72); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.prize__card {
  width: min(88vw, 23.75rem); padding: 0.875rem 0.875rem 1.375rem; background: var(--color-paper-soft); color: var(--color-night);
  rotate: 3deg; box-shadow: 0 2.5rem 5rem rgba(0, 0, 0, .5);
}
.prize__photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 66% 30%; }
.prize__num { margin-top: 0.875rem; font-family: var(--font-serif); font-style: italic; color: var(--color-burgundy); }
.prize__title { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 2.5rem; line-height: 1; color: var(--color-burgundy); }
.prize__text { margin-top: .6rem; font-size: .9375rem; line-height: 1.45; }
.prize__code { margin: 1rem 0; padding: .7rem 1rem; border: 1px dashed rgba(95, 20, 1, .5); border-radius: 0.5rem; font-weight: 800; font-size: 1.375rem; letter-spacing: .06em; text-align: center; }
.prize__actions { display: flex; align-items: center; gap: 1rem; }
.prize__close { font-family: var(--font-serif); font-style: italic; color: var(--color-grey-dark); text-decoration: underline; text-underline-offset: 0.1875rem; }

.files { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.files__video { position: relative; border-radius: var(--radius-m); overflow: hidden; box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.25); }
.files__image { width: 100%; transition: transform .8s var(--ease-out); }
.files__video:hover .files__image { transform: scale(1.04); }
.files__play {
  position: absolute; left: 50%; top: 50%; width: 4rem; height: 4rem; margin: -2rem 0 0 -2rem; border-radius: 50%;
  background: rgba(18,18,20,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23ede6d6'/%3E%3C/svg%3E") center / 1.625rem no-repeat;
  -webkit-backdrop-filter: blur(0.5rem); backdrop-filter: blur(0.5rem);
}

@media (min-width: 1024px) and (orientation: landscape) {
  .premiere__kicker { left: 5.25rem; top: 8.75rem; font-size: max(0.875rem, 1.125rem); }
  .premiere__title { top: 11.75rem; width: 30rem; }
  .signup { left: 5.25rem; top: 28.125rem; width: 23.75rem; gap: 0.5rem; }
  .signup__title, .files__title { font-size: 2rem; }
  .signup__lead, .files__text { font-size: max(0.8125rem, 1rem); }
  .field { height: 3rem; }
  .signup .button { margin: 1rem 0; height: 3.25rem; }
  .bubble-game { left: 36.75rem; top: 9.25rem; width: 31.5rem; height: 42.75rem; padding: 0.75rem 0.75rem 0; }
  .bubble-game__photo { aspect-ratio: auto; }
  .bubble-game__name { font-size: 1.375rem; }
  .bubble-game__percent { font-size: 1.5rem; }
  .files { left: 76rem; top: 9.25rem; width: 23.75rem; gap: 1.25rem; }
}

/* ===== Акт XII · Встреча ===== */
.finale__lead { margin-top: -.5rem; }
.orbit { position: relative; display: flex; flex-direction: column; gap: 2rem; }
.orbit__rings { display: none; }
.orbit__center { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 2rem 1rem; border-radius: var(--radius-l); border: 1px solid var(--color-night-line); }
.orbit__caption { font-family: var(--font-serif); font-style: italic; color: var(--accent); }
.orbit__timer { font-weight: 800; font-size: clamp(2.75rem, 12vw, 4.75rem); letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.orbit__units { font-family: var(--font-serif); font-style: italic; color: var(--muted); font-size: var(--fs-small); margin-bottom: 1.25rem; }
.orbit__list { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.channel__link { display: flex; align-items: center; gap: 1rem; }
.channel__icon {
  flex: none; display: flex; align-items: center; justify-content: center; border-radius: 50%;
  transition: scale .6s var(--ease-out), box-shadow .6s, border-color .6s;
}
.channel--primary .channel__icon {
  width: 4rem; height: 4rem; background: var(--color-night-soft); border: 0.0938rem solid rgba(195, 164, 131, .7);
  box-shadow: 0 0 1.5rem rgba(195, 164, 131, .22);
}
.channel--primary .channel__icon img { width: 2.125rem; height: 2.125rem; }
.channel--secondary .channel__icon { width: 2.5rem; height: 2.5rem; border: 1px solid rgba(255,255,255,.14); }
.channel--secondary .channel__icon img { width: 1.25rem; height: 1.25rem; opacity: .55; }
.channel__name { display: block; font-weight: 600; font-size: 1.05rem; }
.channel--secondary .channel__name { font-weight: 500; font-size: .8125rem; color: var(--muted); }
.channel__desc { display: block; font-size: var(--fs-small); color: var(--muted); }
.channel__link:hover .channel__icon { border-color: var(--color-tan); box-shadow: 0 0 2.5rem rgba(195, 164, 131, .45); }
.legal { display: flex; flex-direction: column; gap: .75rem; font-size: .75rem; margin-top: 2rem; }
.legal__list { display: flex; flex-direction: column; gap: .35rem; }
.legal__link { font-family: var(--font-serif); font-style: italic; color: var(--muted); transition: color var(--dur-micro); }
.legal__link:hover { color: var(--color-tan); }
.legal__top { font-weight: 600; color: var(--accent); }
.legal__note { font-size: 0.625rem; line-height: 1.4; color: var(--color-grey-dark); max-width: 26rem; }

@media (min-width: 768px) {
  .orbit__list { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) and (orientation: landscape) {
  .finale__title { width: 23.75rem; }
  .finale__lead { left: 5.25rem; top: 18.75rem; margin: 0; font-size: max(0.875rem, 1.0625rem); }
  .orbit { --R: 18.75rem; left: 43.75rem; top: 8.75rem; width: 40rem; height: 40rem; display: block; }
  .orbit__rings { display: block; position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .orbit__ring { fill: none; stroke: var(--color-tan); stroke-opacity: .35; stroke-width: 1; }
  .orbit__ring--inner { stroke-opacity: .2; stroke-dasharray: 4 6; }
  .orbit__center { position: absolute; left: 50%; top: 50%; z-index: 3; transform: translate(-50%, -50%); border: 0; padding: 0; width: 26.25rem; }
  .orbit__caption { font-size: max(0.875rem, 1.125rem); }
  .orbit__timer { font-size: 4.75rem; }
  .orbit__units { font-size: max(0.75rem, 0.875rem); margin-bottom: 1.375rem; }
  .orbit__list { display: block; position: absolute; inset: 0; pointer-events: none; }
  .orbit__list .channel__link { pointer-events: auto; }
  .channel {
    --a: calc(var(--angle) * 1deg);
    position: absolute; left: calc(50% + cos(var(--a)) * var(--R)); top: calc(50% + sin(var(--a)) * var(--R));
    width: 0; height: 0;
  }
  .channel__link { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%); }
  .channel--primary .channel__icon { width: 4.75rem; height: 4.75rem; }
  .channel--primary .channel__icon img { width: 2.5rem; height: 2.5rem; }
  .channel--secondary .channel__icon { width: 2.75rem; height: 2.75rem; background: var(--color-night); }
  .channel--secondary .channel__icon img { width: 1.375rem; height: 1.375rem; }
  .channel__label { position: absolute; top: 50%; transform: translateY(-50%); width: 14.375rem; }
  .channel--right .channel__label { left: calc(100% + 1.125rem); }
  .channel--left .channel__label { right: calc(100% + 1.125rem); text-align: right; }
  .channel--bottom .channel__label { left: 50%; top: calc(100% + 0.75rem); transform: translateX(-50%); text-align: center; }
  .channel--secondary.channel--right .channel__label { left: calc(100% + 0.75rem); }
  .channel--secondary.channel--left .channel__label { right: calc(100% + 0.75rem); }
  .channel__name { font-size: 1.125rem; }
  .channel--secondary .channel__name { font-size: max(0.75rem, 0.8125rem); }
  .channel__desc { font-size: max(0.75rem, 0.8125rem); }
  .legal { left: 5.25rem; top: 46.25rem; width: 26.25rem; margin: 0; font-size: max(0.6875rem, 0.75rem); }
}

/* ===== HUD: нижняя панель ===== */
.hud {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-chrome); height: var(--hud-h);
  display: flex; align-items: center; justify-content: center; padding: 0 var(--side); gap: 1rem;
  color: var(--chrome-ink, var(--color-night)); pointer-events: none; transition: color 1s var(--ease-in-out);
}
.hud > * { pointer-events: auto; }
.hud__keys, .server { display: none; }
.program { display: flex; align-items: center; gap: .75rem; font-size: .8125rem; font-weight: 500; padding: .4rem .9rem; border-radius: var(--radius-pill); background: var(--chrome-glass, rgba(237, 230, 214, .7)); -webkit-backdrop-filter: blur(0.625rem); backdrop-filter: blur(0.625rem); }
.program__act { font-family: var(--font-serif); font-style: italic; color: var(--chrome-accent, var(--color-burgundy)); white-space: nowrap; }
.program__title { min-width: 5.5em; white-space: nowrap; }
.program__ticks { display: flex; align-items: center; gap: 0.25rem; }
.program__tick {
  display: block; width: 0.5rem; height: 0.875rem; position: relative;
}
.program__tick::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0.375rem; height: 0.125rem; background: currentColor; opacity: .22;
  transition: opacity .4s, background-color .4s, transform .5s var(--ease-out);
}
.program__tick.is-passed::before { opacity: .7; }
.program__tick.is-active::before { background: var(--chrome-accent, var(--color-burgundy)); opacity: 1; }
.program__tick:hover::before { opacity: 1; transform: scaleY(2); }
.program__total { display: none; }

@media (min-width: 1024px) and (orientation: landscape) {
  .hud { height: 5.5rem; justify-content: space-between; padding: 0 1.5rem; }
  .hud__keys { display: flex; align-items: center; font-size: 0.875rem; font-weight: 500; }
  .hud__key { width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 600; opacity: .85; }
  .hud__keys-text { margin-left: 1rem; }
  .program { position: absolute; left: 50%; transform: translateX(-50%); gap: 1rem; font-size: 0.875rem; background: none; padding: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .program__ticks { gap: 0.375rem; }
  .program__tick { width: 1.25rem; }
  .program__tick.is-active { width: 2.5rem; }
  .program__total { display: inline; font-family: var(--font-serif); font-style: italic; opacity: .5; }
  /* Виджет сервера (макет: раскрыт 346×296, свёрнут 216×40) */
  .server { display: block; position: absolute; right: 1.5rem; bottom: 1.5rem; width: 21.625rem; height: 2.5rem; color: var(--color-paper); pointer-events: none; }
  .server > * { pointer-events: auto; }
  .server__card {
    position: absolute; right: 0; bottom: 2rem; width: 21.625rem; background: var(--color-night); border-radius: 1rem 1rem 0 2rem;
    /* карточка «вырастает» из язычка: раскрываем клипом снизу вверх, без прозрачности — никаких просвечиваний */
    clip-path: inset(calc(100% - 1px) 0 0 calc(100% - 15.25rem) round 1rem 1rem 0 2rem); visibility: hidden;
    transition: clip-path .55s var(--ease-out), visibility 0s .55s;
  }
  .server.is-open .server__card { clip-path: inset(0 0 0 0 round 1rem 1rem 0 2rem); visibility: visible; transition: clip-path .55s var(--ease-out), visibility 0s 0s; }
  .server__card .launch-card__buttons .button--ghost-light { background: #1d1d1f; border-color: transparent; color: var(--color-paper); }
  .server__bar {
    position: absolute; right: 2.5rem; bottom: 0; width: 11rem; height: 2.5rem; display: flex; align-items: center; justify-content: space-between;
    padding: 0 1.25rem; background: var(--color-night); border-radius: 1.25rem;
    transition: width .4s var(--ease-out), height .4s var(--ease-out), right .4s var(--ease-out), border-radius .4s var(--ease-out), padding .4s var(--ease-out);
  }
  .server.is-open .server__bar { right: 0; width: 15.25rem; height: calc(2rem + 1px); border-radius: 0 0 1rem 1rem; padding: 0 0.5rem 0.5rem 1.25rem; }
  /* вогнутый угол между карточкой и «язычком» */
  .server__bar::before {
    content: ''; position: absolute; right: calc(100% - 1px); top: -2px; width: calc(1.1875rem + 1px); height: calc(1.1875rem + 2px); opacity: 0; transition: opacity .3s;
    background: radial-gradient(circle at 0 100%, transparent calc(1.1875rem - .6px), var(--color-night) 1.1875rem);
  }
  .server.is-open .server__bar::before { opacity: 1; transition-delay: .2s; }
  .server__status { display: flex; align-items: center; font-size: 0.8125rem; line-height: 1.125rem; font-weight: 600; white-space: nowrap; }
  .server__name { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 0.9375rem; }
  .server__dot { align-self: flex-start; width: 0.375rem; height: 0.375rem; margin-left: 0.375rem; border-radius: 50%; background: var(--color-online); box-shadow: 0 0 0.5rem var(--color-online); animation: pulse 2s ease-in-out infinite; }
  .server__sep { width: 1px; height: 1.5rem; margin: 0 0.75rem; background: rgba(237, 230, 214, .16); }
  .server__hide {
    height: 1.5rem; padding: 0 0.5rem; border-radius: var(--radius-pill); background: #1d1d1f; font-size: 0.6875rem; font-weight: 600;
    opacity: 0; visibility: hidden; position: absolute; right: 0.5rem; transition: opacity .3s, visibility 0s .3s, background-color .3s;
  }
  .server__hide:hover { background: #2a2a2d; }
  .server.is-open .server__hide { opacity: 1; visibility: visible; transition-delay: .3s, 0s, 0s; }
  .server__fab {
    position: absolute; right: 0; bottom: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--color-burgundy); color: #e3c6a0; transition: opacity .2s .25s, scale .3s var(--ease-out), visibility 0s;
  }
  .server__fab svg { width: 1.5rem; height: 1.5rem; }
  .server__fab:hover { scale: 1.08; }
  .server.is-open .server__fab { opacity: 0; visibility: hidden; transition: opacity .15s, visibility 0s .15s; }
  /* На десктопе таймер живёт в виджете сервера, карточку в герое прячем */
  .hero .launch-card { display: none; }
}
@keyframes pulse { 50% { opacity: .35; } }

/* Тема хрома: переключается по текущему акту */
.page[data-theme="dark"] { --chrome-ink: var(--color-paper); --chrome-paper: var(--color-night); --chrome-accent: var(--color-tan); --chrome-glass: rgba(18, 18, 20, .7); }
.page[data-theme="light"], .page[data-theme="hero"] { --chrome-ink: var(--color-night); --chrome-paper: var(--color-paper); --chrome-accent: var(--color-burgundy); }
/* В герое низ экрана тёмный (облака): нижняя панель светлая, хедер тёмный */
.page[data-theme="hero"] .hud { --chrome-ink: var(--color-paper); --chrome-accent: var(--color-tan); --chrome-glass: rgba(18, 18, 20, .6); }

/* ===== Cookies ===== */
.cookie {
  position: fixed; left: var(--side); right: var(--side); bottom: calc(var(--hud-h) + .5rem); z-index: var(--z-cookie);
  display: flex; align-items: center; gap: 1rem; padding: .6rem .6rem .6rem 1.25rem; border-radius: var(--radius-l);
  background: var(--color-night); color: var(--color-paper); --accent: var(--color-tan); box-shadow: 0 1.25rem 2.5rem rgba(0,0,0,.3);
  font-size: var(--fs-small); line-height: 1.35;
}
.cookie[hidden] { display: none; }
.cookie__button { flex: none; height: 2.25rem; padding: 0 1.1rem; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,.2); font-weight: 600; }
.cookie__button:hover { background: var(--color-paper); color: var(--color-night); }
@media (min-width: 1024px) and (orientation: landscape) {
  .cookie { left: 1.5rem; right: auto; bottom: 5.25rem; width: 22.5rem; padding: 0.5rem 0.5rem 0.5rem 1rem; font-size: 0.75rem; border-radius: 0.875rem; }
  .cookie__button { height: 2rem; padding: 0 0.875rem; font-size: 0.75rem; }
}

/* ===== YouTube-плеер ===== */
.yt { width: min(92vw, 68.75rem); max-width: none; padding: 0; border: 0; border-radius: var(--radius-l); overflow: hidden; background: #000; color: var(--color-paper); }
.yt::backdrop { background: rgba(10, 10, 12, .85); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.yt__frame { aspect-ratio: 16 / 9; }
.yt__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt__link { color: var(--color-tan); font-family: var(--font-serif); font-style: italic; }

/* ===== Лайтбокс ===== */
.lightbox {
  max-width: min(92vw, 60rem); width: 100%; padding: 0; border: 0; border-radius: var(--radius-l); overflow: hidden;
  background: var(--color-night); color: var(--color-paper);
}
.lightbox::backdrop { background: rgba(10, 10, 12, .8); -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem); }
.lightbox__image { width: 100%; max-height: 75vh; object-fit: contain; background: #000; }
.lightbox__note { padding: 1rem 1.25rem; font-size: var(--fs-small); color: var(--color-grey); }
.lightbox__note em { font-family: var(--font-serif); font-style: italic; color: var(--color-tan); }
.lightbox__close { position: absolute; right: .75rem; top: .75rem; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(18,18,20,.7); color: var(--color-paper); }

/* ===== Начальные состояния анимаций (только при JS) ===== */
.js .split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }


/* =========================================================
   Планшеты: 768–1023px и любые экраны ≥1024px в портретной ориентации.
   Вертикальная раскладка (как на мобильных), но с ограничением ширины
   контента и многоколоночными сетками там, где хватает места.
   ========================================================= */
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 1024px) and (orientation: portrait) {
  :root { --side: 2.5rem; }
  .act__stage { width: 100%; max-width: 60rem; margin-inline: auto; }
  .act__title { font-size: clamp(2.5rem, 5.5vw, 3.75rem); max-width: 40rem; }

  /* Театр: билет рядом с подписью, а не во всю ширину */
  .ticket { width: min(100%, 24rem); }

  /* Рецепт: отзывы в две колонки */
  .reviews { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }

  /* Минимум: три карточки сеткой */
  .minimum .act__stage { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: 1.5rem; align-items: start; }
  .minimum .act__stage > :not(.perk) { grid-column: 1 / -1; }

  /* Промокод: форма и файлы слева, мини-игра справа */
  .premiere .act__stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: 2.5rem; row-gap: 1.5rem; align-items: start; }
  .premiere .act__stage > * { grid-column: 1; }
  .premiere .act__stage > .pattern { grid-column: 1 / -1; }
  .premiere .bubble-game { grid-column: 2; grid-row: 1 / span 5; position: sticky; top: 6rem; }

}

/* =========================================================
   Сверхширокие экраны (2K/4K, 21:9): сцена 1680×980 вписывается по высоте,
   по бокам остаются поля — фоновые слои растягиваем на всю ширину акта.
   --bleed-x / --bleed-y — на сколько акт шире/выше сцены с каждой стороны (≤ 0).
   ========================================================= */
@media (min-width: 1024px) and (orientation: landscape) {
  .act { --bleed-x: min(0px, calc((var(--stage-w) * 0.0625rem - 100vw) / 2)); --bleed-y: min(0px, calc((61.25rem - 100svh) / 2)); }
  .act .act__stage > .pattern { inset: var(--bleed-y) var(--bleed-x); }
  .hero .hero__clouds {
    left: calc(var(--bleed-x) - 2.5rem); width: calc(110rem - 2 * var(--bleed-x));
    height: 61.9rem; object-fit: cover; object-position: 50% 100%;
    /* на широких/низких экранах облака растягиваются по ширине и поднимаются к верху —
       верх облаков мягко растворяем, чтобы над эльфийкой и в углах оставался светлый фон */
    -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 14%, #000 40%);
    mask-image: linear-gradient(180deg, transparent 0, transparent 14%, #000 40%);
  }
  .hero .hero__elf { left: auto; right: var(--bleed-x); }
}

/* =========================================================
   Мобильная и планшетная версии (по макетам Figma «Mobile 390» / «Tablet 820»)
   Всё, что не десктоп в альбомной ориентации.
   ========================================================= */
@media (max-width: 1023.98px), (orientation: portrait) {
  /* ровные снимки — без наклонов */
  .polaroid { rotate: 0deg; box-shadow: 0 .75rem 1.75rem rgba(0,0,0,.45); }

  /* Время: вехи карточками */
  .milestones { gap: .625rem; }
  .milestones__item { padding: .875rem 1rem; border-radius: .875rem; background: #f7f0e1; border: 1px solid rgba(201, 165, 126, .4); font-size: 1.0625rem; line-height: 1.25; }

  /* Онлайн: «ОН ◯ ЙН» в одну строку, линза по центру между половинами */
  .online .act__stage > .online__title { order: 1; }
  .online .act__stage > .online__hint { order: 2; }
  .online .act__stage > .online__word { order: 3; margin: 1.5rem 0 0; font-size: 24vw; line-height: 1.05; }
  .online .act__stage > .lens { order: 4; width: 36vw; margin-top: -30.6vw; }
  .online .act__stage > .online__claim { order: 5; margin-top: 2rem; }
  .online .act__stage > .online__cta { order: 6; }
  .lens__glass { border-width: .375rem; }

  /* Отзывы: не больше 4 на телефоне */
  .review:nth-child(n+5) { display: none; }

  /* Встреча: каналы карточками 2 в ряд, видео-соцсети — чипсами */
  .orbit__list { display: flex; flex-wrap: wrap; gap: .75rem; }
  .channel--primary { width: calc(50% - .375rem); order: 1; }
  .channel--secondary { order: 2; }
  .channel--primary .channel__link { height: 100%; flex-direction: column; align-items: flex-start; gap: .75rem; padding: 1rem; border-radius: 1.125rem; background: #1d1d1f; border: 1px solid #343436; }
  .channel--primary .channel__icon { width: 3rem; height: 3rem; }
  .channel--primary .channel__icon img { width: 1.75rem; height: 1.75rem; }
  .channel__name { font-size: .9375rem; }
  .channel__desc { font-size: .75rem; line-height: 1.3; }
  .channel--secondary .channel__link { gap: .5rem; padding: .375rem .875rem .375rem .375rem; border: 1px solid rgba(237, 230, 214, .2); border-radius: 999px; }
  .channel--secondary .channel__icon { width: 1.75rem; height: 1.75rem; border: 0; }
  .channel--secondary .channel__icon img { width: 1rem; height: 1rem; opacity: .8; }
  .channel--secondary .channel__name { color: var(--color-paper); }
  .channel__link:hover .channel__icon { box-shadow: 0 0 1.5rem rgba(195, 164, 131, .45); }
}
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 768px) and (orientation: portrait) {
  .review:nth-child(n+5) { display: block; }
  .review:nth-child(n+7) { display: none; }
  .channel--primary { width: calc(33.333% - .5rem); }
  .online .act__stage > .online__word { font-size: 20vw; }
  .online .act__stage > .lens { width: 30vw; margin-top: -25.5vw; }
  .milestones { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1023.98px), (orientation: portrait) {
  .concept__marquee { margin: -1rem calc(var(--side) * -1) 1.5rem; }
  .concept__marquee .marquee__item { font-size: clamp(3rem, 12vw, 6rem); line-height: 1.15; }
}
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 768px) and (orientation: portrait) {
  .theatre .act__stage { display: grid; grid-template-columns: minmax(0, 1fr) 18.75rem; column-gap: 3rem; row-gap: 1.5rem; align-items: start; }
  .theatre .act__stage > * { grid-column: 1 / -1; }
  .theatre .act__stage > .pattern { grid-row: 1 / 99; }
  .theatre__quote, .theatre__note, .theatre__video { grid-column: 1 !important; }
  .theatre .ticket { grid-column: 2 !important; grid-row: span 3; width: 100%; align-self: start; rotate: 3deg; }
}
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 768px) and (orientation: portrait) {
  .theatre__title { grid-row: 1; } .theatre__screen { grid-row: 2; } .theatre__quote { grid-row: 3; } .theatre__note { grid-row: 4; } .theatre__video { grid-row: 5; }
  .theatre .ticket { grid-row: 3 / 7 !important; }
}

/* ===== Языки ===== */
.lang { position: relative; }
.lang__toggle { min-width: 2.75rem; justify-content: center; }
.lang__list {
  position: absolute; top: calc(100% + .5rem); right: 0; z-index: 5; min-width: 9.5rem; padding: .375rem;
  display: flex; flex-direction: column; gap: .125rem; border-radius: 1rem;
  background: var(--color-night); color: var(--color-paper); box-shadow: 0 1rem 2.5rem rgba(0,0,0,.3);
  opacity: 0; visibility: hidden; translate: 0 -.25rem; transition: opacity .25s var(--ease-out), translate .25s var(--ease-out), visibility .25s;
}
.lang--open .lang__list { opacity: 1; visibility: visible; translate: 0 0; }
.lang__link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .5rem .75rem; border-radius: .625rem; font-size: .8125rem; font-weight: 500; transition: background-color var(--dur-micro); }
.lang__link:hover, .lang__link:focus-visible { background: rgba(255,255,255,.08); }
.lang__link[aria-current]::after { content: ''; width: .375rem; height: .375rem; border-radius: 50%; background: #c9a57e; }
.menu__langs { display: flex; gap: .5rem; }
.menu__lang { display: inline-flex; align-items: center; justify-content: center; min-width: 3rem; height: 2.5rem; padding: 0 .75rem; border: 1px solid currentColor; border-radius: var(--radius-pill); font-size: .8125rem; font-weight: 600; opacity: .6; }
.menu__lang[aria-current] { opacity: 1; background: #c9a57e; border-color: #c9a57e; color: var(--color-night); }
@media (min-width: 1024px) and (orientation: landscape) { .menu__langs { display: none; } }
/* Длинные латинские строки: не даём кнопкам и заголовкам ломать сетку */
html:not([lang="ru"]) .header__button { white-space: nowrap; }

/* ===== Второе видео в «Театре»: Декаданс ===== */
.round-video--sm { width: 11rem; height: 11rem; }
.round-video--sm .round-video__arc { left: 0; top: -2.95rem; width: 17.68rem; height: 14.24rem; }
.round-video--sm .round-video__text { font-size: 17px; }
.round-video--sm .round-video__circle { top: 1.375rem; width: 9.625rem; height: 9.625rem; padding: .34rem; }
@media (min-width: 1024px) and (orientation: landscape) {
  .theatre__video--truth { left: 5.25rem; top: 33.75rem; }
}
@media (min-width: 768px) and (max-width: 1023.98px), (min-width: 768px) and (orientation: portrait) {
  .theatre .theatre__video--truth { grid-row: 6; }
}


/* ===== Бегущая строка предметов в «Минимуме» ===== */
.items {
  position: relative; overflow: hidden; margin: 0 -0.25rem 1.125rem; padding: .25rem 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.items__track { display: flex; gap: .5rem; width: max-content; list-style: none; margin: 0; padding: 0; animation: items-run 28s linear infinite; }
.perk--1 .items__track { animation-duration: 20s; animation-direction: reverse; }
.items:hover .items__track { animation-play-state: paused; }
.items__item { flex: none; width: 2.5rem; height: 2.5rem; border-radius: .625rem; overflow: hidden; border: 1px solid rgba(95, 20, 1, .35); box-shadow: 0 .25rem .625rem rgba(0,0,0,.18); background: #1d1d1f; }
.items__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes items-run { to { transform: translateX(calc(-50% - .25rem)); } }
@media (prefers-reduced-motion: reduce) { .items__track { animation: none; } }

/* ===== Мини-игра · вариант 05 «Билет» ===== */
.bubble-game--ticket { padding: 0; background: none; box-shadow: none; }
.bubble-game__ticket { display: flex; filter: drop-shadow(0 1.75rem 2.25rem rgba(60, 30, 10, .28)); }
.bubble-game--ticket .bubble-game__photo {
  position: relative; flex: 1 1 auto; min-width: 0; aspect-ratio: 16 / 11; overflow: hidden; border-radius: 1rem 0 0 1rem; background: #0d0b09; touch-action: none; cursor: pointer;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent .875rem, #000 .9rem) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent .875rem, #000 .9rem) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent .875rem, #000 .9rem) top / 100% 51% no-repeat, radial-gradient(circle at 100% 100%, transparent .875rem, #000 .9rem) bottom / 100% 51% no-repeat;
}
.bubble-game--ticket .bubble-game__art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.bubble-game__film, .bubble-game--ticket .bubble-game__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.bubble-game__kicker { position: absolute; left: 1.25rem; top: 1rem; font-family: var(--font-serif); font-style: italic; font-size: 1.25rem; color: #e3c398; text-shadow: 0 .125rem .75rem rgba(0,0,0,.6); pointer-events: none; }
.bubble-game--ticket .bubble-game__sound { right: 1rem; top: 1rem; }
.bubble-game__stub {
  flex: 0 0 11.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; padding: 1.5rem 1.25rem;
  background: #f4ecdc; border-left: 2px dashed rgba(95, 20, 1, .4); border-radius: 0 1rem 1rem 0;
  -webkit-mask: radial-gradient(circle at 0 0, transparent .875rem, #000 .9rem) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent .875rem, #000 .9rem) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent .875rem, #000 .9rem) top / 100% 51% no-repeat, radial-gradient(circle at 0 100%, transparent .875rem, #000 .9rem) bottom / 100% 51% no-repeat;
}
.bubble-game__tag { font-size: .6875rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--color-burgundy); }
.bubble-game__code { font-weight: 800; font-size: 1.125rem; letter-spacing: .06em; color: var(--color-night); filter: blur(6px); transition: filter .4s var(--ease-out); word-break: break-all; user-select: none; }
.bubble-game__score { display: flex; flex-direction: column; gap: .25rem; }
.bubble-game--ticket .bubble-game__percent { font-size: 2.5rem; line-height: 1; color: var(--color-burgundy); }
.bubble-game--ticket .bubble-game__name { font-size: .9375rem; color: #8a6236; }
.bubble-game--ticket .bubble-game__track { display: block; height: .25rem; margin: 0; border-radius: 9rem; background: rgba(95, 20, 1, .14); }
.bubble-game--ticket .bubble-game__fill { display: block; border-radius: inherit; }
.bubble-game__date { font-size: .75rem; opacity: .6; }
.bubble-game--won .bubble-game__code { filter: none; user-select: text; }
@media (min-width: 1024px) and (orientation: landscape) {
  .bubble-game--ticket { left: 33.75rem; top: 15rem; width: 39rem; height: auto; padding: 0; rotate: -3deg; }
}
@media (max-width: 1023.98px), (orientation: portrait) {
  .bubble-game__ticket { flex-direction: column; }
  .bubble-game--ticket .bubble-game__photo { border-radius: 1rem 1rem 0 0; aspect-ratio: 4 / 3.4;
    -webkit-mask: radial-gradient(circle at 0 100%, transparent .875rem, #000 .9rem) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent .875rem, #000 .9rem) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 100%, transparent .875rem, #000 .9rem) left / 51% 100% no-repeat, radial-gradient(circle at 100% 100%, transparent .875rem, #000 .9rem) right / 51% 100% no-repeat; }
  .bubble-game__stub { flex-basis: auto; display: grid; grid-template-columns: 1fr auto; align-items: end; border-left: 0; border-top: 2px dashed rgba(95, 20, 1, .4); border-radius: 0 0 1rem 1rem;
    -webkit-mask: radial-gradient(circle at 0 0, transparent .875rem, #000 .9rem) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent .875rem, #000 .9rem) right / 51% 100% no-repeat;
    mask: radial-gradient(circle at 0 0, transparent .875rem, #000 .9rem) left / 51% 100% no-repeat, radial-gradient(circle at 100% 0, transparent .875rem, #000 .9rem) right / 51% 100% no-repeat; }
  .bubble-game__tag, .bubble-game__code, .bubble-game__track { grid-column: 1 / -1; }
  .bubble-game__date { text-align: right; }
}
.bubble-game--ticket .bubble-game__code { font-size: 1rem; letter-spacing: .02em; white-space: nowrap; word-break: normal; }
@media (min-width: 1024px) and (orientation: landscape) {
  .bubble-game--ticket .bubble-game__photo { aspect-ratio: auto; min-height: 21rem; }
  .bubble-game__stub { flex-basis: 12rem; }
}

/* Кнопки хедера: тот же эффект, что у остальных кнопок — заливка поднимается снизу */
.header__button { position: relative; overflow: hidden; isolation: isolate; }
.header__button::before {
  content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: currentColor; opacity: .14;
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.header__button:hover::before, .header__button:focus-visible::before, .lang--open .lang__toggle::before { transform: translateY(0); }

/* Футер: кнопка «По вопросам сотрудничества» */
.legal__row { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.25rem; }
.legal__partner {
  position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; gap: .375rem;
  height: 1.75rem; padding: 0 .75rem; border-radius: var(--radius-pill); border: 1px solid rgba(201, 165, 126, .45);
  font-size: .6875rem; font-weight: 600; color: var(--color-tan); white-space: nowrap; transition: border-color var(--dur-micro);
}
.legal__partner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: .14; transform: translateY(101%); transition: transform .55s var(--ease-out); }
.legal__partner:hover::before, .legal__partner:focus-visible::before { transform: translateY(0); }
.legal__partner:hover { border-color: var(--color-tan); }
.channel__icon svg { width: 50%; height: 50%; color: var(--color-paper); }
@media (max-width: 1023.98px), (orientation: portrait) {
  .channel--wide { width: 100% !important; }
  .channel--wide .channel__link { flex-direction: row; align-items: center; gap: .875rem; }
}

/* ===== Хиро: ссылка «Смотреть трейлер» ===== */
.hero__trailer {
  position: relative; z-index: 3; display: inline-flex; align-items: center; gap: .625rem; align-self: flex-start;
  font-family: var(--font-serif); font-style: italic; font-size: 1.375rem; line-height: 1.2; color: var(--color-burgundy);
  padding-bottom: .25rem; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; transition: background-size .5s var(--ease-out);
}
.hero__trailer:hover { background-size: 0 1px; background-position: 100% 100%; }
.hero__trailer-icon { position: relative; flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; border: 1px solid currentColor; transition: background-color .4s var(--ease-out), color .4s; }
.hero__trailer-icon::after { content: ''; position: absolute; left: 54%; top: 50%; translate: -50% -50%; border-left: .45rem solid currentColor; border-top: .28rem solid transparent; border-bottom: .28rem solid transparent; }
.hero__trailer:hover .hero__trailer-icon { background: var(--color-burgundy); color: var(--color-paper); }
.hero__trailer:hover .hero__trailer-icon::after { border-left-color: var(--color-paper); }
@media (min-width: 1024px) and (orientation: landscape) {
  .hero__trailer { position: absolute; left: 5.25rem; top: 26.5rem; }
}
@media (max-width: 1023.98px), (orientation: portrait) {
  .hero__trailer { font-size: 1.125rem; margin-top: 1rem; }
}

/* Снимок повторяет форму окна: без чёрных полос, узкие окна центрируются на бумаге */
@media (min-width: 1024px) and (orientation: landscape) {
  .polaroid__image { width: auto; max-width: 100%; max-height: 8.75rem; margin: 0 auto; }
}

.nw { white-space: nowrap; }

/* Все 9 отзывов видны на мобильных и планшетах */
@media (max-width: 1023.98px), (orientation: portrait) {
  .reviews .review:nth-child(n) { display: flex; }
}

.keyhole { display: block; cursor: pointer; }
/* длинные подписи курсора («Подсмотреть», «Посмотреть») не обрезаются */
.cursor--text .cursor__ring { width: 6.5rem; height: 6.5rem; margin: -3.25rem 0 0 -3.25rem; }

/* Мобильное меню: крестик всегда виден на тёмном фоне меню */
.header:has(.menu--open), .header__burger--open { color: var(--color-paper); }
.header__burger { position: relative; z-index: 2; pointer-events: auto; }
/* iOS не приближает страницу при фокусе, если шрифт поля ≥ 16px */
@media (hover: none), (max-width: 1023.98px) {
  .field { font-size: 16px; }
}
@media (max-width: 1023.98px), (orientation: portrait) {
  html, body { overflow-x: clip; }
}

a.round-video { display: block; }

/* Переключатель языка открывается при наведении (мышь) */
@media (hover: hover) and (pointer: fine) {
  .lang:hover .lang__list, .lang:focus-within .lang__list { opacity: 1; visibility: visible; translate: 0 0; }
  .lang:hover .lang__toggle::before { transform: translateY(0); }
}
.lang__list::before { content: ''; position: absolute; left: 0; right: 0; top: -.75rem; height: .75rem; }
