/* НАЛОГИСТ — защитный калькулятор. Облик: спокойный доверительный fintech, «легальная безопасность». */
:root {
  --ink: #14202E;
  --ink-soft: #2C3A4B;
  --muted: #5A6675;
  --line: #E4DFD5;
  --paper: #F6F4EF;
  --card: #FFFFFF;
  --green: #1C6B5B;        /* зелёная зона — законно */
  --green-soft: #E7F1ED;
  --brass: #8E6519;        /* премиум-акцент (антик-латунь; WCAG AA на белом 5.2 / на paper 4.75 для мелких меток) */
  --danger: #B23A38;       /* красные линии */
  --danger-soft: #F8ECEA;
  --amber: #B9852B;
  --amber-ink: #7A5912;
  --amber-soft: #FBF3E2;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20,32,46,.04), 0 8px 28px rgba(20,32,46,.07);
  --shadow-sm: 0 1px 2px rgba(20,32,46,.05), 0 4px 12px rgba(20,32,46,.05);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; } /* вебвью (Telegram/iOS) раздувают шрифты без этого — ломалась мобильная главная */
body { overflow-x: hidden; }
h1, h2, h3 { overflow-wrap: break-word; }
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3 { line-height: 1.18; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--green); text-decoration: none; }
em { font-style: normal; color: var(--green); font-weight: 600; }

/* ШАПКА */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246,244,239,.86);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; letter-spacing: .02em; }
.brand-mark { font-size: 1.6rem; color: var(--brass); line-height: 1; }
.brand-name { font-size: 1.05rem; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--ink-soft); font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--green); }

/* ГЕРОЙ */
.hero { padding: 72px 0 56px; background:
  radial-gradient(1200px 400px at 80% -10%, rgba(28,107,91,.08), transparent 60%),
  radial-gradient(900px 300px at 0% 0%, rgba(184,137,59,.07), transparent 55%); }
.hero-inner { max-width: 820px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--brass); margin-bottom: 14px; }
.hero h1 { color: var(--ink); }
.hl { color: var(--danger); }
.lede { font-size: 1.18rem; color: var(--ink-soft); max-width: 700px; margin-top: 8px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 36px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 11px; font-weight: 650; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, box-shadow .15s ease, background .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #185c4f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }
.btn-block { width: 100%; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.trust-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .92rem; color: var(--ink-soft); box-shadow: var(--shadow-sm); }
.ti-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--green); margin-bottom: 4px; letter-spacing: -.02em; }

