/* ============================================================
   PAIR SCAN — vanilla / cute / modern
   Тёплая кремовая база, пастельные акценты, мягкие тени.
   ============================================================ */

:root {
  --cream: #faf6ee;
  --cream-2: #f3eddf;
  --paper: #ffffff;
  --ink: #2a2520;
  --ink-soft: #4a4238;
  --muted: #8a8276;
  --line: rgba(42, 37, 32, 0.09);
  --line-strong: rgba(42, 37, 32, 0.16);

  --blush: #f28b74;
  --blush-soft: rgba(242, 139, 116, 0.16);
  --mint: #9dd9c2;
  --mint-soft: rgba(157, 217, 194, 0.22);
  --butter: #f5e3a0;
  --butter-soft: rgba(245, 227, 160, 0.28);
  --lavender: #d8cfe8;
  --lavender-soft: rgba(216, 207, 232, 0.3);
  --sky: #b8d8f0;
  --sky-soft: rgba(184, 216, 240, 0.28);

  --shadow-sm: 0 6px 18px -10px rgba(42, 37, 32, 0.18);
  --shadow-md: 0 18px 46px -18px rgba(42, 37, 32, 0.22);
  --shadow-lg: 0 34px 80px -26px rgba(42, 37, 32, 0.26);

  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --display: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: min(100% - 32px, 1160px);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--cream); color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 90% -10%, rgba(242, 139, 116, 0.16), transparent 62%),
    radial-gradient(760px 520px at 5% 8%, rgba(157, 217, 194, 0.18), transparent 60%),
    radial-gradient(600px 420px at 50% 100%, rgba(216, 207, 232, 0.16), transparent 60%),
    var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blush); color: #fff; }
:focus-visible { outline: 2px solid var(--blush); outline-offset: 3px; border-radius: 8px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--blush); }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--blush); }

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

.btn {
  --btn-bg: var(--blush);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 100px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 16px; letter-spacing: 0.01em; cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  box-shadow: 0 12px 30px -12px rgba(242, 139, 116, 0.7);
  text-align: center;
}
.btn:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 40px -14px rgba(242, 139, 116, 0.85); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn[disabled] { opacity: 0.5; cursor: wait; transform: none; box-shadow: none; }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); border: 1.5px solid var(--line-strong); box-shadow: none; }
.btn--ghost:hover { border-color: var(--blush); color: var(--blush); background: var(--blush-soft); box-shadow: none; transform: translateY(-1px); }
.btn--wide { width: 100%; }
.btn__price { font-family: var(--mono); font-size: 13px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.35); }
.topbar .btn { min-height: 40px; padding: 0 18px; font-size: 14px; white-space: nowrap; }

/* ---------- верхняя полоса ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(20px);
  background: rgba(250, 246, 238, 0.78);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: 0.02em; }
.brand__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blush), var(--lavender));
  box-shadow: 0 0 0 4px var(--blush-soft);
  animation: breathe 3.2s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
.brand small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; color: var(--muted); display: block; margin-top: 2px; font-weight: 400; }

/* ---------- герой ---------- */

.hero { position: relative; padding: clamp(44px, 7vw, 92px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }

.hero__video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.34; z-index: 0;
  filter: saturate(1.05) brightness(1.02);
}
.hero__video-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(242, 139, 116, 0.22), transparent 62%),
    radial-gradient(760px 520px at 8% 4%, rgba(157, 217, 194, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(250, 246, 238, 0.45) 0%, rgba(250, 246, 238, 0.85) 100%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }

h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; margin: 0; color: var(--ink); }
.hero h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.02; margin: 20px 0 22px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--blush); position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.1em; background: linear-gradient(90deg, var(--blush), var(--lavender)); opacity: 0.55; border-radius: 2px; }
.hero__lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); max-width: 46ch; margin: 0 0 30px; }
.hero__lead b { color: var(--ink); font-weight: 700; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }

/* карточка-сканер */

