:root {
  --bg: #0f1117;
  --surface: #161b27;
  --surface2: #1e2535;
  --surface3: #242d40;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
  --text: #e8eaf0;
  --muted: #6b7280;
  --muted2: #9ca3af;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --green: #22c55e;
  --orange: #f97316;
  --r: 12px;
  --r-sm: 8px;
  --r-lg: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* HEADER */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 17, 23, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(99,102,241,0.3);
}
.brand-logo svg { width: 18px; height: 16px; color: white; }
.brand-name { font-size: 15px; font-weight: 600; letter-spacing: -0.4px; }
.nav { display: flex; gap: 4px; flex: 1; margin-left: 16px; }
.nav-link {
  padding: 8px 14px; border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 500; color: var(--muted2);
  transition: all 0.15s ease;
}
.nav-link:hover { background: var(--surface2); color: var(--text); }
.nav-link.active { color: var(--text); background: var(--surface2); }
.btn-login {
  padding: 9px 20px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 600;
  transition: all 0.15s ease;
}
.btn-login:hover { background: white; transform: translateY(-1px); }
.header-actions { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.messengers { display: flex; gap: 6px; }
.msg-icon {
  width: 32px; height: 32px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted2); transition: all 0.15s ease;
}
.msg-icon:hover {
  background: var(--surface2); border-color: var(--border2);
  color: var(--text); transform: translateY(-1px);
}
.msg-icon svg { width: 16px; height: 16px; }
.burger {
  display: none;
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--border);
  position: relative; flex-shrink: 0;
}
.burger span {
  position: absolute; left: 9px; right: 9px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: all 0.25s ease;
}
.burger span:nth-child(1) { top: 12px; }
.burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.burger span:nth-child(3) { bottom: 12px; }
.burger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { bottom: 50%; transform: translateY(50%) rotate(-45deg); }
.mobile-menu {
  display: none; flex-direction: column;
  padding: 12px 20px 24px; background: var(--bg);
  border-top: 1px solid var(--border); gap: 2px;
}
.mobile-menu.open { display: flex; }
.m-link {
  padding: 14px 12px; font-size: 15px; font-weight: 500;
  color: var(--text); border-radius: var(--r-sm);
  transition: background 0.15s ease;
}
.m-link:hover { background: var(--surface2); }
.m-divider { height: 1px; background: var(--border); margin: 12px 0; }
.m-login {
  margin-top: 8px; padding: 14px; border-radius: var(--r-sm);
  background: var(--text); color: var(--bg);
  font-size: 14px; font-weight: 600; text-align: center;
}

/* Крошки */
.breadcrumbs {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 8px;
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--muted);
  text-transform: uppercase;
}
.breadcrumbs a { color: var(--muted); transition: color 0.15s ease; }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 8px; opacity: 0.5; }
.breadcrumbs .current { color: var(--text); }

