/* ============================================================
   DRIP PALS · Puffer Dragon — тёмный кинематографичный стиль.
   Токены (цвета, шрифты, размеры) — в :root и в DESIGN.md.
   ============================================================ */

:root {
  /* Цвета */
  --bg: #0B0A09;          /* тёплый почти-чёрный */
  --bg-2: #15130F;        /* карточки и поля */
  --fg: #F3EEE6;          /* основной текст (кремовый) */
  --muted: #8E877C;       /* второстепенный текст (5.5:1 на --bg) */
  --line: rgba(243, 238, 230, .14);
  /* Цвет текущего дропа (--accent, --on-accent) — в css/drop.css */
  --ice: #9BE7F0;         /* холодный свет, фокус */
  --error: #FF9A8A;

  /* Шрифты */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;

  /* Размеры текста */
  --t-display: clamp(76px, 20vw, 320px);
  --t-h2: clamp(44px, 7vw, 112px);
  --t-big: clamp(28px, 4.2vw, 64px);
  --t-lead: clamp(18px, 1.5vw, 21px);
  --t-body: 17px;
  --t-label: 12px;

  /* Отступы */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 160px;
  --gutter: 20px;
  --max: 1440px;

  --radius: 24px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 900px) { :root { --gutter: 40px; } }

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
h1, h2, p, ol, figure { margin: 0; }
ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }

:focus-visible { outline: 2px solid var(--ice); outline-offset: 4px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: var(--gutter); top: -80px; z-index: 200;
  padding: var(--s-3) var(--s-4); border-radius: 999px;
  background: var(--fg); color: var(--bg); font-weight: 600;
}
.skip-link:focus { top: var(--s-3); }

.label {
  font-family: var(--mono);
  font-size: var(--t-label);
  line-height: 1.4;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.label--muted { color: var(--muted); }

.h2 {
  font-size: var(--t-h2);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 em { letter-spacing: -.02em; }

/* Разбивка текста на буквы (делает main.js) */
.split-m { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .04em; margin-bottom: -.04em; }
.split-c { display: inline-block; will-change: transform; }
.split-w { display: inline-block; white-space: nowrap; }

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

.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 56px; padding: 0 var(--s-6);
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--fg);
  font: 500 16px/1 var(--font);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: border-color .3s, color .3s;
}
/* Заливка «поднимается» снизу при наведении */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fg); border-radius: inherit;
  transform: translateY(101%); transition: transform .5s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--fg); }
.btn--small { min-height: 44px; padding: 0 var(--s-5); font-size: 14px; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn--primary::before { background: var(--fg); }
.btn__text, .btn__icon { position: relative; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Зерно плёнки, прогресс, курсор ---------- */

.grain {
  position: fixed; inset: -50%; z-index: 150; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .anim .cursor { display: block; }
  .anim .cursor ~ * { cursor: none; }
  .anim a, .anim button, .anim input { cursor: none; }
}
.cursor__dot, .cursor__ring {
  position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; border-radius: 50%;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--fg); }
.cursor__ring {
  width: 40px; height: 40px; margin: -20px 0 0 -20px;
  border: 1px solid rgba(243, 238, 230, .5);
  display: grid; place-items: center;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), margin .35s var(--ease-out), background-color .35s, border-color .35s;
}
.cursor__label {
  font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase;
  color: var(--bg); opacity: 0; transition: opacity .2s;
}
.cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--fg); }
.cursor.is-label .cursor__ring { width: 88px; height: 88px; margin: -44px 0 0 -44px; background: var(--fg); border-color: var(--fg); }
.cursor.is-label .cursor__label { opacity: 1; }

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

