/* Статья блога по макету задачи 230 (mu-plugin nauka-article-layout). Токены — из темы (tokens.css). */
.na { background: var(--eg-bg) var(--eg-grid-img) 0 0 / var(--eg-cell) var(--eg-cell); padding-bottom: var(--eg-sp-60); }
.eg-main:has(> .na) { padding-bottom: 0; }
.na-wrap { width: 100%; max-width: calc(1120px + 2 * var(--eg-gutter)); margin-inline: auto; padding-inline: var(--eg-gutter); }
.na *, .na *::before, .na *::after { min-width: 0; }

/* ---------- шапка ---------- */
.na-hero.eg-sheet { background: none; border-bottom: 0; padding-top: var(--eg-sp-24); }
.na-hero .eg-crumbs { display: flex; justify-content: center; }
.na-hero .eg-crumbs__list { justify-content: center; }
.na-hero .eg-crumbs__list li:last-child { display: none; }
.na-hero .eg-crumbs__list li:nth-last-child(2) .eg-icon { display: none; }
.na-head { max-width: 900px; margin: var(--eg-sp-24) auto 0; text-align: center; }
.na-pill { display: inline-block; padding: 5px 14px; border: 1.5px solid var(--eg-line-ink); border-radius: 999px; background: var(--eg-surface); font-family: var(--eg-font-mono); font-size: 12px; line-height: 18px; letter-spacing: .06em; text-transform: uppercase; color: var(--eg-text); text-decoration: none; }
.na-pill:hover { background: var(--eg-accent-tint); }
.na-h1 { margin: var(--eg-sp-20) 0 0; font-family: var(--eg-font-heading); font-weight: 700; font-size: var(--eg-fs-h1); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
.na-h1__hl { padding: 0 .12em; border-radius: 4px; background: var(--eg-accent); color: var(--eg-on-accent); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.na-lead { max-width: 660px; margin: var(--eg-sp-16) auto 0; font-size: var(--eg-fs-lead); line-height: var(--eg-lh-lead); color: var(--eg-text-muted); text-wrap: pretty; }
.na-by { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; margin: var(--eg-sp-20) 0 0; font-size: 14px; line-height: 20px; color: var(--eg-text-muted); }
.na-by__ava { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--eg-text); color: var(--eg-accent); font-family: var(--eg-font-heading); font-weight: 700; font-size: 14px; }
.na-by__ava--l { width: 40px; height: 40px; font-size: 16px; }
.na-by__name { font-weight: 600; color: var(--eg-text); text-decoration: none; }
.na-by__name:hover { text-decoration: underline; }

/* ---------- обложка ---------- */
.na-cover { margin: var(--eg-sp-32) 0 0; }
.na-cover__img { overflow: hidden; border: 1.5px solid var(--eg-line-ink); border-radius: var(--eg-r-2, 6px); background: var(--eg-accent-tint); }
.na-cover__img img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.na-cover figcaption { margin-top: var(--eg-sp-8); text-align: center; font-size: 13px; line-height: 18px; color: var(--eg-text-muted); }

/* ---------- текст + оглавление ---------- */
.na-doc { display: grid; gap: var(--eg-sp-24); margin-top: var(--eg-sp-32); }
.na-side__sticky { display: grid; gap: var(--eg-sp-20); }
.na-toc { border: 1.5px solid var(--eg-line-ink); border-radius: var(--eg-r-2, 6px); background: var(--eg-surface); }
.na-toc > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--eg-sp-16); font-weight: 600; list-style: none; cursor: pointer; }
.na-toc > summary::-webkit-details-marker { display: none; }
.na-toc[open] > summary .eg-icon { transform: rotate(180deg); }
.na-toc__list { margin: 0; padding: 0 var(--eg-sp-16) var(--eg-sp-12); list-style: none; counter-reset: none; }
.na-toc__list li { margin: 0; padding: 0; }
.na-toc__list li::before { content: none; }
.na-toc__list a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--eg-line); font-size: 14px; line-height: 20px; color: var(--eg-text-muted); text-decoration: none; }
.na-toc__list a:hover { color: var(--eg-text); }
.na-toc__list a.is-on { border-left-color: var(--eg-text); color: var(--eg-text); font-weight: 600; }
.na-note { padding: var(--eg-sp-16); border: 1.5px dashed var(--eg-line-strong); border-radius: var(--eg-r-2, 6px); background: var(--eg-surface); font-size: 13px; line-height: 19px; color: var(--eg-text-muted); }
.na-note b { display: block; margin-bottom: 4px; font-size: 14px; color: var(--eg-accent-2-deep); }
.na-note p { margin: 0; }
.na-note a { color: var(--eg-text); }

