/* ---------- шрифты ---------- */
/* Шрифты лежат на самом сайте (public/fonts), а не подгружаются с fonts.googleapis.com / fonts.gstatic.com:
   каждый чужой домен — это ещё одно соединение с шифрованием (у нас на это уходило по ~0,5 с), и первая
   отрисовка ждала чужой стиль. Файлы те же, что отдаёт Google Fonts (подмножества cyrillic и latin;
   Oswald и Manrope — переменные, один файл на все начертания; лицензия SIL OFL 1.1). Какие из них
   подгрузить заранее, указано в views/site/_head.ejs. */
/* IBM Plex Mono, cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* IBM Plex Mono, cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-400-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono, cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* IBM Plex Mono, cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-500-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* IBM Plex Mono, cyrillic-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* IBM Plex Mono, cyrillic */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* IBM Plex Mono, latin-ext */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* IBM Plex Mono, latin */
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(fonts/ibm-plex-mono-600-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Manrope, cyrillic-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Manrope, cyrillic */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Manrope, latin-ext */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Manrope, latin */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/manrope-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Oswald, cyrillic-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic-ext.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* Oswald, cyrillic */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/oswald-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Oswald, latin-ext */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/oswald-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Oswald, latin */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(fonts/oswald-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC,
    U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #e6e9f2;
  --bg-glow-a: rgba(154, 178, 242, 0.28);
  --bg-glow-b: rgba(244, 186, 168, 0.2);
  --surface: #f5f6fb;
  --surface-2: #dce2f0;
  --surface-3: #d0d8eb;
  --line: rgba(24, 36, 68, 0.11);
  --line-strong: rgba(24, 36, 68, 0.2);
  --ink: #131b2e;
  --ink-dim: #3d4a67;
  --muted: #606d88;
  --accent: #2f5cf6;
  --accent-ink: #ffffff;
  --accent-dim: #d6e0fa;
  --accent-glow: rgba(47, 92, 246, 0.32);
  --ember: #ff6a3d;
  --ember-ink: #2a1206;
  --ember-dim: #fbe0d3;
  --shadow: 0 20px 46px -22px rgba(16, 24, 55, 0.28);
  --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: #0d1324;
    --bg-glow-a: rgba(74, 114, 236, 0.14);
    --bg-glow-b: rgba(132, 86, 224, 0.11);
    --surface: #141c31;
    --surface-2: #1a243e;
    --surface-3: #222e4e;
    --line: rgba(226, 233, 250, 0.11);
    --line-strong: rgba(226, 233, 250, 0.21);
    --ink: #eef2fb;
    --ink-dim: #c1cbe4;
    --muted: #8b98bc;
    --accent: #5c86ff;
    --accent-ink: #071230;
    --accent-dim: #1e2e58;
    --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: #0d1324;
  --bg-glow-a: rgba(74, 114, 236, 0.14);
  --bg-glow-b: rgba(132, 86, 224, 0.11);
  --surface: #141c31;
  --surface-2: #1a243e;
  --surface-3: #222e4e;
  --line: rgba(226, 233, 250, 0.11);
  --line-strong: rgba(226, 233, 250, 0.21);
  --ink: #eef2fb;
  --ink-dim: #c1cbe4;
  --muted: #8b98bc;
  --accent: #5c86ff;
  --accent-ink: #071230;
  --accent-dim: #1e2e58;
  --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;
}
html {
  background-color: var(--bg);
}
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 12% 48%, var(--bg-glow-a), transparent 44%),
    radial-gradient(circle at 88% 74%, var(--bg-glow-b), transparent 46%);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html.theme-switching,
html.theme-switching *,
html.theme-switching *::before,
html.theme-switching *::after {
  transition: none !important;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
::view-transition-old(root) {
  z-index: 1;
}
::view-transition-new(root) {
  z-index: 9999;
}
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;
  will-change: transform;
}
.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%);
  }
}
/* Глитч на словах бегущей строки: большую часть времени текст чистый, раз в 1,4 с короткая
   вспышка — слово дёргается, а два цветных «призрака» (::before/::after) разъезжаются полосами.
   Вспышку запускает site.js: по кругу ставит .ticker[data-burst] = 1, 2, 3, и анимация играется
   у каждой третьей группы слов по очереди, чтобы строка не мигала вся разом. Раньше у каждого
   слова вечно крутились три анимации (на широком экране до 72 штук, часть — на clip-path, то есть
   в основном потоке): слабое устройство тратило кадры, даже когда строка была за экраном. */