.scan {
  position: relative; border: 1px solid var(--line); border-radius: 28px; padding: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6)), var(--paper);
  overflow: hidden; box-shadow: var(--shadow-lg);
  backdrop-filter: blur(6px);
}
.scan::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(0deg, rgba(42, 37, 32, 0.03) 0 1px, transparent 1px 4px);
  pointer-events: none; mask-image: linear-gradient(180deg, #000, transparent 80%);
}
.scan::after {
  content: ""; position: absolute; left: 0; right: 0; top: -140px; height: 140px;
  background: linear-gradient(180deg, transparent, rgba(242, 139, 116, 0.14), transparent);
  animation: scanmove 7s linear infinite; pointer-events: none;
}
@keyframes scanmove { 0% { top: -140px; } 100% { top: 105%; } }

.scan__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.scan__tag { font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--blush); border: 1px solid rgba(242, 139, 116, 0.35); border-radius: 100px; padding: 5px 10px; background: var(--blush-soft); }
.scan__body { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.scan__ring { position: relative; width: 172px; height: 172px; flex: none; }
.scan__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.scan__ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--display); font-size: 40px; letter-spacing: -0.03em; color: var(--ink); }
.scan__ring-num small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); margin-top: 4px; }
.scan__rows { display: grid; gap: 10px; }
.scan__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); font-size: 13.5px; color: var(--ink-soft); }
.scan__row b { font-family: var(--mono); font-size: 12px; color: var(--ink); letter-spacing: 0.04em; }
.scan__row--lock { color: var(--muted); }
.scan__row--lock b { color: var(--blush); }
.scan__foot { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.scan__foot::before { content: "♥"; color: var(--blush); font-size: 12px; }

/* ---------- секции ---------- */

.section { padding: clamp(52px, 7vw, 96px) 0; border-top: 1px solid var(--line); position: relative; }
.section--band {
  background:
    radial-gradient(900px 300px at 12% 0%, rgba(157, 217, 194, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent 58%),
    var(--cream-2);
}
.section--band::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(42, 37, 32, 0.04) 0 1px, transparent 1px 72px);
  pointer-events: none; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.section__head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section h2 { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.08; margin: 16px 0 14px; text-wrap: balance; }
.section__lead { color: var(--ink-soft); margin: 0; max-width: 62ch; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 26px 24px; border: 1px solid var(--line); border-radius: 24px;
  background: var(--paper); box-shadow: var(--shadow-sm);
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.card:hover { border-color: var(--blush); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card__num { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--blush); margin-bottom: 14px; }
.card h3 { font-size: 18px; line-height: 1.25; margin-bottom: 8px; color: var(--ink); }
.card p { margin: 0; color: var(--ink-soft); font-size: 14.5px; line-height: 1.55; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { padding: 26px 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-sm); position: relative; overflow: hidden; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 16px; top: 6px; font-family: var(--display); font-size: 46px; color: rgba(242, 139, 116, 0.12); font-weight: 700; }
.step h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.step p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }

.sample { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sample__card { border: 1px solid var(--line); border-radius: 24px; padding: 26px; background: var(--paper); box-shadow: var(--shadow-sm); }
.sample__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--mint); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 6px; }
.sample__label::before { content: "✦"; color: var(--blush); }
.sample h3 { font-size: 20px; margin-bottom: 10px; color: var(--ink); }
.sample p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.locked-list { display: grid; gap: 8px; margin-top: 4px; }
.locked-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--cream); font-size: 14px; color: var(--muted); overflow: hidden; position: relative; }
.locked-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(250, 246, 238, 0.92) 55%); z-index: 1; }
.locked-item span { position: relative; z-index: 2; }
.locked-item i { width: 18px; height: 18px; border: 1.5px solid var(--line-strong); border-radius: 6px; flex: none; position: relative; z-index: 2; }
.locked-item i::after { content: "🔒"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 9px; }

/* ---------- цена ---------- */

