/* ================================================================
   article.css — v2  · шаблон статьи Энциклопедии ПДЗ
   Цель: premium-читаемость, единая стилистика с pdz/style.css
   Токены: --red #C62829 · --dark #1A1A1A · --mid #3D3D3D
           --muted #6B7280 · --border #E8E8E4 · --bg-soft #F8F8F6
           --bg-dark #141414 · --accent-bg #FBF5F5
   ================================================================ */


/* ================================================================
   1. HERO
   ================================================================ */
.art-hero {
  background: var(--bg-dark);
  padding: 56px 0 0;
  position: relative;
  overflow: hidden;
}

/* Тонкая декоративная подсветка — не давит */
.art-hero::before {
  content: '';
  position: absolute;
  top: -140px; right: -100px;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198,40,41,.09) 0%, transparent 60%);
  pointer-events: none;
}

/* Хлебные крошки */
.art-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: rgba(255,255,255,.25);
  margin-bottom: 32px;
  flex-wrap: wrap;
  letter-spacing: .01em;
}
.art-breadcrumb a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .18s;
}
.art-breadcrumb a:hover { color: rgba(255,255,255,.85); }
.art-breadcrumb span[aria-hidden] { opacity: .25; }

/* Мета-строка: тег + время */
.art-hero__meta-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.art-hero__read-time {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}
.art-hero__read-time i { color: rgba(255,255,255,.2); }

/* H1 */
.art-hero__h1 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(24px, 3vw, 44px);
  font-weight: 700;
  color: #fff;
  line-height: 1.18;
  margin: 0 0 32px;
  max-width: 820px;
  letter-spacing: -.015em;
}

/* Byline */
.art-hero__byline {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 0 22px;
  border-top: 1px solid rgba(255,255,255,.07);
}

.art-hero__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.1);
  filter: grayscale(15%);
}

.art-hero__byline-text { display: flex; flex-direction: column; gap: 3px; }
.art-hero__author { font-size: 13.5px; font-weight: 600; color: rgba(255,255,255,.9); }
.art-hero__date   { font-size: 11.5px; color: rgba(255,255,255,.3); }

/* Красная полоска — акцент бренда */
.art-hero__rule {
  height: 3px;
  background: linear-gradient(90deg, var(--red) 0%, rgba(198,40,41,0) 72%);
}


/* ================================================================
   2. LAYOUT: двухколоночный grid
   ================================================================ */
.art-layout { padding: 64px 0 80px; }

.art-layout__inner {
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 1100px) {
  .art-layout__inner { grid-template-columns: 212px 1fr; gap: 44px; }
}
@media (max-width: 860px) {
  .art-layout__inner { grid-template-columns: 1fr; gap: 0; }
}


/* ================================================================
   3. SIDEBAR
   ================================================================ */
.art-sidebar {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (max-width: 860px) { .art-sidebar { display: none; } }

/* ── TOC ── */
.art-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.art-toc__label {
  padding: 12px 16px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.art-toc__list {
  list-style: none;
  padding: 8px 0;
  margin: 0;
  counter-reset: toc;
}
.art-toc__list li { counter-increment: toc; }

.art-toc__link {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 6px 16px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.art-toc__link::before {
  content: counter(toc);
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  color: var(--border);
  min-width: 14px;
  text-align: right;
  line-height: 1.6;
  transition: color .18s;
}
.art-toc__link:hover {
  color: var(--dark);
  background: rgba(0,0,0,.03);
}
.art-toc__link.active {
  color: var(--red);
  border-left-color: var(--red);
  background: rgba(198,40,41,.04);
  font-weight: 500;
}
.art-toc__link.active::before { color: var(--red); }

/* ── Промо-блок в сайдбаре ── */
.art-sidebar-promo {
  border-radius: var(--radius);
  background: var(--bg-dark);
  padding: 18px 16px 20px;
  position: relative;
  overflow: hidden;
}
.art-sidebar-promo::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--red);
}

.art-sidebar-promo__label {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--red);
  margin-bottom: 10px;
}

.art-sidebar-promo__text {
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
}