.glitch {
  position: relative;
  display: inline-block;
  font-weight: inherit;
}
.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;
}
.glitch::after {
  color: #00f0ff;
}
.ticker[data-burst='1'] span:nth-child(3n + 1) .glitch,
.ticker[data-burst='2'] span:nth-child(3n + 2) .glitch,
.ticker[data-burst='3'] span:nth-child(3n) .glitch {
  animation: glitch-shake 0.34s steps(1, end);
}
.ticker[data-burst='1'] span:nth-child(3n + 1) .glitch::before,
.ticker[data-burst='2'] span:nth-child(3n + 2) .glitch::before,
.ticker[data-burst='3'] span:nth-child(3n) .glitch::before {
  animation: glitch-a 0.34s steps(1, end);
}
.ticker[data-burst='1'] span:nth-child(3n + 1) .glitch::after,
.ticker[data-burst='2'] span:nth-child(3n + 2) .glitch::after,
.ticker[data-burst='3'] span:nth-child(3n) .glitch::after {
  animation: glitch-b 0.34s steps(1, end);
}
@keyframes glitch-shake {
  0% {
    transform: translateX(-2px) skewX(-8deg);
  }
  25% {
    transform: translateX(3px) skewX(6deg);
  }
  50% {
    transform: translateX(-1px);
  }
  75% {
    transform: translateX(2px) skewX(-4deg);
  }
  100% {
    transform: none;
  }
}
@keyframes glitch-a {
  0% {
    opacity: 0.9;
    transform: translate(-4px, -1px);
    clip-path: inset(10% 0 58% 0);
  }
  25% {
    opacity: 0.9;
    transform: translate(3px, 1px);
    clip-path: inset(62% 0 8% 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(-3px, 0);
    clip-path: inset(34% 0 36% 0);
  }
  75% {
    opacity: 0.9;
    transform: translate(4px, -1px);
    clip-path: inset(0 0 72% 0);
  }
  100% {
    opacity: 0;
    transform: none;
    clip-path: inset(0 0 0 0);
  }
}
@keyframes glitch-b {
  0% {
    opacity: 0.9;
    transform: translate(4px, 1px);
    clip-path: inset(55% 0 14% 0);
  }
  25% {
    opacity: 0.9;
    transform: translate(-3px, -1px);
    clip-path: inset(6% 0 66% 0);
  }
  50% {
    opacity: 0.9;
    transform: translate(3px, 1px);
    clip-path: inset(70% 0 4% 0);
  }
  75% {
    opacity: 0.9;
    transform: translate(-4px, 0);
    clip-path: inset(28% 0 40% 0);
  }
  100% {
    opacity: 0;
    transform: none;
    clip-path: inset(0 0 0 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:
    border-color 0.2s ease,
    color 0.2s ease,
    background 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[data-photos] {
  background: #070b14;
}
.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.plate[data-photos] img.plate-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition:
    transform 0.55s ease,
    opacity 0.45s ease;
}
.plate[data-photos] img.plate-layer.is-front {
  opacity: 1;
}
.card:hover .plate img,
.panel:hover .plate img {
  transform: scale(1.06);
}
.plate[data-photos]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(6, 10, 22, 0.58);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.38s ease;
}
.plate[data-photos].is-fading::before {
  opacity: 1;
  transition: opacity 0.2s ease;
}
.plate::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 10, 22, 0.75));
}
.plate-dots {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 10px;
  z-index: 3;
  display: flex;
  gap: 5px;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.25s ease;
}
.card:hover .plate-dots,
.panel:hover .plate-dots {
  opacity: 1;
}
.plate-dots i {
  flex: 1;
  max-width: 32px;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.42);
  transition: background 0.3s ease;
}
.plate-dots i.on {
  background: #ffffff;
}
.plate .catchip {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  /* Без backdrop-filter: на каждой карточке он отдельный проход размытия по движущейся
     при прокрутке картинке; на крошечной плашке размытие незаметно, вместо него чуть плотнее фон. */
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  color: var(--ink);
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
}
.plate .catchip svg {
  width: 12px;
  height: 12px;
  color: var(--accent);
}
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  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 sight-lost-lite {
  0%,
  56% {
    filter: none;
    transform: scale(1);
  }
  64%,
  86% {
    filter: 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: grid;
  gap: 16px;
  align-items: 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)));
}
/* Слайды лежат в одной клетке сетки: высота открытки — по самому длинному, при смене
   скидки ничего не прыгает. */