/* Шапка статьи */
.article-header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 28px 48px;
}
.article-meta {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.article-cat {
  padding: 4px 10px;
  border-radius: 4px;
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.article-cat-ai { background: rgba(99,102,241,0.15); color: var(--accent); }
.article-cat-ops { background: rgba(34,197,94,0.15); color: var(--green); }
.article-cat-cases { background: rgba(249,115,22,0.15); color: var(--orange); }
.article-cat-howto { background: rgba(139,92,246,0.15); color: var(--accent-2); }
.article-date, .article-readtime {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.article-dot {
  width: 3px; height: 3px;
  background: var(--muted);
  border-radius: 50%;
  opacity: 0.5;
}
.article-h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -1.4px;
  font-weight: 600;
  max-width: 880px;
}
.article-lead {
  font-size: 17px;
  color: var(--muted2);
  line-height: 1.6;
  margin-top: 20px;
  max-width: 720px;
}

/* Лэйаут */
.article-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 96px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 64px;
  align-items: start;
}

/* TOC */
.toc {
  position: sticky;
  top: 88px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 8px;
}
.toc::-webkit-scrollbar { width: 4px; }
.toc::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
.toc-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.toc-list a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  color: var(--muted2);
  border-left: 2px solid transparent;
  margin-left: -2px;
  transition: all 0.15s ease;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.toc-list a:hover { color: var(--text); background: var(--surface); }
.toc-list a.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(99,102,241,0.06);
}
.toc-mobile {
  display: none;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.toc-mobile-toggle {
  width: 100%;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  text-align: left;
}
.toc-mobile-toggle::after {
  content: '+';
  font-size: 18px;
  color: var(--muted2);
  transition: transform 0.2s ease;
}
.toc-mobile.open .toc-mobile-toggle::after { transform: rotate(45deg); }
.toc-mobile-content {
  display: none;
  padding: 8px 12px 16px;
  border-top: 1px solid var(--border);
}
.toc-mobile.open .toc-mobile-content { display: block; }

/* Контент */
.article-content {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
}
.article-content > * + * { margin-top: 24px; }
.article-content h2 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.8px;
  line-height: 1.25;
  margin-top: 56px;
  scroll-margin-top: 88px;
}
.article-content h2:first-child { margin-top: 0; }
.article-content h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.3;
  margin-top: 40px;
  scroll-margin-top: 88px;
}
.article-content p { font-size: 16px; line-height: 1.7; color: var(--text); }
.article-content p a, .article-content li a {
  color: var(--accent);
  border-bottom: 1px solid rgba(99,102,241,0.3);
  transition: border-color 0.15s ease;
}
.article-content p a:hover, .article-content li a:hover { border-bottom-color: var(--accent); }
.article-content strong { color: var(--text); font-weight: 600; }
.article-content em { color: var(--muted2); font-style: italic; }
.article-content ul, .article-content ol {
  padding-left: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article-content li { font-size: 16px; line-height: 1.6; color: var(--text); }
.article-content li::marker { color: var(--accent); }

/* Таблицы */
.article-content .table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.article-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}
.article-content th, .article-content td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-content th {
  background: var(--surface);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted2);
}
.article-content tr:last-child td { border-bottom: none; }

/* ══════════ ВИЗУАЛЬНЫЕ БЛОКИ ══════════ */

/* TL;DR */
.tldr {
  padding: 24px 28px;
  border-radius: var(--r);
  background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(139,92,246,0.04));
  border: 1px solid rgba(99,102,241,0.2);
  position: relative;
  overflow: hidden;
}
.tldr::before {
  content: '';
  position: absolute;
  top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.tldr-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.tldr ul { padding-left: 0; list-style: none; gap: 12px; }
.tldr li {
  font-size: 15px;
  line-height: 1.55;
  padding-left: 22px;
  position: relative;
}
.tldr li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

/* Метрика инлайн */
.metric-inline {
  font-family: 'DM Mono', monospace;
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 300;
  letter-spacing: -2px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
  margin-bottom: 6px;
}
.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
}
.metric-row-item { display: flex; flex-direction: column; }
.metric-row-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

/* Pull-quote */
.pull-quote {
  padding: 32px 0;
  font-size: clamp(22px, 2.6vw, 28px);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.6px;
  color: var(--text);
}
.pull-quote::before {
  content: '';
  display: block;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  margin-bottom: 20px;
}
.pull-quote em {
  font-style: normal;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Этапы пайплайна (4 шага со степлайн) */
.pipeline {
  margin: 8px 0;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pipeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  opacity: 0.3;
}
.pipeline-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  position: relative;
}
.pipeline-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  z-index: 1;
}
.pipeline-content {
  flex: 1;
  padding: 4px 0 16px;
}
.pipeline-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.3px;
}
.pipeline-text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted2);
}
.pipeline-text strong { color: var(--text); }

/* Pros / Cons */
.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0;
}
.proscons-col {
  padding: 20px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}
.proscons-col-pros { border-left: 3px solid var(--green); }
.proscons-col-cons { border-left: 3px solid var(--orange); }
.proscons-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.proscons-col-pros .proscons-label { color: var(--green); }
.proscons-col-cons .proscons-label { color: var(--orange); }
.proscons-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.proscons-list li {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  padding-left: 22px;
  position: relative;
}
.proscons-col-pros .proscons-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 600;
}
.proscons-col-cons .proscons-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
  font-size: 17px;
  top: -2px;
}

