/* Quest House — вид. Значения только из tokens.css (design/direction.md). Механика — base.css стартера. */

/* ---------- основа ---------- */
html { background: var(--surface); color-scheme: dark; overscroll-behavior: none; }
body { overscroll-behavior: none; }
body { font-size: var(--step-0); overflow-x: clip; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3 { font-weight: 500; letter-spacing: var(--track-display); line-height: 1; }
a { text-decoration-thickness: 1px; text-underline-offset: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { z-index: 120; background: var(--accent); color: var(--on-accent); }

.osd {
  font-family: var(--font-utility); font-weight: 500; font-size: var(--step--2); letter-spacing: var(--track-utility);
  text-transform: uppercase; color: var(--ink-muted); font-variant-numeric: tabular-nums; line-height: 1.5;
}
.osd a { color: inherit; text-decoration: none; }
.osd a:hover { color: var(--ink); }
.dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: var(--radius-round); vertical-align: 1px;
  background: var(--signature-color); box-shadow: 0 0 10px var(--signature-color);
}
time[data-clock]:empty { display: none; }
time[data-clock] { display: inline-block; min-width: 5ch; }
.arr { display: inline-block; transition: transform var(--dur-micro) var(--ease-out); }

/* ---------- СИГНАТУРА: щель света ---------- */
.slit {
  display: inline-block; flex: none; width: var(--signature-width); height: 1.1em; vertical-align: middle;
  background: var(--signature-color);
  box-shadow: 0 0 calc(var(--signature-glow) / 3) var(--signature-color),
              0 0 var(--signature-glow) color-mix(in oklab, var(--signature-color) 60%, transparent);
}

.kicker { display: flex; align-items: center; gap: var(--space-3); font-family: var(--font-utility); font-size: var(--step--2);
  letter-spacing: var(--track-utility); text-transform: uppercase; color: var(--ink-muted); }
.kicker .slit { height: 22px; }
.kicker__n { color: var(--ink); }

/* Заголовок-лесенка: строки из-под маски */
.lines .ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.lines .ln > span { display: block; }
.lines .ln--shift { padding-left: 24%; }

/* ---------- кнопки ---------- */
.btn { position: relative; justify-content: flex-start; min-height: 56px; padding: 0 var(--space-5) 0 var(--space-6);
  font: 500 15px/1.2 var(--font-body); border-radius: var(--radius-control); }
.btn--primary { background: var(--book-bg); color: var(--book-red); border: 1px solid color-mix(in oklab, var(--book-red) 55%, transparent);
  gap: var(--space-3); padding-left: var(--space-5); isolation: isolate; overflow: hidden; font-weight: 500; letter-spacing: .01em; }
.btn--primary::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  box-shadow: inset 0 0 18px color-mix(in oklab, var(--book-red) 30%, transparent), 0 0 22px color-mix(in oklab, var(--book-red) 40%, transparent);
  animation: breathe 3.4s ease-in-out infinite; }
.btn--primary::after { content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 60%; z-index: 2; pointer-events: none; mix-blend-mode: screen;
  background: linear-gradient(105deg, transparent 20%, rgb(255 210 80 / .55) 50%, transparent 80%); transform: translateX(-140%); animation: glint 6.5s ease-in-out infinite; }
.btn--primary:hover { background: var(--book-bg-hover); color: var(--book-red-hover); border-color: var(--book-red); }
.btn--primary:hover::before { opacity: 1; }
.btn__text { position: relative; z-index: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.btn--book { white-space: nowrap; }
.penta { position: relative; z-index: 1; display: grid; place-items: center; flex: none; color: var(--book-red); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--book-red) 70%, transparent)); }
.penta svg { animation: pentaSpin 18s linear infinite; }
.btn__slit { position: absolute; left: 0; top: 0; bottom: 0; height: auto; transition: box-shadow var(--dur-micro) var(--ease-out); }
.btn__slit { transition: width var(--dur-micro) var(--ease-out), box-shadow var(--dur-micro) var(--ease-out); }
.btn--primary:hover .btn__slit, .btn--primary:focus-visible .btn__slit { width: 7px; box-shadow: 0 0 14px var(--signature-color), 0 0 56px var(--signature-color); }
.btn-link { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; color: var(--ink);
  font-size: 15px; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 10px; }
.btn-link:hover { text-decoration-color: var(--ink); }

/* ---------- шапка ---------- */
.header { position: fixed; inset: 0 0 auto; background: var(--surface); }
.header::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--line); }
.header__inner { min-height: var(--header-h); gap: var(--space-6); }
.logo { display: block; flex: none; }
.logo img { height: 40px; width: auto; }
.nav { margin-right: auto; margin-left: clamp(var(--space-6), 9vw, 160px); }
.nav__list { gap: var(--space-6); font-size: 15px; }
.nav a { position: relative; display: block; padding-block: var(--space-3); text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); }
.nav a[aria-current]::after { content: ''; position: absolute; left: 50%; top: calc(100% + 2px); width: var(--signature-width); height: 12px;
  background: var(--signature-color); box-shadow: 0 0 12px var(--signature-color); }
.header__actions { gap: var(--space-5); }
.header__phone { font-family: var(--font-utility); font-size: 13px; letter-spacing: .04em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.header__tg { display: grid; place-items: center; width: 44px; height: 44px; color: var(--ink); }
.header__tg:hover, .header__phone:hover { color: var(--accent); }
.langs { display: flex; align-items: center; gap: 6px; font-family: var(--font-utility); font-size: 12px; letter-spacing: .08em; color: var(--ink-muted); }
.langs a { display: grid; place-items: center; min-width: 32px; min-height: 44px; text-decoration: none; color: var(--ink-muted); }
.langs a[aria-current] { color: var(--ink); }
.langs a:hover { color: var(--ink); }
.burger { color: var(--ink); }

/* ---------- первый экран: пять дверей ---------- */
.hero { position: relative; display: flex; flex-direction: column; height: 100svh; min-height: 720px; max-height: 1100px;
  padding-top: var(--header-h); overflow: clip; }
.hero__status { display: flex; justify-content: flex-end; align-items: center; min-height: 40px; }
.status { color: var(--ink-muted); }
.status[data-state="closed"] .dot { --signature-color: var(--ink-muted); box-shadow: none; }
.status > span[aria-hidden] { margin-inline: var(--space-2); }

.doors { flex: 1 1 auto; min-height: 260px; display: flex; gap: 20px; padding-bottom: 6px; }
.doors__nav { display: none; }
.minidoor { color: inherit; }
.minidoor:hover img { filter: brightness(.8); }
.door { --spill: .5; position: relative; flex: 1 1 0; min-width: 0; display: block; color: var(--ink); text-decoration: none;
  transition: flex-grow var(--dur-door) var(--ease-out); }
.door.is-open { flex-grow: 2.15; --spill: 1; }
.door__photo { position: absolute; inset: 0; overflow: hidden; background: var(--plane); }
.door__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.26) saturate(.85);
  transition: filter var(--dur-reveal) var(--ease-out); }
.door.is-open .door__photo img { filter: none; transform: none; }
.door__photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(10 10 11 / .7)); }
.door__slit { position: absolute; top: 0; bottom: 0; right: -1px; height: auto; }
.door__spill { position: absolute; left: -8%; right: -8%; top: calc(100% - 4px); height: 120px; pointer-events: none;
  background: radial-gradient(50% 40% at 50% 0%, color-mix(in oklab, var(--signature-color) 70%, transparent), transparent 75%);
  filter: blur(14px); opacity: var(--spill); transition: opacity var(--dur-door) var(--ease-out); }
