/* Тип экрана «Документ» (docs/design/document/README.md): колонка чтения ≤ 720 px, h1 36, оглавление с текущим разделом,
   «Поделиться», сертификат, печать без оболочки. Страницы модулей дописывают своё в outcomes.css, practice.css, company.css. */

/* ——— Рамка: шапка с названием документа, действия, подвал ——— */
.doc-bar .wrap { gap: 0 12px; }
.doc-bar-title { flex: 1 1 0; min-width: 0; text-align: center; font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transform: translateY(4px);
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-base) var(--ease-out); pointer-events: none; }
.doc-past-title .doc-bar-title { opacity: 1; transform: none; }
body.doc-frame .doc-tools { margin-left: 0; }
.doc-tools .doc-share .btn { min-height: 36px; height: 36px; padding: 0 12px; font-size: var(--fs-small); border-radius: var(--r-s); }
.foot-doc .doc-foot-sign { display: flex; align-items: center; gap: 10px; margin: 0; }
.foot-doc .foot-mark { width: 20px; height: 20px; color: var(--ink); flex: none; }
@media (max-width: 720px) { .doc-bar-title { display: none; } .doc-tools .doc-share { display: none; } }

/* Поделиться · скопировать · печать */
.doc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.doc-share :is(button, .btn) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.doc-share .ic { flex: none; }
.doc-share .is-done { color: var(--ok); border-color: currentColor; }
html:not(.js) :is(.doc-share [data-doc-copy], .doc-share [data-doc-share], .doc-anchor, .doc-search) { display: none; }

