/* Страничные стили нового дизайна. Источник: docs/redesign/ds/components.css. Подключается только на своих страницах */
/* ---------- Как установить ---------- */
.howto { display: grid; gap: 20px; max-width: 920px; }
.howto-card { scroll-margin-top: calc(var(--header-h) + 16px); }
.howto-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.howto-head .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; flex: none; }
.howto-head h2 { font-size: 21px; font-weight: var(--fw-heavy); line-height: 1.25; }
.howto-head small { display: block; font-size: 13px; color: var(--text-2); font-weight: var(--fw-semibold); }
.ol-steps { counter-reset: s; display: grid; gap: 14px; list-style: none; margin: 0; padding: 0; }
.ol-steps > li { counter-increment: s; position: relative; padding-left: 46px; min-height: 32px; }
.ol-steps > li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-weight: var(--fw-black); }
.ol-steps b { font-weight: var(--fw-heavy); }
.path-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 14px; border-radius: var(--r-md); background: var(--bg-sunken); border: 1px solid var(--border); }
.path-copy code { flex: 1; min-width: 0; font: 600 14px/1.4 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
.ext-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ext-row code { padding: 2px 8px; border-radius: 8px; background: var(--surface-2); font: 700 13px/1.5 ui-monospace, Consolas, monospace; }
@media (max-width: 767px) { .ol-steps > li { padding-left: 42px; } .path-copy .btn { width: 100%; } }

/* ---------- Длинный текст (политика) ---------- */
.doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.toc { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow: auto; padding: 16px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); font-size: 14px; }
.toc b { display: block; margin: 0 0 8px 8px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.toc a { display: block; padding: 7px 8px; border-radius: 10px; color: var(--text-2); font-weight: var(--fw-bold); }
.toc a:hover { background: var(--surface-2); color: var(--text); }
.toc a[aria-current] { background: var(--primary-soft); color: var(--primary-ink); }
.prose { max-width: 72ch; font-size: 16px; line-height: 1.7; }
.prose h2 { font-size: 21px; line-height: 1.3; font-weight: var(--fw-heavy); margin: 36px 0 10px; scroll-margin-top: calc(var(--header-h) + 16px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ol { padding-left: 0; list-style: none; }
.prose ol li { display: grid; grid-template-columns: 44px 1fr; }
.prose ol li > span:first-child { color: var(--text-3); font-weight: var(--fw-heavy); }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--text-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: 20px; }
.toc-m { display: none; }
@media (max-width: 1023px) { .doc { grid-template-columns: minmax(0, 1fr); } .toc { display: none; } .toc-m { display: block; margin-bottom: 16px; } }
.toc-m summary { display: flex; align-items: center; justify-content: space-between; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-1); font-weight: var(--fw-heavy); cursor: pointer; list-style: none; }
.toc-m summary::-webkit-details-marker { display: none; }
.toc-m[open] summary .i { transform: rotate(90deg); }
.toc-m .toc { display: block; position: static; max-height: none; margin-top: 8px; }


/* Внедрение (этап 6) */
.howto-alert { margin-bottom: 16px; }
.howto-help { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.howto-help .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; }
.howto-help-text { flex: 1; min-width: 220px; }
.doc-title { max-width: 820px; }
