/* ────────────────────────────────────────────────────────────────────────
   LONGREAD design system — fishchuk.pro article enrichment
   Не заменяет style.css, дополняет: charts, timeline, pull-quotes, stat-cards
   ──────────────────────────────────────────────────────────────────────── */

/* ── Hero TL;DR block ─────────────────────────────────────────────────── */
.lr-tldr {
  position: relative;
  padding: 32px 36px;
  margin: 0 0 48px;
  background: linear-gradient(135deg, var(--gold-d) 0%, transparent 100%);
  border-left: 4px solid var(--gold);
  border-radius: 4px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}
.lr-tldr::before {
  content: "КРАТКО";
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 4px 12px;
  background: var(--void);
  font-family: var(--font-nav);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold);
}
.lr-tldr p { margin: 0; }
.lr-tldr strong { color: var(--gold-b); }

/* ── Stat cards (большие числа в строку) ──────────────────────────────── */
.lr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 48px 0;
}
.lr-stat {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 4px;
  text-align: center;
  transition: border-color .25s, transform .25s;
}
.lr-stat:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}
.lr-stat-num {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.lr-stat-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.lr-stat-source {
  display: block;
  margin-top: 8px;
  font-size: 0.7rem;
  color: var(--text-d);
}

/* ── Pull-quote (стилизованная цитата эксперта) ───────────────────────── */
.lr-quote {
  position: relative;
  margin: 48px 0;
  padding: 32px 40px;
  background: var(--surface);
  border-radius: 4px;
  border-left: 3px solid var(--mint);
}
.lr-quote::before {
  content: "“";
  position: absolute;
  top: -8px;
  left: 12px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--gold);
  line-height: 1;
}
.lr-quote-text {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0 0 16px;
  font-style: italic;
}
.lr-quote-author {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--text-m);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lr-quote-author strong {
  color: var(--gold-b);
  font-weight: 500;
}

/* ── Chart container (Chart.js) ───────────────────────────────────────── */
.lr-chart-block {
  margin: 48px 0;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 4px;
}
.lr-chart-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 0 20px;
}
.lr-chart-canvas {
  position: relative;
  height: 320px;
  width: 100%;
}
.lr-chart-source {
  margin-top: 16px;
  font-size: 0.78rem;
  color: var(--text-d);
}
.lr-chart-source a { color: var(--mint); }

/* ── Timeline (вертикальный для mobile, горизонтальный для desktop) ───── */
.lr-timeline {
  position: relative;
  margin: 56px 0;
  padding-left: 32px;
}
.lr-timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold) 0%, var(--mint) 100%);
}
.lr-tl-item {
  position: relative;
  padding: 16px 0 16px 24px;
  margin-bottom: 12px;
}
.lr-tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 22px;
  width: 12px;
  height: 12px;
  background: var(--gold);
  border-radius: 50%;
  border: 3px solid var(--void);
  box-shadow: 0 0 0 1px var(--gold);
}
.lr-tl-year {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: 6px;
  background: var(--gold-d);
  font-family: var(--font-nav);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-radius: 2px;
}
.lr-tl-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 4px;
  font-weight: 500;
}
.lr-tl-desc {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-m);
  margin: 0;
}

/* ── Comparison table (responsive) ────────────────────────────────────── */
.lr-table {
  width: 100%;
  border-collapse: collapse;
  margin: 32px 0;
  font-size: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 4px;
  overflow: hidden;
}
.lr-table th {
  text-align: left;
  padding: 14px 16px;
  font-family: var(--font-ui);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--mint);
  background: var(--void);
  border-bottom: 2px solid var(--mint);
}
.lr-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-s);
  color: var(--text);
}
.lr-table tr:last-child td { border-bottom: none; }
.lr-table tr:hover td { background: rgba(201,169,110,0.04); }
.lr-table .lr-num {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  color: var(--gold-b);
}

