/* Marketing Horror Park - JUST brand agency */

/* Шрифты по бренд-буку JUST: заголовки Loos Extended, подзаголовки и основной текст Loos Normal.
   Creepster - только надпись акции на первом экране, Caveat - рукописные пометки (прием из бренд-бука). */
@font-face { font-family: "Loos Extended"; src: url("../fonts/LoosExtended-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Loos Extended"; src: url("../fonts/LoosExtended-Black.woff") format("woff"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Loos Normal"; src: url("../fonts/LoosNormal-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Loos Normal"; src: url("../fonts/LoosNormal-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Creepster"; src: url("../fonts/Creepster-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face {
  font-family: "Caveat"; src: url("../fonts/Caveat-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Caveat"; src: url("../fonts/Caveat-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0812;
  --bg-2: #110b1a;
  --panel-a: rgba(31, 22, 46, .94);
  --panel-b: rgba(18, 12, 27, .94);
  --line: rgba(255, 236, 214, .09);
  --line-2: rgba(255, 140, 60, .32);
  --text: #f8f3ea;
  --muted: #bcb0c9;
  --dim: #8c80a0;
  --orange: #f85300;
  --orange-2: #ff7a2e;
  --orange-3: #ffb27a;
  --ink: #1b0d05;
  --purple: #6f3fd6;
  --purple-2: #c9b3ff;
  --lime: #deed7c;
  --black: #151515;
  --error: #ffa08c;
  --radius: 18px;
  --wrap: 1200px;
  --hdr-h: 72px;
  --f-display: "Creepster", "Loos Extended", Impact, sans-serif;
  --f-head: "Loos Extended", "Arial Black", system-ui, sans-serif;
  --f-body: "Loos Normal", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-hand: "Caveat", "Segoe Script", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
/* overflow-x: clip на html и body: iOS Safari не режет по overflow: hidden на body и после зума показывает хвосты ленты и ворот */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr-h) + 12px); -webkit-text-size-adjust: 100%; overflow-x: clip; background: #08060d; }
body {
  margin: 0; background: var(--bg); color: var(--text); overscroll-behavior-y: none;
  font: 18px/1.3 var(--f-body); overflow-x: clip; max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
:focus-visible { outline: 2px solid var(--orange-3); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 10px; background: var(--orange); color: var(--ink); }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.eyebrow { font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: var(--orange-2); margin-bottom: 14px; }
.h2 { font: 900 clamp(28px, 3.6vw, 46px)/.94 var(--f-head); letter-spacing: -.01em; margin-bottom: 22px; }
.h3 { font: 700 22px/1.06 var(--f-head); margin-bottom: 8px; }
.lead { font-size: 20px; line-height: 1.25; color: var(--muted); max-width: 560px; }
.muted { color: var(--muted); }
.small { font-size: 15px; color: var(--dim); }
.small a, .check a { color: var(--orange-3); }

.ico { width: 1.15em; height: 1.15em; flex: none; }
.ico--pumpkin { color: var(--orange-2); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 50px; padding: 0 24px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 13px/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, filter .2s;
}
.btn--primary {
  background: linear-gradient(180deg, #ff8440, var(--orange)); color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 190, 140, .45), 0 12px 30px -10px rgba(248, 83, 0, .75), 0 0 44px -12px rgba(248, 83, 0, .9);
}
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn--ghost {
  background: rgba(248, 83, 0, .06); color: var(--orange-3);
  box-shadow: inset 0 0 0 1.5px var(--orange-2), inset 0 0 16px -6px rgba(248, 83, 0, .7), 0 0 24px -10px rgba(248, 83, 0, .8);
}
.btn--ghost:hover { background: rgba(248, 83, 0, .16); color: #fff; }
.btn--quiet { background: rgba(255, 255, 255, .05); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.btn--quiet:hover { color: var(--text); background: rgba(255, 255, 255, .09); }
.btn--lg { height: 62px; padding: 0 34px; font-size: 15px; }
.btn--sm { height: 40px; padding: 0 16px; font-size: 11px; }
.btn[disabled] { opacity: .55; cursor: default; transform: none; filter: none; }

/* Шапка */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr-h); }
/* при прокрутке шапка собирается в плавающую капсулу; фон на ::before, чтобы blur не ломал выпадающее меню */
.hdr__in {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 24px; height: 100%; max-width: var(--wrap);
  transition: max-width .5s cubic-bezier(.2, .8, .2, 1), height .5s cubic-bezier(.2, .8, .2, 1), margin .5s cubic-bezier(.2, .8, .2, 1), padding .5s cubic-bezier(.2, .8, .2, 1);
}
.hdr__in::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 999px; pointer-events: none;
  background: rgba(13, 9, 21, .76); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 0 0 1px rgba(255, 236, 214, .1), 0 18px 50px -24px rgba(0, 0, 0, .9), 0 0 44px -24px rgba(248, 83, 0, .6);
  opacity: 0; transform: scale(.97); transition: opacity .35s, transform .5s cubic-bezier(.2, .8, .2, 1);
}

.hdr.is-scrolled .hdr__in { max-width: 1080px; height: 58px; margin-top: 7px; padding: 0 8px 0 24px; }
.hdr.is-scrolled .hdr__in::before, .hdr.menu-open .hdr__in::before { opacity: 1; transform: none; }
.logo { display: inline-flex; flex: none; }
/* у знака звезда над j: без сдвига слово визуально проседает относительно меню */
.hdr .logo { transform: translateY(-3px); }
.logo img { display: block; height: 40px; width: auto; transition: height .5s cubic-bezier(.2, .8, .2, 1); }
.hdr.is-scrolled .logo img { height: 34px; }
.logo__mark { display: none !important; }
.ftr .logo img { height: 92px; }
.nav { position: relative; display: flex; gap: clamp(18px, 3vw, 40px); margin-inline: auto; }
.nav a { font: 700 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .09em; color: var(--muted); text-decoration: none; padding: 8px 0; transition: color .3s; }
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav__ink {
  position: absolute; left: 0; bottom: 0; width: 0; height: 2px; border-radius: 2px; pointer-events: none; opacity: 0;
  background: var(--orange-2); box-shadow: 0 0 12px 1px rgba(248, 83, 0, .95);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), width .5s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.nav.has-active .nav__ink { opacity: 1; }
.hdr__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.hdr__cta .ico { width: 20px; height: 20px; }
.lang { display: flex; gap: 2px; }
.lang { background: rgba(13, 9, 21, .45); border-radius: 999px; }
.lang button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: transparent; color: var(--dim); font: 700 11px/1 var(--f-head); cursor: pointer; }
.lang button[aria-pressed="true"] { background: rgba(255, 255, 255, .09); color: var(--text); }
.burger { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .06); cursor: pointer; position: relative; }
.burger span:not(.sr) { position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .25s, opacity .25s; }
.burger span:nth-child(1) { top: 14px; } .burger span:nth-child(2) { top: 20px; } .burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Первый экран */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(660px, 100svh, 920px); display: flex; align-items: center;
  padding: calc(var(--hdr-h) + 36px) 0 110px;
  background:
    radial-gradient(900px 620px at 80% 18%, rgba(111, 63, 214, .38), transparent 62%),
    radial-gradient(700px 520px at 8% 92%, rgba(248, 83, 0, .12), transparent 60%),
    var(--bg);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 180px; background: linear-gradient(to bottom, transparent, var(--bg)); z-index: -1; }
.hero__art {
  position: absolute; top: 0; right: max(0px, calc((100vw - var(--wrap)) / 2 - 120px)); bottom: 0; width: min(70vw, 1240px); z-index: -2;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 90%, transparent 100%), linear-gradient(to top, transparent 0, #000 24%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent 0, #000 30%, #000 90%, transparent 100%), linear-gradient(to top, transparent 0, #000 24%);
  mask-composite: intersect;
}
.hero__art { container-type: size; }
/* широкие экраны: сетка шире, чтобы слева не оставалось пустого поля, арт привязан к сетке */
@media (min-width: 1700px) { :root { --wrap: 1400px; } }
.hero__frame { --fx: 50%; --fy: 45%; position: absolute; left: var(--fx); top: var(--fy); width: max(100cqw, calc(100cqh * 1536 / 1024)); aspect-ratio: 1536 / 1024; transform: translate(calc(var(--fx) * -1), calc(var(--fy) * -1)); }
.hero__frame picture, .hero__img { display: block; width: 100%; height: 100%; }
.hero__sign { position: absolute; left: 45%; top: 17.4%; width: 10%; height: auto; filter: drop-shadow(0 0 2px rgba(255, 140, 60, .9)) drop-shadow(0 0 12px rgba(248, 83, 0, .6)); }
.hero__in { position: relative; }
.hero__in > * { max-width: 560px; }
.hero__in > * { animation: hero-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.hero__in > :nth-child(3) { animation-delay: .5s; }
.hero__in > :nth-child(4) { animation-delay: .62s; }
.hero__in > :nth-child(5) { animation-delay: .74s; }
.hero__in > :nth-child(6), .hero__in > :nth-child(7) { animation-delay: .86s; }
@keyframes hero-in { from { opacity: 0; translate: 0 22px; } }
/* заголовок зажигается, как неоновая вывеска, и иногда моргает */
.hero__title { animation: none; }
/* без неонового мигания и градиента по буквам: решение 18.09, ровный цвет и мягкое свечение */
@keyframes neon-on { 0% { opacity: 0; } 14% { opacity: .9; } 22% { opacity: .25; } 34%, 100% { opacity: 1; } }
@keyframes neon-flick { 0%, 94%, 100% { opacity: 1; } 95% { opacity: .35; } 96.5% { opacity: 1; } 97.5% { opacity: .55; } 98.5% { opacity: 1; } }
/* плашка лежит на пестром арте: без плотной подложки надпись читалась как висящая в воздухе */
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 16px 6px 6px;
  border-radius: 999px; background: rgba(12, 8, 19, .74);
  backdrop-filter: blur(10px) saturate(1.25); -webkit-backdrop-filter: blur(10px) saturate(1.25);
  box-shadow: inset 0 0 0 1px rgba(255, 140, 60, .5), 0 12px 28px -16px rgba(0, 0, 0, .95);
  font: 700 11px/1 var(--f-head); text-transform: uppercase; letter-spacing: .08em; color: var(--orange-3);
}
.badge .ico { width: 24px; height: 24px; }
.hero__title {
  margin: 30px 0 26px; font: 400 clamp(64px, 9.6vw, 140px)/.84 var(--f-display); text-transform: uppercase; letter-spacing: .01em;
  color: var(--orange-2);
  filter: drop-shadow(0 0 16px rgba(248, 83, 0, .55)) drop-shadow(0 0 2px rgba(255, 120, 40, .9));
  transform: translateX(.2em) rotate(-4deg); transform-origin: 0 100%;
  max-width: none; width: max-content;
}
/* градиент по тексту на самих словах: в Safari обрезка по тексту на элементе с filter и анимируемыми детьми рисует пустоту */
.hero__title span { display: block; width: max-content; }
.hero__lead { font: 400 22px/1.35 var(--f-body); margin-bottom: 26px; max-width: 440px; text-wrap: pretty; }
.hero__hint { margin-top: 16px; font: 400 16px/1.35 var(--f-body); color: var(--muted); max-width: 340px; }
.hero__dates { margin-top: 10px; font: 600 27px/1.1 var(--f-hand); color: var(--purple-2); transform: rotate(-2deg); transform-origin: 0 50%; }

/* таймер до открытия и закрытия парка */
.count { display: flex; gap: 10px; margin-top: 12px; }
.count[hidden] { display: none; }
.count__cell {
  flex: 0 0 90px; min-width: 76px; padding: 9px 10px 9px; border-radius: 14px; text-align: center;
  background: linear-gradient(180deg, rgba(36, 24, 52, .84), rgba(16, 10, 24, .84));
  box-shadow: inset 0 0 0 1px rgba(255, 140, 60, .3), 0 12px 30px -18px rgba(248, 83, 0, .9);
}
/* свечение фильтром по форме цифр: text-shadow обрезался бы рамкой каждой цифры и давал прямоугольники */
.count__num { display: flex; justify-content: center; font: 900 30px/1 var(--f-head); color: var(--orange-2); filter: drop-shadow(0 0 9px rgba(248, 83, 0, .6)); }
.dig { position: relative; display: block; width: .8em; height: 1.08em; overflow: hidden; }
.dig i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-style: normal; }
.dig i.in { animation: dig-in .55s cubic-bezier(.2, .9, .3, 1) both; }
.dig i.out { animation: dig-out .55s cubic-bezier(.5, 0, .8, .4) both; }
@keyframes dig-in { from { transform: translateY(-95%); opacity: 0; } }
@keyframes dig-out { to { transform: translateY(95%); opacity: 0; } }
.count__unit { display: block; margin-top: 6px; font: 700 9px/1 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); }

