/* Позиция.Про — стили. Mobile-first: базовые правила для телефона, расширения — медиазапросами. */

:root {
  /* Палитра Позиции.Про, вариант D «Морская волна» (выбор владелицы 30.09.2026).
     Фон, текст и линии — общие с Резюме.Про (#F7F5F0, #1C1917, #E8E2D8): одна продуктовая
     линейка. Отличает продукт только акцент — бирюза: у Резюме.Про золото, у Интервью.Про оранжевый. */
  --paper: #F7F5F0;
  --surface: #FFFFFF;
  --surface-2: #FFFDF7;
  --ink: #1C1917;
  --ink-2: #44403C;
  --ink-3: #6B635B;
  --line: #E8E2D8;
  --line-2: #D4CBBF;
  --accent: #0A6E7C;
  --accent-hover: #085A66;
  --accent-ink: #FFFFFF;
  --accent-soft: #D9EEF0;
  /* Факты — синие, а не зелёные: зелёный слишком близок к бирюзовому акценту */
  --fact: #2456B0;       --fact-soft: #E3EBF8;
  --interp: #9A5800;     --interp-soft: #FBEFD9;
  --missing: #7A45B8;    --missing-soft: #F1EAFA;
  --ok: #17774A;
  --error: #B42318;      --error-soft: #FDECEA;
  --mark: #FFE7A3;       --mark-ink: #5A4100;
  /* Блок «Ваш следующий ход» — глубокий морской (тёмный из варианта D), а не чёрный: владелица 30.09 — «много чёрного» */
  --next-bg: #0B3440;    --next-ink: #F7F5F0;   --next-muted: #BFD9DD;   --next-accent: #7FD7E3;
  --shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 8px 24px rgba(28, 25, 23, .06);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #151311;
    --surface: #1E1B18;
    --surface-2: #1A1715;
    --ink: #EFEBE4;
    --ink-2: #C3BCB2;
    --ink-3: #9A9187;
    --line: #2E2A26;
    --line-2: #3D3833;
    --accent: #5CC8D6;
    --accent-hover: #7ED6E1;
    --accent-ink: #0F1B1D;
    --accent-soft: #0F3238;
    --fact: #8FB0F0;       --fact-soft: #1A2540;
    --interp: #E6A548;     --interp-soft: #33280F;
    --missing: #C1A2F2;    --missing-soft: #2A1F45;
    --ok: #5CC49B;
    --error: #FF8A80;      --error-soft: #3A1917;
    --mark: #5A4712;       --mark-ink: #FFE7A3;
    --next-bg: #EFEBE4;    --next-ink: #1C1917;   --next-muted: #4A443E;   --next-accent: #0A6E7C;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
p, li, dd, blockquote { overflow-wrap: anywhere; }
button, textarea, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }

.wrap { width: 100%; max-width: 960px; margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.accent { color: var(--accent); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center;
  transition: background .15s, border-color .15s, transform .05s;
}
.btn:hover { border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--ghost { background: transparent; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--small { min-height: 38px; padding: 8px 14px; font-size: 14px; }

.linkbtn {
  background: none; border: 0; padding: 6px 2px; min-height: 38px;
  color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2);
  font-size: 15px;
}
.linkbtn:hover { color: var(--ink); text-decoration-color: currentColor; }

.iconbtn {
  width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink-3); font-size: 16px;
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); }

.chip {
  display: inline-flex; align-items: center; min-height: 36px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface);
  color: var(--ink-2); font-size: 14px; text-align: left;
}
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip--wide { border-radius: var(--radius-sm); padding: 10px 14px; width: 100%; line-height: 1.4; }

/* ── Шапка ────────────────────────────────────────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 56px; }
/* Знак — как у семейства Резюме.Про и Интервью.Про: значок и «Название.Про», где «.Про» акцентом */
.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 20px; letter-spacing: -.01em; text-decoration: none; color: var(--ink);
}
.logo__ic { width: 28px; height: 28px; border-radius: 8px; display: block; flex: none; }
.logo__wm span { color: var(--accent); }
/* Самые узкие телефоны (320 px): знак «Позиция.Про» длиннее прежнего, и кнопка «Мои разборы» переносилась на две строки */
@media (max-width: 359px) {
  .logo { font-size: 18px; gap: 6px; }
  .logo__ic { width: 24px; height: 24px; }
  .topbar__nav .navlink { padding: 8px 6px; }
}
.topbar__nav { display: flex; align-items: center; gap: 4px; }
.navlink {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px;
  border: 0; background: none; border-radius: 999px;
  color: var(--ink-2); font-size: 15px; text-decoration: none;
}
.navlink:hover { background: var(--surface); color: var(--ink); }
.badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; }
.hide-sm { display: none; }

/* ── Лендинг ──────────────────────────────────────────────────────────── */

.hero { padding: 20px 0 40px; }
.resume-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-bottom: 24px; padding: 12px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 15px;
}
.resume-bar__actions { display: flex; align-items: center; gap: 12px; }
.eyebrow { color: var(--accent); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.hero__title {
  display: flex; flex-direction: column;
  font-size: clamp(30px, 8.4vw, 60px); line-height: 1.06; font-weight: 800; letter-spacing: -.025em;
  margin-bottom: 18px;
}
.hero__lead { max-width: 640px; color: var(--ink-2); font-size: 17px; margin-bottom: 24px; }

.composer {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 16px;
}
.composer__label { display: block; font-weight: 700; font-size: 18px; margin-bottom: 8px; }
.composer textarea, .refine textarea, .goal textarea, .answer__edit {
  display: block; width: 100%; resize: vertical;
  min-height: 150px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface-2); line-height: 1.5;
  font-size: 16px; /* меньше 16px — iOS увеличивает страницу при фокусе */
}
.composer textarea:focus, .refine textarea:focus, .goal textarea:focus, .answer__edit:focus {
  outline: none; border-color: var(--ink-3); background: var(--surface);
}
.composer__foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.composer__hint { color: var(--ink-3); font-size: 13px; }
.composer__count { color: var(--ink-3); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.composer__actions { display: flex; flex-direction: column; align-items: stretch; gap: 10px; margin-top: 14px; }
.composer__meta { color: var(--ink-3); font-size: 14px; text-align: center; }
.form-error { color: var(--error); font-size: 14px; margin-top: 10px; }

.examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; }
.examples__label { color: var(--ink-3); font-size: 14px; margin-right: 4px; }

.section-title { font-size: clamp(22px, 5.5vw, 30px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 20px; }
.strong { padding: 40px 0; border-top: 1px solid var(--line); }
.strong__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.strong__list li {
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 18px 18px 20px; background: var(--surface);
  border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius);
}
.strong__list b { font-size: 16px; }
.strong__list span { color: var(--ink-2); font-size: 15px; }