/* ── FAQ accordion (collapsible) ──────────────────────────────────────── */
.lr-faq-item {
  border-bottom: 1px solid var(--border-s);
  margin-bottom: 0;
  padding: 0;
}
.lr-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  position: relative;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  transition: color .2s;
}
.lr-faq-item summary::-webkit-details-marker { display: none; }
.lr-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform .25s;
}
.lr-faq-item[open] summary::after {
  content: "−";
}
.lr-faq-item summary:hover { color: var(--gold); }
.lr-faq-item .lr-faq-answer {
  padding: 0 0 24px;
  color: var(--text-m);
  line-height: 1.65;
}

/* ── Sources accordion (collapsible references) ───────────────────────── */
.lr-sources-toggle {
  display: block;
  width: 100%;
  margin: 48px 0 0;
  padding: 16px 24px;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--mint);
  text-transform: uppercase;
  text-align: left;
  position: relative;
  transition: border-color .2s;
}
.lr-sources-toggle:hover { border-color: var(--mint); }
.lr-sources-toggle::-webkit-details-marker { display: none; }
.lr-sources-toggle::after {
  content: "▼";
  position: absolute;
  right: 24px;
  font-size: 0.7rem;
  transition: transform .25s;
}
details[open] > .lr-sources-toggle::after { transform: rotate(180deg); }
.lr-sources-list {
  margin: 16px 0 0;
  padding: 24px 28px;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 4px;
  list-style: decimal;
  list-style-position: inside;
}
.lr-sources-list li {
  padding: 8px 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text-m);
  border-bottom: 1px solid var(--border-s);
}
.lr-sources-list li:last-child { border-bottom: none; }
.lr-sources-list a { color: var(--mint); word-break: break-all; }
.lr-sources-list strong { color: var(--text); }

/* ── Sticky TOC (desktop) ─────────────────────────────────────────────── */
.lr-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}
.lr-toc-sticky {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 4px;
  font-size: 0.82rem;
}
.lr-toc-sticky-title {
  font-family: var(--font-nav);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.lr-toc-sticky ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.lr-toc-sticky li {
  margin: 0 0 6px;
  padding-left: 8px;
  border-left: 2px solid transparent;
  transition: border-color .2s;
}
.lr-toc-sticky li.active {
  border-left-color: var(--gold);
}
.lr-toc-sticky a {
  display: block;
  padding: 6px 0;
  color: var(--text-m);
  text-decoration: none;
  line-height: 1.4;
  transition: color .2s;
}
.lr-toc-sticky a:hover, .lr-toc-sticky li.active a {
  color: var(--gold);
}

/* ── Inline highlight ─────────────────────────────────────────────────── */
.lr-hi {
  background: linear-gradient(180deg, transparent 60%, var(--gold-d) 60%);
  padding: 0 2px;
  font-weight: 500;
}

/* ── Drop cap первой буквы первого абзаца после H2 ────────────────────── */
.lr-article > section > p:first-of-type::first-letter,
.lr-article > p:first-of-type::first-letter {
  font-family: var(--font-heading);
  font-size: 3.4em;
  float: left;
  line-height: 0.85;
  margin: 0.05em 0.12em 0 0;
  color: var(--gold);
  font-weight: 400;
}
@media (max-width: 600px) {
  .lr-article > section > p:first-of-type::first-letter,
  .lr-article > p:first-of-type::first-letter {
    font-size: 2.6em;
  }
}

/* ── Hover-определения (для DefinedTerm <dfn>) ────────────────────────── */
.lr-article dfn {
  font-style: normal;
  border-bottom: 1px dotted var(--gold);
  cursor: help;
  position: relative;
}
.lr-article dfn:hover::after,
.lr-article dfn:focus::after {
  content: attr(data-def);
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  max-width: 360px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-style: normal;
  line-height: 1.55;
  color: var(--text);
  z-index: 100;
  white-space: normal;
}

/* ── Watermark блок ──────────────────────────────────────────────────── */
.lr-watermark {
  margin: 56px 0;
  padding: 32px 40px;
  background: var(--surface);
  border-left: 4px solid var(--mint);
  border-radius: 4px;
  text-align: center;
}

/* ── Скрытая таблица данных графика (для печати + screen-reader) ──────── */
.lr-chart-data-table {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
@media print {
  .lr-chart-data-table {
    position: static;
    width: 100%;
    height: auto;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 0.85rem;
  }
  .lr-chart-data-table th,
  .lr-chart-data-table td {
    padding: 6px 12px;
    border: 1px solid #ccc;
    text-align: left;
  }
}

/* ── Ритм: интервалы между секциями + первые-последние абзацы ────────── */
.lr-article section {
  margin: 56px 0;
  scroll-margin-top: 80px;
}
.lr-article section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2.2vw, 1.7rem);
  font-weight: 400;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-s);
}
.lr-article section h3 {
  font-family: var(--font-heading);
  font-size: clamp(1.1rem, 1.6vw, 1.25rem);
  font-weight: 500;
  color: var(--text);
  margin: 32px 0 14px;
}
.lr-article p {
  font-size: 1.085rem;          /* 17.5px / 16 — оптимум для долгого чтения */
  line-height: 1.78;
  margin: 0 auto 28px;          /* +10px к интервалу для воздуха */
  max-width: 68ch;              /* ~65-70 знаков на строку — стандарт типографики */
  hyphens: auto;
  -webkit-hyphens: auto;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}