.art-sidebar-promo__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: 7px 14px;
  background: var(--red);
  border-radius: var(--radius-sm);
  transition: background .18s;
}
.art-sidebar-promo__btn:hover { background: var(--red-dark); }


/* ================================================================
   4. ТЕЛО СТАТЬИ — типографика
   ================================================================ */
.art-body {
  max-width: 728px;
  min-width: 0;
}

/* Лид-абзац */
.art-lead {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* Drop-cap на первом символе лида */
.art-lead::first-letter {
  float: left;
  font-size: 4.2em;
  line-height: .82;
  font-weight: 700;
  color: var(--red);
  margin-right: 6px;
  margin-top: 4px;
  font-family: 'PT Serif', Georgia, serif;
}

/* Обычные абзацы */
.art-body p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--mid);
  margin-bottom: 0;
}
/* Отступ между абзацами через смежный селектор — меньше, чем перед H2 */
.art-body p + p { margin-top: 22px; }

/* Выделение */
.art-body strong {
  color: var(--dark);
  font-weight: 700;        /* был 600 — теперь контрастнее на mid-тексте */
}

/* H2 — раздел */
.art-body h2 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(21px, 2vw, 30px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 64px 0 20px;
  /* Акцентная красная черта слева вместо серой border-top */
  padding-left: 18px;
  border-left: 3px solid var(--red);
  position: relative;
}

/* H3 — подраздел: меньший отступ над, бо́льший под */
.art-body h3 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 17.5px;
  font-weight: 700;
  color: var(--dark);
  margin: 36px 0 12px;
  letter-spacing: -.01em;
}

/* Пространство перед первым h2 — меньше, чем между остальными */
.art-body > h2:first-of-type { margin-top: 40px; }

/* Отступ между последним абзацем и следующим компонентом */
.art-body p + .art-callout,
.art-body p + .art-timeline,
.art-body p + .art-case,
.art-body p + .art-triggers,
.art-body p + .art-quote,
.art-body p + .art-docs-grid,
.art-body p + .art-mistakes,
.art-body p + .art-steps,
.art-body p + .art-actions { margin-top: 28px; }


/* ================================================================
   5. CALLOUT — плашка с иконкой (→ см. секцию 24, это старая версия удалена)
   ================================================================ */


/* ================================================================
   6. ТАЙМЛАЙН этапов долга
   Исправлено: линия совпадает с точкой, badge'и вместо голого текста
   ================================================================ */
.art-timeline {
  position: relative;
  margin: 32px 0 40px;
  display: flex;
  flex-direction: column;
}

/* Вертикальная линия — строго по центру левой колонки (128px / 2 = 64px) */
.art-timeline::before {
  content: '';
  position: absolute;
  left: 128px;
  top: 14px; bottom: 14px;
  width: 1px;
  background: var(--border);
}

.art-timeline__item {
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 0;
  padding: 14px 0;
  position: relative;
}

/* Точка на линии — совпадает с left: 128px линии */
.art-timeline__item::after {
  content: '';
  position: absolute;
  left: 122px;          /* 128 − 6px (половина 12px кружка) */
  top: 18px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--border);
  z-index: 1;
  transition: border-color .2s, background .2s;
}
.art-timeline__item:hover::after {
  border-color: var(--red);
  background: var(--red);
}

/* Маркер — badge с фоном, не голый текст */
.art-timeline__marker {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  padding-right: 20px;
  padding-top: 1px;
}

.art-timeline__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  line-height: 1.4;
}

