/* ============================================
   Вербатория · AI-подбор профессии
   Фирменная палитра brand.verbatoria.ru
   Шрифт Lato из брендбука — самохостинг.
   Важно: в Google Fonts у Lato НЕТ кириллицы, поэтому
   шрифты взяты из Verbatoria_fonts.zip с brand.verbatoria.ru
   Все пары текст-фон проверены по WCAG 2.1 AA
   ============================================ */

@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('../fonts/lato-300.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/lato-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/lato-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('../fonts/lato-900.woff2') format('woff2');
}

:root {
  /* Брендовые зелёные */
  --green: #46c573;          /* GREEN_PRIMARY — акценты, обводки, иконки */
  --green-mid: #45b063;
  --green-deep: #25a15b;
  --green-dark: #198447;     /* плашки с белым текстом (4.74:1) */
  --green-ink: #16703d;      /* зелёный ТЕКСТ на минте (5.55:1) и белом (6.14:1) */
  --green-abyss: #0f5230;    /* тёмная секция: белый 9.25:1, жёлтый 6.01:1 */

  /* Акценты */
  --orange: #ea5a06;
  --yellow: #facb2a;
  --lime: #8cbe20;

  /* Нейтральные */
  --ink: #1a1a1a;            /* 17.4:1 на белом */
  --body: #2e2e2e;           /* 13.6:1 на белом */
  --muted: #666666;          /* 5.74:1 на белом, 5.19:1 на минте */
  --mint: #eaf7e9;
  --soft: #c5eac3;
  --line: #e4ebe4;
  --white: #ffffff;
  --paper: #fbfdfb;

  /* Типографика */
  --font: 'Lato', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --text-hero: clamp(2.6rem, 7.5vw, 5.25rem);
  --text-2xl: clamp(1.85rem, 4vw, 2.9rem);
  --text-xl: clamp(1.4rem, 2.4vw, 1.85rem);
  --text-lg: 1.25rem;
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.8125rem;

  /* Ритм */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-12: 6rem;
  --sp-16: 8rem;

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1140px;
  --readw: 720px;
}

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

/* Атрибут hidden должен побеждать любой display у классов */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

p { margin: 0; }
a { color: var(--green-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--green-dark);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--sp-3); }
.read { max-width: var(--readw); }
.center { text-align: center; }

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

.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  min-height: 76px;
  padding: var(--sp-2) var(--sp-3);
  max-width: var(--maxw);
  margin: 0 auto;
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand img { height: 26px; width: auto; }
.brand__tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 12px;
  border-left: 1px solid var(--line);
}

/* ---------- Вкладки ---------- */

.tabs {
  display: flex;
  gap: 4px;
  background: var(--mint);
  padding: 4px;
  border-radius: 999px;
}

.tab {
  appearance: none;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--green-ink);
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease;
}

.tab:hover { background: rgba(255, 255, 255, 0.7); }

.tab__short { display: none; }

.tab[aria-selected='true'] {
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(26, 26, 26, 0.1);
}

.lang-switch {
  flex-shrink: 0;
}

.lang-switch .tab {
  display: inline-block;
  padding-inline: 12px;
  text-decoration: none;
  border: 1px solid var(--soft);
}

.lang-switch--quiz .link-btn {
  display: inline-block;
  min-width: 2.2rem;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.2;
  padding: 17px 30px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(25, 132, 71, 0.22);
}
.btn--primary:hover { background: #14703d; box-shadow: 0 10px 26px rgba(25, 132, 71, 0.3); }

.btn--ghost {
  background: var(--white);
  color: var(--green-ink);
  border-color: var(--green);
}
.btn--ghost:hover { background: var(--mint); }

.btn--wide { width: 100%; }
.btn[disabled] {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
}
.btn.btn--primary[disabled] {
  background: var(--line);
  border-color: var(--line);
  color: var(--muted);
}

/* ---------- Панели ---------- */

.panel[hidden] { display: none; }

/* ---------- Hero ---------- */

.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(2.5rem, 5vw, 4rem); }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--sp-8);
  align-items: center;
}

.hero__art { position: relative; display: grid; place-items: center; }
.hero__art::before {
  content: '';
  position: absolute;
  inset: 6% 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, var(--mint) 0%, rgba(234, 247, 233, 0) 72%);
}
.hero__art img { position: relative; width: min(72%, 290px); height: auto; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 3px;
  background: var(--green);
  border-radius: 2px;
}