.door__title { position: absolute; left: 10%; right: 10%; bottom: var(--space-5); z-index: 1; display: flex; justify-content: center; pointer-events: none; }
.door__title img { width: auto; max-width: 100%; max-height: 76px; height: auto; object-fit: contain; filter: drop-shadow(0 2px 12px rgb(0 0 0 / .7)); }
.door:not(.is-open) .door__title { opacity: .75; }
.door__label { position: absolute; left: var(--space-4); bottom: var(--space-4); z-index: 1; writing-mode: vertical-rl; transform: rotate(180deg);
  color: rgb(237 232 225 / .82); white-space: nowrap; }
.door:focus-visible { outline-offset: 6px; }
:lang(uz) .door__label { writing-mode: horizontal-tb; transform: none; right: var(--space-4); white-space: normal; }

.hero__bottom { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-block: var(--space-7) var(--space-6); }
.chips { grid-area: chips; display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.chips a { display: inline-block; padding-block: var(--space-2); }
.chips a[aria-current] { color: var(--ink); }
.hero__title { min-width: 0; font-size: clamp(44px, 6.1vw, 96px); line-height: .98; letter-spacing: -0.025em; }
.hero__title .ln { display: block; white-space: nowrap; }
:lang(uz) .hero__title { font-size: clamp(40px, 5vw, 80px); }
:lang(en) .hero__title { font-size: clamp(42px, 5.4vw, 86px); }
.hero__aside { margin-top: var(--space-6); }

/* ---------- титр-пауза ---------- */
/* ---------- категории: «Хоррор» слева, «Детский» справа; раскрыта одна или ни одной ---------- */
.cats { padding-block: var(--space-7) var(--space-6); }
.cats__title { font-size: clamp(28px, 2.8vw, 40px); text-align: center; }
.cats + .catalog .section-head { padding-top: var(--space-8); }
.cats__tabs { display: flex; justify-content: center; gap: var(--space-4); margin-top: var(--space-7); }
.cat__tab { position: relative; display: grid; justify-items: center; gap: var(--space-1); min-width: min(260px, 42vw); padding: var(--space-5) var(--space-6);
  background: var(--plane); border: 1px solid var(--line); color: var(--ink); cursor: pointer; overflow: hidden;
  transition: border-color var(--dur-micro) var(--ease-out), background-color var(--dur-micro) var(--ease-out), box-shadow var(--dur-reveal) var(--ease-out); }
.cat__tab .cat__slit { position: absolute; left: 0; top: 0; bottom: 0; height: auto; }
.cat__name { font-family: var(--font-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.02em; }
.cat__tab:hover { border-color: color-mix(in oklab, var(--signature-color) 60%, transparent); }
.cat__tab[aria-expanded="true"] { border-color: var(--signature-color); background: color-mix(in oklab, var(--signature-color) 14%, var(--plane));
  box-shadow: 0 0 40px color-mix(in oklab, var(--signature-color) 35%, transparent), inset 0 0 30px color-mix(in oklab, var(--signature-color) 18%, transparent); }
.cats__panels { margin-top: var(--space-6); }
.cat__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 600ms var(--ease-out), opacity 450ms linear; }
.cat__panel.is-open { grid-template-rows: 1fr; opacity: 1; }
.cat__inner { min-height: 0; overflow: hidden; }
.ring { position: relative; }
.ring__arrow { display: none; }
.cat__quests { display: flex; justify-content: center; gap: 20px; padding-top: var(--space-3); padding-bottom: var(--space-5); }
.qcard { display: block; flex: none; width: 280px; color: var(--ink); text-decoration: none; }
.qcard__photo { position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--plane); }
.qcard__photo img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.72); transition: filter var(--dur-micro) var(--ease-out); }
.qcard:hover .qcard__photo img, .qcard:focus-visible .qcard__photo img { filter: none; }
.qcard__photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(10 10 11 / .82)); pointer-events: none; }
.qcard__slit { position: absolute; right: 0; top: 0; bottom: 0; height: auto; z-index: 1; }
.qcard__title { position: absolute; left: 9%; right: 9%; bottom: var(--space-4); z-index: 2; display: flex; justify-content: center; }
.qcard__title img, .qcard .qtitle { width: auto; max-width: 100%; max-height: 64px; height: auto; object-fit: contain; filter: none !important; opacity: 1 !important; }
.qcard__facts { display: block; margin-top: var(--space-3); text-align: center; }
.cat__all { display: flex; width: fit-content; margin: 0 auto var(--space-6); }
.deck__count { display: none; }

/* ---------- каталог: стопка комнат ---------- */
.section-head { padding-block: var(--space-10) var(--space-8); }
.section-head h2, .level h2, .rules h2, .faqs h2, .cathead h1, .pricehead h1, .bloghead h1, .faqpage h1, .post__head h1, .nf h1 {
  font-size: var(--step-5); margin-top: var(--space-6); }
.section-head__lead { max-width: 52ch; margin-top: var(--space-6); color: var(--ink-muted); font-size: var(--step-1); line-height: 1.45; }

.rooms { position: relative; }
.room { --tab: 56px; position: sticky; top: 0; height: 100svh; min-height: 640px; overflow: hidden;
  display: flex; flex-direction: column; background: var(--surface); }
.room + .room { box-shadow: 0 -1px 0 var(--line), 0 -40px 80px rgb(0 0 0 / .6); }
.rooms > .room:not(:last-child) { margin-bottom: 30svh; }
.room__photo { position: absolute; inset: 0; margin: 0; }
.room__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; filter: brightness(.78) saturate(.95); }
#room-podzemele .room__photo img { object-position: 50% 84%; transform: translate(8%, -4%) scale(1.22); filter: brightness(1.12); }
.room::before { content: ''; position: absolute; inset: 0; z-index: 1; background: var(--signature-color); mix-blend-mode: color; opacity: .42; pointer-events: none; }
.room::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 10 11 / .82), rgb(10 10 11 / .2) 46%, rgb(10 10 11 / .55) 78%, rgb(10 10 11 / .86)),
              linear-gradient(transparent 50%, rgb(10 10 11 / .7)); }
.room__edge { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; height: auto; }
.room__tab { position: relative; z-index: 3; flex: none; display: flex; align-items: center; justify-content: space-between;
  height: var(--tab); padding-inline: var(--gutter); background: var(--plane); border-bottom: 1px solid var(--line); }
.room__tabname { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.01em; }
.room__tabname .osd { margin-right: var(--space-3); color: var(--ink); }
.room__inner { position: relative; z-index: 2; flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  grid-template-rows: auto 1fr; column-gap: var(--space-8); padding-top: calc(var(--header-h) - var(--tab) + var(--space-6));
  padding-bottom: var(--space-8); }
.room__top { grid-column: 1 / -1; display: flex; justify-content: space-between; color: rgb(237 232 225 / .75); }
.room__main { align-self: end; max-width: 760px; }
.room__facts { margin-top: var(--space-5); color: var(--ink); }
.room__tags { margin-top: var(--space-2); }
.room__name { display: flex; margin: 0; }
.room__name a { display: block; text-decoration: none; }
.room__name img { width: auto; height: auto; max-width: min(100%, 560px); max-height: 170px; filter: drop-shadow(0 2px 14px rgb(0 0 0 / .7)); }
.room__text { max-width: 54ch; margin-top: var(--space-5); color: rgb(237 232 225 / .85); }
.room__more { margin-top: var(--space-3); }
.room .price { align-self: end; }
.room--link .room__inner { grid-template-columns: minmax(0, 1fr); }
.room--link .room__name a::after { content: ''; position: absolute; inset: 0; z-index: 2; }
.room--link .room__top, .room--link .room__tags { position: relative; z-index: 3; }
.room--link .room__photo { display: block; cursor: pointer; }
.room--link .room__photo img { transition: filter var(--dur-reveal) var(--ease-out); }
.room--link:hover .room__photo img { filter: brightness(.95) saturate(1); }
.room__more { pointer-events: none; }

