/* Раздел статей: отдельный слой, не наследует вёрстку юридических документов. */
.guide {
  --guide-width: 680px;
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
}
.guide-wrap { max-width: 1040px; margin: 0 auto; padding: 32px 24px 80px; }
.guide-head, .guide-toc, .guide-crumbs { max-width: var(--guide-width); margin-left: auto; margin-right: auto; }
.guide-body, .guide-cta, .guide-related { max-width: 760px; margin-left: auto; margin-right: auto; }
.guide-body > :not(.guide-figure) { max-width: var(--guide-width); margin-left: auto; margin-right: auto; }
.guide-crumbs { max-width: var(--guide-width); margin: 0 auto 24px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; font-size:.85rem; color:var(--muted); }
.guide-crumbs a { color:var(--accent-ink); text-decoration:none; }
.guide-crumbs a:hover { text-decoration:underline; }
.guide-niche { display:inline-block; margin-bottom:10px; padding:.32rem .7rem; border:1px solid color-mix(in oklab,var(--accent) 25%,var(--border)); border-radius:999px; background:var(--accent-soft); color:var(--accent-ink); font-size:.78rem; font-weight:600; text-decoration:none; }
.guide-head h1 { margin:8px 0 12px; }
.guide h1 { font-family:var(--font-body); font-size:40px; line-height:1.15; font-weight:760; letter-spacing:-.02em; }
.guide h2 { font-family:var(--font-body); font-size:26px; line-height:1.25; font-weight:720; letter-spacing:-.015em; margin:48px 0 12px; scroll-margin-top:88px; }
.guide h3 { font-family:var(--font-body); font-size:19px; line-height:1.35; font-weight:680; margin:32px 0 8px; }
.guide-head h1 { margin-top:8px; }
.guide h2 + h3 { margin-top:16px; }
.guide-body > :first-child { margin-top:0; }
.guide-body p, .guide-body li { font-size:17px; line-height:1.7; }
.guide-body p { margin:0 0 16px; }
.guide-body li { margin:0 0 8px; }
.guide-body ul, .guide-body ol { padding-left:1.3em; }
.guide-body ul ul, .guide-body ol ol { margin-top:4px; }
.guide-body > p:first-child { font-size:19px; line-height:1.6; color:var(--fg); margin-bottom:24px; }
.guide-body strong { font-weight:650; }
.guide-body a { color:var(--accent-ink); text-decoration:underline; text-underline-offset:3px; text-decoration-thickness:1px; }
.guide-body a:hover { text-decoration-thickness:2px; }
.guide-body blockquote { margin:24px 0; padding:16px 20px; border-left:3px solid var(--accent); border-radius:0 12px 12px 0; background:var(--accent-soft); color:var(--fg); font-size:16px; line-height:1.6; }
.guide-body blockquote p { margin:0; }
.guide-body blockquote p + p { margin-top:10px; }
.guide-body table { display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; margin:20px 0; font-size:.92rem; }
.guide-body th, .guide-body td { border:1px solid var(--border); padding:8px 12px; text-align:left; vertical-align:top; }
.guide-body th { background:var(--surface); font-weight:650; }
.guide-figure { margin:32px auto; max-width:760px; }
.guide-figure img { display:block; width:100%; height:auto; border-radius:16px; border:1px solid var(--border); background:var(--bg); }
.guide-figure figcaption { margin-top:10px; font-size:14px; line-height:1.5; color:var(--muted); }
.guide-zoom { display:block; cursor:zoom-in; }
.guide-zoom:hover img { border-color:var(--accent); }
.guide-cover { display:block; max-width:760px; margin:24px auto 32px; }
.guide-cover img { display:block; width:100%; height:auto; aspect-ratio:1200/630; object-fit:cover; border-radius:20px; }
.guide-meta { margin:0; font-size:14px; color:var(--muted); }
.guide-meta time { font-variant-numeric:tabular-nums; }
.guide-toc { max-width:var(--guide-width); margin:0 auto 28px; padding:16px 20px; border-radius:14px; background:var(--surface); border:1px solid var(--border); }
.guide-toc-title, .guide-toc summary { margin:0 0 8px; font-family:var(--font-body); font-weight:650; font-size:15px; cursor:pointer; }
.guide-toc ul { margin:0; padding-left:0; list-style:none; }
.guide-toc li { margin:6px 0; font-size:15px; }
.guide-toc a { color:var(--accent-ink); text-decoration:none; }
.guide-toc a:hover { text-decoration:underline; }
.guide-toc-mobile { display:none; }
.guide-cta { margin-top:48px; padding:28px; border-radius:20px; background:var(--accent-soft); }
.guide-cta h2 { font-family:var(--font-body); font-size:22px; line-height:1.25; font-weight:720; margin:0 0 8px; }
.guide-cta p { margin:0 0 18px; font-size:16px; color:var(--fg); }
.guide-related { margin-top:32px; }
.guide-related > h2 { font-family:var(--font-body); font-size:20px; margin:0 0 16px; }
.guide-block-head { display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:18px; flex-wrap:wrap; }
.guide-block-head h2 { margin:0; }
.guide-mini-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.guide-mini { display:block; color:var(--fg); text-decoration:none; background:var(--surface); border:1px solid var(--border); border-radius:14px; overflow:hidden; }
.guide-mini img { display:block; width:100%; height:auto; aspect-ratio:1200/630; object-fit:cover; }
.guide-mini span { display:block; padding:12px 14px 14px; font-family:var(--font-body); font-size:16px; line-height:1.3; font-weight:650; }
.guide-mini:hover { border-color:color-mix(in oklab,var(--accent) 30%,var(--border)); }
.guide-sub { margin:0; font-size:17px; color:var(--muted); max-width:52ch; }
.guide-index-head { margin-bottom:32px; }
.guide-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; }
.guide-card { display:flex; flex-direction:column; color:var(--fg); text-decoration:none; background:var(--surface); border:1px solid var(--border); border-radius:20px; overflow:hidden; padding-bottom:20px; }
.guide-card-cover { display:block; width:100%; height:auto; aspect-ratio:1200/630; object-fit:cover; }
.guide-card-body { padding:16px 20px 0; }
.guide-card .guide-niche { margin-bottom:8px; }
.guide-card h2 { font-family:var(--font-body); font-size:20px; line-height:1.3; font-weight:700; letter-spacing:-.01em; color:var(--fg); margin:0 0 8px; }
.guide-card:hover h2 { text-decoration:underline; text-underline-offset:3px; }
.guide-card p { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; margin:0 0 12px; font-size:15px; line-height:1.55; color:var(--muted); }
.guide-card time { font-size:13px; color:var(--muted); }
.guide-empty { max-width:var(--guide-width); margin:24px auto; color:var(--muted); }
.guide-pagination { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:32px; color:var(--muted); font-size:14px; }
@media (max-width:800px) { .guide-grid { grid-template-columns:1fr; } }
@media (max-width:640px) {
  .guide-wrap { padding:20px 16px 56px; }
  .guide h1 { font-size:30px; }
  .guide h2 { font-size:23px; margin-top:40px; }
  .guide h3 { font-size:18px; }
  .guide-body > p:first-child { font-size:18px; }
  .guide-cta { padding:22px 18px; }
  .guide-toc-desktop { display:none; }
  .guide-toc-mobile { display:block; }
  .guide-mini-grid { grid-template-columns:1fr; }
}
