/* Публичные страницы (subspec-public.md): токены и правила design-system.md, разделы 1-3 и 6. Кабинет и мастер - style.css.
   Тема: системная, выбор пользователя (cookie gc_theme) приходит атрибутом data-theme от сервера, без мигания. */
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/onest-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/onest-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: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --step-small: 0.875rem;
  --step-body: 1.0625rem;
  --step-lead: clamp(1.125rem, 1.05rem + 0.55vw, 1.375rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-hero: clamp(1.75rem, 1.2rem + 2vw, 2.875rem);
  --radius: 8px;
  --gutter: 16px;
  --accent: #1b6ae0;
  --accent-ink: #ffffff;
  --bg: #fafafa; --stage: #eef0f3; --surface: #eef0f3; --field: #e3e6ea;
  --ink: #111214; --soft: #454b53; --muted: #5b626b; --link: #1650b8;
  --f1: #f4f4f6; --f2: #e9eaee; --f3: #dcdfe5;
  --ok: #176b3a; --ok-bg: #dff3e6; --warn: #7a5a00; --warn-bg: #fbefc9; --err: #b3262d;
  --ui-line: #c6cad1;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0e; --stage: #14161a; --surface: #14161a; --field: #1b1e23;
    --ink: #e8eaed; --soft: #aab0b8; --muted: #8b929b; --link: #8ab8ff;
    --f1: #101215; --f2: #181b21; --f3: #232730;
    --ok: #6ee7a0; --ok-bg: #10261a; --warn: #f5c451; --warn-bg: #2a2210; --err: #ff8a8f;
    --ui-line: #2f333a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0e; --stage: #14161a; --surface: #14161a; --field: #1b1e23;
  --ink: #e8eaed; --soft: #aab0b8; --muted: #8b929b; --link: #8ab8ff;
  --f1: #101215; --f2: #181b21; --f3: #232730;
  --ok: #6ee7a0; --ok-bg: #10261a; --warn: #f5c451; --warn-bg: #2a2210; --err: #ff8a8f;
  --ui-line: #2f333a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--font); overflow-x: hidden; }
h1, h2, h3, p { margin: 0; }
h1 { font-weight: 500; font-size: var(--step-hero); line-height: 1.08; letter-spacing: -0.02em; max-width: 16em; }
h2 { font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); line-height: 1.1; letter-spacing: -0.01em; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.lead { font-size: var(--step-lead); line-height: 1.45; color: var(--soft); max-width: 34em; }

/* читаемая колонка: 360-767.98 резиновая, 768, 1200, 1600 по центру; поля 16 px всегда */
.wrap { width: 100%; margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 768px) { .wrap { max-width: 768px; } }
@media (min-width: 1200px) { .wrap { max-width: 1200px; } }
@media (min-width: 1600px) { .wrap { max-width: 1600px; } }
.page { display: grid; gap: 24px; padding-block: 40px 24px; }

.skip { position: absolute; left: var(--gutter); top: -100px; z-index: 10; padding: 12px 16px; background: var(--accent); color: var(--accent-ink); border-radius: var(--radius); }
.skip:focus { top: 8px; }

/* кнопки: один радиус */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 600 1.0625rem/1.1 var(--font); text-decoration: none; cursor: pointer; transition: transform .15s ease, opacity .15s ease; }
.btn:hover { opacity: .92; } .btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 20px; }
.btn-ghost { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font: 500 1.0625rem/1.1 var(--font); }
.btn-ghost:hover { background: var(--field); }

