/* ═══════════════════════════════════════════════════════════
   blog.css — общий стиль для блога arhsloboda.ru
   ═══════════════════════════════════════════════════════════

   КАК ПОДКЛЮЧИТЬ:
   В <head> каждой страницы блога добавить ОДНУ строку:

   <link rel="stylesheet" href="/styles/blog.css">

   Дальше в самой статье НЕ нужно писать <style>...</style> —
   только чистый HTML с классами из этого файла. Файл загружается
   один раз и кешируется браузером на все страницы блога сразу.

   ПОЧЕМУ ТАК БЫСТРЕЕ:
   — Нет внешних подключений Google Fonts (используются системные
     шрифты устройства — они уже есть на телефоне/компьютере гостя,
     грузить их не нужно)
   — Нет градиентов, теней, blur-эффектов и декоративных SVG-паттернов
   — Нет повторяющегося CSS на каждой странице — он один на весь блог
   — Файл маленький (~7 КБ без сжатия), грузится практически мгновенно
   ═══════════════════════════════════════════════════════════ */


/* ── ПЕРЕМЕННЫЕ ЦВЕТА — фирменная палитра сайта ── */
:root {
  --as-forest:      #1a2e1a;
  --as-forest-mid:  #2d4a2d;
  --as-moss:        #4a7c59;
  --as-sage:        #7aad8a;
  --as-cream:       #f5f0e8;
  --as-warm-white:  #faf8f3;
  --as-amber:       #c8864a;
  --as-amber-light: #e8a870;
  --as-text:        #1c2418;
  --as-text-mid:    #3d5240;
  --as-text-light:  #6b8870;
  --as-border:      rgba(74,124,89,0.18);
  --as-shadow:      rgba(26,46,26,0.12);
}


/* ── БАЗА ── */
.blog-article {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, sans-serif;
  color: var(--as-text);
  line-height: 1.7;
  background: var(--as-warm-white);
}

.blog-article * {
  box-sizing: border-box;
}


/* ── ШАПКА СТАТЬИ — единый стиль с лендингами ── */
.blog-hero {
  background: var(--as-forest);
  color: var(--as-cream);
  padding: 56px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Мягкое свечение — как на лендингах, без тяжёлых эффектов */
.blog-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 20% 50%, rgba(74,124,89,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 45% at 82% 20%, rgba(200,134,74,0.14) 0%, transparent 65%);
  pointer-events: none;
}

/* Хлебные крошки */
.blog-breadcrumb {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--as-sage);
  margin-bottom: 18px;
  position: relative;
}
.blog-breadcrumb a {
  color: var(--as-sage);
  text-decoration: none;
}
.blog-breadcrumb a:hover { text-decoration: underline; }

/* H1 — крупнее, как на лендингах */
.blog-hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

/* Анонс — с янтарной рамкой, выделяется */
.blog-announce {
  max-width: 640px;
  margin: 24px auto 0;
  background: rgba(200,134,74,0.12);
  border: 1px solid rgba(200,134,74,0.35);
  border-radius: 12px;
  padding: 16px 22px;
  font-size: 14.5px;
  font-style: italic;
  color: rgba(245,240,232,0.9);
  line-height: 1.65;
  position: relative;
}

.blog-hero-meta {
  margin-top: 18px;
  font-size: 12.5px;
  color: rgba(245,240,232,0.45);
  position: relative;
}

/* Янтарная разделительная полоса под hero */
.blog-hero-divider {
  height: 4px;
  background: linear-gradient(to right, var(--as-forest), var(--as-amber), var(--as-forest));
}


/* ── КОНТЕЙНЕР И ТЕКСТ ── */
.blog-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}

.blog-article-body {
  padding: 36px 0 48px;
}

.blog-article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--as-forest);
  margin: 36px 0 12px;
  padding-top: 6px;
  border-top: 2px solid var(--as-border);
}
.blog-article-body h2:first-of-type {
  border-top: none;
  margin-top: 0;
}

.blog-article-body p {
  font-size: 15px;
  color: var(--as-text-mid);
  margin-bottom: 12px;
}
.blog-article-body p strong {
  color: var(--as-forest);
}

.blog-article-body a {
  color: var(--as-moss);
  font-weight: 600;
  text-decoration: underline;
}
.blog-article-body a:hover {
  color: var(--as-forest);
}


/* ── ОГЛАВЛЕНИЕ ── */
.blog-toc {
  background: var(--as-cream);
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 32px;
}
.blog-toc-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--as-forest);
  margin-bottom: 10px;
}
.blog-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: toc;
}
.blog-toc li {
  counter-increment: toc;
  margin-bottom: 7px;
  font-size: 14px;
}
.blog-toc li::before {
  content: counter(toc) ". ";
  color: var(--as-amber);
  font-weight: 700;
}
.blog-toc a {
  color: var(--as-text-mid);
  text-decoration: none;
}
.blog-toc a:hover {
  color: var(--as-moss);
  text-decoration: underline;
}


/* ── MЕТА-СТРОКА (расстояние / время / формат) ── */
.blog-meta-line {
  font-size: 13.5px;
  color: var(--as-moss);
  font-weight: 600;
  margin-bottom: 12px;
}
.blog-meta-line b {
  color: var(--as-forest);
}


