/* ════════════════════════════════════════════════════════════════
   sp486-2025.css — стиль статьи бренд-медиа (тёмная тема)
   ════════════════════════════════════════════════════════════════ */

/* ─── BREADCRUMB ──────────────────────────────────────────────── */
.ar-breadcrumb {
  background: var(--pm-bg);
  border-bottom: 1px solid var(--pm-line);
  padding: clamp(158px,16vh,218px) 0 0;
}
.ar-breadcrumb .wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  padding-bottom: 14px;
  flex-wrap: wrap;
}
.ar-breadcrumb a, .ar-breadcrumb span {
  font-size: 0.78rem;
  color: var(--pm-muted);
  text-decoration: none;
  transition: color .2s;
}
.ar-breadcrumb a:hover { color: var(--pm-teal); }
.ar-breadcrumb span:last-child { color: var(--pm-text); }

/* ─── HERO ────────────────────────────────────────────────────── */
.ar-hero {
  background: var(--pm-bg);
  border-bottom: 1px solid var(--pm-line);
  padding: 44px 0 0;
}
.ar-hero-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: end;
}
.ar-hero-content { padding-bottom: 44px; }

.ar-hero-cats {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}
.ar-hero-title {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: #fff;
}
.ar-hero-title span { color: var(--pm-teal); }
.ar-hero-lead {
  margin: 22px 0 0;
  font-size: 0.98rem;
  line-height: 1.72;
  color: var(--pm-muted);
  max-width: 580px;
}
.ar-hero-lead strong { color: var(--pm-text); }
.ar-hero-meta {
  display: flex;
  gap: 18px;
  margin-top: 24px;
  font-size: 0.8rem;
  color: var(--pm-muted);
}
.ar-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.ar-hero-meta svg { color: var(--pm-teal); opacity: .8; }

/* Стопка документов */
.ar-hero-docs {
  position: relative;
  height: 260px;
  display: flex;
  align-items: flex-end;
}
.ar-doc {
  position: absolute;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 12px 40px rgba(0,0,0,.7);
  width: 320px;
  height: auto;
  object-fit: cover;
}
.ar-doc--1 {
  bottom: 0;
  right: 40px;
  transform: rotate(-3deg);
  z-index: 2;
}
.ar-doc--2 {
  bottom: 18px;
  right: 0;
  transform: rotate(3deg);
  z-index: 1;
  opacity: .7;
}

/* ─── BODY ────────────────────────────────────────────────────── */
.ar-body {
  background: var(--pm-bg);
  padding: 56px 0 80px;
}
.ar-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: flex-start;
}

/* ─── КОНТЕНТ ─────────────────────────────────────────────────── */
.ar-content { min-width: 0; }

.ar-section {
  margin-bottom: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--pm-line-2);
}
.ar-section:last-child { border-bottom: none; margin-bottom: 0; }

.ar-section-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--pm-teal);
  margin-bottom: 12px;
}
.ar-section-label::before {
  content: '';
  width: 18px; height: 2px;
  background: var(--pm-teal);
  border-radius: 1px;
  display: inline-block;
}

.ar-section-title {
  margin: 0 0 24px;
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.15;
  color: #fff;
}

.ar-text {
  margin: 0 0 20px;
  font-size: 0.97rem;
  line-height: 1.76;
  color: var(--pm-muted);
}
.ar-text strong { color: var(--pm-text); }

/* ─── CALLOUT ─────────────────────────────────────────────────── */
.ar-callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid;
  margin: 24px 0;
  font-size: 0.92rem;
  line-height: 1.66;
}
.ar-callout p { margin: 0; }
.ar-callout strong { color: #fff; }
.ar-callout em { font-style: italic; }
.ar-callout--warning {
  background: rgba(255,180,0,.05);
  border-color: rgba(255,180,0,.25);
  color: rgba(255,220,120,.85);
}
.ar-callout--warning .ar-callout-icon { color: #ffc020; }
.ar-callout--info {
  background: rgba(0,189,220,.05);
  border-color: rgba(0,189,220,.25);
  color: rgba(180,230,255,.85);
}
.ar-callout--info .ar-callout-icon { color: var(--pm-teal); }
.ar-callout-icon { flex-shrink: 0; margin-top: 1px; }

/* ─── ТАБЛИЦА ─────────────────────────────────────────────────── */
.ar-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--pm-line);
  margin: 24px 0;
}
.ar-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.ar-table thead tr {
  background: var(--pm-card-2);
  border-bottom: 1px solid var(--pm-line);
}
.ar-table th {
  padding: 14px 18px;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pm-teal);
}
.ar-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--pm-line-2);
  color: var(--pm-muted);
  line-height: 1.6;
  vertical-align: top;
}
.ar-table tr:last-child td { border-bottom: none; }
.ar-table tr:hover td { background: rgba(0,189,220,.03); }
.ar-td-num {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--pm-teal);
  white-space: nowrap;
  width: 60px;
}
.ar-td-val {
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  width: 90px;
  text-align: center;
}