.promo-stage {
  display: grid;
}
.promo-slide {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    visibility 0s linear 0.25s;
}
.promo-slide.active {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}
.discount-box.has-list {
  grid-template-columns: minmax(0, 1fr) 128px;
  align-items: stretch;
}
.promo-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
  border-left: 1px dashed color-mix(in srgb, var(--ember) 40%, transparent);
}
.promo-list-title {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.promo-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--ink-dim);
  font: inherit;
  font-size: 0.76rem;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
}
.promo-tab b {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--ember);
}
.promo-tab:hover,
.promo-tab:focus-visible,
.promo-tab.active {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--ember) 60%, transparent);
  background: color-mix(in srgb, var(--ember-dim) 60%, var(--surface));
}
.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;
}
.social-note {
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--muted);
  max-width: 44ch;
}

.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;
  /* Перекомпоновка внутри окна не задевает страницу под ним; прокрутка не «протекает» на страницу. */
  contain: layout;
  overscroll-behavior: contain;
}
.modal-layer.open {
  /* Окно по центру обычной раскладкой, а не через top/left 50% + translate(-50%): при нечётной высоте
     такой сдвиг даёт дробные координаты — мутный текст и лишняя работа растеризации при прокрутке. */
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  /* Сплошная подложка вместо backdrop-filter: blur(). Размытие пересчитывалось на каждом кадре
     прокрутки окна по всей площади экрана — на телефонах и слабых ноутбуках это и было главным тормозом.
     Чуть темнее прежнего, чтобы страница позади так же отступала на второй план. */
  background: rgba(6, 10, 22, 0.66);
  /* По подложке страница не листается и не масштабируется жестами. */
  touch-action: none;
  animation: modal-fade 0.25s ease backwards;
}
.modal-panel {
  position: relative;
  flex: none;
  width: min(640px, 92vw);
  max-height: 88vh;
  /* dvh — высота видимой области: на телефоне 88vh считается от экрана без адресной строки и окно выезжало за край. */
  max-height: 88dvh;
  overflow-y: auto;
  /* Дотянули до края списка — прокрутка не передаётся странице позади. */
  overscroll-behavior: contain;
  /* Перерисовка и раскладка внутри окна изолированы от остальной страницы. */
  contain: layout paint;
  /* Двойной тап не масштабирует страницу: нажатия по датам и времени срабатывают сразу. */
  touch-action: manipulation;
  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);
  /* backwards, а не both: после показа анимация снимается, и окно с прокруткой не держит её «в работе». */
  animation: modal-in 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) backwards;
}
/* Появление: фон проявляется, окно поднимается и чуть увеличивается. Закрытие — то же в обратную сторону (класс closing ставит site.js). */
@keyframes modal-fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes modal-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(8px) 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;
}
/* Окно записи: способ оплаты и промокод. */
.field .field-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.pay-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.field .pay-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface-2);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ink);
}
.field .pay-option input {
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: var(--accent);
}
.field .pay-option:has(input:checked) {
  border-color: var(--accent);
}
.promo-row {
  display: flex;
  gap: 8px;
}
.promo-row input {
  flex: 1;
  min-width: 0;
  text-transform: uppercase;
}
.promo-row .btn {
  flex: none;
  padding: 10px 16px;
}
.promo-msg {
  font-size: 0.8rem;
  color: var(--accent);
}
.promo-msg.bad {
  color: var(--ember);
}
.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;
  }
  /* На узком экране список скидок — строкой кнопок под открыткой. */
  .discount-box.has-list {
    grid-template-columns: 1fr;
  }
  .promo-list {
    flex-direction: row;
    flex-wrap: wrap;
    padding: 12px 0 0;
    border-left: none;
    border-top: 1px dashed color-mix(in srgb, var(--ember) 40%, transparent);
  }
  .promo-list-title {
    width: 100%;
  }
  .promo-tab {
    width: auto;
  }
  .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) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  /* Декоративные бесконечные анимации выключаем совсем: бегущая строка, глаз «Морфеуса», подарок, метка на карте. */
  .ticker-track,
  .eye-wrap img,
  .eye-wrap .echo,
  .eye .eye-ball,
  .eye .pupil,
  .eye .slash,
  .discount-box .gift,
  .map-fallback .pin {
    animation: none;
  }
}

