/* ПУЛЬС — клубный оператор. Оформление «Ритм».
   Цвета, шрифты и размеры меняются в блоке :root */

@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/manrope-cyrillic-700-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/manrope-latin-700-normal.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; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/manrope-cyrillic-800-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/manrope-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-cyrillic-400-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/inter-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/inter-cyrillic-500-normal.woff2) format('woff2');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/inter-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+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 {
  /* палитра из макета «Ритм» */
  --night: #05050B;
  --surface: #0A0A15;
  --ink: #F5F7FA;
  --ink-2: #BEC7D6;
  --muted: #7D879B;
  --line: #1C2433;
  --line-2: rgba(190, 199, 214, 0.14);
  --err: #FF4D6D;

  /* градиент логотипа */
  --g1: #FB0DC3;
  --g2: #6724F2;
  --g3: #2A99FC;
  --g4: #4FF6FD;
  --grad: linear-gradient(90deg, var(--g1) 0%, var(--g2) 45%, var(--g3) 75%, var(--g4) 100%);
  --grad-btn: linear-gradient(90deg, var(--g1) 0%, #B04CF0 45%, var(--g4) 100%);
  --neon: var(--g1);
  --neon-glow: rgba(251, 13, 195, 0.45);

  --display: 'Manrope', 'Segoe UI', Arial, sans-serif;
  --text: 'Inter', 'Segoe UI', Roboto, Arial, sans-serif;

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --top-h: 104px;
  --hud-h: 64px;
  --hud-gap: 14px;
  --r: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--night);
  scroll-behavior: smooth;
  scroll-padding-top: var(--top-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--hud-h) + var(--hud-gap) * 2 + env(safe-area-inset-bottom, 0px));
  overflow-x: hidden;
}

img, svg, canvas { display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }

:focus-visible { outline: 2px solid var(--g4); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--night); padding: 10px 16px; border-radius: 10px;
  font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.sr, .hp {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Типографика ---------- */

.h2 {
  font: 800 clamp(1.9rem, 4vw, 3.1rem)/1.1 var(--display);
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  max-width: 22ch;
  text-wrap: balance;
}
.h2 .block { display: block; }

.h3 {
  font: 700 clamp(1.1rem, 1.6vw, 1.3rem)/1.3 var(--display);
  margin: 0 0 0.5em;
}

.lead { font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 58ch; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}

.verdict {
  font: 800 clamp(1.25rem, 2.3vw, 1.75rem)/1.35 var(--display);
  letter-spacing: -0.01em;
  max-width: 34ch;
  margin: 1.6em 0 1.2em;
  text-wrap: balance;
}

/* метка времени у блока */
.chip {
  display: inline-flex; align-items: center;
  margin-bottom: 18px;
  padding: 5px 13px;
  border: 1px solid rgba(190, 199, 214, 0.35);
  border-radius: 10px;
  font: 500 0.95rem/1.2 var(--text);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 54px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  font: 500 1rem/1.2 var(--text);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s, background 0.2s;
}
.ico-arrow { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.btn:hover .ico-arrow { transform: translateX(3px); }

.btn--grad {
  background: var(--grad-btn);
  color: #0B0420;
  box-shadow: 0 10px 34px -8px rgba(251, 13, 195, 0.55), 0 10px 34px -10px rgba(79, 246, 253, 0.45);
}
.btn--grad:hover { filter: brightness(1.08); transform: translateY(-1px); }

.btn--outline {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--night), var(--night)) padding-box, var(--grad-btn) border-box;
  color: var(--ink);
}
.btn--outline:hover { background: linear-gradient(#140A22, #08131F) padding-box, var(--grad-btn) border-box; }

.btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }

.btn--small { min-height: 44px; padding: 0 22px; font-size: 0.95rem; gap: 0; }

/* ---------- Карточки ---------- */

.card {
  background: linear-gradient(180deg, rgba(103, 36, 242, 0.09), rgba(5, 5, 11, 0) 65%), var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
}

/* ---------- Шапка ---------- */

.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 40;
  height: var(--top-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: env(safe-area-inset-top, 0px) var(--pad) 0;
  background: linear-gradient(to bottom, rgba(5, 5, 11, 0.94) 55%, rgba(5, 5, 11, 0));
}

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; }
.brand__logo { height: 88px; width: auto; margin: 4px 0 0 -10px; }

/* ---------- 22:00 Первый экран ---------- */

