:root {
  --bg: #f2f5fb;
  --surface: #ffffff;
  --surface-2: #eaf0fa;
  --surface-3: #dfe8f8;
  --line: rgba(21, 32, 58, 0.1);
  --line-strong: rgba(21, 32, 58, 0.18);
  --ink: #101827;
  --ink-dim: #3d4a67;
  --muted: #647089;
  --accent: #2f5cf6;
  --accent-ink: #ffffff;
  --accent-dim: #dde5fb;
  --accent-glow: rgba(47, 92, 246, 0.32);
  --ember: #ff6a3d;
  --ember-ink: #2a1206;
  --ember-dim: #ffe3d6;
  --shadow: 0 20px 46px -22px rgba(16, 24, 55, 0.3);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --maxw: 1200px;
  --font-display: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #080c18;
    --surface: #0f1626;
    --surface-2: #141d33;
    --surface-3: #1b2640;
    --line: rgba(226, 233, 250, 0.1);
    --line-strong: rgba(226, 233, 250, 0.2);
    --ink: #eef2fb;
    --ink-dim: #c1cbe4;
    --muted: #8996ba;
    --accent: #5c86ff;
    --accent-ink: #071230;
    --accent-dim: #1c2b52;
    --accent-glow: rgba(92, 134, 255, 0.38);
    --ember: #ff8c63;
    --ember-ink: #2a1206;
    --ember-dim: #3a2416;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme='dark'] {
  --bg: #080c18;
  --surface: #0f1626;
  --surface-2: #141d33;
  --surface-3: #1b2640;
  --line: rgba(226, 233, 250, 0.1);
  --line-strong: rgba(226, 233, 250, 0.2);
  --ink: #eef2fb;
  --ink-dim: #c1cbe4;
  --muted: #8996ba;
  --accent: #5c86ff;
  --accent-ink: #071230;
  --accent-dim: #1c2b52;
  --accent-glow: rgba(102, 144, 255, 0.35);
  --ember: #ff8c63;
  --ember-ink: #2a1206;
  --ember-dim: #3a2416;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

* {
  box-sizing: border-box;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition:
    background 0.25s ease,
    color 0.25s ease;
}
img,
svg {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  text-wrap: balance;
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0.01em;
}
p {
  margin: 0;
}
button {
  font: inherit;
}
::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
section {
  position: relative;
  padding-block: clamp(60px, 9vw, 112px);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--accent);
  opacity: 0.8;
}

/* ---------- header ---------- */
header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 12px;
  gap: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand img {
  height: 30px;
  width: auto;
  flex-shrink: 0;
}
.brand a {
  flex-shrink: 0;
}
.navlinks {
  display: flex;
  gap: 24px;
  align-items: center;
  position: relative;
}
.navlinks a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-dim);
  padding-block: 6px;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.navlinks a:hover,
.navlinks a.current {
  color: var(--ink);
}
/* Одно подчёркивание на всё меню: едет к пункту под курсором и возвращается к текущему разделу (site.js). */
.nav-line {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.2s ease;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.phone {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--ink-dim);
  white-space: nowrap;
}
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink-dim);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  flex: none;
}
.icon-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.btn {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent-ink);
  background: var(--accent);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -10px var(--accent-glow);
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: none;
}
.btn.block {
  width: 100%;
  justify-content: center;
  padding-block: 14px;
}
.btn-arrow {
  padding-right: 6px;
  gap: 12px;
}
.btn-arrow i {
  font-style: normal;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-ink);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  transition: transform 0.25s ease;
}
.btn-arrow:hover i {
  transform: rotate(45deg) scale(1.08);
}
.burger {
  display: none;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  color: var(--ink);
}