/* цена за команду */
.price { display: grid; gap: var(--space-3); }
.price__base { font-family: var(--font-utility); font-size: clamp(28px, 2.5vw, 36px); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.price__note { color: var(--ink-muted); font-size: 14px; }
.team { display: grid; grid-template-columns: 1fr 44px 52px 44px; align-items: center; margin-top: var(--space-3);
  padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); }
.team__q { font-size: 16px; }
.team__btn { width: 44px; height: 44px; border-radius: var(--radius-round); border: 1px solid var(--line); background: rgb(10 10 11 / .4);
  font: 400 20px/1 var(--font-utility); color: var(--ink); transition: border-color var(--dur-micro) var(--ease-out); }
.team__btn:hover { border-color: var(--ink); }
.team__btn:disabled { opacity: .35; cursor: default; }
.team__n { text-align: center; font: 500 20px/1 var(--font-utility); font-variant-numeric: tabular-nums; }
.price__total { font-size: 16px; }
.price__sum { font-family: var(--font-utility); font-variant-numeric: tabular-nums; }
.price .btn { margin-top: var(--space-3); }

/* ---------- уровень контакта: диммер ---------- */
.level { --lv: 1; position: relative; padding-block: var(--space-10) var(--space-9); overflow: clip; }
.level[data-level="0"] { --lv: 0; } .level[data-level="2"] { --lv: 2; }
.level__glow { position: absolute; right: -14vw; top: -10vw; width: 72vw; aspect-ratio: 1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in oklab, var(--light-red) 46%, transparent), transparent);
  opacity: calc(.12 + var(--lv) * .26); transition: opacity var(--dur-reveal) var(--ease-out); }
.level h2 .ln--shift { padding-left: 26%; }
.level .container { position: relative; }
.level__fig { position: absolute; right: var(--gutter); top: 0; width: clamp(200px, 20vw, 300px); height: auto; overflow: visible;
  fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.fig__floor { stroke: var(--line); stroke-width: 2; }
.fig__eye { fill: var(--ink); stroke: none; }
.fig { opacity: 0; transform: translateY(8px); transform-origin: 100px 186px; transition: opacity 380ms var(--ease-out), transform 480ms var(--ease-out); }
.level[data-level="0"] .fig--0, .level[data-level="1"] .fig--1, .level[data-level="2"] .fig--2 { opacity: 1; transform: none; }
.fig--2 { transform: rotate(-24deg) translateY(-20px); }
.fig__pool { fill: var(--light-red); stroke: none; opacity: .6; }
.fig__fear { stroke: var(--light-amber); stroke-width: 2.4; }
.level[data-level="1"] .fig__shake { animation: shake 160ms linear infinite alternate; }
@keyframes shake { from { transform: translateX(-1.2px); } to { transform: translateX(1.2px); } }
.dimmer { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--space-9); padding-top: var(--space-7); }
.dimmer__track { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line); }
.dimmer__handle { position: absolute; top: -22px; left: calc(var(--lv) * 33.333%); --signature-color: var(--light-red);
  }
.dimmer__handle .slit { height: 44px; }
.dimmer__stop { position: relative; display: grid; gap: var(--space-2); justify-items: start; text-align: left; padding: 0 var(--space-6) 0 0;
  background: none; border: 0; color: var(--ink-muted); }
.dimmer__stop::before { content: ''; position: absolute; left: -5px; top: calc(-1 * var(--space-7) - 5px); width: 9px; height: 9px;
  border-radius: var(--radius-round); border: 1px solid var(--ink-muted); background: var(--surface); }
.dimmer__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1; transition: color var(--dur-micro) var(--ease-out); }
.dimmer__say { min-height: 3.6em; max-width: 30ch; margin-top: var(--space-7); font-family: var(--font-display); font-size: var(--step-2);
  line-height: 1.2; letter-spacing: -0.01em; text-wrap: pretty; }
.level[data-level="2"] .dimmer__say { color: var(--light-red); text-shadow: 0 0 20px color-mix(in oklab, var(--light-red) 55%, transparent); }
.dimmer__say .w { display: inline-block; white-space: nowrap; }
.dimmer__say .ch { display: inline-block; transform: translateY(var(--y, 0)) rotate(var(--r, 0deg)); }
.dimmer__stop[aria-checked="true"] { color: var(--ink); }
.dimmer__stop:hover .dimmer__name { color: var(--ink); }

/* ---------- правила: инструктаж ---------- */
.rules { padding-block: var(--space-9) var(--space-10); overflow-x: clip; }
.rules__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-8); }
.rules__head { position: sticky; top: calc(var(--header-h) + var(--space-7)); align-self: start; }
.rules__list { counter-reset: none; }
.rule { position: relative; isolation: isolate; display: grid; grid-template-columns: 72px 1fr; padding-block: var(--space-5) var(--space-6); border-top: 1px solid var(--line); }
.rule__body summary { display: flex; justify-content: space-between; gap: var(--space-4); list-style: none; cursor: default; }
.rule__body summary::-webkit-details-marker { display: none; }
.rule__body .faq__pm { display: none; }
.rule--lit .rule__t { text-shadow: 0 0 22px rgb(243 236 224 / .5); }
.rule__n { color: var(--ink-muted); padding-top: 4px; }
.rule__t { font-family: var(--font-body); font-size: var(--step-1); font-weight: 500; letter-spacing: 0; line-height: 1.25; }
.rule__d { margin-top: var(--space-2); max-width: 54ch; color: var(--ink-muted); }
.rule--lit { border-bottom: 1px solid var(--line); }
.rule--lit::before { content: ''; position: absolute; inset: -20% -10% -20% -6%; z-index: -1; opacity: 0; pointer-events: none;
  background: radial-gradient(46% 70% at 26% 50%, rgb(243 236 224 / .2), rgb(243 236 224 / .06) 45%, transparent 72%); transition: opacity var(--dur-reveal) var(--ease-out); }
.rule--lit::before { opacity: 1; }
.rule--lit .rule__n { color: var(--ink); }
.rule--lit .rule__d { color: var(--ink); }
.cctv { position: relative; margin-top: var(--space-5); max-width: 440px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--plane); }
.cctv img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25) brightness(.6); }
.cctv figcaption { position: absolute; left: var(--space-3); top: var(--space-2); color: var(--ink); }
.cctv figcaption .dot { --signature-color: var(--light-red); }
.cctv__cross { position: absolute; right: 12%; top: 18%; width: 34%; height: auto; max-width: none; fill: none; stroke: var(--ink); stroke-width: 3;
  stroke-linecap: round; filter: drop-shadow(0 0 6px rgb(237 232 225 / .6)); }
.cctv__cross path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- отзывы ---------- */

/* ---------- вопросы ---------- */
.faqs { padding-block: var(--space-9) var(--space-10); }
.faqs__grid > div { max-width: 1040px; }  /* фото-дверь у вопросов убрано — правка владельца 14.10.2026 */
.faqs h2 { margin-bottom: var(--space-7); }
.faq__item { border-top: 1px solid var(--line); }
.faq__item:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: var(--space-5); padding-block: var(--space-5);
  font-size: var(--step-1); line-height: 1.3; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__pm { position: relative; flex: none; width: 14px; height: 14px; }
.faq__pm::before, .faq__pm::after { content: ''; position: absolute; left: 0; right: 0; top: 6px; height: 1.5px; background: currentColor;
  transition: transform var(--dur-micro) var(--ease-out); }
