/* Оформление статей раздела /blog.
 *
 * Подключается после landing.css и берёт его переменные, поэтому шапка,
 * кнопки, блок вопросов и подвал остаются теми же, что на главной.
 * Здесь только то, чего на лендинге нет: набор длинного текста.
 *
 * Ширина колонки около 780 пикселей: при размере шрифта 17 это 70-80
 * знаков в строке, дальше текст читается хуже.
 */

.article { padding: 44px 0 8px; }

.crumbs {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--muted);
}
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }

.article h1 {
  margin: 0 0 20px;
  font-size: clamp(29px, 4.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.article .lead {
  margin: 0 0 28px;
  font-size: 19px;
  line-height: 1.55;
  color: #c3cedc;
}

.article h2 {
  margin: 46px 0 14px;
  font-size: 26px;
  line-height: 1.25;
}

.article p { margin: 0 0 16px; }

.article ul { margin: 0 0 18px; padding-left: 22px; }
.article li { margin: 8px 0; }

/* Четыре числа экзамена в одном месте, чтобы их не искать по тексту. */
.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 8px;
}
.facts > div {
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.facts b {
  display: block;
  font-size: 32px;
  line-height: 1.1;
  color: var(--accent-bright);
}
.facts span {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--muted);
}

.article .note {
  margin: 26px 0;
  padding: 14px 18px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.article .note p:last-child { margin-bottom: 0; }

.sources {
  margin: 44px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.sources p { margin: 0 0 10px; }

.blog-faq { padding: 40px 0 8px; }
.blog-faq h2 { margin: 0 0 18px; font-size: 26px; }

@media (max-width: 700px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article h2 { font-size: 23px; }
  .article .lead { font-size: 18px; }
}

/* Три числа вместо четырёх. */
.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 700px) {
  .facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts.three b { font-size: 26px; }
}

/* Перекрёстные ссылки между статьями. */
.related { margin: 36px 0 0; }
.related p { margin: 0 0 8px; font-size: 14px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.related ul { margin: 0; padding-left: 20px; }
.related li { margin: 6px 0; }

/* Кнопки призыва: сверху на коммерческой странице и внутри блока .note. */
.top-cta { margin: 0 0 30px; }
.article .note .row { margin: 4px 0 0; }
.article .note .row .btn { margin: 0; }

/* Список статей на странице /blog/. */
.post-list { list-style: none; margin: 0 0 8px; padding: 0; }
.post-list li { margin: 0 0 16px; padding: 14px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.post-list a { display: block; font-size: 18px; font-weight: 600; margin: 0 0 4px; }
.post-list span { display: block; font-size: 15px; line-height: 1.45; color: var(--muted); }

/* Зелёный блок про бесплатную тему базы знаний. */
.article .note.free {
  background: rgba(63, 178, 127, 0.12);
  border-left-color: #3fb27f;
}
.article .note.free p:first-child { margin-bottom: 12px; }
.free-list { margin: 0 0 14px; }
.free-list summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font-weight: 600;
  color: var(--text);
  background: rgba(63, 178, 127, 0.18);
  border: 1px solid #3fb27f;
  border-radius: 10px;
  cursor: pointer;
  list-style: none;
}
.free-list summary::-webkit-details-marker { display: none; }
.free-list summary::after { content: "+"; font-size: 18px; line-height: 1; }
.free-list[open] summary::after { content: "–"; }
.free-list ul { margin: 14px 0 0; }
.free-list li { margin: 6px 0; }
