/* Страницы блога (статьи). Шапка и подвал как на главной. */
/* Раскладка: шапка и подвал как на главной; статья в две колонки — липкое оглавление слева и текст 720px справа.
   Сайт светлый, поэтому страница одной темы. */
:root {
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --bg: #FFFFFF;
  --white: #FFFFFF;
  --text: #2D3748;
  --muted: #6B7280;
  --dim: #9CA3AF;
  --dark: #1E2A38;
  --blue: #4C9AFF;
  --blue-deep: #2563EB;
  --blue-bg: #EAF2FF;
  --green: #2FBF71;
  --green-text: #1F7A4C;
  --green-bg: #E6F7EF;
  --amber: #F59E0B;
  --warn-bg: #FFF7E6;
  --warn-text: #92400E;
  --red: #E5484D;
  --red-bg: #FDECEC;
  --red-text: #9B2C2C;
  --border: #E2E8F0;
  --border-hard: #CBD5E1;
      --pad: 140px;
  --header-h: 74px;
  color-scheme: light;
}
@media (max-width: 1200px) { :root { --pad: 40px; } }
@media (max-width: 768px)  { :root { --pad: 20px; } }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ---------- Кнопки (как на сайте) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 20px; border-radius: 10px;
  font-family: var(--font); font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: .01em;
  white-space: nowrap; transition: opacity .18s ease, transform .15s ease;
}
.btn:hover { opacity: .88; transform: translateY(-1px); }
.btn:active { opacity: 1; transform: translateY(0); }
.btn--primary { background: var(--dark); color: var(--white); }
.btn--secondary { background: var(--white); color: var(--text); outline: 1px solid var(--border); outline-offset: -1px; }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--amber { background: var(--amber); color: var(--white); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 12px; }
.btn--full { width: 100%; }

/* ---------- Шапка (копия главной) ---------- */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 30px max(var(--pad), env(safe-area-inset-right, 0px)) 0 max(var(--pad), env(safe-area-inset-left, 0px)); }
.header__wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px 24px; background: rgba(255,255,255,.60); box-shadow: 0 0 0 1px var(--border);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-radius: 12px; }
.header__logo { flex-shrink: 0; display: flex; align-items: center; }
.header__nav { display: flex; align-items: center; gap: 4px; }
.header__nav-link { padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 400; line-height: 20px;
  color: var(--muted); transition: color .18s, background .18s; white-space: nowrap; }
.header__nav-link:hover { color: var(--text); background: rgba(0,0,0,.04); }
.header__actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header__burger, .header__mobile { display: none; }
.header__overlay { display: none; }

@media (max-width: 1200px) { .header { padding-top: 20px; } }
/* на ширине до 1100px меню и кнопки не помещаются: бургер, как на телефоне */
@media (max-width: 1100px) {
  .header { padding: env(safe-area-inset-top, 0px) 0 0; background: var(--white); }
  .header__wrap { border-radius: 0; padding: 4px max(8px, env(safe-area-inset-right, 0px)) 4px max(4px, env(safe-area-inset-left, 0px));
    backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--white); box-shadow: 0 1px 0 var(--border); }
  .header__nav, .header__actions { display: none; }
  .header__burger { display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 36px; height: 36px; padding: 6px; border-radius: 8px; transition: background .18s; }
  .header__burger:hover { background: var(--bg); }
  .header__burger span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 999px;
    transition: transform .25s ease, opacity .2s ease; transform-origin: center; }
  .header__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .header__burger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .header__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .header__overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.40); z-index: 98; opacity: 0; transition: opacity .25s ease; }
  .header__overlay.is-open { display: block; opacity: 1; }
  .header__mobile { display: flex; flex-direction: column; gap: 32px; position: fixed;
    top: calc(62px + env(safe-area-inset-top, 0px)); left: 50%; width: calc(100% - 32px); max-width: 350px;
    background: var(--white); border-radius: 16px; outline: 1px solid var(--border); outline-offset: -1px;
    padding: 20px 16px; z-index: 99; opacity: 0; transform: translateX(-50%) translateY(-8px) scale(.98);
    pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
  .header__mobile.is-open { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: auto; }
  .header__mobile-nav { display: flex; flex-direction: column; align-items: center; }
  .header__mobile-nav a { display: block; width: 100%; padding: 6px 0; font-size: 13px; line-height: 18px; color: var(--dark); text-align: center; }
  .header__mobile-nav a:hover { color: var(--blue); }
  .header__mobile-actions { display: flex; flex-direction: column; gap: 12px; }
  .header__mobile-actions .btn { width: 100%; }
}