.na-main { min-width: 0; }
.na-short { padding: var(--eg-sp-16) var(--eg-sp-20); border-left: 4px solid var(--eg-accent); background: var(--eg-surface); font-size: var(--eg-fs-prose); line-height: var(--eg-lh-prose); }
.na-short p { margin: 0; }
.na-body.eg-prose { max-width: none; margin-top: var(--eg-sp-32); }
.na-body.eg-prose > * { max-width: none; }
.na-body.eg-prose > h2 { margin-top: var(--eg-sp-40); padding-bottom: 0; border-bottom: 0; font-size: var(--eg-fs-h2); line-height: var(--eg-lh-h2); scroll-margin-top: var(--eg-sp-20); }
.na-body.eg-prose > h2:first-child { margin-top: 0; }
.na-body.eg-prose > h2 + p, .na-body.eg-prose > h3 + p { margin-top: var(--eg-sp-12); }
.na-body mark, .na-body .eg-hl { padding: 0 .15em; background: var(--eg-accent-tint); color: inherit; }
.na-body .eg-fig { margin: var(--eg-sp-32) 0 var(--eg-sp-8); }
.na-body .eg-fig img { width: 100%; height: auto; border: 1.5px solid var(--eg-line-ink); border-radius: var(--eg-r-2, 6px); background: var(--eg-surface); }
.na-body .eg-fig figcaption { text-align: center; }
.na-body .eg-callout { background: var(--eg-surface); }

/* ---------- подбор ---------- */
.na-cta { display: grid; gap: var(--eg-sp-16); margin-top: var(--eg-sp-40); padding: var(--eg-sp-24); border: 1.5px solid var(--eg-line-ink); border-radius: var(--eg-r-2, 6px); background: var(--eg-accent); color: var(--eg-on-accent); }
.na-cta h2 { margin: 0; font-family: var(--eg-font-heading); font-size: 22px; line-height: 28px; }
.na-cta p { margin: 6px 0 0; font-size: 15px; line-height: 22px; }
.na-cta__acts { display: grid; gap: var(--eg-sp-8); align-content: center; }
.na .na-btn-dark, .na .na-btn-light { justify-content: center; min-height: 48px; border: 1.5px solid var(--eg-line-ink); border-radius: 4px; font-weight: 600; text-decoration: none; }
.na .na-btn-dark { background: var(--eg-text); color: #fff; }
.na .na-btn-dark:hover { background: #2b2e36; color: #fff; }
.na .na-btn-light { background: var(--eg-surface); color: var(--eg-text); }
.na .na-btn-light:hover { background: var(--eg-accent-tint); }

/* ---------- школы ---------- */
.na-schools { margin-top: var(--eg-sp-40); }
.na-schools__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: var(--eg-sp-12); border-bottom: 2px solid var(--eg-line-ink); }
.na-schools__head h2 { margin: 0; font-family: var(--eg-font-heading); font-size: 20px; line-height: 26px; }
.na-schools__head a { font-size: 14px; color: var(--eg-text); }
.na-schools__list { margin: 0; padding: 0; list-style: none; }
.na-school { display: grid; grid-template-columns: 20px auto minmax(0, 1fr); align-items: center; gap: 8px 14px; padding: var(--eg-sp-12) 0; border-bottom: 1px solid var(--eg-line); }
.na-school__n { color: var(--eg-text-muted); }
.na-school__name { margin: 0; font-weight: 600; }
.na-school__name a { color: var(--eg-text); text-decoration: none; }
.na-school__name a:hover { text-decoration: underline; }
.na-school__mark { margin-left: 4px; font-family: var(--eg-font-heading); font-weight: 700; color: var(--eg-accent-2-deep); }
.na-school__sub { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--eg-text-muted); }
.na-school__sub abbr { text-decoration: none; cursor: help; }
.na-school__acts { grid-column: 2 / -1; display: flex; gap: var(--eg-sp-8); }
.na-schools .eg-disclosure { margin-top: var(--eg-sp-12); font-size: 12px; line-height: 17px; color: var(--eg-text-muted); }