/* Карточки сценариев применения */
.scenarios {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.scenario {
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}
.scenario:hover {
  background: var(--surface2);
  border-color: var(--border2);
  transform: translateY(-2px);
}
.scenario-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(99,102,241,0.12);
  margin-bottom: 12px;
  font-size: 16px;
}
.scenario-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.scenario-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted2);
}
.scenario-text strong { color: var(--text); }

/* Карточки цен (тарифы) */
.pricing-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 8px;
}
.price-card {
  padding: 24px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.price-card.highlighted {
  border-color: rgba(99,102,241,0.4);
  background: linear-gradient(135deg, rgba(99,102,241,0.06), rgba(139,92,246,0.02));
}
.price-card.highlighted::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.price-card-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.price-card-team {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-bottom: 16px;
}
.price-card-value {
  font-family: 'DM Mono', monospace;
  font-size: clamp(34px, 4.5vw, 44px);
  font-weight: 300;
  letter-spacing: -1.8px;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
.price-card-unit {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.price-card-calc {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.55;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.price-card-calc div { padding: 3px 0; }

/* Тарифные модели */
.pricing-models {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 8px 0;
}
.pricing-model {
  padding: 20px 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
}
.pricing-model-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.pricing-model-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.pricing-model-range {
  font-family: 'DM Mono', monospace;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: -0.2px;
}
.pricing-model-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted2);
}

/* Шаги внедрения (нумерованные карточки) */
.steps-numbered {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step-card {
  padding: 22px 24px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  padding-left: 70px;
}
.step-card-num {
  position: absolute;
  left: 22px;
  top: 22px;
  font-family: 'DM Mono', monospace;
  font-size: 28px;
  font-weight: 300;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  letter-spacing: -1.5px;
}
.step-card-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: -0.2px;
}
.step-card-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted2);
}
.step-card-text strong { color: var(--text); }

/* Inline-маркер */
.mark {
  background: linear-gradient(180deg, transparent 60%, rgba(99,102,241,0.25) 60%);
  padding: 0 2px;
  font-weight: 500;
  color: var(--text);
}

/* Сравнение QA vs аналитика */
.compare-stat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 8px 0;
}
.compare-stat-item {
  padding: 22px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--border);
}
.compare-stat-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.compare-stat-value {
  font-family: 'DM Mono', monospace;
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 300;
  letter-spacing: -1.2px;
  line-height: 1.1;
  margin-bottom: 8px;
}
.compare-stat-item.human .compare-stat-value { color: var(--muted2); }
.compare-stat-item.machine .compare-stat-value {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.compare-stat-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted2);
}

/* FAQ */
.article-faq-item {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.article-faq-item:first-of-type { padding-top: 0; }
.article-faq-q {
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.article-faq-a {
  font-size: 15.5px;
  color: var(--muted2);
  line-height: 1.65;
}

/* CTA */
.article-cta {
  margin-top: 64px;
  padding: 40px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(circle at 80% 20%, rgba(99,102,241,0.18) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, rgba(22,27,39,0.7) 100%);
  border: 1px solid var(--border2);
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-2), transparent);
  opacity: 0.6;
}
.article-cta-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.article-cta-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
  line-height: 1.25;
  margin-bottom: 12px;
}
.article-cta-text {
  font-size: 15px;
  color: var(--muted2);
  line-height: 1.55;
  margin-bottom: 24px;
  max-width: 520px;
}
.article-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.2px;
  box-shadow: 0 4px 14px rgba(99,102,241,0.25);
  transition: all 0.15s ease;
}
.article-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99,102,241,0.35);
}
.article-cta-btn::after { content: '→'; transition: transform 0.15s ease; }
.article-cta-btn:hover::after { transform: translateX(3px); }