/* сигнальные ленты между первым экраном и «Как устроен парк» */
.tapes { position: relative; z-index: 4; height: 140px; margin: -96px 0 -44px; overflow: clip; max-width: 100vw; pointer-events: none; }
.tape {
  position: absolute; left: -10vw; width: 120vw; height: 48px; display: flex; overflow: hidden; color: var(--black);
  box-shadow: 0 16px 34px -14px rgba(0, 0, 0, .85);
}
.tape--a { top: 26px; transform: rotate(-3deg); background: var(--orange); }
.tape--b { top: 60px; transform: rotate(2.2deg); background: var(--lime); }
.tape__track { display: flex; flex: none; height: 100%; white-space: nowrap; will-change: transform; }
/* полосы и складки нарисованы на куске ленты и едут вместе с надписью.
   Скрипт делает ширину куска кратной --stripe, а складки начинаются и кончаются прозрачным: стыков не видно */
.tape__run {
  --stripe: 24px;
  position: relative; display: flex; flex: none; align-items: center; justify-content: space-around; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .09) 16%, transparent 32%, rgba(255, 255, 255, .12) 50%, transparent 66%, rgba(0, 0, 0, .1) 84%, transparent);
}
.tape--b .tape__run { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .07) 18%, transparent 36%, rgba(255, 255, 255, .24) 52%, transparent 70%, rgba(0, 0, 0, .08) 86%, transparent); }
.tape__run::before, .tape__run::after {
  content: ""; position: absolute; left: 0; right: 0; height: 5px; opacity: .9;
  background: linear-gradient(-45deg, var(--black) calc(25% - .5px), transparent calc(25% + .5px) calc(50% - .5px), var(--black) calc(50% + .5px) calc(75% - .5px), transparent calc(75% + .5px)) 0 0 / var(--stripe) var(--stripe);
}
.tape__run::before { top: 0; }
.tape__run::after { bottom: 0; }
.tape__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font: 900 16px/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em; }
.tape__star { width: 17px; height: 19px; flex: none; }

.fog i { position: absolute; z-index: -1; border-radius: 50%; filter: blur(50px); background: rgba(160, 140, 200, .10); animation: drift 38s linear infinite alternate; }
/* туман дышит и едет вслед за прокруткой: два разных свойства, чтобы анимации не спорили */
.fog i { animation: drift 38s linear infinite alternate, breathe 9s ease-in-out infinite alternate; }
@keyframes breathe { from { opacity: .7; scale: 1 1; } to { opacity: 1; scale: 1.08 1.16; } }
@supports (animation-timeline: scroll()) {
  .fog i { animation: drift 38s linear infinite alternate, breathe 9s ease-in-out infinite alternate, fog-scroll linear both; animation-timeline: auto, auto, scroll(root); }
  .fog i:nth-child(2) { animation-direction: alternate-reverse, alternate, normal; }
  @keyframes fog-scroll { from { translate: -3vw 0; } to { translate: 9vw -40px; } }
}
/* готовые PNG-слои тумана (docs/ART-PROMPTS.md, п.5): когда файлы появятся, включить --fog-img на .fog i */
.fog i.has-img { border-radius: 0; filter: none; background: var(--fog-img) center / cover no-repeat; opacity: .6; }
/* туман на карте: над картинкой, под кликабельными зонами */
.fog--park { position: absolute; inset: auto 0 0 0; height: 45%; z-index: 1; pointer-events: none; overflow: visible; }
.fog--park i { z-index: 1; filter: blur(34px); background: rgba(150, 120, 200, .16); }
.fog--park i:nth-child(1) { width: 55%; height: 55%; left: -8%; bottom: -10%; }
.fog--park i:nth-child(2) { width: 45%; height: 50%; right: -6%; bottom: -14%; background: rgba(110, 80, 170, .18); }
.fog--park i:nth-child(3) { width: 38%; height: 40%; left: 34%; bottom: -18%; animation-duration: 52s, 11s, auto; }
@media (prefers-reduced-motion: reduce) { .fog i { animation: none; opacity: .8; } }
.fog i:nth-child(1) { width: 60vw; height: 180px; left: -10vw; bottom: 60px; }
.fog i:nth-child(2) { width: 50vw; height: 140px; right: -8vw; bottom: 10px; animation-duration: 46s; animation-direction: alternate-reverse; background: rgba(120, 90, 180, .12); }
.fog i:nth-child(3) { width: 40vw; height: 120px; left: 30vw; bottom: -30px; animation-duration: 52s; }
@keyframes drift { from { transform: translateX(-6vw); } to { transform: translateX(8vw); } }

.embers i { position: absolute; z-index: -1; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 10px 2px rgba(248, 83, 0, .8); opacity: 0; animation: rise 11s linear infinite; }
.embers i:nth-child(1) { left: 6%; animation-delay: 0s; }
.embers i:nth-child(2) { left: 14%; animation-delay: 3.5s; animation-duration: 13s; }
.embers i:nth-child(3) { left: 23%; animation-delay: 7s; }
.embers i:nth-child(4) { left: 31%; animation-delay: 1.8s; animation-duration: 15s; }
.embers i:nth-child(5) { left: 42%; animation-delay: 5s; }
.embers i:nth-child(6) { left: 51%; animation-delay: 9s; animation-duration: 12s; }
.embers i:nth-child(7) { left: 60%; animation-delay: 2.6s; }
.embers i:nth-child(8) { left: 68%; animation-delay: 6.2s; animation-duration: 14s; }
.embers i:nth-child(9) { left: 76%; animation-delay: .8s; }
.embers i:nth-child(10) { left: 84%; animation-delay: 4.4s; animation-duration: 16s; }
.embers i:nth-child(11) { left: 91%; animation-delay: 8.1s; }
.embers i:nth-child(12) { left: 97%; animation-delay: 10.2s; animation-duration: 13s; }
@keyframes rise {
  0% { transform: translate(0, 0) scale(1); opacity: 0; }
  10% { opacity: .9; }
  60% { opacity: .6; }
  100% { transform: translate(40px, -86vh) scale(.4); opacity: 0; }
}

/* Как устроен парк */
.how { padding: 70px 0 30px; }
.how__steps { list-style: none; padding: 0; margin: 38px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.how__steps li {
  position: relative; padding: 0 0 12px;
}
.how__steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 22px; border: 1px solid var(--line-2); border-radius: 50%; font: 700 13px/1 var(--f-head); color: var(--orange-3); }
.how__steps li:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 60px; right: -14px; border-top: 1px dashed var(--line-2); }
.how__steps li:last-child::before { background: var(--orange); color: var(--ink); border-color: var(--orange); }
.how__steps b { display: block; font: 700 18px/1.15 var(--f-head); margin-bottom: 10px; }
.how__steps span { display: block; color: var(--muted); font-size: 17px; line-height: 1.4; max-width: 28ch; }

/* Карта парка */
.park { position: relative; padding: 70px 0 20px; }
.park__stage { position: relative; max-width: 1320px; margin-inline: auto; }
.park__head { position: relative; z-index: 3; display: flex; justify-content: space-between; align-items: end; gap: 32px; width: min(100% - 32px, var(--wrap)); margin: 0 auto 24px; }
.park__title { font: 900 clamp(30px, 4vw, 52px)/.98 var(--f-head); text-transform: uppercase; margin: 0; }
.park__lead { font: 400 20px/1.35 var(--f-body); color: var(--muted); max-width: 390px; }
.park__progress {
  display: flex; align-items: center; gap: 24px; width: 100%; margin: 0; padding: 0;
  font: 700 11px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-3);
}
.park__progress::after { content: ""; flex: 1; height: 3px; border-radius: 2px; background: linear-gradient(to right, var(--orange) var(--explored, 0%), var(--line) var(--explored, 0%)); }
.park__progress:empty { display: none; }
.park__scroller { position: relative; }
.park__canvas { position: relative; width: 100%; aspect-ratio: 1536 / 1024; }
.park__img {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
.note { position: absolute; margin: 0; pointer-events: none; font: 600 clamp(15px, 2.1vw, 30px)/.92 var(--f-hand); color: #aa9fb8; }
.note--choose { left: 2%; top: 35%; width: 11%; transform: rotate(-12deg); }
.note--real { left: 87.5%; top: 5%; width: 11%; text-align: center; transform: rotate(9deg); }
.park__sign { display: none; }
.park__dark {
  position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
}
@media (min-width: 1321px) {
  .park__img, .park__dark {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%), linear-gradient(to right, transparent 0, #000 5%, #000 95%, transparent 100%);
    mask-composite: intersect;
  }
}
.park__swipe { display: none; text-align: center; font: 600 22px/1.2 var(--f-hand); color: var(--dim); margin-top: 6px; }

.spot { position: absolute; padding: 0; border: 0; background: transparent; border-radius: 18px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.spot::before { content: ""; position: absolute; inset: -4% -14%; border-radius: 50%; opacity: 0; transition: opacity .3s; background: radial-gradient(ellipse at 50% 60%, rgba(248, 83, 0, .45), rgba(248, 83, 0, .14) 48%, transparent 72%); filter: blur(10px); }
.spot:hover::before, .spot:focus-visible::before { opacity: 1; }
.spot:hover .spot__pin, .spot:focus-visible .spot__pin { box-shadow: 0 0 0 3px rgba(27, 13, 5, .8), 0 0 22px 6px rgba(248, 83, 0, 1); }
.spot:focus-visible { outline: none; }
/* пин стоит на плашке под табличкой, а не на голове персонажа */
.spot__pin { position: absolute; left: 50%; top: auto; bottom: -9px; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(27, 13, 5, .8), 0 0 14px 2px rgba(248, 83, 0, .9); display: grid; place-items: center; color: var(--ink); }
.spot__pin::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid rgba(255, 122, 46, .8); animation: ping 2.2s ease-out infinite; }
.spot__pin .ico { width: 11px; height: 11px; display: none; }
.spot.is-visited .spot__pin { width: 22px; height: 22px; margin-left: -11px; bottom: -12px; background: var(--orange-3); }
.spot.is-visited .spot__pin::after { display: none; }
.spot.is-visited .spot__pin .ico { display: block; }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }

.park__foot { display: flex; flex-direction: column; gap: 24px; margin-top: 18px; }
.park__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 24px; width: 100%; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: 700 12px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .03em;
  transition: border-color .2s, background-color .2s;
}
.chip:hover { border-color: var(--line-2); background: rgba(248, 83, 0, .08); }
.chip small { font: 400 15px/1 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--dim); }
.chip .ico { width: 14px; height: 14px; color: var(--orange-3); display: none; }
.chip.is-visited { border-color: rgba(255, 140, 60, .45); }
.chip.is-visited .ico { display: block; }
.park__list .chip { width: 100%; min-height: 96px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; justify-content: space-between; text-align: left; text-transform: none; letter-spacing: 0; }
.park__destination { min-width: 0; display: grid; gap: 7px; }
.park__destination b { font: 700 17px/1.15 var(--f-head); }
.park__list .chip small { color: var(--muted); font-size: 14px; line-height: 1.2; }
.park__visit { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; color: var(--orange-3); }
.park__list .chip .ico { display: block; width: 14px; height: 14px; }
.park__list .chip .ico:last-child, .park__list .chip.is-visited .ico:first-child { display: none; }
.park__list .chip.is-visited .ico:last-child { display: block; }
.park__list .chip.is-visited .park__visit { background: var(--orange); border-color: var(--orange); }
.park__list .chip.is-visited .ico { color: var(--ink); }
.park__list .chip:hover .park__destination b { color: var(--orange-3); }