/* Цвета badge — монохромная шкала + акцент, без радуги */
.art-timeline__marker--pre    .art-timeline__badge { background: #E8F5E9; color: #2E7D32; }
.art-timeline__marker--early  .art-timeline__badge { background: #E3F2FD; color: #1565C0; }
.art-timeline__marker--mid    .art-timeline__badge { background: #FFF3E0; color: #E65100; }
.art-timeline__marker--late   .art-timeline__badge { background: #FBE9E7; color: #BF360C; }
.art-timeline__marker--critical .art-timeline__badge { background: rgba(198,40,41,.1); color: var(--red); }
.art-timeline__marker--legal  .art-timeline__badge { background: var(--bg-soft); color: var(--muted); }

/* Критические пункты — точка красная сразу */
.art-timeline__item:has(.art-timeline__marker--critical)::after,
.art-timeline__item:has(.art-timeline__marker--legal)::after {
  border-color: var(--red);
  background: var(--red);
}

/* Контент справа */
.art-timeline__content {
  padding-left: 20px;
  border-left: none;
}

.art-timeline__content strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 5px;
  line-height: 1.35;
}

.art-timeline__content p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
  margin: 0 !important;
}

/* Разделитель между items */
.art-timeline__item + .art-timeline__item {
  border-top: 1px dashed rgba(0,0,0,.06);
}

@media (max-width: 520px) {
  .art-timeline::before { display: none; }
  .art-timeline__item { grid-template-columns: 1fr; gap: 6px; }
  .art-timeline__item::after { display: none; }
  .art-timeline__marker { justify-content: flex-start; padding-right: 0; }
  .art-timeline__content { padding-left: 0; }
}


/* ================================================================
   7. ЦИТАТА АВТОРА
   ================================================================ */
.art-quote {
  position: relative;
  border-left: 3px solid var(--red);
  padding: 28px 28px 20px 32px;
  margin: 40px 0;
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  overflow: hidden;
}

/* Большие кавычки — орнамент, не мешающий тексту */
.art-quote::before {
  content: '\201C';
  position: absolute;
  right: 20px; top: 0;
  font-size: 96px;
  font-family: 'PT Serif', Georgia, serif;
  color: var(--red);
  line-height: 1;
  opacity: .07;
  pointer-events: none;
  user-select: none;
}

.art-quote p {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--mid);
  font-style: italic;
  margin: 0 0 14px !important;
  position: relative;
  z-index: 1;
  max-width: 94%;
}

.art-quote cite {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--red);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.art-quote cite::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--red);
  flex-shrink: 0;
}


/* ================================================================
   8. КЕЙС из практики
   Отличие от body: тёмная левая полоска + другой фон
   ================================================================ */
.art-case {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 3px solid var(--dark);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 22px 24px 20px;
  margin: 32px 0;
}

.art-case__label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .11em;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.art-case__label i { color: var(--red); }

.art-case p {
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--mid);
  margin: 0;
}
.art-case p + p { margin-top: 14px; }


/* ================================================================
   9. ТАБЛИЦА ТРИГГЕРОВ
   Исправлено: выровненная сетка, читаемые ячейки
   ================================================================ */
.art-triggers {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 32px 0;
}

.art-triggers__item {
  display: grid;
  grid-template-columns: 168px 1fr;
  border-bottom: 1px solid var(--border);
}
.art-triggers__item:last-child { border-bottom: none; }

.art-triggers__who {
  background: var(--dark);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  line-height: 1.35;
}

.art-triggers__conditions {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-soft);
}

.art-triggers__conditions li {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 10px;
}

.art-triggers__day {
  display: inline-flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 2px 9px;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  line-height: 1.5;
}

@media (max-width: 520px) {
  .art-triggers__item { grid-template-columns: 1fr; }
  .art-triggers__who { padding: 10px 14px; }
}


/* ================================================================
   10. СЕТКА ДОКУМЕНТИРОВАНИЯ (→ см. секцию 23, это старая версия удалена)
   ================================================================ */


/* ================================================================
   11. ОШИБКИ
   Исправлено: видимый номер, правильный контраст фона
   ================================================================ */
.art-mistakes {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 28px 0 32px;
}

.art-mistake {
  display: grid;
  grid-template-columns: 60px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background .18s;
}
.art-mistake:last-child { border-bottom: none; }
.art-mistake:hover { background: var(--bg-soft); }

/* Номер — тёмный фон, белая цифра — всегда читаем */
.art-mistake__num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 18px 0 18px;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 20px;
  font-weight: 700;
  color: rgba(255,255,255,.25);      /* было var(--border) на var(--bg-soft) — невидимо */
  background: var(--dark);
  line-height: 1.4;
}