.hero h1 {
  font-size: var(--text-hero);
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-3);
}

.hero__answer { color: var(--green-ink); display: block; }

.hero__lead {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: 300;
  line-height: 1.5;
  color: var(--body);
  max-width: 640px;
  margin-bottom: var(--sp-4);
}
.hero__lead strong { font-weight: 700; color: var(--ink); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2) var(--sp-3);
  margin-bottom: var(--sp-2);
}

.cta-note { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Полоса фактов ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: var(--sp-6);
}

.fact { background: var(--white); padding: var(--sp-3) var(--sp-3); }
.fact__num {
  display: block;
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--green-ink);
  letter-spacing: -0.02em;
}
.fact__label { font-size: var(--text-sm); color: var(--muted); margin-top: 5px; }

/* ---------- Секции ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--mint { background: var(--mint); }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section__head { max-width: var(--readw); margin-bottom: var(--sp-6); }
.section__head h2 { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.section__head p { font-size: var(--text-lg); font-weight: 300; color: var(--body); }

/* ---------- Вопрос: почему трудно ---------- */

.why { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.why__item { padding-top: var(--sp-3); border-top: 3px solid var(--green); }
.why__item h3 { font-size: var(--text-lg); font-weight: 900; margin-bottom: 10px; }
.why__item p { color: var(--body); font-size: var(--text-sm); line-height: 1.6; }

/* ---------- Что за вопросы ---------- */

.qa-grid { display: grid; gap: var(--sp-4); grid-template-columns: 1fr 1fr; align-items: start; }

.sample {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  box-shadow: 0 14px 36px rgba(26, 26, 26, 0.06);
}

.sample__tag {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: var(--sp-2);
}

.sample__q { font-size: var(--text-lg); font-weight: 900; color: var(--ink); line-height: 1.28; margin-bottom: var(--sp-3); }

.sample__opts { display: grid; gap: 8px; margin-bottom: var(--sp-3); }
.sample__opt {
  display: block;
  font-size: var(--text-sm);
  color: var(--body);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: 10px;
  padding: 11px 14px;
}
.sample__opt--on {
  border-color: var(--green-dark);
  background: var(--mint);
  font-weight: 700;
  color: var(--ink);
  position: relative;
}
.sample__opt--on::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--green-dark);
}

.sample__feeds {
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
  padding-top: var(--sp-2);
  border-top: 1px solid var(--line);
}
.sample__feeds b { color: var(--green-ink); font-weight: 900; }

.profile-out {
  background: var(--mint);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-3);
}

.profile-out__tag {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: var(--sp-3);
}

.mgroup { padding: var(--sp-2) 0; border-top: 1px solid rgba(22, 112, 61, 0.18); }
.mgroup:first-of-type { border-top: 0; padding-top: 0; }

.mgroup__name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-base);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 5px;
}
.mgroup__name span {
  flex: 0 0 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 900;
}
.mgroup__list { font-size: var(--text-sm); color: var(--body); padding-left: 36px; line-height: 1.55; }
.mgroup--extra .mgroup__name span { background: var(--yellow); }

.profile-out__foot {
  margin-top: var(--sp-3);
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(22, 112, 61, 0.18);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Страхи ---------- */

.fears { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.fear {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-3);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fear__q {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: var(--text-lg);
  font-weight: 900;
  color: var(--ink);
  line-height: 1.3;
}

.fear__q::before {
  content: '?';
  flex: 0 0 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--green-ink);
  border-radius: 50%;
  font-size: 1.05rem;
  font-weight: 900;
  margin-top: 1px;
}

.fear__a { font-size: var(--text-sm); line-height: 1.65; color: var(--body); padding-left: 42px; }
.fear__a strong { color: var(--ink); font-weight: 700; }

/* ---------- Ответ: что внутри ---------- */

.answer-grid {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: 1.05fr 0.95fr;
  align-items: start;
}

.report-list { display: grid; gap: var(--sp-2); }

.report-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
}

.report-item__n {
  flex: 0 0 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: var(--ink);
  font-weight: 900;
  font-size: var(--text-sm);
}