.faq__pm::after { transform: rotate(90deg); }
.faq__item[open] .faq__pm::after { transform: rotate(0deg); }
.faq__item[open] summary { color: var(--ink); }
.faq__item[open] .faq__pm { color: var(--signature-color); filter: drop-shadow(0 0 6px var(--signature-color)); }
.faq__a { padding-bottom: var(--space-6); max-width: 70ch; color: rgb(237 232 225 / .78); }
.faq__a p + p, .faq__a p + ol { margin-top: var(--space-3); }
.faq__rules { padding-left: 1.4em; display: grid; gap: var(--space-2); list-style: decimal; }
.faq__rules strong { font-weight: 500; color: var(--ink); }
.faqs__all { margin-top: var(--space-5); }
.seo-text { margin-top: var(--space-8); max-width: 70ch; font-size: 15px; color: var(--ink-muted); }
.more summary { display: inline-flex; margin-top: var(--space-3); min-height: 44px; align-items: center; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 8px; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more p { margin-top: var(--space-3); }
.more[open] summary { order: 2; }
.more .more__close, .more[open] .more__open { display: none; }
.more[open] .more__close { display: inline; }
.more[open] { display: flex; flex-direction: column; }

/* ---------- финал: иди на свет ---------- */
.finale { position: relative; display: flex; align-items: center; min-height: 100svh; padding-block: var(--space-10) var(--space-9); overflow: clip; border-top: 1px solid var(--line); }
.finale__room { position: absolute; inset: 0; z-index: 0; }
.finale__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; }
.finale__img--dark { filter: brightness(.09) saturate(.5); }
.finale__img--lit { filter: brightness(1.3) sepia(.3) saturate(1.15);
  -webkit-mask-image: radial-gradient(circle var(--br, 340px) at var(--bx, 72%) var(--by, 46%), #000 32%, rgb(0 0 0 / .55) 56%, transparent 78%);
          mask-image: radial-gradient(circle var(--br, 340px) at var(--bx, 72%) var(--by, 46%), #000 32%, rgb(0 0 0 / .55) 56%, transparent 78%); }
.finale::after { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(10 10 11 / .88), rgb(10 10 11 / .6) 38%, transparent 66%); }
.finale__inner { position: relative; z-index: 2; }
.finale__title { font-size: var(--step-5); }
.finale__sub { margin-top: var(--space-5); color: var(--ink-muted); max-width: 46ch; }
.finale__phone { display: inline-flex; align-items: center; gap: var(--space-4); margin-top: var(--space-8); white-space: nowrap;
  font-family: var(--font-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.finale__phone:hover { text-shadow: 0 0 24px rgb(243 236 224 / .5); }
.finale__slit { height: .9em; }
.finale__facts { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: var(--space-5) var(--space-9); margin-top: var(--space-8); }
.finale__facts dt { font-family: var(--font-utility); font-size: var(--step--2); letter-spacing: var(--track-utility); text-transform: uppercase; color: var(--ink-muted); }
.finale__facts dd { margin: var(--space-2) 0 0; font-size: var(--step-1); max-width: 34ch; }
.finale__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-7); margin-top: var(--space-7); }
.finale__actions .btn { min-width: 300px; }

/* ---------- подвал: блок титров ---------- */
.footer { padding-block: var(--space-8) var(--space-7); border-top: 1px solid var(--line); }
.credits { max-width: 980px; margin-inline: auto; text-align: center; font-family: var(--font-display); text-transform: uppercase;
  font-size: 15px; line-height: 1.7; letter-spacing: .08em; color: var(--ink-muted); text-wrap: balance; }
.credits__big { display: block; margin-bottom: var(--space-3); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; letter-spacing: .04em; color: var(--ink); }
.credits a { color: var(--ink); text-decoration: underline; text-decoration-color: rgb(237 232 225 / .35); text-underline-offset: .2em; }
.credits a:hover { text-decoration-color: var(--ink); }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.footer__nav { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-5); font-size: 15px; }
.footer__nav a { display: inline-block; padding-block: var(--space-2); text-decoration: none; }
.footer__nav a:hover { text-decoration: underline; }
.footer__copy { font-family: var(--font-utility); font-size: 12px; letter-spacing: .04em; color: var(--ink-muted); }

/* ---------- внутренние страницы ---------- */
.crumbs { padding-top: calc(var(--header-h) + var(--space-5)); padding-bottom: var(--space-5); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; padding: 0; }
.crumbs li + li::before { content: '/'; margin-right: var(--space-2); }
.crumbs [aria-current] { color: var(--ink); }

/* первый экран квеста: фото как в карусели → надпись с афиши → факты 2×2 → цена (правка владельца 13.10.2026) */
.qhero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); column-gap: var(--space-8); align-items: start; padding-bottom: var(--space-8); }
.qhero__photo { position: relative; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--plane); }
.qhero__photo > img { width: 100%; height: 100%; object-fit: cover; }
.qhero__photo::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgb(10 10 11 / .82)); pointer-events: none; }
/* надпись с афиши — на самом фото, как в карусели (правка владельца 14.10.2026) */
.qhero__name { position: absolute; left: 8%; right: 8%; bottom: var(--space-6); z-index: 1; display: flex; justify-content: center; margin: 0; }
.qhero__title { width: auto; height: auto; max-width: 100%; max-height: 130px; filter: drop-shadow(0 2px 14px rgb(0 0 0 / .7)); }
.qhero__tags { margin-top: var(--space-5); }
.qhero__text { max-width: 54ch; margin-top: var(--space-3); color: rgb(237 232 225 / .85); }
.qhero .price { margin-top: var(--space-6); }

.qstory { padding-block: var(--space-9) var(--space-8); }
.qstory__text { max-width: 1040px; }
.qfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-5); border-top: 1px solid var(--line); }
.qfacts li { display: grid; grid-template-columns: 36px minmax(0, 1fr); grid-template-areas: "i v" "i k"; align-items: center; column-gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.qfacts__i { grid-area: i; display: grid; place-items: center; width: 36px; height: 36px; color: var(--signature-color); }
.qfacts__i svg { width: 28px; height: 28px; }
.qfacts__v { grid-area: v; font-size: 17px; font-weight: 500; line-height: 1.2; }
.qfacts__k { grid-area: k; }
.qstory__story { font-family: var(--font-display); font-size: var(--step-3); line-height: 1.12; letter-spacing: -0.015em; text-wrap: pretty; }
.qstory__book { margin-top: var(--space-6); max-width: 60ch; color: var(--ink-muted); }
.qstory__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-6); margin-top: var(--space-6); }
.h2 { font-size: var(--step-4); text-wrap: balance; }
.qfaq { padding-block: var(--space-9) var(--space-6); }
.qfaq .faq { margin-top: var(--space-7); max-width: 1000px; }
.others, .related { padding-block: var(--space-8); }
.rows { margin-top: var(--space-6); }
.row { border-top: 1px solid var(--line); }
.row:last-child { border-bottom: 1px solid var(--line); }
.row > a { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto 24px; align-items: center; gap: var(--space-6);
  padding-block: var(--space-4); text-decoration: none; }
.row__thumb { display: block; width: 72px; height: 96px; overflow: hidden; background: var(--plane); }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.45); transition: filter var(--dur-micro) var(--ease-out); }
.row__name { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.05; letter-spacing: -0.01em; }
.row__slit { position: absolute; left: 0; top: var(--space-4); bottom: var(--space-4); height: auto; opacity: 0; transition: opacity var(--dur-micro) var(--ease-out); }
.row > a:hover .row__thumb img { filter: none; }
.row > a:hover .row__slit { opacity: 1; }
.row--text > a { grid-template-columns: 140px minmax(0, 1fr) 24px; grid-template-areas: "date name arr" ". lead ."; row-gap: var(--space-2); padding-block: var(--space-5); padding-left: var(--space-5); }
.row--text .row__date { grid-area: date; align-self: start; padding-top: 6px; }
.row--text .row__name { grid-area: name; }
.row--text .row__lead { grid-area: lead; color: var(--ink-muted); max-width: 70ch; }
.row--text .arr { grid-area: arr; }