/* ---------- Каркас страницы ---------- */
.page { padding: calc(30px + var(--header-h) + 36px) max(var(--pad), env(safe-area-inset-right, 0px)) 96px max(var(--pad), env(safe-area-inset-left, 0px)); }
@media (max-width: 1200px) { .page { padding-top: calc(20px + var(--header-h) + 32px); } }
@media (max-width: 768px)  { .page { padding-top: calc(58px + env(safe-area-inset-top, 0px) + 20px); padding-bottom: 64px; } }
.page__in { max-width: 1160px; margin: 0 auto; }

/* ---------- Плашка-иллюстрация ---------- */
.ph { margin: 0; }.ph img { display: block; width: 100%; height: auto; }
.ph--mascot img { max-width: 100%; }

/* ---------- Верх статьи ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.crumbs span[aria-hidden] { color: var(--dim); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; }

.top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; margin-bottom: 72px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 12px; border-radius: 999px;
  background: var(--border); font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 20px; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--text); }
h1 { font-size: clamp(30px, 4.1vw, 52px); line-height: 1.1; font-weight: 800; letter-spacing: -.025em; color: var(--dark); text-wrap: balance; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.6; color: var(--text); max-width: 56ch; }
.meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--muted); }
.meta b { color: var(--text); font-weight: 600; }
.meta time { font-variant-numeric: tabular-nums; }
@media (max-width: 960px) { .top { grid-template-columns: 1fr; gap: 32px; margin-bottom: 48px; } .top .ph { order: -1; } }
@media (max-width: 768px) { .lead { font-size: 17px; } }

/* ---------- Две колонки: оглавление + текст ---------- */
.layout { display: grid; grid-template-columns: 250px minmax(0, 720px); gap: 72px; justify-content: start; align-items: start; }
@media (max-width: 1040px) { .layout { grid-template-columns: minmax(0, 720px); gap: 32px; } }

.side { position: sticky; top: 120px; display: flex; flex-direction: column; gap: 20px; }
.toc__title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.toc ol { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent;
  font-size: 14px; line-height: 20px; color: var(--muted); transition: color .18s, border-color .18s; }