.price { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 16px; align-items: stretch; }
.price__main { border: 1.5px solid rgba(242, 139, 116, 0.4); border-radius: 28px; padding: clamp(26px, 4vw, 40px); background: radial-gradient(420px 220px at 90% 0%, rgba(242, 139, 116, 0.18), transparent 70%), var(--paper); box-shadow: var(--shadow-md); }
.price__value { font-family: var(--display); font-size: clamp(44px, 6vw, 68px); line-height: 1; letter-spacing: -0.04em; margin: 10px 0 6px; color: var(--ink); }
.price__value small { font-size: 0.4em; color: var(--muted); font-family: var(--mono); letter-spacing: 0.1em; }
.price__note { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; }
.price__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.price__list li { display: flex; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.price__list li::before { content: "♥"; color: var(--blush); flex: none; font-size: 11px; padding-top: 3px; }
.price__side { border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: var(--paper); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.price__side h3 { font-size: 18px; color: var(--ink); }
.price__side p { margin: 0; color: var(--ink-soft); font-size: 14px; }

/* ---------- честность ---------- */

.honest { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.honest__item { padding: 22px 24px; border: 1px solid var(--line); border-left: 3px solid var(--mint); border-radius: 0 18px 18px 0; background: var(--paper); box-shadow: var(--shadow-sm); }
.honest__item b { display: block; margin-bottom: 6px; font-size: 15px; color: var(--ink); }
.honest__item span { color: var(--ink-soft); font-size: 14px; }

/* ---------- FAQ ---------- */

.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 18px; background: var(--paper); padding: 18px 22px; box-shadow: var(--shadow-sm); transition: border-color 0.2s; }
.faq details[open] { border-color: var(--blush); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--blush); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- футер ---------- */

.footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 12.5px; background: var(--cream-2); }
.footer__in { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: flex-start; }
.footer a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.footer p { margin: 0 0 8px; max-width: 74ch; line-height: 1.6; }

/* ---------- формы ---------- */

.form-page { padding: clamp(28px, 5vw, 56px) 0 72px; }
.form-head { max-width: 640px; margin-bottom: 28px; }
.form-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.06; margin: 16px 0 12px; }
.form-head p { color: var(--ink-soft); margin: 0; }
.form-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 16px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: 28px; background: var(--paper); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--cream); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus { border-color: var(--blush); box-shadow: 0 0 0 4px var(--blush-soft); outline: none; }
.field input::placeholder { color: #a8a096; }
.consent { display: grid; gap: 12px; margin: 22px 0 24px; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 13.5px; color: var(--ink-soft); }
.check input { appearance: none; width: 24px; height: 24px; margin: 0; border: 1.5px solid var(--line-strong); border-radius: 8px; background: var(--cream); cursor: pointer; position: relative; }
.check input:checked { background: var(--blush); border-color: var(--blush); }
.check input:checked::after { content: ""; position: absolute; left: 8px; top: 4px; width: 6px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(42deg); }
.check a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink); }
.alert { border: 1.5px solid rgba(242, 139, 116, 0.5); background: var(--blush-soft); color: #8a3a2a; padding: 14px 16px; border-radius: 14px; font-size: 14px; margin: 0 0 18px; }
.form-aside { border: 1px solid var(--line); border-radius: 28px; padding: 28px; background: radial-gradient(300px 200px at 100% 0%, var(--mint-soft), transparent 70%), var(--paper); box-shadow: var(--shadow-sm); }
.form-aside h2 { font-size: 20px; margin-bottom: 14px; color: var(--ink); }
.form-aside ol { margin: 0; padding-left: 18px; display: grid; gap: 12px; color: var(--ink-soft); font-size: 14px; }
.form-aside .hint { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* ---------- квиз ---------- */

.quiz { min-height: 100dvh; display: flex; flex-direction: column; background: var(--cream); }
.quiz__bar { position: sticky; top: 0; z-index: 20; background: rgba(250, 246, 238, 0.88); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.quiz__bar-in { display: flex; align-items: center; gap: 14px; height: 62px; }
.quiz__who { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.quiz__progress { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blush), var(--lavender)); transition: width 0.45s var(--ease); border-radius: 4px; }
.quiz__count { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.quiz__main { flex: 1; display: grid; align-items: start; padding: clamp(24px, 5vh, 48px) 0 24px; }
.qcard { max-width: 720px; margin: 0 auto; width: 100%; }
.qcard__kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: var(--blush); text-transform: uppercase; }
.qcard h1 { font-size: clamp(22px, 3.4vw, 34px); line-height: 1.15; margin: 14px 0 10px; text-wrap: balance; color: var(--ink); }
.qcard__sub { color: var(--ink-soft); margin: 0 0 20px; font-size: 15.5px; }
.opt-list { margin: 0 0 18px; }
.opt-row { display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.opt-row:last-child { border-bottom: 0; }
.opt-letter { width: 28px; height: 28px; display: grid; place-content: center; border: 1.5px solid var(--line-strong); border-radius: 9px; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--cream); }
.opt-text { font-size: 15px; line-height: 1.45; color: var(--ink-soft); padding-top: 3px; }

.duo { display: grid; gap: 8px; margin-top: 4px; }
.duo__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--paper); box-shadow: var(--shadow-sm); transition: border-color 0.2s, background 0.2s, transform 0.15s; }
.duo__row:hover { transform: translateY(-1px); }
.duo__row.is-answered { border-color: var(--blush); background: var(--blush-soft); }
.duo__who { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); min-width: 0; font-weight: 600; }
.duo__who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.duo__dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.duo__row[data-person="a"] .duo__dot { background: var(--blush); }
.duo__row[data-person="b"] .duo__dot { background: var(--mint); }
.duo__ok { opacity: 0; color: #3a8a6a; font-style: normal; font-size: 12px; transition: opacity 0.2s; font-weight: 700; }
.duo__row.is-answered .duo__ok { opacity: 1; }
.letters { display: flex; gap: 6px; flex: none; }
.letter { width: 46px; height: 46px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--cream); color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.12s; }
.letter:hover { border-color: var(--ink); color: var(--ink); }
.letter:active { transform: scale(0.96); }
.duo__row[data-person="a"] .letter[aria-pressed="true"] { background: var(--blush); border-color: var(--blush); color: #fff; font-weight: 700; }
.duo__row[data-person="b"] .letter[aria-pressed="true"] { background: var(--mint); border-color: var(--mint); color: #1a4a38; font-weight: 700; }

.quiz__actions { position: sticky; bottom: 0; z-index: 30; background: rgba(250, 246, 238, 0.9); backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px)); }
.quiz__actions-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quiz__actions-left { display: flex; gap: 14px; align-items: center; }
.quiz__actions-right { display: flex; align-items: center; gap: 14px; }
.quiz__hint { font-size: 12px; color: #a06a1a; max-width: 220px; }
.quiz__actions .btn { min-height: 48px; padding: 0 26px; }
.quiz__actions .btn[disabled] { opacity: 0.45; box-shadow: none; }

.handoff { text-align: center; max-width: 560px; margin: 0 auto; padding: clamp(30px, 8vh, 80px) 0; }
.handoff__icon { width: 76px; height: 76px; margin: 0 auto 26px; border-radius: 24px; border: 1px solid var(--line); display: grid; place-content: center; background: var(--paper); font-size: 30px; box-shadow: var(--shadow-sm); }
.handoff h1 { font-size: clamp(26px, 4vw, 40px); line-height: 1.1; margin-bottom: 14px; }
.handoff p { color: var(--ink-soft); margin: 0 0 28px; }
.handoff .btn { min-width: 260px; }
.spinner { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blush); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link-btn { background: none; border: 0; color: var(--muted); font-size: 13.5px; cursor: pointer; padding: 10px 4px; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--blush); }
.link-btn[disabled] { opacity: 0.4; cursor: default; text-decoration: none; }