.lr-article ul, .lr-article ol {
  padding-left: 28px;
  margin: 24px auto;
  max-width: 68ch;
}
.lr-article li {
  margin: 0 0 12px;
  line-height: 1.7;
  font-size: 1.05rem;
}
.lr-article section {
  max-width: none;              /* секция шире чем p — для визуальных блоков */
}
.lr-article > section > p,
.lr-article > section > ul,
.lr-article > section > ol {
  margin-left: auto;
  margin-right: auto;
}
/* Большой первый абзац после H2 — visual hierarchy */
.lr-article section > p:first-of-type {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text);
}

/* ── Якорь-ссылки на заголовки (hover показывает #) ──────────────────── */
.lr-article section h2,
.lr-article section h3 {
  position: relative;
}
.lr-article section[id]:hover h2::before,
.lr-article section[id]:hover h3::before {
  content: "§";
  position: absolute;
  left: -28px;
  top: 0;
  color: var(--gold);
  font-size: 0.9em;
  opacity: 0.6;
}

/* ── Brand Citation внутри TL;DR ─────────────────────────────────────── */
.lr-brand-citation {
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}

/* ═══════════════════════════════════════════════════════════════════════
   CANVA-БЛОКИ — визуальные паузы внутри тела статьи
   ═══════════════════════════════════════════════════════════════════════ */

/* Key Takeaway — выделенный «ключевой вывод» */
.lr-takeaway {
  margin: 48px auto;
  max-width: 76ch;
  padding: 28px 32px;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--gold) 8%, var(--surface)) 0%,
    var(--surface) 100%);
  border: 1px solid var(--border-s);
  border-radius: 6px;
  position: relative;
}
.lr-takeaway::before {
  content: "✦";
  position: absolute;
  top: -14px;
  left: 28px;
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--void);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}
.lr-takeaway-label {
  display: block;
  font-family: var(--font-nav);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.lr-takeaway p {
  font-family: var(--font-heading);
  font-size: 1.18rem !important;
  line-height: 1.55 !important;
  color: var(--text);
  margin: 0 !important;
  max-width: none !important;
}

/* Big Number — гигантская цифра как визуальный break */
.lr-bignum {
  margin: 56px auto;
  max-width: 76ch;
  padding: 36px 28px;
  background: var(--surface);
  border-radius: 6px;
  text-align: center;
  border: 1px solid var(--border-s);
}
.lr-bignum-num {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 300;
  line-height: 0.95;
  color: var(--gold);
  margin-bottom: 14px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.lr-bignum-context {
  font-size: 1.05rem;
  color: var(--text-m);
  margin: 0 auto;
  max-width: 56ch;
  line-height: 1.55;
}

/* Side-by-side compare — Норма vs Практика, До vs После */
.lr-vs {
  margin: 48px auto;
  max-width: 84ch;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border-s);
  border-radius: 6px;
  overflow: hidden;
}
.lr-vs-side {
  padding: 28px 32px;
}
.lr-vs-side-norma {
  border-right: 1px solid var(--border-s);
}
.lr-vs-divider {
  background: var(--gold);
  color: var(--void);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0 14px;
  letter-spacing: 0.05em;
}
.lr-vs-label {
  font-family: var(--font-nav);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}
.lr-vs-side-norma .lr-vs-label { color: var(--mint); }
.lr-vs-side-practice .lr-vs-label { color: var(--mars); }
.lr-vs-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  margin: 0;
}
@media (max-width: 720px) {
  .lr-vs {
    grid-template-columns: 1fr;
  }
  .lr-vs-divider {
    padding: 8px 0;
  }
  .lr-vs-side-norma {
    border-right: none;
    border-bottom: 1px solid var(--border-s);
  }
}

