/* NeoLoss — журнал: страница статьи. Токены — styles.css, карточки статей — .post в styles.css */

/* ---------- шапка статьи ---------- */
.art__hero { padding-top: 16px; }
.art__head { position: relative; overflow: hidden; display: grid; justify-items: start; padding: 40px 52px 36px; border-radius: var(--r-xl); }
.art__crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 26px; font-size: 14px; color: var(--ink-3); }
.art__crumbs a { color: var(--ink-3); transition: color .2s ease; }
.art__crumbs a:hover { color: var(--blue); }
.art__crumbs .icon { width: 14px; height: 14px; }
.art__tag { background: #fff; box-shadow: 0 1px 2px rgb(16 32 64 / .06); }
.art__title { margin-top: 18px; max-width: 22ch; font-size: clamp(2rem, 1.3rem + 2.2vw, 3.25rem); line-height: 1.08; font-weight: 300; letter-spacing: -.033em; text-wrap: balance; }
.art__lead { margin-top: 18px; max-width: 62ch; font-size: 18px; line-height: 1.55; color: var(--ink-2); }
.art__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; padding-top: 22px; width: 100%; border-top: 1px solid rgb(16 40 90 / .08); }
.art__meta img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px #fff; }
.art__meta p { display: grid; line-height: 1.3; }
.art__meta b { font-size: 15.5px; font-weight: 600; }
.art__meta span { font-size: 13.5px; color: var(--ink-3); }
.art__facts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.art__facts li { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px; border-radius: var(--r-pill); background: rgb(255 255 255 / .7); font-size: 13.5px; color: var(--ink-2); }
.art__facts .icon { width: 16px; height: 16px; color: var(--blue); }

/* ---------- текст и оглавление ---------- */
.art__grid { display: grid; grid-template-columns: 260px minmax(0, 720px); justify-content: center; gap: 64px; padding-top: 48px; }
.art__side { position: sticky; top: 104px; align-self: start; }
.art__toc > p { margin-bottom: 12px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-4); }
.art__toc ol { display: grid; gap: 2px; border-left: 2px solid #E8EEF6; }
.art__toc a { display: block; margin-left: -2px; padding: 7px 0 7px 14px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.4; color: var(--ink-3); transition: color .2s ease, border-color .2s ease; }
.art__toc a:hover { color: var(--ink); }
.art__toc a.is-on { border-left-color: var(--blue); color: var(--blue-hover); font-weight: 500; }
.art__cta-mini { margin-top: 28px; padding: 18px; border-radius: 20px; background: var(--blue-50); }
.art__cta-mini p { display: grid; gap: 2px; margin-bottom: 14px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); }
.art__cta-mini b { font-size: 15px; color: var(--ink); }

.prose { font-size: 17.5px; line-height: 1.7; color: var(--ink-2); }
.prose > * + * { margin-top: 18px; }
.prose h2 { margin-top: 52px; scroll-margin-top: 96px; font-size: clamp(1.5rem, 1.2rem + .8vw, 1.9rem); line-height: 1.2; font-weight: 500; letter-spacing: -.022em; color: var(--ink); }
.prose h3 { margin-top: 32px; font-size: 19px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--blue); text-decoration: underline; text-decoration-color: rgb(11 107 229 / .3); text-underline-offset: 3px; }
.prose ul, .prose ol { display: grid; gap: 10px; padding-left: 0; }
.prose ul > li { position: relative; padding-left: 28px; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .68em; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); opacity: .75; }
.prose ol { counter-reset: li; }
.prose ol > li { position: relative; padding-left: 40px; counter-increment: li; }
.prose ol > li::before { content: counter(li); position: absolute; left: 0; top: .15em; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--blue-100); color: var(--blue); font-size: 14px; font-weight: 600; line-height: 1; }