.report-item h3 { font-size: var(--text-base); font-weight: 900; margin-bottom: 5px; }
.report-item p { font-size: var(--text-sm); color: var(--muted); line-height: 1.55; }

/* Превью отчёта */
.preview {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-3);
  box-shadow: 0 18px 44px rgba(26, 26, 26, 0.07);
  position: sticky;
  top: 104px;
}

.preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--sp-3);
}
.preview__title { font-size: var(--text-xs); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.preview__pages { font-size: var(--text-xs); font-weight: 700; color: var(--green-ink); background: var(--mint); padding: 5px 11px; border-radius: 999px; }

.route { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.route + .route { margin-top: var(--sp-2); }
.route__head {
  background: var(--mint);
  padding: 11px var(--sp-2);
  font-size: var(--text-sm);
  font-weight: 900;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 9px;
}
.route__badge {
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--white);
  color: var(--green-ink);
  padding: 3px 8px;
  border-radius: 5px;
}
.route ul { list-style: none; margin: 0; padding: var(--sp-2); display: grid; gap: 9px; }
.route li { font-size: var(--text-sm); color: var(--body); display: flex; gap: 9px; align-items: baseline; }
.route li span { color: var(--green-ink); font-weight: 900; flex-shrink: 0; }

.preview__foot { margin-top: var(--sp-3); padding-top: var(--sp-2); border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); line-height: 1.5; }

/* ---------- Блок про ИИ (тёмный) ---------- */

.machine {
  background: var(--green-abyss);
  color: var(--white);
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  position: relative;
  overflow: hidden;
}

.machine::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -12%;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(70, 197, 115, 0.16) 0%, rgba(70, 197, 115, 0) 68%);
  pointer-events: none;
}

.machine .wrap { position: relative; }

.machine__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: var(--sp-3);
}
.machine__eyebrow::before { content: ''; width: 26px; height: 3px; background: var(--yellow); border-radius: 2px; }

.machine h2 { color: var(--white); font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.machine__lead {
  font-size: var(--text-lg);
  font-weight: 300;
  color: var(--soft);
  max-width: 660px;
  margin-bottom: var(--sp-6);
}

.metrics {
  display: grid;
  gap: var(--sp-4);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-bottom: var(--sp-8);
}

.metric { padding-top: var(--sp-3); border-top: 2px solid rgba(197, 234, 195, 0.28); }
.metric__num {
  display: block;
  font-size: clamp(2.1rem, 4vw, 2.9rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--yellow);
  margin-bottom: 10px;
}
.metric__cap { font-size: var(--text-base); font-weight: 700; color: var(--white); display: block; margin-bottom: 7px; }
.metric p { font-size: var(--text-sm); line-height: 1.6; color: var(--soft); }

/* Формула: множители */

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--sp-2);
  align-items: stretch;
  margin-bottom: var(--sp-4);
}

.factor {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 234, 195, 0.24);
  border-radius: var(--radius);
  padding: var(--sp-3);
  display: flex;
  flex-direction: column;
}

.factor__tag {
  font-size: 0.6875rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}

.factor__name {
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.factor__specs { list-style: none; margin: 0 0 var(--sp-3); padding: 0; display: grid; gap: 7px; }
.factor__specs li { font-size: var(--text-sm); color: var(--white); display: flex; gap: 8px; align-items: baseline; }
.factor__specs li b { color: var(--yellow); font-weight: 900; flex-shrink: 0; }

.factor__gives {
  margin-top: auto;
  padding-top: var(--sp-2);
  border-top: 1px solid rgba(197, 234, 195, 0.22);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--soft);
}

.times {
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--green-abyss);
  background: var(--yellow);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  align-self: center;
  line-height: 1;
}

.result {
  background: rgba(250, 203, 42, 0.13);
  border: 1px solid rgba(250, 203, 42, 0.45);
  border-radius: var(--radius-lg);
  padding: var(--sp-4) var(--sp-3);
  position: relative;
}

.result__eq {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--green-abyss);
  border: 1px solid rgba(250, 203, 42, 0.45);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--yellow);
}

.result h3 { color: var(--white); font-size: var(--text-xl); margin-bottom: var(--sp-1); }
.result > p { font-size: var(--text-sm); color: var(--soft); margin-bottom: var(--sp-3); }

