/* Страница теста на СДВГ. Токены общие с лендингом и приложением (tokens.css). */

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* Цветная подложка под стеклом: без неё backdrop-filter размывает ровный крем,
   и панель выглядит серой. Слой неподвижен — скролл карточки его не тащит. */
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background: var(--mesh-bg);
}

h1, h2, h3 { margin: 0 0 .5em; font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

.test { max-width: 720px; margin: 0 auto; padding: 20px 20px 64px; }

/* --- прогресс --- */
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 20px;
}
.bar__track {
  flex: 1;
  height: 8px;
  border-radius: 99px;
  background: rgba(30, 30, 30, .1);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  border-radius: 99px;
  background: var(--lime-cta);
  transition: width .3s ease;
}
.bar__count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* --- карточка --- */
.stack { display: flex; flex-direction: column; gap: 16px; }

.card {
  border: 1px solid var(--glass-brd);
  border-radius: var(--radius-lg);
  background: var(--glass-face-strong);
  box-shadow: var(--glass-gloss), var(--glass-shadow);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  padding: 28px;
}

.kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--lime-ink);
}
.title { font-size: 30px; }
.question { font-size: 23px; margin-bottom: .35em; }
.lead { color: var(--ink-soft); }
.hint { color: var(--muted); font-size: 15px; margin-bottom: 1em; }
.fine { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

/* --- кнопки --- */
.cta {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 15px 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--lime-cta);
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.cta:active { transform: translateY(0); }

.link {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 14px;
  text-decoration: underline;
}

/* --- варианты --- */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 1.2em; }
.option {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass-face);
  font-size: 16px;
  transition: border-color .12s ease, background .12s ease;
}
.option:hover { border-color: #b5b5b0; }
.option.on {
  border-color: var(--lime);
  background: var(--lime-soft);
  font-weight: 600;
}

/* --- шкала 1–5 --- */
.scale { display: flex; gap: 10px; margin-top: 1.2em; }
.scale__dot {
  flex: 1;
  aspect-ratio: 1;
  border: 1px solid var(--glass-line);
  border-radius: 50%;
  background: var(--glass-face);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 18px;
  transition: border-color .12s ease, background .12s ease, transform .12s ease;
}
.scale__dot:hover { border-color: #b5b5b0; transform: translateY(-1px); }
.scale__dot.on { background: var(--lime-cta); border-color: var(--lime); }
.scale__ends {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.scale__ends span:last-child { text-align: right; }

/* --- поле имени --- */
.input {
  width: 100%;
  margin-top: 1.2em;
  padding: 15px 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass-face);
  font: inherit;
}
.input:focus { outline: 2px solid var(--lime-ink); outline-offset: 1px; }

/* --- результат --- */
.score {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 4px 0 22px;
}
.score__num {
  font-family: var(--font-head);
  font-size: 56px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.score__num span { font-size: 20px; font-weight: 600; color: var(--muted); }
.score__sev { font-size: 14px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lime-ink); }

.bars { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.bars__row { display: grid; grid-template-columns: 116px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.bars__label { white-space: nowrap; }
.bars__label { font-size: 14px; color: var(--ink-soft); }
.bars__track { height: 10px; border-radius: 99px; background: rgba(30, 30, 30, .09); overflow: hidden; }
.bars__fill { display: block; height: 100%; border-radius: 99px; background: var(--lime-cta); }
.bars__val { font-size: 13px; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
.split__col {
  padding: 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass-face-soft);
}
.split__col b { display: block; font-family: var(--font-head); font-size: 26px; }
.split__col span { font-size: 13px; color: var(--muted); }

.sub { font-size: 18px; margin-top: 8px; }
.bullets { margin: 0 0 18px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.bullets li { position: relative; padding-left: 22px; color: var(--ink-soft); }
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--lime);
}

.sev {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--glass-face-soft);
  color: var(--ink-soft);
  font-size: 15px;
}

/* Заголовок над предложениями: «как я могу тебе с этим помочь». */
.offer-title {
  margin: 22px 0 0;
  font-family: var(--font-head);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* Что даёт гайд и что умеет планер — короткие блоки перед кнопками оплаты. */
.offer-note {
  margin: 14px 0 0;
  padding: 16px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-sm);
  background: var(--glass-face-soft);
  font-size: 15px;
  color: var(--ink-soft);
}
.offer-note p { margin: 0 0 8px; }
.offer-note p:last-child { margin-bottom: 0; }
.offer-note__lead { font-size: 16px; color: var(--ink); }
.offer-note__list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.offer-note__list li { position: relative; padding-left: 18px; }
.offer-note__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .6em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--lime);
}
.offer-note__joke { color: var(--muted); }
.offer-note__more {
  display: inline-block;
  margin-top: 2px;
  font-size: 14px;
  font-weight: 600;
  color: var(--lime-ink);
  text-decoration: none;
}
.offer-note__more:hover { text-decoration: underline; }
.offer-note--planner { margin-bottom: 4px; }