.s { position: relative; padding: clamp(84px, 12vh, 140px) 0; }

.s-hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--top-h) + 24px);
  padding-bottom: 48px;
  overflow: hidden;
}
.hero__in { position: relative; z-index: 2; width: 100%; }

.hero__title {
  font: 800 clamp(2.2rem, 5.6vw, 4.6rem)/1.04 var(--display);
  letter-spacing: -0.025em;
  margin: 0 0 22px;
  max-width: 14em;
}
.hero__title .line { display: block; }

.hero__lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 46ch; margin-bottom: 30px; }

.trust {
  list-style: none; margin: 30px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 0;
  font-size: 0.92rem; color: var(--ink-2);
}
.trust li + li::before { content: '•'; color: var(--muted); padding: 0 0.8em; }

.hero__eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 18px; }
.hero__eyebrow .chip { margin: 0; }
.eyebrow { font: 500 1rem/1.35 var(--text); color: var(--ink); }

/* кардиограмма первого экрана */
.hero__stage { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__pulse { position: absolute; inset: 0; width: 100%; height: 100%; }

/* мокрый пол: перспективная сетка и цветные отсветы */
.hero__floor {
  position: absolute; left: -10%; right: -10%; top: var(--base, 62%); bottom: -10%;
  background:
    radial-gradient(28% 40% at 70% 8%, rgba(251, 13, 195, 0.22), transparent 70%),
    radial-gradient(22% 40% at 86% 8%, rgba(42, 153, 252, 0.2), transparent 70%),
    radial-gradient(60% 60% at 75% 0%, rgba(103, 36, 242, 0.16), transparent 75%);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%);
          mask-image: linear-gradient(to bottom, transparent, #000 14%);
}
.hero__floor::before {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(190, 199, 214, 0.06) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(0deg, rgba(190, 199, 214, 0.05) 0 1px, transparent 1px 70px);
  transform: perspective(500px) rotateX(62deg); transform-origin: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, transparent 85%);
          mask-image: linear-gradient(to bottom, transparent, #000 20%, transparent 85%);
}

/* вертикальные световые полосы в глубине */
.hero__beams i {
  position: absolute; top: 4%; height: 62%; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--c, #6724F2) 45%, transparent);
  box-shadow: 0 0 14px var(--c, #6724F2);
  opacity: 0.35;
}
.hero__beams i:nth-child(1) { left: 66%; --c: #FB0DC3; opacity: 0.22; }
.hero__beams i:nth-child(2) { left: 91%; --c: #2A99FC; }
.hero__beams i:nth-child(3) { left: 96.5%; --c: #6724F2; height: 70%; }
.s-hero::before {
  /* глубина и дымка */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(45% 55% at 78% 45%, rgba(103, 36, 242, 0.16), transparent 70%),
    radial-gradient(30% 40% at 10% 20%, rgba(251, 13, 195, 0.06), transparent 70%);
}
.hero__lead, .trust { text-shadow: 0 0 14px var(--night), 0 0 4px var(--night); }
#heroCta { position: relative; z-index: 3; }
#heroCta.send { animation: send 0.5s ease-out; }
@keyframes send {
  0% { box-shadow: 0 0 0 0 rgba(251, 13, 195, 0.7), 0 10px 34px -8px rgba(251, 13, 195, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(251, 13, 195, 0), 0 10px 34px -8px rgba(251, 13, 195, 0.55); }
}

/* построчное появление заголовка в такт пульсу */
.js .hero__title .line { opacity: 0; transform: translateY(0.25em); transition: opacity 0.3s ease-out, transform 0.3s ease-out; }
.js .hero__title .line.on { opacity: 1; transform: none; }
.js .hero__rest { opacity: 0; transition: opacity 0.45s ease-out; }
.js body.hero-ready .hero__rest { opacity: 1; }

/* ---------- Неоновые сцены блоков ---------- */

.s > .wrap { position: relative; z-index: 2; }
.decor {
  position: absolute; z-index: 0; pointer-events: none;
  right: 0; width: min(44vw, 620px); height: auto;
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  opacity: 0.75;
  filter: drop-shadow(0 0 5px rgba(251, 13, 195, 0.55)) drop-shadow(0 0 16px rgba(103, 36, 242, 0.45));
}
.decor--door { top: 6%; width: min(36vw, 520px); }
/* живой монитор в «Кардиограмме» */
.decor--monitor {
  top: 2%; width: min(42vw, 580px); height: 210px;
  filter: none; opacity: 0.85;
  background:
    repeating-linear-gradient(90deg, rgba(190, 199, 214, 0.05) 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, rgba(190, 199, 214, 0.05) 0 1px, transparent 1px 28px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 90%, transparent);
}
.decor--monitor canvas { width: 100%; height: 100%; }

/* эквалайзер в «Сет-листе» */
.decor--eq {
  top: 9%; right: 4%; width: min(34vw, 460px); height: 230px;
  display: flex; align-items: flex-end; gap: 9px;
  filter: none; opacity: 0.8;
}
.decor--eq i {
  flex: 1; height: var(--h, 18%);
  background: linear-gradient(to top, #FB0DC3, #6724F2 55%, #2A99FC 80%, #4FF6FD) bottom / 100% 230px no-repeat;
  -webkit-mask-image: repeating-linear-gradient(to top, #000 0 7px, transparent 7px 10px);
          mask-image: repeating-linear-gradient(to top, #000 0 7px, transparent 7px 10px);
  transition: height 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.decor--eq.hit i { transition-duration: 0.09s; }
.decor--eq::after {
  content: ''; position: absolute; left: -10%; right: -10%; top: 100%; height: 50px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(251, 13, 195, 0.28), rgba(103, 36, 242, 0.1) 50%, transparent 75%);
}

/* лазеры над танцполом в форме заявки */
.decor--lasers { top: 0; right: 0; width: 100%; height: 100%; filter: none; opacity: 0.55; }
.lasers__fan, .lasers__src { position: absolute; top: 6%; right: 12%; }
.lasers__fan { width: 0; height: 0; animation: sweep 8s ease-in-out infinite alternate; }
.lasers__fan i {
  position: absolute; top: 0; left: -1px; width: 2px; height: 1200px;
  transform-origin: top center; transform: rotate(var(--a));
  background: linear-gradient(to bottom, var(--c), transparent 80%);
  box-shadow: 0 0 8px var(--c);
}
.lasers__fan i:nth-child(1) { --a: 14deg; --c: #FB0DC3; }
.lasers__fan i:nth-child(2) { --a: 22deg; --c: #6724F2; }
.lasers__fan i:nth-child(3) { --a: 30deg; --c: #2A99FC; }
.lasers__fan i:nth-child(4) { --a: 38deg; --c: #FB0DC3; }
.lasers__fan i:nth-child(5) { --a: 46deg; --c: #4FF6FD; }
.lasers__fan i:nth-child(6) { --a: 54deg; --c: #6724F2; }
.lasers__fan i:nth-child(7) { --a: 62deg; --c: #FB0DC3; }
.lasers__fan i:nth-child(8) { --a: 70deg; --c: #2A99FC; }
.lasers__fan i:nth-child(9) { --a: 78deg; --c: #6724F2; }
.lasers__src {
  width: 14px; height: 14px; margin: -7px -7px 0 0; border-radius: 50%;
  background: #fff; box-shadow: 0 0 12px 3px #FB0DC3, 0 0 34px 8px rgba(103, 36, 242, 0.8);
}
@keyframes sweep { from { transform: rotate(-12deg); } to { transform: rotate(14deg); } }
.s-face, .s-cardio, .s-set, .s-night, .s-form { overflow: hidden; }
.s-face::before, .s-cardio::before, .s-set::before, .s-night::before, .s-form::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 50% at 82% 35%, rgba(103, 36, 242, 0.14), transparent 70%);
}
.s-back::before {
  /* луч прожектора на сцене */
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(35% 45% at 50% 0%, rgba(251, 13, 195, 0.16), transparent 70%),
    radial-gradient(60% 40% at 50% 100%, rgba(103, 36, 242, 0.12), transparent 70%);
}

/* ---------- 23:00 Фейсконтроль ---------- */

.door {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin: clamp(24px, 3vw, 36px) 0 clamp(40px, 5vw, 64px);
  max-width: 900px;
}
.door__card { padding: 26px 26px 20px; }
.door__card p { color: var(--ink-2); margin: 0; }
.door__icon { display: inline-flex; margin-bottom: 16px; }
.door__icon svg { width: 34px; height: 34px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.door__card--in {
  border: 1px solid transparent;
  background: linear-gradient(180deg, rgba(103, 36, 242, 0.16), rgba(103, 36, 242, 0) 70%) padding-box,
              linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(140deg, var(--g1), var(--g2) 55%, rgba(42, 153, 252, 0.5)) border-box;
  box-shadow: 0 0 40px -12px rgba(103, 36, 242, 0.6);
}
.door__card--in .door__icon svg { stroke: url(#gi); }
.door__card--in .h3 { color: #E5A6FF; }
.door__card--out { border-color: rgba(255, 77, 109, 0.45); }
.door__card--out .door__icon svg { stroke: var(--err); }
.door__card--out .h3 { color: #FF8AA0; }

.ready { list-style: none; margin: 0; padding: 0; max-width: 64ch; }
.ready li { position: relative; padding: 10px 0 10px 36px; color: var(--ink-2); }
.ready li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1.5px solid transparent;
  background: linear-gradient(var(--night), var(--night)) padding-box, var(--grad) border-box;
}

/* ---------- 00:00 Кардиограмма ---------- */

.s-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.s-head .lead { margin-bottom: 0; }

.symptoms__count {
  margin: 0 0 4px; flex-shrink: 0;
  font: 500 0.95rem/1.4 var(--text); color: var(--muted);
  text-align: right; max-width: 15em;
}
.symptoms__count.has { color: var(--ink); }

.symptoms {
  list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.symptom {
  position: relative;
  width: 100%; height: 100%; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 22px;
  padding: 22px;
  text-align: left; color: var(--ink);
  font: 500 1rem/1.4 var(--text);
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: linear-gradient(180deg, rgba(103, 36, 242, 0.07), rgba(5, 5, 11, 0) 65%), var(--surface);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.25s, background 0.25s;
}
.symptom:hover { border-color: rgba(190, 199, 214, 0.35); }
.symptom__icon { width: 34px; height: 34px; fill: none; stroke: url(#gi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.symptom__check {
  position: absolute; top: 14px; right: 14px;
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--grad-btn);
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.2s, transform 0.25s;
}
.symptom__check svg { width: 16px; height: 16px; fill: none; stroke: #0B0420; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.symptom[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(180deg, rgba(251, 13, 195, 0.14), rgba(251, 13, 195, 0) 70%) padding-box,
              linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(140deg, var(--g1), var(--g2) 55%, var(--g3)) border-box;
  box-shadow: 0 0 34px -10px rgba(251, 13, 195, 0.65);
}
.symptom[aria-pressed="true"] .symptom__check { opacity: 1; transform: none; }

.cardio__end { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: clamp(36px, 4vw, 52px); }
.cardio__end .verdict { margin: 0 0 24px; }

/* ---------- 01:00 Сет-лист ---------- */

.tracks { list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 8px clamp(16px, 2.4vw, 32px); }
.tracks li { border-top: 1px solid var(--line-2); }
.tracks li:first-child { border-top: 0; }
.track {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(150px, 220px) 1fr 30px;
  align-items: center; gap: 10px 22px;
  padding: 16px 0;
  background: none; border: 0; color: inherit; font: inherit; text-align: left;
  cursor: pointer;
}
.track:hover .track__desc { color: var(--ink); }
.track__plus {
  position: relative; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line-2);
  transition: transform 0.25s, border-color 0.2s;
}
.track__plus::before, .track__plus::after {
  content: ''; position: absolute; left: 50%; top: 50%; background: var(--ink-2);
  width: 12px; height: 1.6px; margin: -0.8px 0 0 -6px;
}
.track__plus::after { transform: rotate(90deg); }
.track:hover .track__plus { border-color: rgba(190, 199, 214, 0.4); }
.track[aria-expanded="true"] .track__plus {
  transform: rotate(45deg); border-color: transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-btn) border-box;
}
.track__more { padding: 0 52px 20px 76px; animation: moreIn 0.3s ease-out; }
.track__more p { margin: 0; color: var(--ink-2); max-width: 64ch; }
@keyframes moreIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.track__no {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 11px;
  border: 1px solid var(--line-2);
  font: 700 0.9rem/1 var(--display); color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.track__name {
  font: 700 1.15rem/1.3 var(--display);
  background: linear-gradient(90deg, var(--g1), #B44CFF);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  justify-self: start;
}
.track__desc { color: var(--ink-2); }

/* ---------- 02:00 За кулисами ---------- */

.s-back { overflow: hidden; }

.curtain { display: none; }
.js .curtain {
  display: block;
  position: absolute; top: 0; bottom: 0; z-index: 5; width: 50.5%;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 5, 11, 0.6), rgba(5, 5, 11, 0) 18%, rgba(5, 5, 11, 0) 80%, rgba(5, 5, 11, 0.7)),
    repeating-linear-gradient(90deg, #160628 0, #3B0F5E 22px, #26093F 38px, #120420 56px, #160628 70px);
  will-change: transform;
}
.js .curtain--l { left: 0;  transform: translateX(calc(var(--open, 0) * -102%)); transition: transform 0.12s linear; box-shadow: inset -2px 0 0 rgba(251, 13, 195, 0.5), 12px 0 40px rgba(0, 0, 0, 0.6); }
.js .curtain--r { right: 0; transform: translateX(calc(var(--open, 0) * 102%)); transition: transform 0.12s linear; box-shadow: inset 2px 0 0 rgba(79, 246, 253, 0.5), -12px 0 40px rgba(0, 0, 0, 0.6); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: clamp(24px, 3vw, 36px) 0; }
.split__card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; }
.split__card p { color: var(--ink-2); margin: 0; }
.split__icon { flex-shrink: 0; width: 34px; height: 34px; fill: none; stroke: url(#gi); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.statement {
  margin: clamp(28px, 4vw, 44px) 0;
  padding: clamp(22px, 3vw, 32px);
  text-align: center;
  font: 800 clamp(1.25rem, 2.4vw, 1.8rem)/1.35 var(--display);
  letter-spacing: -0.01em;
  border: 1.5px solid transparent; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(103, 36, 242, 0.14), rgba(103, 36, 242, 0)) padding-box,
              linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box;
  box-shadow: 0 0 44px -14px rgba(103, 36, 242, 0.7);
  text-wrap: balance;
}

.steps__title { margin-top: 12px; }
.steps {
  position: relative;
  list-style: none; margin: 26px 0 0; padding: 0;
  counter-reset: step;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.steps::before {
  content: ''; position: absolute; left: 22px; right: calc(100% / 6 - 22px); top: 22px; height: 1.5px;
  background: var(--grad); opacity: 0.6;
}
.steps li { position: relative; counter-increment: step; padding-top: 62px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.5; }
.steps li::before {
  content: counter(step);
  position: absolute; top: 0; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font: 700 1rem/1 var(--display); color: var(--ink);
  border: 1.5px solid transparent;
  background: linear-gradient(var(--night), var(--night)) padding-box, var(--grad) border-box;
}
.steps b { display: block; color: var(--ink); font: 700 1.02rem/1.3 var(--display); margin-bottom: 4px; }

/* ---------- 03:00 Ночь под управлением ---------- */

.night {
  list-style: none; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.night__step { padding: 24px 22px; }
.night__step p { margin: 0; color: var(--ink-2); }
.night__time {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  font: 700 0.95rem/1 var(--display); font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.night__time::before {
  content: ''; width: 10px; height: 10px; border-radius: 50%;
  background: var(--grad-btn); box-shadow: 0 0 12px rgba(251, 13, 195, 0.7);
}
.night__step:nth-child(2) .night__time::before { background: #6724F2; box-shadow: 0 0 12px rgba(103, 36, 242, 0.8); }
.night__step:nth-child(3) .night__time::before { background: #2A99FC; box-shadow: 0 0 12px rgba(42, 153, 252, 0.8); }
.night__step:nth-child(4) .night__time::before { background: #4FF6FD; box-shadow: 0 0 12px rgba(79, 246, 253, 0.8); }

/* ---------- 05:00 Форма ---------- */

.quiz { max-width: 780px; margin-top: clamp(26px, 3vw, 40px); padding: clamp(22px, 4vw, 40px); }

.quiz__meta { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-bottom: 22px; }
.quiz__step { font: 500 0.9rem/1 var(--text); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quiz__bar { width: min(220px, 40%); height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.quiz__bar span { display: block; height: 100%; width: 16%; background: var(--grad-btn); border-radius: 6px; transition: width 0.4s ease-out; }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step legend { font: 800 clamp(1.3rem, 2.6vw, 1.8rem)/1.25 var(--display); margin: 0 0 20px; padding: 0; }
.step legend:focus { outline: none; }
.hint { color: var(--muted); margin-top: -8px; }

.opts { display: grid; gap: 10px; }
.opts--multi { grid-template-columns: 1fr 1fr; }

.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span {
  display: flex; align-items: center; gap: 14px;
  min-height: 58px; padding: 12px 18px;
  border: 1px solid var(--line-2); border-radius: 14px;
  background: rgba(5, 5, 11, 0.5);
  font-size: 1.02rem;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.opt span::before {
  content: ''; flex-shrink: 0;
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(190, 199, 214, 0.5);
  transition: background 0.15s, border-color 0.15s;
}
.opt--box span::before { border-radius: 6px; }
.opt:hover span { border-color: rgba(190, 199, 214, 0.35); }
.opt input:checked + span {
  border-color: transparent;
  background: linear-gradient(90deg, rgba(251, 13, 195, 0.14), rgba(251, 13, 195, 0)) padding-box,
              linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad-btn) border-box;
  box-shadow: 0 0 22px -8px rgba(251, 13, 195, 0.6);
}
.opt input:checked + span::before {
  border-color: transparent;
  background: no-repeat center/14px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5' fill='none' stroke='%230B0420' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"), var(--grad-btn);
}
.opt input:focus-visible + span { outline: 2px solid var(--g4); outline-offset: 2px; }

.field { display: block; margin-bottom: 4px; }
.field__label { display: block; font-size: 0.9rem; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%;
  min-height: 52px; padding: 12px 16px;
  background: rgba(5, 5, 11, 0.6); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: 12px;
  font: 400 1.05rem/1.4 var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { outline: none; border-color: var(--g3); box-shadow: 0 0 0 3px rgba(42, 153, 252, 0.2); }
.field input[aria-invalid="true"] { border-color: var(--err); }

.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; margin: 16px 0 2px; font-size: 0.93rem; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--g1); }
.check a { color: var(--ink); }

.err { min-height: 1.3em; margin: 4px 0 8px; font-size: 0.88rem; color: var(--err); }

.btn--submit { margin-top: 12px; }
.note { margin-top: 12px; font-size: 0.9rem; color: var(--muted); }

.quiz__nav { display: flex; gap: 12px; margin-top: 26px; }
.quiz__nav [hidden] { display: none; }
.quiz__nav .btn--outline { padding: 0 32px; }
.quiz__nav .btn--grad { flex: 1; max-width: 340px; }

.panel { padding: 6px 0; }
.contacts { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 6px; }
.contact__ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.panel__text, .panel__title { font: 800 clamp(1.2rem, 2.3vw, 1.6rem)/1.35 var(--display); margin-bottom: 0.7em; }
.panel__text:focus, .panel__title:focus { outline: none; }

/* ---------- 06:00 Рассвет (подвал) ---------- */

.footer {
  position: relative;
  padding: clamp(110px, 16vh, 170px) 0 clamp(40px, 6vw, 64px);
  background:
    radial-gradient(70% 55% at 50% 100%, rgba(251, 13, 195, 0.28), transparent 70%),
    radial-gradient(45% 40% at 78% 100%, rgba(79, 246, 253, 0.16), transparent 70%),
    linear-gradient(180deg, var(--night) 0%, #0B0A1E 45%, #1D1240 100%);
  border-top: 1px solid var(--line-2);
  overflow: hidden;
}
.footer::before {
  /* линия горизонта */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--grad); opacity: 0.8; box-shadow: 0 0 18px rgba(251, 13, 195, 0.6);
}
.footer__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 28px; }
.footer__brand { justify-self: start; }
.footer__logo { height: 150px; width: auto; margin-left: -18px; }
.footer__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 0.9rem; color: var(--ink-2); }
.footer__meta a { color: var(--ink-2); }

/* ---------- Эффект «Проверить пульс» ---------- */

.check-fx {
  position: fixed; inset: 0; z-index: 60; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  background: radial-gradient(60% 45% at 50% 50%, rgba(43, 16, 92, 0.9), rgba(5, 5, 11, 0.94));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
}
.check-fx svg { width: 100%; height: 240px; overflow: visible; filter: drop-shadow(0 0 6px rgba(251, 13, 195, 0.8)) drop-shadow(0 0 22px rgba(103, 36, 242, 0.7)); }
.check-fx path { fill: none; stroke: url(#gh); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 3000); stroke-dashoffset: var(--len, 3000); }
.check-fx__label { margin: 36px 0 0; font: 500 1rem/1 var(--text); color: var(--ink-2); letter-spacing: 0.02em; }
.check-fx.run { visibility: visible; animation: fxFade 1.25s ease-out forwards; }
.check-fx.run path { animation: fxDraw 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes fxFade { 0% { opacity: 0; } 12% { opacity: 1; } 68% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fxDraw { to { stroke-dashoffset: 0; } }

.quiz.arrive { animation: arrive 1.4s ease-out; }
@keyframes arrive {
  0% { box-shadow: 0 0 0 0 rgba(251, 13, 195, 0.6), 0 0 60px -10px rgba(103, 36, 242, 0.9); }
  100% { box-shadow: 0 0 0 18px rgba(251, 13, 195, 0), 0 0 0 0 rgba(103, 36, 242, 0); }
}

/* ---------- Пульт ---------- */

.hud {
  position: fixed; z-index: 40;
  left: max(var(--hud-gap), calc((100vw - var(--wrap)) / 2));
  right: max(var(--hud-gap), calc((100vw - var(--wrap)) / 2));
  bottom: calc(var(--hud-gap) + env(safe-area-inset-bottom, 0px));
  height: var(--hud-h);
  display: grid; grid-template-columns: auto auto minmax(90px, 180px) auto auto 1fr; align-items: center; gap: 16px;
  padding: 0 16px;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: rgba(8, 8, 18, 0.84);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}
.hud__play {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid transparent;
  background: linear-gradient(#0E0A1C, #0E0A1C) padding-box, var(--grad-btn) border-box;
  box-shadow: 0 0 18px -4px rgba(251, 13, 195, 0.7);
  color: var(--ink); cursor: pointer;
}
.hud__play svg { width: 18px; height: 18px; }
.hud__play .play { fill: currentColor; }
.hud__play .pause { display: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.hud__play[aria-pressed="true"] .play { display: none; }
.hud__play[aria-pressed="true"] .pause { display: inline; }
.hud__time {
  padding: 6px 12px; border-radius: 10px;
  border: 1px solid rgba(190, 199, 214, 0.35);
  font: 500 0.98rem/1 var(--text); font-variant-numeric: tabular-nums;
}
.hud__time span { display: inline-block; transition: opacity 0.25s, transform 0.25s; }
.hud__time span.swap { opacity: 0; transform: translateY(-6px); }

.hud__ecg { width: 100%; height: 34px; transition: opacity 0.6s; }
.in-hero .hud__ecg { opacity: 0.35; }

.hud__bpm { display: inline-flex; align-items: baseline; gap: 6px; font: 800 1.2rem/1 var(--display); font-variant-numeric: tabular-nums; min-width: 6.4em; }
.hud__bpm small { font: 500 0.8rem/1 var(--text); color: var(--g3); }
.hud__heart { width: 20px; height: 20px; align-self: center; fill: none; stroke: var(--g3); stroke-width: 1.8; stroke-linejoin: round; }
.hud__heart.beat { animation: beat 0.24s ease-out; }
@keyframes beat { 0% { transform: scale(1.35); } 100% { transform: scale(1); } }

.hud__sound {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  background: transparent; color: var(--ink-2);
  border: 1px solid rgba(190, 199, 214, 0.3); border-radius: 999px;
  font: 400 0.88rem/1 var(--text); cursor: pointer;
}
.hud__sound:hover { color: var(--ink); border-color: var(--ink-2); }
.hud__sound svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.hud__sound .spk { fill: currentColor; stroke: none; }
.hud__sound .wave { display: none; }
.hud__sound[aria-pressed="true"] { color: var(--ink); border-color: transparent; background: linear-gradient(#0E0A1C, #0E0A1C) padding-box, var(--grad-btn) border-box; }
.hud__sound[aria-pressed="true"] .wave { display: inline; }
.hud__sound[aria-pressed="true"] .mute { display: none; }

.hud__nav {
  position: relative;
  display: flex; justify-content: space-between; gap: 6px;
  padding-left: 18px; margin-left: 4px;
  border-left: 1px solid var(--line-2);
}
.hud__nav::before {
  content: ''; position: absolute; left: 34px; right: 16px; top: 9px; height: 1px; background: var(--line);
}
.hud__nav a {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font: 500 0.78rem/1 var(--text); font-variant-numeric: tabular-nums;
  color: var(--muted); text-decoration: none;
  padding: 2px 2px 0;
}
.hud__nav a::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--muted); margin-top: 6px;
  transition: background 0.2s, box-shadow 0.2s, width 0.2s;
}
.hud__nav a:hover { color: var(--ink-2); }
.hud__nav a.on { color: var(--ink); }
.hud__nav a.on::before { width: 22px; border-radius: 4px; background: var(--grad-btn); box-shadow: 0 0 10px rgba(251, 13, 195, 0.7); }

/* ---------- Адаптив ---------- */

@media (max-width: 1180px) {
  .hud__nav { display: none; }
  .hud { grid-template-columns: auto auto minmax(80px, 1fr) auto auto; }
}

@media (max-width: 900px) {
  .night { grid-template-columns: 1fr 1fr; }
  .symptoms { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .steps::before { display: none; }
  .track { grid-template-columns: 44px 1fr 30px; gap: 6px 14px; }
  .track__no { grid-row: 1 / span 2; align-self: start; }
  .track__desc { grid-column: 2; }
  .track__plus { grid-column: 3; grid-row: 1 / span 2; }
  .track__more { padding: 0 44px 18px 58px; }

  /* кардиограмма первого экрана — под заголовком на всю ширину */
  .s-hero { justify-content: flex-start; }
  .hero__stage { position: relative; inset: auto; order: 2; height: clamp(190px, 52vw, 300px); margin: -8px 0 6px; }
  .hero__in { display: contents; }
  .hero__in > .hero__eyebrow, .hero__title { margin-left: var(--pad); margin-right: var(--pad); position: relative; z-index: 2; }
  .hero__in > .hero__eyebrow { order: 0; }
  .hero__title { order: 1; }
  .hero__rest { order: 3; padding: 0 var(--pad); position: relative; z-index: 2; }
  .hero__floor { top: 66%; }
  #heroCta.send { animation: none; }
  .hero__beams i { top: 0; height: 66%; }
}

@media (max-width: 720px) {
  :root { --top-h: 80px; --hud-h: 56px; --hud-gap: 10px; }
  body { font-size: 1rem; }
  .hide-sm { display: none; }
  .brand__logo { height: 64px; margin-left: -6px; }
  .btn--small { padding: 0 16px; font-size: 0.88rem; min-height: 40px; }
  .door, .split, .night { grid-template-columns: 1fr; }
  .eyebrow { font-size: 0.92rem; }
  .s-head { flex-direction: column; align-items: flex-start; }
  .symptoms__count { text-align: left; max-width: none; }
  .symptom { min-height: 132px; padding: 16px; gap: 16px; font-size: 0.95rem; }
  .opts--multi { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .quiz__meta { justify-content: space-between; }
  .quiz__bar { width: 55%; }
  .hud { grid-template-columns: auto auto 1fr auto; gap: 10px; padding: 0 8px 0 7px; border-radius: 18px; }
  .hud__sound { display: none; }
  .hud__play { width: 40px; height: 40px; }
  .decor { width: 78vw; right: -18vw; top: 20px; opacity: 0.3; }
  .decor--monitor { width: 100%; right: 0; top: 8px; height: 150px; opacity: 0.4; }
  .decor--eq { width: 62vw; right: -4vw; top: 30px; height: 150px; gap: 6px; opacity: 0.32; }
  .decor--lasers { width: 100%; right: 0; top: 0; opacity: 0.35; }
  .lasers__fan, .lasers__src { right: 6%; top: 3%; }
  .hud__time { padding: 5px 9px; font-size: 0.9rem; }
  .hud__bpm { min-width: 0; font-size: 1.05rem; }
  .hud__bpm small { display: none; }
  .hud__soundtext { display: none; }
  .hud__sound { padding: 0 10px; }
  .footer__in { grid-template-columns: 1fr; }
  .footer__logo { height: 120px; }
  .trust { flex-direction: column; }
  .trust li::before, .trust li + li::before {
    content: ''; display: inline-block; width: 6px; height: 6px; padding: 0;
    border-radius: 50%; background: var(--grad-btn); margin-right: 10px; vertical-align: middle;
  }
}

@media (max-width: 400px) {
  .symptoms { grid-template-columns: 1fr; gap: 10px; }
  .symptom { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; padding: 14px 52px 14px 16px; gap: 14px; }
  .symptom__icon { width: 28px; height: 28px; flex-shrink: 0; }
  .symptom__check { top: 50%; right: 14px; margin-top: -13px; }
  .symptom[aria-pressed="true"] .symptom__check { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__title .line, .js .hero__rest { opacity: 1; transform: none; transition: none; }
  .js .curtain { display: none; }
  .hud__heart.beat { animation: none; }
  .lasers__fan { animation: none; }
  .decor--eq i { transition: none; }
  .btn, .symptom, .symptom__check { transition: none; }
}
