/* Страница статьи */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 20px; padding-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--ink); font-weight: 600; }
.crumbs a:hover { color: var(--accent-h); }
.read-progress { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); z-index: 60; height: 3px; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

.art-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 18px; padding-bottom: 48px; }
.art-head-text { display: grid; gap: 20px; justify-items: start; }
.art-head h1 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
.art-lead { font-size: 18px; line-height: 1.6; color: var(--text); max-width: 60ch; }
.art-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 16px; border-top: 1px solid var(--line); width: 100%; }
.art-author { display: flex; align-items: center; gap: 10px; }
.art-author img { width: 36px; height: auto; }
.art-author b { display: block; font-size: 14.5px; color: var(--ink); }
.art-author span span { display: block; font-size: 12.5px; color: var(--muted); }
.art-facts { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.art-facts i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.art-cover { margin: 0; border-radius: 26px; overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); }
.art-cover img { width: 100%; height: 100%; object-fit: cover; }

.art-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; padding-bottom: 40px; }
.art-side { position: sticky; top: calc(96px + env(safe-area-inset-top, 0px)); display: grid; gap: 14px; }
.toc { padding: 20px 20px 16px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.toc b { display: block; margin-bottom: 10px; font-size: 14px; color: var(--ink); }
.toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a { display: flex; gap: 10px; padding: 7px 10px; border-radius: 10px; font-size: 14px; line-height: 1.35; color: var(--text); transition: background-color .2s ease, color .2s ease; }
.toc a::before { content: counter(toc); min-width: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.toc a:hover { background: var(--chip); color: var(--ink); }
.toc a.on { background: var(--accent-soft); color: var(--accent-h); font-weight: 600; }
.toc a.on::before { color: var(--accent-h); }
.side-cta { padding: 20px; border-radius: 20px; background: linear-gradient(150deg, #DCEBFF, #CDE3FF); display: grid; gap: 8px; }
.side-cta b { font-size: 16px; color: var(--ink); }
.side-cta p { font-size: 14px; color: var(--text); }
.side-cta .btn { margin-top: 6px; height: 46px; }

.prose { max-width: 740px; font-size: 17px; line-height: 1.75; color: var(--text); }
.prose > * + * { margin-top: 20px; }
.prose h2 { margin-top: 52px; scroll-margin-top: 96px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
.prose h2:first-child { margin-top: 0; }
.prose b { color: var(--ink); font-weight: 700; }
.prose a { color: var(--accent-h); text-decoration: underline; text-decoration-color: var(--rose); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: currentColor; }
.prose a.btn { color: var(--on-accent); text-decoration: none; }
.prose ul:not(.checklist) { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.prose ul:not(.checklist) li { position: relative; padding-left: 26px; }
.prose ul:not(.checklist) li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.prose .note { padding: 12px 16px; border-radius: 12px; border: 1.5px dashed var(--rose); font-size: 14.5px; color: var(--muted); }
.prose figure { margin-left: 0; margin-right: 0; margin-top: 28px; }
.prose figure img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; }
.prose figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.prose caption { caption-side: top; text-align: left; padding: 14px 16px 4px; font-weight: 700; color: var(--ink); }
.prose th { padding: 12px 16px; text-align: left; font-size: 13.5px; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--line); background: #F8FAFD; }
.prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: var(--ink); font-weight: 600; }

.steps-list { padding: 0; list-style: none; counter-reset: st; display: grid; gap: 12px; }
.steps-list li { counter-increment: st; position: relative; padding: 16px 18px 16px 62px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.steps-list li::before { content: counter(st); position: absolute; left: 16px; top: 15px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.checklist-box { padding: 24px; border-radius: 20px; background: var(--accent-soft); display: grid; gap: 14px; }
.checklist-box b { font-size: 17px; }
.checklist-box .checklist { padding: 0; border: 0; }
.inline-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; padding: 24px 26px; border-radius: 20px; background: var(--ink); color: #fff; }
.inline-cta div { flex: 1 1 320px; display: grid; gap: 6px; }
.inline-cta b { color: #fff; font-size: 19px; }
.inline-cta p { color: rgba(255, 255, 255, .85); font-size: 15px; line-height: 1.55; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s ease; }
.faq details[open] { border-color: var(--rose); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 20px; font-weight: 700; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-h); font-size: 18px; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; font-size: 16px; }
.draft-note { display: inline-block; padding: 4px 9px; border-radius: 999px; background: #fff2cc; color: #6b4b00; font-size: 11px; font-weight: 700; }
.draft-note-page { margin-top: 14px; }
.art-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }

/* Похожие статьи и призыв */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.post { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.post-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.post-img { aspect-ratio: 16 / 9; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.post:hover .post-img img { transform: scale(1.05); }
.post-body { flex: 1; padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.post-tag { align-self: flex-start; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); font-size: 12.5px; font-weight: 700; color: #0B4AA2; }
.post h3 { font-size: 18px; font-weight: 700; line-height: 1.3; }
.post:hover h3 { color: var(--accent-h); }
.post-meta { margin-top: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.post-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--rose); }
.cta-band { position: relative; overflow: hidden; display: grid; justify-items: center; text-align: center; gap: 16px; padding: 64px 40px; border-radius: 30px; background: linear-gradient(135deg, #DCEBFF 0%, #C7DFFF 100%); border: 1px solid var(--accent-soft-2); }
.cta-band > * { position: relative; }
.cta-band > p { max-width: 56ch; font-size: 17px; color: var(--text); }
.cb-orn { position: absolute; right: 30px; bottom: 20px; width: 170px; opacity: .55; }
#contact { margin-top: 72px; }

@media (max-width: 1040px) {
  .art-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art-side { position: static; }
  .side-cta { display: none; }
  .posts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .art-head { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art-cover { order: -1; }
}
@media (max-width: 640px) {
  .art-head h1 { font-size: 28px; }
  .art-lead { font-size: 16.5px; }
  .prose { font-size: 16px; }
  .prose h2 { margin-top: 40px; }
  .posts { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 20px; }
  .cb-orn { width: 110px; opacity: .35; }
}
@media (prefers-reduced-motion: reduce) { .read-progress { display: none; } }
.inline-cta .btn-accent { box-shadow: none; }