/* ---------- результат ---------- */

.result { padding: clamp(28px, 4vw, 48px) 0 80px; }
.verdict { display: grid; grid-template-columns: 240px 1fr; gap: clamp(22px, 4vw, 44px); align-items: center; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: 28px; background: radial-gradient(600px 300px at 0% 0%, var(--blush-soft), transparent 65%), var(--paper); box-shadow: var(--shadow-md); }
.verdict__ring { width: 240px; height: 240px; position: relative; }
.verdict__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.verdict__num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-family: var(--display); font-size: 56px; letter-spacing: -0.04em; line-height: 1; color: var(--ink); }
.verdict__num small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: var(--muted); margin-top: 8px; }
.verdict h1 { font-size: clamp(24px, 3vw, 36px); line-height: 1.12; margin: 0 0 12px; color: var(--ink); }
.verdict p { color: var(--ink-soft); margin: 0 0 16px; max-width: 52ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; border: 1.5px solid var(--line-strong); border-radius: 100px; padding: 6px 12px; color: var(--ink-soft); background: var(--cream); }
.chip--warn { border-color: rgba(245, 227, 160, 0.8); color: #7a601a; background: var(--butter-soft); }
.chip--ok { border-color: rgba(157, 217, 194, 0.6); color: #2a6a52; background: var(--mint-soft); }

.result__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; align-items: start; }
.block { border: 1px solid var(--line); border-radius: 24px; background: var(--paper); box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 30px); }
.block h2 { font-size: 20px; margin: 0 0 8px; color: var(--ink); }
.block h3 { font-size: 16px; margin: 0 0 8px; color: var(--ink); }
.block p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.block--accent { border-color: rgba(242, 139, 116, 0.4); background: linear-gradient(135deg, var(--blush-soft), var(--paper)); }