.art-mistake__body { padding: 16px 20px 18px; }

.art-mistake__body h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.35;
}

.art-mistake__body p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.68;
  margin: 0 !important;
}


/* ================================================================
   12. ШАГИ ВНЕДРЕНИЯ — reglament-версия с круглыми номерами
   Используется ТОЛЬКО в статье reglament (структура: .art-step__text)
   Статьи skripty/kpi используют секцию 22 (структура: .art-step__body)
   ================================================================ */
.art-steps--circles {
  display: flex;
  flex-direction: column;
  margin: 28px 0 32px;
}

.art-steps--circles .art-step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  overflow: visible;
  align-items: start;
}
.art-steps--circles .art-step:last-child { border-bottom: none; }

.art-steps--circles .art-step__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  /* сброс стилей секции 22 */
  padding: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  border-right: none;
}

.art-steps--circles .art-step__text { display: flex; flex-direction: column; gap: 5px; }

.art-steps--circles .art-step__text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--dark);
  display: block;
  line-height: 1.3;
}

.art-steps--circles .art-step__text span {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}


/* ================================================================
   13. БЛОКИ «ЧТО ДЕЛАТЬ»
   ================================================================ */
.art-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 8px;
}

.art-action {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 18px;
  background: #fff;
  transition: box-shadow .18s, border-color .18s;
}
.art-action:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border-color: rgba(198,40,41,.2);
}

.art-action__head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.art-action__head i { color: var(--red); font-size: 14px; }

.art-action p {
  font-size: 13px;
  line-height: 1.68;
  color: var(--muted);
  margin: 0 !important;
}

@media (max-width: 760px) { .art-actions { grid-template-columns: 1fr; } }


/* ================================================================
   14. ТОЧКИ КОНВЕРСИИ
   ================================================================ */
.art-conv {
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  margin: 56px 0;
  /* Заметный отступ сверху и снизу — конверсия должна "дышать" */
}

.art-conv__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  margin-bottom: 10px;
}

.art-conv__title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  line-height: 1.28;
  margin-bottom: 10px;
}

.art-conv__sub {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 22px;
}

/* Форма */
.art-conv__form { display: flex; flex-direction: column; gap: 12px; }

.art-conv__field-row { display: flex; gap: 8px; }

.art-conv__input {
  flex: 1;
  height: 46px;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  min-width: 0;
}

.art-conv__btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 22px;
  height: 46px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  border: none;
  transition: background .18s, transform .14s, box-shadow .18s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.art-conv__btn:hover { transform: translateY(-1px); }
.art-conv__btn:active { transform: translateY(0); }

.art-conv__consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 11px;
  line-height: 1.5;
  cursor: pointer;
  opacity: .7;
}
.art-conv__consent input { margin-top: 2px; flex-shrink: 0; }
.art-conv__consent a { text-decoration: underline; }

.art-conv__success {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 0;
}
.art-conv__success i { font-size: 20px; }