.remove {
  margin-top: var(--sp-6);
  display: grid;
  gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
.remove__item {
  border-left: 3px solid var(--yellow);
  padding: 4px 0 4px var(--sp-2);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--soft);
}
.remove__item b { display: block; color: var(--white); font-weight: 900; margin-bottom: 3px; }

/* Воронка */

.funnel__title {
  font-size: var(--text-xs);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: var(--sp-3);
}

.funnel {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: var(--sp-2);
  align-items: stretch;
}

.stage {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(197, 234, 195, 0.22);
  border-radius: var(--radius);
  padding: var(--sp-3);
}
.stage--final { background: rgba(250, 203, 42, 0.14); border-color: rgba(250, 203, 42, 0.5); }

.stage__num {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
}
.stage--final .stage__num { color: var(--yellow); }
.stage__what { display: block; font-size: var(--text-sm); font-weight: 700; color: var(--white); margin: 6px 0 8px; }
.stage__how { font-size: var(--text-xs); line-height: 1.55; color: var(--soft); }

.arrow { display: grid; place-items: center; color: rgba(197, 234, 195, 0.6); }

.machine__foot {
  margin-top: var(--sp-6);
  padding-top: var(--sp-3);
  border-top: 1px solid rgba(197, 234, 195, 0.22);
  font-size: var(--text-base);
  color: var(--soft);
  max-width: 720px;
}
.machine__foot strong { color: var(--white); font-weight: 700; }

/* ---------- ИИ или человек ---------- */

.versus { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }

.vs-row { display: grid; grid-template-columns: 168px 1fr 1fr; align-items: stretch; }
.vs-row + .vs-row { border-top: 1px solid var(--line); }

.vs-row__what {
  padding: var(--sp-3);
  background: var(--paper);
  font-size: var(--text-sm);
  font-weight: 900;
  color: var(--ink);
  border-right: 1px solid var(--line);
}
.vs-row__human, .vs-row__ai { padding: var(--sp-3); font-size: var(--text-sm); line-height: 1.6; }
.vs-row__human { color: var(--muted); border-right: 1px solid var(--line); }
.vs-row__ai { color: var(--body); background: var(--mint); }
.vs-row__ai strong { color: var(--green-ink); font-weight: 900; }

.vs-head { display: grid; grid-template-columns: 168px 1fr 1fr; margin-bottom: 10px; }
.vs-head span { font-size: var(--text-xs); font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding: 0 var(--sp-3); }
.vs-head span:last-child { color: var(--green-ink); }

.vs-note { margin-top: var(--sp-4); font-size: var(--text-base); color: var(--body); max-width: 720px; }

/* ---------- Шаги ---------- */

.steps { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { counter-increment: s; }
.step::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--green);
  color: var(--green-ink);
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: var(--sp-2);
}
.step h3 { font-size: var(--text-lg); margin-bottom: 8px; }
.step p { font-size: var(--text-sm); color: var(--body); }

/* ---------- Финальный CTA ---------- */