.radar { display: grid; place-items: center; }
.radar svg { width: 100%; height: auto; display: block; }
.radar text { font-family: var(--mono); font-size: 8px; fill: var(--muted); letter-spacing: 0.04em; }
.radar .ring { fill: none; stroke: rgba(42, 37, 32, 0.1); stroke-width: 1; }
.radar .axis { stroke: rgba(42, 37, 32, 0.09); stroke-width: 1; }
.radar .pa { fill: rgba(242, 139, 116, 0.16); stroke: var(--blush); stroke-width: 1.6; }
.radar .pb { fill: rgba(157, 217, 194, 0.16); stroke: var(--mint); stroke-width: 1.6; }
.legend { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

.bars { display: grid; gap: 12px; }
.bar__top { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-soft); margin-bottom: 5px; }
.bar__top b { font-family: var(--mono); font-size: 11.5px; color: var(--muted); font-weight: 400; }
.bar__track { height: 8px; border-radius: 100px; background: rgba(42, 37, 32, 0.06); overflow: hidden; position: relative; }
.bar__fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--blush), var(--butter)); }
.bar__ghost { position: absolute; top: 0; height: 100%; width: 2px; background: var(--mint); opacity: 0.95; }

.locked__list { display: grid; gap: 8px; margin-top: 16px; }
.locked__item { position: relative; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 12px; overflow: hidden; background: var(--cream); }
.locked__item span { position: relative; z-index: 2; }
.locked__item::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(250, 246, 238, 0.92) 55%); z-index: 1; }
.locked__item em { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; color: var(--blush); font-style: normal; margin-left: auto; position: relative; z-index: 2; }