/* ——— Колонка чтения ——— */
.doc-prose { --doc-col: 680px; font-size: var(--fs-sub); line-height: 1.6; }
.doc-prose :is(p, li, td, dd) { max-width: var(--doc-col); }
.doc-prose a:not(.btn) { text-underline-offset: .18em; text-decoration-thickness: 1px; }
.doc-head h1 { margin: 0; font-size: var(--fs-h1); max-width: 18em; text-wrap: balance; }
.doc-head .lead { margin: 14px 0 0; color: var(--muted); max-width: 36em; text-wrap: pretty; }
.doc-kicker { margin: 0 0 12px; font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.doc-anchor { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-left: 6px; vertical-align: middle;
  border-radius: var(--r-s); color: var(--faint); opacity: 0; transition: opacity var(--t-quick) var(--ease-out), color var(--t-quick) var(--ease-out); }
:is(h2:hover, h2:focus-within) > .doc-anchor, .doc-anchor:focus-visible { opacity: 1; }
.doc-anchor:hover { color: var(--accent); background: var(--accent-soft); }
@media (hover: none) { .doc-anchor { opacity: .7; } }
::highlight(doc-hit) { background-color: var(--gold-soft); color: var(--ink); }

/* ——— «Помощь»: оглавление слева, колонка чтения ——— */
.doc-page main.wrap { padding-top: 32px; }
.doc-help { display: grid; grid-template-columns: 248px minmax(0, 720px); grid-template-rows: auto 1fr; justify-content: center; column-gap: clamp(40px, 6vw, 88px); row-gap: 0; }
.doc-help .doc-head { grid-area: 1 / 2; padding: 8px 0 40px; border-bottom: 1px solid var(--line); margin-bottom: 48px; }
.doc-search { grid-area: 1 / 1; align-self: start; margin-top: 8px; position: sticky; top: calc(var(--header-h) + 20px); z-index: 2; }
.doc-search .f-search { display: block; }
.doc-search input { width: 100%; min-height: 40px; height: 40px; border-radius: var(--r-s); background: var(--surface); font-size: var(--fs-small); }
.doc-help .doc-toc { grid-column: 1; grid-row: 1 / 3; margin-top: 72px; align-self: start; position: sticky; top: calc(var(--header-h) + 84px);
  max-height: calc(100vh - var(--header-h) - 108px); display: flex; flex-direction: column;
  background: none; border: 0; border-radius: 0; box-shadow: none; padding: 0; font-size: var(--fs-small); }
.doc-help .doc-toc details { display: flex; flex-direction: column; min-height: 0; }
.doc-toc summary { display: flex; align-items: center; gap: 8px; list-style: none; padding: 0 0 12px; font: 650 var(--fs-small) var(--f-body); color: var(--ink); cursor: default; }
.doc-toc summary::-webkit-details-marker { display: none; }
.doc-toc summary::after { content: none !important; }
.doc-toc summary .ic, .doc-toc-now { display: none; }
.doc-toc > details > ol { overflow-y: auto; overscroll-behavior: contain; padding: 0 0 24px; margin: 0; scrollbar-width: thin; }
.doc-help .doc-toc li li a { display: block; padding: 5px 10px 5px 14px; border: 0; border-radius: 0 var(--r-xs) var(--r-xs) 0; box-shadow: inset 1px 0 0 var(--line);
  color: var(--muted); text-decoration: none; line-height: var(--lh-snug); transition: color var(--t-quick) var(--ease-out), box-shadow var(--t-quick) var(--ease-out); }
.doc-help .doc-toc li li a:hover { color: var(--ink); box-shadow: inset 1px 0 0 var(--field); background: none; }
.doc-help .doc-toc li li a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 2px 0 0 var(--gold); }
.doc-help .doc-toc > details > ol > li { margin-bottom: 18px; }
.doc-help .doc-toc > details > ol > li > span { display: block; margin: 0 0 6px; font-weight: 600; color: var(--muted); transition: color var(--t-quick) var(--ease-out); }
.doc-help .doc-toc > details > ol > li.is-current > span { color: var(--ink); }
.doc-help .docs-body { grid-area: 2 / 2; gap: 64px; max-width: none; min-width: 0; }
.doc-help .docs-body section { gap: 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-help .docs-body section[hidden] { display: none; }
.doc-help .docs-body h2 { margin: 0; font-size: var(--fs-h2); max-width: 22em; }
/* Название части («Студентам», «Компаниям») — только у первого раздела части, отбивкой сверху */
.doc-help .docs-tag { order: -1; font-size: var(--fs-small); font-weight: 650; color: var(--muted); padding-top: 22px; border-top: 1px solid var(--line); margin-bottom: 6px; }
.doc-help section:has(.docs-tag:not(.st, .co, .vu)) + section:has(.docs-tag:not(.st, .co, .vu)) .docs-tag,
.doc-help section:has(.docs-tag.st) + section:has(.docs-tag.st) .docs-tag,
.doc-help section:has(.docs-tag.co) + section:has(.docs-tag.co) .docs-tag,
.doc-help section:has(.docs-tag.vu) + section:has(.docs-tag.vu) .docs-tag,
.doc-help section:first-of-type .docs-tag, .doc-help .is-filtered .docs-tag { display: none; }
.doc-help .docs-tag.st { color: var(--accent); }
.doc-help .docs-tag.co { color: var(--gold-ink); }
.doc-help .docs-tag.vu { color: var(--ok); }
.doc-prose .steps { gap: 14px; }
.doc-prose .steps > li { padding-left: 40px; }
.doc-prose .steps > li::before { top: .2em; }
.doc-prose .docs-list { gap: 10px; padding-left: 22px; }
.doc-prose .docs-list li::marker { color: var(--faint); }
.doc-prose .docs-tip { font-size: var(--fs-body); max-width: var(--doc-col); border: 0; box-shadow: inset 2px 0 0 var(--accent); border-radius: 0 var(--r-m) var(--r-m) 0; padding: 12px 16px; }
.doc-prose .path { font-size: .82em; }
.doc-prose kbd { font-size: .74em; padding: 2px 6px; box-shadow: inset 0 -1px 0 var(--line); background: var(--surface); color: var(--ink); }
.doc-help .docs-roles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.doc-help .docs-roles > div { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 18px 20px 20px 0; font-size: var(--fs-body); }
.doc-help .docs-roles > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.doc-help .docs-roles p { font-size: var(--fs-small); }
.doc-help .faq { padding: 14px 0; font-size: var(--fs-body); max-width: var(--doc-col); }
.doc-help .faq summary { font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.doc-help .faq summary::-webkit-details-marker { display: none; }
.doc-help .faq summary::after { content: "+"; color: var(--muted); font-weight: 400; transition: transform var(--t-base) var(--ease-out); }
.doc-help .faq[open] summary::after { transform: rotate(45deg); }
.doc-page .docs-cta { background: none; border: 0; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; padding: 28px 0 0; }
.doc-page .docs-cta p { font-size: var(--fs-h3); }
.doc-found { margin: -40px 0 0; font-size: var(--fs-small); color: var(--muted); }
.doc-empty { display: grid; justify-items: start; gap: 10px; font-size: var(--fs-body); }
.doc-empty[hidden] { display: none; }
.doc-empty b { font-size: var(--fs-h3); }
.doc-empty p { margin: 0; color: var(--muted); }
/* Клавиши: таблица в две колонки, группы — строкой-заголовком */
.doc-keys { width: 100%; max-width: var(--doc-col); border-collapse: collapse; font-size: var(--fs-body); }
.doc-keys :is(th, td) { text-align: left; padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: baseline; }
.doc-keys thead th { font-size: var(--fs-caption); font-weight: 600; color: var(--muted); }
.doc-keys tbody th { padding-top: 22px; font-size: var(--fs-small); font-weight: 650; color: var(--ink); }
.doc-keys td:first-child { width: 42%; white-space: nowrap; }
.doc-keys kbd + kbd { margin-left: 2px; }

@media (max-width: 1100px) { .doc-help { grid-template-columns: 220px minmax(0, 1fr); column-gap: 40px; } }
/* Телефон и планшет: заголовок, поиск, свёрнутое оглавление с текущим разделом — липкой строкой под шапкой */
@media (max-width: 900px) {
  .doc-page main.wrap { padding-top: 20px; }
  .doc-prose { font-size: var(--fs-body); }
  .doc-help { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .doc-help :is(.doc-head, .doc-search, .doc-toc, .docs-body) { grid-area: auto; grid-column: 1; }
  .doc-help .doc-head { padding: 0 0 20px; margin-bottom: 16px; border: 0; }
  .doc-search { position: static; margin: 0 0 8px; }
  .doc-search input { height: 44px; min-height: 44px; font-size: 16px; }
  .doc-help .doc-toc { position: sticky; top: var(--header-h); z-index: 5; max-height: none; grid-row: auto; margin: 0 -16px 28px; padding: 0 16px;
    background: var(--bg); box-shadow: inset 0 -1px 0 var(--line); }
  .doc-toc summary { min-height: 48px; padding: 0; cursor: pointer; }
  .doc-toc summary .ic { display: block; margin-left: auto; color: var(--muted); flex: none; transition: transform var(--t-base) var(--ease-out); }
  .doc-toc details[open] summary .ic { transform: rotate(180deg); }
  .doc-toc-label { flex: none; }
  .doc-toc-now { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-weight: 500; }
  .doc-toc-now:not(:empty)::before { content: "/"; margin-right: 8px; color: var(--faint); }
  .js .doc-help .doc-toc > details > ol { position: absolute; left: 0; right: 0; top: 100%; max-height: min(62vh, 520px); padding: 16px;
    background: var(--raised); box-shadow: var(--shadow); border-radius: 0 0 var(--r-l) var(--r-l); }
  .doc-help .docs-body { gap: 48px; }
  .doc-help .docs-body section { scroll-margin-top: calc(var(--header-h) + 64px); }
  .doc-found { margin: -20px 0 0; }
  .doc-help .docs-roles { grid-template-columns: minmax(0, 1fr); }
  .doc-help .docs-roles > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .doc-keys td:first-child { white-space: normal; width: 44%; }
}


/* ——— Сертификат: отметка «действителен», лист, «Проверить подлинность» с QR; печать — один лист A4 ——— */
.cert-page main.wrap { padding-top: clamp(20px, 4vh, 48px); }
.cert { --cert-w: 820px; position: relative; width: 100%; max-width: var(--cert-w); margin: 0 auto; display: flex; flex-direction: column; }
.cert-ok { display: flex; align-items: center; gap: 18px; padding: 18px clamp(20px, 4vw, 32px); color: var(--ok); background: var(--ok-soft);
  border: 1px solid color-mix(in srgb, var(--ok) 22%, transparent); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.cert-seal { position: relative; flex: none; width: 64px; height: 64px; display: grid; place-items: center; }
.cert-seal svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.cert-seal .s-ring { fill: var(--surface); stroke: currentColor; stroke-width: 1.5; }
.cert-seal .s-arc { fill: none; stroke: var(--gold); stroke-width: 2.5; stroke-linecap: round; }
.cert-seal .s-dot { fill: var(--gold); }
.cert-seal .ic { position: relative; stroke-width: 2.2; }
.cert-ok-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cert-ok-text :is(b, h1) { margin: 0; font-size: var(--fs-h3); font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.cert-ok-text span { font-size: var(--fs-small); color: var(--ink); opacity: .78; }
.cert-sheet { position: relative; overflow: hidden; isolation: isolate; flex: 1; display: flex; flex-direction: column; padding: clamp(24px, 5vw, 56px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); box-shadow: var(--shadow); }
.cert-sheet > :not(.cert-traj) { position: relative; z-index: 1; }
.cert-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 20px; font-size: var(--fs-small); color: var(--muted); }
.cert-brand { display: inline-flex; align-items: center; gap: 10px; }
.cert-brand .mark { width: 24px; height: 24px; color: var(--ink); flex: none; }
.cert-no .code { font: 500 var(--fs-small) var(--f-code); color: var(--ink); letter-spacing: .04em; }
.cert-lead { margin: clamp(32px, 6vw, 56px) 0 10px; font-size: var(--fs-sub); color: var(--muted); }
.cert-name { margin: 0; font-size: clamp(36px, 5.6vw, 60px); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; overflow-wrap: anywhere; text-wrap: balance; max-width: 14em; }
.cert-what { margin: 14px 0 0; font-size: var(--fs-sub); max-width: 36em; }
.cert-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 36px 0 0; border-bottom: 1px solid var(--line); }
.cert-facts div { padding: 14px 16px 14px 0; border-top: 1px solid var(--line); margin-top: -1px; }
.cert-facts dt { font-size: var(--fs-caption); color: var(--muted); line-height: var(--lh-snug); }
.cert-facts dd { margin: 4px 0 0; font: 750 26px/1.1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cert-facts .main dd { color: var(--accent); }
.cert-note { margin: 18px 0 0; font-size: var(--fs-small); color: var(--muted); max-width: 64ch; }
.cert-check { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 4px 24px; margin-top: auto; padding-top: 40px; }
.cert-check::before { content: ""; grid-column: 1 / -1; border-top: 1px solid var(--line); margin-bottom: 24px; }
.cert-qr { width: 104px; padding: 8px; box-sizing: border-box; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-s); line-height: 0; }
.cert-qr svg { width: 100%; height: auto; }
.cert-verify h2 { margin: 0 0 4px; font-size: var(--fs-sub); font-weight: 700; letter-spacing: -.01em; }
.cert-verify p { margin: 0 0 6px; font-size: var(--fs-small); color: var(--muted); max-width: 46ch; }
.cert-verify a { font: 500 12.5px/1.4 var(--f-code); overflow-wrap: anywhere; }
.cert-issued { margin: 0; text-align: right; }
.cert-issued dt { font-size: var(--fs-caption); color: var(--muted); }
.cert-issued dd { margin: 2px 0 0; font-weight: 650; white-space: nowrap; }
.cert-sheet .cert-traj { top: 72px; bottom: auto; right: -2px; width: min(38%, 300px); opacity: .9; }
.cert-bad { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 24%, transparent); }
.cert-bad .cert-seal, .cert-seal-q { border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1.5px currentColor; }
.cert-find { --cert-w: 640px; }
.cert-find > .cert-sheet:first-child { border-radius: var(--r-xl); }
.cert-seal-q { color: var(--ok); width: 56px; height: 56px; }
.cert-find-h1 { margin: 20px 0 8px; font-size: var(--fs-h1); }
.cert-find-h { margin: 0 0 16px; font-size: var(--fs-h3); }
.cert-find-lead { margin: 0 0 28px; color: var(--muted); font-size: var(--fs-sub); max-width: 34em; }
.cert-find .cert-lookup { width: 100%; gap: 8px; }
.cert-find .cert-lookup input { height: 52px; font-size: var(--fs-sub); letter-spacing: .06em; }
.cert-find .cert-lookup button { height: 52px; padding: 0 22px; }
.cert-find .helptext { margin: 0; font-size: var(--fs-small); color: var(--muted); }
.cert-actions { width: 100%; max-width: 820px; margin: 20px auto 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.cert-actions .link-quiet { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cert-after { width: 100%; max-width: 820px; margin: 24px auto 0; box-sizing: border-box; }
@media (max-width: 640px) {
  .cert-ok { gap: 14px; padding: 14px 18px; border-radius: var(--r-l) var(--r-l) 0 0; }
  .cert-seal { width: 48px; height: 48px; }
  .cert-ok-text :is(b, h1) { font-size: var(--fs-sub); }
  .cert-sheet { border-radius: 0 0 var(--r-l) var(--r-l); }
  .cert-sheet .cert-traj { display: none; }
  .cert-check { grid-template-columns: auto minmax(0, 1fr); }
  .cert-qr { width: 88px; }
  .cert-facts { grid-template-columns: 1fr 1fr; }
  .cert-facts dd { font-size: 20px; hyphens: auto; }
  .cert-facts .wide { grid-column: 1 / -1; }
  .cert-issued { grid-column: 1 / -1; text-align: left; display: flex; gap: 8px; margin-top: 12px; }
  .cert-issued dd { margin: 0; }
  .cert-actions .doc-share { width: 100%; }
  .cert-actions .doc-share > * { flex: 1 1 auto; }
}


/* ——— Резюме по ссылке и страница студента: рамка вокруг листа (сам лист — тема оформления, его не трогаем) ——— */
.pub-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 20px; }
.pub-who { display: flex; flex-direction: column; margin: 0; min-width: 0; }
.pub-who b { font-size: var(--fs-sub); letter-spacing: -.01em; color: var(--ink); }
.pub-who span { font-size: var(--fs-small); color: var(--muted); }
.pub-bar .actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pub-bar .actions .primary { display: inline-flex; align-items: center; gap: 8px; }
.doc-cta { position: fixed; z-index: 40; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px;
  width: max-content; max-width: calc(100% - 32px); padding: 8px 8px 8px 20px; box-sizing: border-box; background: var(--raised); border: 1px solid var(--line);
  border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity var(--t-base) var(--ease-out), transform var(--t-move) var(--ease-spring); }
.doc-cta.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.doc-cta-who { display: flex; flex-direction: column; min-width: 0; margin-right: 8px; line-height: var(--lh-snug); }
.doc-cta-who b { font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-cta-who span { font-size: var(--fs-caption); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 32ch; }
.doc-cta .btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; height: 40px; padding: 0 16px; border-radius: 999px; flex: none; }
.doc-cta .is-done { color: var(--ok); }
@media (max-width: 640px) {
  .pub-bar .actions { width: 100%; }
  .pub-bar .actions > * { flex: 1 1 auto; justify-content: center; }
  .pub-bar .actions { flex-wrap: nowrap; }
  .pub-bar .doc-share { order: 2; flex: none; flex-wrap: nowrap; }
  .pub-bar .doc-share > * { width: 44px; height: 44px; padding: 0; }
  :is(.pub-bar .doc-share, .doc-cta, .co-acts) .btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .doc-cta { left: 0; right: 0; bottom: 0; width: auto; max-width: none; transform: translateY(100%); border-radius: var(--r-l) var(--r-l) 0 0;
    border-width: 1px 0 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); }
  .doc-cta.is-on { transform: none; }
  .doc-cta-who { flex: 1 1 auto; }
  .doc-cta .btn { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .doc-cta .btn.primary { width: auto; padding: 0 16px; }
  .doc-cta .btn.primary span { position: static; width: auto; height: auto; clip-path: none; }
  body.sc-body .sc-actions { flex-wrap: nowrap; }
  body.sc-body .sc-actions > .sc-more { flex: none; }
}


/* Цифры строкой (выпускники, компания): подпись над числом, волосяные разделители */
.doc-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); margin: 36px 0 0; }
.doc-nums div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.doc-nums dt { font-size: var(--fs-small); color: var(--muted); }
.doc-nums dd { margin: 4px 0 0; font: 750 var(--fs-h2)/1.1 var(--f-display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .doc-nums { grid-template-columns: minmax(0, 1fr); gap: 14px; } .doc-nums div + div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); } }