/* ---------- to-top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 14px 30px -10px var(--accent-glow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) rotate(0deg);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.to-top:hover {
  transform: translateY(-4px) rotate(-8deg);
}
.to-top svg {
  width: 20px;
  height: 20px;
}

/* ---------- ticker ---------- */
.ticker {
  background: var(--accent);
  overflow: hidden;
  padding-block: 12px;
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 22s linear infinite;
}
.ticker span {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}
.ticker span::after {
  content: '✺';
  font-size: 0.8em;
  opacity: 0.7;
}
@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
/* Глитч на словах бегущей строки: большую часть времени текст чистый, раз в несколько секунд
   короткая вспышка — слово дёргается, а два цветных «призрака» (::before/::after) разъезжаются
   полосами. Задержки у соседних слов разные, чтобы строка не мигала вся разом. */
.glitch {
  position: relative;
  display: inline-block;
  font-weight: inherit;
  animation: glitch-shake 4.2s steps(1, end) infinite;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
}
.glitch::before {
  color: #ff2d6f;
  animation: glitch-a 4.2s steps(1, end) infinite;
}
.glitch::after {
  color: #00f0ff;
  animation: glitch-b 4.2s steps(1, end) infinite;
}
.ticker span:nth-child(3n + 2) .glitch,
.ticker span:nth-child(3n + 2) .glitch::before,
.ticker span:nth-child(3n + 2) .glitch::after {
  animation-delay: -1.4s;
}
.ticker span:nth-child(3n) .glitch,
.ticker span:nth-child(3n) .glitch::before,
.ticker span:nth-child(3n) .glitch::after {
  animation-delay: -2.8s;
}
@keyframes glitch-shake {
  0%,
  100% {
    transform: none;
  }
  88% {
    transform: translateX(-2px) skewX(-8deg);
  }
  90% {
    transform: translateX(3px) skewX(6deg);
  }
  92% {
    transform: translateX(-1px);
  }
  94% {
    transform: translateX(2px) skewX(-4deg);
  }
  96% {
    transform: none;
  }
}
@keyframes glitch-a {
  0%,
  87%,
  97%,
  100% {
    opacity: 0;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  88% {
    opacity: 0.9;
    transform: translate(-4px, -1px);
    clip-path: inset(10% 0 58% 0);
  }
  90% {
    opacity: 0.9;
    transform: translate(3px, 1px);
    clip-path: inset(62% 0 8% 0);
  }
  92% {
    opacity: 0.9;
    transform: translate(-3px, 0);
    clip-path: inset(34% 0 36% 0);
  }
  94% {
    opacity: 0.9;
    transform: translate(4px, -1px);
    clip-path: inset(0 0 72% 0);
  }
}
@keyframes glitch-b {
  0%,
  87%,
  97%,
  100% {
    opacity: 0;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
  88% {
    opacity: 0.9;
    transform: translate(4px, 1px);
    clip-path: inset(55% 0 14% 0);
  }
  90% {
    opacity: 0.9;
    transform: translate(-3px, -1px);
    clip-path: inset(6% 0 66% 0);
  }
  92% {
    opacity: 0.9;
    transform: translate(3px, 1px);
    clip-path: inset(70% 0 4% 0);
  }
  94% {
    opacity: 0.9;
    transform: translate(-4px, 0);
    clip-path: inset(28% 0 40% 0);
  }
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

.head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.head-row h2 {
  font-size: clamp(1.8rem, 3.8vw, 2.7rem);
}
.head-row .sub {
  color: var(--muted);
  max-width: 44ch;
  font-size: 0.98rem;
}

.chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--ink-dim);
  cursor: pointer;
  background: var(--surface);
  transition: all 0.2s ease;
}
.chip:hover {
  border-color: var(--accent);
  color: var(--ink);
}
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}