/* шапка без линии и панели; на телефоне: название, Войти, Меню */
.top { position: relative; z-index: 3; }
.top-row { display: flex; align-items: center; gap: 8px 16px; min-height: 72px; flex-wrap: wrap; }
.brand { font-weight: 600; font-size: 1.25rem; color: var(--ink); text-decoration: none; margin-right: auto; min-height: 44px; display: inline-flex; align-items: center; }
.brand span { color: var(--soft); font-weight: 500; margin-left: .3em; }
.brand-logo { display: block; width: 41px; height: 38px; flex: none; margin-right: 14px; }
.top-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.top-nav > a, .top-drop > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: 1.0625rem; cursor: pointer; }
.top-nav > a:hover, .top-drop > summary:hover, .top-nav [aria-current="page"] { background: var(--field); }
.top-drop { position: relative; }
.top-drop > summary { list-style: none; } .top-drop > summary::-webkit-details-marker { display: none; }
.top-drop > summary::after { content: ""; width: .45em; height: .45em; margin-left: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-.15em) rotate(45deg); }
.top-drop ul { list-style: none; margin: 4px 0 0; padding: 8px; background: var(--stage); border-radius: var(--radius); min-width: 12em; }
.top-drop li a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.top-drop li a:hover { background: var(--field); }
@media (min-width: 768px) { .top-drop ul { position: absolute; left: 0; top: 100%; box-shadow: 0 12px 32px rgba(0,0,0,.25); /* открытый список - как диалог */ } }
.top-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.menu-btn { min-height: 44px; padding: 0 12px; border: 0; border-radius: var(--radius); background: var(--field); color: var(--ink); font: 500 1.0625rem/1 var(--font); cursor: pointer; }
.theme { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px; background: transparent; border: 0; color: var(--soft); font: 500 var(--step-small)/1 var(--font); cursor: pointer; border-radius: var(--radius); }
.theme:hover { background: var(--field); }
.theme-track { width: 36px; height: 20px; border-radius: 999px; background: var(--field); position: relative; display: inline-block; }
.theme-knob { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.theme[aria-checked="false"] .theme-knob { transform: translateX(16px); }
.theme-text { min-width: 4.4em; text-align: left; }
@media (max-width: 767.98px) {
  .top-register, .theme-text { display: none; }
  .js .top-nav { order: 10; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; }
  .js .top-nav[data-closed] { display: none; }
}
@media (min-width: 768px) { .menu-btn { display: none; } }

/* крошки и "Читайте дальше" */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; margin: 0; padding: 16px 0 0; font-size: var(--step-small); color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; }
.related { padding-block: 64px 0; display: grid; gap: 16px; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.related a { display: flex; align-items: center; min-height: 56px; padding: 12px 20px; background: var(--surface); border-radius: var(--radius); color: var(--ink); text-decoration: none; font-weight: 500; }
.related a:hover { background: var(--field); }
@media (min-width: 768px) { .related ul { grid-template-columns: repeat(3, 1fr); } }

/* подвал: одна тихая строка */
.foot { padding-block: 80px 32px; font-size: var(--step-small); color: var(--soft); }
.foot-row { display: grid; gap: 12px; }
.foot nav, .foot .lang { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.foot a { color: var(--ink); display: inline-flex; align-items: center; min-height: 44px; }
.foot-end { display: flex; flex-wrap: wrap; gap: 4px 20px; }
@media (min-width: 1200px) { .foot-row { grid-template-columns: 1fr auto auto; align-items: center; } }

/* окно разрешения Claude (#1883): линии и радиус 12 допустимы внутри data-ui */
.ask { margin: 0; display: grid; gap: 12px; justify-items: start; }
.ask-win { width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--ui-line); border-radius: 12px; padding: 20px; display: grid; gap: 12px; }
.ask-title { font-weight: 600; }
.ask-action { color: var(--soft); }
.ask-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ask-btn { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: var(--radius); background: var(--field); font-size: var(--step-small); font-weight: 500; }
.ask-primary { background: var(--accent); color: var(--accent-ink); }
.ask figcaption { font-size: var(--step-small); color: var(--muted); max-width: 40em; }
.ask figcaption span { color: var(--soft); }

/* прогресс nav.js */
.gc-progress { position: fixed; inset: 0 0 auto 0; height: 3px; background: var(--accent); animation: gc-run 1s ease-in-out infinite; transform-origin: left; z-index: 20; }
@keyframes gc-run { from { transform: scaleX(.1); } to { transform: scaleX(1); } }
.gc-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (prefers-reduced-motion: reduce) { .btn, .gc-progress { transition: none; animation: none; } }

/* главная и тарифы (design-system.md 4): полосы по тону, живые фрагменты в data-ui, таблица сравнения */
input[type="email"] { width: 100%; min-height: 50px; padding: 0 16px; border: 0; border-radius: var(--radius); background: var(--field); color: var(--ink); font: 400 1.0625rem/1 var(--font); }
input::placeholder { color: var(--muted); opacity: 1; }
.hint { font-size: var(--step-small); line-height: 1.55; color: var(--muted); max-width: 40em; }
.hero { background: var(--bg); padding-bottom: 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: end; padding-top: 24px; position: relative; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; padding-block: 16px 8px; }
.start { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
.hero-stage { background: var(--stage); padding: 24px 16px; border-radius: var(--radius); display: flex; justify-content: center; }
@media (min-width: 768px) { .start { flex-direction: row; max-width: 640px; } .start input { flex: 1 1 auto; } .start .btn { flex: 0 0 auto; } }
@media (min-width: 1200px) {
  .hero { padding-bottom: 0; }
  .hero::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 50%; background: var(--stage); }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 0; align-items: stretch; padding-top: 0; min-height: min(78svh, 760px); }
  .hero-copy { justify-content: flex-end; padding: 0 56px 72px 0; }
  .hero-stage { align-items: center; background: transparent; padding: 56px 0 56px 56px; border-radius: 0; }
  .start { flex-direction: column; } .start .btn { width: 100%; }
}
@media (min-width: 1360px) { .start { flex-direction: row; } .start .btn { width: auto; } }