.cathead, .pricehead, .bloghead, .faqpage, .nf { padding-top: var(--space-6); padding-bottom: var(--space-8); }
.cathead .chips { margin-top: var(--space-7); }
.cathead__text { max-width: 70ch; margin-top: var(--space-6); color: rgb(237 232 225 / .82); }
.catalog--cat { border-top: 1px solid var(--line); }

.pricehead__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-8); align-items: end; }
.minidoors { display: flex; gap: 14px; height: 340px; padding-bottom: var(--space-8); }
.minidoor { --spill: .5; position: relative; display: block; width: 44px; background: var(--plane); }
.minidoor:first-child { width: 150px; --spill: 1; }
.minidoor img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.3); }
.minidoor:first-child img { filter: none; }
.table-wrap { margin-top: var(--space-8); }
.ptable tbody tr { transition: background-color var(--dur-micro) linear; }
.ptable tbody tr:hover { background: linear-gradient(90deg, color-mix(in oklab, var(--signature-color) 18%, transparent), transparent 55%); }
.ptable tbody tr:hover .slit { box-shadow: 0 0 12px var(--signature-color), 0 0 40px var(--signature-color); }
.ptable { width: 100%; border-collapse: collapse; }
.ptable caption { text-align: left; margin-bottom: var(--space-4); }
.ptable th, .ptable td { padding: var(--space-5) var(--space-4) var(--space-5) 0; text-align: left; vertical-align: baseline; border-top: 1px solid var(--line); }
.ptable thead th { font-family: var(--font-utility); font-size: var(--step--2); font-weight: 400; letter-spacing: var(--track-utility); text-transform: uppercase; color: var(--ink-muted); }
.ptable tbody tr:last-child > * { border-bottom: 1px solid var(--line); }
.ptable tbody th { font-weight: 400; }
.ptable tbody th a { display: inline-flex; align-items: center; gap: var(--space-3); font-family: var(--font-display); font-size: var(--step-1); text-decoration: none; }
.ptable tbody th a:hover { text-decoration: underline; text-decoration-color: var(--signature-color); }
.ptable .slit { height: 28px; }
.ptable .num { font-family: var(--font-utility); font-size: 14px; font-variant-numeric: tabular-nums; }
.ptable .muted { color: var(--ink-muted); }
.ptable td .muted { display: block; font-size: 12px; }
.pricehead__big { font-family: var(--font-display); font-weight: 400; font-size: var(--step-4); line-height: 1; letter-spacing: -0.02em; text-wrap: balance; }
.calc { padding-block: var(--space-8); }
.calc__lead { margin-top: var(--space-5); color: var(--ink); }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 420px)); gap: var(--space-9); margin-top: var(--space-7); }
.calc__label { margin-bottom: var(--space-4); color: var(--ink); }
.secs { padding-block: var(--space-6) var(--space-8); }
.sec { display: grid; grid-template-columns: 5fr 7fr; gap: var(--space-7); padding-block: var(--space-7); border-top: 1px solid var(--line); }
.sec__h { font-size: var(--step-3); }
.sec p { max-width: 62ch; color: rgb(237 232 225 / .82); }
.faqpage .faq { margin-block: var(--space-8) var(--space-7); max-width: 1040px; }

.post { padding-bottom: var(--space-8); }
.post__head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-8); align-items: end; padding-top: var(--space-6); }
.post__door { --spill: 1; position: relative; display: block; height: 440px; color: var(--ink); text-decoration: none; }
.post__door > img { width: 100%; height: 100%; object-fit: cover; }
.post__door .door__label { writing-mode: horizontal-tb; transform: none; top: var(--space-4); bottom: auto; }
.post__head .kicker time { color: var(--ink); }
.post__lead { max-width: 40ch; margin-top: var(--space-7); font-size: var(--step-2); line-height: 1.25; font-family: var(--font-display); letter-spacing: -0.01em; }
.post__body { max-width: 68ch; margin-top: var(--space-8); margin-left: 25%; }
.post__body h2 { margin-top: var(--space-8); font-size: var(--step-3); }
.post__body h2:first-child { margin-top: 0; }
.post__body p { margin-top: var(--space-4); color: rgb(237 232 225 / .85); }
.post__links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-7); margin-block: var(--space-9) var(--space-7); margin-left: 25%; }
.post__links h2 { margin-bottom: var(--space-4); }
.post__quests { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-6); }
.post__quests a { display: inline-flex; align-items: center; gap: var(--space-3); min-height: 44px; font-family: var(--font-display); font-size: var(--step-1); text-decoration: none; }
.post__quests a:hover { text-shadow: 0 0 18px var(--signature-color); }
.post__quests .slit { height: 26px; }
.post > .btn { margin-left: 25%; }
.rows--blog { margin-top: var(--space-8); }
.nf { min-height: 70svh; }
.nf .post__quests { margin-top: var(--space-7); }
.nf__other { margin-top: var(--space-7); }

/* ---------- липкая кнопка ---------- */
.sticky-cta { display: none; }

/* ---------- движение ---------- */