/* Три карточки */
.cards { padding: 64px 0 80px; }
.cards__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 18px; }
.card {
  position: relative; overflow: hidden; display: flex; min-height: 320px; padding: 28px;
  border-radius: var(--radius); border: 1px solid var(--line);
  background: radial-gradient(120% 90% at 100% 0%, rgba(111, 63, 214, .22), transparent 60%), linear-gradient(180deg, #1c1429, #130d1d);
}
.card__body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; width: 64%; }
.card__label { font: 700 11px/1 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--dim); margin-bottom: 20px; }
.card__title { font: 700 23px/1.12 var(--f-head); margin-bottom: 14px; text-wrap: balance; }
.card--test { grid-row: span 2; }
.card--test .card__body { width: 100%; }
.card--test .card__title { font-size: clamp(26px, 3vw, 38px); max-width: 15ch; }
.card--test .card__text { max-width: 26ch; }
.card--test .card__art { top: auto; bottom: 0; right: 0; width: 100%; height: 65%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 50%); mask-image: linear-gradient(to bottom, transparent 0, #000 50%); }
.card--test .card__art img { object-position: 50% 62%; }
.card--cases { min-height: 220px; }
.card--prizes { min-height: 310px; }
.card__text { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.card .btn { margin-top: auto; }
.card__list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.card__list li { display: flex; align-items: baseline; gap: 10px; font-size: 17px; line-height: 1.25; }
.card__list li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-2); box-shadow: 0 0 10px var(--orange); transform: translateY(-2px); }
.card__more { color: var(--dim); font-size: 16px; margin-bottom: 18px; }
.card__art { position: absolute; right: -4%; top: 0; bottom: 0; width: 46%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 34%); mask-image: linear-gradient(to right, transparent 0, #000 34%); }
.card__art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 20%; }
.card--cases .card__art img { object-position: 50% 76%; }

/* Панели, тест */
.panel { border-radius: 26px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .9); }
.quiz { padding: 30px 0 90px; }
.quiz__panel { position: relative; overflow: hidden; max-width: 1040px; margin-inline: auto; padding: clamp(24px, 4vw, 50px); min-height: 440px; border-color: var(--line-2); }
.quiz__intro { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: center; }
.quiz__intro .lead { margin-bottom: 28px; }
.quiz__intro picture img { width: 100%; height: 380px; object-fit: cover; object-position: 50% 62%; -webkit-mask-image: radial-gradient(50% 50% at 50% 50%, #000 60%, transparent 100%); mask-image: radial-gradient(50% 50% at 50% 50%, #000 60%, transparent 100%); }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; min-height: 30px; }
.quiz__step { font: 700 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.quiz__bar { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; margin-bottom: 28px; }
.quiz__bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--orange), var(--orange-3)); transition: width .4s; }
.quiz__q { font: 700 clamp(22px, 2.6vw, 30px)/1.06 var(--f-head); margin-bottom: 26px; }
.quiz__opts { display: grid; gap: 10px; }
.opt {
  width: 100%; display: flex; align-items: center; gap: 14px; padding: 15px 18px; text-align: left; cursor: pointer;
  border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); color: var(--text); font: 18px/1.25 var(--f-body);
  transition: border-color .2s, background-color .2s;
}
.opt:hover { border-color: var(--line-2); background: rgba(248, 83, 0, .07); }
.opt[aria-pressed="true"] { border-color: var(--orange-2); background: rgba(248, 83, 0, .15); }
.opt__key { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line-2); font: 700 12px/1 var(--f-head); color: var(--orange-3); }
.opt[aria-pressed="true"] .opt__key { background: var(--orange); color: var(--ink); box-shadow: none; }
.linkbtn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; cursor: pointer; color: var(--dim); font: 700 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.linkbtn:hover { color: var(--text); }
.linkbtn .ico { width: 16px; height: 16px; }

.result { display: grid; grid-template-columns: 230px 1fr; gap: 32px; align-items: start; }
.result__art img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 25%; border-radius: 20px; box-shadow: 0 0 0 1px var(--line-2), 0 0 50px -16px rgba(248, 83, 0, .6); }
.result__title { font: 700 16px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.result__name { font: 900 clamp(26px, 3.2vw, 40px)/.94 var(--f-head); text-transform: uppercase; color: var(--orange); text-shadow: 0 0 22px rgba(248, 83, 0, .45); margin: 12px 0 18px; }
.result__text { font-size: 20px; line-height: 1.25; margin-bottom: 22px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 26px; }
.tag { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px; line-height: 1.1; color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.mini-h { font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--orange-3); margin-bottom: 8px; }

/* Колесо */
.wheel { padding: 80px 0; overflow-x: clip; background: radial-gradient(760px 64% at 24% 50%, rgba(111, 63, 214, .24), transparent 70%); }
.wheel__grid { display: grid; grid-template-columns: minmax(280px, 470px) 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.wheel__stage { position: relative; width: 100%; aspect-ratio: 1; }
.wheel__glow { position: absolute; inset: -10%; border-radius: 50%; background: radial-gradient(closest-side, rgba(248, 83, 0, .32), transparent 72%); filter: blur(8px); }
/* хэллоуинское колесо: секторы рисует код, поверх лежит кованый обод с тыквами (img/wheel-rim), в центре тыква-ступица */
.wheel__disc { position: absolute; inset: 11%; border-radius: 50%; will-change: transform; }
.wheel__stage::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: url("../img/wheel-rim.webp") center / contain no-repeat; filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .7)); }
.wheel__svg-bulbs, .bulb { display: none; }
.wheel__disc svg { width: 100%; height: 100%; overflow: visible; }
/* стрелка колеса - скелетная кисть (img/bone-pointer): кончик пальца лежит на ободе, качается от манжеты */
.wheel__pointer { position: absolute; top: calc(13.5% - 92px); left: 50%; width: 60px; height: 92px; margin-left: -30px; z-index: 4;
  background: url("../img/bone-pointer.webp") center bottom / contain no-repeat; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .6)) drop-shadow(0 0 14px rgba(248, 83, 0, .45));
  transform-origin: 50% 14%; will-change: transform; }
