/* impact admissions quiz. Tokens follow the ui-taste system: ink navy, one cobalt accent, one radius scale. */
/* Inter вариативный: один файл на набор знаков отдаёт все начертания от 400 до 800. */
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url('./fonts/inter-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url('./fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --ink: #070732;
  --text: #0e0e12;
  --text-muted: rgba(14, 14, 18, .64);
  --text-subtle: rgba(7, 7, 50, .4);
  --on-ink: #fff;
  --on-ink-muted: rgba(255, 255, 255, .68);
  --accent: #1455ff;
  --accent-hover: #0f47e0;
  --accent-on-ink: #5c8bff;
  --accent-soft: rgba(20, 85, 255, .08);
  --accent-softer: rgba(20, 85, 255, .05);
  --bg: #fff;
  --surface: rgba(2, 9, 26, .04);
  --surface-strong: rgba(2, 9, 26, .07);
  --lavender: #f6f3ff;
  --glass: rgba(255, 255, 255, .14);
  --hairline: rgba(7, 7, 50, .1);
  --danger: #f93c3c;
  --wa: #25d366;
  --wa-press: #1fbd5a;
  --success: #12b76a;
  --success-soft: #e3f5ec;
  --success-on-ink: #6ee7b0;
  --success-text: #0b7a47;
  --focus: #b4332a;
  --focus-soft: #fdecea;
  --gold: #f5b301;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-pill: 999px;
  --shadow-1: 0 8px 20px rgba(7, 7, 50, .08);
  --shadow-up: 0 -8px 24px rgba(7, 7, 50, .08);
  --shadow-float: 0 24px 84px rgba(7, 7, 50, .15);
  --edge: inset 0 0 0 1.5px var(--hairline);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: 150ms;
  --t-base: 240ms;
  --gutter: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.4 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { hyphens: none; overflow-wrap: normal; text-wrap: balance; }
p { text-wrap: pretty; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.app-shell {
  max-width: 480px;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

/* Header: back, three stage segments, question counter. One row. */
.top {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 40px 1fr 52px; align-items: center; gap: 12px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) var(--gutter) 8px;
  background: var(--bg);
}
.top-back {
  width: 40px; height: 40px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--surface);
  transition: background var(--t-fast) var(--ease);
}
.top-back:active { background: var(--surface-strong); }
.is-hidden { visibility: hidden; }
.brand { text-align: center; font-size: 15px; color: var(--text-muted); letter-spacing: -.01em; }
.brand b { color: var(--ink); font-weight: 800; }
.brand-logo { display: block; margin: 0 auto; width: auto; height: 30px; }
.top-count { text-align: right; font-size: 13px; font-weight: 600; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.stage { height: 6px; border-radius: var(--r-pill); background: var(--surface-strong); overflow: hidden; }
.stage i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--accent); transition: width 500ms var(--ease-out); }

/* Screens */
.screen { flex: 1; display: flex; flex-direction: column; padding: 16px var(--gutter) calc(24px + var(--safe-bottom)); }
.screen.has-sticky { padding-bottom: 0; }
.sticky {
  position: sticky; bottom: 0; z-index: 4;
  margin: auto calc(-1 * var(--gutter)) 0;
  padding: 12px var(--gutter) calc(12px + var(--safe-bottom));
  background: var(--bg);
  box-shadow: var(--shadow-up);
}
.rise { animation: rise var(--t-base) var(--ease-out) both; }
.rise:nth-child(2) { animation-delay: 60ms; }
.rise:nth-child(3) { animation-delay: 120ms; }
.rise:nth-child(n + 4) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.q-head { margin-bottom: 16px; }
.q-title { font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; color: var(--ink); }
.q-sub { margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.muted { color: var(--text-muted); font-size: 15px; }
.card-title + .muted { margin-top: 6px; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; padding: 0 20px;
  border-radius: var(--r-sm);
  font-size: 16px; font-weight: 600; white-space: nowrap; text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-ink); }