/* ---------- подборки, FAQ, источники ---------- */
.na-rel { margin-top: var(--eg-sp-40); }
.na-rel h2, .na-faq .eg-sec h2 { margin: 0 0 var(--eg-sp-12); font-family: var(--eg-font-heading); font-size: var(--eg-fs-h2); line-height: var(--eg-lh-h2); }
.na-rel__list { display: grid; gap: var(--eg-sp-8); margin: 0; padding: 0; list-style: none; }
.na-rel__list a { display: grid; gap: 2px; padding: 12px 16px; border: 1px solid var(--eg-line-strong); border-radius: var(--eg-r-2, 6px); background: var(--eg-surface); color: var(--eg-text); text-decoration: none; }
.na-rel__list a:hover { border-color: var(--eg-line-ink); }
.na-rel__list b { font-weight: 600; }
.na-rel__list span { font-size: 13px; line-height: 18px; color: var(--eg-text-muted); }
.na-faq .eg-section { margin-top: var(--eg-sp-40); }
.na-faq .eg-sec { display: block; margin: 0; padding: 0; border: 0; }
.na-faq .eg-sec > :not(h2) { display: none; }
.na-faq .eg-faq { max-width: none; gap: 0; border-top: 1px solid var(--eg-line); }
.na-faq .eg-faq__item, .na-faq .eg-faq__item[open], .na-faq .eg-faq__item:hover { border: 0; border-bottom: 1px solid var(--eg-line); border-radius: 0; box-shadow: none; background: transparent; }
.na-faq .eg-faq__q { padding: var(--eg-sp-16) 0; font-family: var(--eg-font-body); font-weight: 600; }
.na-faq .eg-faq__q .eg-icon { background: transparent; }
.na-faq .eg-faq__a { padding: 0 0 var(--eg-sp-16); color: var(--eg-text-muted); }
.na-foot { margin-top: var(--eg-sp-40); padding-top: var(--eg-sp-24); border-top: 1px solid var(--eg-line); font-size: 14px; line-height: 21px; }
.na-foot__h { margin: 0 0 var(--eg-sp-8); font-weight: 700; }
.na-src { margin: 0; padding-left: 20px; color: var(--eg-text-muted); }
.na-src li + li { margin-top: 4px; }
.na-src a { color: var(--eg-text); }
.na-author { display: flex; gap: var(--eg-sp-12); align-items: flex-start; margin-top: var(--eg-sp-20); color: var(--eg-text-muted); }
.na-author p { margin: 0; }
.na-author a { color: var(--eg-text); }

/* ---------- читайте также ---------- */
.na-more { margin-top: var(--eg-sp-60); }
.na-more__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; padding-bottom: var(--eg-sp-12); border-bottom: 2px solid var(--eg-line-ink); }
.na-more__head h2 { margin: 0; font-family: var(--eg-font-heading); font-size: var(--eg-fs-h2); line-height: var(--eg-lh-h2); }
.na-more__head a { font-size: 14px; color: var(--eg-text); }
.na-more__grid.eg-posts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--eg-sp-20); margin-top: var(--eg-sp-20); }
.na-more__grid .eg-post--row { display: flex; flex-direction: column; gap: 0; overflow: hidden; padding: 0; border: 1.5px solid var(--eg-line-ink); border-radius: var(--eg-r-2, 6px); background: var(--eg-surface); }
.na-more__grid .eg-post--row:hover { box-shadow: 3px 3px 0 var(--eg-line-ink); }
.na-more__grid .eg-cover { width: 100%; min-height: 0; aspect-ratio: 16 / 9; margin: 0; border: 0; border-bottom: 1.5px solid var(--eg-line-ink); border-radius: 0; }
.na-more__grid .eg-cover--img img { width: 100%; height: 100%; object-fit: cover; }
.na-more__grid .eg-post__txt { padding: var(--eg-sp-16); }
.na-more__grid .eg-post__meta .eg-badge { display: none; }
.na-more__grid .eg-post__meta { font-family: var(--eg-font-mono); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--eg-text-muted); }
.na-more__grid .eg-post__title { margin-top: 8px; font-size: 18px; line-height: 24px; }
.na-more__grid .eg-post__title a { color: var(--eg-text); text-decoration: none; }
.na-more__grid .eg-post__title a::after { content: ""; position: absolute; inset: 0; }
.na-more__grid .eg-post--row { position: relative; }

/* ---------- планшет ---------- */
@media (min-width: 640px) {
  .na-cta { grid-template-columns: minmax(0, 1fr) 230px; padding: var(--eg-sp-24) var(--eg-sp-24); }
  .na-school { grid-template-columns: 20px auto minmax(0, 1fr) auto; }
  .na-school__acts { grid-column: auto; }
  .na-more__grid.eg-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* ---------- компьютер: оглавление слева, текст во всю колонку ---------- */
@media (min-width: 1024px) {
  .na-hero.eg-sheet { padding-top: var(--eg-sp-32); }
  .na-cover__img img { aspect-ratio: 21 / 9; }
  .na-doc { grid-template-columns: 240px minmax(0, 1fr); gap: 0 var(--eg-sp-60); margin-top: var(--eg-sp-40); }
  .na-side__sticky { position: sticky; top: var(--eg-sp-20); max-height: calc(100vh - 40px); overflow: auto; }
  .na-toc { border: 0; background: transparent; }
  .na-toc > summary { min-height: 0; padding: 0 0 var(--eg-sp-12); font-family: var(--eg-font-mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--eg-text-muted); pointer-events: none; }
  .na-toc > summary .eg-icon { display: none; }
  .na-toc__list { padding: 0; }
}
.na-src { list-style: decimal; }
.na-src li { padding-left: 2px; }
.na-src li::before { content: none; }