.nav {
  position: fixed; inset: 0 0 auto; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: max(var(--s-4), env(safe-area-inset-top)) var(--gutter) var(--s-4);
  transition: transform .6s var(--ease-out);
}
.nav.is-hidden { transform: translateY(-110%); }
.nav__logo { font-weight: 600; font-size: 18px; letter-spacing: -.03em; }
.nav__links { display: none; gap: var(--s-6); font-size: 14px; color: var(--muted); }
.nav__links a { transition: color .3s; }
.nav__links a:hover { color: var(--fg); }
@media (min-width: 900px) { .nav__links { display: flex; } }

/* ============================================================
   1. Главный экран
   ============================================================ */

.hero {
  position: relative;
  height: 100svh; min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.hero__light {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38% 55% at 50% 0%, rgba(255, 236, 214, .20), transparent 70%),
    radial-gradient(40% 18% at 50% 88%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(70% 60% at 50% 50%, rgba(155, 231, 240, .05), transparent 70%);
}
.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__snow { z-index: -1; }

.hero__title {
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  font-size: var(--t-display);
  font-weight: 600;
  line-height: .8;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.hero__line { position: absolute; white-space: nowrap; }
.hero__line--1 { left: calc(var(--gutter) - .04em); top: 15svh; }
.hero__line--2 { right: var(--gutter); bottom: 17svh; }
@media (min-width: 900px) {
  .hero__line--1 { top: 13vh; }
  .hero__line--2 { bottom: 12vh; }
}

.hero__stage {
  position: absolute; z-index: 1;
  left: 50%; top: 52%;
  height: min(70svh, 150vw); aspect-ratio: 574 / 954;
  transform: translate(-50%, -50%);
}
@media (min-width: 900px) { .hero__stage { height: 82vh; top: 53%; } }
.hero__fallback, .hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__canvas { opacity: 0; transition: opacity 1s var(--ease-out); touch-action: pan-y; }
.hero__stage.is-3d .hero__canvas { opacity: 1; }
.hero__stage.is-3d .hero__fallback { opacity: 0; }
.hero__fallback { transition: opacity .6s; }
.hero__floor {
  position: absolute; left: 50%; bottom: -2%; z-index: -1;
  width: 120%; height: 8%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(0, 0, 0, .7), transparent);
}

.hero__meta { position: absolute; z-index: 2; top: calc(70px + env(safe-area-inset-top)); display: grid; gap: var(--s-1); }
.hero__meta--left { left: var(--gutter); }
.hero__meta--right { right: var(--gutter); text-align: right; }
.pulse {
  display: inline-block; width: 7px; height: 7px; margin-right: var(--s-2); border-radius: 50%;
  background: var(--accent); vertical-align: 1px;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 0%, transparent); } 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 0%, transparent); } }