/* ---------- quest grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
  box-shadow: 0 1px 0 var(--line);
}
.card:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: var(--shadow);
}
.card:nth-child(even):hover {
  transform: translateY(-6px) rotate(0.6deg);
}
.card[data-cat] {
  display: none;
}
.card.show {
  display: flex;
}
.plate {
  width: 100%;
  aspect-ratio: 16/11;
  position: relative;
  overflow: hidden;
  background: var(--surface-3);
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.card:hover .plate img {
  transform: scale(1.06);
}
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 22, 0.75));
}
.plate .catchip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.plate .catchip svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  background: var(--ember);
  color: var(--ember-ink);
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  transform: rotate(-6deg);
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.35);
}
.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card h3 {
  font-size: 1.22rem;
}
.card .tagline {
  color: var(--muted);
  font-size: 0.9rem;
  flex: 1;
}
.meta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-dim);
  letter-spacing: 0.02em;
}
.meta-row span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.meta-row svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.card .foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.card .foot .price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--ink);
}
.card .foot .price b {
  color: var(--accent);
  font-size: 0.95rem;
}
.book-btn {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-ink);
  background: var(--accent);
  border: none;
  border-radius: 999px;
  padding: 9px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.book-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px var(--accent-glow);
}

/* ---------- spotlight ---------- */
.spotlight {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.spot-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 52px;
  align-items: center;
}
.eye-wrap {
  aspect-ratio: 4/3;
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
}
.eye-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eye-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.25), rgba(6, 10, 22, 0.65));
}
/* Глаз «Морфеуса»: один цикл в 6 секунд рассказывает про игру без зрения — глаз моргает и
   ищет взглядом, затем зрачок гаснет, глаз перечёркивается, картинка темнеет и расплывается;
   круги от центра — ориентация на слух. Все части идут по одному таймеру, чтобы совпадать. */
.eye-wrap img {
  animation: sight-lost 6s ease-in-out infinite;
}
.eye-wrap .eye {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 104px;
  height: 104px;
  color: #fff;
  z-index: 2;
  overflow: visible;
  filter: drop-shadow(0 0 16px rgba(0, 0, 0, 0.55));
}
.eye .eye-ball {
  transform-box: fill-box;
  transform-origin: center;
  animation: eye-blink 6s ease-in-out infinite;
}
.eye .pupil {
  transform-box: fill-box;
  transform-origin: center;
  animation: eye-look 6s ease-in-out infinite;
}
.eye .slash {
  stroke-dasharray: 92;
  stroke-dashoffset: 92;
  animation: eye-slash 6s ease-in-out infinite;
}
.eye-wrap .echo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  z-index: 1;
  opacity: 0;
  animation: echo 2.1s ease-out infinite;
}
.eye-wrap .echo:nth-of-type(2) {
  animation-delay: 0.7s;
}
.eye-wrap .echo:nth-of-type(3) {
  animation-delay: 1.4s;
}
@keyframes eye-blink {
  0%,
  7%,
  11%,
  15%,
  19%,
  46%,
  50%,
  100% {
    transform: scaleY(1);
  }
  9%,
  17%,
  48% {
    transform: scaleY(0.06);
  }
}
@keyframes eye-look {
  0%,
  20% {
    transform: translateX(0);
    opacity: 1;
  }
  27% {
    transform: translateX(-9px);
    opacity: 1;
  }
  37% {
    transform: translateX(9px);
    opacity: 1;
  }
  44%,
  56% {
    transform: translateX(0);
    opacity: 1;
  }
  64%,
  86% {
    transform: translateX(0) scale(0.7);
    opacity: 0.12;
  }
  95%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}
@keyframes eye-slash {
  0%,
  56% {
    stroke-dashoffset: 92;
    opacity: 1;
  }
  64%,
  86% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  94%,
  100% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
}
@keyframes sight-lost {
  0%,
  56% {
    filter: none;
    transform: scale(1);
  }
  64%,
  86% {
    filter: blur(7px) brightness(0.4);
    transform: scale(1.04);
  }
  96%,
  100% {
    filter: none;
    transform: scale(1);
  }
}
@keyframes echo {
  0% {
    transform: scale(0.7);
    opacity: 0;
  }
  20% {
    opacity: 0.7;
  }
  100% {
    transform: scale(3.4);
    opacity: 0;
  }
}
.spot-copy h2 {
  font-size: clamp(1.9rem, 3.8vw, 2.6rem);
  margin-bottom: 18px;
}
.spot-copy p {
  color: var(--ink-dim);
  margin-bottom: 22px;
  max-width: 52ch;
}
.spot-stats {
  display: flex;
  gap: 28px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.spot-stats div b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
}
.spot-stats div span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}
.pill-list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 14px;
  color: var(--ink-dim);
}