/* ---------- 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;
  }
}

/* ---------- анимации на слабых устройствах ---------- */
/* Бесконечные анимации (глаз «Морфеуса», бегущая строка, подарок на странице цен) стоят на паузе,
   пока блок за экраном: site.js ставит ему .anim-off. Иначе они весь день отнимают кадры у прокрутки. */
.anim-off,
.anim-off *,
.anim-off *::before,
.anim-off *::after {
  animation-play-state: paused !important;
}
/* И пока открыто окно записи (site.js ставит на <html> класс modal-open): страница под ним скрыта за
   подложкой, но её анимации продолжали бы грузить кадры, пока окно листают. Через класс, а не через
   :has() — на старых телефонах :has() нет, и пауза там не срабатывала. */
html.modal-open :is(.eye-wrap, .ticker, .discount-box, .map-fallback),
html.modal-open :is(.eye-wrap, .ticker, .discount-box, .map-fallback) *,
html.modal-open :is(.eye-wrap, .ticker, .discount-box, .map-fallback) *::before,
html.modal-open :is(.eye-wrap, .ticker, .discount-box, .map-fallback) *::after {
  animation-play-state: paused !important;
}
/* Липкая шапка с размытием фона под окном записи: окно перекрывает её, и пока его листают, размытие
   шапки пересчитывалось бы заново. Под подложкой разницы не видно. */
html.modal-open header {
  backdrop-filter: none;
}
/* Лёгкий режим: телефоны, планшеты, узкие окна. Дорогие эффекты заменены дешёвыми — на широком экране с мышью всё как было. */
@media (max-width: 900px), (hover: none), (prefers-reduced-transparency: reduce) {
  /* Шапка липкая: размытие того, что едет под ней, пересчитывалось бы на каждом кадре прокрутки. */
  header {
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: none;
  }
  /* Глаз «Морфеуса»: картинка темнеет без размытия, у значка нет тени-фильтра. */
  .eye-wrap img {
    animation-name: sight-lost-lite;
  }
  .eye-wrap .eye {
    filter: none;
  }
  .map-card iframe {
    filter: none;
  }
}
/* На сенсорном экране :hover «залипает» после нажатия: карточка и кнопка записи подпрыгивали и
   разворачивались ровно в тот момент, когда открывается окно записи. */
@media (hover: none) {
  .card:hover,
  .card:nth-child(even):hover {
    transform: none;
    box-shadow: 0 1px 0 var(--line);
  }
  .panel:hover {
    transform: none;
    box-shadow: none;
  }
  .card:hover .plate img,
  .panel:hover .plate img,
  .quest-shot:hover img {
    transform: none;
  }
  .plate-dots {
    display: none;
  }
  .btn:hover,
  .book-btn:hover {
    transform: none;
    box-shadow: none;
  }
}

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

/* ---------- комнаты отдыха ---------- */
.rooms {
  padding-bottom: 20px;
}
.rooms .block-title {
  margin-top: 8px;
}
.rooms-sub {
  color: var(--ink-dim);
  max-width: 640px;
  margin: -6px 0 18px;
}
.room-plate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-dim), var(--surface-2));
}
.room-plate svg {
  width: 72px;
  height: 72px;
  opacity: 0.8;
}
.room-card .price {
  color: var(--muted);
  font-size: 0.8rem;
}

