/* ============================================================================
   Статья блога — мягкий стиль сайта (v4.3)
   ----------------------------------------------------------------------------
   Последний слой поверх article-base.css / article.css / anatomy-article.bundle.
   Разметка и тексты не меняются: переопределяются токены и внешний вид блоков.
   Цель: тот же язык, что на главной и услугах — светлый фон, Onest,
   скругления 10–20 px, спокойные тени, никакой моноширинной типографики.
   ========================================================================== */

/* ─── 1. Токены страницы статьи ──────────────────────────────────────────── */

html body.article-page{
  --bg:#f7f8f4;
  --bg-primary:#f7f8f4;
  --bg-surface:#ffffff;
  --bg-elevated:#ffffff;
  --paper:#ffffff;
  --paper-body:#ffffff;
  --paper-ink:#20382f;
  --paper-line:#e2e8de;
  --paper-line-strong:#c9d5c8;
  --paper-meta:#59665e;
  --surface:#f1f5ee;
  --surface-deep:#ffffff;
  --text:#20382f;
  --muted:#59665e;
  --quiet:#6b7a6f;
  --line:#e2e8de;
  --line-strong:#c9d5c8;
  --line-control:#c9d5c8;
  --accent:#a33f29;
  --accent-hover:#b5462d;
  --accent-ink:#a33f29;
  --accent-terra:#b5462d;
  --accent-green:#285d43;
  --green:#285d43;
  --danger:#a33325;
  --r1:10px;
  --r2:16px;
  --radius-md:12px;
  --radius-lg:20px;
  --radius-sm:10px;
  --font:Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display:Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:Onest, system-ui, -apple-system, "Segoe UI", sans-serif;

  background:var(--bg)!important;
  color:var(--text)!important;
  font-family:var(--font);
}

html[data-theme-effective="dark"] html body.article-page,
html[data-color-scheme="dark"] html body.article-page{
  --bg:#171713;
  --bg-primary:#171713;
  --bg-surface:#1d211c;
  --bg-elevated:#1d211c;
  --paper:#1d211c;
  --paper-body:#1d211c;
  --paper-ink:#e9eee7;
  --paper-line:#2b3029;
  --paper-line-strong:#3a433a;
  --paper-meta:#a6b1a8;
  --surface:#23271f;
  --surface-deep:#1d211c;
  --text:#e9eee7;
  --muted:#a6b1a8;
  --quiet:#8e9a90;
  --line:#2b3029;
  --line-strong:#3a433a;
  --line-control:#3a433a;
  --accent:#d27655;
  --accent-hover:#dc8566;
  --accent-ink:#e3a08a;
  --accent-green:#7fb79a;
  --green:#7fb79a;
  --danger:#d98a72;
}