/* ---------- groups ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
.panel:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.panel .plate {
  aspect-ratio: 16/8;
}
.panel-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel h3 {
  font-size: 1.4rem;
}
.panel p {
  color: var(--muted);
  font-size: 0.92rem;
}

.format-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 44px;
}
.format {
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
.format svg {
  width: 26px;
  height: 26px;
  color: var(--ember);
  margin-bottom: 14px;
}
.format h4 {
  font-size: 1rem;
  text-transform: none;
  font-family: var(--font-body);
  font-weight: 700;
  margin-bottom: 8px;
}
.format p {
  color: var(--muted);
  font-size: 0.86rem;
}

/* ---------- pricing ---------- */
.price-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(26px, 5vw, 46px);
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  box-shadow: 0 1px 0 var(--line);
}
.price-panel .console {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
}
.price-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 14px;
}
.price-panel p {
  color: var(--ink-dim);
  margin-bottom: 10px;
}
.price-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-block: 10px;
  border-bottom: 1px dashed var(--line);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}
.price-list li b {
  color: var(--ink);
  font-weight: 500;
}
.price-list li em {
  font-style: normal;
  color: var(--accent);
}
/* Скидка имениннику — открытка, а не справка: конфетти, наклейка со скидкой, подарок. */
.discount-box {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  border: 1px dashed color-mix(in srgb, var(--ember) 55%, transparent);
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--ember) 75%, transparent) 0 4px, transparent 5px),
    radial-gradient(circle at 82% 12%, color-mix(in srgb, var(--accent) 75%, transparent) 0 5px, transparent 6px),
    radial-gradient(circle at 68% 30%, #ffd166 0 3px, transparent 4px),
    radial-gradient(circle at 92% 58%, color-mix(in srgb, var(--ember) 70%, transparent) 0 3px, transparent 4px),
    radial-gradient(circle at 95% 90%, color-mix(in srgb, var(--accent) 70%, transparent) 0 4px, transparent 5px),
    radial-gradient(circle at 78% 96%, #ffd166 0 3px, transparent 4px),
    radial-gradient(circle at 30% 8%, #ffd166 0 2.5px, transparent 3.5px),
    linear-gradient(135deg, var(--ember-dim), color-mix(in srgb, var(--accent-dim) 70%, var(--ember-dim)));
}
.discount-box .gift {
  width: 44px;
  height: 44px;
  color: var(--ember);
  animation: gift-wiggle 2.6s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.discount-box .big {
  align-self: flex-start;
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--ember-ink);
  background: var(--ember);
  padding: 8px 16px 10px;
  border-radius: 14px;
  transform: rotate(-5deg);
  box-shadow: 0 12px 24px -12px var(--ember);
}
.discount-box h3 {
  font-size: 1.35rem;
  margin: 6px 0 0;
}
.discount-box p {
  color: var(--ink-dim);
  font-size: 0.92rem;
  margin: 0;
}
.discount-box .fine {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}
@keyframes gift-wiggle {
  0%,
  70%,
  100% {
    transform: rotate(0);
  }
  76% {
    transform: rotate(-9deg);
  }
  84% {
    transform: rotate(8deg);
  }
  92% {
    transform: rotate(-4deg);
  }
}

/* ---------- reviews ---------- */
.rev-head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  flex-wrap: wrap;
}
.rating-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 14px 20px;
}
.rating-badge b {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}
.rating-badge .stars {
  color: var(--accent);
  letter-spacing: 2px;
  font-size: 0.9rem;
}
.rating-badge span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
}

.rev-card {
  width: 320px;
  flex: 0 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rev-card .stars {
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 2px;
}
.rev-card p {
  color: var(--ink-dim);
  font-size: 0.92rem;
}
.rev-card .who {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.rev-card .who b {
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
}

/* ---------- contact ---------- */
.contact {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: center;
}
.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-top: 26px;
}
.info-item {
  display: flex;
  gap: 16px;
}
.info-item svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
  flex: none;
  margin-top: 2px;
}
.info-item b {
  display: block;
  font-size: 1rem;
  margin-bottom: 2px;
}
.info-item span {
  color: var(--muted);
  font-size: 0.92rem;
}
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.social-row a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition:
    border-color 0.2s ease,
    color 0.2s ease;
  color: var(--ink-dim);
  background: var(--surface);
}
.social-row a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.social-row svg {
  width: 18px;
  height: 18px;
}