/* Доп. опция в окне записи: комната к квесту или квест к комнате. */
.extra-block {
  margin: 4px 0 14px;
}
.extra-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.extra-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.extra-opt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.86rem;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.extra-opt small {
  color: var(--muted);
  font-size: 0.74rem;
}
.extra-opt:hover:not(:disabled) {
  border-color: var(--accent);
}
.extra-opt.selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}
.extra-opt:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
/* Из чего сложился итог: строки «что — сколько» под плашкой с ценой. */
.price-break {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 16px;
  padding: 0 16px;
  font-size: 0.84rem;
  color: var(--ink-dim);
}
.price-break div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.price-break span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.price-break b {
  flex: none;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--ink);
}
.extra-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}

/* ---------- Полноразмерное видео на карточке при наведении ---------- */
/* Видео-слой (z-index: 2) плавно накрывает всю карточку целиком поверх фото и фона текста одним
   слоем — так на стыке фото и текста не возникает полосы при переходе. Бейджи и текст лежат выше (z-index: 3). */
.card[data-video],
.panel[data-video] {
  position: relative;
  isolation: isolate;
}
.card[data-video] .card-body,
.panel[data-video] .panel-body {
  position: relative;
  z-index: 3;
  transition: color 0.35s ease;
}
.video-pill {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(8, 12, 24, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.video-pill svg {
  width: 14px;
  height: 14px;
  margin-left: 1px;
}
.card-video-bg {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  background: #060a14;
  transition: opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  transition: transform 0.75s ease;
}
.card-video-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 10, 22, 0.14) 0%, rgba(6, 10, 22, 0.36) 46%, rgba(6, 10, 22, 0.9) 100%);
}
.card.is-video-on,
.panel.is-video-on {
  border-color: rgba(255, 255, 255, 0.22);
}
.card.is-video-on .card-video-bg,
.panel.is-video-on .card-video-bg {
  opacity: 1;
}
.card.is-video-on .card-video-bg video,
.panel.is-video-on .card-video-bg video {
  transform: scale(1);
}
.card.is-video-on .video-pill,
.panel.is-video-on .video-pill {
  opacity: 0;
}
.card.is-video-on .card-body,
.panel.is-video-on .panel-body {
  color: #ffffff;
}
.card.is-video-on h3 a,
.panel.is-video-on h3 a,
.card.is-video-on .foot .price b,
.panel.is-video-on .foot .price {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}
.card.is-video-on .tagline,
.panel.is-video-on p,
.card.is-video-on .meta-row,
.panel.is-video-on .meta-row,
.card.is-video-on .foot .price {
  color: rgba(236, 241, 255, 0.86);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.65);
}
.card.is-video-on .foot,
.panel.is-video-on .foot {
  border-top-color: rgba(255, 255, 255, 0.2);
}
.card.is-video-on .book-btn,
.panel.is-video-on .book-btn {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.42);
  color: #ffffff;
  backdrop-filter: blur(6px);
}
.card.is-video-on .book-btn:hover,
.panel.is-video-on .book-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
@media (hover: none) {
  .video-pill {
    display: none;
  }
}