/* Шрифт один на всю статью */
html body.article-page :is(h1,h2,h3,h4,p,li,span,b,strong,em,td,th,summary,label,figcaption,time,button,a,input){
  font-family:Onest, system-ui, -apple-system, "Segoe UI", sans-serif;
  hyphens:none!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
html body.article-page code,html body.article-page pre{font-family:ui-monospace,Consolas,monospace!important}

/* ─── 2. Шапка статьи ────────────────────────────────────────────────────── */

html body.article-page .article-header{
  padding-block:clamp(28px,3.6vw,44px) clamp(20px,2.6vw,32px);
  background:transparent!important;
  border-bottom:1px solid var(--line);
}
html body.article-page .article-header .container--narrow{max-width:1180px}

html body.article-page .article-meta{
  display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;
  color:var(--muted);font-size:12.5px;line-height:1.4;
}
html body.article-page .article-back{
  display:inline-flex;align-items:center;gap:6px;
  min-height:32px;padding:5px 12px;border:1px solid var(--line-strong);
  border-radius:999px;background:var(--bg-surface);
  color:var(--text)!important;font-size:12.5px;font-weight:550;text-decoration:none;
}
html body.article-page .article-back:hover{border-color:var(--accent);color:var(--accent)!important}
html body.article-page .article-date,
html body.article-page .article-reading{color:var(--muted);font-size:12.5px}
html body.article-page .article-stats{display:inline-flex;align-items:center;gap:10px;margin-left:auto}
html body.article-page .article-stats__views,
html body.article-page .article-stats__like-btn{
  display:inline-flex;align-items:center;gap:6px;
  /* сбрасываем 44px min-height/min-width из article-base.css: они выше пилюли
     просмотров и рвут ряд. Зону нажатия возвращаем псевдоэлементом ниже */
  min-height:0;min-width:0;line-height:1.4;
  padding:4px 10px;border:1px solid var(--line);border-radius:999px;
  background:var(--bg-surface);color:var(--muted);font-size:12px;
}
html body.article-page .article-stats__like-btn{position:relative;cursor:pointer}
html body.article-page .article-stats__like-btn::after{content:"";position:absolute;inset:-10px -6px}
html body.article-page .article-stats__like-btn:hover{border-color:var(--accent);color:var(--accent)}

html body.article-page .article-title{
  max-width:24ch;margin:clamp(16px,2vw,24px) 0 0;
  font-size:clamp(32px,4.2vw,56px)!important;line-height:1.06!important;
  letter-spacing:-.045em!important;font-weight:550!important;
  color:var(--text)!important;
}
html body.article-page .article-subtitle{
  max-width:none;margin:18px 0 0;
  color:var(--muted)!important;font-size:clamp(17px,1.5vw,20px)!important;line-height:1.55!important;
}

html body.article-page .article-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:20px}
html body.article-page .article-tags a,
html body.article-page .article-tag{
  display:inline-flex;align-items:center;min-height:30px;padding:4px 12px;
  border:1px solid var(--line);border-radius:999px;background:var(--bg-surface);
  color:var(--muted)!important;font-size:12.5px;text-decoration:none;
}
html body.article-page .article-tags a:hover{border-color:var(--accent);color:var(--accent)!important}

/* ─── 3. Оглавление и аудио ──────────────────────────────────────────────── */

html body.article-page .article-toc{
  margin:clamp(22px,2.6vw,30px) 0;padding:clamp(18px,2.2vw,24px);
  border:1px solid var(--line);border-radius:var(--r2);background:var(--bg-surface);
  box-shadow:0 1px 2px rgba(32,56,47,.05);
  font-size:15px;
}
html body.article-page .article-toc__title,
html body.article-page .article-toc h2,
html body.article-page .article-toc > b{
  display:block;margin:0 0 12px;color:var(--accent-ink)!important;
  font-size:11px!important;font-weight:600;letter-spacing:.16em;text-transform:uppercase;
}
html body.article-page .article-toc a{
  display:inline-block;padding:4px 0;color:var(--text)!important;font-size:14.5px;
  text-decoration:none;border-bottom:1px solid transparent;
}
html body.article-page .article-toc a:hover{color:var(--accent)!important;border-bottom-color:var(--accent)}
html body.article-page .article-toc ol,html body.article-page .article-toc ul{margin:0;padding-left:18px}
html body.article-page .article-toc li{margin:2px 0}
/* подпись «12 разделов» в оглавлении осталась на SKMono из article-base.css */
html body.article-page .article-toc__meta{font-family:var(--font)!important;font-size:12px!important}

html body.article-page .article-audio,
html body.article-page .audio-player,
html body.article-page [class*="audio-"]{
  border-radius:var(--r2);
}
html body.article-page .article-audio{background:var(--surface)!important;border:1px solid var(--line)}
html body.article-page .audio-player button,
html body.article-page .article-audio button{
  border-radius:10px!important;border:1px solid var(--line-strong)!important;
  background:var(--bg-surface)!important;color:var(--text)!important;
}
html body.article-page .audio-player button:hover{background:var(--surface)!important}

/* ─── 4. Текст статьи ────────────────────────────────────────────────────── */