/* СЕКЦИИ */
.section { padding: 64px 0; }
.section-alt { background: linear-gradient(180deg, #FBFAF7, var(--paper)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 36px; }
.section-sub { color: var(--muted); font-size: 1.05rem; }

/* КАЛЬКУЛЯТОР */
.calc-grid { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 28px; align-items: start; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.form-card { padding: 26px; position: sticky; top: 84px; }
fieldset { border: none; padding: 0; margin: 0 0 22px; }
legend { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); font-weight: 700; margin-bottom: 12px; padding: 0; }
.field { margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: .88rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 6px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input[type=text], .field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: var(--font); color: var(--ink); background: #FCFBF9; transition: border-color .12s ease, box-shadow .12s ease; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,107,91,.12); }
.field.check { margin-top: 4px; }
.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-soft); font-weight: 500; cursor: pointer; }
.checkbox input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; }
.form-note { font-size: .8rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* РЕЗУЛЬТАТ */
.result-col { min-height: 320px; }
.result-placeholder { padding: 48px 32px; text-align: center; color: var(--muted); }
.ph-icon { font-size: 2.4rem; margin-bottom: 10px; }
.result-placeholder h3 { color: var(--ink-soft); }

.rblock { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.rblock-title { display: flex; align-items: center; gap: 10px; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--brass); margin-bottom: 14px; }
.rblock-title .num { background: var(--green-soft); color: var(--green); width: 24px; height: 24px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }

/* НДС-позиция */
.vat-rate { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.vat-rate .small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.bases { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.base-box { background: #FBFAF7; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.base-box .bb-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.base-box .bb-val { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 2px; }
.base-box .bb-thr { font-size: .82rem; color: var(--muted); margin-top: 4px; }

/* Диапазон */
.range-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.range-now, .range-opt { flex: 1; min-width: 130px; }
.range-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.range-val { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.range-now .range-val { color: var(--ink-soft); }
.range-opt .range-val { color: var(--green); }
.range-bar { height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--green) 0%, #6FB7A6 100%); margin: 14px 0 6px; }
.range-caption { font-size: .82rem; color: var(--muted); }

.ranking-list { list-style: none; padding: 0; margin: 8px 0 0; }
.ranking-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .94rem; }
.ranking-list li:last-child { border-bottom: none; }
.ranking-list .rk-regime { font-weight: 600; color: var(--ink); }
.ranking-list .rk-best { color: var(--green); }
.ranking-list .rk-val { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* Рычаги */
.lever { padding: 13px 0; border-bottom: 1px solid var(--line); }
.lever:last-child { border-bottom: none; }
.lever-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.lever-name { font-weight: 650; color: var(--ink); font-size: .98rem; }
.lever-ref { font-size: .76rem; color: var(--muted); background: var(--paper); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.lever-reason { font-size: .88rem; color: var(--muted); margin-top: 4px; }

/* Флаги/чек-лист */
.flag-list, .check-list { list-style: none; padding: 0; margin: 6px 0 0; }
.flag-list li { padding: 11px 14px; border-radius: 10px; background: var(--amber-soft); border: 1px solid #EBD9B0; color: #7A5912; font-size: .9rem; margin-bottom: 8px; }
.check-list li { padding: 9px 0 9px 26px; position: relative; font-size: .92rem; color: var(--ink-soft); }
.check-list li::before { content: '☐'; position: absolute; left: 0; color: var(--green); font-size: 1rem; }

.rblock.danger { border-color: #E7C5C2; background: linear-gradient(180deg, var(--danger-soft), #fff); }
.rblock.danger .rblock-title { color: var(--danger); }
.rblock.danger .rblock-title .num { background: var(--danger-soft); color: var(--danger); }

.verify-note { margin-top: 14px; font-size: .84rem; color: var(--muted); padding: 12px 14px; background: var(--green-soft); border-radius: 10px; border: 1px solid #CFE6DE; }
.verify-note strong { color: var(--green); }
.disclaimer-line { font-size: .82rem; color: var(--muted); margin: 0 0 6px; padding-left: 16px; position: relative; }
.disclaimer-line::before { content: '·'; position: absolute; left: 4px; color: var(--brass); }
.disclaimer-line:last-child { margin-bottom: 0; }

/* КРАСНЫЕ ЛИНИИ */
.redline-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.redline-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); border-top: 3px solid var(--danger); }
.redline-code { font-size: .74rem; font-weight: 800; letter-spacing: .08em; color: var(--danger); }
.redline-card h3 { font-size: 1.04rem; margin: 8px 0 8px; }
.redline-card p { font-size: .9rem; color: var(--muted); margin: 0; }
.redline-foot { margin-top: 26px; font-size: .98rem; color: var(--ink-soft); max-width: 760px; }

/* CTA */
.cta-section { background: var(--ink); color: #EAF1EE; }
.cta-inner { max-width: 720px; text-align: center; }
.cta-section h2 { color: #fff; }
.cta-section p { color: #B7C4CE; font-size: 1.08rem; }
.cta-form { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.cta-form input { padding: 13px 16px; border-radius: 11px; border: 1px solid #2E3F50; background: #1C2A3A; color: #fff; font-size: 1rem; min-width: 220px; font-family: var(--font); }
.cta-form input::placeholder { color: #7E8E9C; }
.cta-form input:focus { outline: none; border-color: var(--green); }
.cta-form input:focus-visible { outline: 2px solid #8FE3CE; outline-offset: 2px; }
.cta-consent { display: flex; gap: 9px; align-items: flex-start; justify-content: center; max-width: 520px; margin: 14px auto 0; font-size: .82rem; color: #97A6B3; text-align: left; }
.cta-consent input { margin-top: 2px; accent-color: var(--green); }
.cta-consent a { color: #8FE3CE; text-decoration: underline; }
.cta-note { margin-top: 14px; font-size: .9rem; color: #8FE3CE; min-height: 1.2em; }

/* ПОДВАЛ */
.site-footer { padding: 34px 0 48px; border-top: 1px solid var(--line); background: var(--paper); }
.disclaimer { font-size: .82rem; color: var(--muted); max-width: 820px; }
.copyright { font-size: .8rem; color: var(--muted); margin-top: 10px; }
.copyright + .copyright { margin-top: 4px; }
/* разделитель перед метой параметров — только когда JS её заполнил (иначе висело «· —») */
span#params-meta:not(:empty)::before { content: ' · '; }

/* СОСТОЯНИЯ */
.is-loading { opacity: .55; pointer-events: none; }
.spinner { display: inline-block; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.field.has-error input { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: .8rem; margin-top: 4px; }

/* ОБРАЗОВАТЕЛЬНЫЕ СЕКЦИИ (SEO-контент) */
.article { max-width: 820px; }
.article h3 { font-size: 1.3rem; margin-top: 8px; }
.article p { color: var(--ink-soft); font-size: 1.04rem; }
.article ul { padding-left: 0; list-style: none; margin: 0 0 1rem; }
.article ul li { position: relative; padding: 6px 0 6px 26px; color: var(--ink-soft); }
.article ul li::before { content: '→'; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.article strong { color: var(--ink); }

/* СРАВНЕНИЕ ДВУХ БАЗ ПОРОГОВ (визуал) */
.twobase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 22px 0; }
.twobase-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); }
.twobase-card.sel { border-top: 3px solid var(--green); }
.twobase-card.slip { border-top: 3px solid var(--amber); }
.twobase-card .tb-kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 6px; }
.twobase-card.sel .tb-kicker { color: var(--green); }
.twobase-card.slip .tb-kicker { color: var(--amber-ink); }
.twobase-card h3 { margin: 0 0 8px; font-size: 1.06rem; }
.twobase-card .tb-nums { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }
.twobase-card p { font-size: .9rem; color: var(--muted); margin: 8px 0 0; }

/* ставки 5/7 vs 22 — мини-таблица */
.rate-compare { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .94rem; }
.rate-compare th, .rate-compare td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.rate-compare th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rate-compare td:first-child { font-weight: 650; color: var(--ink); }

/* FAQ */
.faq-list { max-width: 820px; margin-top: 10px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; text-align: left; background: none; border: none; padding: 18px 38px 18px 0; font-size: 1.06rem; font-weight: 600; color: var(--ink); cursor: pointer; position: relative; font-family: var(--font); }
.faq-q::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green); font-weight: 400; transition: transform .2s ease; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; color: var(--ink-soft); }
.faq-item.open .faq-a { max-height: 600px; }
.faq-a p { padding: 0 0 18px; margin: 0; font-size: .98rem; }

/* FAQ на статических страницах (нативный details/summary, без JS) */
.faq-static { max-width: 820px; }
.faq-static details { border-bottom: 1px solid var(--line); }
.faq-static summary { padding: 18px 0; font-size: 1.06rem; font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; position: relative; padding-right: 32px; }
.faq-static summary::-webkit-details-marker { display: none; }
.faq-static summary::after { content: '+'; position: absolute; right: 6px; top: 16px; font-size: 1.4rem; color: var(--green); font-weight: 400; }
.faq-static details[open] summary::after { content: '−'; }
.faq-static details p { margin: 0; padding: 0 0 18px; color: var(--ink-soft); font-size: .98rem; }

/* SEO-крошки/секция-обёртка */
.section-narrow .section-head { max-width: 820px; }

/* АДАПТИВ */
@media (max-width: 860px) {
  .twobase { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); } /* 1fr (min-size auto) давал широкому контенту раздуть трек до 1000px+ */
  .lever-ref { white-space: normal; } /* nowrap-рефы НК раздували /full до 1079px на 390px */
  .form-card { position: static; }
  .trust-strip { grid-template-columns: 1fr; }
  .redline-grid { grid-template-columns: 1fr; }
  /* мобильная навигация: НЕ прячем, а переносим под логотип (QA P1) */
  .header-inner { flex-wrap: wrap; height: auto; padding: 10px 0; }
  .nav { display: flex; flex-wrap: wrap; gap: 10px 18px; width: 100%; margin-top: 8px; font-size: .9rem; }
  /* двухколоночные поля схлопываются в одну колонку на узких экранах (QA P2) */
  .field-row { grid-template-columns: 1fr; }
}

/* ====================================================================== */
/* «ПОЛНЫЙ РАЗБОР» (full.html) — компоненты витрины всех возможностей      */
/* ====================================================================== */
.lead { font-size: 1.05rem; color: var(--ink-soft); line-height: 1.6; max-width: 70ch; }
.banner-honest { margin-top: 1.1rem; padding: 1rem 1.2rem; background: var(--green-soft);
  border-left: 4px solid var(--green); border-radius: 10px; color: var(--ink-soft); line-height: 1.55; font-size: .95rem; }

/* сегментированный переключатель режима */
.segmented { display: inline-flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 3px; gap: 3px; }
.segmented .seg { position: relative; cursor: pointer; }
.segmented .seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented .seg span { display: block; padding: .45rem .95rem; border-radius: 8px; font-size: .92rem;
  font-weight: 600; color: var(--muted); transition: background .15s, color .15s; }
.segmented .seg input:checked + span { background: var(--ink); color: #fff; }
.segmented .seg input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }

/* расширенные секции (opt-in рычаги) */
.adv-hint { margin: 1rem 0 .4rem; font-size: .9rem; color: var(--muted); }
details.adv { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .55rem; background: var(--card); }
details.adv > summary { cursor: pointer; padding: .7rem .9rem; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; gap: .5rem; }
details.adv > summary::-webkit-details-marker { display: none; }
details.adv > summary::before { content: '▸'; color: var(--brass); transition: transform .15s; }
details.adv[open] > summary::before { transform: rotate(90deg); }
details.adv > .field, details.adv > .field-row, details.adv > .hint, details.adv > .field.check { margin: 0 .9rem .7rem; }
details.adv > .hint { margin-top: .4rem; color: var(--muted); font-size: .85rem; font-weight: 600; }
.req { color: var(--danger); }

/* бейдж режима + общий заголовок-плашка */
.mode-badge { display: inline-block; background: var(--ink); color: #fff; font-weight: 600;
  font-size: .85rem; padding: .35rem .8rem; border-radius: 8px; margin-bottom: 1rem; }

/* ключевая ставка */
.kv-row { display: flex; align-items: baseline; gap: .6rem; margin: .3rem 0; }
.kv-big { font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.kv-sub { color: var(--muted); font-size: .9rem; }

/* карточки ранкинга режимов */
.rank-card { border: 1px solid var(--line); border-radius: 12px; padding: .75rem .9rem; margin: .5rem 0; background: var(--card); }
.rank-card.rank-best { border-color: var(--green); background: var(--green-soft); }
.rank-head { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; }
.rank-regime { font-weight: 700; color: var(--ink); }
.rank-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.rank-range { color: var(--muted); font-size: .85rem; margin-top: .15rem; font-variant-numeric: tabular-nums; }
.rank-caveats { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .85rem; }
.rank-caveats li { margin: .15rem 0; }

/* план перехода */
.plan-line { margin: .35rem 0; font-size: .92rem; line-height: 1.5; }
.plan-open { color: var(--green); } .plan-close { color: var(--danger); }
.plan-sub { font-weight: 600; color: var(--ink); margin-top: .6rem; font-size: .9rem; }
.plan-synth { margin: .2rem 0 .4rem; padding-left: 1.1rem; color: var(--ink-soft); font-size: .9rem; }

/* рычаги — карточки */
.lever-off { opacity: .72; }
.lever-status { font-size: .72rem; font-weight: 700; padding: .12rem .5rem; border-radius: 20px; text-transform: uppercase; letter-spacing: .03em; }
.lever-status.on { background: var(--green-soft); color: var(--green); }
.lever-status.off { background: #EFEAE0; color: var(--muted); }
.lever-chip { display: inline-block; background: var(--amber-soft); color: var(--amber-ink); font-weight: 600;
  font-size: .78rem; padding: .15rem .55rem; border-radius: 20px; margin: .25rem .3rem .1rem 0; }
.lever-money { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .5rem; margin: .55rem 0; }
.lm { background: var(--paper); border-radius: 8px; padding: .45rem .6rem; }
.lm-label { font-size: .74rem; color: var(--muted); line-height: 1.25; }
.lm-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.lever-caveats { margin-top: .45rem; }
.lever-caveats > summary { cursor: pointer; font-size: .85rem; color: var(--brass); font-weight: 600; }
.lever-caveats ul { margin: .4rem 0 0; padding-left: 1.1rem; color: var(--ink-soft); font-size: .85rem; }
.lever-caveats li { margin: .2rem 0; }
.visa-tag { margin-top: .5rem; font-size: .82rem; color: var(--brass); font-weight: 600; }

/* ИП vs ООО */
.bfc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: .5rem 0; }
.bfc-col { border: 1px solid var(--line); border-radius: 12px; padding: .8rem; background: var(--card); }
.bfc-title { font-weight: 800; color: var(--ink); margin-bottom: .5rem; }
.bfc-line { font-size: .88rem; color: var(--ink-soft); margin: .25rem 0; }
.bfc-net { color: var(--ink); }
.bfc-verdict { margin-top: .6rem; padding: .55rem .8rem; background: var(--green-soft); border-radius: 8px; color: var(--ink); }

/* кредитный слой */
.credit-row { display: grid; grid-template-columns: minmax(120px, 1.3fr) auto 2fr; gap: .6rem; align-items: start;
  padding: .55rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.credit-row:last-of-type { border-bottom: none; }
.cr-name { font-weight: 600; color: var(--ink); }
.cr-flag { font-weight: 800; text-align: center; }
.cr-flag.on { color: var(--green); } .cr-flag.off { color: var(--muted); }
.cr-detail { color: var(--ink-soft); }

@media (max-width: 560px) {
  .bfc-grid { grid-template-columns: 1fr; }
  .credit-row { grid-template-columns: 1fr auto; }
  .credit-row .cr-detail { grid-column: 1 / -1; }
}

/* ---- Фиксы адверсариальной верификации /full (a11y + контраст) ---- */
.lever-chip { color: #7A5912; }                 /* контраст 5.83:1 на amber-soft (был 2.95:1) */
.result-placeholder .ph-title { color: var(--ink-soft); font-size: 1.1rem; font-weight: 700; margin: 0 0 .4rem; }
.sr-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; font-weight: 600; }
.skip-link:focus { left: 0; }
/* видимый фокус и в режиме высокой контрастности (не убираем outline полностью) */
.field input:focus-visible, .field select:focus-visible,
input:focus-visible, select:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--green); outline-offset: 2px;
}

/* ---- Сводная экономия по природе (full.html) ---- */
.savings-block { border: 2px solid var(--green); background: linear-gradient(180deg, var(--green-soft) 0%, var(--card) 60%); }
.sav-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; margin: .7rem 0; }
.sav-card { border-radius: 12px; padding: .75rem .8rem; background: var(--card); border: 1px solid var(--line); }
.sav-card.sav-green { border-top: 3px solid var(--green); }
.sav-card.sav-brass { border-top: 3px solid var(--brass); }
.sav-card.sav-ink { border-top: 3px solid var(--ink); }
.sav-label { font-size: .82rem; color: var(--muted); font-weight: 600; }
.sav-val { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; margin: .15rem 0; font-variant-numeric: tabular-nums; }
.sav-unit { font-size: .8rem; font-weight: 600; color: var(--muted); }
.sav-sub { font-size: .76rem; color: var(--muted); line-height: 1.3; }
.sav-bars { margin: .7rem 0 .4rem; display: flex; flex-direction: column; gap: .35rem; }
.sav-bar-row { display: grid; grid-template-columns: minmax(120px, 1.4fr) 2fr auto; gap: .5rem; align-items: center; font-size: .84rem; }
.sav-bar-name { color: var(--ink-soft); }
.sav-bar-track { background: var(--paper); border-radius: 6px; height: 14px; overflow: hidden; }
.sav-bar-fill { height: 100%; border-radius: 6px; min-width: 4px; }
.sav-fill-green { background: var(--green); } .sav-fill-brass { background: var(--brass); } .sav-fill-ink { background: var(--ink-soft); }
.sav-bar-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) {
  .sav-grid { grid-template-columns: 1fr; }
  .sav-bar-row { grid-template-columns: 1fr auto; }
  .sav-bar-track { grid-column: 1 / -1; order: 3; }
}
.sav-ceiling-note { margin: .2rem 0 .5rem; padding: .5rem .7rem; background: var(--amber-soft); border-left: 3px solid var(--amber);
  border-radius: 8px; font-size: .85rem; color: #7A5912; line-height: 1.45; }

/* ============================================================
   ПЛАТНЫЙ ОТЧЁТ /report — экран + печать
   ============================================================ */
.report-main { padding: 28px 0 64px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.header-nav a { color: var(--ink-soft); font-weight: 600; font-size: .92rem; }
.header-nav a:hover { color: var(--green); }

.report-intro h1 { font-size: 1.9rem; margin: 0 0 10px; }
.report-intro .lede { margin-bottom: 14px; }
.report-honest { background: var(--green-soft); border: 1px solid #CFE3DC; border-radius: 12px; padding: 12px 16px; font-size: .92rem; color: var(--ink-soft); margin-bottom: 8px; }

.report-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 22px; box-shadow: var(--shadow-sm); }
.form-h { font-size: 1.15rem; margin: 20px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.form-h:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form-h-sub { font-size: .85rem; font-weight: 400; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
@media (max-width: 620px) { .grid2 { grid-template-columns: 1fr; } }
.report-page .field input, .report-page .field select {
  width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 1rem; color: var(--ink); background: #FCFBF9; }
.report-page .field input:focus, .report-page .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(28,107,91,.12); }
.report-page .field.check { display: flex; align-items: flex-start; }
.report-page .field.check label { display: flex; gap: 9px; align-items: flex-start; font-weight: 500; color: var(--ink-soft); cursor: pointer; }
.report-page .field.check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--green); }
.optin { border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; margin: 10px 0; background: #FCFBF9; }
.optin > summary { cursor: pointer; font-weight: 650; padding: 12px 0; color: var(--ink); }
.optin[open] > summary { border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.optin .grid2 { padding-bottom: 16px; }
.report-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.report-actions button { padding: 12px 22px; border-radius: 10px; font-weight: 650; font-size: 1rem; border: 1px solid transparent; cursor: pointer; }
.form-note[aria-live] { color: var(--danger); font-size: .9rem; margin-top: 10px; min-height: 1em; } /* только динамические заметки-ошибки; статические подписи остаются muted (дубль класса красил их красным) */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* предпросмотр + гейт */
.report-preview .preview-count { font-size: 1.05rem; margin-top: 8px; }
.preview-teaser { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 6px; }
.preview-teaser li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; background: var(--green-soft); border-radius: 8px; font-size: .92rem; }
.preview-teaser .pt-name { font-weight: 600; color: var(--ink); }
.preview-teaser .pt-ref { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.report-gate { border: 2px solid var(--green); }
.gate-price { font-size: 1.8rem; font-weight: 800; color: var(--green); margin: 12px 0; }
.gate-price .gate-once { font-size: .9rem; font-weight: 500; color: var(--muted); }
.report-gate .btn-primary { padding: 12px 24px; border-radius: 10px; font-weight: 700; font-size: 1.02rem; border: 0; cursor: pointer; }
.gate-honest { font-size: .88rem; color: var(--ink-soft); background: #FBF7EE; border: 1px solid #EADfc8; border-radius: 10px; padding: 11px 14px; margin-top: 14px; }
.lead-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); max-width: 460px; }
.lead-form .btn-primary { width: 100%; margin-top: 6px; }
.lead-note { color: var(--danger); font-size: .88rem; min-height: 1em; margin-top: 8px; }

/* полный отчёт */
.report-full-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0 18px; }
.report-full-head h2 { flex: 1 1 auto; margin: 0; font-size: 1.4rem; }
.report-disc { flex-basis: 100%; color: var(--ink-soft); font-size: .92rem; margin: 0; }
.lever-card { border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; background: var(--card); box-shadow: var(--shadow-sm); break-inside: avoid; }
.lc-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-num { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .9rem; }
.lc-name { font-weight: 750; font-size: 1.1rem; color: var(--ink); }
.lc-nat { margin-left: auto; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.nat-perm { background: var(--green-soft); color: var(--green); }
.nat-time { background: #FBF1DE; color: var(--amber-ink); }
.nat-fork { background: #ECEEF5; color: var(--ink-soft); }
.nat-acc { background: #EFEDE8; color: var(--muted); }
.lc-ref { font-size: .82rem; color: var(--muted); margin: 8px 0 2px; }
.lc-measure { margin: 10px 0; font-size: .98rem; }
.lc-sub { font-weight: 650; font-size: .9rem; margin: 12px 0 6px; color: var(--ink-soft); }
.lc-steps, .lc-bring { margin: 0 0 4px; padding-left: 22px; }
.lc-steps li, .lc-bring li { margin-bottom: 5px; font-size: .93rem; line-height: 1.45; }
.lc-boundary { margin-top: 12px; padding: 10px 13px; background: var(--danger-soft); border: 1px solid #EBD2CF; border-radius: 9px; font-size: .9rem; color: #7E2C2A; }
.lc-caveats { margin-top: 10px; font-size: .88rem; }
.lc-caveats summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.lc-caveats ul { margin: 8px 0 0; padding-left: 20px; color: var(--ink-soft); }
.lc-flag { margin-top: 8px; font-size: .86rem; color: var(--amber-ink); font-weight: 600; }
.redlines-block { border: 1px solid #EBD2CF; background: #FDF8F7; }
.redline-grid-r { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 12px; }
@media (max-width: 620px) { .redline-grid-r { grid-template-columns: 1fr; } }
.verify-note { margin-top: 14px; padding: 14px 16px; background: #FBF7EE; border: 1px solid #EADfc8; border-radius: 10px; font-size: .9rem; color: var(--ink-soft); }

/* печать: только отчёт, без форм/гейтов/навигации */
@media print {
  .no-print, .report-form-wrap, .report-gate, .site-header, .header-nav, .report-actions { display: none !important; }
  body { background: #fff; }
  .lever-card { box-shadow: none; border-left-width: 3px; }
  .report-main { padding: 0; }
  a { color: var(--ink); }
}

/* upsell на платный отчёт (в результатах free-калькулятора) */
.rblock.upsell { border: 2px solid var(--green); background: linear-gradient(180deg, var(--green-soft), var(--card)); }
.upsell-btn { display: inline-block; margin-top: 8px; padding: 11px 20px; border-radius: 10px; font-weight: 700; background: var(--green); color: #fff; }
.upsell-btn:hover { background: #185c4f; color: #fff; }

/* ============================================================
   СОСТАВИТЕЛЬ ДЕКЛАРАЦИИ УСН /usn-deklaraciya
   ============================================================ */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 14px; }
@media (max-width: 620px) { .grid4 { grid-template-columns: 1fr 1fr; } }
.ud-fs { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-top: 16px; }
.ud-fs legend { font-weight: 700; padding: 0 8px; color: var(--ink); font-size: .95rem; }
.ud-fs .hint { font-weight: 400; }
.ud-doc { background: #fff; }
.ud-doc-head { border-bottom: 2px solid var(--ink); padding-bottom: 8px; margin-bottom: 14px; }
.ud-doc-meta { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.ud-tbl { width: 100%; border-collapse: collapse; margin: 10px 0 18px; font-size: .92rem; }
.ud-tbl caption { text-align: left; font-weight: 700; color: var(--ink); padding: 6px 0; font-size: .95rem; }
.ud-tbl td { border: 1px solid var(--line); padding: 7px 10px; vertical-align: top; }
.ud-code { width: 92px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.ud-lbl { color: var(--ink-soft); }
.ud-val { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.ud-warn { border: 1px solid #EAD8B0; background: #FBF1DE; }
.ud-warn-list { margin: 6px 0 0; padding-left: 20px; }
.ud-warn-list li { color: #7a5a16; margin-bottom: 5px; line-height: 1.5; }
.ud-disc-list { margin: 6px 0 0; padding-left: 20px; }
.ud-disc-list li { color: var(--ink-soft); font-size: .86rem; margin-bottom: 5px; line-height: 1.5; }
.ud-import { border: 1px dashed var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; background: #FBFAF8; }
.ud-import-title { font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.ud-import textarea { width: 100%; box-sizing: border-box; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; color: var(--ink); background: #fff; resize: vertical; }
.ud-file-label { display: inline-block; cursor: pointer; }
.ud-cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 12px; }
@media (max-width: 620px) { .ud-cat-grid { grid-template-columns: 1fr; } }
.ud-card { display: flex; flex-direction: column; gap: 5px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-decoration: none; }
a.ud-card:hover { border-color: var(--green); box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.ud-card-soon { opacity: .62; background: #FAF9F7; }
.ud-card-h { font-weight: 700; color: var(--ink); font-size: 1.02rem; }
.ud-card-d { color: var(--ink-soft); font-size: .88rem; line-height: 1.45; }
.ud-card-tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 8px; border-radius: 20px; background: var(--line); color: var(--muted); }
.ud-tag-ok { background: var(--green-soft); color: #185c4f; }
.enp-row { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.enp-row-grid { display: grid; grid-template-columns: 1.4fr 2fr 1fr auto; gap: 10px; align-items: end; }
@media (max-width: 700px) { .enp-row-grid { grid-template-columns: 1fr 1fr; } }
.enp-row .enp-period { display: flex; flex-wrap: wrap; gap: 6px; }
.enp-row .enp-period select { flex: 1 1 auto; min-width: 90px; }
.enp-row label { font-size: .82rem; color: var(--ink-soft); display: block; margin-bottom: 3px; }
.enp-del { padding: 8px 12px; align-self: end; }

/* юр-страницы (оферта / политика) */
.legal-main { padding: 28px 0 64px; max-width: 760px; }
.legal-main h1 { font-size: 1.7rem; margin-bottom: 6px; }
.legal-main h2 { font-size: 1.15rem; margin: 26px 0 8px; }
.legal-main p, .legal-main li { color: var(--ink-soft); line-height: 1.6; }
.legal-main ul { padding-left: 22px; }
.legal-main li { margin-bottom: 6px; }
.legal-meta { font-size: .9rem; color: var(--muted); }
.legal-draftnote { background: #FBF1DE; border: 1px solid #EAD8B0; border-radius: 10px; padding: 12px 15px; font-size: .9rem; color: #7a5a16; margin: 16px 0; }
.legal-gate { background: var(--danger-soft); border: 1px solid #EBD2CF; border-radius: 10px; padding: 12px 15px; }
.legal-foot { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ============================================================
   КРАСНАЯ ЗОНА /red-zone — скрытый защитный раздел «чего НЕ делать»
   ============================================================ */
.rz-main { padding: 24px 0 64px; max-width: 880px; }
.rz-hero { background: linear-gradient(160deg, #2A1416, #3a1d1f); color: #fff; border-radius: 16px; padding: 30px 32px; margin-bottom: 24px; }
.rz-badge { display: inline-block; background: var(--danger); color: #fff; font-weight: 800; letter-spacing: .08em; font-size: .82rem; padding: 6px 14px; border-radius: 20px; margin-bottom: 14px; }
.rz-hero h1 { color: #fff; font-size: 1.85rem; line-height: 1.15; }
.rz-hero h1 u { text-decoration-color: var(--danger); text-underline-offset: 3px; }
.rz-hero .lede { color: #f0dcdc; margin-top: 12px; font-size: 1.08rem; }
.rz-hero strong { color: #fff; }
.rz-framenote { margin-top: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 10px; padding: 13px 16px; font-size: .92rem; color: #ecd9d9; }
.rz-framenote strong { color: #fff; }

.rz-block { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow-sm); }
.rz-block h2 { font-size: 1.3rem; margin-bottom: 14px; }
.rz-liab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .rz-liab-grid { grid-template-columns: 1fr; } }
.rz-liab { border: 1px solid var(--line); border-left: 4px solid var(--danger); border-radius: 10px; padding: 14px 16px; background: #FDF9F8; }
.rz-liab-h { font-weight: 750; color: var(--ink); margin-bottom: 6px; }
.rz-liab p { font-size: .92rem; color: var(--ink-soft); }
.rz-disc { margin-top: 14px; font-size: .88rem; color: var(--muted); font-style: italic; }

.rz-scheme { border: 1px solid #EBD2CF; border-radius: 12px; padding: 18px 20px; margin-bottom: 16px; background: #FDF9F8; }
.rz-scheme-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.rz-x { background: var(--danger); color: #fff; font-weight: 800; font-size: .82rem; padding: 3px 10px; border-radius: 6px; }
.rz-name { font-weight: 750; font-size: 1.12rem; color: var(--ink); flex: 1 1 auto; }
.rz-do { background: #fff; border: 1.5px solid var(--danger); color: var(--danger); font-weight: 800; font-size: .78rem; letter-spacing: .04em; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.rz-row { font-size: .94rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 8px; }
.rz-row b { color: var(--ink); }
.rz-liab-row { background: var(--danger-soft); border-radius: 8px; padding: 9px 12px; }
.rz-exit { background: var(--green-soft); border-radius: 8px; padding: 9px 12px; }
.rz-exit b { color: var(--green); }
.rz-exit-block { border: 2px solid var(--green); }
.rz-exit-block h2 { color: var(--green); }
/* плейсхолдер «под сверку» — заметный, чтобы не уехал в прод незаполненным */
.rz-fill { background: #FBF1DE; color: #7a5a16; border-bottom: 1px dashed #C9A86A; padding: 0 3px; font-style: italic; }

/* измеритель палева в красной зоне */
.rz-calc { border: 2px solid var(--danger); }
.rz-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 16px; }
@media (max-width: 760px) { .rz-calc-grid { grid-template-columns: 1fr; } }
.rz-calc-h { font-weight: 700; font-size: .92rem; color: var(--ink); margin: 4px 0 10px; }
.rz-scheme-pick { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 7px; cursor: pointer; background: #fff; }
.rz-scheme-pick:hover { border-color: var(--danger); }
.rz-scheme-pick input { width: 17px; height: 17px; accent-color: var(--danger); }
.rz-pick-x { background: var(--danger); color: #fff; font-weight: 800; font-size: .74rem; padding: 2px 7px; border-radius: 5px; }
.rz-pick-name { flex: 1 1 auto; font-weight: 600; font-size: .92rem; color: var(--ink); }
.rz-pick-pal { font-size: .76rem; color: var(--danger); font-weight: 700; white-space: nowrap; }
.rz-calc-amount { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.rz-amt-row { display: flex; gap: 10px; flex-wrap: wrap; }
.rz-amt-row label { font-size: .8rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 4px; flex: 1 1 90px; }
.rz-amt-row input, .rz-amt-row select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .95rem; background: #FCFBF9; }

.rz-calc-right { background: #FDF9F8; border: 1px solid #EBD2CF; border-radius: 12px; padding: 16px 18px; }
.rz-meter-wrap { margin-bottom: 14px; }
.rz-meter-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.rz-meter { height: 16px; background: #EDE3E2; border-radius: 10px; overflow: hidden; margin: 7px 0 4px; }
.rz-meter-fill { height: 100%; width: 0; border-radius: 10px; transition: width .25s ease; background: var(--amber); }
.rz-meter-fill.lvl-mid { background: var(--amber); }
.rz-meter-fill.lvl-hi { background: #D5602A; }
.rz-meter-fill.lvl-max { background: var(--danger); }
.rz-meter-val { font-weight: 800; color: var(--danger); font-size: .95rem; }
.rz-muted { color: var(--muted); font-size: .92rem; }
.rz-v-line { font-size: .92rem; color: var(--ink); font-weight: 600; }
.rz-chan { margin: 6px 0 0; padding-left: 20px; }
.rz-chan li { font-size: .88rem; color: var(--ink-soft); margin-bottom: 4px; }
.rz-arts { margin: 6px 0 0; padding-left: 18px; }
.rz-arts li { font-size: .86rem; color: var(--ink-soft); margin-bottom: 5px; }
.rz-layer { margin-top: 12px; background: var(--danger-soft); border: 1px solid #EBD2CF; border-radius: 9px; padding: 10px 13px; font-size: .9rem; color: #7E2C2A; }
.rz-loss { margin-top: 14px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; background: #fff; }
.rz-loss-h { font-weight: 700; font-size: .88rem; color: var(--ink); margin-bottom: 8px; }
.rz-loss-row { display: flex; justify-content: space-between; gap: 12px; font-size: .9rem; padding: 4px 0; color: var(--ink-soft); }
.rz-loss-row b { color: var(--ink); }
.rz-loss-row.total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-weight: 700; }
.rz-loss-row.total b { color: var(--danger); }
.rz-crim { margin-top: 10px; font-size: .88rem; font-weight: 600; color: var(--ink-soft); background: #F4EFEA; border-radius: 8px; padding: 9px 12px; }
.rz-crim.on { background: var(--danger); color: #fff; }
.rz-out { margin-top: 14px; background: var(--green-soft); border: 1px solid #CFE3DC; border-radius: 9px; padding: 11px 14px; font-size: .9rem; color: var(--ink-soft); }
.rz-out strong { color: var(--green); }

/* red-zone: hero CTA + FAQ (после переориентации в SEO-актив) */
.rz-hero-cta { margin-top: 18px; }
.rz-cta-btn { display: inline-block; background: #fff; color: var(--ink); font-weight: 700; padding: 11px 18px; border-radius: 10px; font-size: .95rem; }
.rz-cta-btn:hover { background: var(--green-soft); color: var(--green); }
.rz-faq details { border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin-bottom: 10px; background: #fff; }
.rz-faq summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.rz-faq details[open] summary { margin-bottom: 8px; }
.rz-faq details p { font-size: .94rem; color: var(--ink-soft); line-height: 1.55; }

/* ============ НДС-калькулятор + самопроверка дробления (SEO-активы) ============ */
.rz-intro { padding: 8px 0 4px; }
.rz-intro h1 { font-size: 1.8rem; line-height: 1.15; margin-bottom: 10px; }
.rz-intro .lede { color: var(--ink-soft); font-size: 1.1rem; }

/* НДС: таблица вариантов (SSR) */
.nk-options { border-collapse: collapse; width: 100%; margin-top: 8px; }
.nk-options th { text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brass); border-bottom: 1.5px solid var(--line); padding: 8px 10px; }
.nk-options td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--ink-soft); vertical-align: top; }
.nk-calc .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
@media (max-width: 620px) { .nk-calc .grid2 { grid-template-columns: 1fr; } }
.nk-calc .field input, .nk-calc .field select { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 1rem; background: #FCFBF9; }
.nk-calc .field .hint { font-weight: 400; color: var(--muted); font-size: .82rem; }
.nk-result-tbl { border-collapse: collapse; width: 100%; }
.nk-result-tbl th { text-align: left; font-size: .8rem; text-transform: uppercase; color: var(--brass); border-bottom: 1.5px solid var(--line); padding: 7px 10px; }
.nk-result-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.nk-row-best { background: var(--green-soft); }
.nk-row-na { opacity: .55; }
.nk-best { color: var(--green); font-weight: 700; }
.nk-na { color: var(--muted); font-size: .85rem; }
.nk-note { color: var(--muted); font-size: .8rem; }
.nk-verdict { margin-top: 12px; font-size: 1.05rem; }
.nk-hint-g { color: var(--green); font-weight: 600; }
.nk-hint-a { color: var(--amber-ink); font-weight: 600; }
.nk-howto { font-size: .95rem; color: var(--ink-soft); background: var(--green-soft); border: 1px solid #CFE3DC; border-radius: 10px; padding: 11px 14px; margin: 0 0 16px; }
.nk-calc .grid2-full { grid-column: 1 / -1; }
.nk-verdict-box { background: linear-gradient(135deg, #14202E, #1C6B5B); color: #fff; border-radius: var(--radius); padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.nk-vb-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: #BFE3D8; font-weight: 700; margin-bottom: 6px; }
.nk-vb-name { font-size: 1.2rem; font-weight: 700; }
.nk-vb-sum { font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; line-height: 1.1; }
.nk-vb-per { font-size: 1rem; font-weight: 600; color: #BFE3D8; }
.nk-vb-delta { margin-top: 10px; font-size: .95rem; color: #E8F3EF; background: rgba(255,255,255,.12); display: inline-block; padding: 5px 12px; border-radius: 8px; }

/* раскрывающийся блок необязательных полей в главной форме */
.opt-fieldset { margin: 0 0 22px; }
.opt-fieldset > summary { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass); font-weight: 700; margin-bottom: 12px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; }
.opt-fieldset > summary::-webkit-details-marker { display: none; }
.opt-fieldset > summary::before { content: '+'; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border: 1px solid var(--line); border-radius: 5px; color: var(--brass); font-weight: 700; }
.opt-fieldset[open] > summary::before { content: '\2212'; }

/* калькулятор зарплата/дивиденды (встроен в статью) */
.zd-calc { background: var(--surface, #fff); border: 1px solid var(--line, #e3e6ea); border-radius: 14px; padding: 22px 24px; margin: 26px 0; box-shadow: 0 1px 3px rgba(20,32,46,.05); }
.zd-calc h3 { margin: 0 0 6px; font-size: 1.25rem; }
.zd-howto { font-size: .92rem; color: var(--ink-soft, #5a6675); margin: 0 0 16px; }
.zd-calc .field { margin-bottom: 14px; }
.zd-calc .field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .9rem; }
.zd-calc .field input { width: 100%; padding: 11px 13px; border: 1px solid var(--line, #d8dde3); border-radius: 9px; font-size: 1.05rem; box-sizing: border-box; }
.zd-msp { border: 1px solid var(--line, #e3e6ea); border-radius: 10px; padding: 12px 14px; margin: 0 0 16px; }
.zd-msp legend { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brass, #9a7b3f); font-weight: 700; padding: 0 6px; }
.zd-msp label { display: flex; align-items: center; gap: 9px; padding: 4px 0; font-size: .92rem; cursor: pointer; }
.zd-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.zd-verdict { border-radius: 12px; padding: 18px 22px; margin-bottom: 16px; color: #fff; }
.zd-verdict.zd-sal { background: linear-gradient(135deg, #14202E, #1C6B5B); }
.zd-verdict.zd-div { background: linear-gradient(135deg, #14202E, #2C4A6E); }
.zd-v-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; opacity: .85; font-weight: 700; }
.zd-v-name { font-size: 1.15rem; font-weight: 700; margin-top: 4px; }
.zd-v-sum { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.zd-v-per { font-size: .95rem; font-weight: 600; opacity: .85; }
.zd-v-delta { margin-top: 8px; font-size: .9rem; background: rgba(255,255,255,.13); display: inline-block; padding: 4px 11px; border-radius: 7px; }
.zd-table { width: 100%; border-collapse: collapse; margin: 4px 0 14px; font-size: .92rem; }
.zd-table th, .zd-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line, #edf0f3); vertical-align: top; }
.zd-table th { font-size: .8rem; color: var(--ink-soft, #5a6675); }
.zd-table td:nth-child(2), .zd-table td:nth-child(3), .zd-table th:nth-child(2), .zd-table th:nth-child(3) { text-align: right; }
.zd-table .zd-n { font-size: .78rem; color: var(--muted, #8a94a3); }
.zd-table .zd-total td { font-weight: 600; }
.zd-table .zd-net td { font-size: 1.02rem; border-bottom: none; }
.zd-why { background: var(--green-soft, #eef6f3); border-radius: 9px; padding: 12px 15px; font-size: .9rem; margin-bottom: 12px; }
.zd-why p { margin: 0; }
.zd-warn { font-size: .88rem; color: #7a2e12; background: #fdf1e7; border: 1px solid #f1d3bd; border-radius: 9px; padding: 11px 14px; margin: 0 0 12px; }
.zd-disc { font-size: .82rem; color: var(--muted, #8a94a3); margin: 0 0 14px; }
.zd-cta { background: var(--ink, #14202E); color: #fff; border-radius: 10px; padding: 16px 18px; font-size: .92rem; }
.zd-cta strong { color: #fff; }

/* широкие таблицы данных — горизонтальный скролл на узких экранах (без обрезки контента) */
@media (max-width: 640px) {
  .rate-compare, .nk-options, .nk-result-tbl, .zd-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }
  .rate-compare td, .rate-compare th,
  .nk-options td, .nk-options th { white-space: nowrap; }
  .rate-compare td:last-child, .nk-options td:last-child { white-space: normal; min-width: 180px; }
}

/* дробление: чек-лист */
.dr-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 14px; }
.dr-group legend { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--brass); font-weight: 700; padding: 0 6px; }
.dr-item { display: flex; gap: 11px; align-items: flex-start; padding: 8px 4px; font-size: .94rem; color: var(--ink-soft); cursor: pointer; border-bottom: 1px solid #F0EBE2; }
.dr-item:last-child { border-bottom: 0; }
.dr-item input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--danger); flex: 0 0 17px; }
.dr-item em { color: var(--muted); font-style: italic; font-size: .85rem; }
.dr-count { color: var(--muted); font-weight: 600; font-size: .9rem; align-self: center; }
.dr-result { border-left: 5px solid var(--line); }
.dr-result.dr-low { border-left-color: var(--green); background: var(--green-soft); }
.dr-result.dr-medium { border-left-color: var(--amber-ink); background: #FBF1DE; }
.dr-result.dr-high { border-left-color: var(--danger); background: var(--danger-soft); }
.dr-level { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; color: var(--ink); }
.dr-load { margin-top: 12px; font-size: .86rem; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; }

/* ============ БЕГУЩАЯ СТРОКА (финансовая лента) ============ */
.ticker { background: var(--ink); color: #E8EEF3; border-bottom: 1px solid rgba(255,255,255,.08); overflow: clip; contain: layout paint; max-width: 100vw; }
.ticker__wrap { display: flex; align-items: center; gap: 14px; height: 38px; }
.ticker__badge { display: inline-flex; align-items: center; gap: 7px; flex: 0 0 auto; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; font-size: .68rem; color: #E2B25C; }
.ticker__dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; animation: ticker-pulse 2.2s infinite; }
@keyframes ticker-pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.5); } 70% { box-shadow: 0 0 0 6px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ticker__viewport { flex: 1 1 auto; min-width: 0; overflow: clip; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track { display: inline-flex; white-space: nowrap; will-change: transform; animation: ticker-scroll var(--ticker-dur, 60s) linear infinite; }
.ticker__group { display: inline-flex; align-items: center; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 8px; padding: 0 2px; color: #C9D4DE; font-size: .82rem; }
.ticker__item--link { color: #E8EEF3; }
.ticker__item--link:hover .ticker__txt { text-decoration: underline; text-underline-offset: 2px; }
.ticker__label { font-size: .6rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 800; color: #14202E; background: #E2B25C; padding: 2px 6px; border-radius: 5px; flex: 0 0 auto; }
.ticker__label--deadline { background: #E8A0A0; }
.ticker__label--rate, .ticker__label--meeting { background: #7FC8B6; }
.ticker__sep { color: rgba(226,178,92,.45); padding: 0 12px; font-size: .55rem; }
.ticker__btn { flex: 0 0 auto; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #E8EEF3; min-width: 28px; height: 24px; border-radius: 6px; cursor: pointer; font-size: .66rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.ticker__btn:hover { background: rgba(255,255,255,.18); }
.ticker:hover .ticker__track, .ticker__track:focus-within { animation-play-state: paused; }
@media (max-width: 600px) { .ticker__badge { font-size: 0; gap: 0; } .ticker__badge .ticker__dot { width: 8px; height: 8px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .ticker__track { animation: none; }
  .ticker__viewport { overflow-x: auto; scrollbar-width: none; }
  .ticker__viewport::-webkit-scrollbar { display: none; }
  .ticker__group[aria-hidden="true"] { display: none; }
  .ticker__dot { animation: none; }
}

/* ============ ЖУРНАЛ (хаб статей) ============ */
.crumbs { font-size: .82rem; color: var(--muted); padding: 18px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--green); }
.crumbs span { color: var(--ink-soft); }

.blog-hero { padding: 48px 0 28px; }
.blog-hero .eyebrow { margin-bottom: 10px; }
.blog-hero h1 { max-width: 760px; }
.blog-hero .lede { max-width: 680px; }

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.post-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .12s ease, box-shadow .15s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-card__media { height: 6px; background: linear-gradient(90deg, var(--green), var(--brass)); }
.post-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.post-card__cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--brass); margin-bottom: 9px; }
.post-card__title-h { margin: 0; font: inherit; }
.post-card__title { display: block; font-size: 1.16rem; font-weight: 750; line-height: 1.28; color: var(--ink); margin: 0 0 9px; }
.post-card a.post-card__title:hover { color: var(--green); }
.post-card__excerpt { font-size: .92rem; color: var(--ink-soft); margin: 0 0 16px; flex: 1; }
.post-card__meta { display: flex; gap: 14px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.post-card.is-featured { grid-column: 1 / -1; }
.post-card.is-featured .post-card__body { padding: 28px 30px; }
.post-card.is-featured .post-card__title { font-size: 1.7rem; max-width: 720px; }
.post-card.is-featured .post-card__excerpt { font-size: 1.04rem; max-width: 720px; }
@media (max-width: 720px) { .post-card.is-featured .post-card__title { font-size: 1.4rem; } }

/* ============ СТАТЬЯ (лонгрид) ============ */
.article-wrap { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .85rem; color: var(--muted); margin: 6px 0 26px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.byline strong { color: var(--ink-soft); font-weight: 650; }
.byline .byline-dot { color: var(--line); }
.byline .verified { display: inline-flex; align-items: center; gap: 5px; color: var(--green); font-weight: 600; }

.prose { font-size: 1.07rem; color: var(--ink-soft); line-height: 1.72; }
.prose > h2 { font-size: 1.5rem; color: var(--ink); margin: 2em 0 .6em; letter-spacing: -.01em; }
.prose > h3 { font-size: 1.16rem; color: var(--ink); margin: 1.6em 0 .5em; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prose li { margin-bottom: .55em; }
.prose a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(28,107,91,.35); }
.prose a:hover { text-decoration-color: var(--green); }
.prose .lead { font-size: 1.2rem; color: var(--ink); line-height: 1.6; margin-bottom: 1.4em; }

.toc { background: #FBFAF7; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin: 0 0 30px; }
.toc h2 { font-size: .76rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--brass) !important; margin: 0 0 10px !important; }
.toc ol { margin: 0; padding-left: 1.2em; columns: 2; column-gap: 28px; }
.toc li { margin-bottom: 6px; font-size: .92rem; }
@media (max-width: 600px) { .toc ol { columns: 1; } }

.callout { border-radius: var(--radius); padding: 16px 20px; margin: 1.6em 0; font-size: .98rem; line-height: 1.6; }
.callout > :last-child { margin-bottom: 0; }
.callout-h { font-weight: 700; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.callout.info { background: var(--green-soft); border: 1px solid #CFE3DC; color: var(--ink-soft); }
.callout.info .callout-h { color: var(--green); }
.callout.warn { background: var(--amber-soft); border: 1px solid #ECD9A8; color: #6E551F; }
.callout.warn .callout-h { color: var(--amber-ink); }
.callout.legal { background: var(--danger-soft); border: 1px solid #EBD2CF; color: #7E2C2A; }
.callout.legal .callout-h { color: var(--danger); }

.keytakeaways { background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--brass); border-radius: 12px; padding: 18px 22px; margin: 0 0 30px; box-shadow: var(--shadow-sm); }
.keytakeaways h2 { font-size: .76rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--brass) !important; margin: 0 0 10px !important; }
.keytakeaways ul { margin: 0; padding-left: 1.2em; }
.keytakeaways li { font-size: .95rem; color: var(--ink-soft); margin-bottom: 7px; }

/* мягкий встроенный переход на калькулятор/отчёт внутри статьи */
.inline-cta { background: linear-gradient(180deg, #FBFAF7, #fff); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; margin: 2em 0; box-shadow: var(--shadow-sm); }
.inline-cta__kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--brass); margin-bottom: 8px; }
.inline-cta__title { font-size: 1.2rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; line-height: 1.3; }
.inline-cta__text { font-size: .96rem; color: var(--ink-soft); margin: 0 0 16px; }
.inline-cta__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.inline-cta .step-hint { font-size: .82rem; color: var(--muted); }

/* лестница «статья → калькулятор → отчёт» */
.funnel-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.4em 0; }
.funnel-step { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; position: relative; }
.funnel-step__n { font-size: .72rem; font-weight: 800; color: #fff; background: var(--green); width: 22px; height: 22px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.funnel-step h3 { margin: 0 0 4px; font-size: .98rem; color: var(--ink); }
.funnel-step p { margin: 0; font-size: .85rem; color: var(--muted); }
.funnel-step.is-paid .funnel-step__n { background: var(--brass); }
@media (max-width: 640px) { .funnel-steps { grid-template-columns: 1fr; } }

/* блок «читать ещё» */
.related { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 28px; }
.related h2 { font-size: 1.2rem; margin-bottom: 16px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.related-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; transition: border-color .12s, transform .12s; }
.related-card:hover { border-color: var(--green); transform: translateY(-2px); }
.related-card .rc-cat { font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--brass); font-weight: 700; }
.related-card .rc-title { display: block; font-size: 1rem; font-weight: 650; color: var(--ink); margin-top: 5px; line-height: 1.3; }

/* ── Подсказки к полям («?») — для предпринимателей без бухгалтерии (WCAG 2.2) ── */
.fhelp-wrap { position: relative; display: inline-flex; vertical-align: middle; margin-left: 6px; }
.fhelp {
  width: 18px; height: 18px; padding: 0; border-radius: 50%;
  border: 1px solid var(--green); background: var(--green-soft); color: var(--green);
  font-size: 12px; font-weight: 700; line-height: 1; cursor: help;
  display: inline-flex; align-items: center; justify-content: center;
  /* цель нажатия ≥24px (WCAG 2.5.8) — через невидимый pad */
  position: relative;
}
.fhelp::after { content: ""; position: absolute; inset: -4px; } /* расширяет область клика до 26px */
.fhelp:hover, .fhelp:focus-visible { background: var(--green); color: #fff; }
.fhelp:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.fhelp__bubble {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 40;
  width: max-content; max-width: 280px;
  background: var(--ink); color: #fff; font-weight: 400; font-size: .82rem; line-height: 1.45;
  text-align: left; padding: 10px 12px; border-radius: 10px;
  box-shadow: 0 10px 30px rgba(20,32,46,.28);
  display: none; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .14s, transform .14s;
  pointer-events: none;
}
.fhelp__bubble::before { /* стрелка */
  content: ""; position: absolute; left: var(--fh-arrow, 6px); top: -5px; width: 10px; height: 10px;
  background: var(--ink); transform: rotate(45deg); border-radius: 2px;
}
.fhelp__row { display: block; }
.fhelp__row + .fhelp__row { margin-top: 5px; }
.fhelp__row b { color: #9FE6D3; font-weight: 600; }
.fhelp__where b { color: #F0C9A0; }
/* показ: hover по обёртке (наводимость 1.4.13), focus кнопки, и .open (клик/тач) */
.fhelp-wrap:hover .fhelp__bubble,
.fhelp:focus-visible + .fhelp__bubble,
.fhelp-wrap.open .fhelp__bubble {
  display: block; opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto;
}
/* у правого края — раскрывать влево */
.fhelp__bubble.flip-left { left: auto; right: 0; }
.fhelp__bubble.flip-left::before { left: auto; right: 6px; }
@media (max-width: 560px) { .fhelp__bubble { max-width: 220px; } }

/* ---------- РКО: сравнение банков (нулевой коммерческий интерес) ---------- */
.rko-banner { background: var(--green-soft); border: 1px solid var(--green); border-radius: var(--radius); padding: 12px 16px; color: var(--ink); font-size: .95rem; margin: 6px 0 14px; }
.rko-scenario { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 12px; background: var(--card); }
.rko-scenario.rko-focus { border-color: var(--brass); box-shadow: var(--shadow-sm); }
.rko-task { font-weight: 750; color: var(--ink); font-size: 1.02rem; }
.rko-crit { color: var(--muted); font-size: .86rem; margin: 2px 0 10px; }
.rko-top3 { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.rko-top3 li { padding-left: 4px; }
.rko-bank { display: block; font-weight: 650; color: var(--brass); }
.rko-why { display: block; color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.rko-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.rko-table th, .rko-table td { border: 1px solid var(--line); padding: 7px 9px; text-align: left; vertical-align: top; }
.rko-table th { background: var(--paper); font-weight: 700; color: var(--ink); white-space: nowrap; }
.rko-table td { color: var(--ink-soft); }
.rko-fulltable { margin: 8px 0 12px; }
.rko-fulltable > summary { cursor: pointer; font-weight: 600; color: var(--green); padding: 6px 0; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sav-struct { margin: 10px 0; padding: 12px 14px; border: 1px dashed var(--brass); border-radius: var(--radius); background: var(--amber-soft); }
.sav-struct-head { font-weight: 650; color: var(--amber-ink); font-size: .92rem; margin-bottom: 6px; }
.sav-struct ul { margin: 0; padding-left: 20px; display: grid; gap: 5px; }
.sav-struct li { color: var(--ink-soft); font-size: .9rem; line-height: 1.45; }
.sav-struct-note { color: var(--muted); font-size: .82rem; }

/* ── Токен-доступ к полному режиму ── */
#access-btn{display:block;margin:18px auto 0;background:none;border:none;color:var(--muted);font-size:.8rem;cursor:pointer;opacity:.6;text-decoration:underline dotted;padding:4px 8px}
#access-btn:hover{opacity:1;color:var(--brass)}
#access-modal{position:fixed;inset:0;background:rgba(20,18,14,.55);display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px}
.access-card{background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);max-width:420px;width:100%;padding:22px;box-shadow:0 12px 40px rgba(0,0,0,.25)}
.access-h{font-weight:700;font-size:1.1rem;margin-bottom:6px;color:var(--ink)}
.access-p{color:var(--ink-soft);font-size:.9rem;line-height:1.45;margin:0 0 14px}
#access-input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid var(--line);border-radius:8px;font-size:1rem;letter-spacing:.08em;text-transform:uppercase;font-family:ui-monospace,SFMono-Regular,Menlo,monospace}
#access-input:focus{outline:2px solid var(--brass);border-color:var(--brass)}
.access-err{color:#b3261e;font-size:.85rem;margin-top:8px}
.access-row{display:flex;gap:10px;justify-content:flex-end;margin-top:16px}
#access-banner{position:fixed;left:0;right:0;bottom:0;z-index:900;display:flex;align-items:center;gap:14px;flex-wrap:wrap;justify-content:center;background:var(--amber-soft);border-top:1px solid var(--brass);padding:8px 14px;font-size:.86rem;color:var(--amber-ink)}
#access-banner .ab-tag{font-weight:650}
#access-banner a{color:var(--amber-ink);font-weight:600}
#access-banner #access-exit{background:none;border:1px solid var(--brass);border-radius:6px;color:var(--amber-ink);cursor:pointer;font-size:.8rem;padding:3px 10px}
/* элементы только для полного режима (по умолчанию скрыты, раскрываются по токену) */
.full-only{display:none}
html.full-access .full-only{display:block}
html.full-access #access-btn{display:none}

/* ── Q&A-страницы конвейера О-1 (генератор _poc/qa-gen.js): обёртка таблицы «было/стало» ── */
.qa-table-wrap { margin: 1.6em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.qa-table-wrap .zd-table { margin: 0; min-width: 460px; }
.qa-tcap { caption-side: top; text-align: left; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted, #8a94a3); font-weight: 700; padding: 0 0 8px; }
.prose .qa-table-wrap .zd-table th { color: var(--ink-soft, #5a6675); font-weight: 700; }

/* Мобильная читаемость бейджей (QA 11.07: .eyebrow — первая строка hero под рекламный трафик, 11.5px + uppercase близко к нечитаемому) */
@media (max-width: 560px) {
  .eyebrow { font-size: .78rem; letter-spacing: .08em; }
  .ud-card-tag { font-size: .78rem; }
  .rz-badge { font-size: .85rem; }
}

/* Перенос nowrap-оснований НК в превью /report на мобиле (базовое правило .pt-ref объявлено ниже медиа-блока адаптива, поэтому оверрайд живёт здесь, в конце файла) */
@media (max-width: 860px) {
  .preview-teaser .pt-ref { white-space: normal; }
}