/* ——— Письмо: одна спокойная колонка (анкета выпускника и её итог) ——— */
.doc-col { width: 100%; max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.doc-letter main.wrap { padding-top: clamp(24px, 5vh, 56px); }
.doc-col > .doc-head .lead { font-size: var(--fs-sub); }
.doc-privacy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 16px 0 0; font-size: var(--fs-small); color: var(--muted); }
.doc-done-mark { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%; background: var(--surface-2); color: var(--muted); }
.doc-done-mark.ok { background: var(--ok-soft); color: var(--ok); }
.doc-done-mark.warn { background: var(--warn-soft); color: var(--warn); }
.doc-done .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }

/* ——— Печать: без оболочки, ссылки с адресами, блоки не рвутся ——— */
@page { size: A4; margin: 16mm 15mm 18mm; }
@media print {
  :is(.doc-share, .doc-anchor, .doc-search, .doc-toc, .doc-empty, .doc-found, .doc-bar, .foot-doc, .docs-cta, .toasts, .skip) { display: none !important; }
  main.wrap { padding: 0 !important; max-width: none; }
  .doc-help { display: block; }
  .doc-help .docs-body section[hidden] { display: flex !important; }
  .doc-help .doc-head { padding: 0 0 16px; margin-bottom: 20px; }
  .doc-prose { font-size: 11pt; }
  .doc-prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: var(--muted); overflow-wrap: anywhere; }
  :is(h1, h2, h3) { break-after: avoid; }
  :is(.steps > li, .docs-roles, .docs-tip, .faq, table, figure, tr, .doc-keys tbody) { break-inside: avoid; }
  .cert-page main.wrap { padding: 0 !important; }
  .cert { max-width: none; min-height: 262mm; break-inside: avoid; }
  .cert-sheet { box-shadow: none; }
  :is(.cert-ok, .cert-seal, .cert-traj, .cert-facts .main dd) { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cert-after { display: none; }
}