@media (max-width: 760px) { .wheel__pointer { top: calc(13.5% - 74px); width: 48px; height: 74px; margin-left: -24px; } }
.wheel__hub { position: absolute; left: 50%; top: 50%; width: 25%; aspect-ratio: 1; transform: translate(-50%, -50%); z-index: 4; background: url("../img/wheel-hub.webp") center / contain no-repeat; filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .7)) drop-shadow(0 0 22px rgba(248, 83, 0, .45)); }
.wheel__hub .ico { display: none; }
.wheel__stage.is-locked .wheel__disc { filter: saturate(.35) brightness(.7); }
.wheel__lbl { font: 700 12.5px/1 var(--f-head); fill: var(--text); letter-spacing: .02em; }
.bulb { fill: #ffd8b8; }
.wheel__disc.is-spinning .bulb { animation: bulb .45s steps(1) infinite; }
.wheel__disc.is-spinning .bulb:nth-child(even) { animation-delay: .225s; }
@keyframes bulb { 50% { fill: #5a2a12; } }
.wheel.is-won .bulb { animation: bulb-win .34s steps(1) 8; }
@keyframes bulb-win { 50% { fill: #F85300; } }
.wheel__seg.is-win { stroke: #FFD8B8; stroke-width: 3px; animation: seg-win 1.1s ease-in-out 3; }
@keyframes seg-win { 50% { stroke-opacity: .25; } }
/* уведомление о куках: печенье-житель парка. Слева внизу, выше подсказок, но ниже таблички при уходе */
.cookie {
  /* справа снизу: слева на первом экране стоит таймер акции, по центру - лента */
  position: fixed; right: 20px; bottom: 20px; z-index: 75; width: min(430px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px; padding: 12px 14px 12px 12px;
  background: rgba(12, 8, 19, .9); border: 1px solid var(--line-2); border-radius: 18px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -22px rgba(0, 0, 0, .9);
  opacity: 0; transform: translateY(14px); transition: opacity .35s ease, transform .35s ease;
}
.cookie.is-in { opacity: 1; transform: none; }
.cookie[hidden] { display: none; }
.cookie__bite { flex: none; width: 46px; height: 46px; display: block; filter: drop-shadow(0 0 14px rgba(248, 83, 0, .45)); }
.cookie__bite svg { width: 100%; height: 100%; display: block; animation: cookieBreath 3.4s ease-in-out infinite; }
.cookie__text { margin: 0; font-size: 13.5px; line-height: 1.35; color: rgba(248, 243, 234, .88); }
.cookie__text a { color: var(--accent); }
.cookie__ok { flex: none; }
@keyframes cookieBreath {
  0%, 100% { transform: scale(1) rotate(-3deg); }
  50% { transform: scale(1.06) rotate(3deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cookie { transition: none; }
  .cookie__bite svg { animation: none; }
}
@media (max-width: 760px) {
  /* на телефоне снизу живет липкая кнопка заявки - печенье встает над ней и не спорит с панелью Safari */
  .cookie {
    left: 12px; right: 12px; width: auto; bottom: calc(74px + env(safe-area-inset-bottom));
    gap: 11px; padding: 12px 13px; transform: translateY(14px);
  }
  .cookie.is-in { transform: none; }
  .cookie__bite { width: 38px; height: 38px; }
  .cookie__text { font-size: 12.5px; }
}

.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }
.wheel__state { margin: 26px 0 16px; }
.lock { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(248, 83, 0, .04); margin-bottom: 18px; }
.lock .ico { width: 26px; height: 26px; color: var(--orange-3); }
.lock p { font: 700 15px/1.3 var(--f-head); }
/* выигрыш - голографический билет: наклоняется за курсором, после заявки на нем штамп */
.ticket { perspective: 1000px; margin-bottom: 24px; }
.ticket__tilt {
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .7s cubic-bezier(.2, .8, .2, 1);
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5));
}
.ticket.is-live .ticket__tilt { transition-duration: .15s; }
.ticket__card {
  --gx: 50%; --gy: 50%;
  position: relative; overflow: hidden; display: grid; grid-template-columns: 88px 1fr; min-height: 156px; border-radius: 20px;
  color: var(--ink); background: linear-gradient(120deg, #ffe5c6, #f8f3ea 52%, #e8dbc7);
  box-shadow: inset 0 0 0 1px rgba(255, 178, 122, .38);
  -webkit-mask: radial-gradient(circle 12px at 88px 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at 88px 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle 12px at 88px 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 12px at 88px 100%, #0000 96%, #000) bottom / 100% 51% no-repeat;
}
.ticket__stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 20px 0 18px; border-right: 2px dashed rgba(27, 13, 5, .25); }
.ticket__star { width: 30px; height: 33px; color: var(--orange-2); filter: drop-shadow(0 0 8px rgba(248, 83, 0, .8)); }
.ticket__admit { writing-mode: vertical-rl; transform: rotate(180deg); font: 900 11px/1 var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: #7b3214; }
.ticket__main { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 20px 22px 18px; min-width: 0; container-type: inline-size; }
.ticket__label { font: 700 11px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: #7b3214; }
.ticket__name { font: 900 27px/1 var(--f-head); font-size: clamp(15px, 8.5cqi, 27px); text-transform: uppercase; text-wrap: balance; }
.ticket__name .nobr { white-space: nowrap; }
.ticket__meta span:last-child { white-space: nowrap; }
.ticket__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 700 10px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: #65564c; }
.ticket__foil, .ticket__glare { position: absolute; inset: 0; pointer-events: none; }
.ticket__foil {
  background: linear-gradient(115deg, transparent 22%, rgba(248, 83, 0, .6) 36%, rgba(248, 243, 234, .65) 44%, rgba(222, 237, 124, .6) 52%, rgba(201, 179, 255, .6) 60%, transparent 74%) var(--gx) var(--gy) / 260% 260%;
  mix-blend-mode: soft-light; opacity: .2;
}
.ticket.is-idle .ticket__foil { animation: foil 6s ease-in-out infinite alternate; }
@keyframes foil { from { background-position: 0% 20%; } to { background-position: 100% 80%; } }
.ticket__glare { background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .3), transparent 45%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .3s; }
.ticket.is-live .ticket__glare { opacity: 1; }
.ticket__stamp {
  position: absolute; right: 18px; bottom: 26px; z-index: 2; padding: 7px 11px 6px; border: 3px solid currentColor; border-radius: 9px;
  color: #315b3b; font: 900 14px/1 var(--f-head); letter-spacing: .14em; text-transform: uppercase;
  transform: rotate(-11deg); opacity: 0; pointer-events: none;
}
.ticket.is-claimed .ticket__stamp { opacity: .92; }
.ticket.is-claimed .ticket__main { padding-bottom: 76px; }
.ticket.is-stamping .ticket__stamp { animation: stamp .55s cubic-bezier(.2, 1.4, .4, 1) both; }
.ticket.is-stamping .ticket__tilt { animation: thud .5s .26s ease-out; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-26deg) scale(2.8); } 55% { opacity: .95; transform: rotate(-9deg) scale(.9); } 100% { opacity: .92; transform: rotate(-11deg) scale(1); } }
@keyframes thud { 30% { translate: 0 4px; scale: .985; } }
.wheel__note:empty { display: none; }
.wheel__claim-note { max-width: 520px; margin-bottom: 20px; font-size: 18px; line-height: 1.3; color: var(--muted); }
.wheel__claimed { display: flex; align-items: flex-start; gap: 12px; max-width: 520px; font-size: 18px; line-height: 1.3; color: var(--muted); }
.wheel__claimed .ico { width: 22px; height: 22px; margin-top: 1px; color: var(--lime); }
.ico--down { transform: rotate(90deg); }
.apply__ticket { max-width: 540px; margin-top: 26px; }
.apply__ticket .ticket { margin-bottom: 0; }
.apply__pitch.has-ticket .apply__art { display: none; }
.status-err { color: var(--error); font-size: 16px; margin-top: 12px; }

/* Заявка */
.apply { padding: 80px 0; }
.apply__grid { display: grid; grid-template-columns: 1fr minmax(0, 580px); gap: clamp(28px, 5vw, 70px); align-items: start; }
.apply__grid > *, .wheel__grid > *, .cards__grid > *, .faq__wrap > * { min-width: 0; }
.usp { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.usp li { display: flex; gap: 12px; align-items: flex-start; font-size: 19px; }
.usp .ico { width: 20px; height: 20px; color: var(--orange-2); margin-top: 3px; }
.apply__art img { width: min(100%, 340px); border-radius: 24px; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
.apply__panel { padding: clamp(22px, 3.6vw, 38px); }
.apply__panel .form > .btn { width: 100%; }

.form { position: relative; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; align-content: start; min-width: 0; }
.field__cap { font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0; margin-bottom: 0; }
fieldset.field .field__cap { margin-bottom: 7px; }
.field small { font: 400 14px/1 var(--f-body); text-transform: none; letter-spacing: 0; color: var(--dim); margin-left: 6px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.input {
  width: 100%; height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .13); background: rgba(8, 5, 14, .62);
  font: 18px/1.2 var(--f-body); color: var(--text); transition: border-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 92px; padding: 12px 16px; resize: vertical; line-height: 1.35; }
select.input {
  appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24'%3E%3Cpath d='M5 9l7 7 7-7' fill='none' stroke='%23ffb27a' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
select.input option { background: #1a1226; color: var(--text); }
.input::placeholder { color: #9b8eac; }
.input:focus { outline: none; border-color: var(--orange-2); box-shadow: 0 0 0 3px rgba(248, 83, 0, .2); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field__err { display: block; color: var(--error); font-size: 15px; line-height: 1.2; }
.field__err:empty { display: none; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); background: rgba(8, 5, 14, .62); font-size: 18px; transition: box-shadow .2s, background-color .2s; }
.seg input:checked + span { box-shadow: inset 0 0 0 1.5px var(--orange-2); background: rgba(248, 83, 0, .14); }
.seg input:focus-visible + span { outline: 2px solid var(--orange-3); outline-offset: 2px; }
.form__hint { font-size: 15px; color: var(--muted); margin-top: -6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.35; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--orange); cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.done { text-align: center; padding: 26px 8px; }
.done__icon { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(248, 83, 0, .15); color: var(--orange-2); box-shadow: 0 0 40px -10px rgba(248, 83, 0, .8); }
.done__icon .ico { width: 32px; height: 32px; }
.done .h3 { margin-bottom: 10px; }
.done p { color: var(--muted); }
.done .linkbtn { margin-top: 18px; }

/* FAQ */
/* FAQ - переписка со смотрителем парка */
.faq { padding: 30px 0 100px; }
.faq__wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px; padding: 36px; border: 1px solid var(--line); border-radius: 26px; background: rgba(31, 22, 46, .35); }
.faq__keeper { display: flex; align-items: center; gap: 12px; }
.faq__avatar { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #34244a, #120b1b); box-shadow: inset 0 0 0 1.5px rgba(255, 150, 90, .55), 0 0 26px -6px rgba(248, 83, 0, .75); }
.faq__avatar .ico { width: 26px; height: 26px; color: var(--orange-2); }
.faq__who b { display: block; font: 700 14px/1.2 var(--f-head); }
.faq__who span { font-size: 15px; color: var(--dim); }
.faq__who span::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px var(--lime); vertical-align: 2px; }
.faq__hint { margin-top: 22px; font: 600 25px/1.05 var(--f-hand); color: var(--purple-2); transform: rotate(-3deg); transform-origin: 0 50%; }
.faq details { margin-bottom: 14px; }
.faq summary {
  position: relative; list-style: none; cursor: pointer; width: fit-content; max-width: min(88%, 640px); margin-left: auto;
  padding: 15px 50px 15px 20px; border-radius: 22px 22px 6px 22px; font: 700 16px/1.2 var(--f-head);
  background: rgba(248, 83, 0, .09); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s, color .2s;
}
.faq summary:hover { background: rgba(248, 83, 0, .17); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--f-body); color: var(--orange-2); transition: transform .25s; }
.faq details[open] summary { background: linear-gradient(180deg, #ff8440, var(--orange)); color: var(--ink); box-shadow: 0 10px 30px -14px rgba(248, 83, 0, .9); }
.faq details[open] summary::after { color: var(--ink); transform: translateY(-50%) rotate(45deg); }
.faq__a { display: flex; align-items: flex-end; gap: 10px; padding: 12px 0 8px; }
.faq__mini { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #34244a, #120b1b); box-shadow: inset 0 0 0 1px rgba(255, 150, 90, .45); }
.faq__mini .ico { width: 19px; height: 19px; color: var(--orange-2); }
.faq__bubble, .faq__typing { border-radius: 22px 22px 22px 6px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); box-shadow: inset 0 0 0 1px var(--line); }
.faq__bubble { max-width: min(88%, 700px); padding: 15px 20px; color: var(--muted); line-height: 1.3; }
.faq details[open] .faq__bubble { animation: bubble-in .4s cubic-bezier(.2, 1.3, .4, 1) both; transform-origin: 0 100%; }
.faq__typing { display: none; gap: 5px; padding: 17px 18px; }
.faq__typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: typing 1s ease-in-out infinite; }
.faq__typing i:nth-child(2) { animation-delay: .15s; } .faq__typing i:nth-child(3) { animation-delay: .3s; }
.faq details.is-typing .faq__typing { display: inline-flex; }
.faq details.is-typing .faq__bubble { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); animation: none; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bubble-in { from { opacity: 0; transform: scale(.92) translateY(6px); } }

/* Подвал */
.ftr { background: #08060d; border-top: 1px solid var(--line); padding: 50px 0 0; overflow: hidden; }
.ftr__sub { display: grid; grid-template-columns: 1fr minmax(0, 540px); gap: 24px 40px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.sub-form { display: grid; gap: 10px; }
.sub-form__row { display: flex; gap: 10px; }
.sub-form__row .input { flex: 1; min-width: 0; }
.sub-form .small { font-size: 14px; }
.sub-done { display: flex; align-items: center; gap: 10px; font: 700 15px/1.3 var(--f-head); color: var(--orange-3); }
.ftr__bar { display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px 32px; align-items: center; padding-top: 30px; }
.ftr__tagline { text-align: center; font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .1em; color: var(--dim); }
.ftr__social { list-style: none; display: flex; padding: 0; margin: 0; }
.ftr__social li + li::before { content: "|"; color: #3d3350; margin: 0 12px; }
.ftr__social a { font: 700 12px/1 var(--f-head); color: var(--muted); text-decoration: none; }
.ftr__social a:hover { color: var(--orange-3); }
.ftr__rights { font-size: 14px; color: var(--dim); }
/* огромный JUST внизу страницы: в темноте, фонарик подсвечивает его настоящим оранжевым */
.ftr__giant { --mx: 50%; --my: 55%; position: relative; width: min(100% - 32px, var(--wrap)); margin: 34px auto 0; aspect-ratio: 332 / 142; clip-path: inset(-60px -60px 0 -60px); }
.ftr__giant img { position: absolute; left: 0; top: 0; width: 100%; height: auto; pointer-events: none; }
.ftr__giant-base { filter: brightness(.2) saturate(.75); }
.ftr__giant-glow { position: absolute; inset: 0; pointer-events: none; filter: drop-shadow(0 0 22px rgba(248, 83, 0, .6)); }
.ftr__giant-lit {
  -webkit-mask-image: radial-gradient(circle clamp(130px, 22vw, 320px) at var(--mx) var(--my), #000 0, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: radial-gradient(circle clamp(130px, 22vw, 320px) at var(--mx) var(--my), #000 0, rgba(0, 0, 0, .55) 45%, transparent 100%);
}
.ftr__giant::after { content: ""; position: absolute; inset: auto 0 0; height: 42%; background: linear-gradient(to bottom, rgba(8, 6, 13, 0), #08060d 88%); pointer-events: none; }
/* слоган встает в пустоту справа от звезды; в строке подвала он на широком экране не нужен */
.ftr__giant-tag { position: absolute; z-index: 1; right: 0; top: 5%; width: 74%; text-align: right; font: 900 clamp(22px, 3.2vw, 48px)/.96 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; color: var(--text); }
.ftr__giant-tag span { display: block; white-space: nowrap; }
.ftr__giant-tag span + span { color: var(--orange); text-shadow: 0 0 26px rgba(248, 83, 0, .5); }
/* подпись «сделано в JUST» стоит в тумане под большими буквами и ведет в форму заявки на спецпроект */
.ftr__credit { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; margin-top: -72px; padding: 0 0 32px; }
.ftr__credit-text { display: flex; align-items: center; gap: 12px; max-width: 820px; font-size: 16px; line-height: 1.35; color: var(--muted); text-wrap: pretty; }
.ftr__credit-text .ico { width: 18px; height: 20px; color: var(--orange-2); }
.ftr__credit .btn { flex: none; }
@media (min-width: 761px) { .ftr__tagline { visibility: hidden; } }

/* Модалка дома */
.house {
  width: min(960px, calc(100% - 32px)); max-width: none; max-height: min(90vh, 880px); padding: 0; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 26px; background: #140e1e; color: var(--text);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95), 0 0 80px -40px rgba(248, 83, 0, .7);
}
.house::backdrop { background: rgba(5, 3, 9, .74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.house[open] { animation: pop .28s ease-out; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.house__inner { position: relative; display: grid; grid-template-columns: 330px 1fr; max-height: inherit; }
.house__art { position: relative; background: #0e0916; min-height: 100%; }
.house__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
@media (min-width: 901px) {
  .house__art img {
    inset: 50% 0 auto; height: auto; translate: 0 -50%;
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 80%, transparent);
  }
}
.house__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, transparent 60%, #140e1e); }
.house__content { padding: 38px 36px 30px; overflow-y: auto; max-height: min(90vh, 880px); overscroll-behavior: contain; }
.house__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgba(11, 8, 18, .75); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
.house__close:hover { background: rgba(248, 83, 0, .2); }
.house__close .ico { width: 20px; height: 20px; }
.house__tag { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--orange); color: var(--ink); font: 700 11px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; }
.house__name { font: 900 clamp(26px, 3vw, 36px)/.94 var(--f-head); text-transform: uppercase; color: var(--orange); text-shadow: 0 0 22px rgba(248, 83, 0, .45); margin: 16px 44px 20px 0; }
.house__horror { font-size: 21px; line-height: 1.25; margin-bottom: 26px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; margin-bottom: 22px; }
.versus__col { display: grid; grid-template-rows: subgrid; grid-row: span var(--rows, 4); row-gap: 10px; padding: 16px 16px 18px; border-radius: 18px; }
.versus__col--bad { border: 1.5px dashed rgba(255, 255, 255, .15); background: rgba(255, 255, 255, .02); }
.versus__col--good { background: linear-gradient(180deg, rgba(248, 83, 0, .15), rgba(248, 83, 0, .05)); box-shadow: inset 0 0 0 1px var(--line-2), 0 0 44px -22px rgba(248, 83, 0, .9); }
.versus__col .mini-h { margin: 0; }
.versus__col--bad .mini-h { color: var(--dim); }
.versus__row { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.3; }
.versus__col--bad .versus__row { color: var(--dim); }
.versus__tile { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; }
.versus__tile .ico { width: 13px; height: 13px; }
.versus__col--bad .versus__tile { background: rgba(255, 255, 255, .07); color: var(--dim); }
.versus__col--good .versus__tile { background: var(--orange); color: var(--ink); box-shadow: 0 0 12px -2px rgba(248, 83, 0, .9); }
.house[open] .versus__row { animation: row-in .5s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i) * 70ms + 120ms); }
.house[open] .versus__col--good .versus__row { animation-delay: calc(var(--i) * 70ms + 380ms); }
@keyframes row-in { from { opacity: 0; translate: 0 8px; } }
.house__case { margin: 6px 0 24px; padding: 18px 20px; border-radius: 16px; border: 1px dashed rgba(255, 178, 122, .38); background: rgba(248, 83, 0, .05); }
.house__case p { color: var(--muted); font-size: 17px; }
.draft { display: inline-block; margin-left: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(201, 179, 255, .16); color: var(--purple-2); font: 700 10px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }
.house__pitch { font-size: 19px; color: var(--muted); margin-bottom: 24px; }
.house__case.is-real { border-style: solid; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 14px; }
.stats b { display: block; font: 700 26px/1.1 var(--f-head); color: var(--orange-3); }
.stats span { font-size: 15px; color: var(--muted); }

/* Подсказка и липкая кнопка */
.nudge {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(370px, calc(100% - 32px)); padding: 22px 22px 20px;
  border-radius: 20px; background: #150e1f; box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 70px -20px rgba(0, 0, 0, .95), 0 0 50px -20px rgba(248, 83, 0, .75);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
}
.nudge.is-in { opacity: 1; transform: none; }
.nudge .h3 { font-size: 19px; margin: 0 40px 8px 0; }
.nudge p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.nudge__close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .06); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.nudge__close .ico { width: 16px; height: 16px; }
.sticky-cta, .sticky-backdrop { display: none; }

.toast {
  position: fixed; left: 50%; top: calc(var(--hdr-h) + 16px); z-index: 70; width: min(470px, calc(100% - 32px));
  display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 14px; border-radius: 20px;
  background: #150e1f; box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 60px -20px rgba(0, 0, 0, .95), 0 0 50px -20px rgba(248, 83, 0, .85);
  opacity: 0; transform: translate(-50%, -24px) scale(.96); transition: opacity .3s, transform .5s cubic-bezier(.2, 1.3, .4, 1);
}
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast__icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(248, 83, 0, .16); color: var(--orange-2); }
.toast__icon .ico { width: 26px; height: 26px; }
.toast__body { min-width: 0; }
.toast__body b { display: block; font: 700 15px/1.2 var(--f-head); margin-bottom: 3px; }
.toast__body span { display: block; font-size: 15px; line-height: 1.25; color: var(--muted); }
.toast .btn { margin-left: auto; flex: none; }

/* табличка на цепях, когда курсор уходит из окна */
.exit { position: fixed; inset: 0; z-index: 85; display: grid; justify-items: center; align-items: start; pointer-events: none; }
.exit[hidden] { display: none; }
.exit::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 50% 10%, rgba(5, 3, 9, .35), rgba(5, 3, 9, .82)); opacity: 0; transition: opacity .4s; pointer-events: auto; }
.exit.is-in::before { opacity: 1; }
.exit__sign {
  position: relative; width: min(500px, calc(100% - 32px)); margin-top: min(210px, 28vh); padding: 34px 32px 30px; border-radius: 18px; text-align: center; pointer-events: auto;
  background: radial-gradient(120% 90% at 50% 0%, rgba(111, 63, 214, .28), transparent 60%), linear-gradient(180deg, #1f1530, #120b1b);
  box-shadow: inset 0 0 0 2px rgba(255, 122, 46, .75), inset 0 0 0 6px rgba(18, 11, 27, 1), inset 0 0 0 7px rgba(255, 178, 122, .25), 0 0 60px -18px rgba(248, 83, 0, .9), 0 40px 90px -30px rgba(0, 0, 0, .95);
  transform: translateY(-160%); transform-origin: 50% -120px; outline: none;
}
.exit.is-in .exit__sign { animation: sign-drop 1.4s cubic-bezier(.3, .9, .4, 1) forwards; }
.exit.is-out::before { opacity: 0; }
.exit.is-out .exit__sign { animation: sign-up .45s cubic-bezier(.6, 0, .9, .5) forwards; }
@keyframes sign-drop { 0% { transform: translateY(-160%) rotate(0); } 34% { transform: translateY(0) rotate(5deg); } 52% { transform: translateY(0) rotate(-3.5deg); } 68% { transform: translateY(0) rotate(2deg); } 84% { transform: translateY(0) rotate(-.8deg); } 100% { transform: translateY(0) rotate(0); } }
@keyframes sign-up { from { transform: translateY(0); } to { transform: translateY(-170%); } }
/* табличку держит скелетная рука (img/bone-arm): пальцы заходят на верхний край, рукав уходит за верх экрана */
.exit__arm { position: absolute; left: 50%; bottom: calc(100% - 78px); width: clamp(150px, 22vw, 210px); transform: translateX(-50%); pointer-events: none; z-index: 1; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.exit__arm img { display: block; width: 100%; height: auto; }
.exit__arm::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 33%; height: 60vh; margin-bottom: -4px; transform: translateX(-50%); background: #16121b; border-radius: 0 0 4px 4px; }
.exit__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; background: rgba(255, 255, 255, .06); color: var(--muted); }
.exit__close:hover { color: var(--text); background: rgba(248, 83, 0, .2); }
.exit__close .ico { width: 16px; height: 16px; }
.exit__kicker { font: 600 30px/1 var(--f-hand); color: var(--purple-2); transform: rotate(-3deg); margin-bottom: 10px; }
.exit__title { text-wrap: balance; font: 900 clamp(26px, 3.4vw, 32px)/.94 var(--f-head); text-transform: uppercase; color: var(--orange); text-shadow: 0 0 22px rgba(248, 83, 0, .5); margin-bottom: 14px; }
.exit__text { color: var(--muted); font-size: 18px; line-height: 1.3; margin: 0 auto 24px; max-width: 400px; }

/* блоки проявляются при прокрутке; класс ставит скрипт, без JS все видно сразу */
.reveal { opacity: 0; translate: 0 28px; transition: opacity .8s cubic-bezier(.2, .7, .2, 1) var(--rd, 0ms), translate .8s cubic-bezier(.2, .7, .2, 1) var(--rd, 0ms); }
.reveal.is-shown { opacity: 1; translate: none; }
.debug-spots .spot { outline: 2px dashed #9dff7a; outline-offset: -2px; }
.debug-spots .spot::before { opacity: .6; }

/* Адаптив */
/* три карточки в ряд только когда текст и кнопки влезают в свою колонку */
@media (max-width: 1240px) {
  .cards__grid { grid-template-columns: 1fr 1fr; }
  .card { min-height: 250px; }
  .card__body { width: 62%; }
  .card__art { width: 44%; right: 0; }
  .card__art img { object-position: 50% 20%; }
  .card__title { font-size: 20px; }
  .card--test .card__body { width: 100%; }
  .card--test .card__art { width: 100%; }
  .card--test .card__art img { object-position: 50% 62%; }
  .grave__opts { justify-content: center; }
  .grave__opts .chip { text-align: center; }
}

@media (max-width: 1080px) {
  .how__steps { grid-template-columns: repeat(2, 1fr); }
  .how__steps li:nth-child(2)::after { display: none; }
  .apply__grid { grid-template-columns: 1fr; }
  .apply__art { display: none; }
}

@media (max-width: 900px) {
  :root { --hdr-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: calc(var(--hdr-h) + 4px); left: 16px; right: 16px; display: none; flex-direction: column; gap: 0; margin: 0;
    padding: 4px 20px 8px; border-radius: 22px; background: #0d0915; box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -20px rgba(0, 0, 0, .9);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 16px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav a.is-active { color: var(--orange-3); }
  .nav__ink { display: none; }
  .hdr.is-scrolled .hdr__in { max-width: none; height: 54px; margin-top: 5px; padding: 0 6px 0 18px; }
  .hdr.menu-open .hdr__in { height: 54px; margin-top: 5px; padding: 0 6px 0 18px; }
  /* наверху страницы шапка без подложки, а под ней яркие фонари арта: даем переключателю языка и бургеру свою подложку */
  .hdr:not(.is-scrolled):not(.menu-open) .lang, .hdr:not(.is-scrolled):not(.menu-open) .burger { background-color: rgba(13, 9, 21, .62); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .hdr:not(.is-scrolled):not(.menu-open) .lang { border-radius: 999px; }
  .hdr:not(.is-scrolled):not(.menu-open) .lang button[aria-pressed="false"] { color: var(--muted); }
  .wheel__grid, .apply__grid { grid-template-columns: 1fr; }
  .wheel__grid { gap: 0; }
  .wheel__side { display: contents; }
  .wheel__side.reveal { opacity: 1; translate: none; transition: none; }
  .wheel__side > .eyebrow { order: 1; }
  .wheel__side > .h2 { order: 2; max-width: 650px; }
  .wheel__side > .lead { order: 3; }
  .wheel__stage { order: 4; margin-block: 40px 12px; }
  .wheel__state { order: 5; }
  .wheel__note { order: 6; }
  .wheel__stage { max-width: 400px; margin-inline: auto; width: 100%; }
  .cards__grid { grid-template-columns: 1fr; }
  .card--test { grid-row: auto; min-height: 360px; }
  .card--test .card__body { width: 64%; }
  .card--test .card__title { font-size: clamp(25px, 4vw, 34px); }
  .card--test .card__art { top: 0; height: 100%; width: 48%; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 44%); mask-image: linear-gradient(to right, transparent 0, #000 44%); }
  .park__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .park__head { align-items: start; flex-direction: column; gap: 16px; }
  .apply__art { display: none; }
  .faq__wrap { grid-template-columns: 1fr; gap: 26px; }
  .faq__hint { display: none; }
  .ftr__sub { grid-template-columns: 1fr; }
  .ftr__bar { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .house__inner { grid-template-columns: 1fr; }
  .house__art { height: 230px; min-height: 0; }
  .house__art img { object-position: 50% 30%; }
  .house__art::after { background: linear-gradient(to bottom, transparent 55%, #140e1e); }
  .house__content { max-height: none; overflow: visible; padding: 8px 22px 26px; }
  /* iOS: прокручивается внутренний контейнер, сам dialog без overflow и без анимации transform - иначе тач-скролл просыпается только после касания кнопки */
  .house { overflow: hidden; }
  .house[open] { animation: none; }
  .house__inner { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; touch-action: pan-y; }
  .result { grid-template-columns: 1fr; }
  .result__art img { aspect-ratio: 16 / 10; }
}

@media (max-width: 760px) {
  body { font-size: 18px; }
  .hdr__cta { display: none; }
  /* мобильная шапка: ворота целиком сверху по центру (кадр 160% ширины, верх прижат), текст начинается под аркой на тумане */
  /* панель Safari на iOS 26 стеклянная и красится тем, что под ней: держим кнопку «Войти в парк»
     выше нижнего края экрана, иначе панель горит оранжевым и кнопку наполовину не видно */
  .hero { --hero-art: 66vw; min-height: 0; align-items: flex-end; padding: calc(var(--hdr-h) + var(--hero-art)) 0 64px; }
  /* плашка акции висела ровно посередине экрана: поднимаем ее под шапку, к верхушкам башен */
  .badge { position: absolute; z-index: 2; left: 0; top: calc(4px - var(--hero-art)); }
  /* верх арта растворяем в фоне, чтобы под строкой статуса не было резкой границы */
  .hero__art { width: 100%; right: 0; top: 40px; bottom: auto; height: 118vw;
    -webkit-mask-image: linear-gradient(to top, transparent 0, #000 34%, #000 93%, transparent 100%);
    mask-image: linear-gradient(to top, transparent 0, #000 34%, #000 93%, transparent 100%); }
  .hero__frame { --fx: 50%; --fy: 0%; width: 160cqw; }
  .logo__full { display: none !important; }
  .logo__mark { display: block !important; height: 34px; }
  .hero__title { font-size: clamp(48px, 15vw, 84px); margin: 22px 0 22px; }
  .hero__title span:not(:first-child) { display: inline-block; }
  .hero__lead { font-size: 19px; margin-bottom: 20px; }
  .hero__hint { margin-top: 14px; }
  .hero__dates { font-size: 23px; }
  .btn--lg { height: auto; min-height: 52px; width: 100%; padding: 11px 18px; font-size: 14px; line-height: 1.2; white-space: normal; text-align: center; }
  .wheel__glow { inset: -4%; }
  .apply__panel { padding: 22px 18px; }
  .how { padding-top: 50px; }
  .how__steps { grid-template-columns: 1fr; gap: 0; margin-top: 28px; }
  .how__steps li { padding: 0 0 28px 66px; min-height: 92px; }
  .how__steps li::before { position: absolute; left: 0; top: 0; margin: 0; }
  .how__steps li:not(:last-child)::after { display: block; top: 56px; bottom: 10px; left: 23px; right: auto; border-top: 0; border-left: 1px dashed var(--line-2); }
  .how__steps li:last-child { padding-bottom: 0; }
  .how__steps b { margin-bottom: 6px; }
  .how__steps span { font-size: 16px; max-width: none; }
  .park { padding-top: 50px; }
  .park__head { gap: 12px; margin-bottom: 18px; }
  .park__title { font-size: 34px; margin: 0; }
  .park__lead { font-size: 18px; max-width: 360px; }
  /* на телефоне карта шире экрана (целиком она нечитаема), но вертикальный скролл не перехватывается:
     обе оси разрешены, без overscroll-contain, без snap; стартовая позиция - центр (app.js) */
  /* на телефоне вертикальная карта (img/map-v, 2 колонки x 4 ряда) во всю ширину, без горизонтальной прокрутки */
  .park__scroller { overflow: visible; }
  .park__canvas { width: 100%; aspect-ratio: 1024 / 1536; }
  .park__img { width: 100%; height: 100%; object-fit: cover; }
  .note--real { display: none; }
  .note--choose { left: 2%; top: 42%; }
  .note { font-size: 20px; }
  .park__swipe { display: block; }
  .card { padding: 24px; min-height: 240px; }
  .card__body { width: 74%; }
  .card--test { min-height: 340px; }
  .card--test .card__body { width: 85%; }
  .card--test .card__title { font-size: clamp(22px, 7vw, 27px); }
  .card--test .card__text { max-width: 22ch; }
  .card--test .card__art { width: 65%; opacity: .68; }
  .card--cases { min-height: 220px; }
  .card__art { opacity: .72; }
  .card__title { font-size: 21px; }
  .card__label { margin-bottom: 16px; color: var(--orange-3); }
  .park__list { gap: 0 16px; }
  .park__list .chip { padding: 16px 0; min-height: 108px; white-space: normal; align-items: start; }
  .park__destination b { font-size: 14px; }
  .park__list .chip small { font-size: 13px; }
  .park__visit { width: 24px; height: 24px; }
  .park__list .chip .ico { width: 12px; height: 12px; }
  .park__progress { gap: 16px; font-size: 10px; }
  .quiz__intro { grid-template-columns: 1fr; }
  .quiz__intro picture { order: -1; }
  .quiz__intro picture img { height: 140px; object-position: 50% 12%; }
  .quiz__intro { gap: 18px; }
  .quiz__panel { padding: 24px; }
  .quiz__intro .h2 { font-size: clamp(27px, 7.5vw, 36px); }
  .quiz__intro .lead { font-size: 18px; line-height: 1.4; }
  .wheel { padding: 48px 0; }
  .wheel__stage { max-width: 340px; margin-block: 32px 0; }
  .wheel__state { margin: 18px 0 12px; }
  .wheel__side > .lead { font-size: 18px; line-height: 1.4; }
  .form__row { grid-template-columns: 1fr; }
  .form .btn, .wheel__side .btn { width: 100%; }
  .sub-form__row { flex-direction: column; }
  .sub-form__row .input { flex: none; }
  .house__close { position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 12px; }
  .house { width: 100%; height: 100%; max-height: none; border-radius: 0; border: 0; margin: 0; }
  .versus { grid-template-columns: 1fr; row-gap: 12px; }
  .versus__col { grid-row: auto; grid-template-rows: none; }
  .house__horror { font-size: 19px; }
  .house__actions .btn { width: 100%; }
  .nudge { left: 16px; right: 16px; width: auto; bottom: calc(80px + env(safe-area-inset-bottom)); }
  .count { gap: 8px; }
  .count__cell { flex: 1; min-width: 0; padding: 10px 4px 9px; }
  .count__num { font-size: 26px; }
  .count__unit { font-size: 8px; letter-spacing: .08em; }
  .tapes { height: 112px; margin: -60px 0 -36px; }
  .tape { height: 38px; }
  .tape--a { top: 20px; } .tape--b { top: 48px; }
  .tape__item { font-size: 13px; gap: 16px; padding-right: 16px; }
  .tape__star { width: 13px; height: 15px; }
  .ticket__card { grid-template-columns: 64px 1fr; -webkit-mask: radial-gradient(circle 10px at 64px 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 64px 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; mask: radial-gradient(circle 10px at 64px 0, #0000 96%, #000) top / 100% 51% no-repeat, radial-gradient(circle 10px at 64px 100%, #0000 96%, #000) bottom / 100% 51% no-repeat; }
  .ticket__main { padding: 18px 16px 16px; }
  .ticket__name { font-size: clamp(15px, 8.5cqi, 20px); }
  .ticket__stamp { right: 16px; bottom: 20px; font-size: 12px; }
  .ticket.is-claimed .ticket__main { padding-bottom: 64px; }
  .ftr__giant-tag { display: none; }
  .ftr__credit { flex-direction: column; align-items: flex-start; margin-top: 10px; padding-bottom: 8px; }
  .ftr__credit-text { align-items: flex-start; font-size: 15px; }
  .ftr__credit-text .ico { margin-top: 1px; }
  .faq summary { max-width: 92%; font-size: 15px; }
  .faq__wrap { padding: 24px 16px; }
  .faq__bubble { max-width: 100%; font-size: 17px; }
  .toast { top: calc(var(--hdr-h) + 10px); }
  .toast .btn { display: none; }
  .exit { display: none !important; }
  .sticky-cta {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 55;
    display: flex; align-items: center; justify-content: center; gap: 10px; height: 54px; border-radius: 999px; text-decoration: none;
    background: linear-gradient(180deg, #ff8440, var(--orange)); color: var(--ink); font: 700 14px/1 var(--f-head); text-transform: uppercase; letter-spacing: .05em;
    box-shadow: 0 14px 34px -10px rgba(248, 83, 0, .6);
    transform: translateY(160%); transition: transform .3s, opacity .3s, visibility .3s;
    opacity: 0; visibility: hidden;
  }
  /* темная подложка до самого низа: Safari красит свою нижнюю панель цветом у края экрана, иначе она становится оранжевой */
  .sticky-backdrop {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 54; pointer-events: none; opacity: 0; transition: opacity .3s;
    height: calc(96px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--bg) 45%, rgba(11, 8, 18, .6) 75%, transparent);
  }
  .sticky-cta.is-on { transform: none; opacity: 1; visibility: visible; }
  .sticky-cta.is-on + .sticky-backdrop { opacity: 1; }
  .ftr { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fog i, .embers i, .spot__pin::after { animation: none; }
  .embers { display: none; }
  .house[open] { animation: none; }
  .hero__in > * { animation: none; }
  .ticket.is-idle .ticket__foil, .ticket.is-stamping .ticket__stamp, .ticket.is-stamping .ticket__tilt { animation: none; }
  .house[open] .versus__row, .faq details[open] .faq__bubble, .faq__typing i { animation: none; }
  .exit.is-in .exit__sign { animation: none; transform: none; }
}

/* кнопка «Подставить из Telegram» живет внутри подсказки под контактами */
.linkbtn--inline { display: inline; padding: 0; margin: 0 0 0 .4em; vertical-align: baseline; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.linkbtn--inline:hover { color: var(--text); }
.form__hint .ico { width: 1em; height: 1em; vertical-align: -0.15em; margin-right: 0.35em; color: #9dff7a; }

/* ==================== эффекты второй волны ==================== */

/* удар при остановке колеса: тряска сцены и вспышка из-под стрелки */
.wheel__stage.is-impact { animation: impact .5s cubic-bezier(.2, .7, .3, 1); }
@keyframes impact {
  0% { transform: translate(0, 0) rotate(0); }
  12% { transform: translate(-6px, 3px) rotate(-.6deg); }
  28% { transform: translate(5px, -3px) rotate(.5deg); }
  46% { transform: translate(-3px, 2px) rotate(-.3deg); }
  64% { transform: translate(2px, -1px) rotate(.15deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
.wheel__flash { position: absolute; inset: -12%; border-radius: 50%; pointer-events: none; opacity: 0; z-index: 3;
  background: radial-gradient(circle at 50% 8%, rgba(255, 230, 200, .95), rgba(248, 83, 0, .55) 22%, transparent 58%); }
.wheel__stage.is-impact .wheel__flash { animation: flash .55s ease-out; }
@keyframes flash { 0% { opacity: 0; } 10% { opacity: 1; } 100% { opacity: 0; } }

/* наклон в 3D за курсором: билет и афиши */
.tilt { transform-style: preserve-3d; transition: transform .35s ease; will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear; }
.card.tilt { transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.ticket .tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.tilt .tilt__glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .16), transparent 55%); }
.tilt.is-tilting .tilt__glare { opacity: 1; }

/* летучие мыши: изредка пролетают через экран, во время паники - стаей */
.bats { position: fixed; inset: 0; pointer-events: none; z-index: 9990; overflow: hidden; }
.bat { position: absolute; left: -8vw; width: var(--s, 34px); height: auto; color: #0a0710; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .6));
  animation: bat-fly var(--d, 9s) linear var(--delay, 0s) 1 both; top: var(--y, 30%); }
/* отдельный слой под испуг: на самой мыши уже висит анимация полета, ее transform трогать нельзя */
.bat > b { display: block; transform: translate(var(--fx, 0px), var(--fy, 0px)) rotate(var(--fr, 0deg)); transform-origin: 50% 50%; }
.bat svg { width: 100%; height: auto; display: block; animation: bat-flap .32s ease-in-out infinite alternate; transform-origin: 50% 50%; }
@keyframes bat-fly {
  0% { transform: translate(0, 0) scale(var(--sc, 1)); }
  25% { transform: translate(28vw, calc(var(--amp, 40px) * -1)) scale(var(--sc, 1)); }
  50% { transform: translate(56vw, var(--amp, 40px)) scale(var(--sc, 1)); }
  75% { transform: translate(84vw, calc(var(--amp, 40px) * -.6)) scale(var(--sc, 1)); }
  100% { transform: translate(118vw, 0) scale(var(--sc, 1)); }
}
@keyframes bat-flap { from { transform: scaleY(1) rotate(-6deg); } to { transform: scaleY(.55) rotate(6deg); } }

/* ночь по часам посетителя: фон глубже, фонари ярче */
html.is-night body { background: #08060d; }
html.is-night .hero__img { filter: brightness(.82) contrast(1.08) saturate(1.1); }
html.is-night .embers i { box-shadow: 0 0 14px 4px rgba(248, 83, 0, .95); }
html.is-night .hdr__in::before { background: rgba(8, 6, 13, .78); }

/* режим паники: фонари мигают, свет плывет */
html.is-panic .hero__img, html.is-panic .park__img { animation: panic-lights 1.1s steps(1, end) 5; }
@keyframes panic-lights { 0% { filter: brightness(1); } 20% { filter: brightness(.3) hue-rotate(-30deg); } 30% { filter: brightness(1.4) contrast(1.2); } 50% { filter: brightness(.55); } 70% { filter: brightness(1.15) hue-rotate(20deg); } 100% { filter: brightness(1); } }
html.is-panic .hdr__in { animation: panic-shake .12s linear 8; }
@keyframes panic-shake { 25% { translate: -2px 1px; } 75% { translate: 2px -1px; } }
html.is-panic .toast { border-color: var(--orange); box-shadow: 0 0 60px -10px rgba(248, 83, 0, .9); }
.ico--pumpkin { cursor: pointer; }

/* дверь дома: карточка распахивается из левого косяка */
.house[open] { animation: door-open .5s cubic-bezier(.2, .8, .25, 1); transform-origin: left center; }
@keyframes door-open {
  0% { opacity: 0; transform: perspective(1400px) rotateY(-58deg) translateX(-24px); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: perspective(1400px) rotateY(0) translateX(0); }
}

/* плавные переходы между состояниями страницы */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .32s; }
.quiz, .result, .apply__panel { view-transition-name: none; }

@media (prefers-reduced-motion: reduce) {
  .wheel__stage.is-impact, .wheel__stage.is-impact .wheel__flash, .bat, .bat svg, html.is-panic .hero__img, html.is-panic .park__img, html.is-panic .hdr__in { animation: none !important; }
  .tilt, .card.tilt, .ticket .tilt { transform: none !important; }
  .house[open] { animation: pop .2s ease-out; }
  .bats { display: none; }
}

/* зоны домов на карте всегда над туманом */
#hotspots { z-index: 2; }

/* картинка результата теста: превью и кнопки поделиться */
.share { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.share__preview { display: block; width: 100%; max-width: 420px; aspect-ratio: 1200 / 630; border-radius: 14px; margin: 10px 0 14px;
  box-shadow: 0 0 0 1px var(--line-2), 0 18px 50px -20px rgba(0, 0, 0, .9); background: #130d1d; object-fit: cover; }
.share__row { display: flex; flex-wrap: wrap; gap: 10px; }
.share__hint { color: var(--dim); font-size: 14px; margin-top: 10px; }

/* кнопка звука в шапке: молчит, пока нет файлов; включенная светится */
.sound { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(13, 9, 21, .6); color: var(--dim); cursor: pointer; position: relative; }
.sound[aria-pressed="true"] { color: var(--orange-2); border-color: rgba(255, 150, 90, .6); box-shadow: 0 0 16px -4px rgba(248, 83, 0, .7); }
/* выключенный звук: перечеркнут, чтобы состояние читалось без подсказки */
.sound[aria-pressed="false"]::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22px; height: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(-45deg); border-radius: 1px; }
.sound .ico { width: 20px; height: 20px; }
.sound[aria-pressed="true"] { color: var(--orange-2); border-color: var(--orange); box-shadow: 0 0 18px -4px rgba(248, 83, 0, .8); }
.sound[aria-pressed="false"] .sound__wave { opacity: .3; }
.sound:hover { color: var(--text); }

/* скрытая кнопка звука не должна перебивать hidden своим display */
.sound[hidden] { display: none; }

/* ворота: две створки поверх открытой сцены, распахиваются по мере прокрутки первого экрана (--open от 0 до 1) */
.hero__frame { perspective: 1400px; }
.gate { position: absolute; top: 34.67%; width: 21.29%; height: auto; will-change: transform; backface-visibility: hidden;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .55)); }
.gate--l { left: 28.71%; transform-origin: 0% 50%; transform: rotateY(calc(var(--open, 0) * -82deg)); }
.gate--r { left: 50.07%; width: 21.22%; transform-origin: 100% 50%; transform: rotateY(calc(var(--open, 0) * 82deg)); }
@media (prefers-reduced-motion: reduce) { .gate { transform: none !important; } }

/* своя выпадашка роли: панель в стиле сайта, группы, поиск; на мобиле - шторка снизу */
.pick { position: relative; }
.pick__btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; cursor: pointer; }
.pick__val { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick__val.is-empty { color: #9b8eac; }
.pick__chev { width: 14px; height: 14px; flex: none; color: #ffb27a; transition: transform .25s; }
.pick.is-open .pick__chev { transform: rotate(180deg); }
.pick.is-open .pick__btn { border-color: var(--orange-2); box-shadow: 0 0 0 3px rgba(248, 83, 0, .2); }
.pick__menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; grid-template-rows: auto 1fr auto; max-height: 380px; overflow: hidden;
  border-radius: 16px; border: 1px solid rgba(255, 236, 214, .12); background: rgba(16, 10, 24, .96); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9), 0 0 50px -24px rgba(248, 83, 0, .55), inset 0 1px 0 rgba(255, 236, 214, .06);
  animation: pick-in .22s cubic-bezier(.2, .8, .2, 1); transform-origin: 50% 0; }
@keyframes pick-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
.pick__menu[hidden] { display: none; }
.pick__search { padding: 10px 10px 6px; }
.pick__q { width: 100%; height: 42px; padding: 0 14px 0 38px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .1); background: rgba(8, 5, 14, .7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%239a8bb0' stroke-width='2.2'/%3E%3Cpath d='M20 20l-3.5-3.5' stroke='%239a8bb0' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 13px center;
  font: 16px/1 var(--f-body); color: var(--text); -webkit-appearance: none; appearance: none; }
.pick__q:focus { outline: none; border-color: var(--orange-2); }
.pick__list { overflow: auto; padding: 4px 6px 6px; scrollbar-width: thin; scrollbar-color: rgba(248, 83, 0, .4) transparent; }
.pick__group + .pick__group { margin-top: 4px; border-top: 1px solid rgba(255, 236, 214, .07); padding-top: 4px; }
.pick__title { padding: 10px 12px 4px; font: 600 11px/1 var(--f-head, var(--f-body)); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-2); opacity: .85; }
.pick__opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; text-align: left;
  font: 16px/1.25 var(--f-body); color: var(--text); cursor: pointer; transition: background .15s, color .15s; }
.pick__opt .ico { width: 14px; height: 14px; flex: none; color: var(--orange-2); opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.pick__opt:hover, .pick__opt:focus-visible { background: rgba(248, 83, 0, .13); outline: none; }
.pick__opt[aria-selected="true"] { color: #ffd9c2; }
.pick__opt[aria-selected="true"] .ico { opacity: 1; transform: none; }
.pick__empty { margin: 0; padding: 18px 14px; color: var(--dim); font: 15px/1.3 var(--f-body); text-align: center; }
.pick__clear { justify-self: end; margin: 0; padding: 10px 14px 12px; font-size: 13px; color: var(--dim); }
.pick__clear:hover { color: var(--text); }
@media (max-width: 760px) {
  .pick__menu { position: fixed; left: 0; right: 0; top: auto; bottom: 0; max-height: 78dvh; border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); animation: pick-up .28s cubic-bezier(.2, .8, .2, 1); }
  .pick__menu::before { content: ""; display: block; width: 44px; height: 4px; margin: 10px auto 0; border-radius: 2px; background: rgba(255, 236, 214, .25); grid-row: 1; }
  .pick__menu { grid-template-rows: auto auto 1fr auto; }
  .pick__opt { padding: 13px 14px; font-size: 17px; }
  html.pick-open { overflow: hidden; }
  html.pick-open body::after { content: ""; position: fixed; inset: 0; background: rgba(5, 3, 9, .6); z-index: 55; }
  .pick.is-open { z-index: 60; }
  @keyframes pick-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) { .pick__menu { animation: none; } }

/* картинки не тащатся мышью и не выделяются; правый клик по ним перехвачен в app.js */
img, picture, .hero__frame, .park__canvas, .wheel__stage { -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }

/* хаптик на iOS: переключатель-свитч, который дергается программно; глазу не виден */

/* переключатель подачи приза (временный, для выбора командой) */
.skin { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.skin__note { font: 500 13px/1.2 var(--f-body); color: var(--dim); margin-right: 4px; }
.skin__btn { height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 236, 214, .18); background: transparent; color: var(--dim); font: 700 11px/1 var(--f-head); letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.skin__btn.is-on { background: rgba(248, 83, 0, .16); border-color: var(--orange-2); color: #ffd9c2; }

/* коробка «одно желание»: ретро-принт, белая упаковка с красной печатью, лежит под наклоном */
.wish { --red: #b3261e; perspective: 1100px; margin: 10px 0 30px; padding: 26px 6px 12px; }
.wish__tilt { max-width: 78%; margin-inline: auto; transform: rotate(-5deg); transition: transform .35s cubic-bezier(.2, .8, .2, 1); transform-style: preserve-3d; }
.wish:hover .wish__tilt { transform: rotate(-3.5deg) translateY(-2px); }
.wish__box { position: relative; filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .65)) drop-shadow(0 0 40px rgba(248, 83, 0, .18)); }
.wish__top { display: block; height: 14px; margin: 0 0 0 0; background: linear-gradient(180deg, #f6f0e6, #d9d0c3); transform: skewX(-42deg); transform-origin: 0 100%; border-radius: 3px 3px 0 0; }
/* правый торец: видимая боковая грань, чтобы коробка не обрывалась «дыркой» в темноту */
.wish__side { position: absolute; right: -13px; top: 13px; bottom: 0; width: 13px; background: linear-gradient(90deg, #cfc4b4, #a89a88); transform: skewY(-47deg); transform-origin: 0 0; border-radius: 0 2px 2px 0; }
.wish__face { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "title amaze" "prize prize" "only only" "no no"; gap: 4px 18px; align-items: center;
  padding: 16px 22px 14px 128px; background: #faf6ee; color: var(--red); border-radius: 3px; container-type: inline-size; min-height: 132px; }
.wish__face::before { content: ""; position: absolute; left: -60px; top: -40px; width: 150px; height: 240px; background: var(--red); transform: rotate(18deg); }
.wish__face::after { content: ""; position: absolute; right: -60px; top: -30px; width: 190px; height: 260px; background: var(--red); transform: rotate(-16deg); opacity: .95; }
.wish__crack { position: absolute; left: 14px; top: 12px; z-index: 2; font: 900 11px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: #faf6ee; transform: rotate(-14deg); }
.wish__head { position: absolute; z-index: 2; width: 84px; height: auto; filter: grayscale(1) contrast(1.3) brightness(1.05); mix-blend-mode: luminosity; opacity: .9; }
.wish__head--1 { left: 4px; top: 28px; }
.wish__head--2 { left: 46px; bottom: 2px; width: 72px; }
.wish__title { grid-area: title; position: relative; z-index: 1; margin: 0; font: 900 clamp(22px, 7cqi, 38px)/.9 var(--f-head); text-transform: uppercase; letter-spacing: -.01em; transform: rotate(-3deg); }
.wish__title b { color: var(--red); -webkit-text-stroke: 1px var(--red); }
.wish__amaze { grid-area: amaze; position: relative; z-index: 2; margin: 0; align-self: start; justify-self: end; font: 900 12px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: #faf6ee; text-align: right; transform: rotate(-3deg); max-width: 120px; }
.wish__prize { grid-area: prize; position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 6px 10px; margin: 2px 0; background: var(--red); color: #faf6ee; border-radius: 3px; transform: rotate(-1.5deg); }
.wish__yours { font: 700 10px/1 var(--f-head); letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.wish__name { font: 900 clamp(13px, 4.2cqi, 18px)/1.1 var(--f-head); text-transform: uppercase; }
.wish__only { grid-area: only; position: relative; z-index: 1; margin: 0; font: 900 12px/1 var(--f-head); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-2deg); }
.wish__no { grid-area: no; position: relative; z-index: 2; margin: 0; justify-self: start; align-self: end; font: 700 9px/1 var(--f-head); letter-spacing: .1em; text-transform: uppercase; color: var(--red); opacity: .8; }
.wish__dots { position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(circle, var(--red) 1.1px, transparent 1.6px) 0 0 / 9px 9px, radial-gradient(circle, var(--red) .8px, transparent 1.3px) 4px 5px / 9px 9px;
  -webkit-mask-image: radial-gradient(60% 80% at 46% 70%, #000 0, transparent 70%); mask-image: radial-gradient(60% 80% at 46% 70%, #000 0, transparent 70%); }
.wish__stamp { position: absolute; right: 26px; top: 50%; z-index: 3; padding: 6px 12px; border: 3px solid var(--orange-2); border-radius: 8px; font: 900 16px/1 var(--f-head); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-2); transform: translateY(-50%) rotate(-12deg); opacity: 0; }
.wish.is-claimed .wish__stamp { opacity: .95; }
@media (max-width: 760px) {
  .wish__tilt { max-width: 94%; }
  .wish__face { padding: 14px 14px 12px 96px; }
  .wish__face::after { right: -150px; width: 170px; }
  .wish__title { transform: none; }
  .wish__head { width: 64px; } .wish__head--2 { width: 56px; left: 34px; }
  .wish__face {  grid-template-columns: 1fr; grid-template-areas: "title" "amaze" "prize" "only" "no"; gap: 6px; }
  .wish__amaze { justify-self: start; text-align: left; transform: none; color: var(--red); }
  .wish__no { justify-self: start; color: var(--red); }
}
@media (prefers-reduced-motion: reduce) { .wish__tilt, .wish:hover .wish__tilt { transform: none; transition: none; } }

/* «Кошелек или жизнь»: выбор в доме и корзина в шапке */
.treat { margin: 18px 0 6px; padding: 16px 18px; border-radius: 16px; background: linear-gradient(135deg, rgba(248, 83, 0, .12), rgba(111, 63, 214, .12)); box-shadow: inset 0 0 0 1px rgba(255, 178, 122, .22); }
.treat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.treat__title { margin: 0; font: 700 15px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .06em; color: var(--orange-3); }
.treat__count { font: 600 13px/1 var(--f-body); color: var(--dim); }
.treat__hint { margin: 0 0 12px; font: 400 14px/1.45 var(--f-body); color: var(--dim); }
.treat__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.treat__opt { display: flex; align-items: center; justify-content: center; gap: 8px; height: 48px; border-radius: 12px; border: 1px solid rgba(255, 236, 214, .16); background: rgba(8, 5, 14, .5); color: var(--text); font: 700 14px/1 var(--f-head); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; transition: transform .15s, border-color .15s, background .15s; }
.treat__opt .ico { width: 20px; height: 20px; }
.treat__opt--candy .ico { color: #ff8a5b; } .treat__opt--coin .ico { color: #ffd166; }
.treat__opt:hover { transform: translateY(-1px); border-color: var(--orange-2); }
.treat__opt.is-pick { background: rgba(248, 83, 0, .18); border-color: var(--orange-2); color: #ffd9c2; }
.treat.is-done .treat__opt:not(.is-pick) { opacity: .45; pointer-events: none; }
.treat__reply { margin: 12px 0 0; font: 500 15px/1.4 var(--f-body); color: var(--text); animation: treat-in .35s cubic-bezier(.2, .8, .2, 1) both; }
.treat__reply::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange-2); margin: 0 8px 1px 0; box-shadow: 0 0 10px var(--orange); }
@keyframes treat-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.basket { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(13, 9, 21, .6); color: var(--text); cursor: pointer; font: 700 12px/1 var(--f-head); letter-spacing: .06em; }
.basket[hidden] { display: none; }
.basket .ico { width: 18px; height: 18px; color: #ff8a5b; }
.basket.is-bump { animation: basket-bump .5s cubic-bezier(.2, .8, .2, 1); }
.basket.is-full { border-color: var(--orange-2); box-shadow: 0 0 18px -4px rgba(248, 83, 0, .8); color: #ffd9c2; }
@keyframes basket-bump { 0% { transform: scale(1); } 35% { transform: scale(1.18) rotate(-6deg); } 70% { transform: scale(.96) rotate(3deg); } 100% { transform: none; } }
@media (max-width: 760px) { .spot--secret .spot__door { width: 118%; } .basket { height: 36px; padding: 0 10px 0 8px; } .treat__opts { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { .basket.is-bump, .treat__reply { animation: none; } }

/* тайный ход: появляется на карте после полной корзины - настоящая дверь (img/secret-door) с теплым светом в тумане */
.spot--secret { border-radius: 14px 14px 6px 6px; animation: secret-in 1.2s cubic-bezier(.2, .8, .2, 1) both; }
.spot--secret::before { opacity: 1; inset: -40% -60% -10%; border-radius: 50%; background: radial-gradient(ellipse at 50% 62%, rgba(255, 205, 120, .9), rgba(255, 140, 50, .5) 36%, rgba(248, 83, 0, .18) 60%, transparent 76%); filter: blur(18px); animation: secret-glow 2.6s ease-in-out infinite; }
.spot--secret::after { content: ""; position: absolute; left: 50%; bottom: 8%; width: 140%; height: 34%; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 170, 70, .55), transparent 70%); filter: blur(12px); pointer-events: none; }
.spot--secret .spot__pin { display: none; }
.spot--secret .spot__door { position: absolute; left: 50%; bottom: 0; width: 92%; aspect-ratio: 1 / 1.526; transform: translateX(-50%); background: url("../img/secret-door.webp") center bottom / contain no-repeat; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .6)); animation: secret-bob 3.4s ease-in-out infinite; }
.spot--secret .spot__door::after { display: none; }
@keyframes secret-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes secret-glow { 0%, 100% { opacity: .75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes secret-bob { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-2%); } }
.house--secret .house__tag { background: linear-gradient(90deg, #ffd27a, #ff8a2a); color: var(--ink); }

/* кладбище идей: причины смерти чипами, надгробие с эпитафией, свечка */
.grave { margin: 18px 0 22px; padding: 16px 18px 18px; border-radius: 16px; background: linear-gradient(180deg, rgba(111, 63, 214, .14), rgba(13, 9, 21, .3)); box-shadow: inset 0 0 0 1px rgba(255, 236, 214, .12); }
.grave__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.grave__opts .chip { font-size: 13px; text-transform: none; letter-spacing: 0; padding: 8px 12px; }
.grave__opts .chip.is-on { border-color: var(--orange-2); color: #ffd9c2; background: rgba(248, 83, 0, .16); }
.grave__stone { position: relative; margin: 18px auto 14px; max-width: 420px; padding: 34px 26px 22px; text-align: center; border-radius: 120px 120px 10px 10px;
  background: linear-gradient(180deg, #4a4157, #2a2336 70%, #1c1726); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .12), inset 0 -10px 20px rgba(0, 0, 0, .45), 0 18px 30px -16px rgba(0, 0, 0, .9);
  animation: grave-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.grave__stone::before { content: ""; position: absolute; inset: 10px; border-radius: 110px 110px 6px 6px; border: 1px solid rgba(248, 243, 234, .14); pointer-events: none; }
.grave__here { margin: 0 0 8px; font: 700 12px/1.3 var(--f-head); text-transform: uppercase; letter-spacing: .14em; color: rgba(248, 243, 234, .6); }
.grave__epitaph { margin: 0 0 12px; font: 700 clamp(18px, 2.2vw, 22px)/1.25 var(--f-head); color: #f8f3ea; text-wrap: balance; }
.grave__cause { margin: 0; font: 500 14px/1.3 var(--f-hand); font-size: 20px; color: #aa9fb8; }
.grave__candle { position: absolute; right: 18px; bottom: -6px; width: 10px; height: 26px; border-radius: 3px; background: linear-gradient(180deg, #f8f3ea, #d9cfc0); box-shadow: 0 0 22px 6px rgba(255, 170, 60, .35); }
.grave__candle::before { content: ""; position: absolute; left: 50%; top: -12px; width: 8px; height: 14px; margin-left: -4px; border-radius: 50% 50% 40% 40%; background: radial-gradient(circle at 50% 70%, #fff4c2, #ff9a2e 60%, transparent 75%); animation: candle 1.3s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes grave-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes candle { from { transform: scaleX(.9) scaleY(1) rotate(-3deg); } to { transform: scaleX(1.05) scaleY(1.15) rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .grave__stone, .grave__candle::before { animation: none; } }

/* сцена входа: тыквы вспыхивают, створки распахиваются (правая чуть позже), туман через проем, наезд камеры */
.hero.is-entering .hero__art { animation: enter-zoom 2.2s cubic-bezier(.35, 0, .4, 1) both; transform-origin: 50% 46%; }
@keyframes enter-zoom { 0% { transform: scale(1); } 30% { transform: scale(1.005); } 100% { transform: scale(1.09); } }
.hero__frame::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 3;
  background: radial-gradient(9% 12% at 16.5% 51%, rgba(255, 190, 80, .95), transparent 70%), radial-gradient(9% 12% at 84% 51%, rgba(255, 190, 80, .95), transparent 70%);
  mix-blend-mode: screen; }
.hero.is-entering .hero__frame::after { animation: pumpkin-flash .7s ease-out both; }
@keyframes pumpkin-flash { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }
.hero__frame.is-entering { --open: 1; }
.hero__frame.is-entering .gate { transition: transform 1.05s cubic-bezier(.32, .9, .35, 1); }
.hero__frame.is-entering .gate--r { transition-delay: .14s; }
.hero__burst { position: absolute; left: 50%; top: 62%; width: 30%; aspect-ratio: 1; transform: translate(-50%, -50%) scale(.2); border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle, rgba(248, 243, 234, .55), rgba(248, 243, 234, .18) 45%, transparent 70%); filter: blur(18px); }
.hero__frame.is-entering .hero__burst { animation: fog-burst 1.6s cubic-bezier(.2, .7, .3, 1) both; }
@keyframes fog-burst { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); } 25% { opacity: .9; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.6); } }
@media (prefers-reduced-motion: reduce) { .hero.is-entering .hero__art, .hero.is-entering .hero__frame::after, .hero__frame.is-entering .hero__burst { animation: none; } }

/* живые персонажи над картой: три кадра в одном месте, низ уходит в табличку через маску, в покое дышат */
.figs { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.fig { position: absolute; transform: translateX(-50%); aspect-ratio: 1 / 1.48; transform-origin: 50% 100%; will-change: transform;
  -webkit-mask-image: linear-gradient(to bottom, #000 66%, rgba(0, 0, 0, .85) 74%, transparent 82%); mask-image: linear-gradient(to bottom, #000 66%, rgba(0, 0, 0, .85) 74%, transparent 82%);
  animation: fig-breathe 4.2s ease-in-out var(--d, 0s) infinite; }
.fig__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: 50% 0; opacity: 0; transition: opacity .18s; }
.fig__img--idle { opacity: 1; }
.fig.is-look .fig__img--idle, .fig.is-wave .fig__img--idle { opacity: 0; }
.fig.is-look .fig__img--look, .fig.is-wave .fig__img--wave { opacity: 1; }
.fig.is-look { animation: fig-lean .5s cubic-bezier(.2, .8, .2, 1) both; }
.fig.is-wave { animation: fig-wave .6s ease-in-out infinite alternate; }
@keyframes fig-breathe { 0%, 100% { transform: translateX(-50%) scaleY(1); } 50% { transform: translateX(-50%) scaleY(1.012) translateY(-.6%); } }
@keyframes fig-lean { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.06) translateY(-2%); } }
@keyframes fig-wave { from { transform: translateX(-50%) rotate(-1.5deg) scale(1.04); } to { transform: translateX(-50%) rotate(1.5deg) scale(1.04); } }
.park__canvas .spot { z-index: 3; }
@media (prefers-reduced-motion: reduce) { .fig, .fig.is-look, .fig.is-wave { animation: none; } }

/* пасхалка под подвалом: тянешь страницу за низ - открываются глаза, при сильном рывке выглядывает смотритель с репликой */
.peek { position: relative; height: var(--pull, 0px); overflow: hidden; background: #08060d; }
.peek__in { position: absolute; left: 0; right: 0; bottom: 0; height: 260px; }
.peek__eye { position: absolute; top: 34px; width: 14px; height: 8px; border-radius: 50%; background: #ffb24a; box-shadow: 0 0 14px 3px rgba(255, 150, 60, .7); opacity: 0; transform: scaleY(.1); transition: opacity .25s, transform .25s; }
.peek__eye--a { left: 22%; } .peek__eye--b { left: calc(22% + 30px); }
.peek.is-eyes .peek__eye { opacity: 1; transform: scaleY(1); animation: peek-blink 3.4s ease-in-out infinite; }
@keyframes peek-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.peek__keeper { position: absolute; left: 50%; bottom: 0; width: 150px; transform: translate(-50%, 100%); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.peek__keeper img { display: block; width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); mask-image: linear-gradient(to bottom, #000 70%, transparent 100%); filter: drop-shadow(0 0 24px rgba(248, 83, 0, .35)); }
.peek.is-up .peek__keeper { transform: translate(-50%, 22%); }
.peek__bubble { position: absolute; z-index: 2; left: 50%; bottom: calc(100% - 6px); width: max-content; max-width: min(320px, 84vw); margin: 0; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: #f8f3ea; color: #1a1220; font: 500 15px/1.35 var(--f-body); transform: translateX(-50%) scale(.9); opacity: 0; transition: opacity .25s .2s, transform .25s .2s; text-align: center; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .8); }
.peek__bubble::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; margin-left: -6px; background: #f8f3ea; transform: rotate(45deg); border-radius: 2px; }
.peek.is-up .peek__bubble { opacity: 1; transform: translateX(-50%) scale(1); }
.peek__keeper img { position: relative; z-index: 1; }
@media (max-width: 760px) { .peek__keeper { width: 130px; } }
@media (prefers-reduced-motion: reduce) { .peek__keeper, .peek__bubble { transition: none; } .peek.is-eyes .peek__eye { animation: none; } }

/* угольки: холст поверх карты, под пинами */
.embers { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.fig.is-ember .fig__img { opacity: 0 !important; transition: opacity .5s; }

/* Turnstile: невидимый виджет; когда Cloudflare просит подтверждение, он показывает свою карточку - даем ей место */
.ts { min-height: 0; margin: 4px 0 2px; }
.ts:empty { display: none; }

/* Display rules must never override hidden options or groups. */
.pick [hidden] { display: none !important; }
.status-err:empty { margin: 0; }
.park__bonus { color: var(--accent); font-size: 12px; font-style: normal; }
@media (prefers-reduced-motion: reduce) {
  .spot--secret::before, .spot--secret::after, .spot--secret .spot__door, .house[open] { animation: none; }
}
@media (max-width: 900px) {
  .house[open] { animation: none; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* Include the basket in the narrow-header width budget, not just the fresh visitor. */
@media (max-width: 400px) {
  .hdr__in { gap: 8px; }
  .hdr__right { gap: 4px; }
  .hdr .logo img, .hdr.is-scrolled .logo img { height: 30px; }
  .hdr.is-scrolled .hdr__in, .hdr.menu-open .hdr__in { padding-left: 12px; }
  .hdr .basket { padding-inline: 8px; }
  .hdr .basket .ico { display: none; }
  .hdr .sound, .hdr .burger { width: 36px; height: 36px; }
  .hdr .lang button { width: 32px; }
}