.hero__bottom {
  position: absolute; z-index: 2;
  left: var(--gutter); right: var(--gutter); bottom: max(var(--s-5), env(safe-area-inset-bottom));
  display: flex; align-items: end; justify-content: space-between; gap: var(--s-5);
}
.hero__tag { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.25; max-width: 18ch; }
.hero__tag em { font-size: 1.15em; }
.hero__scroll { display: flex; align-items: center; gap: var(--s-3); color: var(--muted); }
.hero__scroll span { position: relative; width: 1px; height: 40px; background: var(--line); overflow: hidden; }
.hero__scroll span::after {
  content: ""; position: absolute; inset: 0; background: var(--fg);
  animation: scrollhint 2s var(--ease-out) infinite;
}
@keyframes scrollhint { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ============================================================
   3. Детали — прожектор
   ============================================================ */

.details { position: relative; }
.details__pin {
  min-height: 100svh;
  display: grid; align-content: center; gap: var(--s-6);
  padding: calc(80px + var(--s-4)) var(--gutter) var(--s-7);
  max-width: var(--max); margin-inline: auto;
}
.details__text { display: grid; gap: var(--s-5); align-content: center; }
.details__list { display: grid; gap: var(--s-2); margin-top: var(--s-3); }
.detail {
  display: grid; grid-template-columns: 40px 1fr; gap: var(--s-3);
  padding: var(--s-3) 0; border-top: 1px solid var(--line);
  color: var(--muted); transition: color .4s;
}
.detail__num { font: 500 var(--t-label)/1.9 var(--mono); letter-spacing: .1em; }
.detail__title { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.detail__text {
  display: block; font-size: 15px; line-height: 1.5; max-width: 34ch;
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .6s var(--ease-out), opacity .4s, margin .6s var(--ease-out);
}
.detail.is-active { color: var(--fg); }
.detail.is-active .detail__num { color: var(--accent); }
.detail.is-active .detail__text { max-height: 6em; opacity: .8; margin-top: var(--s-1); }

.viewer {
  position: relative; justify-self: center;
  height: 62svh; aspect-ratio: 574 / 954;
  overflow: hidden; border-radius: 6px;
  background: radial-gradient(60% 50% at 50% 45%, #1c1915, var(--bg) 80%);
  --x: 50%; --y: 50%; --r: 140%; --zoom: 1;
}
.viewer__zoom {
  position: absolute; inset: 0;
  transform-origin: var(--x) var(--y);
  transform: scale(var(--zoom));
}
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; }
.viewer__img--dim { filter: brightness(.22) saturate(.5); }
.viewer__img--lit {
  -webkit-mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 55%, transparent 100%);
          mask-image: radial-gradient(circle var(--r) at var(--x) var(--y), #000 55%, transparent 100%);
}
.viewer__corner { position: absolute; width: 18px; height: 18px; border: 0 solid var(--fg); opacity: .7; }
.viewer__corner--tl { left: 10px; top: 10px; border-width: 1px 0 0 1px; }
.viewer__corner--tr { right: 10px; top: 10px; border-width: 1px 1px 0 0; }
.viewer__corner--bl { left: 10px; bottom: 10px; border-width: 0 0 1px 1px; }
.viewer__corner--br { right: 10px; bottom: 10px; border-width: 0 1px 1px 0; }
.viewer__hud {
  position: absolute; left: 14px; right: 14px; bottom: 34px;
  display: flex; justify-content: space-between; gap: var(--s-3);
  font-size: 10px; color: rgba(243, 238, 230, .75);
}
.viewer__hud b { font-weight: 500; color: var(--accent); font-variant-numeric: tabular-nums; }

@media (min-width: 900px) {
  .details__pin { grid-template-columns: 1fr auto; gap: var(--s-9); align-items: center; }
  .viewer { height: 80vh; }
  .details__list { margin-top: var(--s-6); }
}
@media (max-width: 899px) {
  .details__text .h2 { font-size: clamp(36px, 10vw, 56px); }
  /* на телефоне показываем только активную деталь, под картинкой */
  .details__pin { display: flex; flex-direction: column-reverse; justify-content: center; }
  .details__list { position: relative; min-height: 120px; }
  .anim .detail { position: absolute; inset: 0 0 auto; opacity: 0; transition: opacity .4s; border-top: 0; }
  .anim .detail.is-active { opacity: 1; }
  .details__text > .label, .details__text .h2 { display: none; }
}

/* ============================================================
   6. Дроп + форма
   ============================================================ */

.drop { position: relative; overflow: hidden; padding: var(--s-10) var(--gutter); }
.drop__grid {
  position: relative; z-index: 1;
  max-width: var(--max); margin-inline: auto;
  display: grid; gap: var(--s-8); align-items: center;
}
.drop__media {
  position: relative; justify-self: center;
  width: min(100%, 420px); aspect-ratio: 9 / 16;
  border-radius: var(--radius); overflow: hidden; background: var(--bg-2);
}
.drop__video { width: 100%; height: 100%; object-fit: cover; }
.drop__content { display: grid; gap: var(--s-6); max-width: 620px; }
.drop__lead { font-size: var(--t-lead); color: rgba(243, 238, 230, .8); max-width: 46ch; }

.counter { display: grid; grid-template-columns: auto 1fr; gap: var(--s-5); align-items: end; }
.counter__num {
  font-size: clamp(80px, 12vw, 180px); font-weight: 300; line-height: .8; letter-spacing: -.07em;
  font-variant-numeric: tabular-nums; color: var(--accent);
}
.counter__meta { display: grid; gap: var(--s-3); padding-bottom: .4em; }
.counter__bar { height: 2px; background: var(--line); overflow: hidden; }
.counter__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
html:not(.anim) .counter__bar span, .reduced .counter__bar span { transform: none; }

.notify { border-top: 1px solid var(--line); padding-top: var(--s-6); }
.notify__form { display: grid; gap: var(--s-3); }
.notify__row { display: grid; gap: var(--s-4); }
.notify__input {
  width: 100%; min-height: 64px; padding: 0;
  border: 0; border-bottom: 1px solid rgba(243, 238, 230, .35); border-radius: 0;
  background: transparent; color: var(--fg);
  font: 400 clamp(22px, 2.4vw, 30px)/1.2 var(--font); letter-spacing: -.02em;
  transition: border-color .3s;
}
.notify__input::placeholder { color: rgba(243, 238, 230, .35); }
.notify__input:focus { outline: none; border-bottom-color: var(--fg); }
.notify__input:focus-visible { outline: 2px solid var(--ice); outline-offset: 6px; }
.notify__input[aria-invalid="true"] { border-bottom-color: var(--error); }
.notify__hint { font-size: 14px; color: var(--muted); }
.notify__error { font-size: 14px; font-weight: 500; color: var(--error); }
.notify__success { display: flex; gap: var(--s-5); align-items: center; outline: none; }
.notify__success img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.notify__success-title { font-size: clamp(28px, 3vw, 40px); font-weight: 500; letter-spacing: -.03em; line-height: 1.05; margin-bottom: var(--s-2); }
.notify__success p:not(.notify__success-title) { color: rgba(243, 238, 230, .8); }

@media (min-width: 640px) { .notify__row { grid-template-columns: 1fr auto; align-items: end; } }
@media (min-width: 900px) {
  .drop__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--s-9); }
  .drop__media { width: 100%; max-width: 460px; }
}