/* ── Вариант 1: рассылка (тёмный) ── */
.art-conv--newsletter {
  background: var(--bg-dark);
  color: #fff;
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.art-conv--newsletter .art-conv__icon {
  font-size: 32px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 6px;
}
.art-conv--newsletter .art-conv__body { flex: 1; min-width: 0; }
.art-conv--newsletter .art-conv__eyebrow { color: var(--red); }
.art-conv--newsletter .art-conv__title  { color: #fff; }
.art-conv--newsletter .art-conv__sub    { color: rgba(255,255,255,.5); }
.art-conv--newsletter .art-conv__input  {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.1);
  color: #fff;
}
.art-conv--newsletter .art-conv__input::placeholder { color: rgba(255,255,255,.3); }
.art-conv--newsletter .art-conv__input:focus {
  border-color: rgba(255,255,255,.35);
  box-shadow: 0 0 0 3px rgba(255,255,255,.08);
}
.art-conv--newsletter .art-conv__btn {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(198,40,41,.35);
}
.art-conv--newsletter .art-conv__btn:hover { background: var(--red-dark); }
.art-conv--newsletter .art-conv__consent { color: rgba(255,255,255,.4); }
.art-conv--newsletter .art-conv__consent a { color: rgba(255,255,255,.65); }
.art-conv--newsletter .art-conv__success { color: #86efac; }
.art-conv--newsletter .art-conv__success i { color: #86efac; }

/* ── Вариант 2: лид-магнит (светлый с акцентом) ── */
.art-conv--leadmagnet {
  background: var(--accent-bg);
  border: 1px solid rgba(198,40,41,.15);
  border-left: 4px solid var(--red);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.art-conv--leadmagnet .art-conv__icon {
  font-size: 32px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 6px;
}
.art-conv--leadmagnet .art-conv__body { flex: 1; min-width: 0; }
.art-conv--leadmagnet .art-conv__eyebrow { color: var(--red); }
.art-conv--leadmagnet .art-conv__title  { color: var(--dark); }
.art-conv--leadmagnet .art-conv__sub    { color: var(--muted); }
.art-conv--leadmagnet .art-conv__input {
  background: #fff;
  border-color: var(--border);
  color: var(--dark);
}
.art-conv--leadmagnet .art-conv__input::placeholder { color: var(--muted); }
.art-conv--leadmagnet .art-conv__input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(198,40,41,.1);
}
.art-conv--leadmagnet .art-conv__btn--accent {
  background: var(--red);
  color: #fff;
  box-shadow: 0 2px 12px rgba(198,40,41,.3);
}
.art-conv--leadmagnet .art-conv__btn--accent:hover { background: var(--red-dark); }
.art-conv--leadmagnet .art-conv__consent { color: var(--muted); }
.art-conv--leadmagnet .art-conv__success { color: #166534; }
.art-conv--leadmagnet .art-conv__success i { color: #16a34a; }

/* ── Лейбл над training-блоком ── */
/* Блок вне <main>, поэтому ограничиваем через CSS */
.art-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px var(--pad-x) 0;
  font-family: 'Inter', sans-serif;
}

/* ── Вариант 3: тренинг (двухколонник, вписан в поток статьи) ── */
.art-conv--training {
  background: var(--dark);   /* #1A1A1A — чуть светлее футера #141414, даёт разрыв */
  padding: 0;
  overflow: hidden;
  display: block;
  /* Ограничиваем шириной статьи и центрируем */
  max-width: var(--max-w);
  margin: 12px auto 56px;   /* 56px снизу — воздух перед футером */
  border-radius: var(--radius-lg);  /* скруглены все 4 угла */
  box-shadow: 0 4px 32px rgba(0,0,0,.18);
}

.art-conv__training-inner {
  display: grid;
  grid-template-columns: 1fr 260px;
}

.art-conv__training-text {
  padding: 36px 40px 36px 36px;
  border-right: 1px solid rgba(255,255,255,.07);
}

.art-conv--training .art-conv__eyebrow { color: var(--red); }
.art-conv--training .art-conv__title   { color: #fff; margin-bottom: 12px; }
.art-conv--training .art-conv__sub     { color: rgba(255,255,255,.45); margin-bottom: 20px; }

.art-conv__features {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.art-conv__features li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.45;
}
.art-conv__features li i {
  color: var(--red);
  font-size: 10px;
  flex-shrink: 0;
  width: 14px;
  text-align: center;
}

/* Правая колонка — CTA */
.art-conv__training-cta {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  background: rgba(255,255,255,.03);
}

.art-conv__training-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.art-conv__phone {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color .18s;
}
.art-conv__phone:hover { color: var(--red); }
.art-conv__phone i { color: var(--red); font-size: 13px; }

.art-conv__phone-sub {
  font-size: 10.5px;
  color: rgba(255,255,255,.28);
  letter-spacing: .02em;
}

.art-conv__btn--large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 48px;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: background .18s, transform .14s;
  white-space: nowrap;
  box-shadow: 0 2px 16px rgba(198,40,41,.4);
  letter-spacing: .01em;
}
.art-conv__btn--large:hover { background: var(--red-dark); transform: translateY(-1px); }

.art-conv__link-secondary {
  font-size: 11.5px;
  color: rgba(255,255,255,.25);
  text-decoration: none;
  text-align: center;
  transition: color .18s;
}
.art-conv__link-secondary:hover { color: rgba(255,255,255,.65); }

@media (max-width: 720px) {
  .art-conv__training-inner { grid-template-columns: 1fr; }
  .art-conv__training-text {
    padding: 26px 24px;
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,.07);
  }
  .art-conv__training-cta { padding: 24px; }
}

/* Адаптив иконка+тело для newsletter и leadmagnet */
@media (max-width: 580px) {
  .art-conv--newsletter,
  .art-conv--leadmagnet {
    flex-direction: column;
    padding: 24px 22px;
    gap: 14px;
  }
  .art-conv__field-row { flex-direction: column; }
  .art-conv__btn { width: 100%; justify-content: center; height: 48px; }
}


/* ================================================================
   15. ФУТЕР СТАТЬИ (теги + шеринг)
   Вынесен из art-layout на свой уровень с явным белым фоном —
   не сливается с тёмным art-conv--training выше.
   ================================================================ */

/* Обёртка — создаёт чёткую границу после тёмного блока.
   Явный фон и цвет нужны: глобальный footer { background: bg-dark }
   из style.css мог бы захватить вложенный <footer> тег — используем <div>. */
.art-footer-wrap {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  color: var(--dark);         /* сброс наследования rgba(255,255,255,.65) */
}

.art-footer {
  /* Одна строка: теги слева, шеринг справа */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  /* Не нужен border-top — он на обёртке */
}

/* При нехватке места — теги уходят на первую строку, шеринг на вторую */
@media (max-width: 540px) {
  .art-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

/* ── Теги ── */
.art-footer__tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  /* flex-shrink: 0 чтобы теги не сжимались в угоду шерингу */
}

.art-footer__tag-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Собственный компонент тега — не зависит от encyclopediya.css */
.art-footer__tag-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 100px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .18s, color .18s, background .18s;
}
.art-footer__tag-pill:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(198,40,41,.04);
}

/* ── Шеринг ── */
.art-footer__share {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.art-footer__share-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-right: 4px;
  white-space: nowrap;
}

.art-footer__share-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background .18s, color .18s, border-color .18s, transform .14s;
}
.art-footer__share-btn:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-1px);
}