/* Купить после теста: две настоящие кнопки оплаты — гайд и планер. */
/* Предложение = текст слева, кнопка справа: две колонки без рамок и заливки. */
.offer-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}
.offer-block .offer-note { margin: 0; }
.cta--side { width: 100%; margin-top: 0; white-space: nowrap; }
.offer__error {
  margin: 4px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--glass-face-soft);
  color: #b3261e;
  font-size: 14px;
}
.cta:disabled { opacity: .6; transform: none; cursor: default; }
.cta--ghost {
  background: transparent;
  border: 1px solid var(--lime);
  box-shadow: none;
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 40px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

/* Ссылки на соглашение и политику в подвале: цвет текста приглушён, поэтому нужны и цвет, и подчёркивание. */
.legal a { color: var(--lime-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .card { padding: 22px 18px; }
  .offer-block { grid-template-columns: 1fr; gap: 12px; }
  .cta--side { width: 100%; white-space: normal; }
  .title { font-size: 25px; }
  .question { font-size: 20px; }
  .score__num { font-size: 46px; }
  /* Подписи осей длиннее прежних («импульсивность», «организованность») — колонка шире. */
  .bars__row { grid-template-columns: 118px minmax(0, 1fr) 44px; gap: 8px; }
  .split { grid-template-columns: 1fr; }
}

/* Стиль Phoenix (Дина, 2026-10-22): заголовки средней толщины, как на лендинге. */
h1, h2 { font-weight: 500; letter-spacing: -.03em; }

/* Медицинский дисклеймер — в начале теста и на результате: заметной плашкой, не мелким шрифтом. */
.disclaimer {
  margin: 16px 0;
  padding: 14px 16px;
  border: 1px solid rgba(239, 123, 22, .45);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  background: rgba(239, 123, 22, .08);
  font-size: 14px;
  line-height: 1.5;
}
.disclaimer p { margin: 0; color: var(--ink-soft); }
.disclaimer .disclaimer__title { margin-bottom: 4px; font-weight: 700; color: var(--ink); }
.disclaimer__link { display: inline-block; margin-top: 6px; font-weight: 600; color: var(--ink); }

/* ══ Предложения после теста (Дина, 2026-10-23): гайд — лаймовая карточка, подробности
   по клику; планер — чёрная карточка, пункты плитками и видны сразу. ══ */
.offer-card {
  margin-top: 14px;
  padding: 24px 24px 22px;
  border-radius: 22px;
}
.offer-card__eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.offer-card__title { margin: 0 0 6px; font-family: var(--font-head); font-size: 24px; font-weight: 500; line-height: 1.15; letter-spacing: -.02em; }
.offer-card__sub { margin: 0 0 14px; font-size: 15px; }
.offer-card .cta { margin-top: 16px; }

.offer-card--guide { background: var(--lime); color: var(--ink); }
.offer-more {
  border-top: 1px solid var(--ink);
  padding-top: 12px;
  font-size: 15px;
}
.offer-more summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}
.offer-more summary::-webkit-details-marker { display: none; }
.offer-more summary::after { content: ' ↓'; }
.offer-more[open] summary::after { content: ' ↑'; }
.offer-more[open] summary { margin-bottom: 10px; }
.offer-more p { margin: 8px 0 0; }
.offer-card--guide .offer-note__list li::before { background: var(--ink); }
.offer-card--guide .offer-note__joke { color: var(--ink); font-style: italic; }
.cta--ink { background: var(--ink) !important; color: #fff !important; box-shadow: none; }

.offer-card--planner { background: var(--ink); color: #fff; }
.offer-card--planner .offer-card__eyebrow { color: var(--lime); }
.offer-card--planner .offer-card__sub { color: rgba(255, 255, 255, .78); }
.offer-tiles {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px;
}
.offer-tiles li {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px;
  background: rgba(255, 255, 255, .05);
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, .9);
}
.offer-tiles li::before {
  content: '';
  display: block;
  width: 9px; height: 9px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--lime);
}
.offer-card__foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.offer-card--planner .offer-note__more { color: var(--lime); }