[data-ui] { --r: 6px; font-size: 1.0625rem; line-height: 1.45; }
.mail { width: 100%; max-width: 480px; background: var(--bg); border: 1px solid var(--ui-line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.mail-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mail-title { font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: var(--step-small); font-weight: 500; white-space: nowrap; }
.chip[data-state="draft"] { background: var(--warn-bg); color: var(--warn); }
.chip[data-state="sent"] { background: var(--ok-bg); color: var(--ok); }
.mail-in, .mail-out { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: var(--r); background: var(--surface); }
.mail-out { background: var(--field); }
.mail-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: var(--step-small); color: var(--muted); }
.mail-meta b { color: var(--ink); font-weight: 600; font-size: 1.0625rem; }
.mail-subj { font-weight: 600; }
.mail-out p[contenteditable="true"] { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.mail-actions, .row-btn { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mail-note { font-size: var(--step-small); color: var(--muted); }

/* шаги: три поля разного тона на всю ширину; карточки - картинка (не поля формы) */
:root { --col: 100vw; }
@media (min-width: 768px) { :root { --col: 768px; } }
@media (min-width: 1200px) { :root { --col: 1200px; } }
@media (min-width: 1600px) { :root { --col: 1600px; } }
.steps { background: var(--bg); padding-top: 96px; --edge: max(var(--gutter), calc((100vw - var(--col)) / 2 + var(--gutter))); }
.steps-title, .pricing h2, .faq h2, .cta h2, .control h2 { font-weight: 500; font-size: var(--step-head); line-height: 1.04; letter-spacing: -0.02em; max-width: 14em; }
.steps-title { margin-bottom: 40px; }
.steps-row { display: grid; grid-template-columns: 1fr; }
.field { padding: 40px 0 48px; display: flex; }
.field > .wrap { display: flex; flex-direction: column; gap: 24px; }
.f1 { background: var(--f1); } .f2 { background: var(--f2); } .f3 { background: var(--f3); }
.card { width: 100%; max-width: 320px; background: var(--bg); border: 1px solid var(--ui-line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.card .lbl { font-size: var(--step-small); color: var(--muted); }
.card .fake { display: flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--radius); background: var(--field); }
.card .fake-check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.card .fake-check::before { content: ""; width: 20px; height: 20px; border-radius: 4px; background: var(--accent); }
.say { padding: 10px 12px; border-radius: var(--r); }
.say.you { background: var(--accent); color: var(--accent-ink); align-self: flex-end; max-width: 85%; }
.say.ai { background: var(--field); max-width: 92%; }
.clause { font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem); line-height: 1.15; font-weight: 500; letter-spacing: -0.01em; }
.steps-after { padding-top: 40px; display: grid; gap: 16px; }
@media (min-width: 768px) {
  .steps-row { grid-template-columns: repeat(3, 1fr); }
  .field > .wrap { padding-inline: 24px; max-width: none; margin: 0; justify-content: space-between; }
  .f1 > .wrap { padding-left: var(--edge); } .f3 > .wrap { padding-right: var(--edge); }
  .field { min-height: 480px; }
  .card { margin-top: 40px; }
}

/* что умеет: полосы; без JS все раскрыты, с JS открыта выбранная */
.features { background: var(--bg); padding-top: 96px; }
.band { background: var(--f2); }
.band-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 132px; padding-block: 24px; }
.band-main { font-size: clamp(1.5rem, 1rem + 2.2vw, 3.25rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--ink); max-width: 22em; }
.band-more { font-size: 1.0625rem; color: var(--ink); margin-top: 10px; max-width: 40em; }
.js .band { background: var(--bg); }
.js .band .band-main { color: var(--soft); }
.js .band:not(.on) .band-more { display: none; }
.js .band.on .band-main { color: var(--ink); }
.js .band[data-band="b1"].on { background: var(--f2); } .js .band[data-band="b2"].on { background: var(--f3); }
.js .band[data-band="b3"].on { background: var(--f1); } .js .band[data-band="b4"].on { background: var(--f3); }
.toggle { flex: 0 0 auto; width: 64px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; position: relative; border-radius: 999px; }
.toggle::before { content: ""; position: absolute; inset: 8px 0; border-radius: 999px; background: var(--field); }
.toggle span { position: absolute; top: 12px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); transition: transform .2s ease; }
.toggle[aria-checked="true"]::before { background: var(--accent); }
.toggle[aria-checked="true"] span { transform: translateX(36px); background: var(--accent-ink); }
.toggle.small { width: 44px; height: 24px; display: inline-block; vertical-align: middle; }
.toggle.small::before { inset: 0; } .toggle.small span { top: 4px; left: 4px; width: 16px; height: 16px; }
.toggle.small[aria-checked="true"] span { transform: translateX(20px); }
@media (min-width: 768px) { .band-row { min-height: 20vh; } .band-main { max-width: none; } }

/* доступ: окно кабинета */
.control { background: var(--bg); padding-top: 120px; }
.control-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
.control-copy { display: grid; gap: 16px; justify-items: start; }
.cab { background: var(--stage); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 8px; max-width: 560px; width: 100%; justify-self: end; }
.cab-title { font-weight: 600; margin-bottom: 4px; }
.cab-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--field); border-radius: var(--r); }
.cab-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cab-name span { font-size: var(--step-small); color: var(--muted); }
.cab-row.gone { opacity: .55; }
.danger { color: var(--err); }
@media (min-width: 768px) { .control-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }

/* тарифы: таблица сравнения (в таблицах линии допустимы) */
.pricing { background: var(--bg); padding-top: 120px; }
.pricing .wrap { display: grid; gap: 20px; justify-items: start; }
.pricing-page { padding-top: 24px; }
.pricing-page .wrap { justify-items: stretch; }
.pricing-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pricing-page h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
.diff { display: inline-flex; align-items: center; gap: 12px; color: var(--soft); cursor: pointer; min-height: 44px; }
.diff:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: var(--radius); }
.btn-ghost-fill { background: var(--field); color: var(--ink); }
.period { display: inline-flex; align-items: center; gap: 12px; color: var(--soft); min-height: 44px; }
.period .toggle.small { cursor: pointer; }
.pricing-notes { padding-top: 40px; }
.pricing-notes h2 { font-size: clamp(1.25rem, 1.1rem + .8vw, 1.75rem); }
.plain-list { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; max-width: 40em; }

/* вопросы */
.faq { background: var(--bg); padding-top: 120px; }
.faq-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-list details { background: var(--surface); border-radius: var(--radius); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: 0 0 auto; font-size: 1.75rem; line-height: 1; font-weight: 400; }
.faq-list details[open] { background: var(--accent); color: var(--accent-ink); }
.faq-list details[open] summary::after { content: "-"; }
.faq-list details p { padding: 0 24px 22px; max-width: 52ch; }
.faq-more { padding-top: 8px; }
@media (min-width: 768px) { .faq-grid { grid-template-columns: 1fr 2fr; gap: 40px; } .faq h2 { position: sticky; top: 96px; align-self: start; } }

/* финал: поле акцентного цвета */
.cta { background: var(--accent); color: var(--accent-ink); margin-top: 120px; padding-block: 80px; }
.cta h2 { color: var(--accent-ink); }
.cta .lead { color: var(--accent-ink); margin-top: 20px; max-width: 30em; }
.cta-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: end; }
.dialog { background: var(--bg); color: var(--ink); border: 1px solid var(--ui-line); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.35); max-width: 440px; width: 100%; }
.dialog-title { font-weight: 600; }
.dialog .start { max-width: none; flex-direction: column; } .dialog .start .btn { width: 100%; }
@media (min-width: 768px) { .cta-grid { grid-template-columns: 1fr 1fr; } .dialog { justify-self: end; } }

/* появление блоков: только при JS и без "уменьшить движение" */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .toggle span { transition: none; } }