/* ---------- движение: вход, строки, лампы, свет комнат, плавание карусели, кнопка ---------- */
@keyframes flicker { 0% { opacity: .2; } 12% { opacity: 1; } 22% { opacity: .35; } 34%, 100% { opacity: 1; } }
@keyframes swapIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes slitIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes spillIn { from { opacity: 0; } to { opacity: var(--spill); } }
@keyframes lineUp { from { transform: translateY(108%); } to { transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -.9deg; } 50% { translate: 0 -13.5px; rotate: .9deg; } }  /* +50% к качанию — правка владельца 14.10.2026 */
@keyframes nudgeL { 0%, 100% { translate: 0 0; opacity: .75; } 50% { translate: -5px 0; opacity: 1; } }
@keyframes nudgeR { 0%, 100% { translate: 0 0; opacity: .75; } 50% { translate: 5px 0; opacity: 1; } }
@keyframes pentaSpin { to { rotate: 360deg; } }
@keyframes glint { 0%, 58% { transform: translateX(-140%); } 82%, 100% { transform: translateX(240%); } }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* вход на сайт: щели загораются по очереди, лужи света растекаются, надписи и заголовок выходят */
.js .hero .door__slit { animation: slitIn 700ms var(--ease-out) backwards; animation-delay: calc(150ms + var(--i) * 110ms); }
.js .hero .door__spill { animation: spillIn 1.2s var(--ease-out) backwards; animation-delay: calc(320ms + var(--i) * 110ms); }
.js .hero .door__title { animation: swapIn 700ms var(--ease-out) backwards; animation-delay: calc(520ms + var(--i) * 90ms); }
.hero__title .ln { overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hero__title .ln > span { display: block; animation: lineUp 1s var(--ease-out) 250ms backwards; }
.hero__title .ln:nth-child(2) > span { animation-delay: 380ms; }
/* заголовки разделов — строки из-под маски */
.js .lines:not(.is-in) .ln > span { transform: translateY(105%); }
.lines .ln > span { transition: transform 900ms var(--ease-out); }
.lines .ln:nth-child(2) > span { transition-delay: 90ms; }
/* кадр камеры: крест рисуется; девятое правило загорается; Hard мигает */
.cctv__cross path { transition: stroke-dashoffset 500ms var(--ease-out); }
.js .cctv:not(.is-in) .cctv__cross path { stroke-dashoffset: 1; }
.cctv.is-in .cctv__cross path:nth-child(2) { transition-delay: 260ms; }
.js .rule--lit:not(.is-in)::before { opacity: 0; }
.rule--lit.is-in::before { animation: flicker 900ms steps(1) 1; }
.level[data-level="2"] .level__glow { animation: flicker 900ms steps(1) 1; }
.btn-link:hover .arr, .row > a:hover .arr, .room--link:hover .room__more .arr { transform: translateX(4px); }
.dimmer__say.is-swap { animation: swapIn 700ms var(--ease-out); }
/* внутри Telegram: прокрутка внутри страницы — встроенный браузер не пружинит */
html.in-tg { height: 100%; overflow: hidden; }
html.in-tg body { height: 100%; overflow-x: clip; overflow-y: auto; overscroll-behavior: none; -webkit-overflow-scrolling: touch; }

/* ---------- ПК с низким экраном: стопка без залипания ---------- */
@media (min-width: 901px) and (max-height: 700px) {
  .room { position: relative; height: auto; min-height: 640px; }
  .rooms > .room:not(:last-child) { margin-bottom: 0; }
}

/* ---------- планшет ---------- */
@media (max-width: 1200px) {
  .header__phone { display: none; }
  .nav { margin-left: var(--space-6); }
  .nav__list { gap: var(--space-5); }
  .room__inner { grid-template-columns: minmax(0, 1fr) 300px; column-gap: var(--space-6); }
}

/* ---------- телефон ---------- */
@media (max-width: 900px) {
  .header__tg { display: none; }
  .header__actions { gap: var(--space-2); }
  .header__actions .langs { display: flex; }
  .logo img { height: 34px; }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0; z-index: 49; overflow-y: auto; display: flex; flex-direction: column;
    padding: var(--space-6) var(--gutter) calc(var(--space-7) + 60px); background: var(--surface); border-top: 0; }
  .mobile-menu .menu__list { display: grid; gap: var(--space-2); }
  .menu__list a { display: flex; align-items: center; gap: var(--space-4); padding-block: var(--space-2);
    font-family: var(--font-display); font-size: clamp(44px, 13vw, 60px); line-height: 1.05; letter-spacing: -0.02em; text-decoration: none; }
  .menu__list .slit { height: .8em; }
  .menu__contacts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); margin-top: auto; padding-top: var(--space-6); border-top: 1px solid var(--line); }
  .menu__contacts a { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; text-decoration: none; }
  .menu__phone { grid-column: 1 / -1; font-family: var(--font-utility); font-size: 22px; letter-spacing: .02em; }
  .mobile-menu .langs { margin-top: var(--space-5); font-size: 14px; }
  .header.menu-open { background: var(--surface); transform: none; }

  .hero { height: auto; min-height: 100svh; max-height: none; }
  .hero__status { justify-content: flex-start; }
  .finale { --br: 230px; }
  .door__photo, .door__label { transition: opacity var(--dur-micro) linear; }
  .hero__status { justify-content: space-between; gap: var(--space-3); }
  .doors__nav { display: flex; align-items: center; }
  .doors__count { display: none; }  /* на телефоне место дверей показывают точки; счётчик не влезал в строку */
  .doors__dot { display: grid; place-items: center; width: 26px; height: 40px; padding: 0; background: none; border: 0; opacity: .45;
    transition: opacity var(--dur-micro) linear; }
  .doors__dot .slit { height: 16px; transition: height var(--dur-micro) var(--ease-out); }
  .doors__dot.is-on { opacity: 1; }
  .doors__dot.is-on .slit { height: 26px; }
  .doors__count { margin-left: var(--space-2); color: var(--ink); white-space: nowrap; }
  .hero__status .status > span:not(.dot):not([data-status-text]) { display: none; }
  .hero__status .status { white-space: nowrap; }
  /* карусель-барабан: центральная дверь спереди, соседние слева и справа развёрнуты вглубь; крутится только пальцем */
  .doors.container { width: 100%; max-width: none; margin-inline: 0; padding: 0; }
  .doors { --cw: 76%; position: relative; display: block; flex: none; height: max(320px, calc(100svh - 300px));
    perspective: 1000px; perspective-origin: 50% 45%; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  .door, .door.is-open { --d: 0; --ad: 0; position: absolute; top: 0; left: 50%; width: var(--cw); height: calc(100% - 34px);
    margin-left: calc(var(--cw) / -2); flex: none; backface-visibility: hidden;
    transform: translateX(calc(var(--d) * 60%)) translateZ(calc(var(--ad) * -200px)) rotateY(calc(var(--d) * -36deg));
    z-index: calc(20 - var(--ad) * 5); opacity: clamp(0, 1.3 - var(--ad) * .4, 1);
    transition: transform 420ms var(--ease-out), opacity 300ms linear; -webkit-tap-highlight-color: transparent;
    animation: float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }
  .doors.is-drag .door, .cat__quests.is-drag li { animation-play-state: paused; }
  .door:not(.is-open) .door__title { opacity: 0; }
  .door__title img { max-height: 92px; }
  .ring__arrow { position: absolute; top: calc(50% - 40px); z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
    border-radius: var(--radius-round); border: 1px solid rgb(237 232 225 / .3); background: rgb(10 10 11 / .55); color: var(--ink); }
  .ring__arrow--prev { left: 8px; animation: nudgeL 2.4s ease-in-out infinite; }
  .ring__arrow--next { right: 8px; animation: nudgeR 2.4s ease-in-out infinite; }
  .cat__quests li { animation: float 6.5s ease-in-out infinite; }
  .cat__quests li:nth-child(2) { animation-delay: -1.6s; } .cat__quests li:nth-child(3) { animation-delay: -3.2s; } .cat__quests li:nth-child(4) { animation-delay: -4.8s; }
  .door img { -webkit-user-drag: none; pointer-events: none; }
  .door:not(.is-open) .door__photo img { filter: brightness(.55) saturate(.9); }
  .door__spill { height: 44px; }
  .door:not(.is-open) .door__spill, .door:not(.is-open) .door__label { opacity: 0; }
  .hero__bottom { display: block; padding-block: var(--space-6) var(--space-5); }
  .hero__bottom .chips { display: none; }
  .hero__title, :lang(uz) .hero__title, :lang(en) .hero__title { font-size: clamp(30px, 9vw, 40px); line-height: 1.06; }
  .hero__title .ln { white-space: normal; }
  .hero__title { pointer-events: none; }
  .hero__aside { display: none; }  /* на телефоне бронь — в нижней кнопке, она всегда на экране */
  .door__label { bottom: auto; top: var(--space-4); }

  .cats { padding-block: var(--space-7) var(--space-6); }
  .cats__title { font-size: clamp(24px, 6.6vw, 28px); }
  .cats__tabs { gap: var(--space-3); margin-top: var(--space-6); }
  .cat__tab { flex: 1; min-width: 0; padding: var(--space-4) var(--space-3); }
  .cat__name { font-size: clamp(26px, 7.6vw, 34px); }
  .cat__inner { margin-inline: calc(-1 * var(--gutter)); }
  .deck__count { text-align: center; }
  .cat__inner .cat__quests { --cw: 74%; position: relative; display: block; padding: 0; margin-top: var(--space-3);
    height: calc((100vw * .74) * 1.25 + 64px); perspective: 1000px; perspective-origin: 50% 40%;
    touch-action: pan-y; -webkit-user-select: none; user-select: none; }
  .cat__quests li { --d: 0; --ad: 0; position: absolute; top: 0; left: 50%; width: var(--cw); margin-left: calc(var(--cw) / -2); backface-visibility: hidden;
    transform: translateX(calc(var(--d) * 64%)) translateZ(calc(var(--ad) * -190px)) rotateY(calc(var(--d) * -34deg));
    z-index: calc(20 - var(--ad) * 5); opacity: clamp(0, 1.3 - var(--ad) * .4, 1);
    transition: transform 420ms var(--ease-out), opacity 300ms linear; }
  .qcard { width: 100%; padding-bottom: var(--space-3); background: var(--surface); -webkit-tap-highlight-color: transparent; }
  .qcard__photo { aspect-ratio: 4 / 5; }
  .qcard img { -webkit-user-drag: none; pointer-events: none; }
  .cat__quests li:not([data-o="0"]) .qcard__photo img { filter: brightness(.55); }
  .cat__quests li:not([data-o="0"]) .qcard__title, .cat__quests li:not([data-o="0"]) .qcard__facts { visibility: hidden; }
  .cat__quests li:not([data-o="0"]) .qcard { background: transparent; }
  .deck__count { display: block; margin-bottom: var(--space-3); color: var(--ink); }
  /* картинки на телефоне не приближаются и заголовки не выезжают */
  .door__photo img, .door.is-open .door__photo img { transform: none; transition: filter var(--dur-micro) linear; }
  .room--link .room__photo img, .room--link:hover .room__photo img { transform: none; transition: none; }
  .room--link:hover .room__photo img { filter: brightness(.78) saturate(.95); }
  .qcard:hover .qcard__photo img, .qcard:focus-visible .qcard__photo img { transform: none; filter: none; }
  .js .lines:not(.is-in) .ln > span { transform: none; }
  .js .hero .door__label { animation: none; }

  .section-head { padding-block: var(--space-9) var(--space-7); }
  .section-head h2, .level h2, .rules h2, .faqs h2, .cathead h1, .pricehead h1, .bloghead h1, .faqpage h1, .post__head h1, .nf h1 { font-size: clamp(32px, 10vw, 48px); }
  .lines .ln--shift { padding-left: 12%; }
  .level h2 .ln--shift { padding-left: 12%; }
  .section-head__lead { font-size: 17px; }

  .room { --ph: max(340px, 56svh); position: relative; top: auto; height: auto; min-height: 0; margin-inline: 0; display: block; }
  .room + .room { box-shadow: none; border-top: 1px solid var(--line); }
  .rooms > .room:not(:last-child) { margin-bottom: 0; }
  .room__tab { display: none; }
  .room__photo { position: relative; height: var(--ph); }
  .room::before { bottom: auto; height: var(--ph); }
  .room::after { bottom: auto; height: var(--ph); background: linear-gradient(rgb(10 10 11 / .55), transparent 26%, transparent 55%, var(--surface)); }
  .room__edge { bottom: auto; height: var(--ph); }
  .room__inner { display: block; width: auto; margin-top: -136px; padding: 0 var(--gutter) var(--space-8); }
  .room__top { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(136px + var(--space-4) - var(--ph)); }
  /* надпись с афиши лежит на нижней кромке фото (правка владельца 14.10.2026) */
  .room__name { height: 112px; align-items: flex-end; justify-content: center; margin-bottom: var(--space-5); }
  .room__name img { max-width: 86%; max-height: 100px; }
  .room__facts { margin-top: 0; }
  .room__main { max-width: none; }
  .room .price { margin-top: var(--space-6); }
  .price .btn { width: 100%; }

  .level { padding-block: var(--space-9) var(--space-8); }
  .level__glow { width: 130vw; right: -60vw; top: 0; }
  .level__fig { position: static; display: block; width: 170px; margin: var(--space-6) auto 0; }
  .dimmer { grid-template-columns: 1fr; gap: var(--space-5); padding-top: 0; padding-left: var(--space-7); margin-top: var(--space-8); }
  .dimmer__track { left: 0; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .dimmer__handle { top: calc(var(--lv) * 33.333% + 2px); left: -1px; transition-property: top; }
  .dimmer__stop { padding: 0; min-height: 64px; }
  .dimmer__stop::before { left: calc(-1 * var(--space-7) - 4px); top: 10px; }

  .rules { padding-block: var(--space-8) var(--space-9); }
  .rules__grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .rules__head { position: static; }
  .rule { grid-template-columns: 44px 1fr; }
  .rule__t { font-size: 18px; }
  .rule__d { font-size: 15px; }
  .rule__body summary { cursor: pointer; align-items: center; }
  .rule__body .faq__pm { display: block; }
  .rule__body[open] .faq__pm::after { transform: rotate(0deg); }
  .rule { padding-block: var(--space-4); }


  .faqs { padding-block: var(--space-8) var(--space-9); }
  .faq summary { font-size: 18px; }

  .finale { min-height: 0; padding-block: var(--space-9); }
  .finale__title { font-size: clamp(32px, 10vw, 48px); }
  .finale__phone { font-size: clamp(32px, 9.4vw, 44px); }
  .finale::after { background: linear-gradient(rgb(10 10 11 / .7), rgb(10 10 11 / .45) 50%, rgb(10 10 11 / .8)); }
  .finale__img { object-position: 50% 50%; }
  .finale__facts { grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-7); }
  .finale__actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3) var(--space-4); }
  .finale__actions .btn { grid-column: 1 / -1; min-width: 0; width: 100%; }

  .footer__row { flex-direction: column; align-items: flex-start; }
  .credits { font-size: 13px; letter-spacing: .06em; }

  .qhero { display: block; padding-bottom: var(--space-7); }
  .qhero__photo { margin-inline: calc(-1 * var(--gutter)); }
  .qhero__name { bottom: var(--space-5); }
  /* крошки на телефоне — одна строка «← Все квесты», чтобы надпись квеста осталась на первом экране */
  .is-quest .crumbs li:first-child, .is-quest .crumbs li:last-child { display: none; }
  .is-quest .crumbs li + li::before { content: '←'; }
  .qhero__title { max-height: 104px; }
  .qhero .qfacts { margin-top: var(--space-6); }
  .qhero .qfacts { column-gap: var(--space-4); }
  .qfacts li { grid-template-columns: 32px minmax(0, 1fr); column-gap: var(--space-2); }
  .qfacts__i { width: 32px; height: 32px; }
  .qfacts__i svg { width: 26px; height: 26px; }
  .qfacts__v { font-size: 16px; }
  .qstory { padding-block: var(--space-7); }
  .qstory__story { font-size: clamp(26px, 7.6vw, 34px); }
  .h2 { font-size: clamp(34px, 9.6vw, 46px); }
  .row > a { grid-template-columns: 56px minmax(0, 1fr) 20px; grid-template-areas: "thumb name arr" "thumb facts arr" "thumb price arr"; gap: var(--space-1) var(--space-4); }
  .row__thumb { grid-area: thumb; width: 56px; height: 80px; align-self: start; }
  .row__name { grid-area: name; font-size: 26px; }
  .row__facts { grid-area: facts; }
  .row__price { grid-area: price; color: var(--ink); }
  .row > a > .arr { grid-area: arr; }
  .row--text > a { grid-template-columns: minmax(0, 1fr) 20px; grid-template-areas: "date arr" "name arr" "lead arr"; padding-left: var(--space-4); }

  .ptable thead { display: none; }
  .ptable caption { display: block; width: 100%; }
  .ptable, .ptable tbody, .ptable tr { display: block; }
  .ptable tr { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2) var(--space-4); padding-block: var(--space-5); border-top: 1px solid var(--line); }
  .ptable th, .ptable td { border: 0; padding: 0; }
  .ptable tbody tr:last-child > * { border: 0; }
  .ptable tbody tr:last-child { border-bottom: 1px solid var(--line); }
  .ptable tbody th { grid-column: 1 / -1; }
  .ptable td:nth-child(2) { grid-column: 1 / -1; color: var(--ink-muted); font-size: 15px; }
  .pricehead__big { font-size: clamp(34px, 10vw, 48px); }
  .pricehead__top { grid-template-columns: 1fr; gap: var(--space-6); }
  .minidoors { height: 180px; padding-bottom: var(--space-6); gap: 10px; }
  .minidoor { width: 30px; } .minidoor:first-child { flex: 1; width: auto; }
  .calc__grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .sec { grid-template-columns: 1fr; gap: var(--space-4); }
  .post__body, .post__links, .post > .btn { margin-left: 0; }
  .post__links { grid-template-columns: 1fr; }
  .post__head { grid-template-columns: 1fr; gap: var(--space-6); }
  .post__door { height: 200px; }
  .post__door .door__title img { max-height: 64px; }
  .post__door .door__spill { left: 0; right: 0; }  /* свет не выходит за край экрана — без горизонтальной прокрутки */
  .post__lead { font-size: 24px; }

  .sticky-cta { display: flex; gap: var(--space-2); left: var(--space-3); right: var(--space-3); bottom: max(var(--space-3), env(safe-area-inset-bottom)); }
  .sticky-cta .btn { flex: 1; width: auto; min-width: 0; box-shadow: 0 10px 40px rgb(10 10 11 / .8); font-size: 14px; padding-inline: 14px; gap: 10px; }
  .sticky-cta .penta svg { width: 22px; height: 22px; }
  .sticky-cta__call { display: grid; place-items: center; flex: none; width: 56px; height: 56px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
}