.toc a:hover { color: var(--text); }
.toc a.is-active { color: var(--dark); font-weight: 700; border-left-color: var(--blue); }
.side-cta { background: var(--dark); color: var(--white); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.side-cta b { font-size: 16px; line-height: 22px; }
.side-cta p { font-size: 13px; line-height: 19px; color: #CBD5E1; }
.side-cta .btn { margin-top: 4px; }

.toc-m { display: none; }
@media (max-width: 1040px) {
  .side { display: none; }
  .toc-m { display: block; background: var(--white); border: 1px solid var(--border); border-radius: 16px; }
  .toc-m summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 14px 18px;
    font-size: 15px; font-weight: 700; color: var(--dark); cursor: pointer; }
  .toc-m summary::-webkit-details-marker { display: none; }
  .toc-m summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
  .toc-m[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
  .toc-m ol { padding: 0 18px 14px; display: flex; flex-direction: column; }
  .toc-m a { display: block; padding: 9px 0; font-size: 15px; border-top: 1px solid var(--border); color: var(--text); }
}

/* ---------- Текст статьи ---------- */
.article { min-width: 0; font-size: 18px; line-height: 1.72; color: var(--text); }
.article > * + * { margin-top: 22px; }
.article h2 { margin-top: 72px; font-size: clamp(26px, 3vw, 34px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; color: var(--dark);
  text-wrap: balance; scroll-margin-top: 120px; }
.article h2 + * { margin-top: 20px; }
.article h3 { margin-top: 44px; font-size: 22px; line-height: 1.3; font-weight: 700; color: var(--dark); text-wrap: balance; scroll-margin-top: 120px; }
.article h3 + * { margin-top: 12px; }
.article p b, .article li b { font-weight: 700; color: var(--dark); }
.article a.inline { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.article .ph { margin-top: 32px; }
.article .ph + h3, .article .ph + p { margin-top: 24px; }
.article h2 + .ph { margin-top: 24px; }
@media (max-width: 768px) {
  .article { font-size: 16.5px; line-height: 1.68; }
  .article h2 { margin-top: 56px; }
  .article h3 { font-size: 20px; margin-top: 36px; }
}

/* Список проблем */
.pains { display: grid; gap: 12px; }
.pains li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; font-size: 16.5px; line-height: 1.55; }
.pains li::before { content: ""; width: 28px; height: 28px; border-radius: 50%; background: var(--warn-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M8 4v5M8 11.5v.01' stroke='%23F59E0B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.callout { padding: 22px 24px; border-radius: 20px; background: var(--blue-bg); font-size: 17px; line-height: 1.6; color: var(--dark); }
.callout b { font-weight: 800; }
.callout--warn { background: var(--warn-bg); color: var(--warn-text); }
.callout--warn b { color: var(--warn-text); }

/* Способы учета */
.methods { display: grid; gap: 20px; margin-top: 28px; }
.method { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 4px 16px rgba(15,23,42,.04); }
.article .method h3 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.method__who { font-size: 16.5px; line-height: 1.6; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.pc h4 { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.pc .pros h4 { color: var(--green-text); }
.pc .cons h4 { color: var(--red-text); }
.pc ul { display: flex; flex-direction: column; gap: 12px; }
.pc li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.55; }
.pc li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 50%; background-position: center; background-repeat: no-repeat; background-size: 11px; }
.pros li::before { background-color: var(--green-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 6.4l2.3 2.3 4.7-5' stroke='%231F7A4C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.cons li::before { background-color: var(--red-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 6h6' stroke='%239B2C2C' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); }
.method--finnik { background: #F1F5F9; border-color: var(--border); }
.method--finnik .method__who { border-bottom-color: var(--border-hard); }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 4px 14px; line-height: 1.3; border-radius: 999px; background: var(--dark); color: var(--white); font-size: 12px; font-weight: 700; letter-spacing: .02em; }
@media (max-width: 680px) { .pc { grid-template-columns: 1fr; gap: 20px; } .method { padding: 22px 18px; border-radius: 20px; } }

/* Категории */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 8px 16px; border-radius: 999px; background: var(--white); border: 1px solid var(--border-hard); font-size: 15px; font-weight: 600; line-height: 22px; color: var(--dark); }
.chips-note { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Пример записи */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare div { padding: 16px 18px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.compare small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.compare strong { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.compare .bad { background: var(--red-bg); color: var(--red-text); }
.compare .good { background: var(--green-bg); color: var(--green-text); }
@media (max-width: 480px) { .compare { grid-template-columns: 1fr; } }

/* План недели */
.week { display: flex; flex-direction: column; margin-top: 8px; }
.week li { position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding-bottom: 28px; }
.week li:last-child { padding-bottom: 0; }
.week li::before { content: ""; position: absolute; left: 47px; top: 38px; bottom: -2px; width: 2px; background: var(--border-hard); }
.week li:last-child::before { display: none; }
.week__day { position: relative; z-index: 1; align-self: start; text-align: center; padding: 8px 0; border-radius: 12px; background: var(--dark); color: var(--white); font-size: 14px; font-weight: 700; line-height: 20px; }
.week li:last-child .week__day { background: var(--green); }
.week p { font-size: 17px; line-height: 1.6; padding-top: 6px; }
@media (max-width: 520px) { .week li { grid-template-columns: 76px 1fr; gap: 14px; } .week li::before { left: 37px; } .week p { font-size: 16px; } }

/* Финник */
.finnik-intro { padding: 26px 28px; background: var(--blue); color: #FFFFFF; border-radius: 24px; font-size: 17px; line-height: 1.65; }
.article .finnik-intro b { color: #FFFFFF; font-weight: 800; }
.feature { display: flex; flex-direction: column; }
@media (max-width: 520px) { .finnik-intro { padding: 20px; border-radius: 20px; } }

/* CTA */
.cta { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; align-items: center;
  background: var(--dark); color: var(--white); border-radius: 32px; padding: 40px; }
.article .cta h2 { margin: 0; color: var(--white); font-size: clamp(26px, 3vw, 32px); }
.cta p { margin-top: 14px; font-size: 16.5px; line-height: 1.6; color: #D6E0EC; }
.cta p b { color: var(--white); }
.cta__actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta .btn--ghost { background: transparent; color: var(--white); outline: 1px solid rgba(245,247,250,.4); outline-offset: -1px; }@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 28px 20px; border-radius: 24px; } .cta .ph { max-width: 180px; } }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--border); border-radius: 16px; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px;
  font-size: 17px; font-weight: 700; line-height: 1.4; color: var(--dark); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex-shrink: 0; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-1px); }
.faq .faq__a { padding: 0 22px 20px; font-size: 16.5px; line-height: 1.65; }
.faq .faq__a a { color: var(--blue-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .faq summary { padding: 16px 16px; font-size: 16px; } .faq .faq__a { padding: 0 16px 18px; } }

/* Читайте также */

/* ---------- Подвал (копия главной) ---------- */
.footer { background: #2D3748; padding: 60px max(var(--pad), env(safe-area-inset-right, 0px)) 60px max(var(--pad), env(safe-area-inset-left, 0px)); }
.footer__container { display: flex; flex-direction: column; align-items: center; gap: 32px; max-width: 1160px; margin: 0 auto; }
.footer__top { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.footer__logo { display: flex; align-items: center; }
.footer__contacts { display: flex; align-items: center; gap: 16px; }
.footer__contact-pill { display: inline-flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 1000px;
  outline: 1px solid #F5F7FA; outline-offset: -1px; color: #F5F7FA; font-size: 18px; font-weight: 600; line-height: 26px; white-space: nowrap; transition: background .18s; }
.footer__contact-pill:hover { background: rgba(245,247,250,.1); }
.footer__bottom { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.footer__legal { flex: 1; font-size: 12px; font-weight: 500; line-height: 16px; color: #6B7280; }
.footer__docs { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.footer__doc-link { padding: 4px; font-size: 14px; font-weight: 600; line-height: 20px; letter-spacing: .01em; color: #EAF2FF; transition: opacity .18s; }
.footer__doc-link:hover { opacity: .75; }
@media (max-width: 1200px) { .footer { padding-top: 48px; padding-bottom: 48px; } .footer__contact-pill { font-size: 15px; } }
@media (max-width: 1040px) { .footer__bottom { flex-direction: column; align-items: flex-start; } .footer__docs { justify-content: flex-start; } }
@media (max-width: 768px) {
  .footer { padding-top: 45px; padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px)); }
  .footer__top { flex-direction: column; align-items: center; gap: 32px; }
  .footer__contacts { flex-direction: column; width: 100%; gap: 12px; }
  .footer__contact-pill { width: 100%; justify-content: center; max-width: 320px; }
  .footer__bottom { flex-direction: column; align-items: center; gap: 12px; }
  .footer__docs { flex-direction: column; align-items: center; gap: 4px; }
  .footer__legal { text-align: center; flex: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
/* Талисман тёмно-синий, поэтому в тёмной карточке ему нужна светлая подложка, как у остальных картинок статьи */
.cta .ph--mascot { background: #E4EAF3; border-radius: 28px; padding: 10px; }

/* ---------- Статья 2: таблицы, цитаты, шаги, встроенная кнопка ---------- */
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; padding: 20px 24px; background: var(--blue-bg); border-radius: 20px; }
.inline-cta p { flex: 1 1 260px; font-size: 16.5px; line-height: 1.55; color: var(--dark); margin: 0; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 18px; background: var(--white); }
.tbl { width: 100%; border-collapse: collapse; font-size: 16px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl thead th { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #F8FAFC; }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; }
.tbl .in { color: var(--green-text); font-weight: 700; }
.tbl .out { color: var(--dark); font-weight: 700; }
.tbl .dash { color: var(--dim); }
.tbl-note { font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 10px; }
.cmp { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--white); }
.cmp table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.5; }
.cmp th, .cmp td { padding: 16px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.cmp tbody tr:last-child > * { border-bottom: 0; }
.cmp thead th { font-size: 13px; font-weight: 800; color: var(--dark); background: #F8FAFC; }
.cmp thead th.is-finnik { background: var(--dark); color: var(--white); }
.cmp tbody th { width: 17%; font-weight: 700; color: var(--dark); }
.cmp td.is-finnik { background: #F1F5F9; color: var(--dark); font-weight: 600; }
@media (max-width: 760px) {
  .cmp thead { display: none; }
  .cmp table, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: 100%; }
  .cmp tr { padding: 16px 0; border-bottom: 1px solid var(--border); }
  .cmp tbody tr:last-child { border-bottom: 0; }
  .cmp tbody th { width: 100%; padding: 0 18px 8px; border: 0; font-size: 16px; }
  .cmp td { padding: 6px 18px; border: 0; }
  .cmp td::before { content: attr(data-label); display: block; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
  .cmp td.is-finnik { background: #F1F5F9; margin: 6px 12px 0; width: auto; border-radius: 12px; padding: 10px 14px; }
}
.quote { margin: 0; padding: 22px 26px; border-left: 4px solid var(--blue); background: var(--white); border-radius: 0 18px 18px 0; box-shadow: 0 4px 16px rgba(15,23,42,.04); border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.quote blockquote { margin: 0; font-size: 18px; line-height: 1.6; color: var(--dark); font-weight: 600; }
.quote figcaption { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.list-dots { display: flex; flex-direction: column; gap: 10px; }
.list-dots li { position: relative; padding-left: 26px; font-size: 17px; line-height: 1.6; }
.list-dots li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.steps { counter-reset: st; display: flex; flex-direction: column; gap: 14px; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; padding: 16px 18px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; font-size: 16.5px; line-height: 1.6; }
.steps li::before { content: counter(st); width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: var(--white); font-weight: 800; font-size: 16px; display: grid; place-items: center; }
.steps li:last-child::before { background: var(--green); }
@media (max-width: 600px) {
  .tbl { font-size: 12.5px; } .tbl th, .tbl td { padding: 9px 5px; white-space: normal; } .tbl .num { white-space: nowrap; } .tbl thead th { font-size: 9px; letter-spacing: 0; }
  .tbl th:first-child, .tbl td:first-child { padding-left: 12px; } .tbl th:last-child, .tbl td:last-child { padding-right: 12px; }
}

/* ---------- Статья 3: формулы, примеры, диаграмма, схема, калькулятор ---------- */
.formula { padding: 16px 20px; background: #F1F5F9; border-left: 4px solid var(--dark); border-radius: 0 16px 16px 0; font-size: 17px; line-height: 1.55; color: var(--dark); }
.ex { padding: 18px 22px; background: var(--white); border: 1px solid var(--border); border-radius: 16px; font-size: 16.5px; line-height: 1.65; }
.ex__label { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tbl--text th, .tbl--text td { white-space: normal; vertical-align: top; }
.tbl--text td:first-child { font-weight: 700; color: var(--dark); white-space: nowrap; }
.tbl--pct th:first-child, .tbl--pct td:first-child { font-weight: 700; color: var(--dark); }
.tbl--pct .num { text-align: right; }
.fig-cap { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); }

.split { padding: 22px; background: var(--white); border: 1px solid var(--border); border-radius: 20px; }
.split__title { margin-bottom: 14px; font-size: 15px; font-weight: 700; color: var(--dark); }
.split__bar { display: flex; height: 56px; border-radius: 14px; overflow: hidden; }
.split__bar span { display: grid; place-items: center; color: var(--white); font-size: 17px; font-weight: 800; }
.split__bar .s50 { flex: 50 0 0; background: var(--dark); }
.split__bar .s30 { flex: 30 0 0; background: var(--blue); }
.split__bar .s20 { flex: 20 0 0; background: var(--green); }
.split__legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.split__legend li { display: flex; flex-direction: column; gap: 2px; padding-left: 16px; position: relative; font-size: 14px; line-height: 1.4; color: var(--muted); }
.split__legend li::before { content: ""; position: absolute; left: 0; top: .35em; width: 9px; height: 9px; border-radius: 50%; background: var(--dark); }
.split__legend li:nth-child(2)::before { background: var(--blue); }
.split__legend li:nth-child(3)::before { background: var(--green); }
.split__legend b { font-size: 18px; font-weight: 800; color: var(--dark); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .split { padding: 18px 16px; } .split__legend { grid-template-columns: 1fr; gap: 10px; } .split__bar span { font-size: 15px; } }

.flow { display: flex; gap: 24px; align-items: stretch; }
.flow li { position: relative; flex: 1 1 0; display: flex; align-items: center; justify-content: center; padding: 14px 10px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; font-size: 14.5px; line-height: 1.35; font-weight: 700; text-align: center; color: var(--dark); }
.flow li + li::before { content: "→"; position: absolute; left: -21px; top: 50%; transform: translateY(-50%); font-size: 18px; font-weight: 700; color: var(--dim); }
.flow li:last-child { background: var(--green-bg); border-color: #BFE8D2; color: var(--green-text); }
@media (max-width: 760px) {
  .flow { flex-direction: column; gap: 26px; }
  .flow li { padding: 12px 14px; }
  .flow li + li::before { content: "↓"; left: 50%; top: -24px; transform: translateX(-50%); }
}

.calc { background: var(--white); border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 4px 16px rgba(15,23,42,.05); }
.article .calc__title { margin: 0; padding: 24px 28px 0; font-size: 22px; }
.calc__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 18px 28px 0; padding: 6px; background: #F1F5F9; border-radius: 14px; }
.calc__tabs [role="tab"] { min-height: 48px; padding: 10px 14px; border-radius: 10px; font-size: 15px; line-height: 1.3; font-weight: 700; color: var(--muted); transition: background .18s, color .18s; }
.calc__tabs [role="tab"]:hover { color: var(--dark); }
.calc__tabs [aria-selected="true"] { background: var(--white); color: var(--dark); box-shadow: 0 1px 4px rgba(15,23,42,.14); }
.calc__panel { padding: 22px 28px 26px; }
.calc__panel[hidden] { display: none; }
.calc__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.calc__field label { display: block; margin-bottom: 8px; font-size: 14px; line-height: 1.35; font-weight: 700; color: var(--dark); }
.calc__input { position: relative; }
.calc__input input { width: 100%; min-height: 52px; padding: 0 58px 0 16px; border: 1.5px solid var(--border-hard); border-radius: 12px; background: var(--white); font: inherit; font-size: 17px; font-weight: 600; color: var(--dark); font-variant-numeric: tabular-nums; }
.calc__input input::placeholder { color: var(--dim); font-weight: 500; }
.calc__input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(76,154,255,.25); }
.calc__input input[aria-invalid="true"] { border-color: var(--red); background: var(--red-bg); }
.calc__unit { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 15px; font-weight: 700; color: var(--muted); pointer-events: none; }
.calc__hint { margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.calc__err { margin-top: 6px; font-size: 13.5px; line-height: 1.4; font-weight: 600; color: var(--red-text); }
.calc__err[hidden] { display: none; }
.calc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; }
.calc__reset { min-height: 48px; padding: 0 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.calc__reset:hover { color: var(--dark); }
.calc__result { margin: 0; }
.calc__result.is-on { margin-top: 22px; padding: 18px 22px; background: var(--blue-bg); border-radius: 18px; }
.calc__rows { display: block; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(30,42,56,.12); font-size: 16px; line-height: 1.4; }
.calc__row:last-child { border-bottom: 0; }
.calc__row dt { color: var(--text); }
.calc__row dd { text-align: right; font-weight: 700; color: var(--dark); font-variant-numeric: tabular-nums; }
.calc__row.is-strong dd { font-size: 22px; }
.calc__row.is-wide { flex-direction: column; align-items: flex-start; gap: 4px; }
.calc__row.is-wide dd { text-align: left; font-weight: 600; }
.calc__note { margin-top: 12px; font-size: 15px; line-height: 1.55; color: var(--dark); }
.calc__note.is-warn { padding: 12px 14px; background: var(--warn-bg); border-radius: 12px; color: var(--warn-text); font-weight: 600; }
.calc__foot { padding: 0 28px 24px; font-size: 13.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 600px) {
  .article .calc__title { padding: 20px 18px 0; font-size: 20px; }
  .calc__tabs { grid-template-columns: 1fr; margin: 16px 18px 0; }
  .calc__panel { padding: 20px 18px 22px; }
  .calc__grid { grid-template-columns: 1fr; gap: 16px; }
  .calc__actions .btn { width: 100%; }
  .calc__reset { width: 100%; text-align: center; }
  .calc__row.is-strong dd { font-size: 20px; }
  .calc__foot { padding: 0 18px 20px; }
}
@media (max-width: 600px) { .tbl--pct thead th { font-size: 11px; letter-spacing: 0; } .tbl--pct td:first-child { white-space: nowrap; } }