.map-card {
  aspect-ratio: 1/1;
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}
.map-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: saturate(1.05);
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  background: var(--surface-3);
}
.map-card.no-frame .map-fallback {
  display: flex;
}
.map-card.no-frame iframe {
  display: none;
}
.map-fallback .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 34px 34px;
}
.map-fallback .pin {
  position: absolute;
  top: 38%;
  left: 46%;
  width: 34px;
  height: 34px;
  color: var(--ember);
  animation: pin-bounce 2.4s ease-in-out infinite;
}
@keyframes pin-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

footer {
  border-top: 1px solid var(--line);
  padding-block: 28px;
}
.foot-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--muted);
}

/* ---------- modals ---------- */
.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.modal-layer.open {
  display: block;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 22, 0.55);
  backdrop-filter: blur(3px);
  animation: modal-fade 0.25s ease both;
}
.modal-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(640px, 92vw);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow);
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  padding: clamp(20px, 4vw, 34px);
  animation: modal-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
/* Появление: фон проявляется, окно поднимается и чуть увеличивается. Закрытие — то же в обратную сторону (класс closing ставит site.js). */
@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes modal-out {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.97);
  }
}
.modal-layer.closing .modal-backdrop {
  animation: modal-fade 0.2s ease reverse both;
}
.modal-layer.closing .modal-panel {
  animation: modal-out 0.2s ease both;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}
.modal-title {
  font-size: 1.5rem;
  padding-right: 40px;
  margin-bottom: 4px;
}
.modal-sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 22px;
}

/* Даты — сеткой: помещаются целиком и переносятся на вторую строку, без полосы прокрутки. */
.date-tabs {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
}
.date-more {
  position: relative;
  display: block;
  border-style: dashed;
}
.date-more.active {
  border-style: solid;
}
.date-more .dom svg {
  width: 20px;
  height: 20px;
  margin: 2px auto 0;
  color: var(--accent);
}
.date-more.active .dom svg {
  color: var(--accent-ink);
}
.date-more .dow {
  white-space: nowrap;
}
.date-more input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: 0;
  padding: 0;
}
#slotWrap {
  min-height: 228px;
}
/* Пояснение под заголовком ночного сеанса: он начинается уже на следующую дату. */
.tier-hint {
  font-size: 0.78rem;
  color: var(--ember);
  margin: -4px 0 8px;
}
.tier-hint:empty {
  display: none;
}
.slot {
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}
.date-tab {
  padding: 10px 6px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  cursor: pointer;
  text-align: center;
  min-width: 0;
}
.date-tab .dow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--muted);
  text-transform: uppercase;
}
.date-tab .dom {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.date-tab.active {
  background: var(--accent);
  border-color: var(--accent);
}
.date-tab.active .dow,
.date-tab.active .dom {
  color: var(--accent-ink);
}

.slot-group {
  margin-top: 16px;
}
.slot-group .tier {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
}
.slot-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.slot {
  padding: 9px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  cursor: pointer;
  color: var(--ink);
}
.slot:hover {
  border-color: var(--accent);
}
.slot.selected {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.slot.past {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}
.stepper button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-size: 1.1rem;
  cursor: pointer;
}
.stepper button:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.stepper .count {
  font-family: var(--font-display);
  font-size: 1.3rem;
  min-width: 2.4ch;
  text-align: center;
}
.price-line {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-s);
  background: var(--accent-dim);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}