/* ---------- «Собственная серия» на весь фон + плавные fade-переходы между секциями ---------- */
.spot-full {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-top: 0;
  border-bottom: 0;
  padding-block: clamp(46px, 6.5vw, 88px) clamp(74px, 9vw, 128px);
}
.spot-full .spot-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #060914;
  /* Растворяем альфа-канал самого фото-фона в ноль к нижнему краю, чтобы ниже проступал
     точный фон страницы (включая радиальные переливы) без малейшего стыка. */
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.72) 74%,
    rgba(0, 0, 0, 0.32) 87%,
    rgba(0, 0, 0, 0.08) 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 62%,
    rgba(0, 0, 0, 0.72) 74%,
    rgba(0, 0, 0, 0.32) 87%,
    rgba(0, 0, 0, 0.08) 95%,
    transparent 100%
  );
}
.spot-full .spot-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  animation: sight-lost-lite 6s ease-in-out infinite;
}
.spot-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.spot-full.anim-off .spot-bg img,
.spot-full.anim-off .eye-wrap * {
  animation-play-state: paused;
}
.spot-full .spot-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 74% 46%,
      rgba(47, 92, 246, 0.22) 0%,
      rgba(6, 10, 22, 0.56) 55%,
      rgba(6, 10, 22, 0.88) 100%
    ),
    linear-gradient(90deg, rgba(6, 10, 22, 0.88) 0%, rgba(6, 10, 22, 0.62) 55%, rgba(6, 10, 22, 0.45) 100%);
}
.spot-full .spot-grid {
  position: relative;
  z-index: 3;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
}
.spot-full .eyebrow {
  color: #8aa8ff;
}
.spot-full .spot-copy h2 {
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}
.spot-full .spot-copy p {
  color: rgba(232, 238, 252, 0.88);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.spot-full .spot-stats > div {
  border-color: rgba(255, 255, 255, 0.16);
}
.spot-full .spot-stats b {
  color: #ffffff;
}
.spot-full .spot-stats span {
  color: rgba(212, 222, 245, 0.78);
}
.spot-full .eye-stage {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
  aspect-ratio: auto;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.spot-full .eye-stage::after {
  display: none;
}

/* Плавные fade-переходы между остальными блоками главной вместо резких линий. */
.catalog {
  position: relative;
  padding-top: clamp(12px, 2vw, 24px);
}
.rooms {
  position: relative;
  padding-top: clamp(32px, 4.5vw, 52px);
  padding-bottom: clamp(36px, 5vw, 56px);
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    color-mix(in srgb, var(--surface-2) 68%, var(--bg)) 22%,
    color-mix(in srgb, var(--surface-2) 68%, var(--bg)) 78%,
    var(--bg) 100%
  );
}
.about {
  position: relative;
  padding-top: clamp(28px, 4vw, 48px);
}
.about-grid {
  border-top: 0;
  padding-top: clamp(16px, 2.5vw, 28px);
}
.ticker {
  position: relative;
  border-top: 0;
}
.ticker::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -32px;
  height: 32px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
}
@media (max-width: 900px) {
  .spot-full .spot-grid {
    grid-template-columns: 1fr;
  }
  .spot-full .eye-stage {
    order: -1;
    min-height: 150px;
  }
}