html body.article-page .article-body{
  max-width:none;margin-inline:auto;
  color:var(--text)!important;font-size:18px;line-height:1.78;
}
html body.article-page .article-body p{
  margin:0 0 20px;color:var(--muted)!important;font-size:18px;line-height:1.78;
}
html body.article-page .article-body p.article-lead,
html body.article-page .article-body .article-lead{
  color:var(--text)!important;font-size:clamp(19px,1.6vw,21px);line-height:1.65;
}
html body.article-page .article-body h2{
  margin:clamp(36px,4vw,48px) 0 14px;
  font-size:clamp(26px,2.7vw,34px)!important;line-height:1.2!important;
  letter-spacing:-.03em!important;font-weight:600!important;color:var(--text)!important;
}
html body.article-page .article-body h3{
  margin:clamp(24px,2.6vw,32px) 0 10px;
  font-size:clamp(19px,1.8vw,23px)!important;line-height:1.3!important;
  letter-spacing:-.02em!important;font-weight:600!important;color:var(--text)!important;
}
html body.article-page .article-body h4{
  margin:20px 0 8px;font-size:17px!important;font-weight:600!important;color:var(--text)!important;
}
html body.article-page .article-body ul,
html body.article-page .article-body ol{margin:0 0 20px;padding-left:22px}
html body.article-page .article-body li{margin:0 0 8px;color:var(--muted)!important;font-size:18px;line-height:1.72}
html body.article-page .article-body li::marker{color:var(--accent)}
html body.article-page .article-body a{
  color:var(--text)!important;text-decoration:underline;
  text-decoration-color:color-mix(in srgb,var(--accent) 55%,transparent);text-underline-offset:3px;
}
html body.article-page .article-body a:hover{text-decoration-color:var(--accent)}
html body.article-page .article-body strong,
html body.article-page .article-body b{color:var(--text)!important;font-weight:600}
html body.article-page .article-body em{color:var(--text)!important}

html body.article-page .article-body blockquote{
  margin:26px 0;padding:18px 20px 18px 22px;
  border:1px solid var(--line);border-left:3px solid var(--accent)!important;
  border-radius:0 var(--r2) var(--r2) 0;background:var(--surface)!important;
  color:var(--text)!important;font-size:18px;line-height:1.68;
}
html body.article-page .article-body blockquote p{margin:0;color:var(--text)!important}

html body.article-page .article-body hr{margin:32px 0;border:0;border-top:1px solid var(--line)}

html body.article-page .article-body code{
  padding:2px 6px;border-radius:6px;background:var(--surface)!important;
  color:var(--text);font-size:.92em;
}
html body.article-page .article-body pre{
  margin:22px 0;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r2);
  background:#1d211c;color:#e9eee7;overflow:auto;font-size:14px;line-height:1.6;
}
html body.article-page .article-body pre code{background:none!important;color:inherit;padding:0}

html body.article-page .article-body figure{margin:26px 0}
html body.article-page .article-body img,
html body.article-page .article-body picture img,
html body.article-page .article-body video{
  max-width:100%;height:auto;border-radius:var(--r2);
  border:1px solid var(--line);
}
html body.article-page .article-body figcaption{
  margin-top:10px;color:var(--quiet)!important;font-size:13px;line-height:1.5;
}

/* ─── 5. Таблицы и компоненты статьи ─────────────────────────────────────── */

html body.article-page .article-table-wrap{
  margin:26px 0;border:1px solid var(--line);border-radius:var(--r2);
  background:var(--bg-surface);overflow:auto;box-shadow:0 1px 2px rgba(32,56,47,.05);
}
html body.article-page .article-table{
  width:100%;border-collapse:separate;border-spacing:0;
  font-size:14.5px;line-height:1.5;background:transparent!important;
}
html body.article-page .article-table th{
  padding:12px 16px;border-bottom:1px solid var(--line);
  background:var(--surface)!important;color:var(--muted)!important;
  font-size:12px;font-weight:600;text-align:left;white-space:nowrap;
}
html body.article-page .article-table td{
  padding:11px 16px;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);
  color:var(--muted)!important;font-size:14.5px;
}
html body.article-page .article-table tr:last-child td{border-bottom:0}
html body.article-page .article-table td:first-child{color:var(--text)!important;font-weight:550}
html body.article-page .article-table strong{color:var(--text)!important}

html body.article-page :is(.score-grid,.article-breakdown,.lever-card,.step-block,.linkcard,
  .story-graphic,.audit-flow,.bar-row,.priority,.faq-item,.callout,.article-note){
  font-family:var(--font);
}