/* ---------- телефон: всё статично (правка владельца 12.10.2026) ---------- */
@media (max-width: 900px) {
  html { scroll-behavior: auto; }
  .doors.is-drag .door, .cat__quests.is-drag li { transition: none !important; }
  html, body { overscroll-behavior: none; }
  .sticky-cta, .sticky-cta.is-on { transform: none; }
  .hero__aside .btn--primary { display: none; }
}

@media (max-width: 380px) {
  .hero__status .status { font-size: 10px; letter-spacing: .06em; white-space: normal; min-width: 0; }
  .doors__dot { width: 24px; }
  .sticky-cta .btn { font-size: 12.5px; padding-inline: 10px; gap: 8px; }
  .langs a { min-width: 26px; }
  .header__actions .langs { gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  .js .lines:not(.is-in) .ln > span { transform: none; }
  .js .cctv:not(.is-in) .cctv__cross path { stroke-dashoffset: 0; }
  .room { position: relative; }
  .rooms > .room:not(:last-child) { margin-bottom: 0; }
}

/* ---------- заставка «Печать»: при входе на сайт и по нажатию на логотип (решение владельца 13.10.2026) ---------- */
.qi-cover { display: none; }
.qi-pre .qi-cover, .qx-pre .qi-cover { display: block; position: fixed; inset: 0; z-index: 1000; background: var(--surface); animation: qiFailsafe 0s 4s forwards; }
@keyframes qiFailsafe { to { visibility: hidden; } }
html.qi-lock, html.qi-lock body { overflow: hidden !important; }
.qi-pre main *, .qi-pre main *::before, .qi-pre main *::after, .qi-pre .header * { animation-play-state: paused !important; }
.qi { position: fixed; inset: 0; z-index: 1000; overflow: hidden; touch-action: none; contain: strict; }
.qi__bg { position: absolute; inset: 0; background: var(--surface); }
.qi__flash { position: absolute; inset: 0; opacity: 0; background: radial-gradient(closest-side circle at 50% 50%, rgb(240 68 58 / .55), rgb(240 68 58 / 0)); }
.qi__seal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); will-change: transform; }
.qi__seal svg, .qi__glow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.qi__seal svg { fill: none; stroke: var(--book-red); stroke-width: .42; stroke-linejoin: round; }
.qi__seal .qi__c, .qi__seal .qi__s { stroke-dasharray: 1; stroke-dashoffset: 1; }
.qi__seal .qi__s { stroke-width: .3; }
.qi__glow { filter: blur(10px); }
.qi__glow svg { stroke: var(--book-red-hover); stroke-width: 1.2; }
.qi__logo { position: absolute; left: 50%; top: 50%; height: auto; transform: translate(-50%, -50%); filter: drop-shadow(0 0 8px var(--surface)); }
/* переход в квест «Печать»: кольцо в базовом размере 200 px, масштаб — из site.js; линия не масштабируется */
.qx__seal { width: 200px; height: 200px; transform: translate(-50%, -50%) scale(0); }
.qx__seal svg { stroke-width: 2.5; }
.qx__seal .qi__glow svg { stroke-width: 7; }

