.doc { max-width: 820px; margin: 0 auto; font-size: 17px; line-height: 1.65; }
.doc-head { margin: 24px 0 8px; }
.doc-kicker { margin: 0; color: var(--brand, var(--accent)); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; }
.doc-head h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 6px 0 12px; }
.doc-actions { margin: 18px 0 0; }
.doc .btn { display: inline-block; padding: 12px 18px; border-radius: 12px; background: var(--brand, var(--accent)); color: #fff; text-decoration: none; font-weight: 600; }
.doc-toc { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 28px 0; }
.doc-toc h2 { font-size: 19px; margin: 0 0 8px; }
.doc-toc ol { margin: 0; padding-inline-start: 22px; columns: 2 260px; column-gap: 32px; }
.doc-toc li { margin: 4px 0; break-inside: avoid; }
.doc section { margin: 48px 0; scroll-margin-top: 16px; }
.doc section h2 { font-size: 26px; line-height: 1.25; margin: 0 0 14px; padding-inline-start: 14px; border-inline-start: 4px solid var(--brand, var(--accent)); }
.doc h3 { font-size: 20px; margin: 28px 0 8px; }
.doc h4 { font-size: 18px; margin: 0 0 6px; }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-inline-start: 24px; margin: 0 0 16px; }
.doc li { margin: 6px 0; }
.doc .steps { counter-reset: step; list-style: none; padding-inline-start: 0; }
.doc .steps > li { counter-increment: step; position: relative; padding-inline-start: 42px; margin: 12px 0; }
.doc .steps > li::before { content: counter(step); position: absolute; inset-inline-start: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--brand, var(--accent)); color: #fff; font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.doc-note { background: var(--chip-bg, var(--card)); border-radius: 14px; padding: 14px 18px; margin: 18px 0; }
.doc-note ul { margin-bottom: 0; }
.doc-note p:last-child { margin-bottom: 0; }
.doc-important { background: #fff4e5; color: #5f3700; border-inline-start: 4px solid #f29900; border-radius: 0 12px 12px 0; padding: 12px 16px; }
.doc-small { font-size: 14px; color: var(--muted); }
.doc code { font: 15px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.doc pre { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; margin: 8px 0 12px; }
.doc pre code { border: 0; padding: 0; background: none; white-space: pre; }
.doc-var { font-weight: 700; color: var(--brand, var(--accent)); }
.doc-example { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 6px; margin: 16px 0; }
.table-wrap { overflow-x: auto; margin: 10px 0 14px; }
.doc table { font-size: 16px; }
.doc th { background: var(--card); }
.doc td:first-child { font-weight: 600; }
.doc-shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin: 22px 0; }
.doc-shots img { width: 240px; max-width: 46%; height: auto; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 16px 36px -22px rgba(16, 40, 80, .45); }
.doc-shots--small img { width: 150px; border-radius: 28px; }
.doc-shots figcaption { flex-basis: 100%; text-align: center; color: var(--muted); font-size: 14px; }
.doc details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
.doc summary { font-weight: 600; cursor: pointer; }
.doc details[open] summary { margin-bottom: 8px; }
.doc details p { margin: 0; }
@media (prefers-color-scheme: dark) { .doc-important { background: #3a2a10; color: #ffdca8; } }
@page { margin: 16mm 15mm; }
@media print {
  header.top, footer, .doc-actions, .lang-offer { display: none; }
  .doc { max-width: none; font-size: 10.5pt; line-height: 1.5; }
  .doc section { margin: 0 0 22pt; }
  .doc-toc { break-after: page; }
  .doc h2, .doc h3, .doc h4 { break-after: avoid; }
  .doc-example, figure, tr, details, .doc-note, .doc-important, .steps > li { break-inside: avoid; }
  .doc details { border: 0; padding: 0; }
  .doc details > p { display: block; }
  .doc a { color: inherit; }
  .doc pre code { white-space: pre-wrap; }
  .doc-shots { margin: 10pt 0; }
  .doc-shots img { width: 150px; box-shadow: none; }
  .doc-shots--small img { width: 100px; }
}