.btn-primary:active { background: var(--accent-hover); }
.btn-secondary { background: var(--surface); color: var(--text); }
.btn-wa { background: var(--wa); color: var(--ink); font-weight: 700; }
.btn-wa:active { background: var(--wa-press); }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* Answer rows */
.options { display: grid; gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  transition: background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.opt:active { transform: scale(.985); }
.opt-icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center;
  background: var(--bg); box-shadow: var(--edge);
  font-size: 24px; line-height: 1;
}
.i3d { width: 1.3em; height: 1.3em; object-fit: contain; }
.tile-0 { background: #e8f0ff; box-shadow: none; }
.tile-1 { background: #fff1d6; box-shadow: none; }
.tile-2 { background: #e3f5ec; box-shadow: none; }
.tile-3 { background: #ffe6ee; box-shadow: none; }
.tile-4 { background: #efe9ff; box-shadow: none; }
.tile-5 { background: #ffe9db; box-shadow: none; }
.hl { color: var(--accent); }
.hero .hl { color: var(--accent-on-ink); }
.stars { color: var(--gold); letter-spacing: 1px; }
.opt-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.opt-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.opt-sub { font-size: 14px; color: var(--text-muted); line-height: 1.3; }
.opt-mark {
  flex: none; width: 24px; height: 24px; border-radius: var(--r-pill);
  display: grid; place-items: center; color: transparent; box-shadow: var(--edge);
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.opt-quote { background: var(--lavender); }
.opt.is-selected { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.opt.is-selected .opt-mark { background: var(--accent); color: var(--on-ink); box-shadow: none; }
.opt.is-selected .opt-icon { box-shadow: inset 0 0 0 1.5px var(--accent); }

/* Country photo tiles */
.country-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.country {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--r-md); overflow: hidden; background: var(--surface);
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.country:active { transform: scale(.98); }
.country-flag { position: absolute; inset: 0 0 44px; display: grid; place-items: center; font-size: 34px; background: var(--accent-softer); }
.country-img { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9.5; object-fit: cover; opacity: 0; transition: opacity 320ms var(--ease); }
.country-img.is-loaded { opacity: 1; }
.country-label { position: relative; padding: 12px 14px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; background: var(--bg); box-shadow: inset 0 0 0 1.5px var(--hairline); border-radius: 0 0 var(--r-md) var(--r-md); }
.country-check {
  position: absolute; top: 10px; right: 10px; z-index: 1;
  width: 28px; height: 28px; border-radius: var(--r-pill);
  display: grid; place-items: center; background: var(--accent); color: var(--on-ink);
  opacity: 0; transform: scale(.6);
  transition: opacity var(--t-fast) var(--ease), transform var(--t-base) var(--ease-out);
}
.country.is-selected { box-shadow: 0 0 0 2.5px var(--accent); }
.country.is-selected .country-check { opacity: 1; transform: none; }
.country.is-selected .country-label { color: var(--accent); box-shadow: none; background: var(--accent-soft); }
.country-plain { grid-column: 1 / -1; }
.country-plain { flex-direction: row; align-items: center; justify-content: center; gap: 8px; box-shadow: var(--edge); background: var(--bg); padding: 0 16px; }
.country-plain .country-label { padding: 16px 0; background: none; box-shadow: none; }
.country-emoji { font-size: 20px; line-height: 1; }
.country-plain.is-selected { background: var(--accent-soft); }
.country-plain.is-selected .country-label { background: none; }
.country-plain .country-check { top: 50%; margin-top: -14px; }

/* Dark hero shell: the one dark block per screen */
.hero {
  position: relative; overflow: hidden;
  padding: 24px 20px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--on-ink);
}
.proof-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.proof-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--glass); font-size: 13px; font-weight: 600; white-space: nowrap;
}
.proof-chip-ok { background: rgba(18, 183, 106, .22); color: var(--success-on-ink); margin-bottom: 14px; }
.hero-result .proof-chip-ok { position: absolute; top: 16px; left: 16px; background: var(--ink); }
.hero-title { font-size: 34px; line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.hero-title-sm { font-size: 27px; line-height: 1.12; letter-spacing: -.025em; }
.hero-sub { margin-top: 10px; font-size: 15px; color: var(--on-ink-muted); }
.hero-sub-strong { color: var(--on-ink); font-weight: 600; }
.method-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 12px 6px 8px; border-radius: var(--r-pill); background: var(--glass); font-size: 13px; font-weight: 600; }
.hero-photos { display: flex; justify-content: center; margin: 26px 0 -4px; padding: 0 8px; }
.hero-photo {
  width: 36%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: var(--r-sm); border: 3px solid var(--on-ink);
  box-shadow: 0 12px 28px rgba(5, 5, 33, .5);
  opacity: 0; transition: opacity 320ms var(--ease);
}
.hero-photo.is-loaded { opacity: 1; }
.hero-photo:nth-child(1) { transform: rotate(-7deg) translate(10px, 10px); }
.hero-photo:nth-child(2) { position: relative; z-index: 1; }
.hero-photo:nth-child(3) { transform: rotate(7deg) translate(-10px, 10px); }
.hero-compact { margin-bottom: 12px; }
.hero .stairs { margin-top: 10px; }
.hero-result {
  margin-bottom: 12px;
  padding-top: 132px;
  background-image: linear-gradient(180deg, rgba(7, 7, 50, .1) 0, rgba(7, 7, 50, .72) 96px, var(--ink) 150px), var(--photo);
  background-size: 100% auto; background-repeat: no-repeat; background-position: center top;
}
.deadline { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 15px; font-weight: 600; }

/* Start screen */
.screen-start { padding-top: 4px; }
.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
/* The two answers on the first screen are the main action: a bold blue edge and a filled arrow say "tap me" */
.role-card {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 8px; align-items: center;
  padding: 16px; border-radius: var(--r-md); background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--accent), 0 8px 20px rgba(20, 85, 255, .12);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.role-card:active { transform: scale(.98); background: var(--accent-soft); }
.role-icon { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.role-text { grid-column: 1 / -1; font-size: 17px; font-weight: 700; letter-spacing: -.015em; white-space: nowrap; }
.role-arrow { grid-column: 2; grid-row: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-ink); }
.role-card.is-selected { background: var(--accent-soft); }
.start-proof { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: auto; padding-top: 96px; }
.takers { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; }

/* Trust blocks: moving name strips, laurels, rating */
.names-title { margin-bottom: 10px; text-align: center; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.insight .names { margin-top: 18px; }
.proof .names { margin-bottom: 18px; }
.marquee { overflow: hidden; margin: 0 calc(-1 * var(--gutter)); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 24s linear infinite; }
.marquee-copy { display: flex; }
.wordmark { flex: none; padding: 0 16px; font-size: 17px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); opacity: .72; white-space: nowrap; }
.logo { flex: none; display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.logo img { flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
.laurels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; margin-bottom: 14px; }
.laurel { display: flex; align-items: center; justify-content: center; gap: 2px; }
.laurel-branch { flex: none; fill: var(--gold); }
.laurel-branch:last-child { transform: scaleX(-1); }
.laurel-body { min-width: 0; text-align: center; }
.laurel-body b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.laurel-body span { display: block; margin-top: 2px; font-size: 11px; line-height: 1.2; color: var(--text-muted); }
.rating { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--text-muted); }
.rating b { font-size: 20px; font-weight: 800; color: var(--ink); }
.proof .rating { margin-bottom: 18px; }

/* Cards */
.card { padding: 20px; border-radius: var(--r-md); background: var(--surface); margin-bottom: 12px; }
.card-plain { padding: 16px 12px 8px; }
.card-title { font-size: 20px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.card-title-gap { margin-top: 20px; }
.data-card, .stat-card {
  background: radial-gradient(130% 85% at 100% 0%, rgba(20, 85, 255, .1), var(--bg) 58%);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-1);
}
.bulb { display: flex; align-items: flex-start; gap: 14px; padding: 16px; background: var(--lavender); }
.bulb-icon {
  flex: none; width: 46px; height: 46px; border-radius: var(--r-sm);
  display: grid; place-items: center; background: var(--bg); font-size: 24px; line-height: 1;
}
.bulb-title { font-size: 18px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.bulb-text { margin-top: 4px; font-size: 15px; line-height: 1.35; color: var(--text); }
.hint { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--accent-softer); font-size: 14px; color: var(--text); }

/* Screens between questions */
.insight { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 20px; }
.insight .q-title { margin-bottom: 16px; }
.hero-about {
  padding: 20px 20px 24px; margin-bottom: 10px; text-align: center;
  background-image: linear-gradient(180deg, rgba(7, 7, 50, .62), rgba(7, 7, 50, .9)), var(--photo);
  background-size: cover; background-position: center;
}
.hero-about .brand { color: var(--on-ink-muted); margin-bottom: 18px; }
.hero-about .brand b { color: var(--on-ink); }
.hero-about .laurel { gap: 6px; }
.hero-about .laurel-branch { width: 42px; height: 84px; }
.hero-about .laurel-body b { font-size: min(60px, 14vw); line-height: .95; letter-spacing: -.05em; color: var(--on-ink); }
.hero-about .laurel-body span { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--on-ink); }
.hero-about .rating { margin-top: 16px; color: var(--on-ink-muted); }
.hero-about .rating b { color: var(--on-ink); }
/* A screen without a question must not look like one: centred title, a picture on top, tiles nobody can tap */
.i-title { text-align: center; text-wrap: balance; }
.i-art { justify-self: center; display: grid; place-items: center; width: 96px; height: 96px; margin: 4px 0 16px; border-radius: 50%; background: var(--accent-soft); font-size: 46px; line-height: 1; }
/* Reply to a fear: empathy first, then "Но" with a number, then a student. Blocks come in one after another */
.i2 { justify-items: center; text-align: center; }
.i2 > * { animation: rise 560ms var(--ease-out) var(--d, 0ms) both; }
.i2-art { width: 60px; height: 60px; margin: 0 0 12px; font-size: 34px; }
.i2-feel { --d: 120ms; max-width: 340px; font-size: 20px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.i2-norm { --d: 650ms; margin-top: 12px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); font-size: 13px; font-weight: 600; color: var(--text-muted); }
.i2-turn { --d: 1500ms; width: 100%; margin-top: 18px; padding: 18px 20px 22px; border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); animation-name: turn; }
.i2-but { display: inline-block; padding: 4px 12px; border-radius: var(--r-pill); background: var(--glass); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.i2-value { margin-top: 10px; font-size: 68px; line-height: 1; font-weight: 800; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.i2-value small { font-size: 30px; letter-spacing: -.03em; }
.i2-value small:first-child { margin-right: 8px; }
.i2-value small:last-child { margin-left: 8px; }
.i2-fact { margin-top: 10px; font-size: 19px; line-height: 1.32; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
/* The underline is drawn after the number has counted up; without motion it is simply there */
.i2-fact u { padding-bottom: 3px; background: linear-gradient(var(--accent-on-ink), var(--accent-on-ink)) no-repeat 0 100% / 100% 3px; text-decoration: none; animation: underline 700ms var(--ease-out) 2500ms both; }
.i2-case { --d: 3000ms; width: 100%; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--lavender); text-align: left; }
.i2-who { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
/* A long result tag drops under the name instead of squeezing it */
.i2-by { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; }
.i2-case blockquote { margin-top: 8px; font-size: 15px; line-height: 1.4; }
@keyframes turn { from { opacity: 0; transform: translateY(22px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes underline { from { background-size: 0 3px; } }
.crits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.crit { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 8px 14px; border-radius: var(--r-md); text-align: center; }
.crit-icon { margin-bottom: 6px; font-size: 34px; line-height: 1; }
.crit b { font-size: 16px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.crit-note { font-size: 12px; color: var(--text-muted); }
.crit .crit-tag { margin-top: 8px; background: var(--bg); color: var(--ink); }
.source { text-align: center; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.knows { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.know { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 6px; border-radius: var(--r-sm); text-align: center; }
.know-icon { margin-bottom: 4px; font-size: 24px; line-height: 1; }
.know b { font-size: 14px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.know span:last-child { font-size: 12px; color: var(--text-muted); }

/* A family's message, as it looked in the chat */
.chat { padding: 14px 16px; border-radius: var(--r-md) var(--r-md) var(--r-md) var(--r-xs); background: var(--success-soft); }
.chat figcaption { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--success-text); }
.chat blockquote { font-size: 15px; line-height: 1.4; }
.chat-place { display: inline-block; margin-top: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink); }
.rotator { display: grid; }
.rotator > * { grid-area: 1 / 1; align-self: start; opacity: 0; transform: translateY(8px); transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.rotator > .is-on { opacity: 1; transform: none; }
.stat-value { font-size: 44px; line-height: 1; font-weight: 800; letter-spacing: -.04em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat-label { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--text-muted); }

/* Cases: one card in view, the next one peeks in; the row moves on its own */
.cases-wrap { min-width: 0; margin: 0 calc(-1 * var(--gutter)); }
.cases {
  display: flex; gap: 10px; overflow-x: auto; padding: 2px var(--gutter);
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cases::-webkit-scrollbar { display: none; }
.cases.is-dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
@media (hover: hover) { .cases { cursor: grab; } }
.cases .case { flex: 0 0 84%; scroll-snap-align: start; margin: 0; }
.case { display: flex; flex-direction: column; padding: 18px 20px; border-radius: var(--r-md); background: var(--lavender); margin-bottom: 12px; }
.case-uni { display: flex; align-items: center; gap: 6px; align-self: flex-start; margin-bottom: 10px; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg); font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.case-result { margin-bottom: 8px; font-size: 20px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.case blockquote { font-size: 15px; line-height: 1.4; color: var(--text); }
.case figcaption { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 14px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.avatar { flex: none; width: 32px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--ink); color: var(--on-ink); font-size: 14px; font-weight: 700; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.dots i { width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--surface-strong); transition: width var(--t-base) var(--ease), background var(--t-base) var(--ease); }
.dots i.is-on { width: 18px; background: var(--accent); }

/* Rows of cards scrolled by hand: letters and chat messages */
.proof-block { margin: 8px 0 16px; }
.proof-block .card-title { margin-bottom: 12px; }
.strip {
  display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter);
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.strip::-webkit-scrollbar { display: none; }
.strip > * { flex: 0 0 80%; scroll-snap-align: start; margin: 0; }
.letter { border-radius: var(--r-md); overflow: hidden; background: var(--bg); border: 1px solid var(--hairline); }
.letter img { width: 100%; height: auto; aspect-ratio: 560 / 373; background: var(--surface); }
.letter figcaption { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 12px 14px; border-top: 1px solid var(--hairline); font-size: 15px; }

/* Gift wheel */
/* overflow: a turning square is wider than the phone; without the clip the whole page starts to scroll sideways. */
.wheel-body { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; padding-bottom: 20px; overflow: hidden; }
.wheel-body .q-title { justify-self: stretch; }
.wheel-wrap { position: relative; width: min(296px, calc(100% - 16px)); aspect-ratio: 1; margin: 24px 0 12px; }
.wheel {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden; color: var(--on-ink);
  background: conic-gradient(from -30deg, #1455ff 0 60deg, #070732 0 120deg, #7a5cff 0 180deg, #1455ff 0 240deg, #070732 0 300deg, #7a5cff 0 360deg);
  box-shadow: 0 0 0 8px var(--ink), var(--shadow-float);
  transition: transform 4200ms cubic-bezier(.12, .72, .1, 1);
}
.wheel-seg { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding-top: 8%; transform: rotate(calc(var(--i) * 60deg)); text-align: center; font-size: 11px; line-height: 1.15; }
.wheel-icon { font-size: 26px; line-height: 1; }
.wheel-hub { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); box-shadow: 0 0 0 5px var(--ink); font-size: 26px; }
.wheel-pin { position: absolute; z-index: 2; left: 50%; top: -20px; margin-left: -13px; border: 13px solid transparent; border-top: 24px solid var(--gold); filter: drop-shadow(0 2px 2px rgba(7, 7, 50, .3)); }
.won { display: none; align-items: center; gap: 14px; width: 100%; margin: 0; padding: 16px; background: var(--success-soft); }
.won-label { font-size: 13px; font-weight: 700; color: var(--success-text); }
.wheel-take, .is-won .wheel-spin { display: none; }
.is-won .wheel-take { display: flex; }
.is-won .won { display: flex; animation: rise var(--t-base) var(--ease-out) both; }
.is-spinning .wheel-spin { opacity: .35; pointer-events: none; }
.confetti { position: fixed; inset: 0; z-index: 30; overflow: hidden; pointer-events: none; }
.confetti i { position: absolute; top: -16px; width: 8px; height: 14px; border-radius: 2px; animation: confetti 2000ms var(--ease) both; }
@keyframes confetti { to { transform: translate(var(--drift), 105vh) rotate(var(--spin)); } }

/* Loader */
.loader { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.loader .q-title { margin-bottom: 0; }
@keyframes pulse { from { opacity: .35; } to { opacity: 1; } }

/* Tags and pills */
.tag { display: inline-block; padding: 3px 8px; border-radius: var(--r-xs); background: var(--surface-strong); font-size: 12px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.tag-accent { background: var(--accent-soft); color: var(--accent); }
.tag-ok { background: var(--success-soft); color: var(--success-text); }
.tag-gap { background: var(--focus-soft); color: var(--focus); }

/* Forms */
.form-lead { font-size: 16px; line-height: 1.4; font-weight: 500; }
.form-card form { display: grid; gap: 12px; margin-top: 16px; }
.gifts { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--success-soft); }
.gifts-title { margin-bottom: 8px; font-size: 13px; font-weight: 700; color: var(--success-text); }
.gifts ul { display: grid; gap: 8px; }
.gifts li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.field { position: relative; display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 600; color: var(--text-muted); }
input {
  width: 100%; height: 52px; padding: 0 16px;
  border: 0; border-radius: var(--r-sm);
  background: var(--bg); box-shadow: var(--edge);
  font: inherit; font-size: 17px; color: var(--text);
  transition: box-shadow var(--t-fast) var(--ease);
}
input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent), 0 0 0 4px var(--accent-soft); }
input::placeholder { color: var(--text-subtle); }
.phone-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.code-btn { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 14px; border-radius: var(--r-sm); background: var(--bg); box-shadow: var(--edge); font-size: 16px; font-weight: 600; white-space: nowrap; }
.code-list { position: absolute; z-index: 6; top: calc(100% + 6px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 6px; border-radius: var(--r-sm); background: var(--bg); box-shadow: var(--shadow-float); }
.code-option { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; width: 100%; padding: 12px 10px; border-radius: var(--r-xs); font-size: 15px; }
.code-option.is-active { background: var(--accent-soft); }
.code-value { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.field-error { min-height: 0; font-size: 14px; color: var(--danger); }
.field-error:empty { display: none; }
.secure { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 13px; color: var(--text-muted); }
.thanks svg { flex: none; color: var(--success); }
.alt-line { margin-top: 18px; font-size: 14px; color: var(--text-muted); }
.alt-line a { color: var(--accent); font-weight: 600; text-decoration: none; }
.thanks { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }

/* Confirm sheet */
.confirm-backdrop { position: fixed; inset: 0; z-index: 20; display: flex; align-items: flex-end; justify-content: center; background: rgba(7, 7, 50, .5); animation: fade var(--t-base) var(--ease) both; }
.confirm-card { width: 100%; max-width: 480px; padding: 24px 20px calc(20px + var(--safe-bottom)); border-radius: var(--r-md) var(--r-md) 0 0; background: var(--bg); box-shadow: var(--shadow-float); animation: rise var(--t-base) var(--ease-out) both; }
.confirm-data { display: grid; gap: 2px; margin: 16px 0; border-radius: var(--r-sm); overflow: hidden; }
.confirm-data div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 16px; background: var(--surface); }
.confirm-data dt { color: var(--text-muted); }
.confirm-data dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.confirm-actions { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Results */
.results { padding-top: 12px; }
.res-head { margin: 4px 4px 14px; font-size: 30px; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; }
.res-name { color: var(--ink); overflow-wrap: anywhere; }
.res-name + .res-title { color: var(--accent); }
.res-title { color: var(--ink); }
.call-head { display: grid; grid-template-columns: auto 1fr; gap: 14px; margin-bottom: 16px; }
.call-head .muted { margin-top: 6px; }
.icon-chip { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--success-soft); color: var(--success-text); }
.call-number {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
  border-radius: var(--r-sm); background: var(--success-soft); color: var(--success-text); box-shadow: inset 0 0 0 1.5px rgba(18, 183, 106, .35);
  font-size: 18px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.call-number:active { transform: scale(.98); }
.call-number span { flex: 1; }
.next-steps { display: grid; margin-top: 12px; }
.next-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding-bottom: 14px; }
.next-step:not(:last-child)::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--hairline); }
.next-when { font-size: 12px; font-weight: 700; color: var(--accent); }
.next-text { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.free-note { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--success-soft); color: var(--success-text); font-size: 15px; font-weight: 700; }
.mock { position: relative; margin-top: 14px; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--shadow-1); container-type: inline-size; }
.mock img { width: 100%; height: auto; }
.mock-dear { position: absolute; left: 5.2%; top: 25%; font: 600 16px/1 Georgia, 'Times New Roman', serif; font-size: 5.4cqw; color: #1b1b1f; }
.mock-stamp { position: absolute; right: 6%; top: 21%; padding: 4px 12px; border: 2px solid var(--danger); border-radius: var(--r-xs); background: rgba(255, 255, 255, .7); color: var(--danger); font-size: 14px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transform: rotate(-8deg); }
.agenda-icon { flex: none; width: 36px; height: 36px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--bg); box-shadow: var(--edge); font-size: 18px; line-height: 1; }

/* Profile cards: loader and results */
.profile-block { margin: 8px 0 12px; }
.profile-block .card-title { margin-bottom: 12px; }
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pcard { display: flex; flex-direction: column; padding: 14px; border-radius: var(--r-md); background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline), var(--shadow-1); }
.pcard-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.pcard-icon { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface); font-size: 22px; line-height: 1; }
.pcard-title { margin-top: 10px; font-size: 17px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.pcard-vals { display: grid; margin-top: 10px; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--hairline); }
.pcard-vals div { padding: 8px 10px; }
.pcard-vals div + div { border-top: 1px solid var(--hairline); }
.pcard-vals dt { font-size: 11px; font-weight: 600; color: var(--text-muted); }
.pcard-vals dd { margin-top: 2px; font-size: 15px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
.pcard-need dd { color: var(--accent); }
.pcard-wait { display: none; }
.pcard[data-loader-card] { opacity: 0; transform: translateY(10px); transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); }
.pcard.is-checking, .pcard.is-done { opacity: 1; transform: none; }
.pcard.is-checking .pcard-status { display: none; }
.pcard.is-checking .pcard-wait { display: inline-block; animation: pulse 600ms var(--ease) infinite alternate; }
.pcard.is-checking dd { width: 72%; white-space: nowrap; overflow: hidden; border-radius: 6px; background: var(--surface-strong); color: transparent; animation: pulse 600ms var(--ease) infinite alternate; }

/* Growth chart: draws itself when it scrolls into view */
.growth { display: block; width: 100%; height: auto; margin-top: 12px; }
.gr-tick { font-size: 11px; font-weight: 600; fill: var(--text-muted); }
.gr-axis { stroke: var(--hairline); stroke-width: 1.5; }
.gr-wait { fill: none; stroke: var(--text-subtle); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 2 7; }
.gr-plan { fill: none; stroke: url(#gr-line); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.gr-area { fill: url(#gr-fill); }
.gr-tick-to { font-weight: 800; fill: var(--success-text); }
.gr-end { font-size: 12px; font-weight: 700; fill: var(--text-muted); }
.gr-end-plan { fill: var(--success-text); }
.gr-dot circle { fill: var(--bg); stroke: var(--accent); stroke-width: 2.5; }
.gr-dot text { font-size: 10px; font-weight: 800; fill: var(--accent); }
.gr-steps { display: grid; gap: 8px; margin-top: 12px; }
.gr-steps li { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.gr-num { flex: none; width: 24px; height: 24px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent); color: var(--on-ink); font-size: 12px; font-weight: 800; }
.gr-area, .gr-dot, .gr-end-plan, .gr-steps li { opacity: 0; }
.is-in .gr-plan { animation: draw 1300ms var(--ease-out) 150ms forwards; }
.is-in .gr-area { animation: fade 600ms var(--ease-out) 1100ms forwards; }
.is-in .gr-end-plan { animation: fade 300ms var(--ease-out) 1300ms forwards; }
.is-in .gr-dot { animation: fade 260ms var(--ease-out) calc(450ms + var(--i) * 200ms) forwards; }
.is-in .gr-steps li { animation: rise 320ms var(--ease-out) calc(450ms + var(--i) * 200ms) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.plan { display: grid; gap: 0; margin: 16px 0 14px; }
.plan-step { position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 14px; padding-bottom: 18px; }
.plan-step:last-child { padding-bottom: 0; }
.plan-step:not(:last-child)::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--hairline); }
.plan-num { width: 32px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--bg); box-shadow: var(--edge); font-size: 14px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan-step:first-child .plan-num { background: var(--accent); color: var(--on-ink); box-shadow: none; }
.plan-text { font-size: 17px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; padding-top: 5px; }
.plan-step .tag { margin: 5px 0 0; }
.plan-step .tag + .plan-text { padding-top: 6px; }
.unis { display: grid; gap: 2px; margin-top: 14px; border-radius: var(--r-sm); overflow: hidden; }
.uni { display: grid; grid-template-columns: 24px 1fr; gap: 4px 10px; align-items: center; padding: 12px 14px; background: var(--bg); }
.uni-flag { font-size: 18px; line-height: 1; }
.uni-name { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.uni-tags { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.proof { margin: 12px 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.proof .stats { margin-top: 16px; }
.stat { padding: 14px 10px; border-radius: var(--r-sm); background: var(--surface); text-align: center; }
.stat b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat span { display: block; margin-top: 4px; font-size: 12px; line-height: 1.25; color: var(--text-muted); }
.ig-link {
  display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 18px 0 12px;
  border-radius: var(--r-sm); background: var(--surface); color: var(--ink);
  font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-decoration: none;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.ig-link:active { transform: scale(.98); background: var(--surface-strong); }
.ig-link span:nth-child(2) { flex: 1; }
.ig-icon { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--on-ink); background: linear-gradient(45deg, #f9ce34, #ee2a7b 50%, #6228d7); }

/* Illustrations */
.stairs, .timeline { width: 100%; height: auto; }
.st-idle { fill: var(--surface-strong); }
.st-done { fill: rgba(20, 85, 255, .24); }
.st-on { fill: var(--accent); }
.st-person { fill: var(--ink); }
.st-text { font-size: 11px; font-weight: 600; fill: var(--text-muted); }
.st-text-on { font-weight: 800; fill: var(--accent); }
.hero .st-idle { fill: rgba(255, 255, 255, .12); }
.hero .st-done { fill: rgba(255, 255, 255, .3); }
.hero .st-on { fill: var(--accent-on-ink); }
.hero .st-person { fill: var(--on-ink); }
.hero .st-text { fill: var(--on-ink-muted); }
.hero .st-text-on { fill: var(--on-ink); }
.tl-line { stroke: var(--surface-strong); stroke-width: 4; stroke-linecap: round; }
.tl-line-on { stroke: var(--accent); }
.tl-dot { fill: var(--bg); stroke: var(--accent); stroke-width: 3; }
.tl-dot-on { fill: var(--accent); }
.tl-label { font-size: 12px; font-weight: 800; fill: var(--ink); }
.tl-note { font-size: 12px; font-weight: 600; fill: var(--text-muted); }

@media (max-height: 720px) {
  .screen-start .hero { padding: 20px 18px; }
  .screen-start .hero-title { font-size: 30px; }
  .hero-photos { margin-top: 18px; padding: 0 28px; }
}
@media (max-width: 359px) {
  .q-title { font-size: 23px; }
  .hero-title { font-size: 29px; }
  .opt-title { font-size: 16px; }
}
@media (min-width: 481px) {
  body { background: linear-gradient(160deg, #eaf0ff, #f6f3ff 55%, #eaf6f0) fixed; }
  /* Тень лежит на обёртке, а не на увеличенной колонке: так Safari рисует её без шва. */
  #app { max-width: calc(480px * var(--zoom, 1)); margin: 0 auto; box-shadow: var(--shadow-float); }
  .app-shell { background: var(--bg); }
}
/* Планшет и компьютер: та же колонка, только крупнее. Чем выше окно, тем крупнее, чтобы первый экран был виден целиком. */
@supports (zoom: 1.1) {
  @media (min-width: 700px) and (min-height: 720px) { #app { --zoom: 1.1; } }
  @media (min-width: 700px) and (min-height: 820px) { #app { --zoom: 1.25; } }
  @media (min-width: 700px) and (min-height: 920px) { #app { --zoom: 1.4; } }
  .app-shell { zoom: var(--zoom, 1); min-height: calc(100vh / var(--zoom, 1)); min-height: calc(100dvh / var(--zoom, 1)); }
  @media (min-width: 700px) { .start-proof { padding-top: 40px; } }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gr-plan { stroke-dashoffset: 0; }
  .gr-area, .gr-dot, .gr-end-plan, .gr-steps li { opacity: 1; }
  .marquee { overflow-x: auto; }
}
