/* Статьи блога. Подключается ВМЕСТЕ с /styles.css: токены, шапка, футер и
   кнопки берутся оттуда, здесь только то, чего на главной нет, — колонка
   текста, таблицы фактов и врезки.

   Колонка 72ch: статьи регуляторные, в них длинные названия приказов и
   номера пунктов, и на 65ch они рвутся некрасиво. */

.article {
  width: min(760px, 100% - 32px);
  margin-inline: auto;
  padding-block: 40px 72px;
}

.article__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  text-decoration: none;
  margin-bottom: 24px;
}
.article__back:hover { color: var(--primary-strong); }

.article h1 {
  font-size: clamp(28px, 5.4vw, 42px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.022em;
  text-wrap: balance;
  margin-bottom: 16px;
}

/* Ответ в первых строках: модели и люди читают начало. */
.article__answer {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  border-left: 3px solid var(--primary);
  padding-left: 18px;
  margin-bottom: 28px;
}

.article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ink-3);
  padding-bottom: 20px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--hairline);
}

.article h2 {
  font-size: clamp(21px, 3.4vw, 26px);
  line-height: 1.22;
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 40px 0 14px;
}
.article h3 {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  margin: 28px 0 10px;
}

.article p { margin-bottom: 16px; color: var(--ink); }
.article p + p { margin-top: -2px; }
.article strong { font-weight: 600; }
.article a:not(.btn):not(.article__back) {
  color: var(--primary-strong);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.article ul.list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.article ul.list li {
  position: relative;
  padding-left: 20px;
  color: var(--ink);
}
.article ul.list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.article ol.steps {
  counter-reset: s;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article ol.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.article ol.steps li::before {
  content: counter(s);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary-strong);
  background: var(--primary-tint);
  border-radius: var(--radius-pill);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
}

/* Таблица фактов — то, что чаще всего цитируют. */
.table-scroll { overflow-x: auto; margin: 0 0 24px; }
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
.article th {
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 0 14px 10px 0;
  border-bottom: 1px solid var(--hairline);
}
.article td {
  padding: 12px 14px 12px 0;
  border-bottom: 1px solid var(--hairline);
  vertical-align: top;
  color: var(--ink-2);
}
.article td:first-child { color: var(--ink); font-weight: 500; }
.article tbody tr:last-child td { border-bottom: 0; }

.callout {
  background: var(--tint-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin: 0 0 24px;
}
.callout p:last-child { margin-bottom: 0; }
.callout__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.callout--warn { background: #fdf6e9; border-color: #f0d6a2; }
.callout--warn .callout__title { color: #8a5a00; }

/* Короткий ответ списком — «выжимка», её удобно цитировать целиком. */
.tldr {
  background: var(--primary-tint);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin: 0 0 32px;
}
.tldr .callout__title { color: var(--primary-strong); }
.tldr ul { display: flex; flex-direction: column; gap: 8px; }
.tldr li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink); }
.tldr li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-strong);
}

.faq { display: flex; flex-direction: column; gap: 0; margin-bottom: 24px; }
.faq details {
  border-bottom: 1px solid var(--hairline);
  padding: 14px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  float: right;
  color: var(--ink-3);
  font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 10px 0 0; color: var(--ink-2); }

.article__foot {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.article__foot p { color: var(--ink-2); font-size: 15px; margin: 0; }
.article__sources {
  font-size: 13.5px;
  color: var(--ink-3);
}
.article__sources a { color: var(--ink-2); }

/* Список статей */
.blog-list { display: flex; flex-direction: column; gap: 0; }
.blog-list a {
  display: block;
  text-decoration: none;
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
.blog-list a:hover .blog-list__title { color: var(--primary-strong); }
.blog-list__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  text-wrap: balance;
  transition: color 0.15s;
}
.blog-list__sub { color: var(--ink-2); font-size: 15px; margin-bottom: 8px; }
.blog-list__date { font-size: 12.5px; color: var(--ink-3); }

/* Таблица условных обозначений идёт в две пары «код — значение»: код во
   второй паре такой же код, и выделять надо обе колонки, а не только
   первую. */
.article table.codes td:nth-child(3) { color: var(--ink); font-weight: 500; }

@media (max-width: 560px) {
  .article { padding-block: 28px 56px; }
  .article__answer { font-size: 16px; padding-left: 14px; }
  .article h1 { letter-spacing: -0.018em; }
  .tldr, .callout { padding: 16px 16px; }
  .tldr li, .article ul.list li { font-size: 15px; }
}