.closer { background: var(--green-dark); color: var(--white); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.closer h2 { color: var(--white); font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.closer p { color: rgba(255, 255, 255, 0.9); font-size: var(--text-lg); font-weight: 300; margin-bottom: var(--sp-4); max-width: 620px; }
.closer .btn--ghost { background: var(--white); border-color: var(--white); color: var(--green-ink); }
.closer .btn--ghost:hover { background: var(--mint); }
.closer__note { font-size: var(--text-sm); color: rgba(255, 255, 255, 0.78); margin-top: var(--sp-3); }

/* ---------- Формы ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  box-shadow: 0 18px 44px rgba(26, 26, 26, 0.07);
  max-width: 620px;
}

.field { margin-bottom: var(--sp-3); }
.field:last-of-type { margin-bottom: var(--sp-4); }

.field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 900;
  color: var(--ink);
  margin-bottom: 8px;
}

.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--font);
  font-size: var(--text-base);
  color: var(--ink);
  background: var(--white);
  padding: 14px 16px;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green-dark); }
.field input::placeholder, .field textarea::placeholder { color: #9aa39a; }
.field textarea { resize: vertical; min-height: 92px; }

.hint { font-size: var(--text-xs); color: var(--muted); margin-top: 7px; }
.hint--green { color: var(--green-ink); font-weight: 700; }

.field-row { display: grid; gap: var(--sp-2); grid-template-columns: 1fr 1fr; }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--mint);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: var(--text-sm);
  color: var(--body);
  margin-bottom: var(--sp-3);
}
.notice svg { flex-shrink: 0; margin-top: 2px; }

.pay-note { font-size: var(--text-xs); color: var(--muted); text-align: center; margin-top: var(--sp-2); }

.err { font-size: var(--text-sm); color: #b42318; font-weight: 700; margin-top: 8px; }
.err[hidden] { display: none; }

/* ---------- Квиз ---------- */

.quiz-shell { min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); }

.quiz-bar { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }
.quiz-bar__inner {
  max-width: 860px;
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-3);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.quiz-bar img { height: 22px; width: auto; }

.progress { flex: 1; height: 7px; background: var(--line); border-radius: 999px; overflow: hidden; }
.progress__fill { height: 100%; width: 0%; background: var(--green); border-radius: 999px; transition: width 0.32s cubic-bezier(0.4, 0, 0.2, 1); }
.progress__count { font-size: var(--text-sm); font-weight: 900; color: var(--green-ink); white-space: nowrap; }

.quiz-main { flex: 1; display: flex; align-items: flex-start; padding: clamp(2rem, 6vw, 4rem) var(--sp-3); }
.quiz-card { max-width: 720px; width: 100%; margin: 0 auto; }

.quiz-q { font-size: clamp(1.5rem, 3.4vw, 2.15rem); font-weight: 900; color: var(--ink); line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 10px; }
.quiz-hint { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--sp-4); }

.options { display: grid; gap: 11px; margin-bottom: var(--sp-4); }

.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  font-family: var(--font);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 19px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}
.option:hover { border-color: var(--green); background: var(--mint); }
.option:active { transform: scale(0.995); }

.option__mark {
  flex: 0 0 22px;
  height: 22px;
  border: 2px solid var(--soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.option--multi .option__mark { border-radius: 6px; }
.option__mark svg { opacity: 0; transform: scale(0.6); transition: all 0.15s ease; }

.option[aria-pressed='true'] { border-color: var(--green-dark); background: var(--mint); font-weight: 700; }
.option[aria-pressed='true'] .option__mark { background: var(--green-dark); border-color: var(--green-dark); }
.option[aria-pressed='true'] .option__mark svg { opacity: 1; transform: scale(1); }

.quiz-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }

.resume {
  margin-bottom: var(--sp-4); padding: var(--sp-3);
  border: 1px solid var(--soft); border-radius: var(--radius-lg); background: var(--mint);
}
.resume__title { margin: 0 0 4px; font-size: var(--text-lg); font-weight: 900; color: var(--ink); }
.resume__text { margin: 0 0 var(--sp-2); color: var(--body); }
.resume__actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); }
.link-btn {
  appearance: none;
  border: 0;
  background: none;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 10px 4px;
}
.link-btn:hover { color: var(--ink); text-decoration: underline; }
.link-btn[hidden] { display: none; }

/* ---------- Success ---------- */

.success-grid { display: grid; gap: var(--sp-6); grid-template-columns: 1.15fr 0.85fr; align-items: start; }

.check {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--green-dark);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-3);
}

.deeper { background: var(--mint); border-radius: var(--radius-lg); padding: var(--sp-4) var(--sp-3); }
.deeper > h2 { font-size: var(--text-xl); margin-bottom: 6px; }
.deeper > p { font-size: var(--text-sm); color: var(--body); margin-bottom: var(--sp-3); }

.offer { background: var(--white); border-radius: var(--radius); padding: var(--sp-3); }
.offer + .offer { margin-top: var(--sp-2); }
.offer h3 { font-size: var(--text-lg); margin-bottom: 7px; }
.offer p { font-size: var(--text-sm); color: var(--body); margin-bottom: 12px; }
.offer .hint { margin-bottom: var(--sp-2); }

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

.footer { background: var(--white); border-top: 1px solid var(--line); padding: var(--sp-6) 0 var(--sp-4); }
.footer__grid { display: flex; flex-wrap: wrap; gap: var(--sp-4); justify-content: space-between; align-items: flex-start; }
.footer img { height: 22px; width: auto; margin-bottom: 12px; }
.footer__links { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--text-sm); }
.footer__links a { color: var(--body); }
.footer__legal { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--line); font-size: var(--text-xs); color: var(--muted); line-height: 1.6; }

