/* ОКЕЛЬ · стиль статей: список /stati и страница статьи.
   Подключается только на этих страницах (чанк head, kind = articles или article) после main.css и catalog.css и берёт у них токены, крошки, H1, карточку статьи
   (.posts и .post – блок 10 главной), карточку проекта, «Показать ещё» и текст (.prose).
   Порядок файла: список (скрытые карточки, «Показать ещё», сетка), страница статьи (шапка, обложка, оглавление, текст, «Подберите проект», «Читайте также»), ширины.
   Стеклянных элементов на фото здесь нет. */

/* ===== список =====
   Атрибут hidden у карточки надо подтверждать явно: у .post задан display, а стиль автора сильнее встроенного. */
.post[hidden], .armore[hidden] { display: none; }
.armore { flex-direction: column; align-items: center; gap: 14px; }
.armore__note { font-size: 15px; line-height: 1.4; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.posts--list { row-gap: clamp(32px, 3.4vw, 48px); }
.post__date .draft { margin-left: 8px; }
.post__date time + .draft { margin-left: 10px; }
.post__date .draft:first-child { margin-left: 0; }

/* ===== страница статьи: шапка ===== */
.arthead { padding-bottom: 6px; }
.artmeta { margin-top: 18px; font-weight: 600; font-size: 15.5px; line-height: 1.5; color: var(--c-ink-3); font-variant-numeric: tabular-nums; }
.artmeta .draft { margin-left: 10px; }
.artmeta__expert { margin-top: 10px; font-size: 16px; line-height: 1.45; color: var(--c-ink-2); }
.artmeta__lab { margin-right: 8px; font-weight: 700; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); }

/* ===== обложка, оглавление, текст ===== */
.artbody { padding-bottom: clamp(48px, 6vw, 88px); }
.art__col { max-width: 820px; min-width: 0; }
.art__cover { position: relative; aspect-ratio: 3 / 2; margin: 0 0 clamp(24px, 3vw, 36px); overflow: hidden; border-radius: var(--r-xl); background: #12201A; }
.art__cover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art__cover .ph .i { width: 64px; height: 64px; }

.toc { margin: 0 0 clamp(24px, 3vw, 36px); border-radius: var(--r-lg); background: var(--c-soft); }
.toc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding: 14px 24px; list-style: none; cursor: pointer; font-weight: 800; font-size: 20px; line-height: 1.2; letter-spacing: -.012em; }
.toc__head::-webkit-details-marker { display: none; }
.toc__head:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: var(--r-lg); }
.toc__chev { flex: none; transition: transform .2s; }
.toc__box[open] .toc__chev { transform: rotate(180deg); }
.toc__list { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0 24px 18px; list-style: none; counter-reset: toc; }
.toc__list li { display: flex; gap: 12px; counter-increment: toc; }
.toc__list li::before { content: counter(toc) "."; flex: none; min-width: 1.7em; padding-block: 7px; font-weight: 700; font-size: 16.5px; line-height: 1.4; color: var(--c-green-700); font-variant-numeric: tabular-nums; }
.toc__list a { display: block; min-width: 0; padding-block: 7px; font-size: 16.5px; line-height: 1.4; color: var(--c-ink); text-decoration: none; transition: color .18s; }
.toc__list a:hover { color: var(--c-green-700); text-decoration: underline; text-underline-offset: 3px; }

.art__body { font-size: 18px; line-height: 1.7; overflow-wrap: anywhere; }
.art__body h2 { margin-top: 40px; }
.art__body img { display: block; max-width: 100%; height: auto; border-radius: var(--r-lg); }
.art__body figure { margin: 28px 0; }
.art__body figcaption { margin-top: 10px; font-size: 14.5px; line-height: 1.45; color: var(--c-ink-3); }
.art__body blockquote { margin: 28px 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--c-g2); font-weight: 600; color: var(--c-ink); }
.art__body hr { margin: 32px 0; border: 0; border-top: 1px solid var(--c-line); }
.art__body .lead { font-size: 1.18em; line-height: 1.55; font-weight: 500; color: var(--c-ink); }
.art__body .figrow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.art__body .figrow figure { margin: 0; }
.art__body .figrow img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.art__body .art__cta { margin-top: 32px; }
.art__body .art__cta .btn { color: #fff; text-decoration: none; white-space: normal; padding-block: 12px; }
.tblwrap { max-width: 100%; margin: 24px 0; overflow-x: auto; overflow-wrap: normal; -webkit-overflow-scrolling: touch; }   /* слова в ячейках не рвём: узкая таблица прокручивается вбок */
.tblwrap table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.tblwrap th, .tblwrap td { padding: 10px 14px; border: 1px solid var(--c-line-strong); text-align: left; vertical-align: top; }
.tblwrap th { background: var(--c-soft); font-weight: 700; color: var(--c-ink); }

/* ===== «Подберите проект» и «Читайте также» ===== */
.artpick__list { margin-bottom: clamp(28px, 3.2vw, 44px); }
.artpick__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.artpick__ask { padding: 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.artrel .sec__head { margin-bottom: clamp(24px, 2.8vw, 36px); }

/* ===== ширины ===== */
@media (min-width: 768px) and (max-width: 1023px) {
  /* в списке последняя нечётная плитка остаётся обычной (широкая плитка из блока 10 главной нужна только там, где статей три) */
  .posts--list .post:last-child:nth-child(odd) { grid-column: auto; flex-direction: column; align-items: stretch; gap: 20px; }
  .posts--list .post:last-child:nth-child(odd) .post__cover { flex: none; }
}
@media (max-width: 767px) {
  .posts--list { row-gap: 22px; }
  .art__cover { border-radius: 18px; }
  .toc__head { min-height: 56px; padding: 12px 18px; font-size: 18px; }
  .toc__list { padding: 0 18px 14px; }
  .art__body { font-size: 17px; line-height: 1.65; }
  .art__body h2 { margin-top: 32px; }
  .art__body .figrow { grid-template-columns: 1fr; gap: 12px; }
  .art__body .art__cta .btn { width: 100%; }
  .artpick__btns .btn { flex: 1 1 100%; justify-content: center; }
  .artpick__btns .btn--go { justify-content: space-between; }
}

.artpick__btns > .btn { flex-shrink:0; min-height:60px; }
.artpick__btns > .btn:not(.btn--go) { padding-inline:28px; }
.artpick__btns .btn__go { flex-shrink:0; }