/* ---------- Подвал ---------- */

.footer { padding: var(--s-9) var(--gutter) var(--s-5); border-top: 1px solid var(--line); overflow: hidden; }
.footer__mark {
  font-size: clamp(64px, 18.5vw, 330px); font-weight: 600; line-height: .8; letter-spacing: -.07em;
  white-space: nowrap; text-align: center;
}
.footer__row {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-3) var(--s-6);
  margin-top: var(--s-7); font-size: 14px; color: var(--muted);
}
.footer__row a:hover { color: var(--fg); }

/* ---------- Появление (настраивает main.js) ---------- */

.anim [data-reveal], .anim [data-fade] { opacity: 0; }

/* ---------- Меньше движения ---------- */

.reduced .grain, .reduced .hero__scroll span::after, .reduced .pulse { animation: none; }
.reduced .details__pin { min-height: auto; height: auto; }

/* ---------- Lenis (плавная прокрутка) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

/* Без JS и при «меньше движения» все описания деталей видны */
html:not(.anim) .detail__text, .reduced .detail__text { max-height: none; opacity: .8; margin-top: var(--s-1); }
html:not(.anim) .detail, .reduced .detail { color: var(--fg); }

/* ---------- Правки для телефона ---------- */
@media (max-width: 599px) {
  .hero__meta .label--muted { display: none; }        /* вторые строки не помещаются рядом */
  .hero__stage { height: min(64svh, 140vw); top: 50%; }
}

/* Шапка после первого экрана: мягкая тёмная подложка */
.nav::before {
  content: ""; position: absolute; inset: 0 0 -24px; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--bg) 55%, transparent);
  opacity: 0; transition: opacity .4s;
}
.nav.is-scrolled::before { opacity: 1; }