/* ── ТАБЛИЦЫ ── */
.blog-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 13px;
  border-radius: 8px;
  overflow: hidden;
}
.blog-table th {
  background: var(--as-forest);
  color: var(--as-cream);
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11.5px;
}
.blog-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--as-border);
  color: var(--as-text-mid);
}
.blog-table tr:last-child td {
  border-bottom: none;
}
.blog-table tr.highlight td {
  background: rgba(200,134,74,0.08);
  color: var(--as-forest);
  font-weight: 700;
}


/* ── СПИСКИ ── */
.blog-checklist {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.blog-checklist li {
  padding-left: 22px;
  position: relative;
  margin-bottom: 8px;
  font-size: 14px;
  color: var(--as-text-mid);
}
.blog-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--as-moss);
  font-weight: 700;
}
.blog-checklist li strong {
  color: var(--as-forest);
}

.blog-feature-list {
  list-style: none;
  margin: 14px 0;
  padding: 0;
}
.blog-feature-list li {
  padding-left: 18px;
  position: relative;
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--as-text-mid);
}
.blog-feature-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--as-text-light);
}
.blog-feature-list li strong {
  color: var(--as-forest);
}


/* ── ИНФО-БЛОК (совет / примечание) ── */
.blog-tip {
  background: rgba(200,134,74,0.1);
  border-left: 3px solid var(--as-amber);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 13.5px;
  color: var(--as-text-mid);
}
.blog-tip strong {
  color: var(--as-forest);
}


/* ── СРАВНЕНИЕ ДВУХ ВАРИАНТОВ (2 карточки) ── */
.blog-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0 24px;
}
.blog-compare-card {
  border-radius: 10px;
  padding: 16px 18px;
}
.blog-compare-card.a {
  background: rgba(74,124,89,0.08);
  border: 1px solid rgba(74,124,89,0.25);
}
.blog-compare-card.b {
  background: rgba(200,134,74,0.1);
  border: 1px solid rgba(200,134,74,0.3);
}
.blog-compare-title {
  font-weight: 700;
  font-size: 14px;
  color: var(--as-forest);
  margin-bottom: 8px;
}
.blog-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--as-text-mid);
}
.blog-compare-list li {
  margin-bottom: 5px;
  padding-left: 14px;
  position: relative;
}
.blog-compare-list li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--as-text-light);
}


/* ── КАРТОЧКИ (универсальный grid для любых блоков-плашек) ── */
.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
}
.blog-card {
  background: var(--as-cream);
  border-radius: 10px;
  padding: 16px 16px;
}
.blog-card-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--as-forest);
  margin-bottom: 5px;
}
.blog-card-text {
  font-size: 12.5px;
  color: var(--as-text-mid);
  line-height: 1.55;
}


/* ── FAQ (аккордеон, без JS-зависимости — на чистом <details>) ── */
.blog-faq-item {
  border-bottom: 1px solid var(--as-border);
}
.blog-faq-item:first-child {
  border-top: 1px solid var(--as-border);
}
.blog-faq-item summary {
  padding: 16px 0;
  font-weight: 700;
  font-size: 15px;
  color: var(--as-forest);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.blog-faq-item summary::-webkit-details-marker {
  display: none;
}
.blog-faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--as-moss);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.blog-faq-item[open] summary::after {
  transform: rotate(45deg);
}
.blog-faq-item p {
  font-size: 14px;
  color: var(--as-text-mid);
  padding-bottom: 16px;
  margin: 0;
}


/* ── CTA-БЛОК — на всю ширину, янтарный фон как на лендингах ── */
.blog-cta {
  background: var(--as-amber);
  border-radius: 0;
  padding: 40px 24px;
  text-align: center;
  margin: 48px -20px 0;  /* выходит за пределы контейнера */
}
.blog-cta p {
  color: rgba(255,255,255,0.92);
  font-size: 15px;
  margin-bottom: 18px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.blog-cta a.btn {
  display: inline-block;
  background: var(--as-forest);
  color: #fff;
  padding: 13px 30px;
  border-radius: 8px;
  text-decoration: none !important;
  font-weight: 700;
  font-size: 15px;
  transition: background 0.2s;
}
.blog-cta a.btn:hover {
  background: var(--as-forest-mid);
}


/* ── ЗАКЛЮЧИТЕЛЬНАЯ СТРОКА ── */
.blog-closing {
  font-style: italic;
  color: var(--as-text-light);
  font-size: 13.5px;
  margin-top: 30px;
  padding-top: 16px;
  border-top: 1px solid var(--as-border);
}


/* ── ИЗОБРАЖЕНИЕ В ШАПКЕ СТАТЬИ ── */
.blog-hero-image {
  width: 100%;
  max-width: 680px;
  height: auto;
  border-radius: 12px;
  margin-top: 20px;
  display: block;
}


/* ── АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ ── */
@media (max-width: 600px) {
  .blog-hero { padding: 40px 20px 36px; }
  .blog-article-body { padding: 28px 0 40px; }
  .blog-article-body h2 { font-size: 1.2rem; margin: 28px 0 10px; }
  .blog-compare,
  .blog-card-grid { grid-template-columns: 1fr; }
  .blog-table { font-size: 12px; }
  .blog-table th, .blog-table td { padding: 7px 8px; }
  .blog-cta { margin: 40px -20px 0; padding: 32px 20px; }
}