/* ---------- Прочее ---------- */

.sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-dark);
  color: var(--white);
  padding: 12px 20px;
  z-index: 100;
  font-weight: 700;
  border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

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

@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero__art { display: none; }
}

@media (max-width: 880px) {
  .answer-grid, .success-grid { grid-template-columns: 1fr; }
  .preview { position: static; }

  .funnel { grid-template-columns: 1fr; }
  .arrow { transform: rotate(90deg); padding: 2px 0; }

  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-row__what { border-right: 0; border-bottom: 1px solid var(--line); }
  .vs-row__human, .vs-row__ai { border-right: 0; }
  .vs-row__human::before, .vs-row__ai::before {
    display: block;
    font-size: var(--text-xs);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 5px;
  }
  .vs-row__human::before { content: 'ПРОСТО ЧАТ С ИИ'; color: var(--muted); }
  .vs-row__ai::before { content: '\0412\0435\0440\0431\0430\0442\043e\0440\0438\044f \00d7 Opus 5'; color: var(--green-ink); }

  .equation { grid-template-columns: 1fr; }
  .times { justify-self: center; }
  .qa-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .masthead__inner { flex-wrap: wrap; min-height: 0; gap: var(--sp-2); }
  .brand { order: 1; }
  .lang-switch { order: 2; margin-left: auto; }
  .tabs { width: 100%; order: 3; }
  .tab { flex: 1; padding: 10px 12px; text-align: center; }
  .lang-switch .tab { flex: 0 0 auto; min-width: 2.5rem; }
  .brand__tag { display: none; }
  .tab { font-size: var(--text-xs); padding: 10px 8px; }
  .tab__full { display: none; }
  .tab__short { display: inline; }
  .field-row { grid-template-columns: 1fr; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { width: 100%; }
  .cta-note { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* --- Телефон со скидкой на шаге контактов --- */
.bonus {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  background: var(--mint);
  border: 1px solid var(--soft);
  border-radius: 12px;
}
.bonus label {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.bonus__tag {
  display: inline-block;
  padding: .18em .55em;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.bonus input { background: #fff; }
.hint--on {
  color: var(--green-ink);
  font-weight: 700;
}

/* --- Выбор типа отчёта в партнёрской форме --- */
.label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: .55rem;
}
.choice {
  display: grid;
  gap: .6rem;
}
.choice__item {
  display: flex;
  align-items: flex-start;
  gap: .7rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--soft);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.choice__item:hover { border-color: var(--green); }
.choice__item input { margin-top: .25rem; accent-color: var(--green-dark); }
.choice__item:has(input:checked) {
  border-color: var(--green-dark);
  background: var(--mint);
}
.choice__item:has(input:focus-visible) {
  outline: 2px solid var(--green-dark);
  outline-offset: 2px;
}
.choice__body { display: block; }
.choice__body b {
  display: block;
  color: var(--ink);
  font-weight: 700;
}
.choice__body em {
  display: block;
  margin-top: .15rem;
  font-style: normal;
  font-size: .88rem;
  color: var(--body);
  line-height: 1.45;
}
#target-field textarea {
  width: 100%;
  resize: vertical;
  min-height: 5.2rem;
}

/* ---------- Юридические страницы (политика, оферта) ---------- */
.legal { max-width: 780px; }
.legal h1 { font-size: var(--text-2xl); margin-bottom: var(--sp-2); }
.legal h2 { font-size: var(--text-lg); margin: var(--sp-4) 0 var(--sp-2); color: var(--green-ink); }
.legal p, .legal li { color: var(--body); line-height: 1.7; margin-bottom: var(--sp-2); }
.legal ul { padding-left: 1.3em; margin-bottom: var(--sp-3); }
.legal a { color: var(--green-ink); }
.legal__meta { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--sp-4); }
.legal__foot { font-size: var(--text-sm); color: var(--muted); margin-top: var(--sp-4); }

/* ---------- Согласие на обработку данных ---------- */
.consent { display: flex; gap: .7em; align-items: flex-start; margin: var(--sp-3) 0; }
.consent input[type="checkbox"] { margin-top: .25em; width: 1.05em; height: 1.05em; flex: none; accent-color: var(--green-dark); }
.consent label { font-size: var(--text-sm); color: var(--body); line-height: 1.55; }
.consent a { color: var(--green-ink); }
.legal__todo { color: var(--muted); font-style: italic; }

/* ---------- Экран результата: развёртка в метриках ---------- */
.facets { margin-bottom: var(--sp-4); }
.facets__h { font-size: var(--text-lg); font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.facets__sub { font-size: var(--text-sm); color: var(--muted); margin-bottom: var(--sp-2); }
.facets__list { display: flex; flex-direction: column; gap: 14px; }
.facets__list--compact { gap: 10px; }
.facets__type {
  margin-top: var(--sp-2); padding: 10px 14px; border-radius: var(--radius);
  background: var(--mint); color: var(--green-ink);
  font-size: var(--text-sm); font-weight: 700;
}

.facet__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); margin-bottom: 5px; }
.facet__name { font-size: var(--text-sm); color: var(--body); }
.facet__val { font-size: var(--text-sm); font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.facet__track { height: 9px; border-radius: 999px; background: var(--line); overflow: hidden; }
/* Заливки проверены на контраст к дорожке #e4ebe4 (порог 3:1 для графики) */
.facet__fill { height: 100%; border-radius: 999px; background: var(--green-dark); transition: width 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.facet--orange .facet__fill { background: #9c6a00; }
.facet--red .facet__fill { background: #c3401f; }

/* ---------- Переход к покупке ---------- */
.hook {
  margin-top: var(--sp-4); padding: var(--sp-3);
  border: 1px solid var(--soft); border-radius: var(--radius-lg); background: var(--mint);
}
.hook__h { font-size: var(--text-lg); font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.hook__lead { font-size: var(--text-sm); color: var(--body); margin-bottom: var(--sp-2); }
.hook__list { margin: 0 0 var(--sp-3); padding-left: 1.25em; }
.hook__list li { font-size: var(--text-sm); color: var(--body); line-height: 1.55; margin-bottom: 6px; }
.hook .hint { margin-top: 10px; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .facet__fill { transition: none; }
}
.facets__type--calibration { display: inline-block; margin: 0 0 var(--sp-3); }

/* ---------- Выбор цены на форме заказа ---------- */
.price-choice { margin: 0 0 var(--sp-3); padding: 0; border: 0; }
.price-choice legend { margin-bottom: 10px; font-weight: 900; color: var(--ink); }
.price-choice__item {
  display: flex; align-items: flex-start; gap: 12px; min-height: 64px;
  margin-bottom: 10px; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--white); cursor: pointer;
}
.price-choice__item:has(input:checked) { border-color: var(--green-dark); background: var(--mint); }
.price-choice__item input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--green-dark); }
.price-choice__item span { display: flex; flex-direction: column; gap: 3px; }
.price-choice__item b { color: var(--ink); }
.price-choice__item em { color: var(--muted); font-size: var(--text-sm); font-style: normal; }

/* ---------- Согласие: крупная зона нажатия, ссылки отдельно ---------- */
.consent { min-height: 48px; align-items: center; margin-bottom: 0; }
.consent input[type="checkbox"] { width: 26px; height: 26px; margin: 0; }
.consent label {
  display: flex; align-items: center; min-height: 44px; flex: 1;
  font-size: var(--text-base); cursor: pointer;
}
.consent-links { margin: 0 0 var(--sp-3) 38px; font-size: var(--text-sm); line-height: 1.6; }
.consent-links a { color: var(--green-ink); }
.consent-links span { padding: 0 5px; color: var(--muted); }

/* ---------- Мобильная закреплённая оплата ---------- */
.checkout-bar { z-index: 20; }
.checkout-bar .pay-note { margin-bottom: 0; }

@media (max-width: 720px) {
  #screen-contact { padding-bottom: 112px; }
  .checkout-bar {
    position: fixed; left: 0; right: 0; bottom: 0; margin: 0;
    padding: 10px max(16px, env(safe-area-inset-right))
      calc(8px + env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15,82,48,.10);
    backdrop-filter: blur(8px);
  }
  .checkout-bar .btn { max-width: 688px; min-height: 52px; margin: 0 auto; }
  .checkout-bar .pay-note { margin-top: 7px; }
  body.keyboard-open .checkout-bar { display: none; }
}