/* ============================================================
   ПРАВКИ v3: конверсия + визуал
   ============================================================ */

/* ---------- Кнопки: тёмная (на оранжевом) и линия ---------- */
.btn--dark { background: var(--bg); border-color: var(--bg); color: var(--fg); }
.btn--dark::before { background: var(--fg); }
.btn--dark:hover { color: var(--bg); border-color: var(--bg); }
.btn--line { border-color: currentColor; }

/* ---------- Первый экран: текст + кнопки снизу ---------- */
.hero__bottom { flex-wrap: wrap; align-items: end; row-gap: var(--s-4); }
.hero__copy { display: grid; gap: var(--s-2); }
.hero__sub { font-size: 14px; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.hero__actions .btn { background-color: rgba(11, 10, 9, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero__actions .btn--primary { background-color: var(--accent); }
.hero__hint { width: 100%; text-align: center; font-size: 11px; }
.hint-touch { display: none; }
@media (hover: none) { .hint-desktop { display: none; } .hint-touch { display: inline; } }
@media (max-width: 899px) {
  .hero__bottom { flex-direction: column; align-items: stretch; text-align: center; }
  .hero__copy { justify-items: center; }
  .hero__tag { max-width: none; }
  .hero__actions { justify-content: center; }
  .hero__actions .btn { flex: 1 1 140px; min-height: 50px; padding-inline: var(--s-4); }
  .hero__line--2 { bottom: 31svh; }
  .hero__stage { top: 44%; }
}
@media (max-width: 599px) {
  .hero__stage { height: min(54svh, 120vw); top: 43%; }
}
@media (min-width: 900px) {
  .hero__hint { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); }
}

/* ---------- Анкета дракона ---------- */
.profile { padding: 0 var(--gutter) var(--s-10); max-width: var(--max); margin-inline: auto; }
.profile__card {
  display: grid; gap: var(--s-7); align-items: center;
  padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(243, 238, 230, .045), rgba(243, 238, 230, 0) 60%);
}
.profile__photo {
  position: relative; justify-self: center; width: min(100%, 300px); aspect-ratio: 574 / 954;
  padding: 0; border: 0; background: radial-gradient(60% 50% at 50% 45%, #1f1b16, transparent 75%);
  cursor: pointer;
}
.profile__img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .25s; }
.profile__img--awake { opacity: 0; }
/* Просыпается только по нажатию — как и написано на кнопке */
.profile__photo[aria-pressed="true"] .profile__img--awake { opacity: 1; }
.profile__tap {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  padding: 6px 12px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line);
  font-size: 10px; white-space: nowrap; color: var(--muted);
}
.profile__info { display: grid; gap: var(--s-5); }
.stats { display: grid; margin: 0; }
.stats div { display: grid; grid-template-columns: 110px 1fr; gap: var(--s-4); padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.stats dt { font: 500 var(--t-label)/1.9 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.stats dd { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.meters { display: grid; gap: var(--s-3); }
.meter { display: grid; grid-template-columns: 130px 1fr 36px; gap: var(--s-4); align-items: center; font-size: 14px; }
.meter__name { color: var(--muted); }
.meter__bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.meter__bar span { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--v)); }
.anim .meter__bar span { transform: scaleX(0); transition: transform 1.6s var(--ease-out); }
.anim .profile__card.is-in .meter__bar span { transform: scaleX(var(--v)); }
.meter__val { font: 500 13px/1 var(--mono); text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .profile__card { grid-template-columns: 360px 1fr; padding: var(--s-8); gap: var(--s-9); }
  .profile__photo { width: 100%; }
}

/* ---------- Дроп: кульминация в цвете дропа ---------- */
.drop { color: var(--on-accent); padding-block: var(--s-10); }
.drop__bg {
  position: absolute; inset: 0; z-index: 0; background: var(--accent);
  clip-path: inset(0 round 0);
}
.anim .drop__bg { clip-path: inset(10% 6% round 40px); }
.drop .h2 em { color: var(--on-accent); }
.drop__label { color: color-mix(in srgb, var(--on-accent) 78%, transparent); }
.drop__media { background: color-mix(in srgb, var(--accent) 80%, black); box-shadow: 0 30px 80px rgba(0, 0, 0, .3); }
.counter__num { color: var(--on-accent); }
.counter__bar { background: color-mix(in srgb, var(--on-accent) 20%, transparent); }
.counter__bar span { background: var(--on-accent); transform: scaleX(var(--progress, 0)); }
.counter__status { font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.1; }
.perks { display: grid; gap: var(--s-3); margin: 0; padding: 0; list-style: none; font-size: 17px; }
.perks li { position: relative; padding-left: var(--s-6); }
.perks li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px;
  border-left: 2px solid var(--on-accent); border-bottom: 2px solid var(--on-accent); transform: rotate(-45deg);
}
.drop .notify { border-top-color: color-mix(in srgb, var(--on-accent) 25%, transparent); }
.drop .notify__input { color: var(--on-accent); border-bottom-color: color-mix(in srgb, var(--on-accent) 45%, transparent); }
.drop .notify__input::placeholder { color: color-mix(in srgb, var(--on-accent) 45%, transparent); }
.drop .notify__input:focus { border-bottom-color: var(--on-accent); }
.drop .notify__input:focus-visible { outline-color: var(--on-accent); }
.drop .notify__input[aria-invalid="true"] { border-bottom-color: var(--on-accent); }
.drop .notify__hint { color: color-mix(in srgb, var(--on-accent) 78%, transparent); }
.drop .notify__hint a { text-decoration: underline; text-underline-offset: 2px; }
.drop .notify__error { color: var(--on-accent); }
.drop .notify__success p:not(.notify__success-title) { color: color-mix(in srgb, var(--on-accent) 85%, transparent); }
.drop :focus-visible { outline-color: var(--on-accent); }
.notify__success { align-items: flex-start; }
.notify__success-body { display: grid; gap: var(--s-3); }
.notify__success-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
.notify__success-title { margin-bottom: 0; }
.follow { display: grid; gap: var(--s-2); padding-top: var(--s-6); border-top: 1px solid color-mix(in srgb, var(--on-accent) 25%, transparent); }
.follow__title { font-size: 28px; font-weight: 500; letter-spacing: -.03em; }
.follow__text { color: color-mix(in srgb, var(--on-accent) 78%, transparent); }
.follow__links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-3); }
.drop .btn--line { color: var(--on-accent); }
.drop .btn--line::before { background: var(--on-accent); }
.drop .btn--line:hover { color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { padding: var(--s-10) var(--gutter); }
.faq__inner { max-width: var(--max); margin-inline: auto; display: grid; gap: var(--s-7); }
.faq__head { display: grid; gap: var(--s-4); align-content: start; }
.faq__list { display: grid; }
.qa { border-top: 1px solid var(--line); }
.qa:last-child { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5);
  padding: var(--s-5) 0; cursor: pointer; list-style: none;
  font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.025em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; flex: none; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; font: 300 22px/1 var(--font); color: var(--muted);
  transition: transform .4s var(--ease-out), background-color .3s, color .3s;
}
.qa[open] summary::after { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.qa p { padding: 0 var(--s-8) var(--s-5) 0; color: rgba(243, 238, 230, .78); max-width: 60ch; }
@media (min-width: 900px) { .faq__inner { grid-template-columns: 1fr 1.4fr; gap: var(--s-9); } }

/* ---------- Подвал ---------- */
.footer__links { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__links a:hover { color: var(--fg); }

/* ---------- Кнопка внизу экрана (телефон) ---------- */
.sticky-cta { display: none; }
@media (max-width: 899px) {
  .ready .sticky-cta {
    position: fixed; z-index: 90; left: var(--gutter); right: var(--gutter);
    bottom: max(12px, env(safe-area-inset-bottom));
    display: grid; justify-items: center; gap: 2px;
    padding: 12px var(--s-5); border-radius: 999px;
    background: var(--accent); color: var(--on-accent);
    font-weight: 600; font-size: 16px; line-height: 1.2;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    transform: translateY(160%); transition: transform .5s var(--ease-out);
  }
  .ready .sticky-cta.is-visible { transform: translateY(0); }
}
.sticky-cta__sub { font: 500 10px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

/* Доля секунды до анимации появления (класс pre ставится в <head>) */
.pre .hero__line, .pre .hero__stage, .pre [data-fade], .pre .nav { visibility: hidden; }

/* ---------- Юридические страницы ---------- */
.legal { max-width: 720px; margin: 0 auto; padding: var(--s-9) var(--gutter); display: grid; gap: var(--s-4); }
.legal h1 { margin: var(--s-5) 0 var(--s-4); }
.legal h2 { margin: var(--s-5) 0 0; font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.legal p { color: rgba(243, 238, 230, .8); }

/* На компьютере подсказку даёт сам курсор («Wake up») — текст не нужен */
@media (hover: hover) { .hero__hint { display: none; } }

/* Телефон: кнопки первого экрана в одну строку; в шапке кнопка не нужна — есть нижняя */
@media (max-width: 899px) {
  .nav > .btn { display: none; }
  .hero__actions .btn { white-space: nowrap; font-size: 15px; }
}
@media (max-width: 420px) {
  .hero__actions .btn__icon { display: none; }
}

/* Шапка и нижняя кнопка над секцией дропа */
.nav.on-accent::before { background: linear-gradient(var(--accent) 55%, transparent); }
.nav.on-accent .nav__logo, .nav.on-accent .nav__links, .nav.on-accent .nav__links a:hover { color: var(--on-accent); }
.nav.on-accent .btn--primary { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
.ready .sticky-cta.on-accent { background: var(--on-accent); color: var(--accent); }
.sticky-cta { transition: transform .5s var(--ease-out), background-color .3s, color .3s; }

/* Рамка «Details»: не растягиваться на всю ширину в колонке на телефоне,
   а фото внутри — всегда в своих пропорциях */
.viewer { align-self: center; flex: none; }
.viewer__img { object-fit: contain; }
@media (max-width: 899px) {
  .viewer { height: min(62svh, 150vw); width: auto; max-width: 100%; }
}

/* Подписи в рамке «Details» читаются даже поверх кремовых тапок */
.viewer__hud { z-index: 2; }
.viewer__hud span {
  padding: 5px 9px; border-radius: 999px;
  background: rgba(11, 10, 9, .62);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

/* Тёмная кнопка на секции дропа: «текст на акценте» как фон, акцент как текст */
.drop .btn--dark { background: var(--on-accent); border-color: var(--on-accent); color: var(--accent); }
.drop .btn--dark::before { background: var(--fg); }
.drop .btn--dark:hover { color: var(--bg); border-color: var(--fg); }

/* Анкета: строчка из бывшего манифеста */
.profile__lead { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.03em; }
.profile__lead em { color: var(--accent); }

/* Телефон: в секции дропа сначала текст и форма, видео — под ними и поменьше */
@media (max-width: 899px) {
  .drop__content { order: 0; }
  .drop__media { order: 1; width: min(78%, 340px); }
}


/* ---------- Режим подписки (атрибут data-signup на <html>) ---------- */
[data-signup="follow"] [data-mode="email"],
[data-signup="email"] [data-mode="follow"] { display: none !important; }

/* Панель «Follow to unlock it» вместо формы, пока нет рассылки */
.notify__follow { display: grid; gap: var(--s-2); }
.notify__follow .follow__links { margin-top: var(--s-4); }