/* ─── СПИСОК ──────────────────────────────────────────────────── */
.ar-list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ar-list li {
  padding: 14px 0 14px 20px;
  border-bottom: 1px solid var(--pm-line-2);
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--pm-muted);
  position: relative;
}
.ar-list li:last-child { border-bottom: none; }
.ar-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 22px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--pm-teal);
}

/* ─── ФПО-СЕТКА ───────────────────────────────────────────────── */
.ar-fpo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 12px;
  margin: 8px 0 24px;
}
.ar-fpo-card {
  background: var(--pm-card);
  border: 1px solid var(--pm-line);
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color .22s, transform .22s;
}
.ar-fpo-card:hover {
  border-color: rgba(0,189,220,.4);
  transform: translateY(-3px);
}
.ar-fpo-code {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--pm-teal);
  margin-bottom: 8px;
}
.ar-fpo-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--pm-muted);
}
.ar-fpo-desc strong { color: var(--pm-text); }
.ar-fpo-desc em { font-style: italic; color: var(--pm-text); }

/* ─── СРАВНЕНИЕ УСТАНОВКИ vs УСТРОЙСТВА ─────────────────────── */
.ar-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
}
.ar-compare-card {
  background: var(--pm-card);
  border-radius: 18px;
  padding: 24px 22px;
  border: 1px solid;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.ar-compare-card--blue {
  border-color: rgba(31,122,245,.35);
  background: linear-gradient(145deg, rgba(31,122,245,.08) 0%, var(--pm-card) 100%);
}
.ar-compare-card--amber {
  border-color: rgba(200,140,0,.35);
  background: linear-gradient(145deg, rgba(200,140,0,.07) 0%, var(--pm-card) 100%);
}
.ar-compare-head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ar-compare-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 100px;
}
.ar-compare-card--blue .ar-compare-label {
  background: rgba(31,122,245,.2);
  color: #6aa9ff;
  border: 1px solid rgba(31,122,245,.35);
}
.ar-compare-card--amber .ar-compare-label {
  background: rgba(200,140,0,.18);
  color: #ffc040;
  border: 1px solid rgba(200,140,0,.35);
}
.ar-compare-term {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.ar-compare-def {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--pm-muted);
  flex: 1;
}
.ar-compare-def strong { color: var(--pm-text); }
.ar-compare-func {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.ar-compare-tag {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
}
.ar-compare-tag--on {
  background: rgba(0,200,120,.12);
  color: #40e896;
  border: 1px solid rgba(0,200,120,.3);
}
.ar-compare-tag--off {
  background: rgba(200,60,60,.12);
  color: #ff8080;
  border: 1px solid rgba(200,60,60,.3);
}
.ar-compare-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--pm-card);
  border: 1px solid var(--pm-line);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--pm-muted);
  letter-spacing: .06em;
  flex-shrink: 0;
}

/* ─── САЙДБАР ─────────────────────────────────────────────────── */
.ar-sidebar-card {
  background: var(--pm-card);
  border: 1px solid var(--pm-line);
  border-radius: 18px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ar-sidebar-card--sticky { position: sticky; top: 180px; }
.ar-sidebar-label {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--pm-teal);
  margin: 0;
}
.ar-toc {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ar-toc a {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--pm-muted);
  text-decoration: none;
  padding: 9px 0 9px 12px;
  border-bottom: 1px solid var(--pm-line-2);
  border-left: 2px solid transparent;
  transition: color .2s, border-color .2s;
  line-height: 1.4;
}
.ar-toc a:last-child { border-bottom: none; }
.ar-toc a:hover,
.ar-toc a.is-active {
  color: var(--pm-teal);
  border-left-color: var(--pm-teal);
}
.ar-sidebar-divider {
  height: 1px;
  background: var(--pm-line-2);
  margin: 4px 0;
}
.ar-doc-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--pm-line);
}
.ar-doc-preview img {
  display: block;
  width: 100%;
  height: auto;
  transition: opacity .2s;
}
.ar-doc-preview:hover img { opacity: .85; }
.ar-sidebar-btn {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f7af5, #00bddc);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 18px rgba(31,122,245,.35);
}
.ar-sidebar-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,122,245,.45);
}

/* ─── АДАПТИВ ─────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .ar-hero-wrap { grid-template-columns: 1fr; }
  .ar-hero-docs { display: none; }
  .ar-layout { grid-template-columns: 1fr; }
  .ar-sidebar-card--sticky { position: static; }
  .ar-compare-grid { grid-template-columns: 1fr; }
  .ar-compare-divider { display: none; }
}
@media (max-width: 600px) {
  .ar-section-title { font-size: 1.3rem; }
  .ar-fpo-grid { grid-template-columns: 1fr 1fr; }
}