/* Похожие */
.related {
  max-width: 1280px;
  margin: 0 auto;
  padding: 64px 28px 96px;
  border-top: 1px solid var(--border);
}
.related-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.related-title {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.6px;
  margin-bottom: 32px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.related-card {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex; flex-direction: column;
  transition: all 0.25s ease;
}
.related-card:hover {
  background: var(--surface2);
  border-color: var(--border2);
  transform: translateY(-3px);
}
.related-card-meta {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.related-card-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 10px;
}
.related-card-excerpt {
  font-size: 13px;
  color: var(--muted2);
  line-height: 1.5;
  flex: 1;
}
.related-card-arrow {
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  transition: all 0.2s ease;
}
.related-card:hover .related-card-arrow {
  color: var(--accent);
  transform: translateX(3px);
}

/* Footer */
.footer {
  position: relative;
  padding: 36px 28px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  flex: 1;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.footer-brand-logo {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}
.footer-brand-logo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, transparent 50%);
}
.footer-brand-logo svg {
  width: 14px; height: 14px;
  color: white;
  position: relative;
  z-index: 1;
}
.footer-brand-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  letter-spacing: -0.05px;
  line-height: 1.5;
}
.footer-meta a {
  color: var(--muted2);
  transition: color 0.15s ease;
}
.footer-meta a:hover { color: var(--text); }
.footer-meta-sep {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--muted);
  opacity: 0.5;
  flex-shrink: 0;
}
.footer-meta-soon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted2);
}
.footer-meta-soon::after {
  content: 'скоро';
  font-family: 'DM Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--muted2);
}
.footer-socials {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.footer-social {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted2);
  transition: all 0.2s ease;
}
.footer-social:hover {
  background: var(--surface2);
  border-color: var(--border2);
  color: var(--text);
  transform: translateY(-2px);
}
.footer-social svg { width: 16px; height: 16px; }
.footer-meta-mobile { display: none; }

/* Responsive */
@media (max-width: 960px) {
  .article-layout { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .toc-mobile { display: block; }
  .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header-actions { gap: 8px; margin-left: auto; }
  .messengers { display: flex; }
  .btn-login { display: none; }
  .burger { display: block; }
  .header-inner { gap: 12px; padding: 12px 20px; }
  .breadcrumbs { padding: 20px 20px 4px; font-size: 10px; }
  .article-header { padding: 20px 20px 32px; }
  .article-h1 { font-size: 30px; letter-spacing: -1px; }
  .article-lead { font-size: 15.5px; }
  .article-layout { padding: 0 20px 64px; }
  .article-content { font-size: 15.5px; }
  .article-content h2 { font-size: 24px; margin-top: 40px; }
  .article-content h3 { font-size: 18px; margin-top: 32px; }
  .scenarios { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .proscons { grid-template-columns: 1fr; }
  .pricing-cards { grid-template-columns: 1fr; }
  .compare-stat { grid-template-columns: 1fr; }
  .article-cta { padding: 28px; margin-top: 48px; }
  .article-cta-title { font-size: 20px; }
  .related { padding: 48px 20px 64px; }

  .footer { padding: 32px 20px 24px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 18px;
  }
  .footer-left { display: contents; }
  .footer-brand { order: 1; }
  .footer-socials {
    order: 2;
    align-self: center;
    gap: 10px;
  }
  .footer-social { width: 40px; height: 40px; }
  .footer-social svg { width: 18px; height: 18px; }
  .footer-meta { display: none; }
  .footer-meta-mobile {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .fm-m-links {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--muted2);
  }
  .fm-m-links a {
    color: var(--muted2);
    transition: color 0.15s ease;
  }
  .fm-m-links a:hover { color: var(--text); }
  .fm-m-dot {
    color: var(--muted);
    opacity: 0.5;
  }
  .fm-m-divider {
    width: 64px;
    height: 1px;
    background: var(--border);
    margin: 2px 0;
  }
  .fm-m-legal,
  .fm-m-inn {
    font-size: 11.5px;
    color: var(--muted);
    text-align: center;
    line-height: 1.45;
  }
  .fm-m-inn { opacity: 0.75; }

}

/* ───── Оверрайд под страницу политики (одна колонка) ───── */
.legal-layout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 28px 96px;
}
.legal-layout .article-content { max-width: 760px; }
.legal-updated {
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--muted);
  margin-top: 12px;
}
@media (max-width: 720px) {
  .legal-layout { padding: 0 20px 64px; }
}