/* Toast */
.art-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(14px);
  background: var(--dark);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  z-index: 9999;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,.2);
}
.art-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }


/* ================================================================
   16. ЧИТАЙТЕ ТАКЖЕ
   ================================================================ */
.art-related { padding: 60px 0 72px; }

.art-related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0 40px;
}

/* Обложки карточек — нормальные пропорции 3:2 */
.art-related__grid .enc-article__cover {
  aspect-ratio: 3 / 2;
  height: auto;
  background-size: cover;
  background-position: center;
}

.art-related__back { display: flex; justify-content: flex-start; }

@media (max-width: 760px) {
  .art-related__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .art-related__grid { grid-template-columns: 1fr; }
}


/* ================================================================
   17. ПРОГРЕСС ЧТЕНИЯ
   ================================================================ */
.art-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--red));
  z-index: 10000;
  transition: width .08s linear;
  border-radius: 0 2px 2px 0;
}


/* ================================================================
   18. УТИЛИТЫ — visual breathing room между секциями
   ================================================================ */
/* Горизонтальный разделитель внутри статьи */
.art-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* Подсказка-метка «Продолжение ниже» перед конверсией */
.art-section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
  margin-bottom: 16px;
}
.art-section-label::before,
.art-section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* ================================================================
   19. КАРТОЧКИ ТИПОВ ДОЛЖНИКОВ (хулиган / хитрюга / гад)
   ================================================================ */
.art-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0 32px;
}