/* Numbered callout — пронумерованный visual бокс */
.lr-callout {
  margin: 40px auto;
  max-width: 76ch;
  padding: 28px 32px 28px 80px;
  background: var(--surface);
  border-radius: 6px;
  position: relative;
  border-left: 4px solid var(--gold);
}
.lr-callout-num {
  position: absolute;
  top: 50%;
  left: 24px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--void);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.lr-callout-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}
.lr-callout-text {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-m);
  margin: 0;
}
@media (max-width: 600px) {
  .lr-callout {
    padding: 28px 24px 24px;
  }
  .lr-callout-num {
    position: static;
    transform: none;
    margin-bottom: 16px;
  }
}

/* Section divider — декоративный разделитель между крупными темами */
.lr-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 64px auto;
  max-width: 80ch;
  gap: 24px;
  color: var(--gold);
  font-family: var(--font-nav);
  font-size: 0.78rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  opacity: 0.7;
}
.lr-divider::before,
.lr-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-d), var(--gold), var(--gold-d), transparent);
}
.lr-divider-symbol {
  font-size: 1.1rem;
  color: var(--gold);
}

/* Inline highlight box — для важных абзацев */
.lr-spotlight {
  margin: 40px auto;
  max-width: 70ch;
  padding: 24px 28px;
  background: color-mix(in srgb, var(--mint) 6%, var(--surface));
  border-left: 3px solid var(--mint);
  border-radius: 4px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}
.lr-spotlight p:last-child { margin-bottom: 0 !important; }

/* Чтобы все Canva-блоки и charts были полной ширины (шире текста) */
.lr-stats,
.lr-chart-block,
.lr-timeline,
.lr-quote,
.lr-tldr,
.lr-watermark,
.lr-compact,
details.lr-conflict {
  max-width: 84ch;
  margin-left: auto;
  margin-right: auto;
}

/* Article container ширина */
.lr-article {
  /* На десктопе колонка с TOC: остальная ширина авто, но с центровкой контента */
}
@media (min-width: 901px) {
  .lr-layout > .lr-article {
    /* Внутренние блоки сами центрируются max-width 68-84ch */
  }
}

/* ── Reading progress bar (top of page) ───────────────────────────────── */
.lr-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  z-index: 10001;
  transition: width .1s linear;
  width: 0;
}