.paywall { margin-top: 16px; border: 1.5px solid rgba(242, 139, 116, 0.4); border-radius: 28px; padding: clamp(24px, 4vw, 40px); background: radial-gradient(500px 260px at 85% 0%, var(--blush-soft), transparent 68%), var(--paper); box-shadow: var(--shadow-md); text-align: center; }
.paywall h2 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 10px; color: var(--ink); }
.paywall p { color: var(--ink-soft); margin: 0 auto 24px; max-width: 54ch; }
.paywall .btn { min-width: 300px; }
.paywall__meta { margin-top: 16px; font-size: 12px; color: var(--muted); display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.paywall__meta span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
.paywall__meta span:first-child::before { display: none; }

/* ---------- отчёт ---------- */

.report { padding: clamp(24px, 4vw, 44px) 0 80px; }
.report__head { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: space-between; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.report__head h1 { font-size: clamp(28px, 4vw, 46px); line-height: 1.06; margin: 12px 0 8px; color: var(--ink); }
.report__meta { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.report__layout { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.report__side { position: sticky; top: 84px; display: grid; gap: 14px; }
.report__section { padding: 26px 0; border-bottom: 1px solid var(--line); }
.report__section:last-child { border-bottom: 0; }
.report__section h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 10px; display: flex; gap: 12px; align-items: baseline; color: var(--ink); }
.report__section h2 span { font-family: var(--mono); font-size: 11px; color: var(--blush); letter-spacing: 0.12em; }
.report__section p { margin: 0 0 12px; color: var(--ink-soft); font-size: 16px; line-height: 1.65; }
.report__section p:last-child { margin-bottom: 0; }
.scenario { border: 1px solid var(--line); border-radius: 20px; padding: 20px; background: var(--paper); margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.scenario__top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.scenario h3 { font-size: 16px; color: var(--ink); }
.scenario b { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--mint); text-transform: uppercase; font-weight: 400; }
.scenario p { font-size: 14.5px; color: var(--ink-soft); margin: 0; }
.proto { counter-reset: p; display: grid; gap: 10px; }
.proto__item { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.proto__item::before { counter-increment: p; content: counter(p); width: 34px; height: 34px; border-radius: 50%; display: grid; place-content: center; background: var(--blush-soft); color: var(--blush); font-family: var(--mono); font-size: 13px; font-weight: 700; }
.proto__item h3 { font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.proto__item p { margin: 0; font-size: 14.5px; color: var(--ink-soft); }
.questions { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: q; }
.questions li { counter-increment: q; display: grid; grid-template-columns: 30px 1fr; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; font-size: 15px; color: var(--ink-soft); background: var(--paper); box-shadow: var(--shadow-sm); }
.questions li::before { content: "0" counter(q); font-family: var(--mono); font-size: 11px; color: var(--blush); }
.flag { border-left: 3px solid var(--butter); padding: 12px 0 12px 16px; margin-bottom: 10px; }
.flag--high { border-color: var(--blush); }
.flag b { display: block; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.flag span { color: var(--ink-soft); font-size: 14px; }
.disclaimer { margin-top: 30px; padding: 22px 24px; border: 1.5px dashed var(--line-strong); border-radius: 18px; color: var(--muted); font-size: 12.5px; line-height: 1.6; background: var(--cream); }
.download { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--blush); border-bottom: 1.5px solid var(--blush-soft); padding-bottom: 2px; font-weight: 600; }
.generating { min-height: 60vh; display: grid; place-content: center; text-align: center; }
.spinner { width: 64px; height: 64px; margin: 0 auto 22px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--blush); animation: spin 1s linear infinite; }

/* админка */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.admin-table th { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.stat { border: 1px solid var(--line); border-radius: 18px; padding: 18px; background: var(--paper); box-shadow: var(--shadow-sm); }
.stat b { display: block; font-family: var(--display); font-size: 26px; margin-bottom: 4px; color: var(--ink); }
.stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); text-transform: uppercase; }

/* анимации */
.reveal { opacity: 1; transform: none; }
.js-anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; } html { scroll-behavior: auto; } .js-anim .reveal { opacity: 1; transform: none; } .scan::after { display: none; } }

/* марки */
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 14px 0; background: rgba(255, 255, 255, 0.4); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; gap: 34px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 34px; white-space: nowrap; }
.marquee span::after { content: "♥"; color: var(--blush); font-size: 9px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* адаптив */
@media (max-width: 980px) {
  .hero__grid, .form-grid, .price, .report__layout { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .sample { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; }
  .verdict__ring { width: 180px; height: 180px; margin-inline: auto; }
  .result__grid { grid-template-columns: 1fr; }
  .report__side { position: static; grid-row: 1; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero__video { opacity: 0.22; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .cards, .steps, .honest, .stat-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: clamp(30px, 9vw, 40px); }
  .btn { width: 100%; }
  .topbar .btn { width: auto; }
  .hero__cta .btn--ghost { width: 100%; }
  .scan__body { grid-template-columns: 1fr; justify-items: center; }
  .scan__rows { width: 100%; }
  .quiz__pair { font-size: 9.5px; gap: 5px; }
  .opt-text { font-size: 14.5px; }
  .letters { gap: 5px; }
  .letter { width: 40px; height: 40px; border-radius: 10px; }
  .duo__row { padding: 9px 10px; gap: 8px; }
  .duo__who { font-size: 13px; }
  .quiz__hint { display: none; }
  .quiz__actions .btn { padding: 0 18px; font-size: 15px; min-height: 46px; }
  .quiz__actions-left .link-btn { font-size: 12px; }
  .paywall .btn { min-width: 0; }
  .verdict__num { font-size: 44px; }
  .report__head { align-items: flex-start; }
}
EOF
python3 -m pytest tests -q 2>&1 | tail -2