.lang-hint { display: flex; align-items: center; justify-content: center; gap: 4px 16px; flex-wrap: wrap; padding: 8px var(--gutter); background: var(--surface); border-bottom: 1px solid var(--ui-line); font-size: var(--step-small); }
.lang-hint p { margin: 0; }
.lang-hint-close { font: inherit; color: var(--ink); background: none; border: 1px solid var(--ui-line); border-radius: var(--radius); min-height: 44px; min-width: 44px; padding: 0 12px; cursor: pointer; }

/* страницы-инструкции (PublicGuide): колонка читаемой ширины, шаги со счетчиком, таблицы и значения для копирования */
.guide { padding-bottom: 8px; }
.guide-checked { margin: 0; }
.guide-block { display: grid; gap: 16px; padding-block: 24px; }
.guide-block h2 { font-weight: 500; font-size: var(--step-lead); line-height: 1.2; letter-spacing: -0.01em; }
.guide-block p { max-width: 40em; }
.guide-block a, .legal-text a, .legal-toc a, .faq-nav a, .faq-list details p a { text-decoration: underline; text-underline-offset: 3px; }
.guide-steps { list-style: none; counter-reset: gs; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 40em; }
.guide-steps li { counter-increment: gs; display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; }
.guide-steps li::before { content: counter(gs); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table th, .guide-table td { text-align: left; vertical-align: top; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--ui-line); }
.guide-table th { font-weight: 500; white-space: nowrap; padding-right: 24px; }
.guide-copy { display: grid; gap: 12px; margin: 0; }
.guide-copy dt { font-size: .875rem; color: var(--soft); }
.guide-copy dd { margin: 4px 0 0; }
.copy-val { display: inline-block; max-width: 100%; padding: 12px 16px; border-radius: var(--radius); background: var(--field); user-select: all; overflow-wrap: anywhere; }
.guide-shot { margin: 8px 0 0; display: grid; gap: 8px; max-width: 720px; }
.guide-shot img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--ui-line); }
.guide-shot figcaption { font-size: .875rem; color: var(--soft); }
@media (max-width: 767.98px) { .guide-table th { white-space: normal; } }

/* юридические страницы: колонка до 72 символов, содержание липкое от 1200, на телефоне свернуто (дизайн-система 6) */
.legal .note { max-width: 52em; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); }
.legal-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.legal-toc summary { cursor: pointer; font-weight: 500; min-height: 44px; display: flex; align-items: center; }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; }
.legal-toc a { display: inline-block; min-height: 24px; }
.legal-text { max-width: 72ch; display: grid; gap: 24px; }
.legal-text h2 { font-weight: 500; font-size: var(--step-lead); line-height: 1.2; margin-bottom: 8px; }
.legal-list { margin: 0; padding-left: 1.4em; display: grid; gap: 12px; }
@media (min-width: 1200px) { .legal-grid { grid-template-columns: 280px 1fr; gap: 56px; } .legal-toc { position: sticky; top: 96px; align-self: start; } }

/* FAQ: якорная навигация по группам; справочник инструментов: названия моноширинным (дизайн-система 3, исключение для справочника) */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; }
.faq-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.tools-table code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9375rem; white-space: nowrap; }
.tools-table td .hint { display: block; margin-top: 4px; }
/* Кружок "?" с подсказкой "Что это?" (WizardUi::qbtn); a.wz-qbtn - ссылка на страницу */
.wz-q { margin: 0; display: inline-flex; align-items: center; } .wz-qbtn, a.wz-qbtn { position: relative; width: 1.4rem; height: 1.4rem; min-width: 0; min-height: 0; padding: 0; border: 1.5px solid var(--accent); border-radius: 50%; background: var(--field); color: var(--accent); font: inherit; font-size: .85rem; font-weight: 700; line-height: 1; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: background .15s, color .15s; }
.wz-qbtn::before { content: ""; position: absolute; inset: -10px; } /* зона нажатия 44px при видимом кружке 22px */
.wz-qbtn:hover, .wz-qbtn[aria-expanded=true] { background: var(--accent); color: var(--accent-ink); } .wz-qbtn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wz-qbtn::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: .25rem .6rem; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: .85rem; font-weight: 400; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; }
.wz-qbtn:hover::after, .wz-qbtn:focus-visible::after { opacity: 1; }
.wz-lbl { display: flex; align-items: center; gap: .5rem; } .wz-lbl label { display: inline-grid; } legend .wz-q { margin-left: .5rem; vertical-align: middle; }
a.wz-qbtn { text-decoration: none; vertical-align: middle; margin-left: .35rem; }
.top-account { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; line-height: 44px; }