/* «Коротко» и врезки */
.prose .tldr { padding: 22px 26px; border-radius: 22px; background: linear-gradient(135deg, #EEF5FF, #F5F3FF); }
.prose .tldr > p:first-child { margin-bottom: 10px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); }
.prose .tldr ul { gap: 8px; font-size: 16px; line-height: 1.55; }
.prose .note { display: grid; gap: 6px; padding: 18px 22px; border-radius: 18px; background: var(--surface-2); box-shadow: inset 3px 0 0 var(--blue); font-size: 16px; line-height: 1.6; }
.prose .note b:first-child { color: var(--ink); }
.prose .note--warn { background: #FFF6EC; box-shadow: inset 3px 0 0 #E08A2E; }
.prose .note--ok { background: #EEF9F4; box-shadow: inset 3px 0 0 var(--mint); }
.prose .note ul { margin-top: 6px; gap: 6px; }

/* крупные цифры */
.prose .figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-top: 24px; }
.prose .figs > div { display: grid; gap: 4px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #E8EEF6, 0 10px 30px -24px rgb(16 40 90 / .3); }
.prose .figs b { font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; color: var(--blue); font-variant-numeric: tabular-nums; }
.prose .figs span { font-size: 14px; line-height: 1.45; color: var(--ink-3); }

/* таблицы */
.prose .table { overflow-x: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px #E8EEF6; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose th { padding: 12px 16px; background: var(--surface-2); font-size: 13px; font-weight: 600; text-align: left; color: var(--ink-3); white-space: nowrap; }
.prose td { padding: 12px 16px; border-top: 1px solid #EEF2F7; vertical-align: top; }
.prose td:first-child { font-weight: 500; color: var(--ink); }
.prose .table-note { margin-top: 10px; font-size: 13.5px; line-height: 1.5; color: var(--ink-3); }

/* дневник по неделям */
.prose .steps { display: grid; gap: 0; margin-top: 24px; }
.prose .steps > div { position: relative; display: grid; gap: 4px; padding: 0 0 26px 34px; }
.prose .steps > div::before { content: ""; position: absolute; left: 6px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--blue); }
.prose .steps > div::after { content: ""; position: absolute; left: 11px; top: 26px; bottom: 2px; width: 2px; background: #DCE7F6; }
.prose .steps > div:last-child::after { display: none; }
.prose .steps b { color: var(--ink); font-size: 16px; }
.prose .steps .w { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: var(--r-pill); background: var(--mint-100); color: var(--mint); font-size: 13px; font-weight: 600; }
.prose .steps p { font-size: 16px; line-height: 1.6; }

.art__disclaimer { display: flex; gap: 10px; margin-top: 44px !important; padding-top: 22px; border-top: 1px solid #EEF2F7; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.art__disclaimer .icon { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ink-4); }

/* ---------- призыв к записи ---------- */
.art__cta { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 44px 52px; border-radius: var(--r-xl); }
.art__cta h2 { font-size: clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.art__cta p { margin-top: 10px; max-width: 52ch; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.art__cta .btn { flex: none; }
.art__more .blog__head { margin-bottom: 28px; }

/* ---------- планшет и телефон ---------- */
@media (max-width: 1080px) {
  .art__grid { grid-template-columns: minmax(0, 720px); gap: 0; }
  .art__side { position: static; order: 2; }
  .art__toc { display: none; }
  .art__cta-mini { margin-top: 40px; }
}
@media (max-width: 760px) {
  .art__head { padding: 26px 20px 24px; border-radius: var(--r-lg); }
  .art__crumbs { margin-bottom: 18px; }
  .art__lead { font-size: 16.5px; }
  .art__facts { margin-left: 0; }
  .art__grid { padding-top: 32px; }
  .prose { font-size: 16.5px; }
  .prose h2 { margin-top: 40px; }
  .prose .tldr { padding: 18px 18px; }
  .art__cta { flex-direction: column; align-items: flex-start; padding: 30px 22px; border-radius: var(--r-lg); }
  .art__cta .btn { width: 100%; }
}