.art-type-card {
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Шапка карточки */
.art-type-card__header {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 14px;
}

.art-type-card__icon {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 2px;
}

.art-type-card__title {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.art-type-card__badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: 3px 8px;
  border-radius: 100px;
  line-height: 1.4;
}

/* Список признаков */
.art-type-card__signs {
  list-style: none;
  margin: 0;
  padding: 0 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.art-type-card__signs li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mid);
}

.art-type-card__signs li i {
  flex-shrink: 0;
  margin-top: 3px;
  font-size: 11px;
}

/* Цветовые варианты */

/* Хулиган — зелёный */
.art-type-card--hooligan {
  background: #F0FDF4;
  border-color: #bbf7d0;
}
.art-type-card--hooligan .art-type-card__header {
  background: #dcfce7;
  border-bottom: 1px solid #bbf7d0;
}
.art-type-card--hooligan .art-type-card__icon { color: #16a34a; }
.art-type-card--hooligan .art-type-card__title { color: #14532d; }
.art-type-card--hooligan .art-type-card__badge {
  background: #16a34a;
  color: #fff;
}
.art-type-card--hooligan .art-type-card__signs li i { color: #16a34a; }

/* Хитрюга — жёлтый/янтарный */
.art-type-card--sly {
  background: #FFFBEB;
  border-color: #fde68a;
}
.art-type-card--sly .art-type-card__header {
  background: #fef3c7;
  border-bottom: 1px solid #fde68a;
}
.art-type-card--sly .art-type-card__icon { color: #d97706; }
.art-type-card--sly .art-type-card__title { color: #78350f; }
.art-type-card--sly .art-type-card__badge {
  background: #d97706;
  color: #fff;
}
.art-type-card--sly .art-type-card__signs li i { color: #d97706; }

/* Гад — красный */
.art-type-card--villain {
  background: #FFF5F5;
  border-color: #fecaca;
}
.art-type-card--villain .art-type-card__header {
  background: #fee2e2;
  border-bottom: 1px solid #fecaca;
}
.art-type-card--villain .art-type-card__icon { color: var(--red); }
.art-type-card--villain .art-type-card__title { color: #7f1d1d; }
.art-type-card--villain .art-type-card__badge {
  background: var(--red);
  color: #fff;
}
.art-type-card--villain .art-type-card__signs li i { color: var(--red); }

@media (max-width: 820px) {
  .art-types-grid { grid-template-columns: 1fr; }
  .art-type-card--hooligan,
  .art-type-card--sly,
  .art-type-card--villain {
    flex-direction: row;
    align-items: stretch;
  }
  .art-type-card__header {
    min-width: 140px;
    max-width: 160px;
    border-bottom: none;
    border-right: 1px solid var(--border);
    padding: 16px 14px;
  }
  .art-type-card--hooligan .art-type-card__header { border-right-color: #bbf7d0; }
  .art-type-card--sly      .art-type-card__header { border-right-color: #fde68a; }
  .art-type-card--villain  .art-type-card__header { border-right-color: #fecaca; }
  .art-type-card__signs { padding: 14px 16px; }
}


/* ================================================================
   20. СРАВНИТЕЛЬНАЯ ТАБЛИЦА ТИПОВ
   ================================================================ */
.art-compare-table-wrap {
  overflow-x: auto;
  margin: 4px 0 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  -webkit-overflow-scrolling: touch;
}

.art-compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  line-height: 1.5;
  background: #fff;
  min-width: 520px;
}

.art-compare-table thead {
  background: var(--bg-soft);
}

.art-compare-table th {
  padding: 11px 16px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  border-bottom: 2px solid var(--border);
}

/* Цветные заголовки колонок */
.art-compare-table th:nth-child(1) {
  color: var(--muted);
  width: 22%;
}

/* Имена типов в шапке */
.art-th--hooligan {
  color: #16a34a;
  font-weight: 800;
  font-size: 12px;
}
.art-th--sly {
  color: #d97706;
  font-weight: 800;
  font-size: 12px;
}
.art-th--villain {
  color: var(--red);
  font-weight: 800;
  font-size: 12px;
}

.art-compare-table td {
  padding: 11px 16px;
  color: var(--mid);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.art-compare-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  background: var(--bg-soft);
  white-space: nowrap;
  font-size: 12.5px;
}

/* Цветная подсветка колонок */
.art-compare-table td:nth-child(2) { background: #F0FDF4; }
.art-compare-table td:nth-child(3) { background: #FFFBEB; }
.art-compare-table td:nth-child(4) { background: #FFF5F5; }

.art-compare-table tbody tr:last-child td {
  border-bottom: none;
}


/* ================================================================
   21. СКРИПТ-БЛОК (диалоговые реплики)
   ================================================================ */
.art-script {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 20px 0 28px;
  overflow: hidden;
}

/* Версия без отступов — внутри .art-step */
.art-script--inline {
  margin: 12px 0 8px;
}

.art-script__label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--dark);
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.art-script__label i {
  color: var(--red);
  font-size: 13px;
}

.art-script__lines {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.art-script__line {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0;
  border-bottom: 1px solid var(--border);
}

.art-script__line:last-child {
  border-bottom: none;
}

.art-script__who {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 14px 0 14px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.5);
  background: var(--dark);
  border-right: 1px solid rgba(255,255,255,.08);
}

.art-script__line p {
  margin: 0 !important;
  padding: 14px 18px;
  font-size: 14px !important;
  line-height: 1.65 !important;
  color: var(--dark) !important;
  font-style: italic;
}


/* ================================================================
   22. ПОШАГОВЫЙ СПИСОК (денежка, бумажка, официоз...)
   ================================================================ */
.art-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 20px 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.art-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  border-bottom: 1px solid var(--border);
}

.art-step:last-child {
  border-bottom: none;
}

.art-step__num {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 0 20px;
  font-family: 'PT Serif', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: rgba(198,40,41,.18);
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  line-height: 1;
}

.art-step__body {
  padding: 18px 20px 20px;
}

.art-step__body h4 {
  font-family: 'PT Serif', Georgia, serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 8px;
}

.art-step__body p {
  font-size: 14px !important;
  line-height: 1.68 !important;
  color: var(--mid) !important;
  margin: 0 !important;
}

.art-step__body p + p {
  margin-top: 10px !important;
}


/* ================================================================
   23. СЕТКА ДОКУМЕНТОВ / «ПУГАЛОК» (art-docs-grid)
   ================================================================ */
.art-docs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0 28px;
  background: transparent;   /* сброс старого background: var(--border) */
  border: none;              /* сброс старого border */
  overflow: visible;         /* сброс старого overflow: hidden */
  border-radius: 0;          /* сброс */
}

.art-docs-item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.art-docs-item__icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(198,40,41,.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.art-docs-item h4 {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--dark);
  margin: 0;
}

.art-docs-item p {
  font-size: 12.5px !important;
  line-height: 1.6 !important;
  color: var(--muted) !important;
  margin: 0 !important;
}

@media (max-width: 700px) {
  .art-docs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .art-docs-grid { grid-template-columns: 1fr; }
}


/* ================================================================
   24. КАЛЛАУТ — базовый компонент + варианты
   ================================================================ */
.art-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  margin: 24px 0;
}

.art-callout__icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1.4;
}

.art-callout__body {
  flex: 1;
  min-width: 0;
}

.art-callout__body strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

.art-callout__body p,
.art-callout__body ol,
.art-callout__body ul {
  font-size: 14px;
  line-height: 1.68;
  margin: 0 !important;
}

.art-callout__body ol,
.art-callout__body ul {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/* Вариант: предупреждение --warn (жёлтый) */
.art-callout--warn {
  background: #FFFBEB;
  border-left: 4px solid #d97706;
}
.art-callout--warn .art-callout__icon { color: #d97706; }
.art-callout--warn strong             { color: #92400e; }
.art-callout--warn p                  { color: #374151; }

/* Вариант: --ban (запрет, красный) */
.art-callout--ban {
  background: #FFF5F5;
  border-left: 4px solid var(--red);
}
.art-callout--ban .art-callout__icon { color: var(--red); }
.art-callout--ban strong { color: #7f1d1d; }
.art-callout--ban p { color: #374151; }