/* ---------- Десктоп-версия (>= 1024px): широкая сетка, прозрачная размытая шапка и волны на всю страницу ---------- */
@media (min-width: 1024px) {
  :root {
    --maxw: 1360px;
  }
  .wrap {
    padding-inline: 32px;
  }
  section,
  .chips {
    scroll-margin-top: 84px;
  }

  /* Верхнее меню остаётся наверху, но становится стеклянным с мягким fade/blur вниз без резкой границы —
     сквозь него видно фон «Морфеуса» и проходящие волны. */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: transparent;
    backdrop-filter: none;
    border-bottom: 0;
    transition: color 0.3s ease;
  }
  header::before {
    content: '';
    position: absolute;
    inset: 0 0 -24px 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg) 82%, transparent) 0%,
      color-mix(in srgb, var(--bg) 48%, transparent) 58%,
      transparent 100%
    );
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
    transition: background 0.3s ease;
  }
  html.modal-open header::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav {
    padding-block: 14px;
    gap: 20px;
  }
  .navlinks {
    gap: 28px;
  }

  /* Над тёмным героем («Морфеус» на главной или .page-hero на внутренних страницах) — мягкий fade без размытия,
     чтобы тонкие круги волн и фото-фон чётко проходили сквозь шапку до самого верхнего края. */
  body:has(.spot-full, .page-hero) header:not(.is-scrolled)::before {
    background: linear-gradient(180deg, rgba(6, 9, 20, 0.36) 0%, rgba(6, 9, 20, 0.12) 64%, transparent 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    mask-image: none;
    -webkit-mask-image: none;
  }
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .navlinks a,
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .phone {
    color: rgba(232, 238, 252, 0.82);
  }
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .navlinks a:hover,
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .navlinks a.current,
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .phone:hover {
    color: #ffffff;
  }
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .icon-btn {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #eef2fb;
  }
  body:has(.spot-full, .page-hero) header:not(.is-scrolled) .icon-btn:hover {
    border-color: #8aa8ff;
    color: #ffffff;
  }

  /* Страницам без верхнего hero (правила, политика) даём отступ под фиксированную шапку. */
  body:not(:has(.spot-full, .page-hero)) main {
    padding-top: 74px;
  }
  .spot-full {
    overflow: visible;
    min-height: clamp(540px, 72vh, 720px);
    display: flex;
    align-items: center;
    padding-block: clamp(112px, 11vw, 152px) clamp(92px, 10vw, 138px);
  }
  .spot-full .spot-waves {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2;
  }
  .spot-full .spot-grid {
    width: 100%;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
  .spot-full .spot-copy h2 {
    font-size: clamp(2.6rem, 4.1vw, 3.65rem);
  }
  .spot-full .spot-copy p {
    font-size: 1.05rem;
    max-width: 50ch;
  }
  .spot-full .spot-stats {
    gap: 36px;
  }
  .spot-full .spot-stats b {
    font-size: 2rem;
  }
  .spot-full .eye-stage {
    min-height: 300px;
  }
  .spot-full .eye-stage .eye {
    width: 122px;
    height: 122px;
  }

  /* Контент секций лежит поверх полноэкранного слоя волн (z-index: 3), а фоны секций — под волнами. */
  .catalog .wrap,
  .rooms .wrap,
  .about .wrap,
  .ticker,
  footer {
    position: relative;
    z-index: 3;
  }
  .catalog {
    padding-top: clamp(24px, 3vw, 40px);
  }
  .catalog-head h1 {
    font-size: clamp(2.1rem, 3.2vw, 2.9rem);
  }
  .grid {
    gap: 24px;
  }
  .rooms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .card {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }
  .chip {
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(8px);
  }
  .chip.active {
    background: var(--accent);
    backdrop-filter: none;
  }
  .trust span {
    background: color-mix(in srgb, var(--surface) 78%, transparent);
    backdrop-filter: blur(8px);
  }
  .rooms {
    background: linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--surface-2) 55%, transparent) 22%,
      color-mix(in srgb, var(--surface-2) 55%, transparent) 78%,
      transparent 100%
    );
  }
  .ticker::before {
    background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--bg) 55%, transparent));
  }
  footer {
    border-top: 0;
    background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--surface) 55%, transparent) 100%);
  }
}
@media (min-width: 1520px) {
  :root {
    --maxw: 1440px;
  }
}

/* ---------- Внутренние страницы: полноширинный hero и единый стиль с главной ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: transparent;
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px);
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #060914;
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.72) 72%,
    rgba(0, 0, 0, 0.3) 86%,
    rgba(0, 0, 0, 0.08) 95%,
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 58%,
    rgba(0, 0, 0, 0.72) 72%,
    rgba(0, 0, 0, 0.3) 86%,
    rgba(0, 0, 0, 0.08) 95%,
    transparent 100%
  );
}
.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.page-hero-bg.is-blur img {
  filter: blur(18px) saturate(1.15);
  transform: scale(1.12);
}
.page-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 76% 36%,
      rgba(47, 92, 246, 0.22) 0%,
      rgba(6, 10, 22, 0.62) 55%,
      rgba(6, 10, 22, 0.9) 100%
    ),
    linear-gradient(90deg, rgba(6, 10, 22, 0.9) 0%, rgba(6, 10, 22, 0.68) 58%, rgba(6, 10, 22, 0.48) 100%);
}
.page-hero-in {
  position: relative;
  z-index: 2;
}
.page-hero .eyebrow {
  color: #8aa8ff;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
.page-hero .sub {
  color: rgba(232, 238, 252, 0.86);
  max-width: 58ch;
  margin-top: 14px;
  font-size: 1.02rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin-top: 26px;
}
.hero-meta > div b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.05;
  color: #ffffff;
}
.hero-meta > div span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(212, 222, 245, 0.78);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.page-hero .btn.ghost {
  color: #eef2fb;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}
.page-hero .btn.ghost:hover {
  border-color: #8aa8ff;
  color: #ffffff;
  background: rgba(92, 134, 255, 0.22);
}
.page-hero + .page {
  padding-top: clamp(12px, 2vw, 24px);
}

/* Форматы для компаний */
.format {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.format:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: var(--shadow);
}