/* трейлер квеста: превью с кнопкой ▶, плеер — по нажатию (правка владельца 14.10.2026) */
.trailer { margin-top: var(--space-6); }
.trailer__play { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: var(--plane); cursor: pointer; overflow: hidden; color: var(--ink); }
.trailer__play img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.68); transition: filter var(--dur-micro) var(--ease-out); }
.trailer__play:hover img, .trailer__play:focus-visible img { filter: brightness(.9); }
.trailer__play:focus-visible { outline: 2px solid var(--book-red); outline-offset: 3px; }
.trailer__btn { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-round);
  transform: translate(-50%, -50%); background: var(--book-bg); color: var(--book-red); border: 1px solid var(--book-red);
  box-shadow: 0 0 26px color-mix(in oklab, var(--book-red) 45%, transparent); transition: background var(--dur-micro) var(--ease-out); }
.trailer__play:hover .trailer__btn { background: var(--book-bg-hover); }
.trailer__btn svg { margin-left: 4px; }
.trailer__label { position: absolute; left: var(--space-4); top: var(--space-4); }
.trailer__frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.trailer__yt { margin-top: var(--space-3); }

/* переходы в квест — у каждого свой (решение владельца 14.10.2026) */
.qx__strings { position: absolute; inset: 0; overflow: visible; filter: drop-shadow(0 0 4px var(--light-teal)); }
.qx__strings line { stroke: rgb(214 248 244 / .9); stroke-width: 1.3; }
.qx__strings circle { fill: var(--light-teal); }
.qx__gem { position: absolute; inset: 0; }
.qx__gemhole { fill: var(--surface); }
.qx__gemlines { fill: none; stroke: var(--light-emerald); stroke-width: 2; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px var(--light-emerald)) drop-shadow(0 0 18px var(--light-emerald)); }

.qx__rays, .qx__gemglow { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0; }
.qx__spark { position: absolute; width: 9px; height: 9px; opacity: 0; background: #E9FFF1;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 6px var(--light-emerald)); }
.qx__veil { position: absolute; inset: 0; background: var(--surface); opacity: 0; }
.qx__card { position: absolute; box-sizing: border-box; background: #F1E9DA; transform-origin: 50% 50%; backface-visibility: visible;
  box-shadow: 0 18px 50px rgb(0 0 0 / .55); }
.qx__card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.qx__back { position: absolute; inset: 0; opacity: 0; background: #E8DEC9 repeating-linear-gradient(0deg, rgb(120 100 70 / .06) 0 1px, transparent 1px 6px); }

.qx__face { fill: var(--surface); }
.qx__skline { fill: none; stroke: #D9CDB6; stroke-width: 2; filter: drop-shadow(0 0 8px rgb(240 160 64 / .6)); }
.qx__mouth { fill: none; stroke: #D9CDB6; stroke-width: 2; }
.qx__eye { position: absolute; border-radius: var(--radius-round); transform: translate(-50%, -50%); opacity: 0; pointer-events: none;
  background: radial-gradient(circle, #FFD58A 0, var(--light-amber) 35%, rgb(240 160 64 / 0) 70%); filter: blur(1px) drop-shadow(0 0 12px var(--light-amber)); }