.price-line b {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--accent);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field.full {
  grid-column: 1/-1;
}
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.field input,
.field textarea {
  padding: 11px 14px;
  border-radius: var(--radius-s);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 16px;
  font-size: 0.82rem;
  color: var(--muted);
}
.consent a {
  color: var(--accent);
  text-decoration: underline;
}
.consent input {
  margin-top: 3px;
}
.form-msg {
  margin-top: 10px;
  font-size: 0.84rem;
  color: var(--ember);
  min-height: 1.2em;
}
.success-box {
  display: none;
  text-align: center;
  padding: 30px 10px;
}
.success-box.show {
  display: block;
}
.success-box svg {
  width: 52px;
  height: 52px;
  color: var(--accent);
  margin: 0 auto 16px;
}
.success-box h4 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.success-box p {
  color: var(--muted);
  font-size: 0.92rem;
}
.booking-body.hide {
  display: none;
}

@media (max-width: 900px) {
  .navlinks {
    display: none;
  }
  .nav-line {
    display: none;
  }
  .navlinks a.current {
    color: var(--accent);
  }
  .burger {
    display: block;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
  }
  .format-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .spot-grid {
    grid-template-columns: 1fr;
  }
  .price-panel {
    grid-template-columns: 1fr;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .format-grid {
    grid-template-columns: 1fr;
  }
  .phone {
    display: none;
  }
  .nav {
    gap: 8px;
  }
  .nav-right {
    gap: 8px;
  }
  .nav-right .btn {
    padding: 10px 14px;
    font-size: 0.7rem;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
}

/* ---------- multi-page layout ---------- */
a.phone:hover {
  color: var(--accent);
}
.quest-pick {
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.foot-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.foot-nav a:hover {
  color: var(--accent);
}

/* главная: «Морфеус» первым экраном, компактнее обычной секции, чтобы каталог был ближе */
.spot-top {
  padding-block: clamp(24px, 3.5vw, 44px);
  border-top: none;
}
.spot-top .eye-wrap {
  max-height: 340px;
  width: 100%;
}
.spot-top .spot-copy p {
  margin-bottom: 18px;
}
.spot-top .spot-stats {
  margin-bottom: 22px;
}

/* главная: каталог */
.catalog {
  padding-block: clamp(20px, 3vw, 32px) clamp(48px, 7vw, 80px);
}
.catalog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px 32px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.catalog-head h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
}
.catalog-head .sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 8px;
}
.trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.trust span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  white-space: nowrap;
}
.trust b {
  color: var(--accent);
  font-weight: 600;
  margin-right: 4px;
}
.catalog .chips {
  margin-bottom: 20px;
}
.card .foot .price b {
  color: var(--accent);
}

/* внутренние страницы */
.page {
  padding-block: clamp(28px, 4vw, 48px) clamp(56px, 8vw, 96px);
}
.page-head {
  margin-bottom: 32px;
}
.page-head h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.page-head .sub {
  color: var(--muted);
  max-width: 60ch;
  margin-top: 12px;
}
.page-head.rev-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.page .format-grid {
  margin-top: 32px;
}
.page .contact-grid {
  align-items: start;
}
.page .info-list {
  margin-top: 0;
}
.block-title {
  font-size: 1.4rem;
  margin: 44px 0 16px;
}
.table-scroll {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
.price-table th,
.price-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-table th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.price-table td:nth-child(4),
.price-table td:nth-child(5) {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.price-table td:last-child {
  text-align: right;
}
.price-table td:first-child {
  white-space: normal;
}
.rev-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.rev-grid .rev-card {
  width: auto;
}
.page-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* Узкий экран: таблица цен — карточками, даты — в две строки (без горизонтальной прокрутки). */
@media (max-width: 760px) {
  .price-table thead {
    display: none;
  }
  .price-table tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 12px;
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .price-table tr:last-child {
    border-bottom: none;
  }
  .price-table th,
  .price-table td {
    padding: 0;
    border: none;
    white-space: normal;
  }
  .price-table td:first-child,
  .price-table td:last-child {
    grid-column: 1 / -1;
  }
  .price-table td:last-child {
    text-align: left;
    margin-top: 6px;
  }
  .price-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.66rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--muted);
  }
}
@media (max-width: 560px) {
  .date-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .rev-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .rev-grid {
    grid-template-columns: 1fr;
  }
  /* на телефоне «Морфеус» — короткая полоса: низкое фото, без цифр и длинного текста */
  .spot-top {
    padding-block: 16px 20px;
  }
  .spot-top .spot-grid {
    gap: 16px;
  }
  .spot-top .eye-wrap {
    aspect-ratio: auto;
    height: 150px;
  }
  .spot-top .eye-wrap .eye {
    width: 76px;
    height: 76px;
  }
  .spot-top .spot-copy .eyebrow,
  .spot-top .spot-copy p,
  .spot-top .spot-stats {
    display: none;
  }
  .spot-top .spot-copy h2 {
    font-size: 1.5rem;
    margin-bottom: 14px;
  }
  /* на телефоне до первой карточки — только заголовок и одна строка фильтров */
  .trust {
    display: none;
  }
  .catalog-head .sub {
    display: none;
  }
  .catalog-head {
    margin-bottom: 12px;
  }
  .catalog .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: -20px;
    padding-inline: 20px;
    scrollbar-width: none;
    margin-bottom: 14px;
  }
  .catalog .chips::-webkit-scrollbar {
    display: none;
  }
  .catalog .chip {
    flex: none;
  }
}