html body.article-page .score-card{
  padding:18px;border:1px solid var(--line);border-radius:var(--r2);
  background:var(--bg-surface)!important;box-shadow:0 1px 2px rgba(32,56,47,.05);
}
html body.article-page .score-card__value{
  color:var(--text)!important;font-size:30px;line-height:1.1;font-weight:600;letter-spacing:-.03em;
}
html body.article-page .score-card__label,
html body.article-page .score-card__note{color:var(--muted)!important;font-size:12.5px;line-height:1.45}

html body.article-page .article-breakdown{
  margin:28px 0;padding:22px;border:1px solid var(--line);border-radius:var(--r2);
  background:var(--bg-surface)!important;box-shadow:0 1px 2px rgba(32,56,47,.05);
}
html body.article-page .article-breakdown__grid{display:grid;gap:10px}
html body.article-page .article-breakdown__item{
  display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 16px;align-items:baseline;
  padding:10px 0;border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent);
}
html body.article-page .article-breakdown__item:last-child{border-bottom:0;padding-bottom:0}
html body.article-page .article-breakdown__label{color:var(--text)!important;font-size:15px}
html body.article-page .article-breakdown__value{color:var(--accent-ink)!important;font-size:15px;font-weight:600}

html body.article-page .lever-card,
html body.article-page .step-block,
html body.article-page .linkcard{
  padding:18px;border:1px solid var(--line)!important;border-radius:var(--r2);
  background:var(--bg-surface)!important;box-shadow:0 1px 2px rgba(32,56,47,.05);
}
html body.article-page .lever-card__num,
html body.article-page .step-block__num,
html body.article-page .story-graphic__index{
  display:inline-flex;align-items:center;justify-content:center;
  min-width:26px;height:26px;padding:0 8px;border-radius:999px;
  background:var(--surface)!important;color:var(--accent-ink)!important;
  font-size:12px;font-weight:600;
}
html body.article-page .priority{
  display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;
  background:var(--surface)!important;color:var(--muted)!important;font-size:12px;
}
html body.article-page .priority--critical{color:var(--danger)!important;background:color-mix(in srgb,var(--danger) 12%,transparent)!important}

html body.article-page .bar-row{margin:10px 0}
html body.article-page .bar-row__label{color:var(--muted)!important;font-size:13.5px}
html body.article-page .bar-row__value{color:var(--text)!important;font-size:13.5px;font-weight:600}
html body.article-page .bar-row__track{height:7px;border-radius:999px;background:color-mix(in srgb,var(--text) 10%,transparent)!important}
html body.article-page .bar-row__fill{border-radius:999px;background:var(--green)!important}
html body.article-page .bar-row__fill--terra{background:var(--accent)!important}

html body.article-page .faq-item{
  margin:8px 0;border:1px solid var(--line)!important;border-radius:var(--r2);
  background:var(--bg-surface)!important;overflow:hidden;
}
html body.article-page .faq-item__header{
  display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;
  padding:14px 18px;cursor:pointer;
}
html body.article-page .faq-item__num{color:var(--accent-ink)!important;font-size:12px;font-weight:600}
html body.article-page .faq-item__body{padding:0 18px 16px 48px}
html body.article-page .faq-item__answer{color:var(--muted)!important;font-size:15px;line-height:1.7}

html body.article-page .story-graphic,
html body.article-page .audit-flow{
  display:grid;gap:12px;margin:26px 0;
}
html body.article-page .story-graphic__node,
html body.article-page .audit-flow__node{
  padding:14px 16px;border:1px solid var(--line);border-radius:var(--r2);
  background:var(--bg-surface)!important;
}
html body.article-page .story-graphic__copy,
html body.article-page .audit-flow__label{color:var(--muted)!important;font-size:14px;line-height:1.6}

/* ─── 6. Похожие материалы и финальный CTA ───────────────────────────────── */