/* ── Print/PDF styles ─────────────────────────────────────────────────── */
@media print {
  .nav, .footer, .nav-burger, .lr-progress, .lr-toc-sticky { display: none !important; }
  .lr-layout { grid-template-columns: 1fr !important; }
  .lr-faq-item, details { all: revert !important; }
  .lr-faq-item .lr-faq-answer { display: block !important; }
  .lr-sources-list { display: block !important; }
  body { background: white !important; color: black !important; }
  .lr-stat, .lr-quote, .lr-chart-block, .lr-tldr, .lr-table {
    background: white !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
  a { color: black !important; text-decoration: underline; }
  .lr-chart-canvas { display: none; } /* Chart.js не печатается, используем data table */
}

/* ═══════════════════════════════════════════════════════════════════════
   MOBILE — особое внимание: дофамин, прогресс, sticky CTA
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  .lr-layout { grid-template-columns: 1fr; gap: 24px; }
  .lr-toc-sticky {
    position: static;
    max-height: none;
    margin-bottom: 32px;
  }
  .lr-quote { padding: 24px 24px 24px 32px; }
  .lr-quote-text { font-size: 1.05rem; }
  .lr-stat { padding: 20px 14px; }
  .lr-tldr { padding: 24px 24px; font-size: 0.98rem; }
  .lr-chart-canvas { height: 260px; }

  /* Bigger, more readable text on mobile */
  .lr-article p {
    font-size: 1.075rem;
    line-height: 1.72;
    margin-bottom: 24px;
    max-width: 100%;
  }
  .lr-article section > p:first-of-type { font-size: 1.1rem; }

  /* Canva-блоки на мобиле */
  .lr-takeaway, .lr-bignum, .lr-callout, .lr-spotlight {
    margin-left: 0;
    margin-right: 0;
    padding: 24px 22px;
  }
  .lr-takeaway p { font-size: 1.08rem !important; }
  .lr-bignum-num { font-size: clamp(2.6rem, 14vw, 4.2rem); }
}

@media (max-width: 480px) {
  .lr-stats { grid-template-columns: 1fr; }
  .lr-table { font-size: 0.82rem; }
  .lr-table th, .lr-table td { padding: 10px 12px; }
  .lr-vs { grid-template-columns: 1fr; }
}

/* ── Mobile Chapter Indicator (sticky top, появляется при скролле) ─────── */
.lr-mobile-chapter {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 9000;
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--void);
  border-bottom: 1px solid var(--gold);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-m);
  transform: translateY(-100%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.lr-mobile-chapter.visible {
  transform: translateY(0);
}
.lr-mobile-chapter-num {
  font-family: var(--font-nav);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
}
.lr-mobile-chapter-num strong {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}
.lr-mobile-chapter-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}
@media (max-width: 768px) {
  .lr-mobile-chapter { display: flex; }
}

/* ── Mobile Sticky Bottom CTA Bar — постоянная action, дофамин ────────── */
.lr-mobile-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  display: none;
  padding: 10px 12px env(safe-area-inset-bottom, 12px);
  background: linear-gradient(180deg, transparent 0%, var(--void) 30%);
  pointer-events: none;
  transform: translateY(100%);
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.lr-mobile-cta.visible {
  transform: translateY(0);
}
.lr-mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--gold);
  color: var(--void) !important;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3), 0 0 0 1px var(--gold);
  pointer-events: auto;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  transition: transform .2s, box-shadow .2s;
}
.lr-mobile-cta-btn:active {
  transform: scale(0.97);
}
.lr-mobile-cta-arrow {
  font-size: 1.3rem;
  font-weight: 600;
}
@media (max-width: 768px) {
  .lr-mobile-cta { display: block; }
}

/* ── Scroll-trigger: stat-cards и big-numbers «считаются» при появлении ── */
.lr-stat-num,
.lr-bignum-num {
  opacity: 1;
  transition: opacity .6s, transform .6s;
}
.lr-stat:not(.lr-revealed) .lr-stat-num,
.lr-bignum:not(.lr-revealed) .lr-bignum-num {
  opacity: 0;
  transform: translateY(8px);
}

/* ── Tap targets: все кнопки/ссылки ≥ 44px на мобиле ──────────────────── */
@media (max-width: 768px) {
  .lr-faq-item summary,
  details.lr-conflict summary,
  .lr-toc-sticky a,
  .article-toc a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ── Reduced motion для accessibility ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .lr-mobile-chapter,
  .lr-mobile-cta,
  .lr-stat-num,
  .lr-bignum-num,
  .lr-stat,
  .lr-bignum {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}