/* Цены: таблица с миниатюрами и фильтром */
.price-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px 24px;
  flex-wrap: wrap;
  margin: 44px 0 18px;
}
.price-bar .block-title {
  margin: 0;
}
.price-bar .chips {
  margin-bottom: 0;
}
.price-table tbody tr {
  transition: background 0.18s ease;
}
.price-table tbody tr[hidden] {
  display: none;
}
.price-table tbody tr:hover {
  background: color-mix(in srgb, var(--accent) 5%, transparent);
}
.pt-quest {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pt-thumb {
  width: 56px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex: none;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  color: var(--accent);
}
.pt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pt-thumb svg {
  width: 20px;
  height: 20px;
}
.pt-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.pt-cat {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Отзывы: стеклянный виджет рейтинга в hero + выразительные карточки */
.hero-split {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
}
.rating-hero {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 24px;
  border-radius: var(--radius-m);
  background: rgba(14, 20, 38, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
  color: #ffffff;
}
.rating-hero b {
  font-family: var(--font-display);
  font-size: 2.8rem;
  line-height: 1;
  color: #8aa8ff;
}
.rating-hero .stars {
  color: #ffd166;
  letter-spacing: 3px;
  font-size: 1rem;
  margin-bottom: 4px;
}
.rating-hero span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(226, 234, 252, 0.8);
}
.rev-card {
  position: relative;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.rev-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: var(--shadow);
}
.rev-card::before {
  content: '“';
  position: absolute;
  top: 10px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 3.4rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.14;
  pointer-events: none;
}
.rev-card p {
  flex: 1;
}
.rev-who-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.rev-ava {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  flex: none;
}

/* Контакты: карточка с инфо, крупные кнопки соцсетей и высокая карта */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-card .info-list {
  margin-top: 0;
}
.contact-card .info-item svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  margin-top: 0;
}
.social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}
.social-pill svg {
  width: 16px;
  height: 16px;
  color: var(--accent);
  flex: none;
}
.social-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.contact-grid-tall {
  align-items: stretch;
}
.contact-grid-tall .map-card {
  aspect-ratio: auto;
  min-height: 420px;
  height: 100%;
}
:root[data-theme='dark'] .map-card iframe {
  filter: invert(0.9) hue-rotate(180deg) brightness(0.92) contrast(0.92);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .map-card iframe {
    filter: invert(0.9) hue-rotate(180deg) brightness(0.92) contrast(0.92);
  }
}

/* Страница квеста: светлая типографика поверх размытого фото-героя и видео-превью */
.quest-page-hero .crumbs {
  color: rgba(212, 222, 245, 0.72);
}
.quest-page-hero .crumbs a {
  color: rgba(232, 238, 252, 0.88);
}
.quest-page-hero .crumbs a:hover {
  color: #ffffff;
}
.quest-page-hero .quest-info .lede {
  color: rgba(232, 238, 252, 0.88);
}
.quest-page-hero .quest-facts span {
  color: rgba(212, 222, 245, 0.72);
}
.quest-page-hero .quest-facts b {
  color: #ffffff;
}
.quest-page-hero .price-list li {
  border-bottom-color: rgba(255, 255, 255, 0.16);
}
.quest-page-hero .price-list li b {
  color: #ffffff;
}
.quest-page-hero .price-list li em {
  color: #8aa8ff;
}
.quest-page-hero .quest-note {
  color: rgba(212, 222, 245, 0.78);
}
.quest-photo video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (min-width: 1024px) {
  .page-hero {
    padding-block: clamp(114px, 10.5vw, 148px) clamp(68px, 7.5vw, 104px);
  }
  .quest-page-hero {
    padding-bottom: clamp(56px, 6vw, 88px);
  }
  .price-panel,
  .table-scroll,
  .format,
  .rev-card,
  .contact-card,
  .panel {
    background: color-mix(in srgb, var(--surface) 92%, transparent);
  }
  .rev-grid.has-featured .rev-card:first-child {
    grid-column: span 2;
    padding: 28px 30px;
  }
  .rev-grid.has-featured .rev-card:first-child p {
    font-size: 1.06rem;
    line-height: 1.65;
  }
}
@media (max-width: 760px) {
  .pt-thumb {
    width: 44px;
    height: 32px;
  }
}