html body.article-page .related{margin:0}
html body.article-page .related h2,
html body.article-page .section > h2{
  font-size:clamp(24px,2.6vw,32px)!important;letter-spacing:-.03em;font-weight:600;color:var(--text)!important;
}
html body.article-page .related a{
  display:block;padding:16px 18px;border:1px solid var(--line);border-radius:var(--r2);
  background:var(--bg-surface)!important;color:var(--text)!important;text-decoration:none;
  box-shadow:0 1px 2px rgba(32,56,47,.05);
}
html body.article-page .related a:hover{border-color:var(--accent)}
html body.article-page .related p{color:var(--muted)!important;font-size:14px}

html body.article-page .cta-section{
  margin:clamp(28px,3.4vw,44px) auto;padding:clamp(24px,3vw,36px);
  border:1px solid var(--line)!important;border-radius:var(--radius-lg)!important;
  background:color-mix(in srgb,#eaf0e8 88%,var(--bg-surface))!important;
}
html body.article-page .cta-section__title{
  max-width:20ch;color:var(--text)!important;font-size:clamp(24px,2.6vw,32px)!important;
  line-height:1.18;letter-spacing:-.03em;font-weight:600;
}
html body.article-page .cta-section__text{max-width:none;color:var(--muted)!important;font-size:16px;line-height:1.6}

html body.article-page .button,
html body.article-page .btn{
  min-height:44px;padding:10px 20px;border-radius:10px!important;
  border:1px solid var(--green)!important;background:var(--green)!important;color:#fff!important;
  font-size:14.5px;font-weight:600;
}
html body.article-page .button:hover,
html body.article-page .btn:hover{background:var(--accent-green)!important;border-color:var(--accent-green)!important}
html body.article-page .button--ghost,
html body.article-page .btn--ghost{
  background:transparent!important;border:1px solid var(--line-strong)!important;color:var(--text)!important;
}

/* ─── 7. Мобильная версия ────────────────────────────────────────────────── */

@media (max-width:48rem){
  html body.article-page .article-header{padding-block:20px 16px}
  html body.article-page .article-title{font-size:clamp(27px,7.4vw,32px)!important;line-height:1.12!important;max-width:none}
  html body.article-page .article-subtitle{margin-top:12px;font-size:16.5px!important;line-height:1.55!important}
  html body.article-page .article-meta{gap:6px 10px;font-size:11.5px}
  html body.article-page .article-date:last-of-type{display:none}
  html body.article-page .article-stats{margin-left:0}
  html body.article-page .article-toc{margin:18px 0;padding:16px;border-radius:var(--radius-md)}
  html body.article-page .article-toc a{font-size:14px}

  html body.article-page .article-body{font-size:16.5px;line-height:1.72;max-width:none}
  html body.article-page .article-body p{font-size:16.5px;line-height:1.72;margin-bottom:16px}
  html body.article-page .article-body h2{font-size:22px!important;margin-top:28px}
  html body.article-page .article-body h3{font-size:18.5px!important;margin-top:22px}
  html body.article-page .article-body li{font-size:16.5px;line-height:1.68}
  html body.article-page .article-body blockquote{font-size:16px;padding:14px 16px}
  html body.article-page .article-table{font-size:13px}
  html body.article-page .article-table th{padding:10px 12px;font-size:11px}
  html body.article-page .article-table td{padding:9px 12px;font-size:13px}
  html body.article-page .article-table-wrap{border-radius:var(--radius-md)}
  html body.article-page .article-breakdown{padding:16px}
  html body.article-page .article-breakdown__item{padding:8px 0}
  html body.article-page .score-card,
  html body.article-page .lever-card,
  html body.article-page .step-block,
  html body.article-page .linkcard{padding:14px}
  html body.article-page .faq-item__header{padding:12px 14px}
  html body.article-page .faq-item__body{padding:0 14px 14px 40px}
  html body.article-page .cta-section{padding:18px;margin:20px 12px}
  html body.article-page .cta-section__text{font-size:14.5px}
}

@media print{
  html body.article-page{--bg:#fff;--bg-surface:#fff;--surface:#f5f5f1}
  html body.article-page .article-header,
  html body.article-page .article-body,
  html body.article-page .cta-section{max-width:none!important}
  html body.article-page .article-toc{display:none!important}
}

/* ─── 8. Жёсткая фиксация мягких карточек (перебиваем тему статьи) ──────── */

html body.article-page :is(.article-toc,.article-breakdown,.score-card,.score-grid>div,
  .step-block,.lever-card,.linkcard,.faq-item,.callout,.article-note,
  .story-graphic__node,.audit-flow__node,.kpi,.phase){
  border-radius:16px!important;
  border:1px solid var(--line)!important;
  background:var(--bg-surface)!important;
  box-shadow:0 1px 2px rgba(32,56,47,.05)!important;
}
html body.article-page .article-toc{padding:20px 22px!important}
html body.article-page .article-table-wrap{
  border:1px solid var(--line)!important;border-radius:16px!important;
  background:var(--bg-surface)!important;overflow:auto!important;
  box-shadow:0 1px 2px rgba(32,56,47,.05)!important;
}
html body.article-page .article-table{background:transparent!important}
html body.article-page .article-body blockquote{
  border-radius:0 16px 16px 0!important;border-left:3px solid var(--accent)!important;
  background:var(--surface)!important;
}
html body.article-page .article-body pre{border-radius:16px!important}
html body.article-page .article-body img,
html body.article-page .article-body picture img,
html body.article-page .article-body video,
html body.article-page .article-body figure{border-radius:16px!important}

/* Варианты состояния в тёмной теме */
html[data-theme-effective="dark"] body.article-page :is(.article-toc,.article-breakdown,.score-card,
  .step-block,.lever-card,.linkcard,.faq-item,.story-graphic__node,.audit-flow__node){
  background:var(--bg-surface)!important;border-color:var(--line)!important;
}

/* ─── 9. Правки по статье: ширина контента, таблицы, типографика ─────────── */

/* Контент больше не зажат в 612px: колонка оглавления 240px + остальное контенту */
html body.article-page .article-body{
  max-width:none!important;
  display:grid!important;
  grid-template-columns:240px minmax(0,1fr)!important;
  column-gap:clamp(24px,3vw,44px)!important;
  width:min(1180px,calc(100% - 2*clamp(20px,4vw,64px)))!important;
  max-width:1180px!important;
  margin-inline:auto!important;
}
html body.article-page .article-body > *{min-width:0}

/* Без искусственных ограничений ширины у текста */
html body.article-page .article-body > p,
html body.article-page .article-body > ul,
html body.article-page .article-body > ol,
html body.article-page .article-body > blockquote,
html body.article-page .article-body > figure,
html body.article-page .article-body > div,
html body.article-page .article-body > section{margin-inline:0;max-width:none!important}

/* Читательский текст — только прямые потомки, чтобы не ломать карточки */
html body.article-page .article-body > p{
  margin:0 0 20px;color:var(--muted)!important;
  font-size:clamp(17px,1.3vw,18.5px);line-height:1.78;
}
html body.article-page .article-body > p.article-lead,
html body.article-page .article-body > .article-lead{
  color:var(--text)!important;font-size:clamp(19px,1.7vw,22px);line-height:1.62;
}
html body.article-page .article-body > ul,
html body.article-page .article-body > ol{margin:0 0 20px;padding-left:22px}
html body.article-page .article-body > ul > li,
html body.article-page .article-body > ol > li{
  margin:0 0 8px;color:var(--muted)!important;
  font-size:clamp(17px,1.3vw,18.5px);line-height:1.72;
}
html body.article-page .article-body > h2{
  margin:clamp(36px,3.6vw,48px) 0 14px;
  font-size:clamp(26px,2.6vw,34px)!important;line-height:1.2!important;
  letter-spacing:-.03em!important;font-weight:600!important;color:var(--text)!important;
}
html body.article-page .article-body > h3{
  margin:clamp(24px,2.4vw,32px) 0 10px;
  font-size:clamp(20px,1.8vw,23px)!important;line-height:1.3!important;
  letter-spacing:-.02em!important;font-weight:600!important;color:var(--text)!important;
}
/* Убираем случайный гигантский h3, если он есть в разметке */
html body.article-page .article-body > h3{font-size:clamp(20px,1.8vw,23px)!important}

/* Таблицы: ровно по колонке контента, без выездов */
html body.article-page .article-table-wrap{
  width:100%!important;max-width:100%!important;
  margin:26px 0!important;
  border:1px solid var(--line)!important;border-radius:16px!important;
  background:var(--bg-surface)!important;
  overflow-x:auto!important;overflow-y:visible!important;
  box-shadow:0 1px 2px rgba(32,56,47,.05)!important;
  -webkit-overflow-scrolling:touch;
}
html body.article-page .article-table{
  width:100%!important;min-width:0!important;max-width:100%!important;
  table-layout:auto!important;border-collapse:separate!important;border-spacing:0!important;
  background:transparent!important;
}
html body.article-page .article-table th{
  padding:11px 14px!important;border-bottom:1px solid var(--line)!important;
  background:var(--surface)!important;color:var(--muted)!important;
  font-size:12px!important;font-weight:600!important;text-align:left!important;
  white-space:normal!important;min-width:0!important;
}
html body.article-page .article-table td{
  padding:10px 14px!important;
  border-bottom:1px solid color-mix(in srgb,var(--line) 70%,transparent)!important;
  color:var(--muted)!important;font-size:14.5px!important;line-height:1.5!important;
  min-width:0!important;max-width:none!important;
  overflow-wrap:anywhere!important;word-break:break-word!important;
  white-space:normal!important;
}
html body.article-page .article-table tr:last-child td{border-bottom:0!important}
html body.article-page .article-table td:first-child{color:var(--text)!important;font-weight:550}

/* Мобильная версия статьи */
@media (max-width:60rem){
  html body.article-page .article-body{
    grid-template-columns:minmax(0,1fr)!important;
    width:calc(100% - 32px)!important;
    row-gap:18px!important;
  }
  html body.article-page .article-body > p,
  html body.article-page .article-body > ul > li,
  html body.article-page .article-body > ol > li{font-size:16.5px;line-height:1.72}
  html body.article-page .article-body > h2{font-size:22px!important;margin-top:26px}
  html body.article-page .article-body > h3{font-size:18.5px!important;margin-top:20px}

  /* Таблицы на мобиле — горизонтальная прокрутка с липкой первой колонкой */
  html body.article-page .article-table-wrap{
    overflow-x:auto!important;overflow-y:visible!important;
    border:1px solid var(--line)!important;border-radius:12px!important;
    background:var(--bg-surface)!important;
    box-shadow:0 1px 2px rgba(32,56,47,.05)!important;
    -webkit-overflow-scrolling:touch;
  }
  html body.article-page .article-table{display:table!important;width:max-content!important;min-width:100%!important;font-size:13px!important}
  html body.article-page .article-table thead{display:table-header-group!important}
  html body.article-page .article-table tbody{display:table-row-group!important}
  html body.article-page .article-table tr{display:table-row!important;border:0!important;padding:0!important;background:none!important}
  html body.article-page .article-table th,
  html body.article-page .article-table td{display:table-cell!important;vertical-align:top!important}
  html body.article-page .article-table th{padding:9px 12px!important;font-size:11px!important;white-space:nowrap!important}
  html body.article-page .article-table td{padding:9px 12px!important;font-size:13px!important;min-width:120px!important}
  html body.article-page .article-table th:first-child,
  html body.article-page .article-table td:first-child{
    position:sticky!important;left:0!important;z-index:2!important;
    background:var(--bg-surface)!important;box-shadow:1px 0 0 var(--line);
    min-width:140px!important;
  }
  html body.article-page .article-table thead th:first-child{background:var(--surface)!important}
}

/* ─── 10. Тёмная тема: финальный CTA статьи и служебная графика ───────────── */

/* Финальный CTA: в светлой теме — мягкая светло-зелёная плашка. На тёмной
   странице фолбэк color-mix(#eaf0e8 88%) оставался светлым, и весь блок
   (заголовок 1.2:1, абзац 1.81:1, ссылки 1.94:1) читался только теоретически.
   В тёмной теме плашка — приподнятая поверхность с тем же зелёным подтоном. */
html[data-theme-effective="dark"] body.article-page .cta-section,
html[data-color-scheme="dark"] body.article-page .cta-section{
  background:color-mix(in srgb,#7fb79a 8%,var(--bg-surface))!important;
  border-color:var(--line-strong)!important;
}
html[data-theme-effective="dark"] body.article-page .cta-section__title,
html[data-color-scheme="dark"] body.article-page .cta-section__title{color:var(--text)!important}
html[data-theme-effective="dark"] body.article-page .cta-section__text,
html[data-color-scheme="dark"] body.article-page .cta-section__text{color:var(--muted)!important}
html[data-theme-effective="dark"] body.article-page .cta-section p,
html[data-color-scheme="dark"] body.article-page .cta-section p{color:var(--muted)!important}
html[data-theme-effective="dark"] body.article-page .cta-section p a,
html[data-color-scheme="dark"] body.article-page .cta-section p a{color:#9BC3A9!important}
html[data-theme-effective="dark"] body.article-page .cta-section :is(.button,.btn),
html[data-color-scheme="dark"] body.article-page .cta-section :is(.button,.btn){color:#171713!important}

/* Схемы статьи «Яндекс Вебмастер»: подписи на акцентной плашке и «нет данных»
   в матрице источников. В светлой теме тёмный текст на акценте и тёмные
   прочерки работали; на тёмной странице прочерки уходили в 1.81:1. */
html[data-theme-effective="dark"] body.article-page .vm-span__data,
html[data-color-scheme="dark"] body.article-page .vm-span__data{color:#171713!important}
html[data-theme-effective="dark"] body.article-page .vm-span__data :is(b,small),
html[data-color-scheme="dark"] body.article-page .vm-span__data :is(b,small){
  color:#171713!important;opacity:1!important;
}
html[data-theme-effective="dark"] body.article-page .vm-mx__no,
html[data-color-scheme="dark"] body.article-page .vm-mx__no{color:var(--muted)!important}

/* ─── 11. Таблица-карточки на мобиле ─────────────────────────────────────────
   В статье «Яндекс Вебмастер» таблица из трёх столбцов на телефоне уезжала
   в горизонтальную прокрутку: полтрети данных за краем, подписи столбцов
   терялись, code рвался посреди слова («indexing/histor y»). На узких экранах
   строки становятся карточками: подпись столбца — слева, значение — справа.
   Класс article-table--cards ставится в разметке статьи, чтобы не менять
   поведение остальных таблиц. */
@media (max-width:640px){
  html body.article-page .article-table-wrap:has(> .article-table--cards){
    overflow:visible!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
  }
  html body.article-page .article-table--cards{
    display:block!important;
    width:100%!important;
    min-width:0!important;
    background:transparent!important;
    font-size:13.5px!important;
  }
  html body.article-page .article-table--cards thead{
    position:absolute!important;
    width:1px;height:1px;
    overflow:hidden!important;
    clip-path:inset(50%);
    white-space:nowrap!important;
  }
  html body.article-page .article-table--cards tbody{
    display:grid!important;
    gap:10px;
  }
  html body.article-page .article-table--cards tr{
    display:block!important;
    padding:6px 14px!important;
    border:1px solid var(--line)!important;
    border-radius:14px!important;
    background:var(--bg-surface, #fff)!important;
    box-shadow:0 1px 2px rgba(32,56,47,.04)!important;
  }
  html body.article-page .article-table--cards td,
  html body.article-page .article-table--cards td:first-child{
    position:static!important;
    display:grid!important;
    grid-template-columns:minmax(96px,36%) minmax(0,1fr);
    gap:12px;
    align-items:baseline;
    min-width:0!important;
    padding:9px 0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    font-size:13.5px!important;
    line-height:1.5!important;
    white-space:normal!important;
  }
  html body.article-page .article-table--cards td + td{
    border-top:1px dashed var(--line)!important;
  }
  html body.article-page .article-table--cards td::before{
    content:attr(data-label);
    color:var(--muted);
    font-size:11px;
    font-weight:600;
    letter-spacing:.05em;
    text-transform:uppercase;
    line-height:1.55;
  }
  html body.article-page .article-table--cards td:first-child{
    font-weight:600;
    font-size:14.5px!important;
  }
  html body.article-page .article-table--cards td code{
    font-size:12.5px!important;
    white-space:normal;
    overflow-wrap:anywhere;
    word-break:break-word;
  }
}