/* ---------- страница квеста, хлебные крошки, текст о площадке ---------- */
a.plate {
  display: block;
}
.card h3 a:hover,
.panel h3 a:hover,
.price-table a:hover,
.about-text a:hover {
  color: var(--accent);
}
.crumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.crumbs a {
  color: var(--ink-dim);
}
.crumbs a:hover {
  color: var(--accent);
}
.quest-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: start;
}
.quest-photo {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/3;
  background: var(--surface-3);
}
.quest-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.quest-info h1 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
}
.quest-info .lede {
  color: var(--ink-dim);
  font-size: 1.05rem;
  margin-top: 14px;
}
.quest-facts {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(2, auto) 1fr;
  gap: 14px 28px;
}
.quest-facts li {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.quest-facts span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.quest-facts b {
  font-weight: 700;
}
.quest-note {
  color: var(--muted);
  font-size: 0.86rem;
  margin: 12px 0 24px;
}
.about {
  padding-block: 0 clamp(48px, 7vw, 80px);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  padding-top: clamp(32px, 5vw, 56px);
  border-top: 1px solid var(--line);
}
.about h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
}
.about-text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: var(--ink-dim);
  font-size: 0.96rem;
}
.about-text a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 3px;
}
@media (max-width: 900px) {
  .quest-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}
@media (max-width: 560px) {
  .quest-facts {
    grid-template-columns: 1fr 1fr;
  }
  .quest-facts li:last-child {
    grid-column: 1 / -1;
  }
}

.quest-desc {
  max-width: 72ch;
}
.quest-desc p {
  color: var(--ink-dim);
  margin-bottom: 14px;
  white-space: pre-line;
}

/* ---------- документы: политика и правила ---------- */
.legal {
  max-width: 820px;
}
.legal h2 {
  font-size: 1.25rem;
  margin: 34px 0 12px;
}
.legal p,
.legal li {
  color: var(--ink-dim);
  font-size: 0.98rem;
}
.legal p {
  margin-bottom: 12px;
}
.legal ul {
  margin: 0 0 12px;
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal-links {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

/* ---------- галерея квеста и просмотр фото ---------- */
.quest-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 28px;
}
.quest-shot {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--surface-3);
}
.quest-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.quest-shot:hover img {
  transform: scale(1.06);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(4, 7, 16, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox.open {
  display: flex;
  animation: modal-fade 0.2s ease both;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-m);
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  margin-top: -23px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(10, 14, 28, 0.6);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.lightbox .lb-prev {
  left: 16px;
}
.lightbox .lb-next {
  right: 16px;
}
.lightbox .lb-close {
  top: 16px;
  right: 16px;
  margin-top: 0;
}
@media (max-width: 900px) {
  .quest-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 560px) {
  .quest-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* ---------- кнопка предоплаты после заявки ---------- */
.pay-box {
  margin-top: 18px;
}
.pay-box[hidden] {
  display: none;
}