.how { padding: 40px 0; border-top: 1px solid var(--line); }
.how__list { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; gap: 12px; }
.how__list li {
  counter-increment: how; position: relative;
  display: flex; flex-direction: column; gap: 4px;
  padding: 18px 18px 18px 60px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.how__list li::before {
  content: counter(how); position: absolute; left: 18px; top: 18px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.how__list b { font-size: 16px; }
.how__list span { color: var(--ink-2); font-size: 15px; }

.cases { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.tags { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.cases__note { color: var(--ink-3); font-size: 14px; margin-bottom: 20px; }

.footer { border-top: 1px solid var(--line); padding: 24px 0 calc(32px + env(safe-area-inset-bottom)); color: var(--ink-3); font-size: 13px; }
.footer__in { display: grid; gap: 8px; }
.footer__demo { color: var(--interp); }

/* ── Разбор: лента этапов ─────────────────────────────────────────────── */

.rail {
  position: sticky; top: 56px; z-index: 15;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.rail__list { list-style: none; margin: 0; padding: 8px 0; display: flex; gap: 4px; justify-content: space-between; }
.rail__list li {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 4px 2px; border-radius: 10px; color: var(--ink-3); font-size: 12px; text-align: center;
}
.rail__list li.is-link { cursor: pointer; }
.rail__list li.is-link:hover { background: var(--surface); }
.rail__n {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line-2); font-weight: 700; font-size: 13px; background: var(--paper);
}
.rail__t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rail__list li.is-done { color: var(--ink-2); }
.rail__list li.is-done .rail__n { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rail__list li.is-current { color: var(--ink); font-weight: 700; }
.rail__list li.is-current .rail__n { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

.work { padding-top: 16px; padding-bottom: 48px; }

.recap {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 0 14px; margin-bottom: 8px;
}
.recap summary {
  display: flex; gap: 10px; align-items: baseline; min-height: 48px; padding: 12px 0;
  cursor: pointer; list-style: none;
}
.recap summary::-webkit-details-marker { display: none; }
.recap summary::after { content: "▾"; margin-left: auto; color: var(--ink-3); flex: none; }
.recap[open] summary::after { content: "▴"; }
.recap__label { font-weight: 700; font-size: 14px; flex: none; }
.recap__preview { color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.recap[open] .recap__preview { display: none; }
.recap__text { color: var(--ink-2); white-space: pre-wrap; margin-bottom: 10px; }
.recap__details { font-size: 15px; }
.recap .linkbtn { margin-bottom: 8px; }

/* ── Разбор: шаги ─────────────────────────────────────────────────────── */

.step { padding: 28px 0 8px; scroll-margin-top: 130px; }
.step + .step { border-top: 1px solid var(--line); margin-top: 20px; }
.step__head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.step__n {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: 15px;
}
.step__title { font-size: clamp(21px, 5.5vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.02em; padding-top: 1px; }
.step__sub { color: var(--ink-3); font-size: 15px; margin-top: 4px; }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow);
}
.card + * { margin-top: 16px; }
.label { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; display: block; }
.lead-text { font-size: 18px; line-height: 1.5; }
.empty { color: var(--ink-3); font-size: 15px; }

.alert { border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 16px; display: grid; gap: 8px; justify-items: start; }
.alert__title { font-weight: 700; }
.alert--error { background: var(--error-soft); color: var(--error); }
.alert--error p { color: var(--ink); }
.alert--info { background: var(--missing-soft); }
.alert--warn { background: var(--interp-soft); }

/* Вкладки */
.tabs { margin-top: 16px; }
.tabs__list {
  display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  /* Вкладки делят ширину поровну и переносят подписи: на узком экране
     третья вкладка не должна уезжать за край, где её не видно. */
  flex: 1 1 0; min-width: 0; display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 6px;
  min-height: 44px; padding: 6px 6px; border: 0; border-radius: 9px; background: transparent;
  color: var(--ink-2); font-size: 13px; font-weight: 600; line-height: 1.2; text-align: center;
}
@media (min-width: 600px) { .tabs__tab { font-size: 14px; padding: 8px 12px; } }
.tabs__tab[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; line-height: 20px; background: var(--line); color: var(--ink-2); }
.tabs__tab.tone-fact .tabs__count { background: var(--fact-soft); color: var(--fact); }
.tabs__tab.tone-interp .tabs__count { background: var(--interp-soft); color: var(--interp); }
.tabs__tab.tone-missing .tabs__count { background: var(--missing-soft); color: var(--missing); }
.tabs__panel { display: none; padding-top: 14px; }
.tabs__panel.is-active { display: block; }
.tabs__heading { display: none; }

/* Списки разбора */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px 12px 16px; border-left: 4px solid var(--line-2);
}
.list--facts li { border-left-color: var(--fact); }
.list--interp li { border-left-color: var(--interp); }
.list--missing li { border-left-color: var(--missing); }
.list .claim { font-weight: 600; }
.list .why { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.list .check { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.list .check b { color: var(--ink); font-weight: 600; }

.refine {
  margin-top: 18px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); padding: 0 14px;
}
.refine summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-weight: 600; color: var(--ink-2); }
.refine textarea { min-height: 110px; }
.refine .row { margin: 12px 0 16px; }

/* Цель */
.goal__text { font-size: 19px; line-height: 1.45; font-weight: 600; }
.goal--ok { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.goal textarea { min-height: 96px; }
.ok-mark { display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; font-size: 15px; }
.ok-mark::before { content: "✓"; font-weight: 800; }
.alts { display: grid; gap: 8px; margin-top: 12px; }

/* Позиция */
.position {
  margin: 0 0 4px; padding: 18px 18px 18px 20px;
  border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 19px; line-height: 1.45; font-weight: 600; box-shadow: var(--shadow);
}
.args { list-style: none; counter-reset: arg; margin: 0; padding: 0; display: grid; gap: 10px; }
.args li {
  counter-increment: arg; position: relative;
  padding: 14px 16px 14px 50px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.args li::before {
  content: counter(arg); position: absolute; left: 14px; top: 14px;
  width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px;
}
.args__title { font-weight: 700; margin-bottom: 4px; }
.args__text { color: var(--ink); }
.args__needs { color: var(--ink-3); font-size: 14px; margin-top: 8px; }
.args__needs b { color: var(--ink-2); font-weight: 600; }

.reframes { margin-top: 22px; display: grid; gap: 10px; }
.reframe { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 8px; }
.reframe__weak { color: var(--ink-3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink-3) 50%, transparent); }
.reframe__weak, .reframe__strong { display: flex; gap: 10px; align-items: baseline; }
.reframe__strong { font-weight: 500; }
.tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 6px; background: var(--fact-soft); color: var(--fact); text-decoration: none; display: inline-block; }
.tag--muted { background: var(--line); color: var(--ink-3); }

.vulns { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vulns li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; border-left: 4px solid var(--interp); }
.vulns__issue { font-weight: 600; }
.vulns__fix { color: var(--ink-2); margin-top: 6px; font-size: 15px; }

.objs { display: grid; gap: 10px; }
.obj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 16px; }
.obj summary { list-style: none; cursor: pointer; padding: 14px 0; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; }
.obj summary::-webkit-details-marker { display: none; }
.obj summary::after { content: "+"; margin-left: auto; font-size: 20px; line-height: 1; color: var(--ink-3); flex: none; }
.obj[open] summary::after { content: "−"; }
.obj__q { font-weight: 700; font-size: 17px; }
.obj__row { display: grid; gap: 2px; padding: 0 0 12px; font-size: 15px; color: var(--ink-2); }
.obj__row--reply { color: var(--ink); padding-bottom: 16px; }
.obj__k { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }

.cta-row { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

/* Ответ */
.seg { display: flex; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 14px; }
.seg__btn { flex: 1 1 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: 14px; padding: 8px 10px; }
.seg__btn[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg__btn:disabled { cursor: default; }
.answer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.answer__text { display: grid; gap: 12px; font-size: 17px; line-height: 1.6; }
.answer__edit { min-height: 260px; }
.answer__ph { margin-top: 14px; font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.answer__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.ph { background: var(--mark); color: var(--mark-ink); border-radius: 4px; padding: 0 3px; }
.tip { margin-top: 12px; color: var(--ink-2); font-size: 15px; padding-left: 14px; border-left: 3px solid var(--line-2); }

/* Сценарии */
.scen { display: grid; gap: 12px; }
.scen__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; border-top: 4px solid var(--ok); }
.scen--2 { border-top-color: var(--interp); }
.scen--3 { border-top-color: var(--missing); }
.scen__eyebrow { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.scen__title { font-size: 19px; font-weight: 800; margin: 2px 0 12px; }
.scen dl { margin: 0; display: grid; gap: 2px; }
.scen dt { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-top: 10px; }
.scen dt:first-child { margin-top: 0; }
.scen dd { margin: 0; font-size: 15px; color: var(--ink-2); }
.scen dd.scen__move { color: var(--ink); font-weight: 600; }
.scen dt.scen__move-k { color: var(--accent); }

.next {
  margin-top: 28px; padding: 24px 20px; border-radius: 20px;
  background: var(--next-bg); color: var(--next-ink);
}
.next__eyebrow { color: var(--next-accent); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.next__title { font-size: clamp(24px, 6.5vw, 34px); font-weight: 800; letter-spacing: -.02em; margin: 4px 0 14px; }
.next__action { font-size: 19px; line-height: 1.45; font-weight: 600; }
.next__steps { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 8px; color: var(--next-muted); }
.next__steps li::marker { color: var(--next-accent); font-weight: 800; }
.next__fix { margin-top: 16px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--next-muted) 30%, transparent); color: var(--next-muted); font-size: 15px; }
.next__fix b { color: var(--next-ink); }

.final-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; align-items: stretch; }
.final-actions .linkbtn { align-self: center; }

/* Ожидание */
.loader { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 18px; }
.loader__bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-bottom: 16px; }
.loader__bar i { display: block; width: 35%; height: 100%; background: var(--accent); border-radius: 3px; animation: slide 1.4s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(300%); } }
.loader__msg { font-weight: 600; font-size: 17px; }
.loader__note { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.loader__sec { font-variant-numeric: tabular-nums; }
.skeleton { display: grid; gap: 10px; margin-top: 18px; }
.skeleton i { display: block; height: 14px; border-radius: 7px; background: linear-gradient(90deg, var(--line) 0%, var(--surface-2) 50%, var(--line) 100%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.skeleton i.short { width: 60%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .loader__bar i, .skeleton i { animation: none; }
}

/* Сохранённые разборы */
.sheet {
  width: min(560px, calc(100vw - 24px)); max-height: min(80vh, 640px);
  border: 1px solid var(--line); border-radius: 20px; padding: 0;
  background: var(--surface); color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.sheet::backdrop { background: rgba(10, 11, 13, .45); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 12px 4px 20px; }
.sheet__head h2 { font-size: 20px; font-weight: 800; }
.sheet__note { color: var(--ink-3); font-size: 14px; padding: 0 20px 12px; }
.saved { list-style: none; margin: 0; padding: 0 12px 16px; display: grid; gap: 6px; }
.saved__item { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.saved__open { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 12px 14px; display: grid; gap: 2px; border-radius: var(--radius-sm); }
.saved__open:hover { background: var(--surface-2); }
.saved__title { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.saved__meta { color: var(--ink-3); font-size: 13px; }
.sheet .empty { padding: 0 20px 20px; }

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60;
  transform: translate(-50%, 12px); opacity: 0; transition: opacity .2s, transform .2s;
  background: var(--next-bg); color: var(--next-ink); padding: 12px 18px; border-radius: 12px; font-size: 15px; font-weight: 600;
  max-width: calc(100vw - 32px); box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ── Шире телефона ───────────────────────────────────────────────────── */

@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hide-sm { display: inline-flex; }
  .hero { padding: 40px 0 56px; }
  .composer { padding: 20px; }
  .composer__actions { flex-direction: row; align-items: center; gap: 16px; }
  .composer__meta { text-align: left; }
  .how__list { grid-template-columns: 1fr 1fr; }
  .cta-row, .final-actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .final-actions .linkbtn { align-self: auto; margin-left: 4px; }
  .rail__list li { flex-direction: row; justify-content: center; gap: 8px; font-size: 14px; }
  .step { scroll-margin-top: 120px; }
  .next { padding: 32px 32px; }
}

@media (min-width: 900px) {
  .hero__title { margin-bottom: 22px; }
  .how__list { grid-template-columns: repeat(4, 1fr); }
  .strong__list { grid-template-columns: repeat(3, 1fr); }
  .how__list li { padding: 56px 18px 18px; }
  .how__list li::before { top: 18px; }
  /* На широком экране факты, интерпретации и пробелы видны рядом — их удобно сравнивать */
  .tabs--grid .tabs__list { display: none; }
  .tabs--grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
  .tabs--grid .tabs__panel { display: block; padding-top: 0; }
  .tabs--grid .tabs__heading {
    display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px;
  }
  .tabs--grid .tone-fact .tabs__heading { color: var(--fact); }
  .tabs--grid .tone-interp .tabs__heading { color: var(--interp); }
  .tabs--grid .tone-missing .tabs__heading { color: var(--missing); }
  .scen { grid-template-columns: repeat(3, 1fr); }
}

/* Выбор рода для текстов от первого лица */
.gender { display: grid; gap: 6px; margin-top: 14px; }
.seg--small { margin-bottom: 0; max-width: 420px; }
.seg--small .seg__btn { min-height: 38px; font-size: 13px; }
.gender--error { padding: 10px 12px; border-radius: 12px; background: var(--error-soft); }
.gender__err { color: var(--error); font-weight: 600; }
.answer__check { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ══════════════════ v6: вход, кабинет, тарифы, подвал, документы ══════════════════ */

.eyebrow--line { display: flex; align-items: center; gap: 10px; }
.eyebrow--line::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }

/* Шапка: кнопка входа/кабинета */
.navlink--account { border: 1px solid var(--line-2); padding: 7px 14px; }
.navlink--account:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.acc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); flex: none; }
.navlink--account.is-in { border-color: var(--accent); color: var(--accent); }
.navlink--account.is-in .acc-dot { background: var(--accent); }

/* Поле ввода: согласие */
.tick { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 14px; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.tick input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.tick a { color: var(--accent); text-underline-offset: 2px; }
.sheet .tick { padding: 0 20px; }

/* Возврат после оплаты */
.pay-bar { margin-bottom: 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--ink); font-size: 15px; border-left: 4px solid var(--accent); }
.pay-bar--ok { background: var(--fact-soft); border-left-color: var(--ok); }
.pay-bar--warn { background: var(--interp-soft); border-left-color: var(--interp); }

/* «Нужен вход / оплата» внутри разбора — не ошибка, а следующий шаг */
.gate { border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px; display: grid; gap: 10px; justify-items: start;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.gate__title { font-weight: 800; font-size: 18px; color: var(--accent); }

/* Как это работает: метки «бесплатно» */
.how__tag { font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-top: 6px; }
.how__tag--free { color: var(--ok); }

/* ── Тарифы ── */
.pricing { padding: 48px 0; border-top: 1px solid var(--line); }
.pricing__lead { color: var(--ink-2); font-size: 17px; max-width: 640px; margin: -8px 0 22px; }
.closed-note { margin: 0 0 20px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); font-size: 15px; color: var(--ink-2); transition: box-shadow .3s; }
.closed-note b { color: var(--ink); }
.closed-note.is-flash { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.sheet .closed-note { margin: 0 20px 14px; }
.plans { display: grid; gap: 14px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.plan--feat { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan__badge { position: absolute; top: -12px; left: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.plan__name { font-size: 18px; font-weight: 800; }
.plan__price { font-size: 38px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.plan__price small { font-size: 20px; font-weight: 700; color: var(--ink-2); }
.plan__price--text { font-size: 26px; color: var(--ink-2); }
.plan__desc { color: var(--accent); font-size: 14px; font-weight: 600; }
.plan__feats { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; gap: 8px; flex: 1; align-content: start; }
.plan__feats li { position: relative; padding-left: 26px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 11px; font-weight: 800; display: grid; place-items: center; margin-top: 2px; }
.plan__btn { width: 100%; text-decoration: none; }
.pricing__foot { margin-top: 18px; color: var(--ink-3); font-size: 14px; }

/* Мини-тарифы в окне оплаты */
.mini-plans { display: grid; gap: 10px; padding: 0 20px 12px; }
.mini-plan { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t p" "n p"; gap: 2px 12px; align-items: center; text-align: left;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.mini-plan:hover:not(:disabled) { border-color: var(--accent); }
.mini-plan:disabled { opacity: .6; cursor: default; }
.mini-plan--feat { border: 2px solid var(--accent); }
.mini-plan__title { grid-area: t; font-weight: 800; }
.mini-plan__note { grid-area: n; font-size: 13px; color: var(--ink-3); }
.mini-plan__price { grid-area: p; font-weight: 800; font-size: 20px; color: var(--accent); white-space: nowrap; }
.sheet > .muted.small { padding: 0 20px 18px; }

/* Окна: формы */
.sheet form { padding: 0 20px 20px; display: grid; gap: 4px; }
.sheet form .tick { padding: 0; }
.sheet .label { margin-top: 4px; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font-size: 16px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.input--code { font-size: 26px; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.btn--wide { width: 100%; margin-top: 12px; }
#consentDialog .btn--wide { width: calc(100% - 40px); margin: 14px 20px 20px; }
.row--between { justify-content: space-between; margin-top: 4px; }
.sheet .form-error { padding: 0; }
#consentDialog .form-error, #payDialog .form-error { padding: 0 20px; }

/* ── Личный кабинет ── */
.account { padding-top: 28px; padding-bottom: 56px; }
.account__title { font-size: clamp(22px, 5.5vw, 30px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 18px; overflow-wrap: anywhere; }
.acc-cards { display: grid; gap: 12px; }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.acc-card:first-child { border-top: 3px solid var(--accent); }
.acc-card__k { color: var(--ink-3); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.acc-card__v { font-size: 34px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.2; margin-top: 4px; }
.acc-card__v--small { font-size: 22px; color: var(--ink); }
.acc-card__note { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.acc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.acc-section { margin-top: 30px; }
.acc-section__title { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.acc-section .saved { padding: 0; }
.acc-section .saved__item { background: var(--surface); }
.paylist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.paylist__item { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "t s" "m s"; gap: 2px 12px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.paylist__title { grid-area: t; font-weight: 600; }
.paylist__meta { grid-area: m; color: var(--ink-3); font-size: 13px; }
.paylist__sum { grid-area: s; font-weight: 800; font-variant-numeric: tabular-nums; }
.acc-foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; justify-items: start; }
.acc-foot a { color: var(--accent); }
.linkbtn--danger { color: var(--error); }

/* ── Подвал ── */
.footer { padding: 36px 0 calc(32px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer__cols { display: grid; gap: 26px; }
.footer__brand { font-weight: 800; font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.footer__cols p { margin-bottom: 8px; }
.footer__h { color: var(--ink); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__links a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.footer__links a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer__copy { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }
.footer__lock { text-decoration: none; opacity: .45; }
.footer__lock:hover { opacity: 1; }

/* ── Страницы документов ── */
.doc-top { border-bottom: 1px solid var(--line); background: var(--paper); }
.doc-top__in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; gap: 12px; }
.doc-back { color: var(--ink-2); font-size: 15px; text-decoration: none; white-space: nowrap; }
.doc-back:hover { color: var(--accent); }
.doc { max-width: 780px; padding-top: 32px; padding-bottom: 56px; line-height: 1.65; }
.doc h1 { font-size: clamp(24px, 5vw, 34px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.doc h2 { font-size: 19px; font-weight: 800; margin: 30px 0 10px; }
.doc p, .doc li { font-size: 16px; color: var(--ink-2); margin-bottom: 10px; overflow-wrap: anywhere; }
.doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li::marker { color: var(--accent); }
.doc a { color: var(--accent); text-underline-offset: 2px; }
.doc b { color: var(--ink); }
.doc .doc-rev { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.doc-note { background: var(--accent-soft); border-left: 4px solid var(--accent); padding: 12px 16px; border-radius: var(--radius-sm); }
.doc-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 16px 20px; margin: 16px 0; }
.doc-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.doc-links a { color: var(--ink-2); }
.doc-links a:hover { color: var(--accent); }

@media (min-width: 600px) {
  .acc-cards { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .footer__cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
.sheet form .sheet__note { padding: 0 0 8px; }

/* ── v7: пример разбора ── */
.demo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.demo-link:hover { border-bottom-color: var(--accent); }
.how__demo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.how__demo .btn { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.demo-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  margin: 4px 0 14px; padding: 14px 18px; border-radius: var(--radius); background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.demo-bar__title { font-weight: 800; color: var(--accent); font-size: 16px; }
.demo-bar__text { color: var(--ink-2); font-size: 14px; max-width: 640px; }
.demo-end { margin-top: 24px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--accent); }
.demo-end__title { font-weight: 800; font-size: 20px; color: var(--accent); margin-bottom: 6px; }
.demo-end p { color: var(--ink-2); }
.demo-end .final-actions { margin-top: 14px; }

/* ── v8: материалы (переписка, документы, фото) ── */
.attach { margin-top: 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); }
.composer.is-drop .attach { border-color: var(--accent); background: var(--accent-soft); }
.attach__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.attach__btn { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; background: var(--surface); }
.attach__btn:hover { background: var(--accent-soft); }
.attach__hint { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.attach__files { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.attach__file { display: inline-flex; gap: 8px; align-items: center; padding: 5px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; max-width: 100%; }
.attach__fname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 180px; }
.attach__state { color: var(--ink-3); }
.attach__file--ok .attach__state { color: var(--ok); font-weight: 700; }
.attach__file--err .attach__state { color: var(--error); font-weight: 700; }
.attach__file--busy .attach__state { color: var(--accent); }
.attach__materials { margin-top: 12px; }
.attach__materials textarea { width: 100%; min-height: 140px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: 14px/1.5 var(--font); resize: vertical; }
.composer__label--small { font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.attach__note { color: var(--ink-3); font-size: 12px; margin-top: 6px; }

/* ── v8: отзывы ── */
.review-card { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); display: grid; gap: 10px; }
.review-card__title { font-weight: 800; font-size: 18px; }
.review-card--done { border-top-color: var(--ok); }
.review-card__text { min-height: 80px; resize: vertical; font: 15px/1.5 var(--font); }
.stars { display: flex; gap: 4px; }
.star { width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; color: var(--line-2); padding: 0; }
.star.is-on { color: var(--accent); }
.star:hover { color: var(--accent-hover); }

/* ══════════════════ v8: главная после аудита ══════════════════ */

.hide-md { display: none; }
.band { padding: 48px 0; border-top: 1px solid var(--line); }
.hero__title .accent { color: var(--accent); }
.composer__actions .btn--ghost { text-decoration: none; border-color: var(--accent); color: var(--accent); }
.composer__meta { margin-top: 10px; }
.btn--light { background: transparent; border-color: color-mix(in srgb, var(--next-ink) 45%, transparent); color: var(--next-ink); text-decoration: none; }
.btn--light:hover { border-color: var(--next-ink); }

/* Три опоры доверия под формой */
.trust { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 10px; }
.trust li { display: grid; gap: 2px; padding: 12px 14px 12px 42px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.trust li::before { content: "✓"; position: absolute; left: 14px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.trust b { font-size: 15px; }
.trust span { color: var(--ink-2); font-size: 14px; }

/* С чем приходят */
.roles__tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.roles__tab { min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-weight: 700; font-size: 14px; }
.roles__tab[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sit { width: 100%; text-align: left; display: grid; gap: 4px; padding: 16px 44px 16px 18px; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); }
.sit::after { content: "→"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); color: var(--accent); font-weight: 800; font-size: 18px; }
.sit:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.sit b { font-size: 16px; }
.sit span { color: var(--ink-2); font-size: 14px; }
.stat { margin-top: 16px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 15px; color: var(--ink); }
.stat b { color: var(--accent); font-size: 17px; }
.stat a { color: var(--ink-3); font-size: 13px; white-space: nowrap; }

/* Было → стало */
.bna { display: grid; gap: 14px; align-items: start; }
.bna__before, .bna__after { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.bna__after { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.bna__arrow { justify-self: center; font-size: 26px; color: var(--accent); font-weight: 800; transform: rotate(90deg); }
.bubble { position: relative; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; display: grid; gap: 4px; }
.bubble__who { font-size: 12px; font-weight: 700; color: var(--accent); }
.bna__feel { margin-top: 12px; color: var(--ink-3); font-size: 14px; font-style: italic; }
.bna__rec { margin: 10px 0; font-size: 15px; color: var(--ink-2); }
.bna__rec b { color: var(--ink); }
.preview__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.preview__cta .btn { text-decoration: none; }

/* Сравнение */
.versus__lead { color: var(--ink-2); font-size: 16px; max-width: 720px; margin: -6px 0 18px; }
.versus__lead a, .versus__src a { color: var(--ink-3); }
.vs-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
.vs { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.vs th, .vs td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.vs tbody tr:last-child th, .vs tbody tr:last-child td { border-bottom: 0; }
.vs thead th { font-size: 13px; font-weight: 800; color: var(--ink-2); background: var(--surface-2); }
.vs tbody th { font-weight: 600; color: var(--ink); width: 34%; }
.vs td { color: var(--ink-2); }
.vs .vs__us { background: var(--accent-soft); color: var(--ink); font-weight: 700; }
.vs thead .vs__us { color: var(--accent); }
.versus__src { margin-top: 12px; }

/* Метод, данные */
.method__list, .privacy__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.method__list li, .privacy__list li { display: grid; gap: 4px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); border-top: 3px solid var(--accent); }
.method__list b, .privacy__list b { font-size: 16px; }
.method__list span, .privacy__list span { color: var(--ink-2); font-size: 15px; }
.privacy__list a { color: var(--accent); }
.method__note { margin-top: 16px; color: var(--ink-2); font-size: 15px; max-width: 760px; }

/* Отзывы */
.reviews__sum { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.reviews__avg { font-size: 36px; font-weight: 800; color: var(--accent); }
.reviews__stars { color: var(--accent); letter-spacing: 2px; }
.reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rv { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 8px; }
.rv__stars { color: var(--accent); letter-spacing: 2px; }
.rv__text { font-size: 15px; }
.rv__meta { color: var(--ink-3); font-size: 13px; }
.reviews__empty { padding: 18px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--radius); display: grid; gap: 8px; max-width: 760px; }

/* Вопросы */
.faq__list { display: grid; gap: 10px; }
.faq__a { padding: 0 0 16px; color: var(--ink-2); font-size: 15px; }
.faq__a a { color: var(--accent); }

/* Финальный призыв */
.final { padding: 52px 0 56px; background: var(--next-bg); color: var(--next-ink); }
.final__title { font-size: clamp(24px, 6vw, 36px); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; max-width: 760px; }
.final__lead { color: var(--next-muted); margin-top: 12px; max-width: 640px; }
.final__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
.final .btn--primary { background: var(--next-accent); border-color: var(--next-accent); color: var(--next-bg); }

/* ══════════════════ v8: шаг «Как ответить» ══════════════════ */

.opt { min-height: 38px; padding: 7px 13px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.opt[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.opt:disabled { opacity: .6; cursor: default; }
.opt--sm { min-height: 32px; padding: 4px 10px; font-size: 13px; }
.input--sm { min-height: 42px; font-size: 15px; }

.ctx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 16px; }
.ctx--open { border-color: var(--accent); }
.ctx__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ctx__head .label { margin-bottom: 2px; color: var(--accent); }
.ctx__sum { font-size: 15px; font-weight: 600; }
.ctx__note { color: var(--ink-3); font-size: 13px; margin-top: 6px; }
.ctx__row { margin-top: 14px; display: grid; gap: 6px; }
.ctx__k { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.ctx__opts { display: flex; flex-wrap: wrap; gap: 6px; }

.ints .label { margin-bottom: 6px; }
.ints__cols { display: grid; gap: 14px; }
.ints__col ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 15px; }
.ints__col--you .label { color: var(--accent); }
.ints__col--them .label { color: var(--interp); }
.ints__dl { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.ints__dl dt { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.ints__dl dt:first-child { margin-top: 0; }
.ints__dl dd { margin: 0; font-size: 15px; }

.smap-wrap { margin: 18px 0 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.smap { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.smap__bg { fill: var(--surface-2); stroke: var(--line); }
.smap__grid { stroke: var(--line-2); stroke-dasharray: 4 4; }
.smap__axis { fill: var(--ink-3); font-size: 11px; font-weight: 600; }
.smap__pt { cursor: pointer; outline: none; }
.smap__pt circle { fill: var(--surface); stroke: var(--line-2); stroke-width: 2; transition: r .15s; }
.smap__lbl { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.smap__pt--rec circle { fill: var(--accent); stroke: var(--accent); }
.smap__pt--rec .smap__lbl { fill: var(--accent); font-weight: 800; }
.smap__pt--alt circle { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2.5; }
.smap__pt--alt .smap__lbl { fill: var(--ink); }
.smap__pt--avoid circle { fill: var(--error-soft); stroke: var(--error); stroke-dasharray: 3 2; }
.smap__pt--avoid .smap__lbl { fill: var(--ink-3); text-decoration: line-through; }
.smap__pt:hover circle, .smap__pt:focus-visible circle { stroke-width: 3.5; }
.smap-legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; color: var(--ink-2); }
.smap-legend li { display: inline-flex; align-items: center; gap: 6px; }
.smap-legend li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--line-2); }
.smap-legend--rec::before { background: var(--accent); border-color: var(--accent) !important; }
.smap-legend--alt::before { background: var(--accent-soft); border-color: var(--accent) !important; }
.smap-legend--avoid::before { background: var(--error-soft); border-color: var(--error) !important; border-style: dashed !important; }
.smap-note { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }

.strats { display: grid; gap: 14px; margin-top: 18px; }
.strat { scroll-margin-top: 130px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; }
.strat--rec { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.strat--alt { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.strat--avoid { background: var(--surface-2); }
.strat--chosen .strat__actions .ok-mark { font-size: 16px; }
.strat__head { display: grid; gap: 6px; justify-items: start; }
.strat__badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); }
.strat--alt .strat__badge { background: var(--accent-soft); color: var(--accent); }
.strat--avoid .strat__badge { background: var(--error-soft); color: var(--error); }
.strat__title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.strat__term { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.strat__essence { font-size: 16px; }
.strat__why { font-size: 14px; color: var(--ink-2); padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.strat__why--neg { background: var(--error-soft); }
.strat__phrase { margin: 0; padding: 12px 14px; border-left: 4px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; display: grid; gap: 4px; font-size: 16px; font-weight: 600; }
.strat__k { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.strat__facts { display: grid; gap: 10px; }
.strat__row { display: grid; gap: 2px; font-size: 15px; color: var(--ink-2); }
.strat__row ul { margin: 0; padding-left: 18px; }
.strat__more { border-top: 1px solid var(--line); padding-top: 4px; }
.strat__more summary { cursor: pointer; min-height: 40px; padding: 8px 0; font-weight: 600; font-size: 14px; color: var(--accent); }
.strat__more .strat__row { margin-top: 12px; }
.strat__more .strat__row:first-of-type { margin-top: 4px; }
.strat__dialog .strat__them { font-style: italic; }
.strat__you { color: var(--ink); font-weight: 600; padding-left: 12px; border-left: 3px solid var(--accent); }
.strat__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rel { font-weight: 700; }
.rel--up { color: var(--ok); }
.rel--flat { color: var(--ink-2); }
.rel--down { color: var(--error); }

/* Уточнение по вопросам */
.refine__q { display: grid; gap: 6px; margin-bottom: 12px; }
.refine__q label, .refine__free { font-size: 15px; font-weight: 600; color: var(--ink); }
.refine__free { display: block; margin-bottom: 6px; }
.refine .refine__a { min-height: 64px; }
.refine textarea.refine__a { display: block; width: 100%; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); font-size: 16px; line-height: 1.5; }

/* После разговора */
.after, .reply-next { margin-top: 24px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.after__title { font-size: 19px; font-weight: 800; }
.letter { display: grid; gap: 10px; justify-items: start; }
.letter__text { display: grid; gap: 8px; font-size: 15px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); width: 100%; }
.reply-next { border-top: 3px solid var(--accent); }
.reply-next__input { min-height: 96px; resize: vertical; font: 15px/1.5 var(--font); }
.round { display: grid; gap: 10px; padding: 14px 0; border-top: 1px dashed var(--line-2); }
.round__n { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.round__their { margin: 0; padding: 10px 12px; border-radius: 12px 12px 12px 4px; background: var(--surface-2); border: 1px solid var(--line); display: grid; gap: 4px; font-style: italic; }
.round__reading { font-size: 16px; }
.round__signals { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 15px; }
.answer--compact { padding: 14px; box-shadow: none; }
.answer--compact .answer__actions { margin-top: 12px; padding-top: 12px; }
.stance { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--line); color: var(--ink-2); }
.stance--ok { background: var(--fact-soft); color: var(--ok); }
.stance--interp { background: var(--interp-soft); color: var(--interp); }
.stance--missing { background: var(--missing-soft); color: var(--missing); }

/* Кто здесь кто */
.who { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); display: grid; gap: 8px; }
.who__title { font-size: 13px; font-weight: 800; color: var(--accent); }
.who__row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 14px; }
.who__name { font-weight: 700; }

@media (min-width: 600px) {
  .trust { grid-template-columns: repeat(3, 1fr); }
  .sits { grid-template-columns: 1fr 1fr; }
  .final__actions { flex-direction: row; }
  .ints__cols { grid-template-columns: 1fr 1fr; }
  .method__list, .privacy__list { grid-template-columns: 1fr 1fr; }
  .reviews__list { grid-template-columns: 1fr 1fr; }
  .strat { padding: 22px; }
  .strat__facts { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .hide-md { display: inline-flex; }
  .how__list { grid-template-columns: repeat(3, 1fr); }
  .bna { grid-template-columns: 1fr auto 1.3fr; align-items: center; }
  .bna__arrow { transform: none; }
  .method__list { grid-template-columns: repeat(4, 1fr); }
  .privacy__list { grid-template-columns: repeat(4, 1fr); }
  .reviews__list { grid-template-columns: repeat(3, 1fr); }
}

/* Телефон: кнопка «Разобрать ситуацию» — в первом экране (812 px) */
.only-sm { display: inline; }
.hide-only-sm { display: none; }
@media (max-width: 599px) {
  .hero { padding-top: 16px; }
  .eyebrow { margin-bottom: 10px; }
  .hero__title { margin-bottom: 12px; }
  .hero__lead { font-size: 16px; margin-bottom: 16px; }
  .composer { padding: 14px; }
  .composer__label { font-size: 17px; margin-bottom: 6px; }
  .composer textarea#situation { min-height: 108px; height: 108px; }
  .attach { padding: 8px 10px; margin-top: 10px; }
  .attach__hint { display: none; }
  .tick { font-size: 13px; margin-top: 10px; }
  .composer__actions { margin-top: 12px; }
}
@media (min-width: 600px) {
  .only-sm { display: none; }
  .hide-only-sm { display: inline; }
}
@media (min-width: 900px) {
  .method__list, .privacy__list { grid-template-columns: 1fr 1fr; }
}

/* Карта + сводка рядом */
.smap-fig { min-width: 0; }
.msum { display: grid; gap: 10px; align-content: start; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 12px; }
.msum ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.msum__row { display: grid; gap: 4px; justify-items: start; }
.msum__title { border: 0; background: none; padding: 0; font-weight: 800; font-size: 17px; color: var(--ink); text-align: left; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.msum__title:hover { color: var(--accent); text-decoration-color: var(--accent); }
.msum__row--avoid .msum__title { color: var(--ink-3); }
.msum__row--alt .strat__badge { background: var(--accent-soft); color: var(--accent); }
.msum__row--avoid .strat__badge { background: var(--error-soft); color: var(--error); }
.msum__text { font-size: 14px; color: var(--ink-2); }
.msum__note { font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) {
  .smap-wrap--aside { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 16px 20px; }
  .smap-wrap--aside .msum { border-top: 0; margin-top: 0; padding-top: 0; padding-left: 24px; border-left: 1px solid var(--line); }
}

/* ── v10: окно о cookie ── */
.ck { position: fixed; z-index: 55; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom));
  width: min(640px, calc(100vw - 24px)); padding: 16px 18px; border-radius: var(--radius);
  background: var(--next-bg); color: var(--next-ink); box-shadow: 0 12px 40px rgba(0,0,0,.25); display: grid; gap: 12px; }
.ck p { font-size: 14px; line-height: 1.5; color: var(--next-ink); }
.ck a { color: var(--next-accent); }
.ck__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.ck .btn--primary { background: var(--next-accent); border-color: var(--next-accent); color: var(--next-bg); }
.ck .btn--ghost { color: var(--next-ink); border-color: color-mix(in srgb, var(--next-ink) 40%, transparent); }
.footer__ck { font-size: 13px; color: var(--ink-3); }
@media (max-width: 599px) {
  .ck { left: 0; right: 0; transform: none; width: auto; bottom: 0; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .ck__acts .btn { flex: 1 1 0; }
  .ck { padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); gap: 10px; }
  .ck p { font-size: 13px; line-height: 1.45; }
}

/* ══════════════════ v11: корпоративная среда, панель ситуации ══════════════════ */

/* Материалы: переключатель «Фото или файл / Вставить текст» и зона для файлов */
.attach { padding: 10px; border-style: solid; background: var(--surface-2); }
.seg--attach { margin-bottom: 10px; background: var(--paper); }
.seg--attach .seg__btn[aria-checked="true"] { color: var(--accent); }
.dropzone { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line-2)); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; }
.dropzone:hover, .composer.is-drop .dropzone { border-color: var(--accent); background: var(--accent-soft); }
.dropzone b { color: var(--accent); font-size: 15px; }
.dropzone span { color: var(--ink-3); font-size: 13px; }
.attach__files { margin-top: 10px; }
.attach__x { width: 24px; height: 24px; border: 0; border-radius: 50%; background: var(--line); color: var(--ink-2); font-size: 16px; line-height: 1; padding: 0; display: grid; place-items: center; }
.attach__x:hover { background: var(--error-soft); color: var(--error); }
.attach__mhead { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.attach__clear { font-size: 13px; flex: none; }

/* Короткие опоры доверия вместо карточек */
.pills { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.pills li::before { content: "✓"; color: var(--accent); font-weight: 800; }

/* Три направления общения */
.dirs__grid { display: grid; gap: 12px; }
.dir { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 6px; align-content: start; }
.dir--ext { border-top: 3px solid var(--accent); }
.dir__icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.dir__title { font-size: 18px; font-weight: 800; }
.dir__sub { color: var(--ink-3); font-size: 13px; margin-top: -2px; }
.dir__list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.dir__ex { width: 100%; text-align: left; padding: 9px 30px 9px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); font-size: 14px; color: var(--ink); position: relative; }
.dir__ex::after { content: "→"; position: absolute; right: 12px; color: var(--accent); font-weight: 800; }
.dir__ex:hover { border-color: var(--accent); background: var(--accent-soft); }

/* Четыре шага */
.steps4 { list-style: none; counter-reset: s4; margin: 0; padding: 0; display: grid; gap: 10px; }
.steps4 li { counter-increment: s4; display: grid; grid-template-columns: 36px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps4 li::before { content: counter(s4); grid-row: 1 / 3; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; }
.steps4 b { font-size: 16px; }
.steps4 span { color: var(--ink-2); font-size: 14px; }
.steps4__note { margin-top: 12px; }

/* Четыре опоры */
.tiles4 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.tiles4 li { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); display: grid; gap: 4px; }
.tiles4 b { font-size: 15px; color: var(--accent); }
.tiles4 span { font-size: 14px; color: var(--ink-2); }

/* Панель ситуации */
.dash { margin: 4px 0 14px; }
.dash__title { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.dash__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { text-align: left; display: grid; gap: 6px; align-content: start; padding: 12px; min-height: 92px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); min-width: 0; }
.tile:hover { border-color: var(--accent); }
.tile--wide { grid-column: 1 / -1; }
.tile--accent { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: var(--accent-soft); }
.tile--next { background: var(--next-bg); color: var(--next-ink); border-color: var(--next-bg); }
.tile--next .tile__k { color: var(--next-accent); }
.tile--pending { background: var(--surface-2); border-style: dashed; }
.tile__k { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); }
.tile__text { font-size: 14px; line-height: 1.4; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.tile__text--2 { -webkit-line-clamp: 2; }
.tile__text--3 { -webkit-line-clamp: 3; }
.tile__big { font-size: 17px; font-weight: 800; line-height: 1.2; }
.tile__wait { font-size: 13px; color: var(--ink-3); }
.stat3s { display: flex; gap: 10px; flex-wrap: wrap; }
.stat3 { display: grid; line-height: 1.1; }
.stat3 b { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat3 small { font-size: 11px; color: var(--ink-3); }
.stat3s--small .stat3 b { font-size: 18px; }
.stat3--fact b { color: var(--fact); }
.stat3--interp b { color: var(--interp); }
.stat3--missing b { color: var(--missing); }
.chipline { display: flex; flex-wrap: wrap; gap: 4px; }
.mini { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--line); color: var(--ink-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini--ok { background: var(--fact-soft); color: var(--ok); }
.mini--warn { background: var(--interp-soft); color: var(--interp); }
.mini--accent { background: var(--accent); color: var(--accent-ink); }
.mini--bad { background: var(--error-soft); color: var(--error); }

/* Пояснения по нажатию */
.more { margin-top: 4px; }
.more summary { cursor: pointer; font-size: 13px; color: var(--accent); font-weight: 600; list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "＋ "; }
.more[open] summary::before { content: "− "; }
.ints { padding: 0; }
.ints__sum { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--accent); list-style: none; }
.ints__sum::-webkit-details-marker { display: none; }
.ints__sum::after { content: " ▾"; }
.ints[open] .ints__sum::after { content: " ▴"; }
.ints[open] > :not(summary) { margin: 0 18px 14px; }
.refine > summary { color: var(--accent); }

@media (min-width: 600px) {
  .dirs__grid { grid-template-columns: repeat(3, 1fr); }
  .steps4 { grid-template-columns: 1fr 1fr; }
  .tiles4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .steps4 { grid-template-columns: repeat(4, 1fr); }
  .steps4 li { grid-template-columns: 1fr; grid-template-rows: auto; row-gap: 6px; align-items: start; }
  .steps4 li::before { grid-row: auto; }
  .tiles4 { grid-template-columns: repeat(4, 1fr); }
  .dash__grid { grid-template-columns: repeat(4, 1fr); }
  .tile--wide { grid-column: span 2; }
}

/* v11: плашки в плитках — по ширине текста; «Следующий ход» — во всю строку */
.tile > .mini, .tile .chipline { justify-self: start; }
.tile--full { grid-column: 1 / -1; }

/* v11: на телефоне зона перетаскивания не нужна — выбор файла открывает переключатель */
@media (max-width: 599px) {
  .dropzone { display: none; }
  .seg--attach { margin-bottom: 0; }
  .attach { padding: 6px; }
  .composer textarea#situation { min-height: 96px; height: 96px; }
}

/* ══════ v13: главная в стиле линейки — засечки, кадр продукта, методики ══════ */
/* Playfair Display — SIL Open Font License 1.1 (public/fonts/OFL.txt); свои файлы, потому что CSP закрывает сторонние шрифты. */
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/playfair-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: italic; font-weight: 500; font-display: swap; src: url(/fonts/playfair-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/playfair-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/playfair-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/playfair-normal-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/playfair-normal-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root { --font-display: "Playfair Display", Georgia, "Times New Roman", serif; }

.wrap--wide { max-width: 1120px; }
.section-title, .step__title, .next__title, .final__title, .display, .after__title, .mcard__title, .acc-section__title, .account__title {
  font-family: var(--font-display); font-weight: 600; letter-spacing: -.005em;
}
.section-title { font-size: clamp(28px, 4.2vw, 42px); line-height: 1.12; text-wrap: balance; }
.section-lead { color: var(--ink-2); font-size: 17px; max-width: 680px; margin: -6px 0 22px; }
.kicker { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.kicker::before { content: ""; width: 24px; height: 1.5px; background: currentColor; }
.kicker--light { color: var(--next-accent); }
.band { padding: 64px 0; }

/* Первый экран */
.hero2 { padding: 40px 0 56px; background:
  radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
  radial-gradient(700px 360px at -10% 110%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
  var(--paper); }
.hero2__in { display: grid; gap: 36px; align-items: center; }
.badge-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.badge-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.display { font-size: clamp(34px, 5.4vw, 60px); line-height: 1.06; margin-bottom: 18px; text-wrap: balance; }
.display em, .final__title em { font-style: italic; font-weight: 500; color: var(--accent); }
.hero2__lead { color: var(--ink-2); font-size: 18px; line-height: 1.55; max-width: 560px; margin-bottom: 26px; }
.hero2__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero2__cta .btn { text-decoration: none; }
.hero2__cta .btn--ghost { border-color: var(--line-2); background: var(--surface); }
.nums { list-style: none; margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 20px; }
.nums li { display: grid; gap: 2px; }
.nums b { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--accent); line-height: 1.1; }
.nums span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }

/* Кадр продукта */
.frame { margin: 0; background: var(--next-bg); color: var(--next-ink); border-radius: 22px; box-shadow: 0 30px 60px -20px rgba(11, 52, 64, .45), 0 2px 6px rgba(0, 0, 0, .08); overflow: hidden; }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid color-mix(in srgb, var(--next-ink) 12%, transparent); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--next-muted); }
.frame__bar i { width: 9px; height: 9px; border-radius: 50%; background: color-mix(in srgb, var(--next-ink) 25%, transparent); }
.frame__bar span { margin-left: 8px; }
.frame__body { padding: 18px 20px 20px; display: grid; gap: 14px; }
.frame__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.frame__chips span { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--next-ink) 10%, transparent); color: var(--next-ink); }
.frame__stage { justify-self: start; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--next-accent); color: var(--next-bg); }
.frame__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.frame__stats p { display: grid; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--next-ink) 7%, transparent); }
.frame__stats b { font-family: var(--font-display); font-size: 30px; line-height: 1; }
.frame__stats small { font-size: 12px; color: var(--next-muted); margin-top: 4px; }
.c-fact { color: #9DBBF5; }
.c-interp { color: #F0B35C; }
.c-missing { color: #C9A9F5; }
.frame__rec { padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--next-accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--next-accent) 40%, transparent); display: grid; gap: 6px; }
.frame__k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--next-accent); }
.frame__title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.frame__phrase { font-size: 14px; color: var(--next-muted); line-height: 1.5; }
.frame__avoid { font-size: 13px; color: var(--next-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--next-muted) 50%, transparent); }
.frame figcaption { padding: 0 20px 16px; font-size: 12px; color: var(--next-muted); }
.frame figcaption a { color: var(--next-accent); }

/* Форма — своим разделом */
.start { background: var(--surface); }
.start .composer { box-shadow: 0 1px 2px rgba(28, 25, 23, .04), 0 18px 40px -18px rgba(28, 25, 23, .18); }

/* Когда это нужно */
.when__list { list-style: none; counter-reset: w; margin: 8px 0 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.when__list li { counter-increment: w; display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.when__list li::before { content: "0" counter(w); grid-row: 1 / 3; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--accent); line-height: 1.1; }
.when__list b { font-size: 18px; }
.when__list span { color: var(--ink-2); font-size: 15px; }

/* Тёмная полоса «Как это работает» */
.band-dark { padding: 64px 0; background: var(--next-bg); color: var(--next-ink); }
.band-dark .section-title { color: var(--next-ink); }
.how2 .steps4 li { background: color-mix(in srgb, var(--next-ink) 6%, transparent); border-color: color-mix(in srgb, var(--next-ink) 14%, transparent); }
.how2 .steps4 li::before { background: var(--next-accent); color: var(--next-bg); }
.how2 .steps4 b { color: var(--next-ink); font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.how2 .steps4 span { color: var(--next-muted); }
.how2__note { margin-top: 16px; color: var(--next-muted); font-size: 14px; }

/* Методики */
.method { background: var(--surface); }
.methods { display: grid; gap: 16px; }
.mcard { padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--paper); display: grid; gap: 10px; align-content: start; }
.mcard__src { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.mcard__title { font-size: 24px; line-height: 1.2; }
.mcard__what { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.mcard__dl { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.mcard__dl dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-top: 8px; }
.mcard__dl dt:first-child { margin-top: 0; }
.mcard__dl dd { margin: 0; font-size: 15px; }
.method__note { margin-top: 20px; padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; color: var(--ink); font-size: 15px; max-width: 860px; }

/* Данные — три плитки */
.tiles3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tiles3 li { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); display: grid; gap: 6px; }
.tiles3 b { font-family: var(--font-display); font-size: 20px; font-weight: 600; }
.tiles3 span { color: var(--ink-2); font-size: 15px; }

/* Финальный призыв и подвал по центру */
.final { text-align: center; }
.final__in { display: grid; justify-items: center; }
.final__title { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.1; }
.final__actions { justify-content: center; }
.footer__copy { justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 14px; text-align: center; }
.footer__lock { text-decoration: none; opacity: .55; font-size: 15px; }
.footer__lock:hover { opacity: 1; }

@media (min-width: 600px) {
  .nums { grid-template-columns: repeat(4, 1fr); }
  .tiles3 { grid-template-columns: repeat(3, 1fr); }
  .methods { grid-template-columns: 1fr 1fr; }
  .when__list { grid-template-columns: 1fr 1fr; column-gap: 40px; }
}
@media (min-width: 960px) {
  .hero2 { padding: 64px 0 80px; }
  .hero2__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; }
  .band, .band-dark { padding: 88px 0; }
}
@media (max-width: 599px) {
  .hero2 { padding: 22px 0 36px; }
  .display { font-size: 32px; }
  .hero2__lead { font-size: 16px; margin-bottom: 18px; }
  .hero2__cta .btn { flex: 1 1 100%; }
  .frame__stats b { font-size: 24px; }
  .band, .band-dark { padding: 48px 0; }
}

/* v13: поправки после просмотра */
.display { font-size: clamp(32px, 4.4vw, 52px); }
.nums b, .frame__stats b, .when__list li::before, .reviews__avg, .plan__price { font-variant-numeric: lining-nums; }
.steps4 li { align-content: start; }
.topbar .wrap { max-width: 1120px; }

/* ══════ v14: компактнее и строже — меньше воздуха и служебных надписей ══════ */

.band, .band-dark { padding: 44px 0; }
.section-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 0; }
.sec-head { display: grid; gap: 8px; margin-bottom: 22px; }
.sec-head__text { color: var(--ink-3); font-size: 15px; max-width: 520px; }
.sec-head__text a { color: var(--ink-3); }
.band-dark .section-title { margin-bottom: 18px; }
.when .section-title, .method .section-title { margin-bottom: 18px; }
.method .sec-head .section-title { margin-bottom: 0; }

/* Первый экран — плотнее */
.hero2 { padding: 28px 0 36px; }
.badge-pill { margin-bottom: 14px; padding: 5px 12px; font-size: 12px; }
.display { margin-bottom: 14px; }
.hero2__lead { font-size: 17px; margin-bottom: 20px; }
.nums { margin-top: 22px; padding-top: 16px; }
.nums b { font-size: 26px; }

/* Опишите ситуацию: слева пояснение, справа форма — по той же сетке, что и первый экран */
.start__in { display: grid; gap: 20px; align-items: start; }
.start__side { display: grid; gap: 12px; align-content: start; }
.start__text { color: var(--ink-2); font-size: 16px; }
.start__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.start__facts li { position: relative; padding-left: 22px; font-size: 14px; color: var(--ink-2); }
.start__facts li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 800; }
.start .examples { margin-top: 6px; gap: 6px; }
.start .examples__label { width: 100%; font-size: 13px; }
.start .chip { font-size: 13px; padding: 6px 12px; }
.start .composer { padding: 18px; }

/* С кем: без кнопок, одинаковые значки */
.dirs__grid { gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.dir { border: 0; border-radius: 0; padding: 22px; gap: 8px; background: var(--surface); }
.dir--ext { border-top: 0; }
.dir__ic { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dir__title { font-family: var(--font-display); font-size: 21px; font-weight: 600; }
.dir__who { font-size: 14px; color: var(--ink-2); }
.dir__eg { font-size: 14px; color: var(--ink-3); line-height: 1.55; }
.dir__eg span { color: var(--ink); font-weight: 600; }
.dirs__more { margin-top: 14px; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--accent); }

/* Было → стало */
.ba { display: grid; gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.ba__col { padding: 22px; display: grid; gap: 12px; align-content: start; }
.ba__col--before { background: var(--surface); }
.ba__col--after { background: var(--next-bg); color: var(--next-ink); }
.ba__label { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.ba__col--after .ba__label { color: var(--next-accent); }
.ba .bubble { background: var(--paper); }
.ba__thought { font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--ink-2); }
.ba__k { display: block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--next-muted); margin-bottom: 2px; font-family: var(--font); font-style: normal; }
.ba__strat { font-family: var(--font-display); font-size: 24px; font-weight: 600; line-height: 1.2; }
.ba__why { font-size: 14px; color: var(--next-muted); }
.ba__phrase { margin: 0; padding: 12px 14px; border-left: 3px solid var(--next-accent); background: color-mix(in srgb, var(--next-ink) 7%, transparent); border-radius: 0 10px 10px 0; font-size: 15px; font-weight: 600; }
.ba__phrase .ph { background: color-mix(in srgb, var(--next-accent) 30%, transparent); color: var(--next-ink); }
.ba__next { font-size: 14px; color: var(--next-ink); }
.ba__link { justify-self: start; color: var(--next-accent); font-weight: 700; font-size: 14px; text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--next-accent) 45%, transparent); }

/* Сравнение: сетка, выделенная колонка «Позиция.Про», значки вместо слов */
.cmp-scroll { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 8px var(--gutter) 4px; }
.cmp { min-width: 640px; display: grid; }
.cmp__row { display: grid; grid-template-columns: 1.35fr 1fr 1.1fr 1fr; align-items: stretch; }
.cmp__row > span { padding: 12px 14px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; }
.cmp__row > span[role="rowheader"] { color: var(--ink); font-weight: 600; }
.cmp__row--head > span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-bottom-color: var(--line-2); }
.cmp__row > .cmp__us { background: var(--next-bg); color: var(--next-ink); font-weight: 600; border-bottom-color: color-mix(in srgb, var(--next-ink) 12%, transparent); }
.cmp__row--head > .cmp__us { color: var(--next-accent); border-radius: 14px 14px 0 0; font-family: var(--font-display); font-size: 17px; letter-spacing: 0; text-transform: none; }
.cmp__row--last > span { border-bottom: 0; }
.cmp__row--last > .cmp__us { border-radius: 0 0 14px 14px; }
.cmp__row--last .cmp__us b { font-family: var(--font-display); font-size: 20px; color: var(--next-accent); font-variant-numeric: lining-nums; }
.mk { flex: none; width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; }
.mk--yes { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.mk--yes::before { content: "✓"; }
.mk--part { background: var(--interp-soft); color: var(--interp); }
.mk--part::before { content: "≈"; }
.mk--no { background: var(--line); color: var(--ink-3); }
.mk--no::before { content: "—"; }
.cmp__us .mk--yes { background: var(--next-accent); color: var(--next-bg); }

/* Остальные блоки — плотнее */
.when__list li { padding: 14px 0; }
.when__list b { font-size: 16px; }
.when__list span { font-size: 14px; }
.steps4 li { padding: 14px; }
.mcard { padding: 20px; gap: 8px; border-radius: 14px; }
.mcard__title { font-size: 21px; }
.mcard__what, .mcard__dl dd { font-size: 14px; }
.method__note { margin-top: 14px; padding: 12px 16px; font-size: 14px; }
.tiles3 li { padding: 16px; }
.tiles3 b { font-size: 18px; }
.plans { gap: 12px; }
.plan { padding: 18px 18px 16px; }
.pricing__lead { margin: 0 0 16px; }
.final { padding: 40px 0 44px; }

@media (min-width: 600px) {
  .dirs__grid { grid-template-columns: repeat(3, 1fr); }
  .ba { grid-template-columns: 1fr 1.25fr; }
}
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); align-items: end; gap: 32px; }
  .sec-head__text { justify-self: end; text-align: right; }
  .start__in { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; }
}
@media (min-width: 960px) {
  .hero2 { padding: 44px 0 52px; }
  .band, .band-dark { padding: 56px 0; }
}
@media (max-width: 599px) {
  .band, .band-dark { padding: 32px 0; }
  .hero2 { padding: 18px 0 28px; }
}

/* ══════ v14: отзывы лентой, обратная связь, возврат с документами (как у Резюме.Про) ══════ */

.reviews__head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.reviews__sum { margin: 0; gap: 8px; align-items: baseline; }
.reviews__sum[hidden] { display: none; }
.reviews__avg { font-family: var(--font-display); font-size: 26px; font-weight: 600; }
.reviews__empty { max-width: none; padding: 14px 18px; font-size: 14px; color: var(--ink-3); }

.rv-wrap { position: relative; overflow: hidden; margin: 0 calc(-1 * var(--gutter)); padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.rv-track { display: flex; gap: 14px; width: max-content; padding: 0 var(--gutter); }
.rv-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 14px; }
.rv-wrap--run .rv-track { animation: rv-run var(--rv-dur, 60s) linear infinite; }
.rv-wrap.is-paused .rv-track { animation-play-state: paused; }
@media (hover: hover) { .rv-wrap--run:hover .rv-track { animation-play-state: paused; } }
@keyframes rv-run { from { transform: translateX(0); } to { transform: translateX(calc(-50% - 7px)); } }
.rv-wrap--static { -webkit-mask-image: none; mask-image: none; }
.rv-wrap--static .rv-list--dup { display: none; }
/* Без анимации — ручная прокрутка с «защёлкой»: телефон и «уменьшить движение» */
@media (prefers-reduced-motion: reduce), (hover: none) {
  .rv-wrap { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-mask-image: none; mask-image: none; scrollbar-width: none; }
  .rv-wrap::-webkit-scrollbar { display: none; }
  .rv-wrap--run .rv-track { animation: none; }
  .rv-list--dup { display: none; }
  .rv { scroll-snap-align: start; }
}
.rv { width: min(320px, 80vw); flex: none; display: grid; gap: 8px; align-content: start; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.rv__stars { color: var(--accent); letter-spacing: 2px; font-size: 14px; }
.rv__text { font-size: 15px; line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv.is-open .rv__text { -webkit-line-clamp: unset; display: block; }
.rv__more { justify-self: start; font-size: 13px; }
.rv__meta { font-size: 13px; color: var(--ink-3); }
.rv__meta b { color: var(--ink); font-weight: 600; }

/* Окна: отзыв, обратная связь, возврат */
.sheet__text { min-height: 96px; resize: vertical; font: 15px/1.5 var(--font); }
.sheet__done { padding: 4px 20px 20px; display: grid; gap: 10px; }
.sheet__done[hidden] { display: none; }
.sheet__done-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.sheet__done p { color: var(--ink-2); font-size: 15px; }
.sheet .stars { margin-bottom: 4px; }
.sheet .star { width: 34px; height: 34px; font-size: 24px; }

.rf-plans { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.rf-plans .chip { font-size: 14px; padding: 7px 14px; }
.rf-plans .chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rf-drop { display: grid; gap: 2px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); cursor: pointer; }
.rf-drop:hover, .rf-drop:focus-within { border-color: var(--accent); }
.rf-drop b { color: var(--accent); font-size: 15px; }
.rf-drop span { font-size: 13px; color: var(--ink-3); line-height: 1.45; }
.rf-drop.is-full { opacity: .55; pointer-events: none; }
.rf-files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.rf-files[hidden] { display: none; }
.rf-files li { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 14px; }
.rf-files .rf-files__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rf-files .rf-files__size { color: var(--ink-3); font-size: 13px; font-variant-numeric: tabular-nums; }
.rf-files .iconbtn { width: 30px; height: 30px; min-height: 0; font-size: 14px; }
.rf-files .rf-files__left { border: 0; background: none; padding: 2px 0 0; font-size: 13px; color: var(--ink-3); }
.rf-warn { padding: 10px 12px; border-radius: 8px; background: var(--interp-soft); color: var(--interp); font-size: 14px; }

/* Обратная связь — плавающая кнопка; перетаскивается, место запоминается */
.fab { position: fixed; z-index: 50; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom) + var(--ck-h, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 14px;
  border: 1px solid color-mix(in srgb, var(--next-ink) 14%, transparent); border-radius: 999px;
  background: var(--next-bg); color: var(--next-ink); font: 600 14px/1 var(--font);
  box-shadow: 0 10px 30px rgba(11, 52, 64, .28); cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  transition: box-shadow .2s, transform .2s; }
.fab:hover { box-shadow: 0 14px 36px rgba(11, 52, 64, .36); }
.fab:focus-visible { outline: 2px solid var(--next-accent); outline-offset: 3px; }
.fab.is-dragging { cursor: grabbing; transition: none; box-shadow: 0 18px 44px rgba(11, 52, 64, .42); }
.fab.is-placed { right: auto; bottom: auto; }
.fab span { font-size: 17px; }
@media (max-width: 599px) {
  .fab { width: 48px; height: 48px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .fab span { font-size: 20px; }
}
@media print { .fab { display: none; } }

.footer__links .linkbtn { font-size: inherit; color: inherit; text-align: left; }

/* Было → стало: внизу «было» — чем плох первый порыв; колонка не пустует */
.ba__col--before { align-content: stretch; grid-template-rows: auto auto auto 1fr; }
.ba__risk { align-self: end; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.ba__risk b { color: var(--ink-2); }

/* Окна v14: два поля в строку — короче по высоте */
.sheet__row { display: grid; gap: 4px 12px; }
.sheet__row .field { display: grid; gap: 0; align-content: start; }
@media (min-width: 600px) { .sheet__row { grid-template-columns: 1fr 1fr; } }
.sheet .sheet__text { min-height: 84px; }
/* Карточка отзыва: подпись прижата к низу — карточки одной высоты выглядят ровно */
.rv { display: flex; flex-direction: column; }
.rv__more { align-self: flex-start; }
.rv__meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
/* Плавающая кнопка не закрывает последние строки подвала на телефоне */
@media (max-width: 599px) { .footer__in { padding-bottom: 64px; } }

/* ══════ v15: ровные отступы под заголовками, частые ситуации, вопросы по сетке ══════ */

/* Под заголовком раздела — всегда воздух: 20 px до содержимого, 12 px до вводного абзаца */
.band .section-title, .band-dark .section-title { margin-bottom: 20px; }
.band .sec-head .section-title { margin-bottom: 0; }
.start .section-title, .pricing .section-title { margin-bottom: 12px; }
.pricing__lead { margin: 0 0 20px; }
.final__lead { margin-top: 14px; }
.sec-head { gap: 12px; margin-bottom: 24px; }
.dir__title, .mcard__title { margin-bottom: 2px; }
/* Пояснение справа — на одной линии с заголовком (по последней строке) */
@media (min-width: 900px) { .sec-head { align-items: last baseline; } }

/* Опишите ситуацию: слева заголовок и частые ситуации, справа форма; на телефоне — форма раньше списка */
.start__in { grid-template-areas: "side" "main" "cases"; }
.start__side { grid-area: side; }
.start__main { grid-area: main; min-width: 0; }
.start__in > .cases { grid-area: cases; }
.start__facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; }
.start__facts li { font-size: 13px; color: var(--ink-3); }
@media (min-width: 900px) {
  .start__in { grid-template-areas: "side main" "cases main"; grid-template-rows: auto 1fr; row-gap: 22px; }
}
.cases { display: grid; gap: 14px; align-content: start; }
.cases__title { font-size: 14px; font-weight: 700; color: var(--ink); }
.cases__title span { font-weight: 400; color: var(--ink-3); }
.cases__group { display: grid; gap: 2px; }
.cases__h { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
.cases__list { list-style: none; margin: 0; padding: 0; display: grid; }
.cases__item { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 5px 0; border: 0; border-bottom: 1px solid var(--line); background: none;
  color: var(--ink-2); font: 14px/1.4 var(--font); text-align: left; cursor: pointer; transition: color .15s; }
.cases__list li:last-child .cases__item { border-bottom: 0; }
.cases__item::before { content: "→"; color: var(--accent); opacity: .45; transition: opacity .15s, transform .15s; }
.cases__item:hover, .cases__item:focus-visible { color: var(--accent); }
.cases__item:hover::before, .cases__item:focus-visible::before { opacity: 1; transform: translateX(3px); }
.cases__item.is-on { color: var(--accent); font-weight: 600; }
.cases__item.is-on::before { opacity: 1; }

/* Было: сначала — откуда реплика */
.ba__ctx { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.ba__k--ink { color: var(--ink-3); }

/* Частые вопросы: та же сетка, что у «Опишите ситуацию» — заголовок слева, вопросы справа */
.faq__in { display: grid; gap: 0; }
@media (min-width: 900px) {
  .faq__in { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .faq__in .section-title { margin-bottom: 0; position: sticky; top: 84px; }
}

/* Документы: текст по ширине, с переносами — чтобы не было «рек» из пробелов */
.doc p, .doc li { text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.doc h1, .doc h2, .doc h3, .doc .doc-rev { text-align: left; -webkit-hyphens: manual; hyphens: manual; }
/* Колонки «Опишите ситуацию» заканчиваются почти вровень: список плотнее, поле выше */
.cases__item { padding: 4px 0; }
@media (min-width: 900px) { .start #situation { min-height: 200px; } }
/* Пояснение справа — шире, не больше двух строк: по высоте вровень с заголовком */
@media (min-width: 900px) {
  .sec-head { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
  .sec-head__text { max-width: 560px; }
}

.faq__side { display: grid; gap: 10px; align-content: start; margin-bottom: 20px; }
.faq__side .section-title { margin-bottom: 0; }
.faq__more { font-size: 15px; color: var(--ink-3); }
.faq__more .linkbtn { font-size: inherit; color: var(--accent); min-height: 0; padding: 0; text-decoration-color: currentColor; }
@media (min-width: 900px) {
  .faq__side { position: sticky; top: 84px; margin-bottom: 0; }
  .faq__in .section-title { position: static; }
}

/* На телефоне список частых ситуаций — под формой; ссылка к нему */
.start__jump { justify-self: start; font-size: 14px; font-weight: 600; color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
@media (min-width: 900px) { .start__jump { display: none; } }
.cases { scroll-margin-top: 80px; }
#casesTitle { scroll-margin-top: 80px; }
