/* Круг 4: общий каркас трёх вариантов (А — язык Mercury, Б — Vercel, В — Resend).
   Здесь шрифты, сброс, окно кабинета и общие мелочи. Цвета и типографика — в a.css, b.css, c.css. */
@font-face { font-family: "Onest"; src: url("../fonts/onest-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Onest"; src: url("../fonts/onest-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Noto Serif Display"; src: url("../fonts/noto-serif-display-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Noto Serif Display"; src: url("../fonts/noto-serif-display-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-cyrillic-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
.nb { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 3px; border-radius: 6px; }

/* Окно кабинета: копия настоящего интерфейса Трумарка, данные вымышленные.
   Рисуется в натуральную ширину 1120 px и масштабируется под контейнер (app.js). */
.cabfit { position: relative; width: 100%; overflow: hidden; }
.cabfit > .cab { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.cab {
  --c-bg: #f6f5fb; --c-surface: #ffffff; --c-ink: #1d1b2e; --c-muted: #6e6b85; --c-line: #e7e4f2; --c-top: #24183a; --c-top-ink: #ece9ff;
  --c-acc: #5200a2; --c-acc-soft: #f1e7ff; --c-row: #faf9fe;
  width: 1120px; font: 400 12px/1.35 "Onest", system-ui, sans-serif; color: var(--c-ink); background: var(--c-bg);
  border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(20, 16, 50, .08), 0 30px 80px -20px rgba(20, 16, 50, .35);
  display: grid; grid-template-rows: 40px 1fr; height: 640px; text-align: left;
}
:root[data-cab="dark"] .cab, .cab.dark {
  --c-bg: #15131f; --c-surface: #1c1a28; --c-ink: #e9e7f5; --c-muted: #9894b0; --c-line: #2c2940; --c-top: #110c1a; --c-top-ink: #dcd8f2;
  --c-acc: #b57cf5; --c-acc-soft: #2e1a4a; --c-row: #201d2e;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.cab-top { background: var(--c-top); color: var(--c-top-ink); display: flex; align-items: center; gap: 14px; padding: 0 14px; }
.cab-logo { display: flex; align-items: center; gap: 8px; font-size: 10px; line-height: 1.1; opacity: .95; }
.cab-logo svg { width: 22px; height: 22px; color: var(--c-top-ink); }
.cab-co { font-weight: 600; font-size: 12px; margin-left: 10px; }
.cab-top .sp { flex: 1; }
.cab-pill { border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: 4px 10px; font-size: 11px; }
.cab-ic { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .7; }
.cab-body { display: grid; grid-template-columns: 76px 1fr; min-height: 0; }
.cab-side { background: var(--c-surface); border-right: 1px solid var(--c-line); padding: 8px 6px; display: grid; gap: 4px; align-content: start; }
.cab-side span { display: grid; justify-items: center; gap: 3px; font-size: 9px; color: var(--c-muted); padding: 6px 2px; border-radius: 8px; text-align: center; }
.cab-side span i { width: 16px; height: 16px; border-radius: 4px; border: 1.5px solid currentColor; opacity: .75; }
.cab-side span.on { color: var(--c-acc); background: var(--c-acc-soft); }
.cab-main { padding: 18px 22px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.cab-head { display: flex; align-items: center; gap: 10px; }
.cab-head h4 { margin: 0; font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.cab-head .sp { flex: 1; }
.cab-btn { background: var(--c-acc); color: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 500; font-size: 12px; }
.cab-btn.ghost { background: transparent; color: var(--c-acc); box-shadow: inset 0 0 0 1px var(--c-line); }
.cab-steps { display: flex; gap: 6px; flex-wrap: nowrap; }
.cab-steps span { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--c-muted); padding: 5px 9px 5px 5px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); white-space: nowrap; }
.cab-steps b { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 600; background: var(--c-bg); color: var(--c-muted); }
.cab-steps .on { color: var(--c-acc); box-shadow: inset 0 0 0 1px var(--c-acc); }
.cab-steps .on b { background: var(--c-acc); color: #fff; }
.cab-steps .ok b { background: var(--c-acc-soft); color: var(--c-acc); }
.cab-table { background: var(--c-surface); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--c-line); overflow: hidden; }
.cab-tr { display: grid; grid-template-columns: 84px 76px 1.6fr 1fr 52px 84px 1.3fr 26px; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--c-line); font-variant-numeric: tabular-nums; }
.cab-tr:first-child { border-top: 0; color: var(--c-muted); font-size: 11px; font-weight: 500; background: var(--c-row); }
.cab-tr .num { text-align: right; }
.cab-tr .dots { width: 14px; height: 3px; border-radius: 2px; background: radial-gradient(circle, var(--c-muted) 1.4px, transparent 1.6px) 0 0 / 5px 3px repeat-x; opacity: .7; }
.cab-tr.hl { background: var(--c-acc-soft); }
.st { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st.draft { color: #6b6880; background: rgba(107, 104, 128, .12); }
.st.view { color: #2563c9; background: rgba(37, 99, 201, .11); }
.st.sent { color: #7a3fd6; background: rgba(122, 63, 214, .11); }
.st.ok { color: #18794e; background: rgba(24, 121, 78, .11); }
.st.err { color: #c03a2b; background: rgba(192, 58, 43, .11); }
.cab.dark .st.draft, :root[data-cab="dark"] .st.draft { color: #b3b0c8; background: rgba(179, 176, 200, .12); }
.cab.dark .st.view, :root[data-cab="dark"] .st.view { color: #7fb0ff; background: rgba(127, 176, 255, .12); }
.cab.dark .st.sent, :root[data-cab="dark"] .st.sent { color: #c3a6ff; background: rgba(195, 166, 255, .12); }
.cab.dark .st.ok, :root[data-cab="dark"] .st.ok { color: #5fd39a; background: rgba(95, 211, 154, .12); }
.cab.dark .st.err, :root[data-cab="dark"] .st.err { color: #ff8f80; background: rgba(255, 143, 128, .12); }
.cab-foot { display: flex; gap: 10px; color: var(--c-muted); font-size: 11px; }

/* DataMatrix как знак: модули — путь SVG, цвет из currentColor */
.dm { color: currentColor; shape-rendering: crispEdges; }

/* ряд логотипов: картинки-маски в цвет текста */
.logo-m { display: block; height: 30px; background: currentColor; -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat; }
.logo-m.baggins { width: 84px; --src: url("../img/logo-baggins.png"); }
.logo-m.domiqo { width: 112px; --src: url("../img/logo-domiqo.png"); height: 26px; }
.logo-m.autocare { width: 92px; --src: url("../img/logo-autocare.png"); height: 40px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }

/* ---- base.css ---- */
/* Круг 5: общие части трёх подходов главной. Цвета и шрифты задаёт файл подхода (p1.css, p2.css, p3.css). */


body { background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--f); }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 7px; height: 7px; background: var(--acc); border-radius: 1px; }
.h2 { font: var(--h-w) clamp(30px, 3.6vw, 48px)/1.05 var(--fh); letter-spacing: var(--h-ls); margin-top: 14px; }
.h2 em { font-style: normal; color: var(--acc-text); }
.sub { color: var(--ink-2); max-width: 60ch; margin-top: 14px; }
.ic { width: 18px; height: 18px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .15s ease, background-color .15s ease, opacity .15s ease; border: 0; cursor: pointer; }
.btn:active { transform: scale(.98); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn-p { background: var(--acc); color: #fff; }
.btn-p:hover { background: var(--acc-hover); }
.btn-g { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-g:hover { background: var(--hover); }

/* шапка */
.hd { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: var(--hd-bg); color: var(--hd-ink); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--hd-line); }
.hd-in { display: flex; align-items: center; gap: 26px; height: 64px; }
.brand .logo { height: 36px; width: auto; color: currentColor; } /* владелец 20–21.11: «увеличим логотип», «ещё побольше» — было 26, потом 30 px */
.nav { display: flex; gap: 4px; font-size: 14.5px; }
.nav a { padding: 7px 11px; border-radius: 8px; color: var(--hd-ink-2); white-space: nowrap; }
.nav a:hover { color: var(--hd-ink); background: var(--hd-hover); }
.hd-r { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.lang { font: 500 12px/1 var(--m); color: var(--hd-ink-2); padding: 8px 9px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--hd-line); }
.lnk { color: var(--hd-ink-2); padding: 8px 10px; white-space: nowrap; }
.lnk:hover { color: var(--hd-ink); }
/* полоски по центру кнопки, как значок темы рядом (замер владельца с iPhone 21.11: средняя полоса была на 23.4 px при центре 20);
   2 px, а не 1.6: на DPR 3 дробная толщина рисует среднюю полосу толще крайних */
.burger { display: none; width: 40px; height: 40px; border: 0; background: transparent; color: inherit; padding: 0 10px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.burger i { display: block; height: 2px; background: currentColor; border-radius: 2px; }

/* поле ИНН */
.hook { display: grid; gap: 10px; width: 100%; max-width: 560px; }
.hook-k { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--hook-k, var(--muted)); }
.hook-row { display: flex; gap: 6px; padding: 6px; border-radius: calc(var(--r-btn) + 6px); background: var(--hook-bg); box-shadow: inset 0 0 0 1px var(--hook-line), var(--hook-shadow, none); }
.hook-row input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 14px; font: 500 17px/1 var(--m); letter-spacing: .02em; color: var(--hook-ink, inherit); }
.hook-row input::placeholder { color: var(--hook-ph, var(--muted)); font-family: var(--f); font-weight: 400; letter-spacing: 0; }
.hook-note { font-size: 13.5px; color: var(--hook-note, var(--muted)); }
.hook-err { color: #e5484d; font-size: 14px; }
/* введённое в подсказках компаний (TMCompany.hl): цветная подложка, текст своего цвета — читается и на светлом, и на тёмном списке; как .srch-ex mark в поиске */
mark.hl { background: color-mix(in srgb, #7c4dff 24%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.res { border-radius: 16px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 24px 60px -24px rgba(16, 8, 50, .45); padding: 18px 18px 16px; display: grid; gap: 12px; text-align: left; }
.res-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.res-ok { display: inline-flex; align-items: center; gap: 6px; font: 600 12px/1 var(--f); color: #0f8a5a; background: rgba(15, 154, 100, .12); padding: 6px 9px; border-radius: 999px; }
.res-tag { font: 500 11px/1 var(--m); color: var(--res-muted); letter-spacing: .05em; text-transform: uppercase; margin-left: auto; }
.res h3 { font: 650 19px/1.25 var(--fh); letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 13px; padding: 6px 10px; border-radius: 8px; background: var(--res-chip); color: var(--res-ink); }
.res-due { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 12px; border-radius: 12px; background: var(--res-due-bg); }
.res-due b { grid-row: 1 / span 2; font: 700 22px/1 var(--fh); color: var(--acc-text); text-align: center; min-width: 52px; }
.res-due b small { display: block; font: 500 11px/1.2 var(--m); text-transform: uppercase; letter-spacing: .05em; margin-top: 3px; }
.res-due span { font-size: 14px; }
.res-due i { font-style: normal; font-size: 12.5px; color: var(--res-muted); }
.res-cta { display: flex; gap: 8px; flex-wrap: wrap; }

/* доверие: цифры */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts > div { padding: 26px 24px; border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; }
.facts dt { font: var(--h-w) clamp(30px, 3.2vw, 44px)/1 var(--fh); letter-spacing: var(--h-ls); font-variant-numeric: tabular-nums; }
.facts dd { margin: 10px 0 0; color: var(--muted); font-size: 14px; max-width: 26ch; }

/* агрегация */
.agg { background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.agg::before { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 90%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.agg-in { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding-block: 96px; position: relative; }
.agg .eyebrow { color: var(--scene-ink-2); }
.agg .sub { color: var(--scene-ink-2); }
.agg .h2 em, .cta-box .h2 em { color: #cfaeff; }
.agg-list { margin-top: 26px; display: grid; border-top: 1px solid var(--scene-line); }
.agg-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--scene-line); font-size: 15px; }
.agg-list li span { color: var(--scene-ink-2); text-align: right; }
.agg-stage { display: grid; gap: 14px; justify-items: center; }
.agg-stage canvas { width: 100%; max-width: 620px; height: auto; aspect-ratio: 600 / 440; --iso-grid: var(--scene-grid); --iso-fade: var(--scene-bg-solid); }
.agg-modes { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--scene-chip); }
.agg-modes button, .agg-seg button { border: 0; background: transparent; color: var(--scene-ink-2); font: 500 13.5px/1 var(--f); padding: 9px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.agg-modes button[aria-pressed="true"], .agg-seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.agg-seg { display: flex; gap: 4px; flex-wrap: wrap; justify-content: center; }
.agg-seg b { font: 600 11px/1 var(--m); opacity: .7; }
.agg-count { display: flex; align-items: baseline; gap: 10px; }
.agg-count [data-n] { font: 700 44px/1 var(--fh); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.agg-count [data-u] { font: 500 13px/1.3 var(--m); color: var(--scene-ink-2); text-transform: uppercase; letter-spacing: .05em; }
.agg-cap { color: var(--scene-ink-2); font-size: 14.5px; text-align: center; min-height: 2.6em; max-width: 46ch; }

/* сроки */
.due { padding-block: 88px 24px; }
.due-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.due-date { font: var(--h-w) clamp(56px, 7vw, 96px)/0.9 var(--fh); letter-spacing: -0.04em; color: var(--acc-text); }
.due-date small { display: block; font: 500 14px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 12px; }
.due-list { display: grid; gap: 10px; }
.due-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 18px 20px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.due-list b { font-weight: 600; }
.due-list span { grid-column: 1; color: var(--muted); font-size: 14px; }
.due-list .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 12px/1 var(--m); padding: 7px 9px; border-radius: 8px; color: #0f8a5a; background: rgba(15, 154, 100, .12); white-space: nowrap; }

/* недавно выпустили */
.ship { padding-block: 72px 24px; }
.ship-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.more { display: inline-flex; align-items: center; gap: 6px; color: var(--acc-text); font-weight: 500; font-size: 15px; }
.ship ul { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.ship li a { display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); height: 100%; align-content: start; transition: box-shadow .2s ease, transform .2s ease; }
.ship li a:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.ship time { font: 500 12.5px/1 var(--m); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ship li span { font-weight: 550; font-size: 16.5px; line-height: 1.35; }
.ship li p { color: var(--ink-2); font-size: 14.5px; }

/* инструменты */
.tools { padding-block: 72px 96px; }
.tools-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.tool { grid-column: span 2; display: grid; gap: 10px; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); align-content: start; transition: box-shadow .2s ease, transform .2s ease; }
.tool:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.tool.big { grid-column: span 3; }
.tool-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.tool-ic svg { width: 22px; height: 22px; }
.tool h3 { font: 650 18px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 6px; }
.tool p { color: var(--ink-2); font-size: 14.5px; }
.tool .meta { font: 500 12px/1 var(--m); color: var(--muted); margin-top: 4px; }

/* финал и подвал */
.cta-end { padding-block: 40px 96px; }
.cta-box { border-radius: 24px; padding: 56px; background: var(--scene-bg); color: var(--scene-ink); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-box::before { content: ""; position: absolute; inset: -40% -10% auto 40%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); }
.cta-box .h2 { margin-top: 0; position: relative; }
.cta-box p { color: var(--scene-ink-2); margin-top: 12px; position: relative; }
.cta-box .cta-r { display: grid; gap: 10px; position: relative; justify-items: start; }
.cta-box .tel { font: 500 15px/1.4 var(--m); color: var(--scene-ink-2); }
.ft { border-top: 1px solid var(--line); padding-block: 28px; color: var(--muted); font-size: 13.5px; }
.ft-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 1100px) { .nav { display: none; } }
@media (max-width: 980px) {
  .agg-in, .due-grid, .cta-box { grid-template-columns: minmax(0, 1fr); }
  .agg-in { padding-block: 64px; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts > div:nth-child(3) { border-left: 0; }
  .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ship ul { grid-template-columns: minmax(0, 1fr); }
  .tool, .tool.big { grid-column: span 3; }
  .cta-box { padding: 36px 24px; }
}
@media (max-width: 640px) {
  .lnk, .lang { display: none; }
  .burger { display: flex; }
  .hd-r .btn { display: none; }
  .tool, .tool.big { grid-column: 1 / -1; }
  .facts > div { padding: 22px 16px; }
  .hook-row { flex-direction: column; }
  .hook-row input { padding: 14px 12px; }
  .hook-row .btn { width: 100%; }
  .due-list li { grid-template-columns: 1fr; }
  .due-list .tag { grid-row: auto; grid-column: 1; justify-self: start; }
}

/* ---- home.css ---- */
/* Полная главная: разделы под первым экраном. Цвета — из токенов подхода (p1.css, p2.css, p3.css). */
section[id] { scroll-margin-top: 80px; }

/* плашка срока над шапкой */
.due-bar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 9px max(16px, env(safe-area-inset-right, 0px)) 9px max(16px, env(safe-area-inset-left, 0px)); background: #f6f42e; color: #15131c; font-size: 14px; font-weight: 500; text-align: center; }
.due-bar:hover { background: #ecea1c; }
.due-bar-d { font: 600 12px/1 var(--m); text-transform: uppercase; letter-spacing: .05em; background: #15131c; color: #f6f42e; padding: 5px 8px; border-radius: 6px; white-space: nowrap; }
.due-bar .ic { width: 16px; height: 16px; }
.due-bar { position: relative; padding-right: max(52px, env(safe-area-inset-right, 0px)); padding-left: max(52px, env(safe-area-inset-left, 0px)); }
.due-bar[hidden] { display: none; }
.due-bar-a { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.due-bar-a b { font-weight: 700; }
.due-bar-a u { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.due-bar-x { position: absolute; right: max(10px, env(safe-area-inset-right, 0px)); top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: none; color: inherit; cursor: pointer; opacity: .65; transition: opacity .15s ease, background-color .15s ease; }
.due-bar-x:hover { opacity: 1; background: rgba(21, 19, 28, .1); }
.due-bar-x:focus-visible { outline: 2px solid #15131c; outline-offset: 1px; opacity: 1; }
@media (max-width: 640px) { .due-bar { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(48px, env(safe-area-inset-right, 0px)); } .due-bar-a { align-items: flex-start; } }
/* полоса срока — фирменный жёлтый Честного ЗНАКа, как верхняя плашка стенда ЭР (владелец 20.11: «ярко жёлтую»); в обеих темах одна */

/* подсказки компании */
.hook-row { position: relative; }
.sug { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 30; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 24px 60px -18px rgba(16, 8, 50, .5); }
.sug li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; padding: 10px 12px; border-radius: 10px; cursor: pointer; text-align: left; }
.sug li[aria-selected="true"], .sug li[data-i]:hover { background: var(--res-due-bg); }
.sug b { font-weight: 600; font-size: 15px; }
.sug span { grid-column: 1; font-size: 13px; color: var(--res-muted); }
.sug code { grid-row: 1 / span 2; grid-column: 2; align-self: center; font: 500 12.5px/1 var(--m); color: var(--res-muted); }
.sug .sug-empty { display: block; cursor: default; color: var(--res-muted); font-size: 14px; }
.res-co { font-size: 13px; color: var(--res-muted); }

/* логотипы */
.logos { padding-block: 40px 8px; }
.logos-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 36px; }
.logos-in p { color: var(--muted); font-size: 15px; max-width: 34ch; }
.logos-row { display: flex; align-items: center; gap: 48px; color: var(--ink-2); flex-wrap: wrap; }

/* как это работает */
.how { padding-block: 88px 40px; }
.how-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 28px; margin-top: 36px; align-items: start; }
.how-tabs { display: grid; gap: 6px; }
.how-tabs button { display: grid; grid-template-columns: auto 1fr; gap: 14px; text-align: left; border: 0; background: transparent; color: inherit; padding: 16px; border-radius: 14px; cursor: pointer; font: inherit; transition: background-color .15s ease; }
.how-tabs button:hover { background: var(--hover); }
.how-tabs button[aria-selected="true"] { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.how-tabs b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 600 13px/1 var(--m); background: var(--acc-soft); color: var(--acc-text); }
.how-tabs button[aria-selected="true"] b { background: var(--acc); color: #fff; }
.how-tabs strong { display: block; font-weight: 600; font-size: 16.5px; }
.how-tabs em { display: none; font-style: normal; color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.how-tabs button[aria-selected="true"] em { display: block; }
.how-screens { position: sticky; top: 90px; }
.how-panel .cab { box-shadow: 0 0 0 1px var(--line), 0 30px 80px -30px rgba(20, 14, 60, .35); }

/* сравнение */
.vs { padding-block: 88px 40px; }
.vs-tbl { margin-top: 32px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.vs table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vs th, .vs td { padding: 15px 20px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.vs thead th { border-top: 0; font: 500 12px/1.3 var(--m); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.vs thead th:last-child { color: var(--acc-text); }
.vs tbody th { font-weight: 600; width: 22%; }
.vs td { display: table-cell; }
.vs td .ic { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; margin-right: 8px; }
.vs .them { color: var(--muted); }
.vs .them .ic { color: #c0533f; }
.vs .us { font-weight: 500; background: color-mix(in srgb, var(--acc) 5%, transparent); }
.vs .us .ic { color: #0f9a64; }

/* маркетплейсы */
.mp { padding-block: 88px 40px; }
.mp-track { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: s; position: relative; }
.mp-track::before { content: ""; position: absolute; left: 4%; right: 4%; top: 19px; height: 2px; background: repeating-linear-gradient(90deg, var(--acc) 0 8px, transparent 8px 14px); opacity: .5; }
.mp-track li { position: relative; display: grid; gap: 6px; align-content: start; padding: 0 4px; }
.mp-track b { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc); color: #fff; font: 600 14px/1 var(--m); box-shadow: 0 0 0 6px var(--bg); }
.mp-track strong { margin-top: 10px; font-weight: 600; }
.mp-track span { color: var(--ink-2); font-size: 14.5px; }
.mp-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 36px; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mp-foot p { color: var(--ink-2); max-width: 62ch; }
.mp-foot b { color: var(--ink); }
.mp-links { display: flex; gap: 8px; flex-wrap: wrap; }

/* склад и устройства */
.dev { padding-block: 88px 40px; }
.dev-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.dev-card { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.dev-card.big { grid-column: span 2; grid-row: span 2; padding: 0; overflow: hidden; grid-template-rows: auto 1fr; }
.dev-card.big img { width: 100%; height: auto; aspect-ratio: 958 / 580; object-fit: cover; }
.dev-card.big > div { padding: 22px 24px 24px; display: grid; gap: 10px; align-content: start; }
.dev-card h3 { font: 650 19px/1.25 var(--fh); letter-spacing: -0.01em; }
.dev-card p { color: var(--ink-2); font-size: 15px; }
.dev-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.dev-ic .ic { width: 22px; height: 22px; }
.dev-card:not(.big) { grid-column: span 2; }

/* для кого */
.who { padding-block: 88px 40px; }
.who-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; }
.who-card { display: grid; gap: 12px; align-content: start; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.who-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--scene-bg); color: #dcc8ff; }
.who-ic .ic { width: 22px; height: 22px; }
.who-card h3 { font: 650 19px/1.2 var(--fh); margin-top: 4px; }
.who-card ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.who-card li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.who-card li .ic { width: 16px; height: 16px; color: #0f9a64; margin-top: 3px; }
.who-card .more { margin-top: 4px; }

/* товарные группы и сроки */
.groups { padding-block: 88px 40px; }
.due-grid { padding: 32px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.g-head { margin-top: 64px; }
.g-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.g-chip { padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; transition: box-shadow .15s ease, color .15s ease; }
.g-chip:hover { box-shadow: inset 0 0 0 1px var(--acc); color: var(--acc-text); }
.g-chip.all { display: inline-flex; align-items: center; gap: 6px; background: var(--acc-soft); color: var(--acc-text); box-shadow: none; font-weight: 600; }
.g-chip .ic { width: 16px; height: 16px; }

/* поддержка */
.sup { padding-block: 88px 40px; }
.sup-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sup-main { grid-column: 1 / -1; margin-bottom: 18px; }
.sup-card { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sup-card h3 { font: 650 17px/1.25 var(--fh); margin-top: 4px; }
.sup-card p { color: var(--ink-2); font-size: 14.5px; }

/* надёжность */
.trust { padding-block: 88px 40px; }
.tr-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 32px; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.tr-card { padding: 26px 24px; display: grid; gap: 10px; align-content: start; border-left: 1px solid var(--line); }
.tr-card:first-child { border-left: 0; }
.tr-ic { color: var(--acc-text); }
.tr-ic .ic { width: 26px; height: 26px; }
.tr-card h3 { font: 650 17px/1.25 var(--fh); margin-top: 6px; }
.tr-card p { color: var(--ink-2); font-size: 14.5px; }

/* тарифы */
.pricing { padding-block: 88px 40px; }
.pl-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 32px; align-items: stretch; }
.pl { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 8px; padding: 26px 22px 22px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl.hot { box-shadow: inset 0 0 0 2px var(--acc), 0 30px 70px -40px rgba(107, 47, 179, .6); }
.pl-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl h3 { font: 650 20px/1.2 var(--fh); }
.pl-badge { font: 600 11.5px/1 var(--m); color: #fff; background: var(--acc); padding: 6px 8px; border-radius: 7px; white-space: nowrap; }
.pl-price { font: var(--h-w) 36px/1.05 var(--fh); letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.pl-per { color: var(--muted); font-size: 13.5px; }
.pl ul { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; align-content: start; }
.pl li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.pl li .ic { width: 16px; height: 16px; color: #0f9a64; margin-top: 3px; }
.pl .btn { width: 100%; }
.pl-note { margin-top: 16px; color: var(--muted); font-size: 14px; }

/* вопросы */
.faq { padding-block: 88px 40px; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 600; font-size: 16.5px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 400 22px/1 var(--f); color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--ink-2); padding-bottom: 18px; max-width: 66ch; }

/* финал */
.cta-box { align-items: start; }
.cta-btns { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 22px; position: relative; }
.lead-form { position: relative; display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--scene-line); }
.lf-k { font-weight: 600; color: var(--scene-ink) !important; margin: 0 !important; }
.lead-form input { height: 46px; border-radius: 10px; border: 0; padding: 0 14px; background: rgba(255, 255, 255, .08); color: var(--scene-ink); box-shadow: inset 0 0 0 1px var(--scene-line); font: 400 15px/1 var(--f); outline: none; }
.lead-form input::placeholder { color: var(--scene-ink-2); }
.lead-form input:focus { box-shadow: inset 0 0 0 2px #cfaeff; }
.lf-note { font-size: 12.5px; margin: 0 !important; }

/* подвал */
.ft { padding-block: 56px 32px; }
.ft-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.ft-brand .logo { height: 28px; width: auto; color: var(--ink); }
.ft-brand p { margin-top: 14px; color: var(--muted); font-size: 14px; max-width: 34ch; }
.ft-tel { font: 500 14px/1.6 var(--m); color: var(--ink-2) !important; }
.ft-h { font-weight: 600; color: var(--ink); margin-bottom: 12px; }
.ft ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.ft ul a:hover { color: var(--ink); }
.ft-bot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.ft-links { display: flex; gap: 16px; flex-wrap: wrap; }
.ft-mock { margin-top: 12px; font: 500 12px/1.4 var(--m); color: var(--muted); }

@media (max-width: 1100px) {
  .dev-grid, .who-grid, .pl-grid, .sup-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-card:nth-child(3) { border-left: 0; }
  .tr-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .how-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .how-screens { position: static; }
  .mp-track { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .mp-track::before { left: 19px; right: auto; top: 20px; bottom: 20px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--acc) 0 8px, transparent 8px 14px); }
  .mp-track li { grid-template-columns: auto 1fr; column-gap: 14px; }
  .mp-track b { grid-row: 1 / span 2; }
  .mp-track strong { margin-top: 0; }
}
@media (max-width: 640px) {
  .due-bar { justify-content: flex-start; text-align: left; font-size: 13px; }
  /* 21.11 ночной обход: на телефоне список групп в общей полосе занимал 3 строки первого экрана — только «для N групп · Что сделать» */
  .due-bar-more { display: none; }
  .dev-grid, .who-grid, .pl-grid, .sup-grid, .tr-grid { grid-template-columns: minmax(0, 1fr); }
  .dev-card.big, .dev-card:not(.big) { grid-column: auto; grid-row: auto; }
  .tr-card { border-left: 0; border-top: 1px solid var(--line); }
  .tr-card:first-child { border-top: 0; }
  .vs th, .vs td { padding: 12px 12px; font-size: 14px; }
  .vs tbody th { width: auto; }
  .vs table, .vs thead, .vs tbody, .vs tr, .vs th, .vs td { display: block; }
  .vs thead { display: none; }
  .vs tr { padding: 6px 0; border-top: 1px solid var(--line); }
  .vs tr:first-child { border-top: 0; }
  .vs tbody th, .vs td { border-top: 0; }
  .due-grid { padding: 22px 18px; }
  .logos-in { justify-content: center; text-align: center; }
  .logos-row { justify-content: center; gap: 30px; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
}

/* инструменты: 12 колонок, чтобы не оставалось одиночной карточки */
.tools-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.tool { grid-column: span 3; }
.tool.big { grid-column: span 6; }
@media (max-width: 980px) { .tool, .tool.big { grid-column: span 6; } }
@media (max-width: 640px) { .tool, .tool.big { grid-column: 1 / -1; } }

/* подсказки поверх цифр под первым экраном */
.hero-in { position: relative; z-index: 3; }

/* ---- home6.css ---- */
/* Круг 6 (19.11 ночь): правки владельца по полной главной. Подключается после home.css */

/* тема одной кнопкой (владелец 20.11): солнце прячет лучи и становится месяцем, тень наезжает из угла.
   Состояние по data-cab — app.js ставит его в <head> до отрисовки, поэтому при загрузке ничего не анимируется */
.thm { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--hd-ink); display: grid; place-items: center; cursor: pointer;
  transition: background-color .15s ease; -webkit-tap-highlight-color: transparent; }
.thm:hover { background: var(--hd-hover); }
.thm-i { width: 20px; height: 20px; overflow: visible; transition: transform .25s cubic-bezier(.2, .8, .2, 1), translate .55s cubic-bezier(.2, .8, .2, 1); }
.thm:hover .thm-i { transform: rotate(-12deg); }
.thm:active .thm-i { transform: scale(.86); transition-duration: .1s; }
.thm-core, .thm-rays { transform-box: fill-box; transform-origin: center; }
.thm-core { transition: transform .55s cubic-bezier(.34, 1.56, .64, 1); }
.thm-rays { transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s ease; }
.thm-mc { transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
:root[data-cab="dark"] .thm-core { transform: scale(1.6); }
:root[data-cab="dark"] .thm-rays { transform: rotate(90deg) scale(.3); opacity: 0; }
:root[data-cab="dark"] .thm-mc { transform: translate(-13.5px, 13.5px); }
/* владелец 21.11: «месяц как будто не на уровне с кнопками» — масса серпа смещена на 1,8 px влево-вниз, сдвиг по оптическому центру */
:root[data-cab="dark"] .thm-i { translate: 1.3px -1.3px; }
.thm:focus-visible, .lng summary:focus-visible { outline: 2px solid var(--focus, #6b2fb3); outline-offset: 1px; }
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
@media (prefers-reduced-motion: reduce) { .thm-i, .thm-core, .thm-rays, .thm-mc { transition: none; } }
.lng { position: relative; }
.lng summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 8px; border-radius: 9px; cursor: pointer; font: 500 13px/1 var(--m); color: var(--hd-ink); transition: background-color .15s ease; }
.lng summary::-webkit-details-marker { display: none; }
.lng summary:hover, .lng[open] summary { background: var(--hd-hover); }
.flag { width: 20px; height: 14px; border-radius: 3px; flex: none; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .18); }
.lng ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 196px; margin: 0; padding: 6px; list-style: none; border-radius: 14px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 24px 60px -18px rgba(16, 8, 50, .45); }
.lng li a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 9px; font-size: 14.5px; }
.lng li a:hover, .lng li a[aria-current="true"] { background: var(--res-due-bg); }
.lng li code { font: 500 11.5px/1 var(--m); color: var(--res-muted); }
.ft-lng { display: inline-flex; gap: 14px; }
.ft-lng a { display: inline-flex; align-items: center; gap: 6px; }
.ft-lng .flag { width: 16px; height: 11px; border-radius: 2px; }
@media (max-width: 640px) {
  .thm { width: 40px; height: 40px; }
  .lng summary { height: 40px; }
}

/* агрегация: три способа */
.agg-ways { list-style: none; margin: 26px 0 0; padding: 0; display: grid; border-top: 1px solid var(--scene-line); }
.agg-ways li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 15px 0; border-bottom: 1px solid var(--scene-line); }
.aw-ic { grid-row: 1 / span 2; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--scene-chip); color: #dcc8ff; }
.aw-ic .ic { width: 19px; height: 19px; }
.agg-ways b { font-weight: 600; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.agg-ways p { color: var(--scene-ink-2); font-size: 14.5px; }
.agg-ways .tag { font: 500 11px/1 var(--m); letter-spacing: .04em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: rgba(205, 170, 255, .16); color: #dcc8ff; font-style: normal; }
.agg-kinds { margin: 18px 0 22px; font: 500 12.5px/1.4 var(--m); letter-spacing: .04em; color: var(--scene-ink-2); }
/* типы кодов ведут на свои страницы, вторая кнопка — на посадочную агрегации (владелец 20.11: «нет перехода на лэндинг по агрегации») */
.agg-kinds a { color: var(--scene-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); transition: text-decoration-color .2s; }
.agg-kinds a:hover { text-decoration-color: currentColor; }
.agg-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.agg .agg-btns .btn-g { color: var(--scene-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--scene-ink) 26%, transparent); }
.agg .agg-btns .btn-g:hover { background: color-mix(in srgb, var(--scene-ink) 8%, transparent); }

/* уровни замечаний */
.lv { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.lv.stop { background: #e5484d; }
.lv.risk { background: #f0a020; }
.lv.info { background: #7b8cff; }

/* приёмка УПД */
.upd { padding-block: 88px 40px; }
.upd-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 44px; align-items: center; }
.upd-lv { margin: 24px 0 0; display: grid; gap: 10px; }
.upd-lv div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; align-items: baseline; }
.upd-lv dt { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; }
.upd-lv dd { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.upd-doc { border-radius: 20px; background: var(--res-bg); color: var(--res-ink); padding: 20px; display: grid; gap: 14px; box-shadow: 0 0 0 1px var(--res-line), 0 34px 80px -34px rgba(20, 12, 70, .45); }
.ud-h { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.ud-h b { display: block; font: 650 17px/1.3 var(--fh); }
.ud-h div span { font-size: 13px; color: var(--res-muted); }
.ud-st { flex: none; font: 600 12px/1 var(--f); color: #d93a3f; background: rgba(229, 72, 77, .12); padding: 7px 9px; border-radius: 999px; }
.ud-n { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ud-n span { padding: 10px; border-radius: 12px; background: var(--res-due-bg); font-size: 12px; color: var(--res-muted); display: grid; gap: 2px; }
.ud-n b { font: 650 19px/1.1 var(--fh); color: var(--res-ink); font-variant-numeric: tabular-nums; }
.ud-f { list-style: none; margin: 0; padding: 0; display: grid; }
.ud-f li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; padding: 11px 4px; border-top: 1px solid var(--res-line); }
.ud-f li:first-child { border-top: 0; }
.ud-f .lv { margin-top: 5px; }
.ud-f li > span { font-size: 12.5px; color: var(--res-muted); }
.ud-f li > span b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.35; color: var(--res-ink); }
.ud-b { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: 4px; }
.ud-adv { flex-basis: 100%; font-size: 12.5px; color: var(--res-muted); }
.uc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.uc { display: grid; grid-template-rows: auto auto auto 1fr; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.uc-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--m); background: var(--acc-soft); color: var(--acc-text); }
.uc h3 { font: 650 18px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 4px; }
.uc p { color: var(--ink-2); font-size: 14.5px; }
.uc .uc-g { align-self: end; padding-top: 12px; border-top: 1px solid var(--line); color: var(--ink); }
.uc .uc-g b { color: #0f9a64; font-weight: 600; }
.upd-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 18px; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.upd-foot p { color: var(--ink-2); max-width: 62ch; }
.upd-foot b { color: var(--ink); }

/* ТСД: рисунок вместо фото, два QR */
.tsd-card { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); margin-top: 32px; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tsd-art { position: relative; background: var(--scene-bg); overflow: hidden; min-height: 560px; }
.tsd-art::before { content: ""; position: absolute; inset: auto -20% -30% -20%; height: 70%; background: radial-gradient(closest-side, var(--scene-glow), transparent); }
.tsd { position: absolute; left: 50%; top: 214px; transform: translateX(-50%); width: 236px; padding: 14px 13px 18px; border-radius: 36px 36px 0 0; background: linear-gradient(160deg, #34304a, #17141f 70%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .08), 0 -10px 60px -20px rgba(0, 0, 0, .6); }
.tsd-win { width: 96px; height: 12px; margin: 0 auto 12px; border-radius: 6px; background: #4a1622; box-shadow: inset 0 0 0 1px rgba(255, 90, 110, .35), 0 0 14px rgba(255, 70, 90, .45); }
.tsd-box { position: absolute; left: 50%; top: 30px; transform: translateX(-50%); width: 250px; height: 118px; border-radius: 6px; background: linear-gradient(180deg, #d4a674, #b5865a); box-shadow: inset 0 14px 0 rgba(255, 255, 255, .12), 0 24px 50px -20px rgba(0, 0, 0, .6); display: grid; place-items: center; }
.tsd-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: rgba(235, 211, 174, .55); }
.tsd-lbl { position: relative; width: 156px; padding: 8px 10px 6px; border-radius: 3px; background: #fff; display: grid; gap: 4px; margin-top: 10px; }
.tsd-lbl .bars { width: 100%; height: 40px; fill: #100e19; display: block; }
.tsd-lbl span { font: 600 8.5px/1 var(--m); color: #100e19; text-align: center; letter-spacing: .02em; }
.tsd-beam { position: absolute; left: 50%; bottom: calc(100% - 26px); width: 200px; height: 82px; transform: translateX(-50%); background: linear-gradient(to top, rgba(255, 70, 90, .5), rgba(255, 70, 90, 0)); clip-path: polygon(44% 100%, 56% 100%, 100% 0, 0 0); animation: tsd-beam 2.6s ease-in-out infinite; pointer-events: none; }
.tsd-beam::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: #ff5a6e; }
@keyframes tsd-beam { 0%, 100% { opacity: .2; } 45%, 60% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tsd-beam { animation: none; opacity: .7; } }
.tsd-scr { border-radius: 14px; background: #f7f6fb; color: #15131d; padding: 10px; display: grid; gap: 8px; font: 400 11px/1.35 var(--f); }
.ts-bar { display: flex; justify-content: space-between; font: 600 9.5px/1 var(--m); color: #77748a; }
.ts-h b { display: block; font: 650 14px/1.2 var(--fh); }
.ts-h span { color: #77748a; font-size: 10.5px; }
.ts-ok { padding: 10px; border-radius: 10px; background: #dff5e9; box-shadow: inset 3px 0 0 #0f9a64; display: grid; gap: 2px; }
.ts-ok b { color: #0b7a4f; font: 700 15px/1.1 var(--fh); }
.ts-ok span { color: #2f5f49; }
.ts-pr { display: grid; grid-template-columns: 1fr auto; gap: 5px; align-items: baseline; }
.ts-pr span { color: #77748a; }
.ts-pr b { font: 650 12px/1 var(--fh); font-variant-numeric: tabular-nums; }
.ts-pr i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #e5e2ef; overflow: hidden; }
.ts-pr u { display: block; height: 100%; background: #6b2fb3; border-radius: 3px; }
.ts-l { list-style: none; margin: 0; padding: 0; display: grid; }
.ts-l li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid #e8e6f0; }
.ts-l b { font: 600 10.5px/1.3 var(--m); color: #0b7a4f; }
.ts-l b.w { color: #b07208; }
.ts-btn { text-align: center; padding: 9px; border-radius: 9px; background: #6b2fb3; color: #fff; font-weight: 600; font-size: 11.5px; }
.tsd-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin: 14px 10px 0; }
.tsd-keys i { height: 17px; border-radius: 6px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .4); }
.tsd-txt { padding: 32px; display: grid; gap: 14px; align-content: start; }
.tsd-txt h3 { font: 650 24px/1.2 var(--fh); letter-spacing: -0.015em; }
.tsd-txt > p { color: var(--ink-2); }
.tsd-f { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.tsd-f li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.tsd-f .ic { width: 16px; height: 16px; color: #0f9a64; margin-top: 3px; }
.tsd-qr { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.tsd-qr figure { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 10px 14px 10px 10px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); flex: 1 1 240px; }
.tsd-qr img { width: 104px; height: 104px; border-radius: 10px; background: #fff; padding: 6px; box-shadow: 0 0 0 1px var(--line); }
.tsd-qr figcaption { font-size: 13.5px; color: var(--ink-2); display: grid; gap: 4px; }
.tsd-qr figcaption b { color: var(--ink); font-size: 15px; }
.tsd-lic { font-size: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.dev .dev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 14px; }
.dev .dev-card:not(.big) { grid-column: auto; }

/* 1С */
.onec { padding-block: 88px 40px; }
.onec-in { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 44px; align-items: center; }
.onec-cfg { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.onec-cfg li { padding: 8px 12px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; font-weight: 500; }
.onec-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.onec-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.onec-steps b { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; font: 600 13px/1 var(--m); background: var(--acc-soft); color: var(--acc-text); }
.onec-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.onec-art { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.12fr); gap: 12px; align-items: center; padding: 28px; border-radius: 22px; background: var(--scene-bg); }
.oa-w { border-radius: 14px; padding: 14px; display: grid; gap: 10px; align-content: start; background: #fff; color: #15131d; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .6); min-width: 0; }
.oa-t { display: flex; align-items: center; gap: 8px; font: 600 12.5px/1.2 var(--f); }
.oa-t .dm { width: 16px; height: 16px; color: #6b2fb3; flex: none; }
.oa-1c { display: inline-grid; place-items: center; width: 24px; height: 18px; border-radius: 4px; background: #ffd400; color: #c4141b; font: 800 10px/1 var(--f); flex: none; }
.oa-tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 11.5px; }
.oa-tree li { display: grid; gap: 1px; padding: 6px 8px; border-radius: 8px; background: #f3f1f9; min-width: 0; }
.oa-tree li.l2 { margin-left: 12px; }
.oa-tree li.l3 { margin-left: 24px; background: transparent; box-shadow: inset 1px 0 0 #d6d2e6; border-radius: 0; }
.oa-tree code { font: 500 10px/1.3 var(--m); color: #6d6a80; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-tree span { color: #6d6a80; }
.oa-arrow { color: #dcc8ff; display: grid; }
.oa-arrow .ic { width: 24px; height: 24px; }
.oc { background: #fffdf3; }
.oa-rows { display: grid; grid-template-columns: 1fr auto; gap: 7px 10px; font-size: 11.5px; }
.oa-rows span { color: #4b485c; }
.oa-rows b { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* товарные группы плитками с иконками */
.g-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); gap: 8px; margin-top: 24px; }
.g-tile { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; hyphens: manual; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; line-height: 1.25; transition: box-shadow .15s ease, transform .15s ease; }
.g-tile:hover { box-shadow: inset 0 0 0 1px var(--acc); transform: translateY(-1px); }
.g-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--acc-soft); color: var(--acc-text); }
.g-ic .ic { width: 25px; height: 25px; stroke-width: 1.5; }
.g-tile.all { background: var(--acc); color: #fff; box-shadow: none; font-weight: 600; }
.g-tile.all .g-ic { background: rgba(255, 255, 255, .16); color: #fff; }
.due-list li { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
.due-list li .g-ic { grid-row: 1 / span 2; grid-column: 1; color: var(--acc-text); }
.due-list li b, .due-list li > span:not(.g-ic) { grid-column: 2; }
.due-list li .tag { grid-column: 3; }

/* недавно выпустили: выпуски пластами */
.sh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.sh { display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sh.new { box-shadow: inset 0 0 0 2px var(--acc); }
.sh-d { display: flex; align-items: center; gap: 10px; }
.sh-d .tag { font: 500 11px/1 var(--m); letter-spacing: .04em; text-transform: uppercase; padding: 5px 7px; border-radius: 6px; background: var(--acc); color: #fff; font-style: normal; }
.sh h3 { font: 650 19px/1.3 var(--fh); letter-spacing: -0.01em; }
.ship .sh ul { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin: 2px 0 6px; padding: 0; list-style: none; align-content: start; }
.ship .sh li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 14.5px; }
.ship .sh li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 2px; background: var(--acc); opacity: .6; }

/* тарифы: срок, лимиты, отличия */
.pl-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.pl-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl-seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 14px/1 var(--f); padding: 10px 13px; border-radius: 10px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; }
.pl-seg button em { font: 600 11px/1 var(--m); font-style: normal; color: #0f9a64; }
.pl-seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.pl-seg button[aria-pressed="true"] em { color: #d7ffe9; }
.pl-codes { margin-top: 22px; padding: 14px 18px; border-radius: 14px; background: var(--acc-soft); color: var(--ink-2); font-size: 15px; }
.pl-codes b { color: var(--ink); }
.pricing .pl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pricing .pl { display: flex; flex-direction: column; gap: 8px; }
.pl-who { color: var(--muted); font-size: 14px; margin-top: -4px; }
.pl-lim { margin: 8px 0 0; display: grid; border-top: 1px solid var(--line); }
.pl-lim div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pl-lim dt { color: var(--muted); }
.pl-lim dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.pl-plus { margin-top: 8px; font: 500 12px/1.3 var(--m); text-transform: uppercase; letter-spacing: .05em; color: var(--acc-text); }
.pricing .pl ul { margin: 2px 0 4px; }
.pl-tsd { font-size: 13.5px; color: var(--muted); padding-bottom: 8px; }
.pricing .pl .btn { margin-top: auto; }
.pl-demo { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 14px; padding: 18px 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.pl-demo b { color: var(--ink); }
.pl-cmp { margin-top: 14px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl-cmp summary { cursor: pointer; list-style: none; padding: 16px 22px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pl-cmp summary::-webkit-details-marker { display: none; }
.pl-cmp summary::after { content: "+"; font: 400 22px/1 var(--f); color: var(--muted); transition: transform .2s ease; }
.pl-cmp[open] summary::after { transform: rotate(45deg); }
.pl-tbl { padding: 0 8px 8px; }
.pl-tbl table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.pl-tbl th, .pl-tbl td { padding: 11px 12px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.pl-tbl thead th { border-top: 0; font: 500 12px/1.3 var(--m); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pl-tbl tbody th { font-weight: 500; width: 40%; }
.pl-tbl td { color: var(--ink-2); }
.pl-tbl td.y .ic { width: 17px; height: 17px; color: #0f9a64; }
.pl-tbl td.n { color: var(--muted); }

@media (max-width: 1100px) {
  .uc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tsd-f { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .upd-top, .onec-in, .tsd-card { grid-template-columns: minmax(0, 1fr); }
  .tsd-art { min-height: 540px; }
  .pricing .pl-grid { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
  .sh-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .uc-grid, .dev .dev-grid { grid-template-columns: minmax(0, 1fr); }
  .upd-lv div { grid-template-columns: 1fr; gap: 2px; }
  .ud-n { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ud-adv { flex-basis: 100%; }
  .tsd-txt { padding: 22px 18px; }
  .onec-art { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .oa-arrow { justify-self: center; transform: rotate(90deg); }
  .g-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-tile { padding: 8px 10px 8px 8px; gap: 10px; font-size: 13.5px; }
  .g-ic { width: 34px; height: 34px; }
  .pl-seg { width: 100%; }
  .pl-seg button { flex: 1; justify-content: center; padding: 8px 4px; flex-direction: column; gap: 3px; font-size: 13px; }
  .pl-tbl th, .pl-tbl td { padding: 9px 6px; font-size: 12.5px; }
  .pl-tbl tbody th { width: 34%; }
  .upd-foot, .pl-demo { padding: 18px; }
  .due-list li { grid-template-columns: auto minmax(0, 1fr); padding: 14px; }
  .due-list li .g-ic { grid-row: 1 / span 3; align-self: start; }
  .due-list li .tag { grid-column: 2; grid-row: auto; justify-self: start; }
}
/* плитки групп на самых узких экранах (владелец 21.11, 320): значок меньше, длинные слова переносятся по мягким переносам
   из GROUPS (v3_build.py) — текст не выходит за плитку и не наезжает на соседнюю. С 381px (iPhone 390 и шире) вид прежний */
@media (max-width: 380px) {
  .g-tile { padding: 8px; gap: 8px; font-size: 13px; }
  .g-tile .g-ic { width: 30px; height: 30px; border-radius: 9px; }
  .g-tile .g-ic .ic { width: 20px; height: 20px; }
}

/* подсказки компаний в первом экране (владелец 20.11: «просвечивает и обрезается снизу»):
   первый экран выше блока с цифрами (оба z-index 1, цифры шли позже и рисовались поверх),
   список не длиннее места в первом экране — у .hero overflow: hidden, дальше прокрутка внутри списка */
.hero > .hero-in { z-index: 3; }
/* 21.11 (check-dropdowns: «видно 4 компании из 7»): пока список открыт, первый экран не режет его по вертикали и лежит поверх блока
   «Более 2 500 компаний…» ниже. По горизонтали обрезка сцены остаётся (clip, а не hidden — иначе ось y станет auto) */
.hero:has(.sug:not([hidden])) { overflow-x: clip; overflow-y: visible; z-index: 5; }  /* сильнее p1.css (.hero-in z-index: 1), блок с цифрами .facts — 1 */
.sug { max-height: min(312px, 46vh); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--res-line) transparent; }
.sug li { padding: 9px 12px; }

/* ---- home7.css ---- */
/* Круг 7 (19.11): правки владельца по подходу 1. Подключается после home6.css */

/* язык в шапке — только код, флаги в открытом меню */
.lng summary { font: 600 12.5px/1 var(--m); letter-spacing: .04em; color: var(--hd-ink-2); }
.lng summary:hover, .lng[open] summary { color: var(--hd-ink); }
.ft-lng { gap: 12px; }
.ft-lng a { gap: 0; }
a.ul { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
a.ul:hover { color: var(--acc-text); text-decoration-color: currentColor; }

/* параллакс: слой точек в первом экране вместо ::after */
.hero::after { display: none; }
.hero-dots { position: absolute; left: 0; right: 0; top: -480px; bottom: 0; background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask: linear-gradient(to bottom, transparent 0, #000 480px, transparent 92%); mask: linear-gradient(to bottom, transparent 0, #000 480px, transparent 92%); pointer-events: none; will-change: translate; }
[data-par] { will-change: translate; }

/* для кого: выше по странице, «Как работать» на одном уровне */
.who { padding-block: 72px 24px; }
.who-card { display: flex; flex-direction: column; gap: 12px; }
.who-card ul { flex: 1; align-content: start; }
.who-card .more { margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); }

/* сравнение с бесплатными инструментами Честного ЗНАКа */
.vs-pic { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 36px; padding: 28px; border-radius: 24px; background: var(--scene-bg); color: var(--scene-ink); overflow: hidden; }
.vs-k { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--scene-ink-2); margin-bottom: 14px; }
.vs .cz { position: relative; list-style: none; margin: 0; padding: 0; height: 300px; }
.cz-w { position: absolute; left: var(--x); top: var(--y); width: 46%; transform: rotate(var(--r)); display: grid; gap: 2px; padding: 26px 12px 10px; border-radius: 10px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 18px 40px -20px rgba(0, 0, 0, .6); font-size: 13px; }
.cz-w::before { content: ""; position: absolute; left: 10px; top: 10px; width: 26px; height: 6px; background: radial-gradient(circle, rgba(255, 255, 255, .35) 2.2px, transparent 2.6px) 0 0 / 9px 6px repeat-x; }
.cz-w b { font-weight: 600; color: var(--scene-ink); }
.cz-w span { color: var(--scene-ink-2); font-size: 12px; }
.vs-arrow { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 8px rgba(150, 80, 230, .16); }
.vs-arrow .ic { width: 22px; height: 22px; }
.tm-w { border-radius: 14px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 30px 70px -30px rgba(10, 4, 30, .7); overflow: hidden; }
.tm-w-h { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #24183a; color: #ece6ff; font-weight: 600; font-size: 13px; }
.tm-w-h .dm { width: 20px; height: 20px; }
.tm-w-h span { flex: 1; }
.tm-w-h i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .3); }
.tm-w ul { list-style: none; margin: 0; padding: 10px; display: grid; gap: 4px; }
.tm-w li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14.5px; font-weight: 500; }
.tm-w li:nth-child(odd) { background: var(--res-due-bg); }
.tm-w li .ic { width: 17px; height: 17px; color: #0f9a64; }
.vs .vs-tbl { margin-top: 14px; }
.vs thead th:nth-child(2) { color: var(--muted); }
.vs .them { color: var(--ink-2); }
.vs .us { font-weight: 500; }
.vs .us { display: table-cell; }
.vs .us .ic { color: var(--acc-text); width: 17px; height: 17px; margin: 3px 0 0; }
.us-in { display: flex; gap: 9px; align-items: flex-start; }
.vs-src { margin-top: 12px; font-size: 12.5px; color: var(--muted); }

/* маркетплейсы: «Подписать всё» в окне кабинета */
.mp-in { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 44px; align-items: center; }
.mp-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.mp-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; color: var(--ink-2); font-size: 15px; }
.mp-list li b { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font: 600 13px/1 var(--m); background: var(--acc-soft); color: var(--acc-text); }
.mp-list li:last-child b { background: var(--acc); color: #fff; }
.mp-list strong { display: block; color: var(--ink); font-weight: 600; }
.mp-note { margin-top: 22px; color: var(--ink-2); font-size: 14.5px; }
.mp-note b { color: var(--ink); }
.mp .mp-links { margin-top: 18px; }
.sa-fit > .sa { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.sa { width: 760px; font: 400 12px/1.35 "Onest", system-ui, sans-serif; text-align: left;
  --c-bg: #f6f5fb; --c-surface: #ffffff; --c-ink: #1d1b2e; --c-muted: #6e6b85; --c-line: #e7e4f2; --c-top: #24183a; --c-top-ink: #ece9ff; --c-acc: #5200a2; --c-acc-soft: #f1e7ff; --c-row: #faf9fe; }
:root[data-cab="dark"] .sa { --c-bg: #15131f; --c-surface: #1c1a28; --c-ink: #e9e7f5; --c-muted: #9894b0; --c-line: #2c2940; --c-top: #110c1a; --c-top-ink: #dcd8f2; --c-acc: #9c42f0; --c-acc-soft: #2e1a4a; --c-row: #201d2e; }
.sa-win { position: relative; height: 430px; border-radius: 12px; overflow: hidden; background: var(--c-bg); color: var(--c-ink); box-shadow: 0 0 0 1px rgba(20, 16, 50, .08), 0 30px 80px -20px rgba(20, 16, 50, .35); }
.sa-top { height: 52px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--c-top); color: var(--c-top-ink); }
.sa-top .sp { flex: 1; }
.sa-tabs { display: flex; gap: 4px; margin-left: 8px; }
.sa-tabs > * { padding: 6px 10px; border-radius: 8px; font-size: 12px; }
.sa-tabs b { background: rgba(255, 255, 255, .12); font-weight: 600; }
.sa-tabs span { opacity: .6; }
.sa-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px 0 11px; border-radius: 9px; background: var(--c-acc); color: #fff; font-weight: 600; font-size: 12.5px; transition: transform .15s ease, background-color .3s ease; }
:root[data-cab="dark"] .sa-btn { background: #9c42f0; }
.sa-btn .ic { width: 17px; height: 17px; }
.sa-btn i { font-style: normal; font: 600 11px/1 var(--m); padding: 3px 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); margin-left: 2px; }
.sa-ring { width: 17px; height: 17px; display: none; transform: rotate(-90deg); }
.sa-ring circle { fill: none; stroke: rgba(255, 255, 255, .3); stroke-width: 2.4; }
.sa-ring .v { stroke: #fff; stroke-dasharray: 100; stroke-dashoffset: 100; stroke-linecap: round; }
.sa-l2, .sa-l3 { display: none; }
.sa[data-s="1"] .sa-btn { transform: scale(.95); }
.sa[data-s="4"] .sa-i1, .sa[data-s="4"] .sa-l1 { display: none; }
.sa[data-s="4"] .sa-ring, .sa[data-s="4"] .sa-l2 { display: inline-block; }
.sa[data-s="4"] .sa-ring .v { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s cubic-bezier(.4, 0, .4, 1); }
.sa[data-s="5"] .sa-l1 { display: none; }
.sa[data-s="5"] .sa-l3 { display: inline; }
.sa[data-s="5"] .sa-btn { background: color-mix(in srgb, var(--c-muted) 45%, transparent); }
.sa-h { display: flex; align-items: center; gap: 8px; padding: 16px 18px 12px; }
.sa-h h4 { margin: 0 6px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.sa-chip { font-size: 11px; padding: 4px 9px; border-radius: 999px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-muted); }
.sa-tbl { margin: 0 18px; border-radius: 10px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); overflow: hidden; }
.sa-tr { display: grid; grid-template-columns: 82px 1.5fr 1.25fr 1.25fr; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--c-line); font-variant-numeric: tabular-nums; }
.sa-th { border-top: 0; color: var(--c-muted); font-size: 11px; font-weight: 500; background: var(--c-row); }
.sa-n { font-family: var(--m); font-size: 11.5px; color: var(--c-muted); }
.sa-c { font-family: var(--m); font-size: 11px; color: var(--c-muted); }
.sa-st { position: relative; height: 22px; }
.sa-st i { position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 6px; font-style: normal; font-size: 11px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; transition: opacity .35s ease var(--d), transform .35s ease var(--d); }
.sa-st i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sa-st .b { color: #a3620d; background: rgba(214, 140, 30, .13); }
.sa-st .a { color: #18794e; background: rgba(24, 121, 78, .12); opacity: 0; transform: translateY(6px); }
:root[data-cab="dark"] .sa-st .b { color: #f2b45a; background: rgba(242, 180, 90, .12); }
:root[data-cab="dark"] .sa-st .a { color: #5fd39a; background: rgba(95, 211, 154, .12); }
.sa[data-s="4"] .sa-st .b, .sa[data-s="5"] .sa-st .b { opacity: 0; transform: translateY(-6px); }
.sa[data-s="4"] .sa-st .a, .sa[data-s="5"] .sa-st .a { opacity: 1; transform: none; }
.sa-win::after { content: ""; position: absolute; inset: 0; background: rgba(12, 8, 24, .38); opacity: 0; transition: opacity .25s ease; pointer-events: none; }
.sa[data-s="2"] .sa-win::after, .sa[data-s="3"] .sa-win::after { opacity: 1; }
.sa-dlg { position: absolute; z-index: 2; left: 50%; top: 50%; width: 430px; translate: -50% -50%; padding: 20px 20px 16px; border-radius: 16px; background: var(--c-surface); box-shadow: 0 30px 70px -20px rgba(10, 4, 30, .55), 0 0 0 1px var(--c-line); display: grid; gap: 12px; opacity: 0; transform: scale(.96); transition: opacity .22s ease, transform .22s cubic-bezier(.2, .8, .2, 1); }
.sa[data-s="2"] .sa-dlg, .sa[data-s="3"] .sa-dlg { opacity: 1; transform: none; }
.sa-dt { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; }
.sa-mk { font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--c-acc-soft); color: var(--c-acc); }
:root[data-cab="dark"] .sa-mk { color: #d6b4ff; }
.sa-lead { color: var(--c-muted); font-size: 13px; }
.sa-lead b { color: var(--c-ink); font-size: 15px; }
.sa-g { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px; border-radius: 12px; background: var(--c-row); box-shadow: inset 0 0 0 1px var(--c-line); }
.sa-tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--c-acc-soft); color: var(--c-acc); }
:root[data-cab="dark"] .sa-tile { color: #d6b4ff; }
.sa-tile .ic { width: 22px; height: 22px; }
.sa-gn { font-size: 13.5px; }
.sa-gs { display: flex; gap: 12px; color: var(--c-muted); margin-top: 2px; }
.sa-gs b { color: var(--c-ink); }
.sa-pl { display: flex; align-items: center; gap: 5px; margin-top: 4px; color: var(--c-muted); font-size: 11px; }
.sa-pl .ic { width: 13px; height: 13px; }
.sa-note { color: var(--c-muted); font-size: 11.5px; }
.sa-act { display: flex; justify-content: flex-end; gap: 8px; }
.sa-b { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 9px; font-weight: 600; font-size: 12.5px; transition: transform .15s ease; }
.sa-b .ic { width: 16px; height: 16px; }
.sa-b.g { color: var(--c-acc); }
:root[data-cab="dark"] .sa-b.g { color: #d6b4ff; }
.sa-b.p { background: var(--c-acc); color: #fff; }
.sa[data-s="3"] .sa-b.p { transform: scale(.95); }
.sa-toast { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: #1d1a2b; color: #f1effa; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(14px); transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.sa[data-s="5"] .sa-toast { opacity: 1; transform: none; }
.sa-toast span:nth-child(2) { display: grid; font-size: 11.5px; color: #b8b3cf; }
.sa-toast b { color: #fff; font-size: 13px; }
.sa-toast i { font-style: normal; font: 600 11px/1 var(--m); padding: 5px 8px; border-radius: 999px; background: #9c42f0; color: #fff; }
.sa-ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(95, 211, 154, .16); color: #5fd39a; }
.sa-ok .ic { width: 15px; height: 15px; }
.sa-cur { position: absolute; z-index: 4; left: 92%; top: 96%; width: 24px; height: 24px; margin: -3px 0 0 -5px; opacity: 0; transition: left .85s cubic-bezier(.45, .05, .25, 1), top .85s cubic-bezier(.45, .05, .25, 1), opacity .3s ease; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); pointer-events: none; }

/* станция маркировки: главный блок раздела устройств */
.st-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); margin-top: 32px; border-radius: 26px; overflow: hidden; background: var(--scene-bg); color: var(--scene-ink); position: relative; }
.st-card::before { content: ""; position: absolute; inset: auto 0 -40% 30%; height: 80%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.st-txt { position: relative; padding: 40px 40px 36px; display: grid; gap: 16px; align-content: start; }
.st-k { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: #dcc8ff; }
.st-k .ic { width: 16px; height: 16px; color: #ffcf5c; }
.st-txt h3 { font: var(--h-w) clamp(30px, 3vw, 42px)/1.05 var(--fh); letter-spacing: var(--h-ls); }
.st-txt > p { color: var(--scene-ink-2); max-width: 52ch; }
.st-num { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 6px 0 0; border-block: 1px solid var(--scene-line); }
.st-num div { padding: 16px 14px 16px 0; }
.st-num div + div { padding-left: 16px; border-left: 1px solid var(--scene-line); }
.st-num dt { white-space: nowrap; font: var(--h-w) clamp(20px, 1.9vw, 27px)/1.05 var(--fh); letter-spacing: -0.03em; color: #fff; }
.st-num div:first-child dt { color: #ffcf5c; }
.st-num dd { margin: 6px 0 0; color: var(--scene-ink-2); font-size: 13px; line-height: 1.4; }
.st-f { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st-f li { display: grid; grid-template-columns: auto 1fr; gap: 9px; color: var(--scene-ink); font-size: 14.5px; }
.st-f .ic { width: 16px; height: 16px; color: #5fd39a; margin-top: 3px; }
.st-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.st-cta .more { color: #dcc8ff; }
.st-art { position: relative; display: grid; place-items: center; padding: 20px; }
.st-art canvas { width: 100%; height: auto; max-width: 680px; aspect-ratio: 680 / 520; --iso-grid: rgba(255, 255, 255, .06); --iso-fade: #130f22; }
.dev .tsd-card { margin-top: 14px; }
.dev-card.wide { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.dev-card.wide > div:nth-child(2) { flex: 1; display: grid; gap: 4px; }
.dev-card.wide .more { white-space: nowrap; }

/* приёмка: удочка, подробно на посадочной */
.upd-hook { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 44px; align-items: center; padding: 36px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.upd-pts { list-style: none; margin: 22px 0 24px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.upd-pts li { display: grid; gap: 4px; align-content: start; }
.upd-pts b { font: var(--h-w) 30px/1 var(--fh); letter-spacing: -0.03em; color: var(--acc-text); }
.upd-pts span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.upd-hook .btn .ic { width: 16px; height: 16px; }

/* тарифы: за код крупно, в месяц и за срок мелко, полосы против цены кода */
.pl-vs { margin-top: 26px; padding: 22px 24px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.pb { display: grid; grid-template-columns: 170px minmax(0, 1fr) 76px; gap: 14px; align-items: center; font-size: 14px; }
.pb-n { color: var(--ink-2); }
.pb-t { height: 12px; border-radius: 6px; background: var(--hover); overflow: hidden; }
.pb-t i { display: block; height: 100%; width: var(--w); min-width: 6px; border-radius: 6px; background: var(--acc); transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.pb.cz .pb-t i { background: repeating-linear-gradient(135deg, #e0b43a 0 6px, #edc65a 6px 12px); }
.pb.cz .pb-n { color: var(--ink); font-weight: 600; }
.pb b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-vs-n { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.pl-k { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; font: var(--h-w) 46px/1 var(--fh); letter-spacing: -0.04em; }
.pl.hot .pl-k { color: var(--acc-text); }
.pl-k small { font: 500 14px/1.2 var(--f); letter-spacing: 0; color: var(--muted); }
.pl-pm { color: var(--ink-2); font-size: 14px; }
.pl-pm b { color: var(--ink); font-weight: 600; }
.pricing .pl-lim { margin-top: 6px; }

.ft-grid { grid-template-columns: minmax(0, 1.25fr) repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) {
  .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .vs-pic { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .vs-arrow { justify-self: center; transform: rotate(90deg); }
  .mp-in, .st-card, .upd-hook { grid-template-columns: minmax(0, 1fr); }
  .st-txt { padding: 28px 24px 8px; }
  .upd-hook { padding: 24px; gap: 28px; }
}
@media (max-width: 640px) {
  .vs .cz { height: 340px; }
  .cz-w { width: 54%; font-size: 12px; padding: 22px 10px 8px; }
  .cz-w:nth-child(even) { left: auto; right: 0; }
  .st-num { grid-template-columns: minmax(0, 1fr); }
  .st-num div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--scene-line); }
  .upd-pts { grid-template-columns: minmax(0, 1fr); }
  .upd-pts li { grid-template-columns: 44px 1fr; align-items: baseline; }
  .pb { grid-template-columns: minmax(0, 1fr) 70px; gap: 6px 10px; }
  .pb-t { grid-column: 1 / -1; grid-row: 2; }
  .dev-card.wide { flex-wrap: wrap; }
  .ft-grid { grid-template-columns: minmax(0, 1fr); }
  .pl-k { font-size: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-par] { translate: none !important; }
  .sa-st i, .sa-dlg, .sa-toast, .sa-cur, .pb-t i { transition: none; }
}

/* логотипы клиентов: файлы с нынешнего сайта, оттенками серого, в тёмной теме светлые */
.logos-in { flex-direction: column; align-items: stretch; gap: 22px; }
.logos-in p { max-width: none; text-align: center; }
.logos-row.cl { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: space-between; gap: 22px 36px; flex-wrap: wrap; }
.cl img { display: block; width: auto; max-width: 150px; filter: grayscale(1) contrast(1.15); opacity: .62; transition: opacity .2s ease, filter .2s ease; }
.cl li:hover img { opacity: .95; filter: none; }
.cl-t { font: 700 24px/1 var(--fh); letter-spacing: -0.02em; color: var(--ink); opacity: .5; white-space: nowrap; }
:root[data-theme="dark"] .cl img { filter: grayscale(1) invert(1) contrast(1.1); opacity: .8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cl img { filter: grayscale(1) invert(1) contrast(1.1); opacity: .8; } }
@media (max-width: 980px) { .logos-row.cl { justify-content: center; } }
@media (max-width: 640px) { .cl img { transform: scale(.8); } .logos-row.cl { gap: 14px 22px; } }

/* «Подписать всё» на телефоне: окно уже, без колонки кода, чтобы было крупнее */
@media (max-width: 640px) {
  .sa { width: 540px; }
  .sa-tr { grid-template-columns: 74px minmax(0, 1fr) 150px; }
  .sa-c, .sa-th span:nth-child(3) { display: none; }
  .sa-tabs span { display: none; }
  .sa-dlg { width: 410px; }
  .sa-win { height: 420px; }
}

/* меню на планшете и телефоне: бургер с 1100 px, раскрытое меню — панель под шапкой (html[data-menu-open] ставит app.js) */
@media (max-width: 1100px) {
  .burger { display: flex; position: relative; }
  .burger i { transition: transform .2s ease, opacity .2s ease; }
  :root[data-menu-open] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }  /* шаг полосок: 5 px зазор + 2 px полоса */
  :root[data-menu-open] .burger i:nth-child(2) { opacity: 0; }
  :root[data-menu-open] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  :root[data-menu-open] .hd .nav { display: flex; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 2px; padding: 10px max(16px, env(safe-area-inset-left, 0px)) 18px; background: var(--scene-bg-solid, #100e19); border-bottom: 1px solid var(--hd-line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .5); max-height: calc(100dvh - 64px); overflow-y: auto; }
  :root[data-menu-open] .hd .nav a { padding: 13px 12px; font-size: 16px; border-radius: 10px; color: var(--hd-ink); }
  .nav-extra { display: none; }
  :root[data-menu-open] .hd .nav .nav-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--hd-line); }
  :root[data-menu-open] .hd .nav .nav-extra .btn { width: 100%; }
}
@media (min-width: 641px) { .nav-extra { display: none !important; } }

/* ===== «Продукт» — выпадающее меню по задачам (владелец 21.11). Панель на всю ширину шапки, тёмная в обеих темах шапки ===== */
.pm { display: contents; }
.pm-b { display: inline-flex; align-items: center; gap: 4px; padding: 7px 9px 7px 11px; border: 0; border-radius: 8px; background: transparent; color: var(--hd-ink-2); font: inherit; cursor: pointer; white-space: nowrap; }
.pm-b:hover, .pm-b[aria-expanded="true"] { color: var(--hd-ink); background: var(--hd-hover); }
.pm-b:focus-visible { outline: 2px solid var(--focus, #6b2fb3); outline-offset: 1px; }
.pm-chev { width: 14px; height: 14px; transition: transform .2s ease; }
.pm-b[aria-expanded="true"] .pm-chev { transform: rotate(180deg); }
.pm-p { position: absolute; left: 0; right: 0; top: 100%; background: var(--hd-solid, #12101c); border-top: 1px solid var(--hd-line); border-bottom: 1px solid var(--hd-line);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); animation: pm-in .18s ease-out; }
.pm-p[hidden] { display: none; }
@keyframes pm-in { from { opacity: 0; transform: translateY(-6px); } }
.pm-in { padding-block: 26px 22px; }
.pm-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.pm-h { margin: 0 0 10px; font: 500 11.5px/1.3 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--hd-ink-2); }
.pm-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* white-space: normal — у ссылок шапки (.nav a, base.css) nowrap, без этого подписи не переносились и залезали на соседнюю колонку (владелец 21.11) */
.pm-col a { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 9px 10px; margin-inline: -10px; border-radius: 12px; color: var(--hd-ink); white-space: normal; }
.pm-col a .pm-ic { margin-top: 1px; }
.pm-col a:hover, .pm-col a:focus-visible { background: var(--hd-hover); outline: none; }
.pm-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(155, 109, 255, .16); color: #d5c2ff; }
.pm-ic .ic { width: 18px; height: 18px; }
.pm-t { display: grid; gap: 2px; min-width: 0; }
.pm-t b { font-weight: 600; font-size: 14.5px; }
.pm-t span { font-size: 13px; line-height: 1.35; color: var(--hd-ink-2); }
.pm-for { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--hd-line); font-size: 13.5px; }
.pm-for > span { font: 500 11.5px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--hd-ink-2); margin-right: 6px; }
.pm-for a { padding: 6px 12px; border-radius: 999px; color: var(--hd-ink); box-shadow: inset 0 0 0 1px var(--hd-line); }
.pm-for a:hover { background: var(--hd-hover); }
@media (prefers-reduced-motion: reduce) { .pm-p { animation: none; } .pm-chev { transition: none; } }
@media (max-width: 1100px) {
  /* в мобильном меню: кнопка строкой списка, панель раскрывается внутри меню, без описаний */
  :root[data-menu-open] .hd .nav .pm-b { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 16px; border-radius: 10px; color: var(--hd-ink); }
  .pm-p { position: static; border: 0; box-shadow: none; background: transparent; animation: none; }
  .pm-in { padding: 0 0 6px 8px; max-width: none; }
  .pm-cols { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pm-h { margin: 8px 0 4px 12px; }
  .pm-col a { grid-template-columns: 28px minmax(0, 1fr); margin: 0; padding: 9px 12px; }
  .pm-ic { width: 28px; height: 28px; border-radius: 8px; }
  .pm-t span { display: none; }
  .pm-for { margin: 10px 0 0 12px; padding-top: 12px; }
}

/* ---- home8.css ---- */
/* Круг 7, вечер: анимация работы в «Как это работает» и редактор этикеток на шаге «Печать». Подключается после home7.css */

/* шаги листаются сами, полоска показывает время шага */
.how-tabs button { position: relative; }
.how-tabs button.run::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--acc); opacity: .75; transform-origin: 0 50%; animation: howfill var(--dur, 7000ms) linear forwards; }
@keyframes howfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.cab .cab-cur { position: absolute; z-index: 6; left: 90%; top: 92%; width: 22px; height: 22px; margin: -3px 0 0 -5px; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); transition: left .85s cubic-bezier(.45, .05, .25, 1), top .85s cubic-bezier(.45, .05, .25, 1), opacity .3s ease; }
.cab-btn, .ed-b, .ed-add > span, .ed-pop li { transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.cab .press { transform: scale(.93); }
.cab-new { background: var(--c-acc-soft); max-height: 48px; overflow: hidden; transition: background-color 1.2s ease, max-height .4s ease, padding .4s ease, opacity .4s ease; }
.cab-new.off { max-height: 0; padding-block: 0; opacity: 0; border-top-width: 0; }
.cab-new.settled { background: transparent; }
.st-seq { display: inline-grid; }
.st-seq > .st { grid-area: 1 / 1; opacity: 0; transform: translateY(4px); transition: opacity .3s ease, transform .3s ease; }
.cab-new[data-k="0"] .st-seq > :nth-child(1), .cab-new[data-k="1"] .st-seq > :nth-child(2), .cab-new[data-k="2"] .st-seq > :nth-child(3) { opacity: 1; transform: none; }

/* редактор этикеток — как в кабинете (libs/mark-editor) */
.ed .ed-main { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 16px; padding: 14px 16px; min-height: 0; min-width: 0; }
.ed-l { display: grid; gap: 10px; align-content: start; }
.ed-l section { position: relative; background: var(--c-surface); border-radius: 12px; padding: 12px; box-shadow: inset 0 0 0 1px var(--c-line); }
.ed-h { font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--c-muted); margin: 0 0 9px; }
.ed-f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ed-f3 span { position: relative; border: 1px solid var(--c-line); border-radius: 7px; padding: 11px 8px 6px; font-size: 12px; }
.ed-f3 i { position: absolute; top: -6px; left: 6px; font-style: normal; font-size: 9px; color: var(--c-muted); background: var(--c-surface); padding: 0 3px; }
.ed-tg { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 9.5px; color: var(--c-muted); }
.ed-tg .tg.on { margin-left: 10px; }
.tg { width: 26px; height: 14px; border-radius: 7px; background: var(--c-line); position: relative; flex: none; }
.tg::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; }
.tg.on { background: var(--c-acc); }
.tg.on::after { left: 14px; }
.ed-tpl { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; border: 1px solid var(--c-line); border-radius: 8px; padding: 7px 8px; font-size: 11.5px; }
.ed-tpl-i { width: 26px; height: 18px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--c-ink) 0 2px, transparent 2px 4px); opacity: .45; }
.ed-tpl em { font-style: normal; color: var(--c-muted); font-size: 10px; }
.ed-add { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ed-add > span { color: var(--c-acc); font-size: 12px; font-weight: 500; padding: 5px 7px; border-radius: 7px; }
:root[data-cab="dark"] .ed-add > span, :root[data-cab="dark"] .ed-b.g, :root[data-cab="dark"] .ed-pop li.hov, :root[data-cab="dark"] .ed-n { color: #d6b4ff; }
.ed-add .ed-ic { width: 28px; height: 24px; display: grid; place-items: center; padding: 0; }
.ed-add .ed-ic .dm { width: 18px; height: 18px; color: var(--c-ink); }
.ed-add .ed-ic .bars { width: 22px; height: 14px; fill: var(--c-ink); }
.ed-pop { position: absolute; z-index: 3; left: 12px; top: 72px; width: 184px; margin: 0; padding: 5px; list-style: none; border-radius: 10px; background: var(--c-surface); box-shadow: 0 16px 40px -12px rgba(10, 4, 30, .4), 0 0 0 1px var(--c-line); font-size: 12px; opacity: 0; transform: translateY(-4px); transition: opacity .2s ease, transform .2s ease; pointer-events: none; }
.ed-pop li { padding: 7px 9px; border-radius: 7px; }
.ed-pop li.hov { background: var(--c-acc-soft); color: var(--c-acc); }
.ed[data-k="1"] .ed-pop { opacity: 1; transform: none; }
.ed[data-k="1"] [data-ed-vars] { background: var(--c-acc-soft); }
.ed-row { display: flex; justify-content: space-between; align-items: center; }
.ed-row .ed-h { margin: 0; }
.ed-row b { color: var(--c-muted); font-weight: 400; font-size: 16px; line-height: 1; }
.ed-n { display: inline-grid; font-style: normal; margin-left: 6px; color: var(--c-acc); letter-spacing: 0; }
.ed-n span { grid-area: 1 / 1; transition: opacity .3s ease; }
.ed-n .b, .ed[data-k="2"] .ed-n .a, .ed[data-k="3"] .ed-n .a, .ed[data-k="4"] .ed-n .a { opacity: 0; }
.ed[data-k="2"] .ed-n .b, .ed[data-k="3"] .ed-n .b, .ed[data-k="4"] .ed-n .b { opacity: 1; }
.ed-r { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; min-width: 0; }
.ed-top { display: flex; align-items: center; gap: 8px; }
.ed-top .sp { flex: 1; }
.ed-b { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 14px; border-radius: 16px; font-size: 12px; font-weight: 500; white-space: nowrap; }
.ed-b.g { box-shadow: inset 0 0 0 1px currentColor; color: var(--c-acc); }
.ed-b.p { background: var(--c-acc); color: #fff; }
.ed-cnt { font-size: 11px; padding: 6px 10px; border-radius: 999px; background: var(--c-acc-soft); }
.ed-b .l2, .ed-spin { display: none; }
.ed[data-k="3"] .ed-b.p .l1 { display: none; }
.ed[data-k="3"] .ed-b.p .l2, .ed[data-k="3"] .ed-spin { display: inline-block; }
.ed-spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: edspin .8s linear infinite; }
@keyframes edspin { to { transform: rotate(360deg); } }
.ed[data-k="4"] .ed-dl { background: var(--c-acc); color: #fff; box-shadow: none; }
.ed-tools { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--c-surface); box-shadow: inset 0 0 0 1px var(--c-line); }
.ed-tools i { width: 15px; height: 15px; border-radius: 4px; background: var(--c-acc); opacity: .3; }
.ed-tools i:nth-child(5n) { width: 64px; height: 22px; border-radius: 6px; opacity: 1; background: transparent; box-shadow: inset 0 0 0 1px var(--c-line); }
.ed-canvas { display: grid; place-items: center; min-height: 0; }
.ed-lbl { position: relative; width: 430px; height: 296px; color: #111; border: 6px solid #8a8a8a; background-color: #fff; background-image: linear-gradient(#e7e7e7 1px, transparent 1px), linear-gradient(90deg, #e7e7e7 1px, transparent 1px); background-size: 10px 10px; font-family: "Onest", system-ui, sans-serif; }
.ed-dm { position: absolute; left: 18px; top: 22px; width: 172px; height: 172px; color: #111; }
.ed-t1 { position: absolute; left: 208px; top: 22px; right: 14px; font-weight: 700; font-size: 21px; line-height: 1.15; }
.ed-t2 { position: absolute; left: 208px; top: 102px; font-size: 13px; }
.ed-t3 { position: absolute; left: 18px; bottom: 18px; font: 500 19px/1 ui-monospace, Consolas, monospace; letter-spacing: .08em; }
.ed-new { position: absolute; left: 204px; top: 132px; padding: 5px 7px; font-weight: 600; font-size: 15px; outline: 1px solid #3b9cff; background: rgba(59, 156, 255, .08); opacity: 0; transform: scale(.92); transform-origin: 0 50%; transition: opacity .3s ease, transform .3s cubic-bezier(.2, .8, .2, 1); }
.ed-new i { position: absolute; width: 6px; height: 6px; background: #3b9cff; }
.ed-new i:nth-child(2) { left: -3px; top: -3px; }
.ed-new i:nth-child(3) { right: -3px; top: -3px; }
.ed-new i:nth-child(4) { left: -3px; bottom: -3px; }
.ed-new i:nth-child(5) { right: -3px; bottom: -3px; }
.ed[data-k="2"] .ed-new, .ed[data-k="3"] .ed-new, .ed[data-k="4"] .ed-new { opacity: 1; transform: none; }
.ed[data-k="4"] .ed-new { outline-color: transparent; background: transparent; }
.ed[data-k="4"] .ed-new i { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .how-tabs button.run::after { display: none; }
  .cab-new, .st-seq > .st, .ed-new, .ed-pop { transition: none; }
  .ed-spin { animation: none; }
}

/* ---------- Первый экран: «одно окно» (сцена в iso.js, hub) ---------- */
.hub { position: relative; display: grid; gap: 10px; justify-items: center; container-type: inline-size; align-self: center; }
.hub-stage { position: relative; width: 100%; max-width: 700px; }
/* метки стоят в процентах от холста, а не от всей сцены: на узкой ширине плашка под сценой не тянет их вниз (владелец 21.11) */
.hub-map { position: relative; }
.hub canvas { display: block; width: 100%; height: auto; aspect-ratio: 660 / 500; }
.hub-l { position: absolute; margin: 0; transform: translate(-50%, 0); display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; pointer-events: none; white-space: nowrap;
  opacity: 0; translate: 0 8px; transition: opacity .6s cubic-bezier(.2, .8, .2, 1), translate .6s cubic-bezier(.2, .8, .2, 1); }
.hub-l.top { transform: translate(-50%, -100%); flex-direction: column-reverse; }
.hub.in .hub-l { opacity: 1; translate: 0 0; }
.hub.in .hub-l:nth-of-type(2) { transition-delay: .55s; } .hub.in .hub-l:nth-of-type(3) { transition-delay: .62s; } .hub.in .hub-l:nth-of-type(4) { transition-delay: .69s; }
.hub.in .hub-l:nth-of-type(5) { transition-delay: .76s; } .hub.in .hub-l:nth-of-type(6) { transition-delay: .83s; } .hub.in .hub-l:nth-of-type(7) { transition-delay: .9s; }
.hub.in .hub-l:nth-of-type(8) { transition-delay: .97s; } .hub.in .hub-l:nth-of-type(1) { transition-delay: .48s; }
.hub-l b { font: 650 10.5px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: rgba(255, 255, 255, .88); padding: 6px 9px 5px; border-radius: 999px;
  background: rgba(14, 11, 26, .78); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13); transition: color .3s, background-color .3s, box-shadow .3s; }
.hub-l span { font: 500 10.5px/1.2 var(--m); color: rgba(255, 255, 255, .82); max-height: 0; opacity: 0; overflow: hidden; transition: max-height .35s cubic-bezier(.2, .8, .2, 1), opacity .3s; }
.hub-l.on span { max-height: 1.4em; opacity: 1; }
.hub-l.on b { color: #fff; background: rgba(107, 47, 179, .92); box-shadow: inset 0 0 0 1px #B58CFF, 0 0 22px rgba(149, 88, 224, .6); }
.hub-act { position: absolute; margin: 0; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px 8px 11px; border-radius: 999px; white-space: nowrap;
  background: rgba(14, 11, 26, .86); box-shadow: inset 0 0 0 1px rgba(181, 140, 255, .5), 0 10px 34px rgba(107, 47, 179, .4); font: 600 12px/1 var(--m); color: #fff;
  opacity: 0; transition: opacity .6s .9s; }
.hub.in .hub-act { opacity: 1; }
.hub-act i { width: 7px; height: 7px; border-radius: 50%; background: #4BE0B5; animation: hub-beacon 1.6s ease-out infinite; flex: none; }
.hub-act b { color: #CDB4FF; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
@keyframes hub-beacon { 0% { box-shadow: 0 0 0 0 rgba(75, 224, 181, .6); } 100% { box-shadow: 0 0 0 9px rgba(75, 224, 181, 0); } }
.hub-steps { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; width: min(100%, 460px); padding-top: 4px; }
.hub-track { position: absolute; left: 12.5%; right: 12.5%; top: 9px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hub-fill { position: absolute; inset: 0; background: linear-gradient(90deg, #6B2FB3, #B58CFF); transform-origin: 0 50%; transform: scaleX(0); }
.hub-step { position: relative; display: grid; justify-items: center; gap: 7px; padding: 0 4px 2px; font: 600 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255, 255, 255, .42); background: none; border: 0; cursor: pointer; transition: color .3s; }
.hub-step i { width: 12px; height: 12px; border-radius: 50%; background: #1b1630; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); transition: background-color .3s, box-shadow .3s; }
.hub-step:hover { color: rgba(255, 255, 255, .8); }
.hub-step.done i { background: #6B2FB3; box-shadow: inset 0 0 0 2px #9558E0; }
.hub-step.on { color: #fff; } .hub-step.on i { background: #B58CFF; box-shadow: 0 0 0 4px rgba(181, 140, 255, .22), 0 0 14px rgba(181, 140, 255, .7); }
.hub-step:focus-visible { outline: 2px solid #B58CFF; outline-offset: 2px; border-radius: 6px; }
@container (max-width: 560px) {
  .hub-l span { display: none; } .hub-l b { font-size: 9.5px; padding: 5px 7px 4px; }
  /* на узком экране подпись действия — под сценой, чтобы не закрывать предметы */
  .hub-act { position: static; transform: none; display: flex; width: max-content; max-width: 100%; margin: 26px auto 0; font-size: 11px; padding: 7px 11px 7px 9px; }
}
@container (max-width: 400px) { .hub-l b { font-size: 8.5px; letter-spacing: .04em; padding: 4px 6px 3px; } }
@media (prefers-reduced-motion: reduce) { .hub-l, .hub-act { transition: none; } .hub-act i { animation: none; } }

/* ---------- Переключения как в реестре стенда рецептов (TMFlip в iso.js) ---------- */
fx-c { position: relative; display: inline-block; clip-path: inset(0 -0.05em); font: inherit; color: inherit; -webkit-mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); mask-image: linear-gradient(transparent, #000 16%, #000 84%, transparent); }
fx-w { visibility: hidden; }
fx-s { position: absolute; left: 0; right: 0; top: 0; display: block; text-align: center; }
fx-i { display: block; height: 1.2em; height: 1lh; }
fx-new, fx-old { display: inline; }
.fx-swap { position: relative; }
fx-old { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; }

/* ---------- Блоки проступают при прокрутке (reveal в iso.js); без скрипта всё видно сразу ---------- */
.rv { opacity: 0; translate: 0 22px; transition: opacity .7s cubic-bezier(.2, .8, .2, 1), translate .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--rv-i, 0) * 70ms); }
.rv.rv-in { opacity: 1; translate: 0 0; }
[data-roll] { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; translate: none; transition: none; } }

/* ---------- Сравнение: окна вразнобой слева, шаги Трумарка справа (vsPic в iso.js) ---------- */
.vs-pic.anim .cz-w { will-change: transform; transition: box-shadow .3s, background-color .3s; }
.cz-w::after { content: ""; position: absolute; right: 10px; top: 8px; width: 9px; height: 9px; border-radius: 50%; background: #FFB547; opacity: 0; transform: scale(.4); }
.cz-w.ping { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .55), 0 18px 40px -20px rgba(0, 0, 0, .6); }
.cz-w.ping::after { animation: cz-ping 1.5s cubic-bezier(.2, .8, .2, 1) both; }
.cz-w.ping::before { background-image: radial-gradient(circle, rgba(255, 181, 71, .9) 2.2px, transparent 2.6px); }
@keyframes cz-ping { 0% { opacity: 0; transform: scale(.4); box-shadow: 0 0 0 0 rgba(255, 181, 71, .7); } 15% { opacity: 1; transform: scale(1.15); } 30% { transform: scale(1); }
  70% { opacity: 1; box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); } 100% { opacity: 0; box-shadow: 0 0 0 10px rgba(255, 181, 71, 0); } }
.vs-pic.anim .tm-w li { position: relative; transition: background-color .35s, color .35s, opacity .35s; }
.vs-pic.anim .tm-w li .ic { transition: opacity .2s, transform .45s cubic-bezier(.3, 1.6, .5, 1); }
.vs-pic.anim .tm-w li::before { content: ""; position: absolute; left: 12px; top: 50%; width: 17px; height: 17px; margin-top: -8.5px; box-sizing: border-box; border-radius: 50%;
  border: 1.6px solid var(--res-line); transition: opacity .2s; }
.vs-pic.anim .tm-w li[data-s="0"] { opacity: .55; }
.vs-pic.anim .tm-w li[data-s="0"] .ic, .vs-pic.anim .tm-w li[data-s="1"] .ic { opacity: 0; transform: scale(.3); }
.vs-pic.anim .tm-w li[data-s="1"] { background: rgba(149, 88, 224, .14); box-shadow: inset 0 0 0 1px rgba(149, 88, 224, .35); }
.vs-pic.anim .tm-w li[data-s="1"]::before { border-color: rgba(149, 88, 224, .25); border-top-color: #9558E0; animation: tm-spin .6s linear infinite; }
.vs-pic.anim .tm-w li[data-s="2"]::before { opacity: 0; }
@keyframes tm-spin { to { transform: rotate(360deg); } }
.vs-arrow.pulse { animation: vs-pulse 1.4s cubic-bezier(.2, .8, .2, 1); }
@keyframes vs-pulse { 0% { box-shadow: 0 0 0 8px rgba(150, 80, 230, .16), 0 0 0 0 rgba(181, 140, 255, .6); } 100% { box-shadow: 0 0 0 8px rgba(150, 80, 230, .16), 0 0 0 26px rgba(181, 140, 255, 0); } }

/* ---------- ТСД: скан по шагам (tsdSim) ---------- */
.tsd.sim .tsd-beam { animation: none; opacity: .18; }
.tsd.sim.scan .tsd-beam { animation: tsd-shot .9s cubic-bezier(.2, .8, .2, 1); }
@keyframes tsd-shot { 0% { opacity: .18; } 25% { opacity: 1; } 55% { opacity: 1; } 100% { opacity: .18; } }
.ts-ok.hit { animation: ts-hit .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes ts-hit { 0% { box-shadow: inset 3px 0 0 #0f9a64, 0 0 0 0 rgba(15, 154, 100, .45); background: #c6eed8; } 100% { box-shadow: inset 3px 0 0 #0f9a64, 0 0 0 8px rgba(15, 154, 100, 0); } }
.ts-pr u { transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.ts-l b { transition: color .3s; }
.ts-btn { transition: box-shadow .3s, transform .3s; }
.ts-btn.ready { box-shadow: 0 0 0 4px rgba(107, 47, 179, .22); animation: ts-ready 1.4s ease-in-out infinite; }
@keyframes ts-ready { 50% { transform: scale(1.025); } }

/* ---------- 1С: выгрузка черновика (onecSim) ---------- */
.onec-art.sim .oa-tree li { transition: background-color .35s, box-shadow .35s; }
.onec-art.sim .oa-tree li.hl { background: #ece3ff; box-shadow: inset 0 0 0 1px rgba(107, 47, 179, .35); }
.onec-art.sim .oa-tree li.l3.hl { background: rgba(107, 47, 179, .08); }
.oa-arrow { position: relative; }
.oa-arrow.flow::before, .oa-arrow.flow::after { content: ""; position: absolute; top: 50%; left: -14px; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #c9a8ff;
  box-shadow: 0 0 10px #b58cff; animation: oa-dot .8s cubic-bezier(.4, 0, .2, 1) both; }
.oa-arrow.flow::after { animation-delay: .18s; }
@keyframes oa-dot { 0% { transform: translateX(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateX(46px); opacity: 0; } }
.onec-art.sim .oa-w.oc { transition: box-shadow .4s; }
.onec-art.sim .oa-w.oc.wait { box-shadow: 0 0 0 2px rgba(255, 210, 63, .0); }
.onec-art.sim .oa-rows > * { opacity: 0; translate: 0 6px; transition: opacity .35s, translate .35s cubic-bezier(.2, .8, .2, 1); }
.onec-art.sim .oa-rows > .in { opacity: 1; translate: 0 0; }
.onec-art.sim .oa-w.oc:not(.wait) .oa-1c { animation: oa-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes oa-pop { 0% { transform: scale(.7); } 100% { transform: none; } }

/* ---------- data-seq: дети по очереди; приёмка — замечания одно за другим ---------- */
.sq > * { opacity: 0; translate: 0 10px; transition: opacity .45s, translate .45s cubic-bezier(.2, .8, .2, 1); }
.sq > .sq-in { opacity: 1; translate: 0 0; }
.ud-f.sq .sq-in .lv { animation: lv-ping .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes lv-ping { 0% { transform: scale(.3); } 55% { transform: scale(1.5); } 100% { transform: none; } }
.ud-st { animation: ud-st 2.6s ease-out infinite; }
@keyframes ud-st { 0% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .35); } 60%, 100% { box-shadow: 0 0 0 7px rgba(229, 72, 77, 0); } }

/* ---------- Тарифы: полосы цены кода растут при появлении ---------- */
.rv:not(.rv-in) .pb-t i { width: 0; }
.pb-t i { transition: width .9s cubic-bezier(.2, .8, .2, 1); }

/* ---------- Частые вопросы: ответ раскрывается плавно ---------- */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height .35s cubic-bezier(.2, .8, .2, 1), content-visibility .35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
.faq details[open] p { animation: faq-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes faq-in { from { opacity: 0; translate: 0 -4px; } }
.faq summary::after { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }

@media (prefers-reduced-motion: reduce) {
  .ud-st, .ts-btn.ready, .faq details[open] p { animation: none; }
  .faq details::details-content { transition: none; }
}

/* ---------- Крупным компаниям: миллион кодов по лимитам Честного ЗНАКа и цепочка (entSim в iso.js) ---------- */
.ent-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.ent-flow { position: relative; overflow: hidden; display: grid; gap: 22px; align-content: start; padding: 28px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); }
.ent-flow::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 50% at 20% 0%, rgba(149, 88, 224, .28), transparent 70%); pointer-events: none; }
.ent-flow > * { position: relative; }
.ef-k { font: 600 11px/1.3 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--scene-ink-2); }
.ef-order { display: grid; gap: 6px; padding: 18px 20px; border-radius: 16px; background: rgba(149, 88, 224, .14); box-shadow: inset 0 0 0 1px rgba(181, 140, 255, .35); }
.ef-order b { font: 750 clamp(38px, 4.6vw, 60px)/1 var(--fh); letter-spacing: -.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ef-u { color: var(--scene-ink-2); font-size: 14px; }
.ef-split { display: grid; gap: 10px; }
.ef-chain { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ef-chain li { display: grid; grid-template-columns: 128px minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: 13.5px; color: var(--scene-ink); }
.ef-chain i { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.ef-chain u { display: block; height: 100%; width: 100%; border-radius: 4px; background: linear-gradient(90deg, #6B2FB3, #B58CFF); }
.ent-flow.sim .ef-chain u { width: var(--p, 0%); transition: width .9s cubic-bezier(.4, 0, .2, 1); }
.ef-chain b { font: 600 12px/1 var(--m); text-align: right; color: #CDB4FF; font-variant-numeric: tabular-nums; }
.ent-api { display: grid; gap: 18px; align-content: start; padding: 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ent-api .ef-k { color: var(--muted); }
.ea-docs { display: grid; gap: 16px; }
.ea-stack { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; height: 210px; }
.ea-stack li { display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 6px; min-height: 0; }
.ea-stack i { align-self: end; height: var(--h); border-radius: 8px 8px 3px 3px; background: repeating-linear-gradient(to top, var(--card) 0 3px, var(--line-2) 3px 4px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 10px 20px -14px rgba(40, 20, 80, .5); transform-origin: 50% 100%; transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
.ea-stack li:first-child i { background: repeating-linear-gradient(to top, #efe7ff 0 3px, #cdb6f5 3px 4px); box-shadow: inset 0 0 0 1px #c3a6f3, 0 10px 20px -14px rgba(60, 20, 120, .6); }
.ea-stack li:nth-child(2) i { transition-delay: .12s; } .ea-stack li:nth-child(3) i { transition-delay: .24s; } .ea-stack li:nth-child(4) i { transition-delay: .36s; }
.rv:not(.rv-in) .ea-stack i { transform: scaleY(0); }
.ea-stack b { font: 700 19px/1 var(--fh); letter-spacing: -.01em; }
.ea-stack span { font-size: 12px; line-height: 1.3; color: var(--muted); min-height: 2.6em; }
.ea-n { color: var(--ink-2); font-size: 14.5px; }
.ea-tm { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: rgba(107, 47, 179, .07); box-shadow: inset 0 0 0 1px rgba(107, 47, 179, .22); }
.ea-dm { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: #fff; color: #100e19; box-shadow: inset 0 0 0 1px var(--line); }
.ea-dm .dm { width: 28px; height: 28px; }
.ea-tm b { font-weight: 650; }
.ea-tm p { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.ea-cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
@media (max-width: 980px) { .ent-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .ent-flow, .ent-api { padding: 20px; }
  .ef-chain li { grid-template-columns: 112px minmax(0, 1fr) 40px; font-size: 13px; }
  .ea-stack { height: 170px; gap: 8px; }
  .ea-stack b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ea-stack i { transition: none; } }

/* ---------- Главный принцип: лишнее разлетается, остаётся одно действие (simpSim в iso.js) ---------- */
.simp-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.sp-pts { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; }
.sp-pts li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.sp-pts .ic { width: 20px; height: 20px; color: var(--acc); margin-top: 2px; }
.sp-pts b { display: block; font-weight: 650; }
.sp-pts span { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.simp-art { position: relative; height: 400px; border-radius: 24px; background: var(--scene-bg); overflow: hidden; }
.simp-art::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px); background-size: 22px 22px; }
.sp-chips { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.sp-chips li { position: absolute; left: var(--x); top: var(--y); padding: 7px 11px; border-radius: 8px; font-size: 12.5px; color: rgba(255, 255, 255, .72); white-space: nowrap;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transform: rotate(var(--r));
  transition: opacity .45s cubic-bezier(.5, 0, .75, 0), translate .7s cubic-bezier(.5, 0, .75, 0); transition-delay: calc(var(--i) * 45ms);
  animation: sp-jit var(--d) ease-in-out infinite alternate; }
@keyframes sp-jit { to { transform: rotate(calc(var(--r) * -1)) translateY(-5px); } }
.simp-art[data-s="1"] .sp-chips li:nth-child(3n) { box-shadow: inset 0 0 0 1px rgba(255, 181, 71, .6); color: #ffd28a; }
.simp-art[data-s="2"] .sp-chips li, .simp-art[data-s="3"] .sp-chips li { opacity: 0; translate: var(--dx) var(--dy); }
.sp-card { position: absolute; left: 50%; top: 50%; width: min(300px, 82%); translate: -50% -50%; scale: .88; opacity: 0; display: grid; gap: 10px; padding: 18px;
  border-radius: 16px; background: #fff; color: #1d1b2e; box-shadow: 0 30px 70px -30px rgba(10, 4, 30, .9), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: opacity .5s .25s, scale .7s .25s cubic-bezier(.3, 1.4, .5, 1); }
.simp-art[data-s="2"] .sp-card, .simp-art[data-s="3"] .sp-card { opacity: 1; scale: 1; }
.sp-h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 14px; }
.sp-h .dm { width: 20px; height: 20px; }
.sp-n { font-size: 13.5px; color: #4b485c; }
.sp-n b { color: #1d1b2e; }
.sp-btn { justify-self: start; transition: scale .15s; }
.sp-btn.press { scale: .95; }
.sp-ok { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #0f9a64; opacity: 0; translate: 0 4px; transition: opacity .35s, translate .35s; }
.sp-ok .ic { width: 16px; height: 16px; }
.simp-art[data-s="3"] .sp-ok { opacity: 1; translate: 0 0; }
@media (max-width: 980px) { .simp-in { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
@media (max-width: 640px) { .simp-art { height: 320px; } .sp-chips li { font-size: 11px; padding: 6px 9px; } }
@media (prefers-reduced-motion: reduce) { .sp-chips li { animation: none; transition: none; } .sp-card, .sp-ok { transition: none; } }

/* ---------- Логотипы клиентов: бегущая лента, пауза при наведении (владелец 20.11) ---------- */
.logos-mq { min-width: 0; width: 100%; max-width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.logos-row.cl.mq { flex-wrap: nowrap; justify-content: flex-start; gap: 0; width: max-content; animation: cl-mq 48s linear infinite; }
.mq li { flex: none; padding-right: 64px; }
.logos-mq:hover .mq { animation-play-state: paused; }
@keyframes cl-mq { to { transform: translateX(-50%); } }
@media (max-width: 640px) { .mq li { padding-right: 40px; } .logos-row.cl.mq { animation-duration: 36s; } }
@media (prefers-reduced-motion: reduce) {
  .logos-mq { -webkit-mask-image: none; mask-image: none; }
  .logos-row.cl.mq { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 22px 36px; }
  .mq li { padding-right: 0; } .mq li[aria-hidden] { display: none; }
}

/* ---------- «Для кого»: карточка целиком ведёт на «Как работать», отклик на наведение ---------- */
/* владелец 20.11: «дёргается анимация иконки при ховере» — карточка больше не поднимается (курсор у края соскакивал и наведение мигало), значок без поворота и перелёта: только цвет */
.who-card { position: relative; transition: box-shadow .2s ease-out; }
.who-card .more { position: static; transition: color .2s; }
.who-card .more::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.who-card:hover { box-shadow: inset 0 0 0 1px rgba(107, 47, 179, .45), 0 24px 46px -28px rgba(60, 20, 120, .5); }
.who-ic { transition: background-color .35s ease, color .35s ease, box-shadow .35s ease; }
/* 21.11: резкая смена тёмной плитки на фиолетовую при проходе мышью по ряду читалась как моргание — мягче и не до полного цвета */
/* фиолетовый — заливкой тенью поверх своей плитки: --acc на главной не задан, а --scene-bg — градиент, color-mix от них
   был недействителен, и в светлой теме плашка становилась прозрачной, белый значок пропадал (владелец 21.11).
   Тень плавно проявляется поверх градиента, без рывка смены фона */
.who-card:hover .who-ic { color: #fff; box-shadow: inset 0 0 0 46px rgba(107, 47, 179, .9), 0 0 0 4px rgba(107, 47, 179, .14); }
.who-card:hover .more { color: var(--acc-text); }
.who-card:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }
.more .ic { transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.more:hover .ic, .who-card:hover .more .ic { transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) { .who-card, .who-ic { transition: none; } }

/* Крупным компаниям, поправка владельца 20.11: много GTIN в одном заказе и документы по 30 000 кодов */
.ent, .simp { padding-block: 88px 40px; }
.ef-gt { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; }
.ef-gt li { aspect-ratio: 1; border-radius: 3px; background: radial-gradient(circle, rgba(230, 215, 255, .85) .9px, transparent 1.2px) 0 0 / 4px 4px, rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: opacity .3s, scale .35s cubic-bezier(.3, 1.5, .5, 1); }
.ent-flow.sim .ef-gt li { opacity: 0; scale: .5; }
.ent-flow.sim .ef-gt li.in { opacity: 1; scale: 1; }
.ef-docs { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.ef-docs ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 5px; }
.ef-docs li { aspect-ratio: 3 / 4; border-radius: 3px; background-color: rgba(181, 140, 255, .4); box-shadow: inset 0 0 0 1px rgba(205, 180, 255, .65);
  background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
  background-size: 58% 1.5px, 42% 1.5px, 52% 1.5px; background-position: 22% 26%, 22% 46%, 22% 66%; background-repeat: no-repeat; transition: opacity .25s; }
.ef-docs li.part { background-color: rgba(181, 140, 255, .18); }
.ent-flow.sim .ef-docs li { opacity: .12; }
.ent-flow.sim .ef-docs li.in { opacity: 1; animation: ef-doc .4s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes ef-doc { from { transform: translateY(-6px) scale(.7); } }
.ef-docs p { display: grid; gap: 4px; text-align: right; }
.ef-docs b { font: 750 36px/1 var(--fh); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.ef-docs span { font-size: 12px; line-height: 1.3; color: var(--scene-ink-2); }
@media (max-width: 640px) { .ef-gt { grid-template-columns: repeat(10, minmax(0, 1fr)); } .ef-docs ul { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; } .ef-docs b { font-size: 28px; } }

/* Тарифы: индивидуальный тариф, если не помещаются в Макси (владелец 20.11, «как у нас в кабинете») */
.pl-ind { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 12px; padding: 18px 22px; border-radius: 18px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pl-ind b { font-weight: 650; }
.pl-ind > div { color: var(--ink-2); max-width: 70ch; }
/* на телефоне кнопка во всю ширину карточки и переносится, а не вылезает за неё (владелец 21.11, 320 и 360) */
@media (max-width: 640px) {
  .pl-ind { padding: 18px; }
  .pl-ind .btn { width: 100%; height: auto; min-height: 46px; padding: 11px 16px; white-space: normal; text-align: center; line-height: 1.25; text-wrap: balance; }
}
.ea-ind { font-size: 14px; color: var(--ink-2); }

/* ---------- Подвал: тёмная сцена, контакты крупно, соцсети, «Сделано в Санкт-Петербурге», знак Трумарка (владелец 20.11) ---------- */
.ft { position: relative; overflow: hidden; background: var(--scene-bg); color: var(--scene-ink); padding-block: 72px clamp(110px, 15vw, 230px); }
.ft::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 85% 0%, rgba(149, 88, 224, .22), transparent 70%),
  radial-gradient(rgba(255, 255, 255, .05) 1px, transparent 1.2px) 0 0 / 22px 22px; }
.ft > .wrap { position: relative; z-index: 1; }
.ft a { color: inherit; }
.ft-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: end; padding-bottom: 40px; border-bottom: 1px solid var(--scene-line); }
.ft-brand .logo { height: 34px; width: auto; color: #fff; }
.ft .ft-brand p { margin: 12px 0 0; color: var(--scene-ink-2); font-size: 15px; max-width: 46ch; }
.ft .ft-brand .ft-claim { margin-top: 22px; font: 750 clamp(28px, 3.4vw, 46px)/1.04 var(--fh); letter-spacing: -.035em; color: #fff; max-width: 15ch; }
.ft-claim em { font-style: normal; background: linear-gradient(90deg, #B58CFF, #E3D2FF); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-soc { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 18px; margin-left: -9px; }
/* знаки площадок одним цветом, без кругов (владелец 21.11: «убери белые круги, давай полаконичнее»):
   форма знака — currentColor, буква R у Rutube и звезда Дзена — прорезь цветом подвала (.cut) */
.ft-soc a { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: rgba(236, 232, 247, .58); transition: color .2s ease; }
.ft-soc a:hover { color: #fff; }
.ft-soc a:focus-visible { outline: 2px solid #B58CFF; outline-offset: 2px; color: #fff; }
.ft-soc svg { width: 22px; height: 22px; display: block; }
.ft-soc svg > :not(.cut) { fill: currentColor; }
.ft-soc svg > .cut { fill: var(--scene-bg-solid, #0f0d17); }
@media (prefers-reduced-motion: reduce) { .ft-soc a { transition: none; } }
.ft-contact { display: grid; gap: 6px; justify-items: end; text-align: right; }
.ft-phone { font: 700 clamp(26px, 3vw, 38px)/1.1 var(--fh); letter-spacing: -.02em; color: #fff; }
.ft-mail { font: 500 17px/1.3 var(--m); color: #CDB4FF !important; }
.ft .ft-contact p { color: var(--scene-ink-2); font-size: 14px; }
.ft-contact .btn { margin-top: 14px; }
.ft .ft-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.ft .ft-h { color: #fff; }
.ft ul a { color: var(--scene-ink-2); transition: color .2s; }
.ft ul a:hover { color: #fff; }
.ft-made { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; padding: 8px 13px; border-radius: 999px; font: 600 11.5px/1 var(--m); letter-spacing: .08em;
  text-transform: uppercase; color: #CDB4FF; background: rgba(149, 88, 224, .14); box-shadow: inset 0 0 0 1px rgba(181, 140, 255, .3); }
.ft-made .ic { width: 15px; height: 15px; }
.ft .ft-bot { margin-top: 22px; border-top: 1px solid var(--scene-line); color: var(--scene-ink-2); }
.ft .ft-bot a:hover { color: #fff; }
.ft .ft-mock { color: var(--scene-ink-2); }
.ft-word { position: absolute; left: 50%; bottom: -.2em; transform: translateX(-50%); z-index: 0; pointer-events: none; white-space: nowrap; user-select: none;
  font: 800 clamp(120px, 21vw, 330px)/1 var(--fh); letter-spacing: -.055em;
  background: linear-gradient(180deg, rgba(181, 140, 255, .22), rgba(181, 140, 255, 0) 78%); -webkit-background-clip: text; background-clip: text; color: transparent; }
@media (max-width: 980px) { .ft-top { grid-template-columns: minmax(0, 1fr); align-items: start; } .ft-contact { justify-items: start; text-align: left; } .ft .ft-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ft { padding-top: 56px; } .ft .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ea-src { font: 500 11.5px/1.4 var(--m); color: var(--muted); margin-top: -6px; }

/* ---------- ТСД: экран изящнее, результат скана — табло, а не плашка с полосой (владелец 20.11) ---------- */
.tsd { background: linear-gradient(165deg, #3b3653 0%, #1c1828 45%, #121019 100%); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .09), inset 0 1px 0 rgba(255, 255, 255, .18), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.tsd-win { width: 84px; height: 10px; background: linear-gradient(90deg, #5a1626, #8a2236, #5a1626); }
.tsd-scr { position: relative; overflow: hidden; border-radius: 18px; background: #fbfaff; padding: 12px 12px 12px; gap: 10px; box-shadow: 0 0 0 4px #0c0a12; }
.tsd-scr::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 30%); mix-blend-mode: soft-light; }
.ts-bar { font-weight: 500; color: #8b88a0; }
.ts-h b { font: 700 15px/1.2 var(--fh); letter-spacing: -.01em; }
.ts-h span { color: #8b88a0; }
.ts-ok { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; box-shadow: 0 10px 22px -12px rgba(14, 140, 92, .7), inset 0 1px 0 rgba(255, 255, 255, .25);
  background: linear-gradient(135deg, #1fbf83, #0d8a5b); color: #fff; }
.ts-okic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.ts-okic .ic { width: 16px; height: 16px; color: #fff; stroke-width: 2.6; }
.ts-okt { display: grid; gap: 2px; }
.ts-ok b { color: #fff; font: 700 15px/1.1 var(--fh); }
.ts-ok span { color: rgba(255, 255, 255, .86); }
.ts-ok.hit { animation: ts-tablo .6s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes ts-tablo { 0% { transform: scale(.94); box-shadow: 0 0 0 0 rgba(31, 191, 131, .6); } 60% { transform: scale(1.02); } 100% { transform: none; box-shadow: 0 0 0 10px rgba(31, 191, 131, 0); } }
.ts-pr { padding: 2px 2px 0; }
.ts-pr span { color: #8b88a0; }
.ts-pr b { font-size: 12.5px; }
.ts-pr i { height: 7px; border-radius: 4px; background: #ebe8f3; }
.ts-pr u { border-radius: 4px; background: linear-gradient(90deg, #6b2fb3, #a678f0); }
.ts-l { gap: 8px; }
.ts-l li { display: grid; grid-template-columns: 1fr auto; gap: 5px 8px; padding: 8px 10px; border-top: 0; border-radius: 10px; background: #f1eff8; }
.ts-l li > span { font-size: 10.5px; }
.ts-l b { font-weight: 600; color: #0d8a5b; }
.ts-l b.w { color: #9a6200; }
.ts-l li > i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #1fbf83 var(--p, 0%), #dedbe9 var(--p, 0%)); transition: background .6s; }
.ts-l li:has(b.w) > i { background: linear-gradient(90deg, #e8a33a var(--p, 0%), #dedbe9 var(--p, 0%)); }
.ts-btn { padding: 10px; border-radius: 11px; background: linear-gradient(135deg, #7b3fd0, #5b25a0); box-shadow: 0 8px 18px -10px rgba(91, 37, 160, .9); }
.ts-l li > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logos-in { flex-wrap: nowrap; }
.lf-alt { display: grid; gap: 12px; align-content: center; } .lf-alt .lf-t { color: var(--scene-ink-2); font-size: 15px; } .lf-alt .btn { justify-self: start; }

/* ---------- История Трумарка (владелец 20.11): этапы лентой, линия заполняется при появлении ---------- */
.story { padding-block: 88px 40px; }
.st-line { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; position: relative; counter-reset: st; }
.st-line::before { content: ""; position: absolute; left: 0; right: 0; top: 15px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc), #B58CFF 60%, var(--line) 60%); opacity: .5; }
.st-line li { position: relative; display: grid; gap: 8px; align-content: start; padding-top: 44px; }
.st-line li::before { content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px; border-radius: 4px; background: var(--card); box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 5px var(--bg, #f6f5fb); }
.st-line li:last-child::before { background: var(--acc); box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 5px var(--bg, #f6f5fb), 0 0 18px rgba(149, 88, 224, .6); }
.st-y { justify-self: start; font: 600 11px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); padding: 6px 9px 5px; border-radius: 999px; background: rgba(107, 47, 179, .09); }
.st-line b { font: 650 17px/1.3 var(--fh); }
.st-line p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.st-q { margin: 40px 0 0; padding: 28px 30px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); display: flex; align-items: flex-end; justify-content: space-between; gap: 18px 30px; flex-wrap: wrap; position: relative; overflow: hidden; }
.st-q::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 0% 0%, rgba(149, 88, 224, .3), transparent 70%); pointer-events: none; }
.st-q p { position: relative; font: 700 clamp(22px, 2.6vw, 32px)/1.2 var(--fh); letter-spacing: -.02em; color: #fff; max-width: 30ch; }
.st-q .more { position: relative; color: #CDB4FF; }
@media (max-width: 980px) {
  .st-line { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-left: 30px; }
  .st-line::before { left: 7px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--acc), #B58CFF 70%, var(--line)); }
  .st-line li { padding-top: 0; }
  .st-line li::before { left: -30px; top: 2px; }
}

/* ---------- Доработка под клиента (владелец 20.11): «мы ваша команда разработки на аутсорсе» ---------- */
.ent-dev { display: flex; align-items: center; justify-content: space-between; gap: 18px 28px; flex-wrap: wrap; margin-top: 16px; padding: 24px 28px; border-radius: 22px;
  background: linear-gradient(120deg, rgba(107, 47, 179, .1), rgba(181, 140, 255, .06)); box-shadow: inset 0 0 0 1px rgba(107, 47, 179, .28); }
.ent-dev .ef-k { color: var(--acc-text); }
.ent-dev h3 { font: 700 22px/1.2 var(--fh); letter-spacing: -.01em; margin-top: 8px; }
.ent-dev p:not(.ef-k) { color: var(--ink-2); margin-top: 6px; max-width: 60ch; }
.st-links { position: relative; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.ft-k { font: 600 11px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--scene-ink-2); }

/* карточки ближайших сроков — ссылки на посадочные групп */
.due-list li:has(> .due-a) { display: block; padding: 0; background: none; box-shadow: none; }
.due-a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 18px 20px; border-radius: 14px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); color: inherit; transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.due-a .g-ic { grid-row: 1 / span 2; grid-column: 1; color: var(--acc-text); transition: background-color .25s, color .25s; }
.due-a b { grid-column: 2; }
.due-a > span:not(.g-ic) { grid-column: 2; color: var(--muted); font-size: 14px; }
.due-a .tag { grid-row: 1 / span 2; grid-column: 3; }
.due-a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(107, 47, 179, .45), 0 18px 36px -26px rgba(60, 20, 120, .45); }
.due-a:hover .g-ic { background: var(--acc); color: #fff; }
.due-a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
@media (max-width: 640px) { .due-a { grid-template-columns: auto minmax(0, 1fr); padding: 14px; } .due-a .g-ic { grid-row: 1 / span 3; align-self: start; } .due-a .tag { grid-row: auto; grid-column: 2; justify-self: start; } }

/* ---- p1.css ---- */
/* Подход 1 «Ночная сцена»: тёмный первый экран, агрегация прямо в нём, дальше светлые разделы и тёмная сцена агрегации. */
:root {
  --bg: #f5f4f9; --card: #ffffff; --ink: #0f0d18; --ink-2: #464358; --muted: #77748a; --line: #e4e1ee; --line-2: #cfcbe0; --hover: rgba(15, 13, 24, .05);
  --acc: #6b2fb3; --acc-hover: #5c249c; --acc-text: #6b2fb3; --acc-soft: #f3e8ff;
  --f: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --fh: "Onest", system-ui, sans-serif; --m: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --h-w: 700; --h-ls: -0.035em; --r-btn: 12px;
  --hd-bg: rgba(16, 14, 25, .86); --hd-ink: #f1effa; --hd-ink-2: #aaa6c0; --hd-line: rgba(255, 255, 255, .08); --hd-hover: rgba(255, 255, 255, .07);
  --scene-bg: radial-gradient(120% 80% at 70% 0%, #2c1550 0%, #100e19 60%); --scene-bg-solid: #100e19; --scene-ink: #f1effa; --scene-ink-2: #a8a4bf; --scene-line: rgba(255, 255, 255, .09);
  --scene-glow: rgba(150, 80, 230, .28); --scene-grid: rgba(255, 255, 255, .05); --scene-chip: rgba(255, 255, 255, .06);
  --hook-bg: rgba(255, 255, 255, .06); --hook-line: rgba(255, 255, 255, .16); --hook-ink: #fff; --hook-ph: #8d89a6; --hook-note: #9c98b4; --hook-k: #d2bcff;
  --res-bg: #ffffff; --res-ink: #0f0d18; --res-muted: #77748a; --res-line: rgba(255, 255, 255, .1); --res-chip: #f4eefa; --res-due-bg: #f7f0ff;
  --focus: #cfaeff; color-scheme: light;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0b0a12; --card: #15131f; --ink: #eeecf6; --ink-2: #b4b0c8; --muted: #8a869e; --line: #24212f; --line-2: #34303f; --hover: rgba(255, 255, 255, .05);
  --acc-text: #cfaeff; --acc-soft: #2a1a42; --res-bg: #19132a; --res-ink: #eeecf6; --res-muted: #908ca8; --res-chip: #271d38; --res-due-bg: #231635; color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: #0b0a12; --card: #15131f; --ink: #eeecf6; --ink-2: #b4b0c8; --muted: #8a869e; --line: #24212f; --line-2: #34303f; --hover: rgba(255, 255, 255, .05);
  --acc-text: #cfaeff; --acc-soft: #2a1a42; --res-bg: #19132a; --res-ink: #eeecf6; --res-muted: #908ca8; --res-chip: #271d38; --res-due-bg: #231635; color-scheme: dark; }

.hero { background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask: linear-gradient(to bottom, #000, transparent 85%); mask: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; padding-block: 64px 40px; position: relative; z-index: 1; }
.hero-l { display: grid; gap: 20px; justify-items: start; }
.badge { font: 500 12.5px/1 var(--m); color: #dcc8ff; padding: 8px 11px; border-radius: 999px; background: rgba(175, 125, 245, .14); box-shadow: inset 0 0 0 1px rgba(205, 170, 255, .25); }
.hero h1 { font: 750 clamp(40px, 5.2vw, 72px)/0.98 var(--fh); letter-spacing: -0.045em; max-width: 12ch; }
.lead { color: var(--scene-ink-2); font-size: clamp(16px, 1.3vw, 18px); max-width: 52ch; }
.hook-wrap { width: 100%; max-width: 560px; display: grid; gap: 12px; margin-top: 6px; }
.agg-mini { display: grid; justify-items: center; gap: 12px; }
.agg-mini canvas { width: 100%; max-width: 640px; height: auto; aspect-ratio: 600 / 440; --iso-grid: rgba(255, 255, 255, .06); --iso-fade: #130f22; }
.mini-cap { display: flex; align-items: baseline; gap: 10px; }
.mini-cap [data-n] { font: 700 30px/1 var(--fh); letter-spacing: -0.03em; }
.mini-cap [data-u] { font: 500 12px/1 var(--m); color: var(--scene-ink-2); text-transform: uppercase; letter-spacing: .05em; }
.hero .agg-seg button { color: var(--scene-ink-2); }
.hero .facts { position: relative; z-index: 1; border-top: 1px solid var(--scene-line); margin-top: 8px; }
.hero .facts > div { border-color: var(--scene-line); }
.hero .facts dd { color: var(--scene-ink-2); }
/* Число с подписью — в одну строку на любой ширине от 320 (владелец 21.11, кадр с iPhone): и в покое, и пока цифры крутятся.
   На время отсчёта меняющиеся цифры — отдельные inline-block (TMFlip в iso.js), рядом с ними Chrome переносит строку даже
   у неразрывного пробела, отсюда nowrap. На узкой ширине кегль — от ширины ряда, один на все четыре числа: половина ряда
   без полей ячейки (2 × 12px) и её границы (1px) — место под число, самое длинное «1,5 млрд+» шириной в 4,77 кегля занимает 98%. */
.hero .facts dt { white-space: nowrap; }
@media (max-width: 640px) {
  .hero .facts { container-type: inline-size; }
  .hero .facts > div { padding-inline: 12px; }
  .hero .facts dt { font-size: min(30px, calc((50cqi - 25px) * .205)); }
}
@media (max-width: 980px) { .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 40px 24px; } }

/* ---- blog.css ---- */
/* Блог в подходе 1: список статей и статья. Цвета и шрифты — из p1.css, шапка и подвал — общие с главной */
.blog main { min-height: 60vh; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumbs a:hover { color: var(--acc-text); }

/* шапка блога: тёмная полоса, как первый экран главной, только ниже */
.bl-hero { background: var(--scene-bg); color: var(--scene-ink); padding-block: 40px 34px; position: relative; overflow: hidden; }
.bl-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask: linear-gradient(to bottom, #000, transparent 90%); mask: linear-gradient(to bottom, #000, transparent 90%); pointer-events: none; }
.bl-hero .wrap { position: relative; z-index: 1; display: grid; gap: 16px; }
.bl-hero .crumbs { color: var(--scene-ink-2); }
.bl-hero h1, .ar-head h1 { font: 750 clamp(36px, 4.6vw, 60px)/1.02 var(--fh); letter-spacing: -0.04em; }
.bl-hero .sub { color: var(--scene-ink-2); margin-top: 0; }
.bl-search { display: flex; gap: 6px; max-width: 620px; padding: 6px; border-radius: calc(var(--r-btn) + 6px); background: var(--hook-bg); box-shadow: inset 0 0 0 1px var(--hook-line); margin-top: 4px; }
.bl-search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 14px; font: 400 16px/1 var(--f); color: var(--hook-ink); }
.bl-search input::placeholder { color: var(--hook-ph); }
.bl-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.bl-cats a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-size: 14px; color: var(--scene-ink-2); box-shadow: inset 0 0 0 1px var(--scene-line); }
.bl-cats a b { font: 500 12px/1 var(--m); opacity: .75; }
.bl-cats a:hover { color: var(--scene-ink); background: rgba(255, 255, 255, .05); }
.bl-cats a[aria-current="true"] { background: var(--acc); color: #fff; box-shadow: none; }

/* карточка статьи: обложка с иконкой темы и кодом truemark.ru */
.bc { display: grid; gap: 10px; align-content: start; color: inherit; }
.bc-art { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: var(--scene-bg); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--line); }
.bc-art::before { content: ""; position: absolute; inset: auto -10% -45% 20%; height: 90%; background: radial-gradient(closest-side, var(--glow, var(--scene-glow)), transparent); }
.bc.t-err { --glow: rgba(229, 72, 77, .32); }
.bc.t-warm { --glow: rgba(240, 174, 69, .3); }
.bc.t-sea { --glow: rgba(61, 184, 162, .3); }
.bc.t-err .bc-ic { color: #ffb4b0; }
.bc.t-warm .bc-ic { color: #ffd99c; }
.bc.t-sea .bc-ic { color: #9be7d8; }
.bc-art .dm { position: absolute; right: 16px; bottom: 16px; width: 44px; height: 44px; color: #fff; opacity: .14; }
.bc-ic { position: relative; width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #dcc8ff; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.bc-ic .ic { width: 30px; height: 30px; }
.bc:hover .bc-ic { transform: translateY(-3px) scale(1.04); }
.bc-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 12px/1.3 var(--m); letter-spacing: .03em; color: var(--muted); }
.bc-meta span:first-child { color: var(--acc-text); }
.bc h3 { font: 650 18.5px/1.3 var(--fh); letter-spacing: -0.01em; transition: color .15s ease; }
.bc:hover h3 { color: var(--acc-text); }
.bc p { color: var(--ink-2); font-size: 15px; }
.bc.big h3 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.15; letter-spacing: -0.02em; }
.bc.big .bc-art { aspect-ratio: 16 / 8; }
.bc.big .bc-ic { width: 92px; height: 92px; border-radius: 24px; }
.bc.big .bc-ic .ic { width: 42px; height: 42px; }

.bl-top { padding-block: 44px 8px; }
.bl-top-in { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.bl-err { padding: 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }
.bl-err h2 { font: 650 21px/1.2 var(--fh); letter-spacing: -0.01em; }
.bl-err ol { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.bl-err li { counter-increment: e; display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: baseline; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; }
.bl-err li::before { content: counter(e); font: 600 12px/1 var(--m); color: var(--acc-text); }
.bl-err li a:hover { color: var(--acc-text); }
.bl-err li span { font: 500 12px/1 var(--m); color: var(--muted); white-space: nowrap; }

.bl-list { padding-block: 48px 20px; }
.bl-h h2, .ar-more h2 { font: var(--h-w) clamp(26px, 2.6vw, 34px)/1.1 var(--fh); letter-spacing: var(--h-ls); }
.bl-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; margin-top: 24px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 44px; font: 500 14px/1 var(--m); }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); }
.pager a:hover { background: var(--hover); }
.pager a[aria-current="page"] { background: var(--acc); color: #fff; }
.pager .next { display: inline-flex; gap: 6px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); }
.pager .ic { width: 16px; height: 16px; }
.bl-cta { padding-block: 40px 80px; }
.bl-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 32px; border-radius: 24px; background: var(--scene-bg); color: var(--scene-ink); }
.bl-cta-in h2 { font: var(--h-w) clamp(24px, 2.4vw, 32px)/1.1 var(--fh); letter-spacing: var(--h-ls); }
.bl-cta-in p { color: var(--scene-ink-2); margin-top: 8px; }
.bl-cta-in .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cta-btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* статья */
.ar-head { padding-block: 36px 28px; border-bottom: 1px solid var(--line); }
.ar-head .wrap { display: grid; gap: 16px; }
.ar-head h1 { max-width: 22ch; font-size: clamp(32px, 4vw, 54px); }
.ar-lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--ink-2); max-width: 62ch; }
.ar-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font: 500 13px/1.3 var(--m); color: var(--muted); }
.ar-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding-block: 36px 40px; align-items: start; }
.ar-side { position: sticky; top: 84px; display: grid; gap: 18px; }
.ar-toc p { font: 500 12px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.ar-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.ar-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.ar-toc a:hover { color: var(--acc-text); border-left-color: var(--acc); }
.ar-pro { padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; justify-items: start; }
.ar-pro-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ar-pro p { font-size: 14px; color: var(--ink-2); }
.ar-body { max-width: 760px; font-size: 17px; line-height: 1.7; }
.ar-body > * + * { margin-top: 1.05em; }
.ar-body h2 { font: 700 clamp(24px, 2.2vw, 30px)/1.2 var(--fh); letter-spacing: -0.02em; margin-top: 1.9em; scroll-margin-top: 90px; }
.ar-body h3 { font: 650 20px/1.3 var(--fh); margin-top: 1.5em; }
.ar-body a:not(.btn) { color: var(--acc-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); }
.ar-body ul, .ar-body ol { padding-left: 1.3em; }
.ar-body ul:not([class]) { list-style: disc; } .ar-body ol:not([class]) { list-style: decimal; }
.ar-body li + li { margin-top: .4em; }
.ar-body code { font: 500 .88em/1 var(--m); padding: 2px 6px; border-radius: 6px; background: var(--acc-soft); }
.ar-body figure img { display: block; width: 100%; height: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.ar-body figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.ar-body .tbl { overflow-x: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); }
.ar-body table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.45; }
.ar-body th, .ar-body td { padding: 11px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ar-body thead th { border-top: 0; font: 500 12px/1.3 var(--m); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--hover); }
.ar-body details { border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); padding: 16px 20px; }
.ar-body details + details { margin-top: 10px; }
.ar-body details[open] { box-shadow: inset 0 0 0 1px var(--acc); }
.ar-body summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ar-body summary::-webkit-details-marker { display: none; }
.ar-body summary::after { content: "+"; color: var(--muted); font-weight: 400; font-size: 22px; line-height: 1; transition: transform .2s ease; }
.ar-body details[open] summary::after { transform: rotate(45deg); }
.ar-body details > :not(summary) { margin-top: 10px; color: var(--ink-2); }
.ar-body .ar-btn { margin-top: 6px; text-decoration: none; }
.ar-body p:has(> .ar-btn) { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.ar-body p:has(> .ar-btn) .ar-btn { margin-top: 0; }
.ar-btn-sub { color: var(--ink-2); font-size: 15px; }
.ar-more { padding-block: 40px 80px; border-top: 1px solid var(--line); }
.bl-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 980px) {
  .bl-top-in, .ar-grid { grid-template-columns: minmax(0, 1fr); }
  .bl-grid, .bl-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ar-side { position: static; }
  .ar-pro { display: none; }
  .ar-grid { gap: 24px; }
}
@media (max-width: 640px) {
  .bl-grid, .bl-grid.three { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .bl-search .btn { padding: 0 14px; }
  .ar-body { font-size: 16px; }
  .bl-cta-in { padding: 22px; }
}

/* ---- site.css ---- */
/* Боевой сайт: то, чего нет в макетах — страницы WordPress до перевода на шаблоны, база знаний, видео, 404 */

/* страница WordPress как есть: содержимое со своими стилями внутри нашей шапки и подвала */
.wp-page { padding-block: 0 40px; }
.wp-h1 { font: 750 clamp(32px, 4vw, 52px)/1.05 var(--fh); letter-spacing: -0.035em; padding-top: 40px; max-width: 24ch; }
.wp-raw { overflow-x: clip; }
/* старое содержимое WordPress рассчитано на светлый фон: до перевода на шаблоны держим его на светлой подложке в обеих темах */
.wp-page { background: #f6f5fb; }
.wp-raw { background: #fff; color: #1d1b2e; color-scheme: light; padding-inline: clamp(16px, 3vw, 32px); max-width: 1240px; margin-inline: auto; }
.wp-h1 { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wp-page { background: var(--bg); } }
:root[data-theme="dark"] .wp-page { background: var(--bg); }
.wp-raw img, .wp-raw video, .wp-raw iframe { max-width: 100%; height: auto; }
.wp-raw table { max-width: 100%; }

/* статьи: видео и блок помощи в конце */
.ar-body .vid { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.ar-body .vid iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ar-body video { display: block; width: 100%; height: auto; border-radius: 14px; background: #000; }
.ar-body kbd { font: 500 .85em/1 var(--m); padding: 2px 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ar-body pre { overflow-x: auto; padding: 14px 16px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1.5 var(--m); }
.ar-lead-box { margin-top: 2.4em !important; padding: 24px; border-radius: 20px; background: var(--scene-bg); color: var(--scene-ink); display: grid; gap: 16px; }
.ar-lead-box h2 { margin: 0 !important; color: #fff; }
.ar-lead-box p { color: var(--scene-ink-2); margin-top: 6px; }
.ar-lead-box .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

/* база знаний: боковое меню статьи (главная /docs/ и разделы — x-kb.css) */
.kb-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.kb-side p { font: 500 12px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.kb-side a { display: block; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--ink-2); }
.kb-side a:hover { color: var(--acc-text); }
.kb-side a[aria-current="page"] { border-left-color: var(--acc); color: var(--ink); font-weight: 600; }

/* 404 */
.nf { padding-block: 96px 120px; }
.nf h1 { font: 750 clamp(36px, 5vw, 64px)/1.02 var(--fh); letter-spacing: -0.04em; margin-top: 14px; }
.nf .cta-btns { margin-top: 26px; }

@media (max-width: 640px) { .ar-lead-box { padding: 20px; } }

/* ---- x-blog.css ---- */
/* Шаблон статьи блога и базы знаний: вариант Б «Ответ на экране» (решение главной сессии 20.11.2026).
   Разметка — tools/routes/zzz_article.py, скрипт — site/public/article/article.js. Язык главной: тёмная сцена со светом,
   сетка точек, моно-метки с квадратом-модулем DataMatrix, фиолетовый акцент. Мотивы «Коротко»: градиентная линия сверху,
   модуль кода в метке, тающий узор кода в углу. Полос слева нет нигде. Токены — из p1.css. */

/* ---------- первый экран ---------- */
.ar-head.ah { position: relative; z-index: 3; padding-block: 28px 60px; border-bottom: 0; background: var(--scene-bg); color: var(--scene-ink); }
/* поиск в сцене раскрывает подсказки поверх «Коротко», которое заходит на сцену */
.ar-head.ah:focus-within, .ar-head.ah:has(.srch-pop:not([hidden])) { z-index: 6; }
.ah-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.ah-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .075) 1.1px, transparent 1.5px); background-size: 26px 26px;
  -webkit-mask: linear-gradient(100deg, transparent 22%, #000 78%); mask: linear-gradient(100deg, transparent 22%, #000 78%); }
.ah-bg::after { content: ""; position: absolute; width: 780px; height: 780px; right: -140px; top: -300px; border-radius: 50%; background: radial-gradient(closest-side, rgba(150, 80, 230, .42), transparent); }
.ar-head .ah-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px 56px; align-items: end; }
.ah-tx { min-width: 0; }
.ah .ar-top { margin-bottom: 26px; }
.ah .crumbs { color: var(--scene-ink-2); font-size: 13px; }
.ah .crumbs a:hover { color: #fff; }
.ah .crumbs > span:last-child { max-width: 36ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ah .srch-row { background: var(--hook-bg); box-shadow: inset 0 0 0 1px var(--hook-line); }
.ah .srch-row input { color: var(--hook-ink); }
.ah .srch-row input::placeholder, .ah .srch-row .ic { color: var(--hook-ph); }
.ah .srch-row:focus-within { box-shadow: inset 0 0 0 2px #cfaeff; }
/* поле в сцене стоит под путём слева: окно подсказок открывается от него вправо (класс pop-r ставит скрипт поиска, когда места справа мало) */
@media (min-width: 641px) { .ah .ar-top .srch:not(.pop-r) .srch-pop { left: 0; right: auto; } }
.ah .srch-k { color: var(--hook-ph); box-shadow: inset 0 0 0 1px var(--hook-line); } /* подсказка клавиши «/» (поиск, сессия инструментов) */
.ah-eb { display: flex; align-items: center; gap: 10px; font: 600 12px/1.2 var(--m); letter-spacing: .14em; text-transform: uppercase; color: #cfaeff; }
.ah-eb i { flex: none; width: 9px; height: 9px; border-radius: 2px; background: #9b62ea; box-shadow: 0 0 14px #9b62ea; }
.ar-head.ah h1 { margin-top: 14px; max-width: 22ch; color: var(--scene-ink); font: 750 clamp(30px, 3.8vw, 56px)/1.04 var(--fh); letter-spacing: -.035em; text-wrap: balance; }
.ah h1 em { font-style: normal; color: #cfaeff; }
.ah .ar-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; font: 500 12.5px/1 var(--m); color: var(--scene-ink-2); }
.ah .ar-meta span { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 9px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ah .ar-meta b { color: #fff; font-weight: 600; }
/* код статьи: DataMatrix её адреса в уголках сканера, луч проходит один раз */
.ah-code { justify-self: end; display: grid; justify-items: center; gap: 14px; }
.ah-c { position: relative; display: block; width: 232px; height: 232px; padding: 20px; }
/* QR статьи: тёмные модули на светлой плитке, без прозрачности и фильтров — контраст 16:1, читает обычная камера телефона */
.ah-qr { display: block; width: 100%; height: 100%; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .2), 0 0 36px rgba(180, 120, 255, .5); }
.ah-c i { position: absolute; width: 34px; height: 34px; border: 2.5px solid #cfaeff; }
.ah-c i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 11px; }
.ah-c i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 11px; }
.ah-c i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 11px; }
.ah-c i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 11px; }
.ah-c b { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, #9b62ea, transparent); box-shadow: 0 0 18px 3px rgba(155, 98, 234, .7); }
.ah-cap { font: 600 10.5px/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--scene-ink-2); }
/* без движения: луч стоит посередине кода и не бежит */
@media (prefers-reduced-motion: reduce) { .ah-c b { opacity: .6; top: auto; bottom: 9px; } } /* без движения луч стоит у нижней рамки, не поверх модулей QR */
@keyframes ah-scan { 0% { top: 8%; opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { top: 90%; opacity: 0; } }
@keyframes ah-up { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: no-preference) {
  .ah-c b { animation: ah-scan 2.2s .5s ease-in-out 1 both; }
  .ah-tx > * { animation: ah-up .7s cubic-bezier(.2, .8, .2, 1) both; }
  .ah-tx > :nth-child(2) { animation-delay: .06s; } .ah-tx > :nth-child(3) { animation-delay: .12s; } .ah-tx > :nth-child(4) { animation-delay: .18s; }
}

/* ---------- «Коротко» ---------- */
/* Первый блок статьи всегда div.short (tools/seo_build.py). Когда он есть и плиток «Что внутри» нет,
   колонка статьи заходит на сцену, и «Коротко» ложится на её край стеклянной панелью: ответ виден без прокрутки */
.ar-b:not(.ar-tiles):has(.ar-body > .short:first-child) .ar-head.ah { padding-bottom: 132px; }
.ar-b:not(.ar-tiles):has(.ar-body > .short:first-child) .ar-body { position: relative; z-index: 4; margin-top: -120px; }
.ar-body > .short, .ar-body .ar-short { position: relative; overflow: hidden; padding: 24px 28px 24px; border-radius: 22px; background: var(--card); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line), 0 26px 50px -36px rgba(60, 20, 120, .5); }
.ar-b:not(.ar-tiles) .ar-body > .short:first-child { color: #f1effa; background: linear-gradient(160deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03) 58%), rgba(23, 18, 40, .9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .13), 0 30px 70px rgba(16, 14, 25, .4); }
.ar-body > .short::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--acc), #b58cff 55%, transparent); }
.ar-body > .short::after { content: ""; position: absolute; right: 0; top: 0; width: 150px; height: 150px; pointer-events: none; opacity: .18;
  background: radial-gradient(circle, currentColor 1.6px, transparent 2px) 0 0 / 9px 9px; color: var(--acc);
  -webkit-mask-image: radial-gradient(circle at 100% 0, #000 16%, transparent 70%); mask-image: radial-gradient(circle at 100% 0, #000 16%, transparent 70%); }
.ar-b:not(.ar-tiles) .ar-body > .short:first-child::after { color: #cfaeff; opacity: .22; }
.ar-body > .short .short-t { position: relative; display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 11.5px/1.2 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); }
.ar-b:not(.ar-tiles) .ar-body > .short:first-child .short-t { color: #cfaeff; }
.ar-b:not(.ar-tiles) .ar-body > .short:first-child :is(strong, b) { color: #fff; }
.ar-b:not(.ar-tiles) .ar-body > .short:first-child a { color: #dcc8ff; }
.ar-body > .short .short-t::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 2px; background: #9b62ea; box-shadow: 0 0 12px rgba(155, 98, 234, .9), 13px 0 0 -2px rgba(155, 98, 234, .45), 0 -6px 0 -3px rgba(155, 98, 234, .3); margin-right: 12px; }
.ar-body > .short p:not(.short-t) { position: relative; margin: 0; font-size: 18px; line-height: 1.6; color: inherit; }
.ar-body > .short p + p { margin-top: .6em; }
.ar-body > .short ul { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 34px; }
.ar-body > .short ul:has(> li:nth-child(4)) { grid-template-columns: 1fr 1fr; }
.ar-body > .short li, .ar-body > .short li + li { position: relative; margin: 0; padding-left: 30px; font-size: 15.5px; line-height: 1.55; }
.ar-body > .short li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 20%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 55%, transparent); }
.ar-body > .short li::after { content: ""; position: absolute; left: 5px; top: 8px; width: 7px; height: 4px; border-left: 2px solid var(--acc-text); border-bottom: 2px solid var(--acc-text); transform: rotate(-45deg); }
.ar-b:not(.ar-tiles) .ar-body > .short:first-child li::after { border-color: #cfaeff; }
.ar-body > .short + * { margin-top: 1.6em; }

/* ---------- «Что внутри»: плитки разделов для длинных статей базы знаний ---------- */
.ar-tiles .ar-head.ah { padding-bottom: 132px; }
.ar-in { position: relative; z-index: 4; margin-top: -100px; }
.ar-in-box { padding: 22px 24px 24px; border-radius: 24px; background: var(--card); box-shadow: 0 30px 80px rgba(16, 14, 25, .22), inset 0 0 0 1px var(--line); }
.ar-in-k { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font: 600 11.5px/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ar-in-k i { width: 9px; height: 9px; border-radius: 2px; background: var(--acc); }
.ar-in ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: s; }
.ar-in li { counter-increment: s; min-width: 0; }
.ar-in a { display: grid; gap: 8px; align-content: start; height: 100%; padding: 14px 14px 16px; border-radius: 14px; font-size: 14.5px; line-height: 1.35; color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease, background .15s ease; }
.ar-in a::before { content: counter(s, decimal-leading-zero); font: 600 11px/1 var(--m); color: var(--acc-text); }
.ar-in a:hover, .ar-in a[aria-current] { box-shadow: inset 0 0 0 1.5px var(--acc); background: var(--acc-soft); }
.ar-tiles .ar-grid { padding-top: 40px; }

/* ---------- оглавление сбоку: номера разделов, текущий подсвечен ---------- */
.ar-side .ar-toc p { display: flex; align-items: center; gap: 10px; }
.ar-side .ar-toc p::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--acc); }
.ar-side .ar-toc ol { gap: 2px; border-left: 0; counter-reset: t; }
.ar-side .ar-toc li { counter-increment: t; }
.ar-side .ar-toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; margin-left: 0; padding: 7px 10px; border-left: 0; border-radius: 10px; font-size: 14px; line-height: 1.38; color: var(--ink-2); transition: background .15s ease, color .15s ease; }
.ar-side .ar-toc a::before { content: counter(t, decimal-leading-zero); padding-top: 2px; font: 600 10.5px/1.3 var(--m); color: var(--muted); }
.ar-side .ar-toc a:hover { background: var(--hover); color: var(--ink); border-left-color: transparent; }
.ar-side .ar-toc a[aria-current] { background: var(--acc-soft); color: var(--acc-text); }
.ar-side .ar-toc a[aria-current]::before { color: var(--acc-text); }
/* «Статьи раздела» в базе знаний: тем же языком, без полосы слева */
.ar-b .kb-side p { display: flex; align-items: center; gap: 10px; }
.ar-b .kb-side p::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--muted); }
.ar-b .kb-side a { padding: 7px 10px; border-left: 0; border-radius: 10px; transition: background .15s ease, color .15s ease; }
.ar-b .kb-side a:hover { background: var(--hover); color: var(--ink); }
.ar-b .kb-side a[aria-current="page"] { background: var(--acc-soft); color: var(--acc-text); }

/* ---------- текст статьи ---------- */
.ar-body { max-width: 740px; font-size: 17.5px; line-height: 1.72; }
.ar-body > * + * { margin-top: 1.1em; }
.ar-body h2 { margin-top: 2.2em; font: 750 clamp(25px, 2.3vw, 32px)/1.18 var(--fh); letter-spacing: -.025em; scroll-margin-top: 96px; text-wrap: balance; }
.ar-body h2::before { content: ""; display: block; width: 32px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: linear-gradient(90deg, var(--acc), #b58cff); }
.ar-body h3 { margin-top: 1.7em; font: 650 20.5px/1.3 var(--fh); letter-spacing: -.01em; }
.ar-body > ul, .ar-body > ol { padding-left: 1.35em; }
.ar-body > ul { list-style: disc; }
.ar-body > ol { list-style: decimal; }
.ar-body li::marker { color: var(--acc-text); font-weight: 600; }
.ar-body strong, .ar-body b { font-weight: 650; color: var(--ink); }
.ar-body hr { height: 1px; border: 0; margin-block: 2em; background: var(--line); }

/* таблицы: карточка с линией сверху, моно-шапка, строки подсвечиваются при наведении */
.ar-body .tbl { position: relative; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 22px 44px -36px rgba(60, 20, 120, .4); }
.ar-body .tbl::before { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: linear-gradient(90deg, var(--acc), #b58cff 55%, transparent); }
.ar-body table { font-size: 15px; line-height: 1.5; }
.ar-body th, .ar-body td { padding: 13px 16px; }
.ar-body thead th { padding-top: 16px; font: 600 11.5px/1.35 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--acc) 5%, var(--card)); }
.ar-body tbody tr { transition: background .12s ease; }
.ar-body tbody tr:hover { background: var(--hover); }
.ar-body tbody td:first-child { color: var(--ink); font-weight: 600; }

/* картинки: скругление, тень, подпись с модулем кода */
.ar-body figure { margin-inline: 0; margin-bottom: 0; }
.ar-body figure img { border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 26px 52px -32px rgba(16, 14, 25, .45); }
/* картинка не крупнее своего размера (ширина из разметки, zzz_article.py): маленькая — от левого края, вровень с текстом и подписью, крупная — по ширине колонки */
.ar-body img { max-width: 100%; height: auto; }
.ar-body figure img { margin-inline: 0; }
.ar-body figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.ar-body figcaption::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 2px; background: var(--acc); translate: 0 -1px; }

/* цитата: без полосы слева, крупная кавычка акцентом */
.ar-body blockquote { position: relative; margin: 1.6em 0 0; padding: 24px 28px 24px 70px; border: 0; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 18.5px; line-height: 1.6; color: var(--ink); }
.ar-body blockquote::before { content: "“"; position: absolute; left: 22px; top: 14px; font: 750 58px/1 var(--fh); color: var(--acc-text); }
.ar-body blockquote p { margin: 0; }

/* вопросы и ответы: карточки с плюсом в плитке, открытая подсвечена */
.ar-body details { padding: 0; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; }
.ar-body details + details { margin-top: 10px; }
.ar-body details[open] { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 55%, var(--line)), 0 22px 44px -34px rgba(107, 47, 179, .6); }
.ar-body summary { position: relative; display: block; padding: 18px 64px 18px 22px; font: 650 16.5px/1.42 var(--fh); color: var(--ink); cursor: pointer; list-style: none; }
.ar-body summary::-webkit-details-marker { display: none; }
.ar-body summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 9px; transform: none;
  background: linear-gradient(var(--acc-text), var(--acc-text)) center / 12px 2px no-repeat, linear-gradient(var(--acc-text), var(--acc-text)) center / 2px 12px no-repeat, var(--acc-soft);
  transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ar-body details[open] summary::after { transform: rotate(45deg); }
.ar-body summary:focus-visible { outline: 2px solid var(--acc-text); outline-offset: -2px; border-radius: 18px; }
.ar-body details > :not(summary) { margin: 0 22px 20px; color: var(--ink-2); }
.ar-body .ar-faq { display: grid; gap: 10px; }
.ar-body .ar-faq details + details { margin-top: 0; }

/* кнопка в тексте: с подписью рядом (blog.css), стрелка уезжает при наведении */
.ar-body .ar-btn { gap: 10px; white-space: normal; text-align: left; max-width: 100%; box-shadow: 0 16px 34px -16px rgba(107, 47, 179, .8); }
.ar-body .ar-btn::after { content: "→"; transition: translate .2s ease; }
.ar-body .ar-btn:hover::after { translate: 3px 0; }

/* блок Трумарка после «Коротко» (новые статьи): тёмная сцена */
.ar-body .ar-promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 28px; padding: 24px 26px; border-radius: 22px;
  background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.ar-body .ar-promo::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.3px); background-size: 24px 24px;
  -webkit-mask: linear-gradient(100deg, transparent 40%, #000); mask: linear-gradient(100deg, transparent 40%, #000); pointer-events: none; }
.ar-promo-tx { display: grid; gap: 6px; flex: 1 1 320px; min-width: 0; position: relative; z-index: 1; }
.ar-promo-tx p { margin: 0; color: var(--scene-ink-2); font-size: 15.5px; line-height: 1.55; }
.ar-promo-tx .ar-promo-k { font: 600 12px/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: #cfaeff; }
.ar-promo-tx .ar-promo-t { font: 700 21px/1.25 var(--fh); letter-spacing: -.01em; color: var(--scene-ink); }
.ar-promo-b { position: relative; z-index: 1; }
.ar-body .ar-promo .btn { text-decoration: none; white-space: normal; text-align: center; }

/* врезка «В Трумарке»: плитка с кодом Трумарка на сцене, моно-метка, лёгкая фиолетовая подложка */
.ar-body .tmx { position: relative; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; padding: 18px 20px 18px 18px; border-radius: 18px;
  background: linear-gradient(115deg, color-mix(in srgb, var(--acc) 13%, transparent), transparent 62%), var(--card);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 30%, var(--line)); }
.tmx-ic { position: relative; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(120% 90% at 70% 0%, #3a1a6b, #100e19 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tmx-dm { width: 26px; height: 26px; color: #ece2ff; }
.tmx-ic::after { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; opacity: 0; background: linear-gradient(90deg, transparent, #fff, transparent); box-shadow: 0 0 10px 2px rgba(190, 140, 255, .8); }
@media (prefers-reduced-motion: no-preference) { .tmx.rv-in .tmx-ic::after { animation: ah-scan 1.4s .2s ease-in-out 1 both; } }
.ar-body .tmx p { margin: 0; }
.ar-body .tmx .tmx-k { display: flex; align-items: center; gap: 8px; margin: 3px 0 7px; font: 600 11px/1 var(--m); letter-spacing: .14em; text-transform: uppercase; color: var(--acc-text); }
.ar-body .tmx .tmx-t { font-size: 16.5px; line-height: 1.62; color: var(--ink); }
/* врезка-переход на инструмент или посадочную (tools/routes/zzz_article.py, content/blog/perehody.json): вся плитка — ссылка */
.ar-body a.tmx-go { grid-template-columns: 46px minmax(0, 1fr) 36px; align-items: center; margin-bottom: 1.1em; color: inherit; text-decoration: none; transition: box-shadow .2s ease, translate .2s ease; }
@media (max-width: 640px) { .ar-body a.tmx-go { grid-template-columns: minmax(0, 1fr) 36px; } .tmx-go .tmx-ic { display: none; } }
.ar-body a.tmx-go:hover { box-shadow: inset 0 0 0 1.5px var(--acc), 0 18px 40px -28px rgba(107, 47, 179, .7); }
.ar-body a.tmx-go:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 3px; }
.tmx-go .tmx-ic .ic { width: 24px; height: 24px; color: #ece2ff; stroke-width: 1.8; }
.tmx-go .tmx-tx { display: block; min-width: 0; }
.ar-body .tmx-go .tmx-k { margin-top: 0; }
.ar-body .tmx-go .tmx-t { display: block; font-weight: 600; line-height: 1.45; }
.tmx-go .tmx-ar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--acc); color: #fff; transition: translate .2s ease; }
.tmx-go .tmx-ar .ic { width: 18px; height: 18px; }
.ar-body a.tmx-go:hover .tmx-ar { translate: 3px 0; }
@media (prefers-reduced-motion: reduce) { .ar-body a.tmx-go, .tmx-go .tmx-ar { transition: none; } }

/* источники и видео */
.ar-body .ar-src { padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; }
.ar-body .ar-src > p { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ar-body .ar-src > p::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--acc); }
.ar-body .ar-src ol { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 8px; }
.ar-body .ar-src li + li { margin-top: 0; }
.ar-body .ar-src li span { display: block; font: 500 12px/1.4 var(--m); color: var(--muted); }
.ar-body .ar-video video { display: block; width: 100%; height: auto; border-radius: 16px; background: #000; }

/* карточки блога не уже 316 px: на картинке карточки знак Честного ЗНАКа тогда не меньше 35 px, минимум брендбука ЦРПТ
   (tools/blog_cover.py). Колонок по-прежнему не больше трёх, на телефоне одна */
.bl-grid, .bl-grid.three { grid-template-columns: repeat(auto-fill, minmax(min(100%, 316px), 1fr)); }
/* карточка новой статьи в списке блога: обложка вместо иконки */
.bc-cover .bc-art::before { display: none; }
.bc-cover .bc-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }
.bc-cover:hover .bc-art img { transform: scale(1.03); }

/* «Содержание» в сцене: только на телефоне и планшете, где оглавление сбоку встало бы перед «Коротко» */
.ah-toc { display: none; }
.ah-toc summary { position: relative; display: flex; align-items: center; gap: 10px; padding: 13px 52px 13px 14px; font: 600 12px/1.2 var(--m); letter-spacing: .1em; text-transform: uppercase; color: var(--scene-ink); cursor: pointer; list-style: none; }
.ah-toc summary::-webkit-details-marker { display: none; }
.ah-toc summary i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: #9b62ea; box-shadow: 0 0 10px #9b62ea; }
.ah-toc summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 8px;
  background: linear-gradient(#cfaeff, #cfaeff) center / 11px 2px no-repeat, linear-gradient(#cfaeff, #cfaeff) center / 2px 11px no-repeat, rgba(255, 255, 255, .08); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.ah-toc[open] summary::after { transform: rotate(45deg); }
.ah-toc summary:focus-visible { outline: 2px solid #cfaeff; outline-offset: -2px; border-radius: 14px; }
.ah-toc ol { list-style: none; margin: 0; padding: 2px 8px 10px; counter-reset: m; display: grid; gap: 2px; }
.ah-toc li { counter-increment: m; }
.ah-toc a { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 6px; padding: 9px 8px; border-radius: 9px; font-size: 15px; line-height: 1.38; color: var(--scene-ink); }
.ah-toc a::before { content: counter(m, decimal-leading-zero); padding-top: 2px; font: 600 11px/1.3 var(--m); color: #cfaeff; }
.ah-toc a:hover, .ah-toc a[aria-current] { background: rgba(255, 255, 255, .08); }

@media (max-width: 980px) {
  .ar-head .ah-in { grid-template-columns: minmax(0, 1fr); }
  .ah-code { display: none; }
  .ah-toc { display: block; margin-top: 14px; border-radius: 14px; background: rgba(255, 255, 255, .055); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
  .ar-b .ar-side { order: 1; }
  .ar-b .ar-side .ar-toc { display: none; }
  /* плитки «Что внутри» — лента, которую листают пальцем */
  .ar-in ol { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: 24px; margin-inline: -24px; padding: 2px 24px 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 40px), transparent); }
  .ar-in ol::-webkit-scrollbar { display: none; }
  .ar-in li { flex: 0 0 206px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .ar-head.ah { padding-top: 22px; }
  .ar-head.ah h1 { font-size: 30px; }
  .ar-b:not(.ar-tiles):has(.ar-body > .short:first-child) .ar-head.ah { padding-bottom: 116px; }
  .ar-b:not(.ar-tiles):has(.ar-body > .short:first-child) .ar-body { margin-top: -100px; }
  .ar-body { font-size: 16.5px; }
  .ar-body > .short, .ar-body .ar-short { padding: 20px 18px; border-radius: 18px; }
  .ar-body > .short::before { left: 18px; right: 18px; }
  .ar-body > .short p:not(.short-t) { font-size: 16.5px; }
  .ar-body > .short ul:has(> li:nth-child(4)) { grid-template-columns: minmax(0, 1fr); }
  .ar-in-box { padding: 18px; border-radius: 20px; }
  .ar-in ol { scroll-padding-inline: 18px; margin-inline: -18px; padding-inline: 18px; }
  .ar-in li { flex-basis: 180px; }
  .ar-tiles .ar-head.ah { padding-bottom: 116px; }
  .ar-in { margin-top: -88px; }
  .ar-body blockquote { padding: 20px 20px 20px 54px; font-size: 17px; }
  .ar-body blockquote::before { left: 16px; font-size: 46px; }
}
@media (prefers-reduced-motion: reduce) { .bc-cover .bc-art img, .ar-in a, .ar-side .ar-toc a, .ar-b .kb-side a, .ah-toc summary::after { transition: none; } }

/* строка с поиском выше заголовка и метки: окно подсказок не уходит под H1 (владелец 20.11, снимок) */
.ah .ar-top { position: relative; z-index: 20; }
.srch-pop { isolation: isolate; }

/* ---------- боковая панель сворачивается в полосу (владелец 20.11: «убирать вбок панель»; zzz_article.py, article.js) ---------- */
.ar-side-c { display: grid; gap: 18px; min-width: 0; }
.ar-side-x { justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin: -6px 0 -4px -8px; padding: 7px 10px; border: 0; border-radius: 10px;
  background: none; color: var(--muted); font: 500 12.5px/1 var(--m); letter-spacing: .02em; cursor: pointer; transition: background .15s ease, color .15s ease; }
.ar-side-x .ic, .ar-rail-b .ic { width: 18px; height: 18px; }
.ar-side-x:hover { background: var(--hover); color: var(--ink); }
.ar-side-x:focus-visible, .ar-rail-b:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.ar-rail { display: none; }
.ar-rail-b { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 11px; background: none; color: var(--ink-2); cursor: pointer;
  transition: background .15s ease, color .15s ease; }
.ar-rail-b:hover, .ar-rail-b[aria-expanded="true"]:not(.ar-side-tg) { background: var(--acc-soft); color: var(--acc-text); }
@media (min-width: 981px) {
  .ar-b .ar-grid { transition: grid-template-columns .3s cubic-bezier(.2, .8, .2, 1); }
  .ar-b .ar-grid.ar-side-off { grid-template-columns: 52px minmax(0, 1fr); }
  .ar-side-off .ar-side { z-index: 15; } /* липкая колонка — свой слой: раздел из полосы поверх «Коротко» и картинок статьи */
  .ar-side-off .ar-side-x { display: none; }
  .ar-side-off .ar-rail { display: grid; gap: 4px; justify-items: center; width: 52px; padding: 6px 0; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .ar-side-off .ar-rail .ar-side-tg { color: var(--acc-text); }
  .ar-side-off .ar-side-c > * { display: none; }
  /* раздел панели по значку полосы: карточка рядом с полосой */
  .ar-side-off .ar-side-c > .ar-pop-on { display: block; position: absolute; left: 64px; top: 0; z-index: 12; width: 320px; max-height: calc(100vh - 120px); overflow: auto;
    padding: 16px 14px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 26px 60px -24px rgba(16, 8, 50, .5); }
  /* текст и картинки на освободившуюся ширину: картинки, таблицы и «Коротко» во всю колонку, строки текста длиннее, но читаемы */
  .ar-side-off .ar-body { max-width: none; }
  .ar-side-off .ar-body > :is(p, ul, ol, h2, h3, h4, blockquote, details, .ar-faq, .tmx, .ar-src, .ar-promo) { max-width: 900px; }
}
@media (prefers-reduced-motion: reduce) { .ar-b .ar-grid, .ar-side-x, .ar-rail-b { transition: none; } }

/* ---------- картинки крупно (владелец 20.11: «нажимать и на весь экран растягивать инструкции») ---------- */
/* обёртка по размеру картинки: подсказка в углу самой картинки. Лупа и подсказка — только там, где окно покажет крупнее на 15% и больше (article.js, .ar-zoom-on) */
.ar-zoom { position: relative; display: block; width: fit-content; max-width: 100%; }
.ar-zoom-on > img { cursor: zoom-in; }
.ar-zoom-on > img:focus-visible { outline: 3px solid var(--acc-text); outline-offset: 3px; }
.ar-zoom-hint { position: absolute; right: 12px; top: 12px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px 7px 9px; border-radius: 999px;
  background: rgba(16, 14, 25, .76); color: #fff; font: 600 12px/1 var(--m); letter-spacing: .03em; pointer-events: none;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; translate: 0 -4px; transition: opacity .18s ease, translate .18s ease; }
.ar-zoom-hint .ic { width: 16px; height: 16px; }
.ar-zoom-on:hover .ar-zoom-hint, .ar-zoom-on:has(> img:focus-visible) .ar-zoom-hint { opacity: 1; translate: 0 0; }
@media (hover: none) { .ar-zoom-on .ar-zoom-hint { opacity: .92; translate: 0 0; padding: 7px; } .ar-zoom-hint > span { display: none; } }
html.ar-lb-lock { overflow: hidden; }
.ar-lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; background: rgba(10, 8, 18, .96); color: #f1effa;
  opacity: 0; transition: opacity .2s ease; }
.ar-lb[hidden] { display: none; }
.ar-lb.ar-lb-on { opacity: 1; }
.ar-lb-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 6px 24px; }
.ar-lb-n { font: 600 13px/1 var(--m); letter-spacing: .08em; color: #bdb6d6; }
.ar-lb-x, .ar-lb-b { display: grid; place-items: center; border: 0; color: #fff; background: rgba(255, 255, 255, .1); cursor: pointer; transition: background .15s ease; }
.ar-lb-x { width: 44px; height: 44px; border-radius: 12px; }
.ar-lb-x .ic { width: 22px; height: 22px; }
.ar-lb-x:hover, .ar-lb-b:hover { background: rgba(255, 255, 255, .2); }
.ar-lb-x:focus-visible, .ar-lb-b:focus-visible { outline: 2px solid #cfaeff; outline-offset: 2px; }
.ar-lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 6px 88px; overflow: hidden; touch-action: none; }
.ar-lb-img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  user-select: none; -webkit-user-drag: none; cursor: zoom-in; scale: .97; transition: transform .22s cubic-bezier(.2, .8, .2, 1), scale .22s ease; }
.ar-lb-on .ar-lb-img { scale: 1; }
.ar-lb-z .ar-lb-img { cursor: grab; }
.ar-lb-img.ar-lb-drag { transition: none; }
.ar-lb-b { position: absolute; top: 50%; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; }
.ar-lb-b .ic { width: 24px; height: 24px; }
.ar-lb-b[hidden] { display: none; }
.ar-lb-prev { left: 20px; }
.ar-lb-next { right: 20px; }
.ar-lb-cap { justify-self: center; max-width: 900px; margin: 0; padding: 12px 24px 22px; text-align: center; font-size: 15px; line-height: 1.5; color: #d9d4ec; }
.ar-lb-cap:empty { padding: 0 0 16px; }
@media (max-width: 640px) {
  .ar-lb-top { padding: 10px 10px 4px 16px; }
  .ar-lb-stage { padding: 4px 8px; }
  .ar-lb-b { top: auto; bottom: 14px; margin-top: 0; width: 44px; height: 44px; background: rgba(255, 255, 255, .14); }
  .ar-lb-prev { left: 10px; }
  .ar-lb-next { right: 10px; }
  .ar-lb-cap { padding: 10px 62px 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ar-lb, .ar-lb-img, .ar-zoom-hint, .ar-lb-x, .ar-lb-b { transition: none; } .ar-lb-img { scale: 1; } }

/* ---- x-crypto.css ---- */
/* Трумарк Крипто: раздел /crypto/ (tools/routes/crypto.py, скрипты site/public/crypto/). Токены — подход 1 (p1.css, base.css), общие блоки статьи и вопросов — x-tools.css.
   Вкладки прилипают под шапкой, первый экран — тёмная сцена с изометрией цепочки доверия фоном, инструмент — карточка, наезжающая на сцену. */
.cxp { --ok: #0f8a5a; --ok-soft: rgba(15, 154, 100, .12); --bad: #c9353b; --bad-soft: rgba(229, 72, 77, .12); --warn: #a8660b; --warn-soft: rgba(240, 174, 69, .16);
  --teal: #2a927f; --teal-soft: rgba(61, 184, 162, .14); --cx-ease: cubic-bezier(.2, .8, .2, 1); --cx-spring: cubic-bezier(.3, 1.6, .45, 1); --cx-bar-h: 56px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cxp { --ok: #3ccf91; --bad: #ff7b80; --warn: #f3b453; --teal: #5fd4bd; } }
:root[data-theme="dark"] .cxp { --ok: #3ccf91; --bad: #ff7b80; --warn: #f3b453; --teal: #5fd4bd; }
/* значки состояний (строка плагина, чипы окружения): одна галочка и один «!» SVG-маской — центр в круге, ровная толщина,
   резко на 1x и 2x. Знак белый на тёмном зелёном и красном, тёмный на светлых тонах тёмной темы */
.cxp { --ic-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.7 10.3l2.9 2.9 5.7-6.1' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); --ic-bang: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 5.6v5' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='14.2' r='1.3'/%3E%3C/svg%3E"); --on-st: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cxp { --on-st: #0b1f16; } }
:root[data-theme="dark"] .cxp { --on-st: #0b1f16; }
.cx-plug[data-st="ok"] .cx-plug-i::after, .cx-env-i[data-st="ok"] i::after, .cx-plug[data-st="bad"] .cx-plug-i::after, .cx-env-i[data-st="bad"] i::after {
  content: ""; position: absolute; inset: 0; background: var(--on-st); -webkit-mask: var(--ic-check) center / 100% 100% no-repeat; mask: var(--ic-check) center / 100% 100% no-repeat; }
.cx-plug[data-st="bad"] .cx-plug-i::after, .cx-env-i[data-st="bad"] i::after { -webkit-mask-image: var(--ic-bang); mask-image: var(--ic-bang); }
.cx [hidden] { display: none !important; }
.cx .ic { width: 18px; height: 18px; flex: none; }

/* ---------- полоса вкладок: прилипает под шапкой ---------- */
.cx-bar { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); z-index: 18; background: rgba(16, 14, 25, .92); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .07); color: #f1effa; }
.cx-bar .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--cx-bar-h); }
.cx-brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; color: #fff; padding: 6px 0; flex: none; }
.cx-brand b { font: 700 15px/1 var(--fh); letter-spacing: -0.01em; }
/* знак — печать с галочкой на фирменном градиенте (лист 53, вариант 7) */
.cx-mark { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: linear-gradient(140deg, #9558e0, #5b21b6);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 6px 18px -6px rgba(150, 80, 230, .8); flex: none; }
.cx-mark svg { width: 16px; height: 16px; }
.cx-tabs { position: relative; display: flex; gap: 2px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-block: 8px;
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); mask: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 22px), transparent); padding-inline: 10px; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; font: 500 14px/1 var(--f); color: #a8a4bf; white-space: nowrap;
  transition: color .2s ease, background-color .2s ease; -webkit-tap-highlight-color: transparent; }
.cx-tab .ic { width: 16px; height: 16px; opacity: .8; transition: transform .35s var(--cx-spring), opacity .2s ease; }
.cx-tab:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.cx-tab:hover .ic { transform: translateY(-1px) scale(1.08); opacity: 1; }
.cx-tab[aria-current="page"] { color: #fff; background: rgba(175, 125, 245, .16); box-shadow: inset 0 0 0 1px rgba(205, 170, 255, .22); }
.cx-tab[aria-current="page"] .ic { color: #d2bcff; opacity: 1; }
.cx-tab:focus-visible { outline: 2px solid #cfaeff; outline-offset: -2px; }
.cx-tab-ink { position: absolute; left: 0; bottom: 4px; width: 100px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #a874ff, #cfaeff); transform-origin: 0 50%; opacity: 0;
  transition: transform .42s var(--cx-ease), opacity .2s ease; pointer-events: none; }
.cx-tabs.is-ink .cx-tab-ink { opacity: 1; }

/* ---------- первый экран ---------- */
.cx-hero { position: relative; background: radial-gradient(70% 90% at 80% 30%, #2a1450 0%, #16112a 45%, #100e19 75%); color: var(--scene-ink); }
.cx-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask: linear-gradient(to bottom, #000, transparent 92%); mask: linear-gradient(to bottom, #000, transparent 92%); pointer-events: none; }
.cx-top { position: relative; z-index: 2; padding-top: 22px; }
.cx-top .crumbs { color: var(--scene-ink-2); }
.cx-top .crumbs a:hover { color: #fff; }
.cx-top .cx-brand { display: none; }
.cx-hero-in { position: relative; z-index: 2; padding-block: 18px 116px; }
/* подсказки организаций открыты — шапка над карточкой выпуска (.cx-work, z-index 3), список виден целиком */
.cx-hero-in.is-sug { z-index: 4; }
/* сцена выходит за правый край — обрезает её своя рамка, а не первый экран: иначе список подсказок под полем выпуска
   обрезался по низу первого экрана (владелец 20.11: «опять выпадающий список прячется за окно») */
.cx-hero-clip { position: absolute; inset: 0; z-index: 1; overflow: hidden; pointer-events: none; }
/* поля, которые есть только у одного провайдера: скрытые не занимают места (switchProv в issue.js) */
.cx [data-only-prov][hidden] { display: none !important; }
/* раскладка 2 (лист 54, выбор 20.11): текст — колонкой слева, поле выпуска — во всю ширину контейнера внизу первого экрана, сцена меньше и выше справа */
.cx-hero-l { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; min-height: 300px; align-content: start; }
.cx-hero-l > .ld-kicker, .cx-hero-l > h1, .cx-hero-l > .lead, .cx-hero-l > .cx-chips { max-width: 620px; }
.cx-hero h1 { font: 750 clamp(32px, 4.3vw, 58px)/1.02 var(--fh); letter-spacing: -0.04em; max-width: 17ch; text-wrap: balance; }
.cx-hero .lead { color: var(--scene-ink-2); max-width: 56ch; font-size: clamp(15.5px, 1.2vw, 17.5px); }
.cx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cx-chips li { display: inline-flex; align-items: center; gap: 7px; font: 500 13px/1 var(--m); color: #e3d6ff; padding: 9px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.cx-chips .ic { width: 14px; height: 14px; color: #9be7d8; }

/* сцена: изометрия цепочки доверия фоном справа */
.cx-scene { position: absolute; z-index: 1; right: max(-10px, calc((100vw - 1240px) / 2 - 20px)); top: 64px; width: min(560px, 42vw); aspect-ratio: 720 / 460; pointer-events: none; opacity: 0;
  transition: opacity 1.2s ease; -webkit-mask: radial-gradient(75% 80% at 55% 50%, #000 55%, transparent 100%); mask: radial-gradient(75% 80% at 55% 50%, #000 55%, transparent 100%); }
.cx-scene.is-on { opacity: 1; }
.cx-scene canvas { width: 100%; height: 100%; display: block; }
.cx-scene-labels { position: absolute; inset: 0; }
.cx-sl { position: absolute; transform: translate(-50%, -100%); font: 600 10.5px/1.25 var(--m); letter-spacing: .06em; text-transform: uppercase; color: rgba(241, 239, 250, .55); text-align: center; white-space: nowrap;
  transition: color .5s ease, opacity .5s ease; }
.cx-sl small { display: block; font-weight: 500; letter-spacing: .02em; text-transform: none; color: rgba(168, 164, 191, .6); margin-top: 3px; font-size: 10.5px; }
.cx-sl.on { color: #fff; }
.cx-sl.on small { color: #cfaeff; }
.cx-sl.chz { color: rgba(246, 244, 46, .7); }
.cx-sl.chz.on { color: #f6f42e; }
.cx-sl-act { position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%); font: 500 11.5px/1 var(--m); color: #e3d6ff; padding: 8px 12px; border-radius: 999px; background: rgba(16, 14, 25, .7);
  box-shadow: inset 0 0 0 1px rgba(205, 170, 255, .22); white-space: nowrap; }

/* строка выпуска в первом экране */
.cx-hook { position: relative; width: 100%; display: grid; gap: 10px; margin-top: 18px; }
.cx-hook-k { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #d2bcff; }
.cx-hook-row { position: relative; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 18px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 20px 50px -24px rgba(120, 60, 220, .7); transition: box-shadow .2s ease, background-color .2s ease; }
.cx-hook-row:focus-within { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 2px #a874ff, 0 0 0 6px rgba(168, 116, 255, .16), 0 20px 50px -24px rgba(120, 60, 220, .8); }
.cx-hook-row > .ic { color: #a8a4bf; }
.cx .cx-hook-row input[type="text"] { flex: 1 1 0; min-width: 0; width: 0; height: 46px; border: 0; border-radius: 0; background: transparent; box-shadow: none; outline: none; color: #fff; font: 500 17px/1 var(--f); padding: 0 6px 0 4px; }
.cx-hook-row input::placeholder { color: #8d89a6; font-weight: 400; }
.cx-hook-row .btn { height: 48px; border-radius: 13px; padding: 0 18px; }
.cx-hook-row .btn .ic { transition: transform .3s var(--cx-spring); }
.cx-hook-row .btn:hover .ic { transform: translateX(3px); }
.cx-hook-x { width: 36px; height: 36px; border: 0; border-radius: 10px; background: transparent; color: #a8a4bf; display: grid; place-items: center; cursor: pointer; }
.cx-hook-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.cx-hook-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--scene-ink-2); }
.cx-hook-alt > span { margin-right: 2px; }
.cx-hook-alt button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #e3d6ff; font: 500 14px/1 var(--f); padding: 8px 9px; border-radius: 9px; cursor: pointer;
  transition: background-color .15s ease, color .15s ease; }
.cx-hook-alt button .ic { width: 15px; height: 15px; color: #cfaeff; transition: transform .45s var(--cx-spring); }
.cx-hook-alt button:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.cx-hook-alt button:hover .ic { transform: rotate(-14deg) scale(1.1); }
.cx-hook-msg { font-size: 13.5px; color: #ffb4b8; }

/* подсказки: карточка под полем */
.cx-sug { position: absolute; left: 0; right: 0; top: calc(100% - 38px); z-index: 30; padding: 6px; border-radius: 16px; background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 30px 70px -20px rgba(16, 8, 50, .55); max-height: min(312px, 46vh); overflow-y: auto; overscroll-behavior: contain; transform-origin: 50% 0; animation: cx-pop .22s var(--cx-ease); }
@keyframes cx-pop { from { opacity: 0; transform: translateY(-6px) scale(.985); } }
.cx-opt { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: 10px 12px; border-radius: 11px; cursor: pointer; }
.cx-opt[aria-selected="true"], .cx-opt:hover { background: var(--acc-soft); }
.cx-opt b { font: 600 14.5px/1.3 var(--f); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-opt b mark { background: none; color: var(--acc-text); }
.cx-opt small { grid-column: 1; font: 500 12px/1.35 var(--m); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-opt .cx-st { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.cx-sug-empty, .cx-sug-load { padding: 14px 12px; font-size: 14px; color: var(--muted); }
.cx-sug-load::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--acc); vertical-align: -1px; animation: cx-spin .7s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-st { display: inline-flex; align-items: center; gap: 5px; font: 600 11.5px/1 var(--f); padding: 5px 8px; border-radius: 999px; white-space: nowrap; }
.cx-st.ok { color: var(--ok); background: var(--ok-soft); }
.cx-st.warn { color: var(--warn); background: var(--warn-soft); }
.cx-st.bad { color: var(--bad); background: var(--bad-soft); }

/* ---------- рабочая карточка инструмента: наезжает на сцену ---------- */
.cx-work { position: relative; z-index: 3; margin-top: -84px; padding-bottom: 12px; }
.cx-card { position: relative; border-radius: 24px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 34px 90px -36px rgba(16, 8, 50, .5); scroll-margin-top: 140px; }
.cx-panel { view-transition-name: cx-panel; }
.cx-panel.is-enter { animation: cx-in .34s var(--cx-ease) both; }
@keyframes cx-in { from { opacity: 0; transform: translateY(10px); } }
::view-transition-old(cx-panel) { animation: cx-vt-out .16s ease both; }
::view-transition-new(cx-panel) { animation: cx-vt-in .3s var(--cx-ease) both; }
::view-transition-old(cx-hero), ::view-transition-new(cx-hero) { animation-duration: .25s; }
@keyframes cx-vt-out { to { opacity: 0; transform: translateY(-6px); } }
@keyframes cx-vt-in { from { opacity: 0; transform: translateY(10px); } }
.cx-k { font: 500 12px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cx-hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cx-link { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 0; color: var(--acc-text); font: 500 13.5px/1.2 var(--f); cursor: pointer;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.cx-link .ic { width: 15px; height: 15px; }
.cx-link:hover { text-decoration-color: currentColor; }
.cx-nojs { font-size: 14px; color: var(--muted); }
.cx-err { font-size: 14px; color: var(--bad); background: var(--bad-soft); padding: 10px 12px; border-radius: 12px; }
.cx-err.warn { color: var(--warn); background: var(--warn-soft); }

/* поля */
.cx-f { display: grid; gap: 8px; }
.cx-lab { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 600; font-size: 14.5px; }
.cx-lab-r { display: inline-flex; gap: 14px; align-items: center; font-weight: 400; }
.cx textarea, .cx input[type="text"], .cx input[type="email"], .cx input[type="password"], .cx input:not([type]), .cx select {
  width: 100%; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow .15s ease, background-color .15s ease; }
.cx textarea { min-height: 120px; resize: vertical; padding: 12px 14px; font: 500 12.5px/1.6 var(--m); word-break: break-all; }
.cx textarea[readonly] { background: color-mix(in srgb, var(--bg) 60%, var(--card)); word-break: break-all; }
.cx .cx-card input[type="text"], .cx .cx-card input[type="email"], .cx .cx-card input[type="password"], .cx .cx-card input:not([type]) { height: 46px; padding: 0 14px; font: 400 15px/1 var(--f); }
.cx .cx-card textarea:focus, .cx .cx-card input:focus { box-shadow: inset 0 0 0 2px var(--acc); background: var(--card); }
.cx textarea::placeholder, .cx .cx-card input::placeholder { color: var(--muted); font-family: var(--f); font-weight: 400; }
.cx .cx-card input:disabled { opacity: .55; cursor: not-allowed; }
.cx-in-err input, .cx-in-err textarea { box-shadow: inset 0 0 0 2px var(--bad) !important; }
.cx-fe { font-size: 12.5px; color: var(--bad); }
.cx-seg { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cx-seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 13.5px/1 var(--f); padding: 9px 12px; border-radius: 9px; cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.cx-seg button:hover { color: var(--ink); }
.cx-seg button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 8, 50, .12), inset 0 0 0 1px var(--line); }
.cx-seg button:disabled { opacity: .45; cursor: not-allowed; }
.cx-tog { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; cursor: pointer; user-select: none; }
.cx-tog input { position: absolute; opacity: 0; pointer-events: none; }
.cx-tog > span { position: relative; padding-left: 46px; line-height: 24px; }
.cx-tog > span::before { content: ""; position: absolute; left: 0; top: 2px; width: 36px; height: 20px; border-radius: 999px; background: var(--line-2); transition: background-color .2s ease; }
.cx-tog > span::after { content: ""; position: absolute; left: 3px; top: 5px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: transform .3s var(--cx-spring); }
.cx-tog input:checked + span::before { background: var(--acc); }
.cx-tog input:checked + span::after { transform: translateX(16px); }
.cx-tog input:focus-visible + span::before { outline: 2px solid var(--acc); outline-offset: 2px; }
.cx-tog input:disabled + span { opacity: .5; cursor: not-allowed; }
.cx-info { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 0; background: var(--hover); color: var(--muted); font: 700 11px/1 var(--f); cursor: help; vertical-align: 1px; }
.cx-info:hover, .cx-info:focus-visible { color: var(--acc-text); background: var(--acc-soft); }
.cx-info::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); width: 260px; transform: translate(-50%, 4px); padding: 10px 12px; border-radius: 12px; background: #1b1730; color: #f1effa;
  font: 400 13px/1.45 var(--f); text-align: left; box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; z-index: 5; }
.cx-info:hover::after, .cx-info:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }

/* зона файла */
.cx-drop { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; padding: 22px 16px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: var(--bg); cursor: pointer; color: var(--muted);
  transition: border-color .15s ease, background-color .15s ease, transform .2s var(--cx-ease); }
.cx-drop .ic { width: 22px; height: 22px; color: var(--acc-text); transition: transform .35s var(--cx-spring); }
.cx-drop:hover, .cx-drop.is-drag { border-color: var(--acc); background: var(--acc-soft); }
.cx-drop:hover .ic, .cx-drop.is-drag .ic { transform: translateY(-3px); }
.cx-drop.is-drag { transform: scale(1.01); }
.cx-drop-t { font-size: 14.5px; color: var(--ink-2); }
.cx-drop-t b { color: var(--ink); }
.cx-drop-h { font-size: 12.5px; }
.cx-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.cx-drop:focus-within { outline: 2px solid var(--acc); outline-offset: 2px; }
.cx-drop-n { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font: 500 13px/1.3 var(--m); color: var(--ink); padding: 7px 10px; border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-dropwrap { position: relative; border-radius: 12px; }
.cx-dropwrap.is-drag textarea { box-shadow: inset 0 0 0 2px var(--acc); background: var(--acc-soft); }

/* кнопки действий */
.cx-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.cx .btn .ic { width: 17px; height: 17px; }
.cx .btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.cx .btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.cx .btn.is-busy::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: cx-spin .7s linear infinite; }
.cx .btn-g.is-busy::after { border-color: var(--line-2); border-top-color: var(--acc); }
.cx-go { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.cx-go .btn { height: 50px; padding: 0 22px; font-size: 15.5px; }

/* окружение: КриптоПро, плагин, Рутокен */
.cx-env { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.cx-env-i { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 10px 6px 8px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.cx-env-i b { font-weight: 600; }
.cx-env-i em { font: 500 11.5px/1 var(--m); font-style: normal; color: var(--muted); }
.cx-env-i i { width: 14px; height: 14px; border-radius: 50%; flex: none; position: relative; background: var(--line-2); }
.cx-env-i[data-st="wait"] i { background: none; border: 2px solid var(--line-2); border-top-color: var(--acc); animation: cx-spin .7s linear infinite; width: 12px; height: 12px; }
.cx-env-i[data-st="ok"] i { background: var(--ok); }
.cx-env-i[data-st="off"] i { background: var(--line-2); }
.cx-env-i[data-st="off"] { color: var(--muted); }
.cx-env-i[data-st="bad"] i { background: var(--bad); }

/* ---------- выпуск сертификата ---------- */
.cx-issue { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); }
.cx-issue-main { padding: 26px 28px 28px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.cx-issue-side { padding: 26px 26px 24px; border-left: 1px solid var(--line); display: grid; gap: 16px; align-content: start; background: linear-gradient(180deg, color-mix(in srgb, var(--acc-soft) 45%, transparent), transparent 60%);
  border-radius: 0 24px 24px 0; }
.cx-issue-body { display: grid; gap: 22px; }
.cx-idle { display: grid; gap: 14px; }
.cx-steps { display: grid; gap: 2px; counter-reset: s; }
.cx-steps li { position: relative; display: grid; gap: 3px; padding: 12px 0 12px 46px; border-top: 1px solid var(--line); counter-increment: s; }
.cx-steps li:first-child { border-top: 0; }
.cx-steps li::before { content: counter(s); position: absolute; left: 0; top: 12px; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font: 600 13px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); }
.cx-steps b { font-weight: 600; }
.cx-steps span { font-size: 14px; color: var(--muted); }
.cx-idle-cta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.cx-setup-ext { margin: 12px 0 14px; max-width: 62ch; }

.cx-step { display: grid; gap: 14px; padding: 18px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); background: var(--card); animation: cx-in .35s var(--cx-ease) both; animation-delay: calc(var(--o, 0) * 60ms); }
.cx-step-h { display: flex; align-items: center; gap: 10px; }
.cx-step-h i { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font: 700 12px/1 var(--m); font-style: normal; color: #fff; background: var(--acc); flex: none; }
.cx-step-h b { font: 650 16px/1.2 var(--fh); }
.cx-step-h .cx-link, .cx-step-h .cx-hint { margin-left: auto; }
.cx-org { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: start; padding: 14px; border-radius: 14px; background: var(--acc-soft); }
.cx-org-av { grid-row: 1 / span 3; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 750 16px/1 var(--fh); color: #fff; background: linear-gradient(140deg, #9558e0, #5b21b6); }
.cx-org-n { font: 650 16px/1.3 var(--fh); display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.cx-org dl { grid-column: 2 / span 2; display: flex; flex-wrap: wrap; gap: 4px 22px; margin: 0; font-size: 13px; }
.cx-org dl div { display: grid; gap: 1px; }
.cx-org dt { font: 500 11px/1.2 var(--m); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cx-org dd { margin: 0; font: 500 13.5px/1.35 var(--m); color: var(--ink); }
.cx-org .cx-link { grid-column: 3; grid-row: 1; }
.cx-org-a { grid-column: 2 / span 2; font-size: 13px; color: var(--ink-2); }
.cx-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cx-grid2 .wide { grid-column: 1 / -1; }
.cx-fl { display: grid; gap: 6px; }
.cx-fl > span { font-size: 13px; font-weight: 600; color: var(--ink-2); display: flex; gap: 6px; align-items: center; }
.cx-fl > span em { font: 500 11px/1 var(--m); font-style: normal; color: var(--muted); }
.cx-prov { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cx-prov button { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; text-align: left; padding: 13px 14px; border: 0; border-radius: 14px; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.cx-prov button i { grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 700 11px/1 var(--m); font-style: normal; color: var(--acc-text); background: var(--acc-soft); }
.cx-prov button b { font-weight: 600; font-size: 14.5px; }
.cx-prov button small { font-size: 12.5px; color: var(--muted); }
.cx-prov button[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--acc); background: var(--card); }
.cx-prov button[aria-checked="true"]::after { content: ""; position: absolute; right: 12px; top: 12px; width: 16px; height: 16px; border-radius: 50%; background: var(--acc); box-shadow: inset 0 0 0 4px var(--card); }
.cx-prov button:disabled { opacity: .5; cursor: not-allowed; }
.cx-togs { display: flex; flex-wrap: wrap; gap: 12px 26px; }
/* поля провайдера (имя контейнера, ПИН-код Рутокена, «Экспортируемый») — тот же шаг сетки, что у шага формы: ничего не прилипает */
.cx-prov-f { display: grid; gap: 14px; }
.cx-issue-go { display: grid; gap: 10px; }
.cx-issue-go .btn { width: 100%; height: auto; min-height: 54px; padding-block: 12px; font-size: 16px; border-radius: 14px; }
/* на телефоне «Сгенерировать ключи и сертификат» шире колонки: кнопка переносит текст, а не растягивает форму за край экрана */
.cx-issue-go .btn, .cx-sticky-go .btn { white-space: normal; text-wrap: balance; line-height: 1.25; }
.cx-issue-main, .cx-issue-body { grid-template-columns: minmax(0, 1fr); }
.cx-issue-go p { font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.cx-issue-go p .ic { width: 15px; height: 15px; color: var(--ok); }
.cx-sticky-go { position: fixed; left: 50%; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 40; transform: translate(-50%, 0); width: min(560px, calc(100vw - 32px)); animation: cx-up .3s var(--cx-ease); }
.cx-sticky-go .btn { width: 100%; height: auto; min-height: 52px; padding-block: 11px; box-shadow: 0 18px 40px -12px rgba(107, 47, 179, .65); border-radius: 14px; }
@keyframes cx-up { from { opacity: 0; transform: translate(-50%, 16px); } }

/* ход выпуска */
.cx-prog { display: grid; gap: 2px; }
.cx-prog li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 2px 12px; padding: 10px 0; color: var(--muted); }
.cx-prog li i { grid-row: 1 / span 2; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); position: relative; margin-top: 1px; transition: background-color .3s ease, border-color .3s ease; }
.cx-prog li b { font-weight: 600; font-size: 14.5px; }
.cx-prog li small { font-size: 12.5px; }
.cx-prog li.run { color: var(--ink); }
.cx-prog li.run i { border-color: var(--line-2); border-top-color: var(--acc); animation: cx-spin .8s linear infinite; }
.cx-prog li.ok { color: var(--ink); }
.cx-prog li.ok i { background: var(--ok); border-color: var(--ok); animation: cx-pop .3s var(--cx-spring); }
.cx-prog li.ok i::after { content: ""; position: absolute; left: 6px; top: 2.5px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.cx-prog li.bad i { background: var(--bad); border-color: var(--bad); }
.cx-wait-note { display: flex; gap: 10px; font-size: 13.5px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--bg); }

.cx-done { display: grid; gap: 22px; }
.cx-done-h { display: grid; gap: 6px; }
.cx-done-h h3 { font: 700 clamp(22px, 2.4vw, 30px)/1.12 var(--fh); letter-spacing: -0.02em; }
.cx-next { display: grid; gap: 0; counter-reset: n; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); padding: 6px 16px; }
.cx-next li { counter-increment: n; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.cx-next li:first-child { border-top: 0; }
.cx-next li::before { content: counter(n); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); grid-row: 1 / span 2; }
.cx-next li b { font-weight: 600; font-size: 14.5px; }
.cx-next li span { grid-column: 2; font-size: 13px; color: var(--muted); }
.cx-next li .btn { grid-column: 3; grid-row: 1 / span 2; }
.cx-bridge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; border-radius: 16px; background: linear-gradient(120deg, var(--acc-soft), transparent); box-shadow: inset 0 0 0 1px var(--line); }
.cx-bridge b { font-weight: 650; }
.cx-bridge p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; max-width: 54ch; }

/* правая колонка: сертификат «пружинкой» */
.cx-spring { position: relative; height: 230px; margin-inline: -8px; cursor: pointer; outline: none; perspective: 1200px; }
.cx-sp-stack { position: absolute; left: 50%; top: 56%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(57deg) rotateZ(-38deg); }
.cx-sp-l { position: absolute; left: -116px; top: -72px; width: 232px; height: 144px; border-radius: 15px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2), 0 6px 14px -8px rgba(40, 20, 110, .35);
  transform: translateZ(calc(var(--i) * 5px)); transition: transform .75s cubic-bezier(.3, 1.9, .45, 1), box-shadow .4s ease; transition-delay: calc((7 - var(--i)) * 22ms);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 0 14px 10px; }
.cx-sp-l b { font: 700 11.5px/1.2 var(--f); color: var(--ink); }
.cx-sp-l > span { font: 500 9.5px/1.3 var(--m); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-sp-top { background: linear-gradient(140deg, #8b5cf6, #5b21b6); box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 24px -10px rgba(91, 33, 182, .7); justify-content: space-between; padding: 14px; color: #fff; }
.cx-sp-top b { color: #fff; font-size: 13px; line-height: 1.22; margin-top: 6px; max-width: 100%; white-space: normal; overflow-wrap: break-word;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.cx-sp-top b.is-long { font-size: 11.5px; }
.cx-sp-top span { color: rgba(255, 255, 255, .78); font: 500 9.5px/1.3 var(--m); display: block; }
.cx-sp-k { text-transform: uppercase; letter-spacing: .06em; font-size: 8.5px !important; }
.cx-sp-f { display: flex; justify-content: space-between; align-items: flex-end; }
.cx-seal { width: 40px; height: 40px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .7); display: grid; place-items: center; font: 800 11px/1 var(--m); font-style: normal; color: #fff; box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .15); }
.cx-spring:hover .cx-sp-l, .cx-spring:has(:focus-visible) .cx-sp-l, .cx-spring.is-open .cx-sp-l, .cx-spring.is-pin .cx-sp-l { transform: translateZ(calc(var(--i) * 25px)); transition-delay: calc(var(--i) * 28ms); }
/* слои-кнопки: наведение подсвечивает, открытый слой выдвинут из стопки (issue.js, bindLayers) */
.cx-sp-l[data-layer] { cursor: pointer; outline: none; }
.cx-sp-l[data-layer]:focus-visible { box-shadow: inset 0 0 0 2px var(--acc), 0 6px 14px -8px rgba(40, 20, 110, .35); }
.cx-sp-l[data-layer]:focus-visible b { color: var(--acc-text); }
/* наведение — только мышью: на телефоне :hover залипает под пальцем и слой выглядит выбранным */
@media (hover: hover) {
  .cx-sp-l[data-layer]:hover { box-shadow: inset 0 0 0 2px var(--acc), 0 6px 14px -8px rgba(40, 20, 110, .35); }
  .cx-sp-l[data-layer]:hover b { color: var(--acc-text); }
}
.cx-spring .cx-sp-l.is-act { transform: translate3d(-34px, 30px, calc(var(--i) * 25px + 10px)); transition-delay: 0s;
  box-shadow: inset 0 0 0 2px var(--acc), 0 18px 30px -12px rgba(91, 33, 182, .55); }
.cx-spring .cx-sp-l.is-act b { color: var(--acc-text); }
.cx-spring:hover .cx-sp-top, .cx-spring.is-open .cx-sp-top { box-shadow: 0 30px 40px -18px rgba(124, 58, 237, .6); }
.cx-sp-hint { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font: 500 11px/1 var(--m); color: var(--muted); transition: opacity .3s ease; }
.cx-sp-hint .cx-tp { display: none; }
@media (hover: none) { .cx-sp-hint .cx-tp { display: inline; } .cx-sp-hint .cx-hv { display: none; } }
.cx-spring:hover .cx-sp-hint, .cx-spring.is-open .cx-sp-hint, .cx-spring.is-pin .cx-sp-hint, .cx-spring:has(:focus-visible) .cx-sp-hint { opacity: 0; }
/* открытый слой держит стопку раскрытой: она поднимается на 86px над своим блоком, поэтому опускаем её под подпись «Так будет выглядеть» */
.cx-spring { transition: margin-top .35s var(--cx-ease); }
.cx-spring.is-pin { margin-top: 80px; }
/* подробности слоя — под карточкой: полное значение без многоточий, зачем это Честному ЗНАКу, «Скопировать» */
.cx-sp-panel { display: grid; gap: 10px; margin-top: 4px; padding: 14px 16px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 12px 30px -18px rgba(40, 20, 110, .35); }
.cx-sp-panel[hidden] { display: none; }
.cx-sp-v { display: grid; gap: 8px; }
.cx-sp-ph { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cx-sp-ph b { font: 650 15px/1.3 var(--fh); }
.cx-sp-x { width: 32px; height: 32px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cx-sp-x:hover, .cx-sp-x:focus-visible { background: var(--hover); color: var(--ink); }
/* названия полей — не шире 40%: у расширений они длинные («расширенное использование ключа»), значению нужна остальная ширина */
.cx-sp-panel .cx-dl { font-size: 13px; gap: 6px 12px; grid-template-columns: fit-content(40%) minmax(0, 1fr); }
.cx-sp-panel .cx-dl dd { font: 500 12.5px/1.45 var(--m); }
.cx-sp-why { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.cx-sp-panel .btn { justify-self: start; }
.cx-spring.is-build .cx-sp-l { animation: cx-drop .6s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: calc(var(--i) * 220ms); }
.cx-spring.is-build .cx-sp-top { animation: cx-drop .6s cubic-bezier(.3, 1.5, .5, 1) both, cx-sigpulse 1.6s 2.2s ease-in-out infinite; }
@keyframes cx-drop { from { opacity: 0; translate: 0 0 120px; } to { opacity: 1; translate: 0 0 0; } }
@keyframes cx-sigpulse { 50% { box-shadow: 0 0 0 6px rgba(168, 116, 255, .25), 0 20px 40px -14px rgba(124, 58, 237, .6); } }
.cx-facts { display: grid; gap: 0; margin: 0; }
.cx-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.cx-facts dt { color: var(--muted); }
.cx-facts dd { margin: 0; text-align: right; font-weight: 500; }
.cx-facts a { color: var(--acc-text); }
.cx-side-note { display: flex; gap: 10px; font-size: 13px; color: var(--muted); align-items: flex-start; }
.cx-side-note .ic { color: var(--ok); width: 16px; height: 16px; margin-top: 2px; }

/* ---------- две колонки: подпись, проверка, шифрование, расшифровка ---------- */
.cx-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.cx-col { padding: 26px 28px 28px; display: grid; gap: 20px; align-content: start; min-width: 0; }
.cx-col + .cx-col { border-left: 1px solid var(--line); }
.cx-out { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, transparent), transparent 70%); border-radius: 0 24px 24px 0; }
.cx-empty { display: grid; justify-items: center; align-content: center; gap: 12px; text-align: center; min-height: 260px; padding: 20px; color: var(--muted); font-size: 14.5px; }
.cx-empty p { max-width: 42ch; }
.cx-empty-i { width: 44px !important; height: 44px !important; padding: 11px; border-radius: 14px; color: var(--acc-text); background: var(--acc-soft); }
.cx-res { display: grid; gap: 14px; animation: cx-in .35s var(--cx-ease) both; }
.cx-res-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cx-res-m { font: 500 12px/1.3 var(--m); color: var(--muted); }
.cx-ok, .cx-bad, .cx-warn { display: inline-flex; align-items: center; gap: 7px; font: 650 14px/1 var(--f); padding: 9px 12px; border-radius: 999px; }
.cx-ok { color: var(--ok); background: var(--ok-soft); }
.cx-bad { color: var(--bad); background: var(--bad-soft); }
.cx-warn { color: var(--warn); background: var(--warn-soft); }
.cx-ok .ic, .cx-bad .ic, .cx-warn .ic { width: 16px; height: 16px; }
.cx-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.cx-dl dt { color: var(--muted); }
.cx-dl dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cx-dl dd.m { font: 500 12.5px/1.45 var(--m); }
.cx-who { display: grid; gap: 10px; padding: 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); animation: cx-in .3s var(--cx-ease) both; }
.cx-who-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cx-who-h b { font: 650 15px/1.3 var(--fh); }
.cx-plug { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; }
.cx-plug b { font-weight: 600; }
.cx-plug p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.cx-plug p a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 2px; }
.cx-plug-i { width: 20px; height: 20px; border-radius: 50%; position: relative; }
.cx-plug[data-st="wait"] .cx-plug-i { border: 2px solid var(--line-2); border-top-color: var(--acc); animation: cx-spin .7s linear infinite; }
.cx-plug[data-st="ok"] { padding-block: 9px; }
.cx-plug[data-st="ok"] .cx-plug-i { background: var(--ok); }
.cx-plug[data-st="bad"] { background: var(--bad-soft); box-shadow: none; }
.cx-plug[data-st="bad"] .cx-plug-i { background: var(--bad); }

/* выбор сертификата */
.cx-csel { position: relative; }
.cx-csel-b { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); cursor: pointer; min-height: 56px; }
.cx-csel-b:disabled { cursor: not-allowed; color: var(--muted); }
.cx-csel-b[aria-expanded="true"] { box-shadow: inset 0 0 0 2px var(--acc); }
.cx-csel-v { flex: 1; min-width: 0; font-size: 14.5px; }
.cx-csel-c { color: var(--muted); transition: transform .25s var(--cx-ease); }
.cx-csel-b[aria-expanded="true"] .cx-csel-c { transform: rotate(180deg); }
.cx-csel-m { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; padding: 6px; border-radius: 16px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -24px rgba(16, 8, 50, .5); max-height: 380px; overflow: auto; animation: cx-pop .2s var(--cx-ease); }
.cx-csel-s { position: sticky; top: -6px; padding: 4px 4px 8px; background: var(--card); }
.cx-csel-s input { height: 40px !important; font-size: 14px !important; }
.cx-cc { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; width: 100%; text-align: left; border: 0; background: transparent; color: inherit; padding: 10px; border-radius: 12px; cursor: pointer; }
.cx-cc:hover, .cx-cc[aria-selected="true"] { background: var(--acc-soft); }
.cx-cc i { grid-row: 1 / span 3; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--acc-text); background: var(--acc-soft); font-style: normal; }
.cx-cc i .ic { width: 18px; height: 18px; }
.cx-cc b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-cc small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-cc.is-bad { opacity: .65; }
.cx-csel-b .cx-cc { padding: 0; pointer-events: none; }

/* ---------- ASN.1 ---------- */
.cx-asn { padding: 24px 26px 26px; display: grid; gap: 18px; }
.cx-asn-in { display: grid; gap: 10px; }
.cx-asn-ex { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 13.5px; color: var(--muted); }
.cx-asn-out { display: grid; gap: 14px; animation: cx-in .3s var(--cx-ease) both; }
.cx-asn-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cx-asn-stat { font: 500 12px/1.3 var(--m); color: var(--muted); }
.cx-asn-tools { display: inline-flex; flex-wrap: wrap; gap: 14px; margin-left: auto; }
.cx-asn-empty { min-height: 200px; }
.cx-asn-tv { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.cx-tree { font: 500 13px/1.7 var(--m); padding: 12px 6px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: auto; max-height: 620px; }
.cx-tn > .cx-tr { display: flex; align-items: baseline; gap: 8px; padding: 1px 8px 1px calc(8px + var(--d, 0) * 16px); border-radius: 7px; cursor: pointer; white-space: nowrap; }
.cx-tn > .cx-tr:hover { background: var(--hover); }
.cx-tn > .cx-tr.sel { background: var(--acc-soft); }
.cx-tr .car { width: 12px; flex: none; color: var(--muted); transition: transform .2s ease; display: inline-block; text-align: center; }
.cx-tn.closed > .cx-tr .car { transform: rotate(-90deg); }
.cx-tn.closed > .cx-tk { display: none; }
.cx-tr .off { color: var(--muted); font-size: 11px; min-width: 38px; }
.cx-tr .ty { font-weight: 700; color: var(--acc-text); }
.cx-tr .ty.ctx { color: var(--warn); }
.cx-tr .ty.oid { color: var(--teal); }
.cx-tr .ty.str { color: var(--ok); }
.cx-tr .ln { color: var(--muted); font-size: 11px; }
.cx-tr .va { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.cx-tr .va em { font-style: normal; color: var(--teal); }
.cx-tr .va i { font-style: normal; color: var(--muted); }
.cx-node { position: sticky; top: 140px; display: grid; gap: 10px; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; max-height: 620px; overflow: auto; }
.cx-node dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0; }
.cx-node dt { color: var(--muted); }
.cx-node dd { margin: 0; font: 500 12.5px/1.45 var(--m); overflow-wrap: anywhere; }
.cx-node pre { font: 500 11.5px/1.5 var(--m); white-space: pre-wrap; word-break: break-all; padding: 10px; border-radius: 10px; background: var(--bg); max-height: 200px; overflow: auto; }
.cx-hex { font: 500 12.5px/1.65 var(--m); padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: auto; max-height: 560px; white-space: pre; }
.cx-hex .o { color: var(--muted); margin-right: 14px; }
.cx-hex .a { color: var(--muted); margin-left: 14px; }
.cx-hex b { font-weight: 500; }
.cx-hex b.h { background: var(--acc-soft); color: var(--acc-text); border-radius: 3px; }
.cx-sum { display: grid; gap: 14px; }
.cx-sum-h { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.cx-sum-h h3 { font: 700 20px/1.2 var(--fh); letter-spacing: -0.01em; }
.cx-sum-t { font: 600 11.5px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--acc-text); padding: 6px 9px; border-radius: 999px; background: var(--acc-soft); }
.cx-sum-g { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cx-sum-b { padding: 14px 16px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.cx-sum-b h4 { font: 600 12px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cx-sum-b.wide { grid-column: 1 / -1; }
.cx-ext { display: grid; gap: 8px; }
.cx-ext div { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--line); }
.cx-ext div:first-child { border-top: 0; padding-top: 0; }
.cx-ext b { font-size: 13.5px; font-weight: 600; }
.cx-ext b em { font-style: normal; font: 600 10.5px/1 var(--m); color: var(--warn); margin-left: 6px; text-transform: uppercase; }
.cx-ext span { font: 500 12.5px/1.45 var(--m); color: var(--ink-2); overflow-wrap: anywhere; }

/* ---------- Base64 ---------- */
.cx-b64 { padding: 22px 26px 26px; display: grid; gap: 16px; }
.cx-b64-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.cx-b64-auto { font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }
.cx-b64-io { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.cx-b64-io textarea { min-height: 220px; }
.cx-b64-swap { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--acc-text); display: grid; place-items: center; cursor: pointer;
  transition: transform .45s var(--cx-spring), background-color .15s ease; }
.cx-b64-swap:hover { background: var(--acc-soft); transform: rotate(180deg); }
.cx-b64-file { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--line); animation: cx-in .3s var(--cx-ease) both; }
.cx-b64-file img { min-width: 56px; max-width: 96px; max-height: 96px; object-fit: contain; image-rendering: pixelated; border-radius: 10px; box-shadow: 0 0 0 1px var(--line); background: repeating-conic-gradient(var(--line) 0 25%, transparent 0 50%) 0 0 / 14px 14px; }
.cx-b64-ft { width: 56px; height: 64px; border-radius: 10px; display: grid; place-items: center; font: 700 12px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); }
.cx-b64-file b { font-weight: 600; }
.cx-b64-file p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* ---------- JWT ---------- */
.cx-jwt { padding: 22px 26px 26px; display: grid; gap: 16px; }
.cx-jwt-in { display: grid; gap: 10px; }
.cx-jwt-ed { position: relative; }
.cx-jwt-ed textarea { min-height: 120px; color: transparent; caret-color: var(--ink); position: relative; z-index: 1; background: transparent; }
.cx-jwt-ed textarea::selection { background: rgba(124, 58, 237, .25); color: transparent; }
.cx-jwt-col { position: absolute; inset: 0; z-index: 0; padding: 12px 14px; border-radius: 12px; background: var(--bg); font: 500 12.5px/1.6 var(--m); word-break: break-all; white-space: pre-wrap; overflow: hidden; color: var(--muted); pointer-events: none; }
.cx-jwt-col .h, .cx-jh { color: #d6336c; }
.cx-jwt-col .p, .cx-jp { color: var(--acc-text); }
.cx-jwt-col .s, .cx-js { color: var(--teal); }
.cx-jwt-col .d { color: var(--muted); }
.cx-jwt-st { display: flex; flex-wrap: wrap; gap: 8px; }
.cx-jwt-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; animation: cx-in .3s var(--cx-ease) both; }
.cx-jwt-p { display: grid; gap: 8px; align-content: start; }
.cx-jwt-p pre { font: 500 13px/1.6 var(--m); padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow: auto; max-height: 360px; white-space: pre-wrap; word-break: break-word; }
.cx-jwt-p pre .k { color: var(--acc-text); } .cx-jwt-p pre .s { color: var(--ok); } .cx-jwt-p pre .n { color: var(--warn); } .cx-jwt-p pre .b { color: var(--teal); } .cx-jwt-p pre .nu { color: var(--muted); }
.cx-jwt-claims { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.cx-jwt-claims > dl { margin: 0; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; align-content: start; }
.cx-jwt-claims dt { font: 500 11.5px/1.2 var(--m); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cx-jwt-claims dd { margin: 0; font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.cx-jwt-claims dd small { display: block; font: 500 12px/1.4 var(--m); color: var(--muted); }
.cx-jwt-ver { grid-column: 1 / -1; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cx-jwt-ver textarea { min-height: 90px; background: var(--card); }
.cx-jwt-vr { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); }

/* ---------- ниже инструмента ---------- */
.cx-page { position: relative; }
.cx-sec-h { display: grid; gap: 4px; margin-bottom: 30px; max-width: 760px; }
.cx-more { padding-block: 64px 24px; }
.cx-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.cx-tool { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--cx-spring), box-shadow .2s ease; }
.cx-tool:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 50px -28px rgba(16, 8, 50, .45); }
.cx-tool-i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--acc-text); background: var(--acc-soft); margin-bottom: 4px; transition: transform .45s var(--cx-spring); }
.cx-tool:hover .cx-tool-i { transform: rotate(-8deg) scale(1.08); }
.cx-tool b { font: 650 16.5px/1.25 var(--fh); }
.cx-tool span:last-child { font-size: 14px; color: var(--muted); }
.cx-azbuka { padding-block: 72px 24px; }
.cx-az-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cx-az { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.cx-az::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(closest-side, var(--acc-soft), transparent); opacity: .9; pointer-events: none; }
.cx-az-n { font: 600 12px/1 var(--m); color: var(--acc-text); letter-spacing: .06em; }
.cx-az h3 { font: 700 21px/1.15 var(--fh); letter-spacing: -0.015em; }
.cx-az > p:not(.cx-az-n) { font-size: 14.5px; color: var(--ink-2); }
.cx-az-ex { font: 500 12px/1.6 var(--m); color: var(--ink-2); padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); white-space: pre; overflow: auto;
  transform-origin: 50% 0; transition: transform .6s var(--cx-spring), box-shadow .3s ease; }
.cx-az:hover .cx-az-ex { transform: translateY(-2px) scale(1.015); box-shadow: inset 0 0 0 1px var(--acc), 0 14px 30px -18px rgba(107, 47, 179, .5); }
.cx-az-demo { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.cx-az-l { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.cx-az-l > span { font: 500 11px/1 var(--m); text-transform: uppercase; letter-spacing: .05em; }
.cx-az-demo input { height: 38px !important; font: 500 14px/1 var(--m) !important; padding: 0 10px !important; background: var(--card) !important; }
.cx-az-demo code { font: 500 11.5px/1.5 var(--m); color: var(--acc-text); word-break: break-all; }
.cx-az-demo code b { font-weight: 500; transition: color .4s ease, background-color .4s ease; border-radius: 2px; }
.cx-az-demo code b.ch { color: #fff; background: var(--acc); }
.cx-az-a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--acc-text); margin-top: 2px; }
.cx-az-a .ic { width: 16px; height: 16px; transition: transform .3s var(--cx-spring); }
.cx-az-a:hover .ic { transform: translateX(3px); }
.cx-tbl { overflow-x: auto; margin: 18px 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.cx-tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.cx-tbl th, .cx-tbl td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.cx-tbl thead th { border-top: 0; font: 600 12.5px/1.2 var(--m); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.cx-tbl td:first-child { color: var(--muted); }
.cx-tbl td:nth-child(2) { font-weight: 600; }
.cx-art { padding-top: 72px; }

/* модальное окно: видеоинструкция */
.cx-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(10, 8, 18, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cx-fade .2s ease both; }
@keyframes cx-fade { from { opacity: 0; } }
.cx-modal-in { position: relative; width: min(820px, 100%); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: cx-in .3s var(--cx-ease) both; }
.cx-modal-in iframe { width: 100%; height: 100%; border: 0; display: block; }
.cx-modal-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(0, 0, 0, .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cx-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 95; transform: translateX(-50%); padding: 12px 16px; border-radius: 14px; background: #1b1730; color: #f1effa; font-size: 14px;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6); animation: cx-up .25s var(--cx-ease) both; max-width: calc(100vw - 32px); }
/* КриптоПро ждёт ответа в своём окне: подсказка висит, пока операция не закончится (CX.waitCP) */
.cx-wait { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 94; transform: translateX(-50%); width: min(520px, calc(100vw - 32px));
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; background: #1b1730; color: #f1effa;
  box-shadow: 0 20px 50px -18px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(160, 130, 255, .28); animation: cx-up .25s var(--cx-ease) both; font-size: 14px; line-height: 1.45; }
.cx-wait b { display: block; font-weight: 600; margin-bottom: 2px; }
.cx-wait span { color: #c9c3e3; }
.cx-wait i { width: 18px; height: 18px; margin-top: 2px; border-radius: 50%; border: 2px solid rgba(201, 195, 227, .35); border-top-color: #b79bff; animation: cx-spin .9s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .cx-wait { animation: none; } .cx-wait i { animation: none; } }

/* ---------- после выпуска (владелец 21.11, вариант Б): заголовок с галочкой, реквизиты плитками один раз, путь шагами ---------- */
.cx-dh { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; }
.cx-dh-i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--ok); background: var(--ok-soft); }
.cx-dh-i .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.cx-dh-t { display: grid; gap: 4px; min-width: 0; padding-top: 1px; }
.cx-dh h3 { font: 700 clamp(22px, 2.2vw, 26px)/1.15 var(--fh); letter-spacing: -0.02em; margin: 0 0 6px; }
.cx-dh-org { margin: 0; font: 600 16px/1.35 var(--f); overflow-wrap: anywhere; }
.cx-dh-who { margin: 0; font-size: 14px; color: var(--muted); }
.cx-dtiles dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.cx-done .m { font: 500 13px/1.4 var(--m); }
.cx-done .tl-link { font-size: inherit; color: var(--acc-text); }
.cx-dmore { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.cx-dmore button { display: inline-flex; align-items: center; gap: 7px; padding: 6px 0; border: 0; background: none; font: 500 14px/1.2 var(--f); color: var(--acc-text); cursor: pointer; }
.cx-dmore button .ic { width: 16px; height: 16px; }
.cx-dmore button:hover { text-decoration: underline; text-underline-offset: 3px; }
/* реквизиты плитками, дальше — шаги с действием у текущего; строка про Трумарк видна только после выпуска (hook_cert) */
.cx-dreal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.cx-dreal .tl-link { font-size: inherit; line-height: inherit; color: var(--acc-text); }
.cx-dreal[hidden], .cx-issue:not([data-state="issued"]):not([data-state="installed"]) .cx-dreal { display: none; }
.cx-done .cx-dtiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin: 0; border-radius: 16px; overflow: hidden; background: var(--line); box-shadow: inset 0 0 0 1px var(--line); }
.cx-dtiles div { display: grid; gap: 4px; align-content: start; padding: 12px 14px; background: var(--card); font-size: 14px; }
.cx-dtiles dt { font-size: 12.5px; color: var(--muted); }
.cx-dsteps { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.cx-dsteps li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cx-dsteps li:first-child { border-top: 0; }
.cx-dsteps i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 600 13px/1 var(--m); font-style: normal; color: var(--muted); box-shadow: inset 0 0 0 1.5px var(--line); }
.cx-dsteps li.is-cur i { color: #fff; background: var(--acc); box-shadow: none; }
.cx-dsteps li.is-done i { color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.cx-dsteps i .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.cx-dsteps b { display: block; font-weight: 600; font-size: 15px; }
.cx-dsteps span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.cx-dsteps li:not(.is-cur):not(.is-done) b { color: var(--ink-2); }
/* справа после выпуска — только карточка: факты влиты в список слева */
.cx-k-done { display: none; }
.cx-issue[data-state="issued"] .cx-k-pre, .cx-issue[data-state="installed"] .cx-k-pre { display: none; }
.cx-issue[data-state="issued"] .cx-k-done, .cx-issue[data-state="installed"] .cx-k-done { display: inline; }
.cx-issue[data-state="issued"] .cx-facts, .cx-issue[data-state="installed"] .cx-facts,
.cx-issue[data-state="issued"] .cx-side-note, .cx-issue[data-state="installed"] .cx-side-note,
.cx-issue[data-state="issued"] .cx-env, .cx-issue[data-state="installed"] .cx-env { display: none; }
/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .cx-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-az-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-scene { opacity: .0; width: 50vw; right: -8vw; top: 56px; }
  .cx-scene.is-on { opacity: .55; }
}
@media (max-width: 1023px) {
  .cx-issue, .cx-two { grid-template-columns: minmax(0, 1fr); }
  .cx-issue-side { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 24px 24px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .cx-issue-side > .cx-k, .cx-issue-side > .cx-side-note, .cx-issue-side > .cx-sp-panel { grid-column: 1 / -1; }
  .cx-col + .cx-col { border-left: 0; border-top: 1px solid var(--line); }
  .cx-out { border-radius: 0 0 24px 24px; }
  .cx-asn-tv { grid-template-columns: minmax(0, 1fr); }
  .cx-node { position: static; }
  .cx-b64-io { grid-template-columns: minmax(0, 1fr); }
  .cx-b64-swap { justify-self: center; transform: rotate(90deg); }
  .cx-b64-swap:hover { transform: rotate(270deg); }
  .cx-jwt-out { grid-template-columns: minmax(0, 1fr); }
  .cx-scene { display: none; }
}
@media (max-width: 760px) {
  .cx .cx-hook-row input::placeholder { font-size: 15px; }
  .cx-bar .cx-brand { display: none; }
  .cx-top .cx-brand { display: inline-flex; margin-top: 12px; }
  .cx-bar .wrap { padding-inline: 0; }
  .cx-tabs { padding-inline: 14px; }
  .cx-tab { height: 36px; padding: 0 11px; font-size: 13.5px; }
  .cx-top { padding-top: 14px; }
  .cx-hero-in { padding-block: 10px 92px; }
  .cx-hero-l { min-height: 0; gap: 12px; }
  .cx-hero .lead { font-size: 15px; }
  .cx-chips { display: none; }
  .cx-hook-row { padding-left: 12px; border-radius: 16px; }
  .cx-hook-row input { font-size: 16px; height: 44px; }
  .cx-hook-row .btn { padding: 0 14px; height: 44px; }
  .cx-hook-row .btn .ic { display: none; }
  .cx-hook-alt { font-size: 13.5px; }
  .cx-hook-alt button { padding: 7px 6px; font-size: 13.5px; }
  .cx-work { margin-top: -68px; }
  .cx-card { border-radius: 20px; }
  .cx-issue-main, .cx-col, .cx-issue-side { padding: 18px 16px 20px; }
  .cx-issue-side { grid-template-columns: minmax(0, 1fr); }
  .cx-spring { height: 210px; }
  .cx-spring.is-pin { margin-top: 92px; }
  .cx-asn, .cx-b64, .cx-jwt { padding: 18px 16px 20px; }
  .cx-grid2, .cx-prov { grid-template-columns: minmax(0, 1fr); }
  .cx-step { padding: 14px; border-radius: 16px; }
  .cx-org { grid-template-columns: auto minmax(0, 1fr); }
  .cx-org .cx-link { grid-column: 2; grid-row: auto; justify-self: start; }
  .cx-org dl { grid-column: 1 / -1; }
  .cx-org-a { grid-column: 1 / -1; }
  .cx-next li { grid-template-columns: 26px minmax(0, 1fr); }
  .cx-done .cx-dtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-done .cx-dtiles .is-w { grid-column: 1 / -1; }
  .cx-dsteps li { grid-template-columns: 30px minmax(0, 1fr); }
  .cx-dsteps li > .btn { grid-column: 2; justify-self: start; }
  .cx-dh { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .cx-dh-i { width: 40px; height: 40px; }
  .cx-next li .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .cx-sum-g { grid-template-columns: minmax(0, 1fr); }
  .cx-tools, .cx-az-grid { grid-template-columns: minmax(0, 1fr); }
  .cx-asn-tools { margin-left: 0; }
  .cx-go .btn { width: 100%; }
  .cx-plug { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
  .cx-plug-i { margin-top: 1px; }   /* центр значка — на середине первой строки (строка 22,4 px, значок 20 px) */
  .cx-plug [data-plug-retry] { grid-column: 2; justify-self: start; }
  .cx-b64-io textarea { min-height: 140px; }
  .cx-more, .cx-azbuka { padding-block: 44px 12px; }
  .cx-art { padding-top: 48px; }
  .cx-empty { min-height: 160px; }
  .cx-info::after { width: 220px; left: auto; right: -10px; transform: translate(0, 4px); }
  .cx-info:hover::after, .cx-info:focus-visible::after { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  /* переходы выключены совсем: короткая длительность без transition-property превращала в переход любое изменение (по умолчанию all),
     и подъём шапки над карточкой (z-index у .cx-hero-in.is-sug) мог зависнуть в фоновой вкладке — список подсказок оставался под карточкой */
  .cx *, .cx *::before, .cx *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  ::view-transition-old(cx-panel), ::view-transition-new(cx-panel) { animation: none; }
}

/* ---- x-kb.css ---- */
/* База знаний: главная /docs/ и страницы разделов, вид «Плитки» (tools/kb_visual.py). Цвет раздела — --h, текст цветом раздела — --hc, подложка — --ht */
:root { --kv-ink: #12081f; --kv-t: 10%; --kv-e: cubic-bezier(.2, .8, .2, 1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --kv-ink: #fff; --kv-t: 15%; } }
:root[data-theme="dark"] { --kv-ink: #fff; --kv-t: 15%; }
.kv-hue-vio { --h: #7c3aed; } .kv-hue-ind { --h: #4f5bd5; } .kv-hue-blue { --h: #2b7de9; } .kv-hue-cyan { --h: #0b93b0; } .kv-hue-teal { --h: #0f9c84; }
.kv-hue-green { --h: #3c9a33; } .kv-hue-amber { --h: #cf8705; } .kv-hue-orange { --h: #e0602a; } .kv-hue-rose { --h: #df4660; } .kv-hue-pink { --h: #c03ca2; }
[class*="kv-hue-"] { --hc: color-mix(in srgb, var(--h) 76%, var(--kv-ink)); --ht: color-mix(in srgb, var(--h) var(--kv-t), transparent); --hl: color-mix(in srgb, var(--h) 32%, transparent); }
.bl-hero.kv-hero { --kv-ink: #fff; --kv-t: 22%; }

.kv a:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.kv .bl-hero a:focus-visible { outline-color: #cfaeff; }
.kv-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--hc, var(--acc-text)); background: var(--ht, var(--acc-soft));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h, #7c3aed) 20%, transparent); }
.kv-ic .ic { width: 22px; height: 22px; }
.kv-ic-s { width: 30px; height: 30px; border-radius: 9px; } .kv-ic-s .ic { width: 16px; height: 16px; }
.kv-ic-xl { width: 64px; height: 64px; border-radius: 18px; } .kv-ic-xl .ic { width: 30px; height: 30px; }
.kv-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 22px; }
.kv-head-2 { margin-top: 44px; }
.kv-h2 { font: var(--h-w) clamp(24px, 2.4vw, 32px)/1.1 var(--fh); letter-spacing: var(--h-ls); margin-top: 10px; }
.kv-h3 { font: 650 20px/1.2 var(--fh); letter-spacing: -0.015em; }
.kv-lead { color: var(--ink-2); margin-top: 8px; max-width: 60ch; }
.kv-more { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1.2 var(--f); color: var(--acc-text); white-space: nowrap; }
.kv-more .ic { width: 16px; height: 16px; transition: transform .2s var(--kv-e); }
.kv-more:hover .ic { transform: translateX(3px); }
.kv-tag { justify-self: start; display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1.2 var(--m); letter-spacing: .02em; color: var(--hc); }
.kv-tag .ic { width: 14px; height: 14px; flex: none; }
.kv-badge { justify-self: start; display: inline-flex; align-items: center; gap: 7px; width: max-content; font: 600 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 9px 5px; border-radius: 999px; color: var(--hc, var(--acc-text)); background: var(--ht, var(--acc-soft)); }
.kv-badge.hot::before, .kv-badge.new::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #f0663a; box-shadow: 0 0 0 3px rgba(240, 102, 58, .2); }
.kv-badge.new::before { background: #2fbf71; box-shadow: 0 0 0 3px rgba(47, 191, 113, .22); }

/* шапка: поиск крупно, примеры запросов, цифры */
.kv-hero { padding-block: 40px 44px; }
.kv-hero .srch { max-width: 720px; }
.kv-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--scene-ink-2); }
.kv-ex span { margin-right: 2px; }
.kv-ex a { padding: 6px 11px; border-radius: 999px; color: var(--scene-ink); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--scene-line); transition: background-color .2s, box-shadow .2s; }
.kv-ex a:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .35); }
.kv-stats { list-style: none; margin: 8px 0 0; padding: 18px 0 0; display: flex; flex-wrap: wrap; gap: 12px 40px; border-top: 1px solid var(--scene-line); max-width: 720px; }
.kv-stats li { display: grid; gap: 6px; }
.kv-stats b { font: 700 24px/1 var(--fh); letter-spacing: -0.02em; color: #fff; }
.kv-stats span { font: 500 11.5px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--scene-ink-2); }
.kv-hero-cat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(38% 95% at 86% 8%, color-mix(in srgb, var(--h) 34%, transparent), transparent 72%); pointer-events: none; }
.kv-title { display: flex; align-items: center; gap: 18px; }
.kv-hero .kv-title .kv-ic { color: color-mix(in srgb, var(--h) 45%, #fff); background: color-mix(in srgb, var(--h) 26%, rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 50%, transparent), 0 12px 40px -12px color-mix(in srgb, var(--h) 70%, transparent); }
.kv-sub-n { display: inline-block; margin-left: 12px; padding: 4px 8px; border-radius: 8px; font: 500 12px/1.2 var(--m); color: var(--scene-ink); background: rgba(255, 255, 255, .07); vertical-align: middle; }

/* карточки статей */
.kv-body { padding-block: 48px 40px; }
.kv-go { position: absolute; right: 18px; top: 18px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--hc, var(--acc-text));
  background: var(--ht, rgba(107, 47, 179, .08)); transition: transform .25s var(--kv-e), background-color .25s, color .25s; }
.kv-go .ic { width: 16px; height: 16px; }
a:hover > .kv-go { transform: translateX(3px); background: var(--h, var(--acc)); color: #fff; }

/* лента выпусков: дата чипом */
.kv-date { flex: none; display: grid; place-items: center; align-content: center; width: 52px; height: 52px; border-radius: 14px; color: var(--hc, var(--acc-text));
  background: linear-gradient(var(--ht, var(--acc-soft)), var(--ht, var(--acc-soft))), var(--card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h, #7c3aed) 22%, transparent); }
.kv-date b { font: 700 19px/1 var(--fh); letter-spacing: -0.02em; }
.kv-date span { font: 500 10.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; margin-top: 4px; }
.kv-tl { display: grid; gap: 40px; max-width: 1080px; }
.kv-tl-m { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 24px; }
.kv-tl-h { position: sticky; top: 92px; align-self: start; padding-top: 24px; font: 600 12.5px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kv-tl ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kv-tl-i { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 18px 60px 18px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s var(--kv-e), box-shadow .25s; }
.kv-tl-i:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--hl, var(--line-2)), 0 22px 44px -32px color-mix(in srgb, var(--h, #3c1478) 75%, transparent); }
.kv-tl-i .kv-date { width: 56px; height: 56px; }
.kv-tl-t { display: grid; gap: 6px; min-width: 0; }
.kv-tl-t b { font: 650 17px/1.3 var(--fh); letter-spacing: -0.01em; color: var(--ink); }
.kv-tl-t > span:not(.kv-badge) { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.kv-tl-i.first { padding: 26px 64px 26px 24px; background: linear-gradient(135deg, var(--ht, var(--acc-soft)), transparent 62%), var(--card); }
.kv-tl-i.first b { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.22; letter-spacing: -0.02em; }
.kv-tl-i.first .kv-date { width: 64px; height: 64px; } .kv-tl-i.first .kv-date b { font-size: 23px; }

/* другие разделы внизу страницы раздела */
.kv-others { padding-block: 12px 80px; }
.kv-chips { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kv-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; color: var(--ink); transition: box-shadow .2s, transform .2s var(--kv-e); }
.kv-chip b { font: 500 12px/1 var(--m); color: var(--muted); }
.kv-chip:hover { box-shadow: inset 0 0 0 1px var(--hl); transform: translateY(-1px); }

/* ===== А: плитки ===== */
.kva-route { padding-block: 56px 0; }
.kva-path { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; }
.kva-intro { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 22px 58px 22px 22px; border-radius: 20px;
  background: linear-gradient(150deg, var(--ht), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--kv-e), box-shadow .25s; }
.kva-intro:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hl), 0 22px 44px -30px color-mix(in srgb, var(--h) 75%, transparent); }
.kva-intro-t { display: grid; gap: 5px; }
.kva-intro-t small { font: 500 11px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kva-intro-t b { font: 650 19px/1.25 var(--fh); letter-spacing: -0.015em; color: var(--ink); }
.kva-intro-t span { font-size: 14px; line-height: 1.45; color: var(--muted); }
.kva-intro.wide { max-width: 860px; margin-bottom: 14px; }
.kva-steps { position: relative; list-style: none; margin: 0; padding: 26px 10px 22px; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.kva-steps::before, .kva-steps::after { content: ""; position: absolute; top: 44px; left: calc(10px + (100% - 20px) / var(--n) / 2); right: calc(10px + (100% - 20px) / var(--n) / 2); height: 2px; border-radius: 2px; }
.kva-steps::before { background: var(--line); }
.kva-steps::after { background: linear-gradient(90deg, var(--acc), #c03ca2); opacity: .55; transform-origin: left; transition: transform 1.2s cubic-bezier(.4, 0, .2, 1) .15s; }
.kva-steps.sq::after { transform: scaleX(0); }
.kva-steps.sq:has(> .sq-in)::after { transform: scaleX(1); }
.kva-steps a { display: grid; justify-items: center; align-content: start; gap: 12px; padding: 0 6px 4px; text-align: center; border-radius: 12px; }
.kva-dot { position: relative; z-index: 1; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 600 14px/1 var(--m); color: var(--acc-text); background: var(--card);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 0 6px var(--card); transition: transform .25s var(--kv-e), background-color .25s, color .25s, box-shadow .25s; }
.kva-steps b { font: 600 14px/1.3 var(--fh); color: var(--ink-2); transition: color .2s; }
.kva-steps a:hover .kva-dot, .kva-steps a:focus-visible .kva-dot { background: var(--acc); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 6px var(--card), 0 10px 24px -8px rgba(107, 47, 179, .7); }
.kva-steps a:hover b { color: var(--ink); }
.kva-vsteps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 860px; }
.kva-vsteps::before { content: ""; position: absolute; left: 37px; top: 30px; bottom: 30px; width: 2px; border-radius: 2px; background: linear-gradient(var(--acc), #c03ca2); opacity: .35; }
.kva-vsteps a { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 18px; align-items: center; padding: 16px 60px 16px 18px; border-radius: 18px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--kv-e), box-shadow .25s; }
.kva-vsteps a:hover { transform: translateX(4px); box-shadow: inset 0 0 0 1px var(--hl), 0 22px 44px -32px color-mix(in srgb, var(--h) 75%, transparent); }
.kva-vsteps .kva-dot { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 45%, transparent), 0 0 0 5px var(--card); }
.kva-vsteps a:hover .kva-dot { background: var(--acc); color: #fff; }
.kva-vt { display: grid; gap: 4px; min-width: 0; }
.kva-vt small { font: 500 11px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kva-vt b { font: 650 16.5px/1.35 var(--fh); color: var(--ink); }
.kva-vt span { font-size: 14px; line-height: 1.5; color: var(--muted); }

.kva-secs { padding-block: 64px 0; }
.kva-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kva-tile { position: relative; isolation: isolate; overflow: hidden; height: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; align-content: start;
  column-gap: 12px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .3s var(--kv-e), box-shadow .3s; }
.kva-tile::before { content: ""; position: absolute; z-index: -1; right: -28%; top: -38%; width: 75%; aspect-ratio: 1; background: radial-gradient(closest-side, var(--ht), transparent); transition: transform .5s var(--kv-e); }
.kva-tile .kv-ic { grid-area: 1 / 1; }
.kva-n { grid-area: 1 / 2; justify-self: end; display: grid; justify-items: end; gap: 4px; font: 500 11px/1 var(--m); letter-spacing: .05em; color: var(--muted); }
.kva-n b { font: 650 24px/1 var(--fh); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kva-name { grid-area: 2 / 1 / 3 / 3; margin-top: 18px; font: 650 18px/1.25 var(--fh); letter-spacing: -0.015em; color: var(--ink); }
.kva-line { grid-area: 3 / 1 / 4 / 3; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.kva-tags { grid-area: 4 / 1 / 5 / 3; margin-top: 16px; padding-right: 38px; display: flex; flex-wrap: wrap; gap: 5px; }
.kva-tags i { font: 500 12px/1 var(--f); font-style: normal; padding: 5px 8px; border-radius: 7px; background: var(--hover); color: var(--ink-2); }
.kva-tile .kv-go { top: auto; bottom: 16px; right: 16px; opacity: 0; transform: translateX(-6px); }
.kva-tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--hl), 0 28px 50px -34px color-mix(in srgb, var(--h) 85%, transparent); }
.kva-tile:hover::before { transform: scale(1.3); }
.kva-tile:hover .kv-go, .kva-tile:focus-visible .kv-go { opacity: 1; transform: none; background: var(--h); color: #fff; }

.kva-duo { padding-block: 64px 88px; }
.kva-pop-l { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kva-pop-l > .big { grid-column: span 2; }
.kva-pc { position: relative; height: 100%; display: grid; gap: 10px; align-content: start; padding: 18px 54px 18px 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .25s var(--kv-e), box-shadow .25s; }
.kva-pc b { font: 650 15.5px/1.35 var(--fh); color: var(--ink); }
.kva-pc:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hl), 0 22px 44px -30px color-mix(in srgb, var(--h) 75%, transparent); }
.kva-rank { position: absolute; right: 18px; top: 18px; font: 600 12px/1 var(--m); color: var(--muted); }
.kva-pop-l .big .kva-pc { min-height: 210px; padding: 24px 24px 26px; gap: 12px; background: linear-gradient(160deg, var(--ht), transparent 60%), var(--card); }
.kva-pop-l .big .kva-pc b { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.22; letter-spacing: -0.02em; padding-right: 48px; }
.kva-pop-l .big .kva-rank { top: 16px; right: 20px; font: 700 44px/1 var(--fh); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--h) 45%, transparent); }
.kva-pc-x { font-size: 14.5px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- ширины ---------- */
@media (max-width: 1100px) {
  .kva-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .kva-path { grid-template-columns: minmax(0, 1fr); }
  .kva-steps { grid-template-columns: minmax(0, 1fr); padding: 10px 16px; }
  .kva-steps::before, .kva-steps::after { top: 30px; bottom: 30px; left: 34px; right: auto; width: 2px; height: auto; }
  .kva-steps::after { background: linear-gradient(var(--acc), #c03ca2); transform-origin: top; }
  .kva-steps.sq::after { transform: scaleY(0); } .kva-steps.sq:has(> .sq-in)::after { transform: scaleY(1); }
  .kva-steps a { grid-template-columns: 38px minmax(0, 1fr); justify-items: start; align-items: center; gap: 14px; padding: 6px 0; text-align: left; }
  .kva-pop-l { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kva-pop-l > .big { grid-column: auto; }
  .kv-tl-m { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .kv-tl-h { position: static; padding-top: 0; }
}
@media (max-width: 640px) {
  .kv-hero { padding-block: 28px 32px; }
  .kv-stats { gap: 10px 24px; }
  .kv-stats b { font-size: 20px; }
  .kv-ex a:nth-child(n + 6) { display: none; }
  .kv-title { gap: 14px; }
  .kv-title .kv-ic-xl { width: 48px; height: 48px; border-radius: 14px; } .kv-title .kv-ic-xl .ic { width: 24px; height: 24px; }
  .kv-sub-n { display: table; margin: 10px 0 0; }
  .kva-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .kva-tile { grid-template-columns: 46px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 14px; padding: 16px; }
  .kva-tile .kv-ic { grid-area: 1 / 1 / 3 / 2; align-self: start; }
  .kva-name { grid-area: 1 / 2; margin-top: 2px; font-size: 17px; }
  .kva-line { grid-area: 2 / 2 / 3 / 4; margin-top: 4px; }
  .kva-n { grid-area: 1 / 3; } .kva-n b { font-size: 18px; } .kva-n { font-size: 0; gap: 0; }
  .kva-tags, .kva-tile .kv-go { display: none; }
  .kva-pop-l { grid-template-columns: minmax(0, 1fr); }
  .kva-pop-l .big .kva-pc { min-height: 0; }
  .kva-vsteps a { padding: 14px 52px 14px 14px; gap: 14px; }
  .kva-vsteps::before { left: 33px; top: 34px; }
  .kva-vsteps a { align-items: start; }
  .kva-vt span, .kva-intro-t span, .kv-tl-t > span:not(.kv-badge) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .kv-tl-i, .kv-tl-i.first { padding: 16px 48px 16px 14px; gap: 14px; }
  .kv-tl-i .kv-go { top: 14px; right: 12px; }
  .kv-chip { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  .kva-tile, .kva-pc, .kva-intro, .kva-vsteps a, .kv-tl-i, .kv-chip, .kva-dot, .kv-go { transition: none; }
  .kva-tile:hover, .kva-pc:hover, .kva-intro:hover, .kva-vsteps a:hover, .kv-tl-i:hover, .kv-chip:hover { transform: none; }
  .kva-steps a:hover .kva-dot { transform: none; }
  .kva-steps::after { transition: none; }
}

/* маршрут «Подключение за 8 шагов» (владелец 20.11: линия шла сквозь кружки, «не очень выглядит»):
   шаги при появлении получают translate и становятся отдельными слоями, ::after рисовался поверх них —
   линия теперь под шагами, кружки плотные, с мягкой заливкой и кольцом цвета карточки вокруг */
.kva-steps::before, .kva-steps::after { z-index: 0; height: 2px; }
.kva-steps > li { position: relative; z-index: 1; }
.kva-dot { width: 40px; height: 40px; font: 650 15px/1 var(--m); color: var(--acc-text);
  background: color-mix(in srgb, var(--acc) 9%, var(--card));
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--acc) 55%, transparent), 0 0 0 7px var(--card); }
.kva-steps a:hover .kva-dot, .kva-steps a:focus-visible .kva-dot { box-shadow: 0 0 0 7px var(--card), 0 10px 24px -8px rgba(107, 47, 179, .7); }
.kva-steps b { max-width: 13ch; text-wrap: balance; }

/* «Все статьи раздела» (вариант «Подгруппы и иконки», выбор владельца 20.11): чипы-фильтры по темам, «С этого начать»,
   подгруппы с подзаголовком, у статьи своя иконка, суть одним предложением, метки «Часто читают» и «Обновлено» */
.kv-upd { display: inline-flex; align-items: center; gap: 6px; width: max-content; padding: 5px 9px 4px; border-radius: 999px; font: 500 11.5px/1 var(--m); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.kv-upd i { width: 6px; height: 6px; border-radius: 50%; background: #2fbf71; }
.kva-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.kva-filter button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 14px/1 var(--f); color: var(--ink-2); transition: background-color .2s, color .2s, box-shadow .2s; }
.kva-filter button b { font: 500 12px/1 var(--m); color: var(--muted); }
.kva-filter button:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--hl); }
.kva-filter button[aria-pressed="true"] { background: var(--h); color: #fff; box-shadow: none; }
.kva-filter button[aria-pressed="true"] b { color: rgba(255, 255, 255, .78); }
.kva-filter button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.kva-first { position: relative; display: flex; align-items: flex-start; gap: 18px; padding: 22px 64px 22px 22px; border-radius: 20px;
  background: linear-gradient(135deg, var(--ht), transparent 62%), var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--kv-e), box-shadow .25s; }
.kva-first + .kva-first { margin-top: 12px; }
.kva-first:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hl), 0 22px 44px -30px color-mix(in srgb, var(--h) 75%, transparent); }
.kva-at { display: grid; gap: 6px; align-content: start; min-width: 0; }
.kva-at small { font: 500 11px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--hc); }
.kva-at b { font: 650 16px/1.35 var(--fh); letter-spacing: -0.005em; color: var(--ink); }
.kva-at > span { font-size: 14px; line-height: 1.5; color: var(--muted); }
.kva-first .kva-at b { font-size: clamp(19px, 1.7vw, 22px); line-height: 1.25; letter-spacing: -0.015em; }
.kva-first .kva-at > span { font-size: 15px; color: var(--ink-2); }
.kva-group { margin-top: 36px; }
.kva-first + .kva-group:not(:has(.kva-group-h)), .kva-filter + .kva-group:not(:has(.kva-group-h)) { margin-top: 14px; }
.kv-body > .wrap > .kva-group:first-child { margin-top: 0; }
.kva-group[hidden] { display: none; }
.kva-group-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font: 650 20px/1.2 var(--fh); letter-spacing: -0.015em; }
.kva-group-h::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--h); }
.kva-group-h span { padding: 5px 8px 4px; border-radius: 8px; font: 500 12px/1 var(--m); color: var(--muted); background: var(--hover); }
.kva-arts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kva-art { position: relative; height: 100%; display: grid; grid-template-columns: 42px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 14px; row-gap: 12px;
  padding: 18px 52px 18px 18px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--kv-e), box-shadow .25s; }
.kva-art .kv-ic, .kva-first .kv-ic { width: 42px; height: 42px; border-radius: 12px; transition: background-color .25s, color .25s; }
.kva-art .kv-ic .ic, .kva-first .kv-ic .ic { width: 20px; height: 20px; }
.kva-marks { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; }
.kva-marks:empty { display: none; }
.kva-art .kv-go { top: 16px; right: 14px; }
.kva-art:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--hl), 0 22px 44px -30px color-mix(in srgb, var(--h) 75%, transparent); }
.kva-art:hover .kv-ic, .kva-first:hover .kv-ic { background: var(--h); color: #fff; }
@media (max-width: 1100px) { .kva-arts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kva-filter { gap: 6px; } .kva-filter button { height: 34px; padding: 0 12px; font-size: 13.5px; }
  .kva-arts { grid-template-columns: minmax(0, 1fr); }
  .kva-first { padding: 18px 52px 18px 16px; gap: 14px; }
  .kva-art { padding: 16px 48px 16px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .kva-art, .kva-first, .kva-art .kv-ic, .kva-first .kv-ic { transition: none; }
  .kva-art:hover, .kva-first:hover { transform: none; }
}

/* «Инструменты по теме» на странице раздела: тёмная карточка бесплатного инструмента сайта (как сцены главной) */
.kva-tools { padding-block: 8px 28px; }
.kva-tool-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kva-tool { position: relative; isolation: isolate; overflow: hidden; height: 100%; display: flex; align-items: flex-start; gap: 16px; padding: 20px 60px 20px 20px; border-radius: 20px;
  color: var(--scene-ink); background: var(--scene-bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform .25s var(--kv-e), box-shadow .25s; }
.kva-tool::before { content: ""; position: absolute; z-index: -1; inset: auto -10% -70% 30%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); transition: transform .5s var(--kv-e); }
.kva-tool-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #dcc8ff; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.kva-tool-ic .ic { width: 22px; height: 22px; }
.kva-tool-t { display: grid; gap: 5px; min-width: 0; }
.kva-tool-t small { font: 500 11px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: #cfaeff; }
.kva-tool-t b { font: 650 17px/1.3 var(--fh); letter-spacing: -0.01em; color: #fff; }
.kva-tool-t > span { font-size: 14px; line-height: 1.5; color: var(--scene-ink-2); }
.kva-tool .kv-go { color: #fff; background: rgba(255, 255, 255, .1); }
.kva-tool:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .45), 0 22px 44px -26px rgba(60, 20, 120, .7); }
.kva-tool:hover::before { transform: scale(1.2); }
.kva-tool:hover .kv-go { background: var(--acc); }
.kva-tool:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
@media (max-width: 760px) { .kva-tool-list { grid-template-columns: minmax(0, 1fr); } .kva-tool { padding: 18px 54px 18px 16px; gap: 14px; } }
@media (prefers-reduced-motion: reduce) { .kva-tool, .kva-tool::before { transition: none; } .kva-tool:hover { transform: none; } }

/* ===== «Что нового» в шапке /docs/ (владелец 21.11: «надо повыше и как-то выделить», выбрана карточка в шапке) ===== */
.kva-nc { display: grid; gap: 14px; align-content: start; padding: 22px; border-radius: 22px; color: var(--scene-ink);
  background: linear-gradient(160deg, rgba(150, 80, 230, .24), rgba(255, 255, 255, .04) 58%); box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .3), 0 30px 60px -30px rgba(10, 4, 30, .8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.kva-nc-k { display: flex; align-items: center; gap: 8px; font: 500 11.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: #cfaeff; }
.kva-nc-k i { width: 8px; height: 8px; border-radius: 50%; background: #2fbf71; box-shadow: 0 0 0 3px rgba(47, 191, 113, .22); animation: kva-ping 2.4s ease-out infinite; }
@keyframes kva-ping { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 113, .55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(47, 191, 113, 0); } }
.kva-nc-main { display: flex; align-items: flex-start; gap: 18px; padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  transition: background-color .2s, box-shadow .2s; }
.kva-nc-main:hover { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .4); }
.kva-nc-date { flex: none; display: grid; justify-items: center; align-content: center; width: 84px; height: 84px; border-radius: 18px; color: #fff; background: var(--acc);
  box-shadow: 0 14px 30px -14px rgba(150, 80, 230, .9); }
.kva-nc-date b { font: 750 38px/1 var(--fh); letter-spacing: -0.04em; }
.kva-nc-date span { margin-top: 5px; font: 500 10.5px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.kva-nc-t { display: grid; gap: 8px; min-width: 0; }
.kva-nc-t b { font: 650 18px/1.3 var(--fh); letter-spacing: -0.01em; color: #fff; }
.kva-nc .kv-badge.new { color: #9ff0c2; background: rgba(47, 191, 113, .16); }
.kva-nc-list { list-style: none; margin: 0; padding: 0; display: grid; }
.kva-nc-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--scene-line); }
.kva-nc-list time { font: 500 12.5px/1.3 var(--m); color: #cfaeff; }
.kva-nc-list b { font: 500 14px/1.4 var(--f); color: var(--scene-ink); }
.kva-nc-list a:hover b { color: #fff; }
.kva-nc .kv-more { color: #dcc8ff; }
@media (min-width: 1000px) {
  .kv-hero-news .wrap { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 56px; }
  .kv-hero-news .wrap > * { grid-column: 1; }
  .kv-hero-news .wrap > .kva-nc { grid-column: 2; grid-row: 2 / span 5; align-self: center; }
}
@media (max-width: 999px) { .kva-nc { margin-block: 4px 6px; } }
@media (max-width: 640px) {
  .kva-nc { padding: 14px; gap: 10px; border-radius: 18px; }
  .kva-nc-main { padding: 12px; gap: 14px; }
  .kva-nc-date { width: 64px; height: 64px; border-radius: 14px; } .kva-nc-date b { font-size: 28px; }
  .kva-nc-t b { font-size: 16px; }
  .kva-nc-list { display: none; }
}
/* Короткий экран телефона (360×640, 320×568, 375×667 с панелями браузера): поиск должен попасть в первый экран вместе с карточкой.
   Описание под заголовком прячем, на узких экранах карточку ужимаем: дата меньше, заголовок выпуска не длиннее трёх строк. */
@media (max-width: 640px) and (max-height: 760px) {
  .kv-hero-news .sub { display: none; }
}
@media (max-width: 400px) and (max-height: 760px) {
  .kva-nc { gap: 8px; }
  .kva-nc-main { padding: 10px; gap: 12px; }
  .kva-nc-date { width: 52px; height: 52px; border-radius: 12px; } .kva-nc-date b { font-size: 23px; } .kva-nc-date span { margin-top: 3px; font-size: 9.5px; }
  .kva-nc-t { gap: 6px; }
  .kva-nc-t b { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .kva-nc-k i { animation: none; }
  .kva-nc-main { transition: none; }
}
@media (min-width: 1000px) { .kv-hero-news .kv-ex a:nth-child(n + 8) { display: none; } }

/* ---- x-landings.css ---- */
/* Лендинги товарных групп и страницы для аудиторий (tools/routes/landings.py): разметка лендингов WordPress в языке главной.
   Всё внутри main.ld, цвета только из токенов подхода 1 (p1.css), поэтому светлая и тёмная темы работают сами. */

.ld { --ld-ok: #0f8a5a; --ld-ok-bg: rgba(15, 154, 100, .12); --ld-warn: #a15c00; --ld-warn-bg: rgba(245, 158, 11, .15); --ld-bad: #d43c41; --ld-gap: 14px;
  --ld-check: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12.5l4.5 4.5L19 7.5"/></svg>');
  --ld-x: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.2" stroke-linecap="round"><path d="M7 7l10 10M17 7L7 17"/></svg>'); }
:root[data-theme="dark"] .ld { --ld-ok: #3ccb8f; --ld-warn: #f0b44c; --ld-bad: #ff6b70; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ld { --ld-ok: #3ccb8f; --ld-warn: #f0b44c; --ld-bad: #ff6b70; } }

/* текст внутри разделов */
.ld h3 { font: 650 18px/1.3 var(--fh); letter-spacing: -0.01em; }
.ld strong, .ld b { font-weight: 650; }
.ld :is(p, .pain__q, .pain__a, .ld-a, .tmtrs li, .codes-card li) a:not(.btn) { color: var(--acc-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ld :is(p, .pain__q, .pain__a, .ld-a, .tmtrs li, .codes-card li) a:not(.btn):hover { text-decoration-color: currentColor; }
.ld .h2 em { font-style: normal; color: var(--acc-text); }
.ld .sub + .sub { margin-top: 10px; }
.ld .btn .ic { width: 17px; height: 17px; }

/* ---------- первый экран ---------- */
.ld-hero .hero-dots { top: 0; }
.ld-hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 28px 56px; position: relative; z-index: 1; }
.ld-hero .hero-l { gap: 18px; }
.ld-hero .crumbs { color: var(--scene-ink-2); margin-bottom: 14px; }
.ld-hero .crumbs a:hover { color: var(--scene-ink); }
.ld-hero h1 { font: 750 clamp(36px, 4.4vw, 60px)/1.02 var(--fh); letter-spacing: -0.04em; max-width: 16ch; }
.ld-hero h1 em { font-style: normal; color: #cfaeff; }
.ld-hero .lead { max-width: 54ch; }
.ld-hero .lead strong { color: var(--scene-ink); }
.ld-hero .cta-btns { margin-top: 6px; }
.ld-hero .btn-g, .ld-end .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.ld-hero .btn-g:hover, .ld-end .btn-g:hover { background: rgba(255, 255, 255, .07); }
.ld-note { font-size: 13.5px; color: var(--scene-ink-2); }
.ld-chips { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 9px 26px; margin-top: 4px; font-size: 14.5px; color: var(--scene-ink-2); }
.ld-chips li { display: flex; gap: 9px; align-items: flex-start; }
.ld-chips .ic { width: 16px; height: 16px; color: #cfaeff; margin-top: 3px; }

/* окно кабинета справа: данные со страницы */
.ld-vis { position: relative; padding: 30px 0 0; }
.ld .uicard { position: relative; background: var(--res-bg); color: var(--res-ink); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--res-line), 0 40px 90px -36px rgba(8, 4, 30, .75); }
.ld .uicard__top { display: flex; align-items: center; gap: 6px; padding: 13px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--res-ink) 3%, transparent); }
.ld .uicard__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ld .uicard__title { margin-left: 8px; font: 500 12px/1 var(--m); color: var(--res-muted); letter-spacing: .02em; }
.ld .uirow { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 15px 16px; border-bottom: 1px solid var(--line); }
.ld .uithumb { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; font-size: 20px; background: var(--res-chip); }
.ld .uirow__name { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.ld .uirow__meta { font: 500 12px/1.4 var(--m); color: var(--res-muted); margin-top: 3px; }
.ld .uirow__meta b { color: var(--res-ink); font-weight: 600; }
.ld .uirow__status { font: 600 12px/1 var(--f); padding: 7px 10px; border-radius: 999px; white-space: nowrap; }
.ld .st-ok { color: var(--ld-ok); background: var(--ld-ok-bg); }
.ld .st-spin { color: var(--acc-text); background: var(--acc-soft); }
.ld .st-wait { color: var(--ld-warn); background: var(--ld-warn-bg); }
.ld .uicard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.ld .uicard__foot svg { width: 38px; height: 38px; color: var(--res-ink); }
.ld .hero__badge { position: absolute; right: -14px; top: 0; z-index: 2; display: grid; gap: 2px; padding: 12px 15px; border-radius: 14px; background: var(--acc); color: #fff; box-shadow: 0 0 0 6px rgba(150, 80, 230, .18), 0 18px 40px -18px rgba(0, 0, 0, .6); max-width: 190px; }
.ld .hero__badge b { font: 700 22px/1 var(--fh); letter-spacing: -0.02em; }
.ld .hero__badge span { font-size: 12.5px; line-height: 1.3; opacity: .88; }

/* сроки внизу первого экрана */
.ld-dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--scene-line); position: relative; z-index: 1; }
.ld-dl .dl-card { padding: 24px 24px 30px; border-left: 1px solid var(--scene-line); }
.ld-dl .dl-card:first-child { border-left: 0; padding-left: 0; }
.ld-dl .dl-card__label { display: flex; align-items: center; gap: 8px; font: 500 11.5px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--scene-ink-2); }
.ld-dl .dl-card--hot .dl-card__label { color: #d6bdff; }
.ld-dl .dl-card--hot .dl-card__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #b98cff; box-shadow: 0 0 0 4px rgba(185, 140, 255, .2); flex: none; }
.ld-dl .dl-card__date { font: 650 19px/1.25 var(--fh); color: var(--scene-ink); margin-top: 10px; }
.ld-dl .dl-card__desc { font-size: 14px; color: var(--scene-ink-2); margin-top: 8px; max-width: 46ch; }

/* полоса разделов страницы */
.ld-nav { position: sticky; top: 64px; z-index: 15; background: color-mix(in srgb, var(--bg) 86%, transparent); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid var(--line); }
.ld-nav-in { display: flex; align-items: center; gap: 16px; height: 54px; }
.ld-nav ul { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
.ld-nav ul::-webkit-scrollbar { display: none; }
.ld-nav ul a { display: block; padding: 8px 11px; border-radius: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.ld-nav ul a:hover { color: var(--ink); background: var(--hover); }
.ld-nav ul a[aria-current] { color: var(--acc-text); background: var(--acc-soft); }
.ld-nav-ask { flex: none; display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 15px; border-radius: 10px; font: 600 14px/1 var(--f); white-space: nowrap; color: var(--acc-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc-text) 42%, transparent); transition: background-color .15s ease, box-shadow .15s ease; }
.ld-nav-ask:hover { background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc-text); }
.ld-nav-ask:focus-visible { outline: 2px solid var(--acc-text); outline-offset: 2px; }
.ld [id] { scroll-margin-top: 132px; }

/* ---------- разделы ---------- */
.ld .section { padding-block: 88px 0; }
.ld .ld-dark { background: var(--scene-bg); color: var(--scene-ink); margin-top: 88px; padding-block: 88px; position: relative; overflow: hidden; }
.ld .ld-dark::before { content: ""; position: absolute; inset: auto -10% -40% 30%; height: 90%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.ld .ld-dark > .wrap { position: relative; }
.ld .ld-dark .eyebrow, .ld .ld-dark .sub { color: var(--scene-ink-2); }
.ld .ld-dark .h2 em { color: #cfaeff; }
.ld .ld-dark + .section { padding-top: 88px; }
.ld-act { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 30px; }

/* кому подходит */
.ld .aud-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .aud { display: grid; gap: 12px; align-content: start; padding: 26px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .aud .ld-ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--scene-bg); color: #dcc8ff; }
.ld .aud .ld-ic .ic { width: 22px; height: 22px; }
.ld .aud h3 { font-size: 19px; margin-top: 4px; }
.ld .aud p { color: var(--ink-2); font-size: 15px; }

/* боли */
.ld .pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .pain { display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .pain__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; }
.ld .pain__num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); }
.ld .pain__q { font-size: 15.5px; line-height: 1.45; }
.ld .pain__a { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.ld .pain__a .tag { display: block; width: max-content; margin-bottom: 6px; font: 600 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--acc-text); background: none; padding: 0; }
.ld .pain__a strong { color: var(--ink); }

.ld .lawnote { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px; align-items: start; margin-top: var(--ld-gap); padding: 24px; border-radius: 18px; background: color-mix(in srgb, var(--acc) 5%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, var(--line)); }
.ld .lawnote .ld-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .lawnote .ld-ic .ic { width: 22px; height: 22px; }
.ld .lawnote h3 { font-size: 17px; }
.ld .lawnote p { color: var(--ink-2); font-size: 15px; margin-top: 6px; max-width: 92ch; }
.ld .lawnote strong { color: var(--ink); }

/* товары и коды */
.ld .codes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .codes-card { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .codes-card h3 { font-size: 17.5px; }
.ld .codes-card__date { display: inline-block; margin-top: 10px; font: 600 11px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--acc-text); background: var(--acc-soft); padding: 6px 8px; border-radius: 7px; }
.ld .codes-card__date.ld-now { color: var(--ld-ok); background: var(--ld-ok-bg); }
.ld .codes-card > p { color: var(--ink-2); font-size: 14.5px; }
.ld .codes-card > p b { color: var(--acc-text); }
.ld .codes-card__codes { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.ld .codes-row { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 10px; }
.ld .codes-row b { font: 600 11px/1.6 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ld .codes-row span { font: 500 12.5px/1.6 var(--m); color: var(--ink); overflow-wrap: anywhere; }
.ld .trust-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); max-width: 100ch; }
.ld .codes-cta { display: flex; align-items: center; justify-content: space-between; gap: 14px 20px; flex-wrap: wrap; margin-top: 20px; padding: 18px 18px 18px 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .codes-cta > span { font-weight: 600; font-size: 16.5px; }

/* видео и путь по шагам — тёмная сцена */
.ld .media-card .sub { max-width: 64ch; }
.ld .walk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 36px; }
.ld .walk__steps { counter-reset: walk; border-top: 1px solid var(--scene-line); }
.ld .walk__step { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--scene-line); }
.ld .walk__step b { counter-increment: walk; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--scene-chip); color: #d6bdff; font: 600 12px/1 var(--m); }
.ld .walk__step b::before { content: counter(walk); }
.ld .walk__step p { font-size: 15px; color: var(--scene-ink); }
.ld .walk__step strong { font-weight: 600; }
.ld .walk__step span { color: var(--scene-ink-2); }
.ld .video-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--scene-line), 0 30px 70px -30px rgba(0, 0, 0, .7); }
.ld .video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ld .video-cap, .ld .tmtrs__cap { margin-top: 12px; font: 500 12px/1.4 var(--m); color: var(--muted); }
.ld .ld-dark .video-cap { color: var(--scene-ink-2); }

/* дорожная карта */
.ld .rm-group-title { display: flex; align-items: center; gap: 9px; margin-top: 34px; font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ld .rm-check { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; color: var(--ld-ok); background: var(--ld-ok-bg); font-size: 11px; }
.ld .roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: var(--ld-gap); margin-top: 14px; }
.ld .road-card { position: relative; display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .road-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ld .road-head .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.ld .road-card .badge { font: 500 11.5px/1 var(--m); color: var(--muted); background: var(--bg); padding: 6px 8px; border-radius: 7px; box-shadow: none; }
.ld .road-card .date { font: 700 22px/1.1 var(--fh); letter-spacing: -0.02em; margin-top: 4px; }
.ld .road-card p { font-size: 14.5px; color: var(--ink-2); }
.ld .road-card p b { color: var(--ink); font-weight: 600; }
.ld .roadmap-past .road-card { background: transparent; }
.ld .roadmap-past .road-card .date { color: var(--ink-2); }
.ld .r-done .dot { background: var(--ld-ok); }
.ld .r-now { background: color-mix(in srgb, var(--acc) 6%, var(--card)); box-shadow: inset 0 0 0 1.5px var(--acc); margin-top: 10px; }
.ld .r-now .dot { background: var(--acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 22%, transparent); }
.ld .r-now .date { color: var(--acc-text); }
.ld .rm-flag { position: absolute; top: -11px; left: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; background: var(--acc); color: #fff; font: 600 11px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; }
.ld .rm-flag-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.ld .rm-divider { display: flex; align-items: center; gap: 14px; margin-top: 30px; }
.ld .rm-divider-line { flex: 1; height: 1px; background: var(--line); }
.ld .rm-divider-label { font: 500 11.5px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* шаги */
.ld .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .step { padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .step__n { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); }
.ld .step h3 { margin-top: 16px; font-size: 17.5px; }
.ld .step p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* цифры — тёмная сцена */
.ld .stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 40px; border-top: 1px solid var(--scene-line); }
.ld .stat { padding: 28px 24px 30px; border-left: 1px solid var(--scene-line); border-bottom: 1px solid var(--scene-line); }
.ld .stat:nth-child(3n + 1) { border-left: 0; padding-left: 0; }
.ld .stat:nth-last-child(-n + 3):nth-child(3n + 1), .ld .stat:nth-last-child(-n + 3):nth-child(3n + 1) ~ .stat { border-bottom: 0; }
.ld .stat > b { display: block; font: 700 clamp(34px, 3.6vw, 50px)/1 var(--fh); letter-spacing: -0.035em; color: var(--scene-ink); font-variant-numeric: tabular-nums; }
.ld .stat > b:has(br) { font-size: clamp(22px, 2.3vw, 30px); line-height: 1.12; letter-spacing: -0.02em; }
.ld .stat .suf { font-size: .5em; letter-spacing: -0.01em; color: #cfaeff; margin-left: 2px; }
.ld .stat > span { display: block; margin-top: 12px; font-size: 14px; color: var(--scene-ink-2); max-width: 30ch; }

/* почему мы */
.ld .why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .why { padding: 26px 24px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.ld .why:nth-child(3n + 1) { border-left: 0; }
.ld .why:nth-child(-n + 3) { border-top: 0; }
.ld .why .ld-ic { color: var(--acc-text); }
.ld .why .ld-ic .ic { width: 26px; height: 26px; }
.ld .why h3 { margin-top: 14px; font-size: 17px; }
.ld .why p { margin-top: 8px; color: var(--ink-2); font-size: 14.5px; }

/* сравнение с Честным ЗНАКом */
.ld .cmp-table { margin-top: 32px; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .cmp-row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1.2fr); border-top: 1px solid var(--line); }
.ld .cmp-row:first-child { border-top: 0; }
.ld .cmp-cell { padding: 15px 20px; font-size: 15px; }
.ld .cmp-cell--label { font-weight: 600; }
.ld .cmp-cell--zn { color: var(--ink-2); }
.ld .cmp-cell--tm { font-weight: 500; background: color-mix(in srgb, var(--acc) 5%, transparent); }
.ld .cmp-row:not(.cmp-row--head) :is(.cmp-cell--zn, .cmp-cell--tm) { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; }
.ld .cmp-row:not(.cmp-row--head) :is(.cmp-cell--zn, .cmp-cell--tm)::before { content: ""; width: 16px; height: 16px; margin-top: 3px; background: currentColor; -webkit-mask: var(--ld-check) center / contain no-repeat; mask: var(--ld-check) center / contain no-repeat; }
.ld .cmp-row:not(.cmp-row--head) .cmp-cell--zn::before { color: var(--ld-bad); -webkit-mask-image: var(--ld-x); mask-image: var(--ld-x); }
.ld .cmp-row:not(.cmp-row--head) .cmp-cell--tm::before { color: var(--acc-text); }
.ld .cmp-row--head .cmp-cell { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ld .cmp-row--head .cmp-cell--tm { color: var(--acc-text); }
.ld .cmp-bigvol { display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; margin-top: var(--ld-gap); padding: 22px 26px; border-radius: 18px; background: var(--scene-bg); color: var(--scene-ink); }
.ld .cmp-bigvol b { font: 650 19px/1.25 var(--fh); }
.ld .cmp-bigvol span { color: var(--scene-ink-2); font-size: 14.5px; }

/* штрафы */
.ld .fines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .fine { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .fine__who { font: 500 11.5px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ld .fine__sum { font: 700 clamp(24px, 2.4vw, 30px)/1.1 var(--fh); letter-spacing: -0.025em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.ld .fine p { color: var(--ink-2); font-size: 14.5px; }
.ld .fine__law { justify-self: start; margin-top: 6px; font: 500 12px/1 var(--m); color: var(--muted); padding: 6px 8px; border-radius: 7px; background: var(--bg); }
.ld .fine--crim { grid-column: 1 / -1; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; background: color-mix(in srgb, var(--ld-bad) 6%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ld-bad) 26%, var(--line)); }
.ld .fine--crim .ld-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--ld-bad); background: color-mix(in srgb, var(--ld-bad) 12%, transparent); }
.ld .fine--crim .ld-ic .ic { width: 22px; height: 22px; }
.ld .fine--crim p { color: var(--ink); font-size: 15px; }

/* АТК */
.ld .atk { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 36px; align-items: center; margin-top: 16px; padding: 34px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .atk h3 { font: var(--h-w) clamp(26px, 2.8vw, 36px)/1.08 var(--fh); letter-spacing: var(--h-ls); }
.ld .atk h3 em { font-style: normal; color: var(--acc-text); }
.ld .atk p { margin-top: 12px; color: var(--ink-2); font-size: 15.5px; }
.ld .atk p strong { color: var(--ink); }
.ld .atk__code { display: grid; gap: 12px; padding: 30px 28px; border-radius: 18px; background: var(--scene-bg); color: var(--scene-ink); }
.ld .atk__code code { font: 500 clamp(15px, 1.5vw, 19px)/1.4 var(--m); letter-spacing: .05em; overflow-wrap: anywhere; color: #fff; }
.ld .atk__code span { font: 500 11.5px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #cfaeff; }

/* обучающие туры */
.ld .tmtrs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; margin-top: 32px; }
.ld .tmtrs ul { border-top: 1px solid var(--line); margin-bottom: 24px; }
.ld .tmtrs li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ld .tmtrs li::before { content: ""; width: 17px; height: 17px; margin-top: 3px; background: var(--acc-text); -webkit-mask: var(--ld-check) center / contain no-repeat; mask: var(--ld-check) center / contain no-repeat; }
.ld .tmtrs video { width: 100%; height: auto; border-radius: 16px; background: #000; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(16, 8, 50, .45); }

/* тарифы главной: якорь лендинга */
.ld .pricing .sub + .sub { margin-top: 10px; }

/* вопросы */
.ld-faq .ld-a p { color: var(--ink-2); padding-bottom: 18px; max-width: 68ch; }
.ld-faq .ld-a strong { color: var(--ink); }

/* финал: призыв страницы и блок «Попробовать бесплатно» на месте формы */
.ld-end { padding-block: 88px 96px; }
.ld-end .cta-box { align-items: start; }
.ld-end .cta-box > div:first-child p { max-width: 58ch; }
.ld-end .ld-chips { margin-top: 22px; position: relative; }
.ld-lead { padding: 26px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.ld-lead h3 { color: #fff; font-size: 19px; }
.ld-lead p { margin-top: 8px !important; font-size: 14.5px; }
.ld-lead .cta-btns { margin-top: 18px; gap: 10px; }

/* ---------- особые разделы лендингов ---------- */
.ld h4 { font: 650 16.5px/1.3 var(--fh); letter-spacing: -0.01em; margin: 0; }
.ld .tlink { display: inline-flex; align-items: center; gap: 6px; color: var(--acc-text); font-weight: 550; font-size: 15px; }
.ld .tlink:hover { text-decoration: underline; text-underline-offset: 3px; }
.ld .ld-dark .tlink, .ld .media-card .tlink { color: #cfaeff; }
.ld h3.h-lead { font: var(--h-w) clamp(24px, 2.6vw, 32px)/1.1 var(--fh); letter-spacing: var(--h-ls); margin-top: 12px; }
.ld h3.h-lead em { font-style: normal; color: #cfaeff; }
.ld .pre { font-size: .42em; letter-spacing: 0; font-weight: 600; color: var(--scene-ink-2); vertical-align: .55em; margin-right: 2px; }

/* медиакарта внутри светлого раздела (приложение для ТСД, видео) — тёмная карточка */
.ld .section:not(.ld-dark) .media-card { margin-top: 40px; padding: 40px; border-radius: 24px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.ld .section:not(.ld-dark) .media-card .eyebrow, .ld .section:not(.ld-dark) .media-card .sub, .ld .section:not(.ld-dark) .media-card .sub-lead { color: var(--scene-ink-2); }
.ld .media-card .sub-lead { margin-top: 12px; max-width: 64ch; }
.ld .tsd-list { display: grid; border-top: 1px solid var(--scene-line); }
.ld .tsd-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--scene-line); font-size: 15px; color: var(--scene-ink); }
.ld .tsd-list li::before { content: ""; width: 17px; height: 17px; margin-top: 3px; background: #cfaeff; -webkit-mask: var(--ld-check) center / contain no-repeat; mask: var(--ld-check) center / contain no-repeat; }
.ld .media-card .agg-cta { margin-top: 22px; }
.ld .media-card .video-embed + .video-cap + .video-embed { margin-top: 18px; }

/* метки «кого касается» */
.ld :is(.who-chips, .ost-who) { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ld :is(.who-chips, .ost-who) span { font-size: 14px; padding: 8px 12px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }

/* полный переход и переход в части УПД */
.ld .trace-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 24px; }
.ld .trace-card { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .trace-card--full { box-shadow: inset 0 0 0 1.5px var(--acc); background: color-mix(in srgb, var(--acc) 4%, var(--card)); }
.ld .trace-card__badge { justify-self: start; font: 600 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; color: var(--acc-text); background: var(--acc-soft); }
.ld .trace-card--part .trace-card__badge { color: var(--ink-2); background: var(--bg); }
.ld .trace-card h3 { font-size: 19px; }
.ld .trace-card__sub { color: var(--muted); font-size: 14.5px; }
.ld .trace-card ul { display: grid; gap: 8px; margin-top: 6px; }
.ld .trace-card li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 15px; }
.ld .trace-card li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; background: var(--acc-text); -webkit-mask: var(--ld-check) center / contain no-repeat; mask: var(--ld-check) center / contain no-repeat; }

/* сроки и отсчёт в светлом разделе */
.ld .section .deadlines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 24px; }
.ld .section .dl-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .section .dl-card__label { font: 500 11.5px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ld .section .dl-card__date { font: 700 21px/1.15 var(--fh); letter-spacing: -0.02em; }
.ld .section .dl-card__desc { font-size: 14.5px; color: var(--ink-2); }
.ld .section .dl-card--hot { background: var(--scene-bg); color: var(--scene-ink); box-shadow: none; }
.ld .section .dl-card--hot .dl-card__label { color: #d6bdff; }
.ld .section .dl-card--hot .dl-card__desc { color: var(--scene-ink-2); }
.ld .cd-wrap { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--scene-line); }
.ld .cd-label { font: 500 11px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--scene-ink-2); }
.ld .countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.ld .cd-unit { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.ld .cd-unit b { font: 700 22px/1 var(--fh); color: #fff; font-variant-numeric: tabular-nums; }
.ld .cd-unit span { font: 500 10.5px/1 var(--m); color: var(--scene-ink-2); text-transform: uppercase; letter-spacing: .04em; }
.ld-dl .cd-wrap { border-top-color: var(--scene-line); }

/* агрегация */
.ld .agg-stage { display: grid; gap: var(--ld-gap); margin-top: 32px; }
.ld .agg-chain { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: stretch; padding: 22px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); }
.ld .agg-node { display: grid; gap: 8px; align-content: start; padding: 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--scene-line); }
.ld .agg-node--top { background: color-mix(in srgb, var(--acc) 30%, transparent); box-shadow: inset 0 0 0 1px rgba(205, 170, 255, .4); }
.ld .agg-node__ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #dcc8ff; }
.ld .agg-node__ico .ic { width: 20px; height: 20px; }
.ld .agg-node__name { font-weight: 650; font-size: 15.5px; line-height: 1.3; margin-top: 4px; }
.ld .agg-node__meta { font-size: 13.5px; color: var(--scene-ink-2); }
.ld .agg-arrow { align-self: center; color: #b98cff; }
.ld .agg-arrow .ic { width: 20px; height: 20px; }
.ld .agg-punch { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 28px; align-items: center; padding: 24px 28px; border-radius: 18px; background: color-mix(in srgb, var(--acc) 6%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, var(--line)); }
.ld .agg-punch__big { font: 750 clamp(26px, 2.8vw, 36px)/1 var(--fh); letter-spacing: -0.035em; color: var(--acc-text); white-space: nowrap; }
.ld .agg-punch__txt { font-size: 15.5px; color: var(--ink-2); }
.ld .agg-punch__txt b { color: var(--ink); }
.ld .agg-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ld-gap); }
.ld .agg-feat { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .agg-feat .ld-ic { color: var(--acc-text); }
.ld .agg-feat .ld-ic .ic { width: 24px; height: 24px; }
.ld .agg-feat h4 { margin-top: 6px; }
.ld .agg-feat p { font-size: 14.5px; color: var(--ink-2); }
.ld .agg-cta { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 18px; }

/* ролики карточками: загружаются по нажатию */
.ld .ld-vids { margin-top: 8px; }
.ld .ld-vids-t { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ld .ld-vids-g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 12px; }
.ld .ld-vid { position: relative; display: grid; align-content: space-between; gap: 18px; min-height: 150px; padding: 18px; border-radius: 16px; background: var(--scene-bg); color: var(--scene-ink); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.ld .ld-vid:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -22px rgba(16, 8, 50, .6); }
.ld .ld-vid-play { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 6px rgba(150, 80, 230, .2); }
.ld .ld-vid-play .ic { width: 22px; height: 22px; }
.ld .ld-vid-cap { font-size: 14.5px; font-weight: 550; line-height: 1.35; }
.ld .ld-vid.on { padding: 0; aspect-ratio: 16 / 9; min-height: 0; grid-column: 1 / -1; }
.ld .ld-vid.on iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* способы УПД */
.ld .upd-ways { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .upd-way { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .upd-way__n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); }
.ld .upd-way h4 { margin-top: 8px; }
.ld .upd-way p { font-size: 14px; color: var(--ink-2); }
.ld .upd-combine { display: flex; gap: 14px; align-items: flex-start; margin-top: var(--ld-gap); padding: 20px 24px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.ld .upd-combine > span { display: none; }
.ld .upd-combine b { color: var(--ink); }
.ld .steps.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* перемаркировка и прочие мини-карточки */
.ld .ost-mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--ld-gap); margin-top: 28px; }
.ld .ost-mini__card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.ld .ost-mini__card b, .ld .ost-mini__card strong { color: var(--ink); }
.ld .aud-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ld .grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 28px; }
.ld .codes-src, .ld .pf-sub { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* описание остатков через Excel */
.ld .xls { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 32px; align-items: start; margin-top: 32px; }
.ld .xls__card { border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -40px rgba(16, 8, 50, .4); }
.ld .xls__bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font: 500 12.5px/1.3 var(--m); color: var(--muted); border-bottom: 1px solid var(--line); }
.ld .xls__bar i { font-style: normal; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #1d7a45; color: #fff; font: 700 12px/1 var(--f); }
.ld .xls__scroll { overflow-x: auto; }
.ld .xls__grid { width: 100%; border-collapse: collapse; font-size: 14px; }
.ld .xls__grid th, .ld .xls__grid td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ld .xls__grid th { font: 500 11.5px/1.3 var(--m); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: color-mix(in srgb, var(--ink) 3%, transparent); }
.ld .xls__grid td:last-child, .ld .xls__grid th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.ld .xls__grid .c-ok { color: var(--ld-ok); font-weight: 600; border-bottom: 0; }
.ld .ofeats { display: grid; gap: 10px; }
.ld .ofeat { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .ofeat__ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: var(--acc-text); background: var(--acc-soft); }
.ld .ofeat__ic svg { width: 20px; height: 20px; }
.ld .ofeat h3 { font-size: 16px; }
.ld .ofeat p { margin-top: 4px; font-size: 14.5px; color: var(--ink-2); }

/* мини-проверка обязательности в первом экране (вместо окна кабинета) */
.ld .tmchk { padding-bottom: 18px; }
.ld .tmchk__lead { padding: 16px 16px 0; font-size: 15px; color: var(--res-ink); }
.ld .tmchk__form { display: flex; gap: 6px; margin: 14px 16px 0; padding: 6px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); }
.ld .tmchk__input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; padding: 0 10px; font: 500 15px/1 var(--f); color: var(--res-ink); }
.ld .tmchk__input::placeholder { color: var(--res-muted); font-weight: 400; }
.ld .tmchk__form .btn { height: 40px; }
.ld .tmchk__examples { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 16px 0; font-size: 13px; color: var(--res-muted); }
.ld .tmchk__examples a { padding: 5px 9px; border-radius: 8px; background: var(--res-chip); color: var(--res-ink); }
.ld .tmchk__examples a:hover { color: var(--acc-text); }

/* ---------- адаптив ---------- */
@media (max-width: 1100px) {
  .ld .pains, .ld .steps, .ld .fines, .ld .agg-feats, .ld .ld-vids-g, .ld .aud-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .upd-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ld .agg-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .agg-arrow { display: none; }
  .ld .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .why:nth-child(n) { border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .ld .why:nth-child(2n + 1) { border-left: 0; }
  .ld .why:nth-child(-n + 2) { border-top: 0; }
}
@media (max-width: 980px) {
  .ld-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 20px 40px; }
  .ld-vis { max-width: 560px; }
  .ld-dl { grid-template-columns: minmax(0, 1fr); }
  .ld-dl .dl-card { border-left: 0; padding: 18px 0; border-top: 1px solid var(--scene-line); }
  .ld-dl .dl-card:first-child { border-top: 0; }
  .ld .walk, .ld .tmtrs, .ld .atk, .ld .xls, .ld .trace-split { grid-template-columns: minmax(0, 1fr); }
  .ld .section .deadlines { grid-template-columns: minmax(0, 1fr); }
  .ld .section:not(.ld-dark) .media-card { padding: 28px 22px; }
  .ld .agg-punch { grid-template-columns: minmax(0, 1fr); }
  .ld .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .stat:nth-child(n) { border-left: 1px solid var(--scene-line); padding-left: 24px; border-bottom: 1px solid var(--scene-line); }
  .ld .stat:nth-child(2n + 1) { border-left: 0; padding-left: 0; }
  .ld .stat:nth-last-child(-n + 2):nth-child(2n + 1), .ld .stat:nth-last-child(-n + 2):nth-child(2n + 1) ~ .stat { border-bottom: 0; }
}
@media (max-width: 640px) {
  .ld .section { padding-top: 64px; }
  .ld .ld-dark { margin-top: 64px; padding-block: 64px; }
  .ld .ld-dark + .section { padding-top: 64px; }
  .ld-end { padding-block: 64px 72px; }
  .ld-hero h1 { font-size: clamp(32px, 9vw, 40px); }
  .ld-chips { grid-template-columns: minmax(0, 1fr); }
  .ld-hero .cta-btns .btn { flex: 1 1 100%; }
  .ld-vis { padding: 26px 0 0; }
  .ld .hero__badge { position: relative; right: auto; display: inline-grid; margin-bottom: 12px; padding: 10px 12px; max-width: none; }
  .ld-vis { padding-top: 0; }
  .ld .hero__badge b { font-size: 19px; }
  .ld .uirow { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
  .ld .uithumb { width: 36px; height: 36px; font-size: 18px; }
  .ld .uirow__status { grid-column: 2; justify-self: start; }
  .ld-nav { top: 64px; }
  .ld-nav-in { height: 48px; }
  .ld-nav-ask { display: none; }
  .ld .pains, .ld .steps, .ld .steps.is-2col, .ld .fines, .ld .why-grid, .ld .agg-feats, .ld .ld-vids-g, .ld .aud-grid--3, .ld .grid-2, .ld .upd-ways, .ld .agg-chain { grid-template-columns: minmax(0, 1fr); }
  .ld .ld-vid { min-height: 120px; }
  .ld .agg-punch__big { white-space: normal; }
  .ld .why:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .ld .why:first-child { border-top: 0; }
  .ld .fine--crim { grid-template-columns: minmax(0, 1fr); }
  .ld .cmp-row:not(.cmp-row--head) { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .ld .cmp-row--head { display: none; }
  .ld .cmp-row:nth-child(2) { border-top: 0; }
  .ld .cmp-cell { padding: 8px 16px; }
  .ld .cmp-cell--label { padding-top: 12px; }
  .ld .cmp-cell--tm { background: none; }
  .ld .stats { grid-template-columns: minmax(0, 1fr); }
  .ld .stat:nth-child(n) { border-left: 0; padding: 22px 0; border-bottom: 1px solid var(--scene-line); }
  .ld .stat:last-child { border-bottom: 0; }
  .ld .atk { padding: 22px; }
  .ld .atk__code { padding: 22px 20px; }
  .ld .atk__code code { font-size: 14px; }
  .ld .codes-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ld .codes-cta { padding: 18px; }
  .ld .codes-cta .btn { width: 100%; white-space: normal; height: auto; min-height: 46px; padding-block: 10px; text-align: center; }
  .ld .lawnote { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  .ld-lead { padding: 20px; }
  .ld-lead .cta-btns .btn { flex: 1 1 auto; }
}

/* таблицы и обычные абзацы внутри разделов */
.ld .ld-tbl { margin-top: 24px; border-radius: 16px; overflow-x: auto; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .ld-tbl table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ld .ld-tbl th, .ld .ld-tbl td { padding: 12px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.ld .ld-tbl thead th { border-top: 0; font: 500 11.5px/1.3 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ld .ld-tbl tbody th { font-weight: 600; }
.ld .ld-tbl td { color: var(--ink-2); }
.ld .ld-dark .ld-tbl { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--scene-line); }
.ld .ld-dark .ld-tbl th, .ld .ld-dark .ld-tbl td { border-color: var(--scene-line); color: var(--scene-ink-2); }
.ld .section .wrap > p:not(.eyebrow):not(.sub):not(.trust-note):not(.codes-src):not(.pf-sub) { margin-top: 14px; max-width: 80ch; color: var(--ink-2); font-size: 15px; }
.ld .ld-dark .wrap > p:not(.eyebrow):not(.sub), .ld .media-card > p:not(.eyebrow):not(.sub):not(.sub-lead) { color: var(--scene-ink-2); margin-top: 14px; max-width: 80ch; }
@media (max-width: 640px) { .ld .ld-tbl table { min-width: 560px; } }
.ld-pre { font: 500 13px/1.4 var(--m); color: #d6bdff; }
.ld .ld-vis img.shot, .ld .ld-vis > img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--scene-line), 0 40px 90px -36px rgba(8, 4, 30, .75); }
.ld .devnote { margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--ink-2); max-width: 80ch; }

/* шаги с видео в светлом разделе: тёмный текст; в тёмной сцене и медиакарте — светлый */
.ld .section:not(.ld-dark) .walk__steps { border-top-color: var(--line); }
.ld .section:not(.ld-dark) .walk__step { border-bottom-color: var(--line); }
.ld .section:not(.ld-dark) .walk__step b { background: var(--acc-soft); color: var(--acc-text); }
.ld .section:not(.ld-dark) .walk__step p { color: var(--ink); }
.ld .section:not(.ld-dark) .walk__step span { color: var(--ink-2); }
.ld .section:not(.ld-dark) .media-card .walk__steps { border-top-color: var(--scene-line); }
.ld .section:not(.ld-dark) .media-card .walk__step { border-bottom-color: var(--scene-line); }
.ld .section:not(.ld-dark) .media-card .walk__step b { background: var(--scene-chip); color: #d6bdff; }
.ld .section:not(.ld-dark) .media-card .walk__step p { color: var(--scene-ink); }
.ld .section:not(.ld-dark) .media-card .walk__step span { color: var(--scene-ink-2); }
.ld .walk img.shot { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(16, 8, 50, .45); }

/* значки-SVG из разметки WordPress (без размеров) */
.ld :is([class*="__ico"], [class*="__ic"]) > svg:not(.ic) { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ld .lawnote:not(:has(.ld-ic)) { grid-template-columns: minmax(0, 1fr); }
.ld .lawnote > div > p + p { margin-top: 10px; }

/* весовой товар: шаги «как было → как стало», текст рядом со снимком, легенда табло */
.ld .story__steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .story__steps li { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .story__steps li[data-film-step="7"], .ld .story__steps li[data-film-step="9"] { box-shadow: inset 0 0 0 1.5px var(--acc); background: color-mix(in srgb, var(--acc) 4%, var(--card)); }
.ld .story__steps small { font: 500 11.5px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ld .story__steps li[data-film-step="7"] small, .ld .story__steps li[data-film-step="9"] small { color: var(--acc-text); }
.ld .story__steps h3 { font-size: 17px; }
.ld .story__steps p { font-size: 14.5px; color: var(--ink-2); }
.ld .two { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.ld .two--flip > :first-child { order: 2; }
.ld .two .txt > p:not(.eyebrow) { margin-top: 14px; color: var(--ink-2); font-size: 15.5px; }
.ld .two .txt h2 + p { margin-top: 16px; }
.ld .two img.shot, .ld .thumbs img { width: 100%; height: auto; border-radius: 16px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px rgba(16, 8, 50, .45); }
.ld .thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ld .thumbs img { border-radius: 10px; }
.ld .legend { display: grid; gap: 10px; margin-top: 18px; }
.ld .legend li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--ink-2); }
.ld .legend i { width: 18px; height: 18px; border-radius: 5px; margin-top: 2px; }
.ld .txt__after { color: var(--muted) !important; font-size: 14px !important; }
.ld .noteline { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 90ch; }
@media (max-width: 980px) {
  .ld .story__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ld .two--flip > :first-child { order: 0; }
}
@media (max-width: 640px) { .ld .story__steps { grid-template-columns: minmax(0, 1fr); } }

/* виды агрегации карточками */
.ld .vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .vcard { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .vcard__head { display: flex; align-items: center; gap: 14px; }
.ld .vcard__ico { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center; font-size: 22px; background: var(--acc-soft); }
.ld .vcard__head h3 { font-size: 19px; }
.ld .vcard__tag { display: block; margin-top: 3px; font: 500 12px/1.3 var(--m); color: var(--acc-text); }
.ld .vcard > p { font-size: 14.5px; color: var(--ink-2); }
.ld .vcard__video .ld-vid { min-height: 0; aspect-ratio: 16 / 9; grid-template-rows: 1fr auto; }
.ld .vcard__video .ld-vid.on { grid-column: auto; }
.ld .vcard__facts { display: grid; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ld .vrow { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.ld .vrow b { font: 600 11px/1.4 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ld .vrow span { font-size: 14.5px; color: var(--ink); }
.ld .vcard__link { margin-top: auto; }

/* площадки на странице маркетплейсов */
.ld .mp-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .mp-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .mp-card__badge { align-self: flex-start; font: 600 11px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; padding: 7px 9px; border-radius: 7px; color: var(--ld-ok); background: var(--ld-ok-bg); }
.ld .mp-card h3 { font: 700 26px/1.1 var(--fh); letter-spacing: -0.02em; }
.ld .mp-card__sub { font: 500 12.5px/1.4 var(--m); color: var(--muted); }
.ld .mp-card ul { display: grid; gap: 9px; margin: 4px 0 8px; }
.ld .mp-card li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 10px; font-size: 15px; color: var(--ink-2); }
.ld .mp-card li::before { content: ""; width: 16px; height: 16px; margin-top: 3px; background: var(--acc-text); -webkit-mask: var(--ld-check) center / contain no-repeat; mask: var(--ld-check) center / contain no-repeat; }
.ld .mp-card .btn { margin-top: auto; align-self: flex-start; }

/* прочее: строка кода, заголовки таблиц групп, ссылка на 1С, длинные крошки */
.ld .codeline { margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 13px/1.6 var(--m); overflow-wrap: anywhere; color: var(--ink); }
.ld .tt-h3 { display: flex; align-items: center; gap: 10px; margin-top: 34px; font-size: 18px; }
.ld .tt-badge { font: 600 11px/1 var(--m); letter-spacing: .05em; padding: 6px 8px; border-radius: 7px; color: var(--acc-text); background: var(--acc-soft); }
.ld .tt-note { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.ld .tt-ico { margin-right: 8px; }
.ld-see { margin-top: 56px; }
.ld-see p { padding: 16px 20px; border-radius: 14px; background: var(--card); box-shadow: inset 3px 0 0 var(--acc), inset 0 0 0 1px var(--line); font-size: 15px; color: var(--ink-2); }
.ld-see p strong { color: var(--ink); }
.ld-see p a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 3px; }
.ld-see + .ld-end { padding-top: 40px; }
.ld-hero .crumbs { flex-wrap: nowrap; min-width: 0; max-width: 100%; }
.ld-hero .crumbs > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 980px) { .ld .vgrid, .ld .mp-cards { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .ld .vrow { grid-template-columns: minmax(0, 1fr); gap: 2px; } .ld .mp-card { padding: 22px; } }

/* ---------- пачка 3: особые страницы ---------- */
.ld-hero-solo { grid-template-columns: minmax(0, 1fr); }
.ld-hero-solo .hero-l { max-width: 860px; }
.ld-hero-solo h1 { max-width: 22ch; }
.ld-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 4px; }
.ld-price span { font: 500 13px/1 var(--m); color: var(--scene-ink-2); }
.ld-price b { font: 750 clamp(28px, 3vw, 38px)/1 var(--fh); letter-spacing: -0.03em; color: #fff; }
.ld-price small { flex-basis: 100%; font-size: 13.5px; color: var(--scene-ink-2); }
.ld-route { display: grid; gap: 10px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--scene-line); }
.ld-route li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); }
.ld-route li b { color: #fff; font-weight: 650; }
.ld-route li span:not(.ld-route-ic) { grid-column: 2; color: var(--scene-ink-2); font-size: 14px; }
.ld-route li.ok { background: color-mix(in srgb, var(--acc) 34%, transparent); box-shadow: inset 0 0 0 1px rgba(205, 170, 255, .4); }
.ld-route-ic { grid-row: 1 / span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #dcc8ff; }
.ld-route-ic .ic { width: 20px; height: 20px; }
.ld-seealso { margin-top: 18px !important; font-size: 14px; }
.ld-seealso a { color: #cfaeff; text-decoration: underline; text-underline-offset: 3px; }
.ld-box1 { grid-template-columns: minmax(0, 1fr) !important; }
.ld-box1 > div { max-width: 760px; }
.ld .eyebrow.ld-warn::before { background: var(--ld-bad); }

/* внедрение: риски, этапы, уровни агрегации, проверки, опыт, заявка */
.ld .tmpro-sec-head { display: grid; max-width: 900px; }
.ld .tmpro-risk__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .tmpro-risk-card { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tmpro-risk-card h3 { font-size: 17px; }
.ld .tmpro-risk-card p { font-size: 14.5px; color: var(--ink-2); }
/* вид B (владелец 21.11, «всё по советам»): проблема сверху, ответ Трумарка снизу на мягкой заливке, ответы ряда на одной линии (subgrid) */
.ld .ld-risks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: auto auto; gap: var(--ld-gap); margin-top: 32px; padding: 0; list-style: none; }
.ld .ld-risk { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .ld-risk p { margin: 0; }
.ld .ld-risk__q { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 18px; }
.ld .ld-risk .ld-risk__k { display: flex; align-items: center; gap: 10px; font: 600 11.5px/1 var(--m); text-transform: uppercase; letter-spacing: .06em; color: var(--ld-bad); }
.ld .ld-risk__k span { font: 700 13px/1 var(--m); letter-spacing: 0; color: var(--muted); }
.ld .ld-risk h3 { font-size: 18px; }
.ld .ld-risk__q > p:last-child { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.ld .ld-risk__a { padding: 14px 22px 18px; background: var(--acc-soft); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.ld .ld-risk .ld-risk__by { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 600 13px/1 var(--f); color: var(--acc-text); }
.ld .ld-risk__by .dm { width: 18px; height: 18px; flex: none; }
@media (max-width: 1100px) { .ld .ld-risks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ld .ld-risks { grid-template-columns: minmax(0, 1fr); } .ld .ld-risk__q { padding: 18px 18px 16px; } .ld .ld-risk__a { padding: 14px 18px 18px; } }
.ld .tmpro-risk__foot, .ld .tmpro-eaeu__note, .ld .tmrd-note { margin-top: var(--ld-gap); padding: 20px 24px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 5%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, var(--line)); font-size: 15px; color: var(--ink-2); max-width: none; }
.ld .tmpro-risk__foot b, .ld .tmrd-note b { color: var(--ink); }
.ld .tmpro-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .tmpro-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tmpro-step__n { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font: 600 14px/1 var(--m); color: var(--acc-text); background: var(--acc-soft); }
.ld .tmpro-step__body { display: grid; gap: 8px; align-content: start; }
.ld .tmpro-step__body h3 { font-size: 17.5px; }
.ld .tmpro-step__body p { font-size: 14.5px; color: var(--ink-2); }
.ld .tmpro-step__check { display: flex; gap: 8px; align-items: flex-start; font: 500 12.5px/1.45 var(--m); color: var(--ld-ok); }
.ld .tmpro-step__check::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px; background: currentColor; -webkit-mask: var(--ld-check) center / contain no-repeat; mask: var(--ld-check) center / contain no-repeat; }
.ld .tmpro-step__link { color: var(--acc-text); font-weight: 550; font-size: 14.5px; }
.ld .tmpro-steps + .sub { margin-top: 18px; }
.ld .tmpro-chain { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 32px; padding: 22px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); }
.ld .tmpro-chain__item { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--scene-line); }
.ld .tmpro-chain__item b { font-weight: 650; }
.ld .tmpro-chain__item span { font: 500 12px/1.3 var(--m); color: var(--scene-ink-2); }
.ld .tmpro-chain__item--top { background: color-mix(in srgb, var(--acc) 30%, transparent); }
.ld .tmpro-chain__arr { color: #b98cff; font-size: 18px; }
.ld .tmpro-agg__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: var(--ld-gap); }
.ld .tmpro-agg__col { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tmpro-agg__col h3 { font-size: 17px; }
.ld .tmpro-agg__col p { font-size: 14.5px; color: var(--ink-2); }
.ld .tmpro-agg__col p b { color: var(--ink); }
.ld .tmpro-agg__col--ok { box-shadow: inset 0 0 0 1.5px var(--acc); background: color-mix(in srgb, var(--acc) 4%, var(--card)); }
.ld .tmrd-col--green { box-shadow: inset 3px 0 0 #1f9d5c, inset 0 0 0 1px var(--line); background: var(--card); }
.ld .tmrd-col--yellow { box-shadow: inset 3px 0 0 #d9a018, inset 0 0 0 1px var(--line); }
.ld .tmrd-col--red { box-shadow: inset 3px 0 0 var(--ld-bad), inset 0 0 0 1px var(--line); }
.ld .tmpro-check__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.ld .tmpro-check__grid > div > .btn { margin-top: 24px; }
.ld .tmpro-ticks { display: grid; border-top: 1px solid var(--line); }
.ld .tmpro-ticks li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-2); }
.ld .tmpro-ticks li b { color: var(--ink); }
.ld .tmpro-tick { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .tmpro-tick svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ld .tmpro-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 32px; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tmpro-stat { display: grid; gap: 8px; align-content: start; padding: 24px; border-left: 1px solid var(--line); }
.ld .tmpro-stat:first-child { border-left: 0; }
.ld .tmpro-stat b { font: 700 clamp(22px, 2.4vw, 30px)/1.05 var(--fh); letter-spacing: -0.025em; }
.ld .tmpro-stat span { font-size: 14px; color: var(--muted); }
.ld .tmpro-case { display: grid; gap: 10px; margin-top: var(--ld-gap); padding: 28px; border-radius: 20px; background: var(--scene-bg); color: var(--scene-ink); }
.ld .tmpro-case__tag { justify-self: start; font: 600 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; background: rgba(255, 255, 255, .08); color: #d6bdff; }
.ld .tmpro-case h3 { font-size: 20px; color: #fff; }
.ld .tmpro-case p { color: var(--scene-ink-2); font-size: 15px; max-width: 80ch; }
.ld .tmpro-case p b { color: #fff; }
.ld .tmpro-lead.section { background: var(--scene-bg); color: var(--scene-ink); margin-top: 88px; padding-block: 72px; }
.ld .tmpro-lead .eyebrow, .ld .tmpro-lead .sub { color: var(--scene-ink-2); }
.ld .tmpro-lead__inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.ld .tmpro-lead__price { display: grid; gap: 6px; margin-top: 22px; }
.ld .tmpro-lead__price-row { display: flex; align-items: baseline; gap: 8px; }
.ld .tmpro-lead__price-row span { font: 500 13px/1 var(--m); color: var(--scene-ink-2); }
.ld .tmpro-lead__price-row b { font: 750 34px/1 var(--fh); letter-spacing: -0.03em; color: #fff; }
.ld .tmpro-lead__price-note, .ld .tmpro-lead__alt { font-size: 14px; color: var(--scene-ink-2); }
.ld .tmpro-lead__alt { margin-top: 14px; }
.ld .tmpro-lead__alt a { color: #cfaeff; text-decoration: underline; text-underline-offset: 3px; }
.ld .ld-tbl thead th span { display: block; margin-top: 3px; font-family: var(--f); text-transform: none; letter-spacing: 0; color: var(--muted); }
.ld .ld-tbl .tmpro-muted { color: var(--muted); }
.ld .ld-tbl .tmpro-same { color: var(--ink); background: color-mix(in srgb, var(--acc) 4%, transparent); }
.ld .ld-tbl .tmpro-risk-row td { color: var(--ld-bad); font-weight: 550; }

/* тарифы: дополнительные услуги */
.ld .tm-services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .tm-svc { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tm-svc--flagship { grid-column: 1 / -1; background: var(--scene-bg); color: var(--scene-ink); box-shadow: none; }
.ld .tm-svc--flagship .tm-svc__desc { color: var(--scene-ink-2); }
.ld .tm-svc .ld-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .tm-svc--flagship .ld-ic { background: rgba(255, 255, 255, .08); color: #dcc8ff; }
.ld .tm-svc .ld-ic .ic { width: 22px; height: 22px; }
.ld .tm-svc__name { font-size: 17.5px; }
.ld .tm-svc__desc { font-size: 14.5px; color: var(--ink-2); }
.ld .tm-svc__links { display: flex; gap: 18px; flex-wrap: wrap; }
.ld .tm-svc__links a { color: #cfaeff; font-weight: 550; }
.ld .tm-svc__price { margin-top: auto; padding-top: 12px; font: 700 20px/1.1 var(--fh); letter-spacing: -0.02em; color: var(--acc-text); }
.ld .tm-svc--flagship .tm-svc__price { color: #fff; }
.ld .tm-svc__unit { font: 500 13px/1 var(--f); color: var(--muted); }
.ld .tm-services__note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }

/* контакты */
.ld-contacts { display: grid; gap: 10px; padding: 22px; border-radius: 20px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 40px 90px -36px rgba(8, 4, 30, .75); }
.ld-contacts li { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.ld-contacts li.hl { box-shadow: inset 0 0 0 1.5px var(--acc); }
.ld-contacts .ld-route-ic { grid-row: auto; background: var(--acc-soft); color: var(--acc-text); }
.ld-contacts .ct-k { display: block; font: 500 11.5px/1.3 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--res-muted); }
.ld-contacts .ct-v { display: block; margin-top: 3px; font: 650 18px/1.3 var(--fh); }
.ld-contacts .ct-v a:hover { color: var(--acc-text); }
.ld-contacts .ct-s { display: block; margin-top: 2px; font-size: 13.5px; color: var(--res-muted); }
.ld .adv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .adv-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .adv-card--main { grid-column: 1 / -1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 20px; align-items: start; background: var(--scene-bg); color: var(--scene-ink); box-shadow: none; }
.ld .adv-card--main p { color: var(--scene-ink-2); }
.ld .adv-card--main a { color: #cfaeff; }
.ld .adv-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .adv-card--main .adv-ico { background: rgba(255, 255, 255, .08); color: #dcc8ff; }
.ld .adv-ico .ic, .ld .adv-ico svg { width: 22px; height: 22px; }
.ld .adv-ico svg:not(.ic) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ld .adv-card h4 { margin-top: 4px; }
.ld .adv-card p { font-size: 14.5px; color: var(--ink-2); }
.ld .adv-tag { align-self: flex-start; margin-top: auto; font: 600 11px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; color: var(--acc-text); background: var(--acc-soft); }
.ld .adv-card--main .adv-tag { background: rgba(255, 255, 255, .08); color: #d6bdff; }
.ld .requisites { margin-top: 40px; }
.ld .requisites details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .requisites-toggle { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; font-weight: 600; font-size: 17px; }
.ld .requisites-toggle::-webkit-details-marker { display: none; }
.ld .req-text small { display: block; font: 500 11.5px/1.3 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ld .chev { color: var(--muted); transition: transform .2s ease; }
.ld .requisites details[open] .chev { transform: rotate(180deg); }
.ld .requisites-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 4px 24px 24px; }
.ld .req-block h3 { font-size: 16px; margin-bottom: 10px; }
.ld .req-block .row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.ld .req-block .row span:first-child { color: var(--muted); }
.ld .req-block .row span:last-child { font-variant-numeric: tabular-nums; }
.ld .docs-row { display: grid; gap: 6px; margin-top: 14px; }
.ld .doc-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; }
.ld .doc-link:hover { color: var(--acc-text); box-shadow: inset 0 0 0 1px var(--line-2); }
.ld .doc-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ld .doc-arrow { margin-left: auto; color: var(--muted); }

/* товарные группы: сетка с фильтром, процесс, возможности, цифры, причины */
.ld .tm-pg-v2__filters { display: flex; gap: 6px; flex-wrap: wrap; }
.ld .tm-pg-v2__filter { border: 0; cursor: pointer; padding: 9px 14px; border-radius: 10px; font: 500 14px/1 var(--f); color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tm-pg-v2__filter:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.ld .tm-pg-v2__filter[aria-pressed="true"] { background: var(--acc); color: #fff; box-shadow: none; }
.ld .tm-pg-v2__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; margin-top: 20px; }
.ld .tm-pg-v2__card { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: transform .15s ease, box-shadow .15s ease; }
.ld .tm-pg-v2__card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -20px rgba(16, 8, 50, .4); }
.ld .tm-pg-v2__card[hidden] { display: none; }
.ld .tm-pg-v2__card-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .tm-pg-v2__card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld .tm-pg-v2__card-body { display: grid; gap: 4px; }
.ld .tm-pg-v2__card-title { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ld .tm-pg-v2__badge { justify-self: start; font: 500 11px/1 var(--m); padding: 4px 7px; border-radius: 6px; color: var(--muted); background: var(--bg); }
.ld .tm-pg-v2__badge.is-new { color: var(--acc-text); background: var(--acc-soft); }
.ld .tm-pg-v2__badge.is-experimental { color: var(--ld-warn); background: var(--ld-warn-bg); }
.ld .tmp-head, .ld .tmc-head, .ld .tmn-head, .ld .tma-head { display: grid; max-width: 900px; }
.ld :is(.tmp-title, .tmc-title, .tmn-title, .tma-title) :is(em, span) { font-style: normal; color: var(--acc-text); }
.ld .tmn-title em { color: #cfaeff; }
.ld .tmp-timeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .tmp-step { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tmp-icon-wrap { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .tmp-icon-wrap svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld .tmp-icon-bg { display: none; }
.ld .tmp-num { position: absolute; right: -6px; top: -6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; font: 600 11px/1 var(--m); }
.ld .tmp-step h3 { font-size: 16.5px; margin-top: 4px; }
.ld .tmp-step p { font-size: 14px; color: var(--ink-2); }
.ld .tmp-aggr, .ld .tmc-verif { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 20px; align-items: center; margin-top: var(--ld-gap); padding: 22px 24px; border-radius: 18px; background: color-mix(in srgb, var(--acc) 5%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, var(--line)); }
.ld .tmp-aggr p, .ld .tmc-verif p { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.ld :is(.tmp-aggr-icon, .tmc-verif-ico) { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld :is(.tmp-aggr-icon, .tmc-verif-ico, .tmc-icon, .tma-ic, .tmn-card-icon) svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ld .tmp-aggr-tag, .ld .tmc-tag, .ld .tma-chip, .ld .tmn-card-tag { justify-self: start; align-self: start; font: 600 11px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; padding: 6px 9px; border-radius: 7px; color: var(--acc-text); background: var(--acc-soft); }
.ld .tmp-cta, .ld .tmn-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; margin-top: var(--ld-gap); padding: 26px 28px; border-radius: 20px; background: var(--scene-bg); color: var(--scene-ink); }
.ld .tmp-cta p, .ld .tmn-cta p { color: var(--scene-ink-2); margin-top: 6px; font-size: 15px; }
.ld .tmp-cta h3, .ld .tmn-cta h3 { color: #fff; }
.ld .tmp-cta .btn-g, .ld .tmn-cta .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.ld :is(.tmp-cta-actions, .tmn-cta-actions) { display: flex; gap: 10px; flex-wrap: wrap; }
.ld .tmc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .tmc-card, .ld .tma-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld :is(.tmc-icon, .tma-ic) { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .tmc-card h3, .ld .tma-card h3 { font-size: 17px; }
.ld .tmc-card p, .ld .tma-card p { font-size: 14.5px; color: var(--ink-2); }
.ld .tmc-card .tmc-tag, .ld .tma-card .tma-chip { margin-top: auto; }
.ld .tmc-verif-cta .btn { white-space: nowrap; }
.ld .tmn-grid-bg { display: none; }
.ld .tmn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--scene-line); }
.ld .tmn-card { display: grid; gap: 10px; align-content: start; padding: 26px 24px 28px 0; border-bottom: 1px solid var(--scene-line); }
.ld .tmn-card:not(:nth-child(3n + 1)) { padding-left: 24px; border-left: 1px solid var(--scene-line); }
.ld .tmn-card-icon { color: #cfaeff; }
.ld .tmn-num-row { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.ld .tmn-num { font: 700 clamp(30px, 3.2vw, 44px)/1 var(--fh); letter-spacing: -0.035em; color: #fff; font-variant-numeric: tabular-nums; }
.ld .tmn-suffix { font: 600 16px/1 var(--fh); color: #cfaeff; }
.ld .tmn-label { font-size: 14px; color: var(--scene-ink-2); max-width: 32ch; }
.ld .tmn-card-tag { color: #d6bdff; background: rgba(255, 255, 255, .08); }
.ld .tmn-cta { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--scene-line); margin-top: 28px; }
.ld .tma-bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 32px; }
.ld .tma-c0 { background: var(--scene-bg); color: var(--scene-ink); box-shadow: none; }
.ld .tma-c0 h3 { color: var(--scene-ink); }
.ld .tma-c0 p { color: var(--scene-ink-2); }
.ld .tma-c0 a { color: #cfaeff; }
.ld .tma-c0 .tma-ic { background: rgba(255, 255, 255, .08); color: #dcc8ff; flex: none; }
.ld .tma-c0 .tma-chip { background: rgba(255, 255, 255, .08); color: #d6bdff; }
.ld .tma-c0-body, .ld .tma-c6-body, .ld .tma-c7-body { display: grid; gap: 10px; }
.ld .tma-cta { margin-top: 20px; }

@media (max-width: 1100px) {
  .ld .tmp-timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ld .tmpro-chain { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .tmpro-chain__arr { display: none; }
}
@media (max-width: 980px) {
  .ld .tmpro-risk__list, .ld .tm-services__grid, .ld .adv-grid, .ld .tmc-grid, .ld .tma-bento, .ld .tmpro-agg__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .tmpro-steps, .ld .tmpro-check__grid, .ld .tmpro-lead__inner, .ld .requisites-body { grid-template-columns: minmax(0, 1fr); }
  .ld .tmpro-stats, .ld .tmn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ld .tmpro-stat:nth-child(3) { border-left: 0; }
  .ld .tmpro-stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .ld .tmn-card:nth-child(n) { padding-left: 24px; border-left: 1px solid var(--scene-line); }
  .ld .tmn-card:nth-child(2n + 1) { padding-left: 0; border-left: 0; }
}
@media (max-width: 640px) {
  .ld .tmpro-risk__list, .ld .tm-services__grid, .ld .adv-grid, .ld .tmc-grid, .ld .tma-bento, .ld .tmpro-agg__cols, .ld .tmp-timeline, .ld .tmpro-chain, .ld .tmpro-stats, .ld .tmn-grid { grid-template-columns: minmax(0, 1fr); }
  .ld .tmpro-stat:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .ld .tmpro-stat:first-child { border-top: 0; }
  .ld .tmn-card:nth-child(n) { padding-left: 0; border-left: 0; }
  .ld .adv-card--main, .ld .tmp-aggr, .ld .tmc-verif { grid-template-columns: minmax(0, 1fr); }
  .ld .req-block .row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ld .tmpro-step { grid-template-columns: minmax(0, 1fr); }
}

/* телефон: длинные подписи кнопок переносятся, а не вылезают за экран */
@media (max-width: 640px) { .ld .btn { white-space: normal; height: auto; min-height: 44px; padding-block: 10px; text-align: center; line-height: 1.25; } }

/* перелинковка «По теме»: статьи группы, соседние группы, инструменты */
.ld .ld-more-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap); margin-top: 28px; }
.ld .ld-more-g.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ld .ld-more-g.n1 { grid-template-columns: minmax(0, 1fr); max-width: 560px; }
.ld .ld-more-c { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .ld-more-c h3 { font-size: 16.5px; }
/* вариант A (владелец 21.11, «всё по советам»): строки со значками, без линий; наведение — подсветка строки и стрелка */
.ld .ld-more-c ul { display: grid; gap: 2px; margin: 0 -10px; }
.ld .ld-more-c li a { display: grid; grid-template-columns: 30px minmax(0, 1fr) 16px; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; font-size: 15px; line-height: 1.35; color: var(--ink); text-decoration: none; transition: background-color .15s ease; }
.ld .ld-more-ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.ld .ld-more-ic .ic { width: 17px; height: 17px; }
.ld .ld-more-t { min-width: 0; overflow-wrap: anywhere; }
.ld .ld-more-go { display: grid; color: var(--acc-text); opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .15s ease; }
.ld .ld-more-go .ic { width: 16px; height: 16px; }
.ld .ld-more-c li a:hover, .ld .ld-more-c li a:focus-visible { background: var(--hover); }
.ld .ld-more-c li a:hover .ld-more-go, .ld .ld-more-c li a:focus-visible .ld-more-go { opacity: 1; transform: none; }
.ld .ld-more-due { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--acc-soft); color: var(--ink); text-decoration: none; transition: box-shadow .15s ease; }
.ld .ld-more-due:hover { box-shadow: inset 0 0 0 1.5px var(--acc-text); }
.ld .ld-more-due[hidden] { display: none; }
.ld .ld-more-due-k { display: flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--m); text-transform: uppercase; letter-spacing: .06em; color: var(--acc-text); }
.ld .ld-more-due-k .ic { width: 14px; height: 14px; }
.ld .ld-more-due b { font: 700 26px/1.1 var(--fh); letter-spacing: -0.02em; }
.ld .ld-more-due-t { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.ld .ld-more-c .tlink { margin-top: auto; font-size: 14.5px; }
@media (prefers-reduced-motion: reduce) { .ld .ld-more-go, .ld .ld-more-c li a { transition: none; } }
@media (max-width: 980px) { .ld .ld-more-g, .ld .ld-more-g.n2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 400px) { .ld .ld-more-c { padding: 18px 16px; } .ld .ld-more-due b { font-size: 23px; } }

/* наборы на странице агрегации: схема без анимации — товары со своими кодами → набор с общим кодом КИН */
.ld .ld-kit .kit-scheme { display: grid; grid-template-columns: minmax(0, 1.4fr) auto minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 30px; padding: 26px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ld .kit-units { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ld .kit-u { display: grid; justify-items: start; gap: 6px; padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.ld .kit-u b { font: 650 15px/1.2 var(--fh); color: #fff; }
.ld .kit-u span:not(.kit-dm) { font: 500 11px/1.3 var(--m); color: var(--scene-ink-2); }
.ld .kit-dm { display: block; width: 34px; height: 34px; padding: 3px; border-radius: 6px; background: #fff; }
.ld .kit-dm svg { display: block; width: 100%; height: 100%; }
.ld .kit-dm-l { width: 64px; height: 64px; padding: 5px; box-shadow: 0 0 0 3px rgba(155, 92, 255, .55); }
.ld .kit-join { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(155, 92, 255, .18); color: #cfaeff; }
.ld .kit-join .ic { width: 20px; height: 20px; }
.ld .kit-set { display: flex; align-items: center; gap: 16px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(124, 58, 237, .32), rgba(124, 58, 237, .12)); box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .35); }
.ld .kit-set b { display: block; font: 700 20px/1.2 var(--fh); color: #fff; margin-top: 4px; }
.ld .kit-set span:not(.kit-dm) { font-size: 13.5px; color: var(--scene-ink-2); }
.ld .kit-k { font: 600 11px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.ld .kit-set .kit-k { color: #cfaeff; }
.ld .kit-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 26px; }
.ld .kit-facts p:not(.kit-k) { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
@media (max-width: 980px) {
  .ld .ld-kit .kit-scheme { grid-template-columns: minmax(0, 1fr); justify-items: stretch; }
  .ld .kit-join { justify-self: center; transform: rotate(90deg); }
  .ld .kit-facts { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 520px) { .ld .kit-units { grid-template-columns: minmax(0, 1fr); } .ld .kit-u { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: 12px; } .ld .kit-u .kit-dm { grid-row: span 2; } .ld .ld-kit .kit-scheme { padding: 18px; } }

/* ===== новый вид первого экрана (главная 20.11): A «Табло сроков», C «Линия маркировки» ===== */
/* .hx — общий класс с витриной инструментов (x-tools.css): у посадочных только под .ld-hero, варианты hx-a и hx-c — тоже (20.11) */
.ld-hero.hx { --hx-lil: #cfaeff; --hx-ok: #5fd6b0; --hx-soon: #f0b45a; }
/* A. Табло сроков: строки этапов, дата в перекидных ячейках, ближайший этап раскрыт, отсчёт по часам посетителя */
.hxa-board { position: relative; border-radius: 22px; background: linear-gradient(180deg, #14111d, #0c0a13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(80, 30, 160, .55); overflow: hidden; color: var(--scene-ink); }
.hxa-board::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 50% at 80% 0%, rgba(150, 80, 230, .22), transparent 70%); pointer-events: none; }
.hxa-h { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--scene-line); font: 500 11.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--scene-ink-2); }
.hxa-t { color: var(--scene-ink); }
.hxa-today { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.hxa-today i { width: 7px; height: 7px; border-radius: 50%; background: var(--hx-ok); box-shadow: 0 0 0 4px rgba(95, 214, 176, .16); animation: hx-pulse 2s ease-in-out infinite; }
.hxa-today b { color: var(--scene-ink); font-weight: 600; }
.hxa-rows { position: relative; list-style: none; margin: 0; padding: 8px 10px; }
.hxa-row { border-radius: 14px; transition: background .25s ease; }
.hxa-row + .hxa-row { margin-top: 2px; }
.hxa-rb { width: 100%; display: grid; gap: 10px; padding: 14px 12px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; font: inherit; border-radius: 14px; }
.hxa-rb:focus-visible { outline: 2px solid var(--hx-lil); outline-offset: -2px; }
.hxa-row:hover, .hxa-row.is-on { background: rgba(255, 255, 255, .045); }
.hxa-st { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font: 600 11px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--scene-ink-2); }
.hxa-st > i { width: 7px; height: 7px; border-radius: 50%; background: #6f6a86; flex: none; }
.hxa-row.is-past .hxa-st { color: var(--hx-ok); } .hxa-row.is-past .hxa-st > i { background: var(--hx-ok); }
.hxa-row.is-soon .hxa-st { color: var(--hx-soon); } .hxa-row.is-soon .hxa-st > i { background: var(--hx-soon); box-shadow: 0 0 0 4px rgba(240, 180, 90, .18); animation: hx-pulse 1.6s ease-in-out infinite; }
.hxa-date { display: inline-flex; gap: 2px; font: 600 15px/1 var(--m); letter-spacing: 0; color: #fff; font-variant-numeric: tabular-nums; }
.hxa-post { font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--scene-ink-2); }
.hx-cell { position: relative; display: inline-grid; place-items: center; min-width: 1.05em; height: 1.75em; padding: 0 1px; border-radius: 4px; background: linear-gradient(180deg, #221e2e 0 49%, #1a1724 51% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), 0 1px 0 rgba(0, 0, 0, .5); overflow: hidden; }
.hx-cell::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.hx-cell.dot { min-width: .45em; background: none; box-shadow: none; } .hx-cell.dot::after { display: none; }
.hxa-row.is-soon .hx-cell { color: #ffd9a0; }
.hxa-what { font: 650 19px/1.25 var(--fh); letter-spacing: -0.01em; color: var(--scene-ink); }
.hxa-row:not(.is-on) .hxa-what { color: #d9d5e8; }
.hxa-desc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s cubic-bezier(.2, .8, .2, 1); }
.hxa-desc > div { overflow: hidden; padding: 0 12px; font-size: 14px; line-height: 1.55; color: var(--scene-ink-2); max-width: 56ch; }
.hxa-row.is-on .hxa-desc { grid-template-rows: 1fr; } .hxa-row.is-on .hxa-desc > div { padding-bottom: 16px; }
.hxa-desc strong, .hxa-desc b { color: var(--scene-ink); }
.hxa-desc a { color: var(--hx-lil); }
.hxa-f { position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--scene-line); background: rgba(255, 255, 255, .02); }
.hxa-dm { flex: none; width: 40px; height: 40px; padding: 4px; border-radius: 6px; background: #fff; } .hxa-dm svg { width: 100%; height: 100%; display: block; }
.hxa-cd { flex: 1; font: 500 12.5px/1.4 var(--m); color: var(--scene-ink-2); }
.hxa-cd b { display: block; font: 700 22px/1.1 var(--fh); color: #ffd9a0; letter-spacing: -0.02em; margin-top: 2px; }
/* C. Линия маркировки (сцена главной) с моно-подписями и карточкой товара группы */
.hxc { position: relative; }
.hxc canvas { display: block; width: 100%; height: auto; }
.hxc-tag { position: absolute; display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(15, 12, 24, .85); box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .28); font: 600 10.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--scene-ink); white-space: nowrap; pointer-events: none; }
.hxc-tag i { width: 6px; height: 6px; border-radius: 50%; background: #b98cff; box-shadow: 0 0 8px #b98cff; }
.hxc-tag.t1 { left: 4%; top: 30%; } .hxc-tag.t2 { left: 36%; top: 6%; } .hxc-tag.t3 { right: 6%; top: 24%; } .hxc-tag.t4 { right: 2%; top: 58%; }
.hxc-card { position: absolute; left: 2%; bottom: 2%; display: flex; align-items: center; gap: 14px; width: min(420px, 92%); padding: 14px 16px; border-radius: 16px; background: rgba(20, 17, 30, .88); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09), 0 24px 50px -20px rgba(0, 0, 0, .6); }
.hxc-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06); font-size: 20px; }
.hxc-card > div { flex: 1; min-width: 0; }
.hxc-name { font: 650 15px/1.3 var(--fh); color: var(--scene-ink); }
.hxc-meta { font: 500 11.5px/1.4 var(--m); color: var(--scene-ink-2); margin-top: 3px; }
.hxc-st { flex: none; padding: 6px 10px; border-radius: 999px; background: rgba(207, 174, 255, .12); color: var(--hx-lil); font: 600 11.5px/1 var(--f); }
/* карточки без дат под первым экраном: рельс с узлами вместо колонок с полосами */
.hxr { position: relative; z-index: 1; list-style: none; margin: 0; padding: 30px 0 44px; display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 28px; }
.hxr::before { content: ""; position: absolute; left: 0; right: 0; top: 37px; height: 1px; background: linear-gradient(90deg, rgba(207, 174, 255, .55), rgba(255, 255, 255, .08)); }
.hxr-i { position: relative; padding-top: 28px; }
.hxr-n { position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: radial-gradient(circle, #b98cff 0 3px, #100e19 3.5px); box-shadow: inset 0 0 0 2px #8f6ad6; }
.hxr-l { font: 600 11px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #d6bdff; }
.hxr-i h3 { font: 650 19px/1.25 var(--fh); color: var(--scene-ink); margin-top: 10px; }
.hxr-p { font-size: 14px; line-height: 1.55; color: var(--scene-ink-2); margin-top: 8px; max-width: 46ch; }
.hxr-p strong, .hxr-p b { color: var(--scene-ink); }
@keyframes hx-pulse { 50% { opacity: .55; } }
@media (max-width: 980px) {
  .hxr { grid-template-columns: minmax(0, 1fr); gap: 0; padding-left: 26px; }
  .hxr::before { left: 7px; right: auto; top: 34px; bottom: 50px; width: 1px; height: auto; background: linear-gradient(180deg, rgba(207, 174, 255, .55), rgba(255, 255, 255, .08)); }
  .hxr-i { padding: 0 0 24px; } .hxr-n { left: -26px; }
}
@media (max-width: 640px) {
  .hxa-h { padding: 14px 16px; flex-wrap: wrap; } .hxa-rows { padding-inline: 4px; }
  .hxa-rb { padding: 12px; } .hxa-what { font-size: 17px; }
  .hxa-f { flex-wrap: wrap; padding: 14px 16px; } .hxa-f .btn { width: 100%; }
  .hxc-tag { font-size: 9.5px; padding: 5px 8px; } .hxc-tag.t2 { left: 30%; } .hxc-tag.t4 { top: 50%; }
  .hxc-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hxa-today i, .hxa-row.is-soon .hxa-st > i { animation: none; } .hxa-desc { transition: none; } }

/* выноска «Сцена с документами» (выбор главной 20.11): тёмная полоса в обеих темах, стопка листов в изометрии с печатью DataMatrix */
.ld .hxk { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; align-items: center; margin-top: var(--ld-gap, 28px); padding: 28px 34px 28px 20px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.ld .hxk-k { font: 600 11px/1.3 var(--m); letter-spacing: .1em; text-transform: uppercase; color: #cfaeff; }
.ld .hxk h3 { font: 650 20px/1.3 var(--fh); color: #fff; margin-top: 10px; }
.ld .hxk p:not(.hxk-k) { margin-top: 8px; font-size: 15px; line-height: 1.6; color: var(--scene-ink-2); max-width: 92ch; }
.ld .hxk p + p:not(.hxk-k) { margin-top: 10px; }
.ld .hxk strong, .ld .hxk b { color: #e4d4ff; }
.ld .hxk a { color: #cfaeff; }
.ld .hxk ul, .ld .hxk ol { margin-top: 8px; color: var(--scene-ink-2); }
.ld .hxk-art { position: relative; height: 150px; }
.ld .hxk-art i, .ld .hxk-art b { position: absolute; left: 50%; top: 50%; width: 104px; height: 132px; margin: -66px 0 0 -52px; border-radius: 6px; transform: rotateX(58deg) rotateZ(-40deg); }
.ld .hxk-art i { background: linear-gradient(135deg, #f4f1fb, #d9d3ea); box-shadow: 0 1px 0 rgba(0, 0, 0, .3); }
.ld .hxk-art i::before, .ld .hxk-art i::after { content: ""; position: absolute; left: 14px; right: 30px; top: 22px; height: 6px; border-radius: 3px; background: #b9b0d2; box-shadow: 0 16px 0 #c9c1de, 0 32px 0 #c9c1de, 0 48px 0 #d3cce5; }
.ld .hxk-art i::after { top: auto; bottom: 16px; left: 14px; right: 58px; height: 8px; background: #7c3aed; box-shadow: none; }
.ld .hxk-art i:nth-child(1) { translate: 0 22px; opacity: .55; } .ld .hxk-art i:nth-child(2) { translate: 0 10px; opacity: .8; } .ld .hxk-art i:nth-child(3) { translate: 0 -2px; animation: hxk-float 4s ease-in-out infinite; }
.ld .hxk-art b { width: 42px; height: 42px; margin: -6px 0 0 6px; padding: 4px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px #7c3aed; animation: hxk-float 4s ease-in-out infinite; }
.ld .hxk-art b svg { width: 100%; height: 100%; display: block; }
@keyframes hxk-float { 50% { translate: 0 -10px; } }
@media (max-width: 980px) { .ld .hxk { grid-template-columns: minmax(0, 1fr); padding: 22px 22px 24px; gap: 6px; } .ld .hxk-art { height: 118px; } }
@media (prefers-reduced-motion: reduce) { .ld .hxk-art i, .ld .hxk-art b { animation: none; } }
.hxa-desc .cd-wrap, .hxr-p .cd-wrap { max-width: 380px; }
.hxa-dm, .ld .hxk-art b, .ld .kit-dm { color: #0f0d18; }

/* светофор групп разрешительных документов: лампа и световая кромка сверху вместо полосы слева */
.ld .tmrd-col--green, .ld .tmrd-col--yellow, .ld .tmrd-col--red { --tl: #2fbf7a; position: relative; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld .tmrd-col--yellow { --tl: #e2a72e; } .ld .tmrd-col--red { --tl: #e5484d; }
.ld .tmrd-col--green::before, .ld .tmrd-col--yellow::before, .ld .tmrd-col--red::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 90px; background: radial-gradient(60% 100% at 18% 0%, color-mix(in srgb, var(--tl) 22%, transparent), transparent 70%); pointer-events: none; }
.ld .tmrd-col--green h3, .ld .tmrd-col--yellow h3, .ld .tmrd-col--red h3 { position: relative; display: flex; align-items: center; gap: 12px; }
.ld .tl-emo { display: none; }
.ld .tl-lamp { flex: none; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 12%, var(--tl) 45%); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tl) 18%, transparent), 0 0 18px var(--tl); }
.ld .tmrd-col--green.tmpro-agg__col--ok { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--tl) 55%, var(--line)); }
@media (prefers-reduced-motion: no-preference) { .ld .tmrd-col--red .tl-lamp { animation: hx-pulse 1.8s ease-in-out infinite; } }

/* таблицы — как спецификация: тёмная шапка с моно-подписями, тонкие линии, строка подсвечивается под курсором */
.ld .ld-tbl { border-radius: 18px; }
.ld .ld-tbl thead th { background: #15121f; color: #cfaeff; border-top: 0; padding-block: 14px; }
.ld .ld-tbl thead th:first-child { border-top-left-radius: 18px; } .ld .ld-tbl thead th:last-child { border-top-right-radius: 18px; }
.ld .ld-tbl thead th span { color: #a8a4bf; }
.ld .ld-tbl tbody tr { transition: background .15s ease; }
.ld .ld-tbl tbody tr:hover { background: color-mix(in srgb, var(--acc) 5%, transparent); }
.ld .ld-tbl tbody th, .ld .ld-tbl tbody td:first-child { color: var(--ink); font-weight: 600; }
.ld .ld-dark .ld-tbl thead th { background: rgba(255, 255, 255, .06); }

/* «Работаете в 1С?» — выноска-сцена перед финалом */
.ld-see { margin-top: 56px; }
.ld-see .hxk { margin-top: 0; }
.ld-see .hxk p { padding: 0; background: none; box-shadow: none; }
.hxa-cd[hidden] { display: block; visibility: hidden; }

/* разделы статьи на посадочной (духи и туалетная вода — посадочная на месте статьи): проза в языке сайта */
.ld .ld-prose > p:not(.eyebrow):not(.sub) { margin-top: 14px; max-width: 78ch; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.ld .ld-prose > h3 { margin-top: 30px; font: 650 19px/1.3 var(--fh); letter-spacing: -0.01em; }
.ld .ld-prose > h3 + p { margin-top: 8px; }
.ld .ld-prose > ul, .ld .ld-prose > ol { margin-top: 12px; padding-left: 0; list-style: none; display: grid; gap: 8px; max-width: 78ch; }
.ld .ld-prose > ul > li, .ld .ld-prose > ol > li { position: relative; padding-left: 22px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ld .ld-prose > ul > li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--acc); transform: rotate(45deg); }
.ld .ld-prose > ol { counter-reset: n; }
.ld .ld-prose > ol > li::before { counter-increment: n; content: counter(n); position: absolute; left: 0; top: 0; font: 600 12px/1.9 var(--m); color: var(--acc-text); }
.ld .ld-prose strong, .ld .ld-prose b { color: var(--ink); }
.ld .ld-prose a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.ld .ld-prose .vcard__video { margin-top: 20px; max-width: 760px; }

/* /product-groups/: группы справочника Честного ЗНАКа — длинные официальные названия переносятся, у групп без посадочной карточка без ссылки */
.ld .tm-pg-v2__card-title { overflow-wrap: anywhere; hyphens: auto; }
.ld .tm-pg-v2__card.is-plain { cursor: default; }
.ld .tm-pg-v2__card.is-plain .tm-pg-v2__card-icon { background: var(--bg); color: var(--muted); }
.ld .tm-pg-v2__more { margin-top: 28px; display: grid; gap: 12px; }
.ld .tm-pg-v2__more > p:first-child { font: 600 11px/1.3 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ld .tm-pg-v2__more ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ld .tm-pg-v2__more a { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink); text-decoration: none; transition: box-shadow .15s ease, color .15s ease; }
.ld .tm-pg-v2__more a:hover { color: var(--acc-text); box-shadow: inset 0 0 0 1px var(--acc); }
.ld .tm-pg-v2__src { font-size: 13px; color: var(--muted); }

/* строка-мостик к инструменту (главная 20.11): одна ссылка в стиле блока «По теме» */
.ld .ld-bridge { padding-block: 28px; }
.ld .ld-bridge .wrap { display: grid; gap: 10px; }  /* одна или две строки «По теме» */
.ld .ld-bridge-a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .15s ease; }
.ld .ld-bridge-a:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.ld .ld-bridge-k { flex: none; font: 600 11px/1.3 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--acc-text); }
.ld .ld-bridge-t { flex: 1; min-width: 0; font: 600 16px/1.35 var(--fh); }
.ld .ld-bridge-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--acc-soft); color: var(--acc-text); transition: transform .2s ease; }
.ld .ld-bridge-ic .ic { width: 18px; height: 18px; }
.ld .ld-bridge-a:hover .ld-bridge-ic { transform: translateX(3px); }
@media (max-width: 640px) { .ld .ld-bridge-a { flex-wrap: wrap; gap: 8px 12px; padding: 16px; } .ld .ld-bridge-k { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .ld .ld-bridge-ic { transition: none; } }

/* сцена агрегации: плашка этапа подсвечивается по ходу цикла */
.hxc-tag { transition: background .35s ease, box-shadow .35s ease, color .35s ease; }
.hxc-tag.is-on { background: rgba(107, 47, 179, .9); color: #fff; box-shadow: inset 0 0 0 1px #cfaeff, 0 0 22px rgba(155, 92, 255, .55); }
.hxc-tag.is-on i { background: #fff; box-shadow: 0 0 10px #fff; }
.hxc-agg .hxc-tag.t1 { left: 2%; top: 22%; } .hxc-agg .hxc-tag.t2 { left: 22%; top: 4%; } .hxc-agg .hxc-tag.t3 { right: 22%; top: 14%; } .hxc-agg .hxc-tag.t4 { right: 2%; top: 44%; }
@media (prefers-reduced-motion: reduce) { .hxc-tag { transition: none; } }
/* у сцены агрегации паллета внизу справа — карточка под холстом, а не поверх */
.hxc-agg .hxc-card { position: relative; left: auto; bottom: auto; width: min(440px, 100%); margin: -6px 0 0 auto; }
/* высота карточки одна во всех состояниях: на узком экране статус уходит третьей строкой, текст ниже не прыгает */
.hxc-agg .hxc-card > div { display: contents; }
.hxc-agg .hxc-card { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "ico name st" "ico meta st"; gap: 0 14px; align-items: center; }
.hxc-agg .hxc-ico { grid-area: ico; align-self: center; }
.hxc-agg .hxc-name { grid-area: name; align-self: end; white-space: nowrap; }
.hxc-agg .hxc-meta { grid-area: meta; align-self: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hxc-agg .hxc-st { grid-area: st; white-space: nowrap; }
@media (max-width: 560px) {
  .hxc-agg .hxc-card { grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "ico name" "ico meta" "ico st"; row-gap: 0; }
  .hxc-agg .hxc-st { justify-self: start; margin-top: 8px; }
}

/* «Семь причин» на /contacts/: текст тёмной главной карточки перебивался общим .ld .adv-card p (тёмно-серый на тёмном) — владелец 20.11 «что-то с контрастом» */
.ld .adv-card.adv-card--main p { color: var(--scene-ink-2); }
.ld .adv-card.adv-card--main h4, .ld .adv-card.adv-card--main h3 { color: var(--scene-ink); }

/* ===== плитки «боль → Трумарк» (вариант 1 «карточка из двух частей», владелец 20.11): общий компонент tools/routes/_pains.py =====
   сверху боль приглушённо со значком проблемы, снизу ответ на мягкой фирменной заливке со знаком Трумарка; ряд выровнен subgrid —
   ответы всех карточек ряда начинаются на одной линии. Без обёртки .ld: компонент могут ставить и другие разделы */
.ld-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ld-gap, 14px); margin-top: 32px; }
.ld-pain { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 0; min-width: 0; border-radius: 18px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ld-pain p { margin: 0; }
.ld-pain strong { color: var(--ink); font-weight: 650; }
.ld-pain a:not(.btn) { color: var(--acc-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.ld-pain a:not(.btn):hover { text-decoration-color: currentColor; }
.ld-pain__q { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; padding: 20px 22px 18px; font-size: 15.5px; line-height: 1.45; color: var(--ink-2); }
.ld-pain__qi { display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; color: var(--muted); }
.ld-pain__qi .ic { width: 20px; height: 20px; }
.ld-pain__a { padding: 16px 22px 20px; background: var(--acc-soft); font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.ld-pain .ld-pain__by { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 600 13px/1 var(--f); color: var(--acc-text); }
.ld-pain__by .dm { width: 18px; height: 18px; flex: none; }
@media (max-width: 1100px) { .ld-pains { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .ld-pains { grid-template-columns: minmax(0, 1fr); }
  .ld-pain__q { padding: 18px 18px 16px; font-size: 15px; }
  .ld-pain__a { padding: 14px 18px 18px; }
}

/* ===== строка над заголовком первого экрана (вариант A, владелец 20.11): шрифт сайта, квадрат-акцент как у надзаголовков
   разделов, без пилюли и моноширинного шрифта. Общий компонент: <p class="ld-kicker">…</p> — посадочные, главная, страницы materials.
   Сегменты .bseg (badge_html в tools/routes/landings.py) на широком экране не рвутся, перенос — только по «·» */
.ld-kicker { position: relative; box-sizing: border-box; max-width: 46ch; margin: 0 0 18px; padding-left: 17px; font: 500 14px/1.45 var(--f); letter-spacing: .005em; color: var(--scene-ink-2, #b8b2c8); }
.ld-kicker::before { content: ""; position: absolute; left: 0; top: .52em; width: 7px; height: 7px; border-radius: 1px; background: var(--acc); }
.ld-kicker b, .ld-kicker strong { color: #fff; font-weight: 600; }
.ld-kicker .bseg { white-space: nowrap; }
@media (max-width: 640px) { .ld-kicker { font-size: 13.5px; } .ld-kicker .bseg { white-space: normal; } }

/* шаги «как это работает» без колонки с роликом (ролик не по теме страницы убран, владелец 20.11) */
.ld .walk.walk--solo { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
.ld .ld-anchor { display: block; height: 0; }  /* якорь убранного раздела с роликом: ссылки из выдачи ведут на его место */

/* ===== первый экран WB и Ozon: упаковочный стол (вариант 1, владелец 20.11), site/public/landings/mp-line.js ===== */
.hxc-mp .hxc-tag { left: auto; right: auto; top: auto; bottom: auto; }
.hxc-mp .hxc-tag.t1 { left: 0; right: auto; top: 50%; } .hxc-mp .hxc-tag.t2 { left: 3%; right: auto; top: 3%; } .hxc-mp .hxc-tag.t3 { left: 40%; right: auto; top: 22%; }
.hxc-mp .hxc-tag.t4 { left: auto; right: 0; top: 36%; } .hxc-mp .hxc-tag.t5 { left: auto; right: 0; top: 74%; }
.hxc-mp .hxc-ico .dm { width: 20px; height: 20px; color: #cfaeff; }
.hxc-mp .hxc-st.hxc-sign { padding: 9px 13px; border-radius: 10px; background: #6b2fb3; color: #fff; font: 600 13px/1 var(--f); transition: box-shadow .4s ease, background-color .4s ease; }
.hxc-mp .hxc-card.is-ready .hxc-sign { background: #7b3fd0; box-shadow: 0 0 0 4px rgba(155, 92, 255, .3), 0 0 24px rgba(155, 92, 255, .55); }
@media (max-width: 640px) { .hxc-mp .hxc-tag.t3 { left: 34%; right: auto; top: 20%; } }
@media (prefers-reduced-motion: reduce) { .hxc-mp .hxc-st.hxc-sign { transition: none; } }

/* ===== каталог /product-groups/: жёлтые сроки в сетке (вариант 1, владелец 20.11) — карточки одной высоты, одна строка статуса ===== */
/* одна сетка у всех карточек (владелец 21.11: «неровно выглядящие карточки», «не влезают надписи жёлтые»): карточка занимает две строки
   сетки каталога (subgrid) — название и статус; в ряду названия прижаты к статусам, статусы на одной линии, значок по центру высоты.
   Многоточий нет: название целиком (до трёх строк), подпись плашки переносится внутри плашки */
.ld .tm-pg-v2__grid { grid-auto-rows: auto; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }  /* 4 колонки на 1440, 3 на 1100, 2 на 768: название до трёх строк */
.ld .tm-pg-v2__card { grid-row: span 2; grid-template-rows: subgrid; row-gap: 6px; align-items: start; min-height: 0; }
.ld .tm-pg-v2__card-body { display: contents; }
.ld .tm-pg-v2__card-icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
.ld .tm-pg-v2__card .tm-pg-v2__card-title { grid-column: 2; grid-row: 1; align-self: end; display: block; overflow: visible; font-size: 15px; line-height: 1.3; overflow-wrap: break-word; hyphens: manual; }
.ld .tm-pg-v2__st { grid-column: 2; grid-row: 2; align-self: start; display: block; min-width: 0; white-space: normal; font: 500 13px/1.3 var(--f); color: var(--muted); padding: 4px 0; }  /* та же высота строки, что у плашек: статусы ряда на одной линии */
.ld .tm-pg-v2__st.is-soon { justify-self: start; max-width: 100%; box-sizing: border-box; padding: 4px 9px; border-radius: 7px; background: #f6f42e; color: #17141f; font-weight: 600; }
.ld .tm-pg-v2__st.is-soon b { font-weight: 750; }
.ld .tm-pg-v2__card.is-soon { box-shadow: inset 0 0 0 1.5px #d9d724, 0 10px 30px -18px rgba(150, 140, 0, .5); }
/* недавно стартовали (6 месяцев): фирменная фиолетовая метка, обводка и тень карточки — как у всех */
.ld .tm-pg-v2__st.is-recent { justify-self: start; max-width: 100%; box-sizing: border-box; padding: 4px 8px; border-radius: 7px; background: var(--acc-soft); color: var(--acc-text); font-weight: 600; }
.ld .tm-pg-v2__st.is-recent b { font-weight: 750; }
.ld .tm-pg-v2__cnt.is-recent { background: var(--acc); color: #fff; }
.ld .tm-pg-v2__cnt { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; padding: 0 5px; border-radius: 999px; background: #f6f42e; color: #17141f; font: 700 12px/1 var(--f); }
.ld .tm-pg-v2__filter[hidden] { display: none; }

/* «Восемь причин» на /product-groups/: 4×2 на широком, 2×4 на планшете, одна колонка на телефоне; метки внизу карточек — на одной линии в ряду */
@media (min-width: 981px) and (max-width: 1180px) { .ld .tma-card { padding: 20px; } }

/* ===== общий конвейер посадочных (владелец 21.11): site/public/landings/conv-line.js; карточка под сценой, как у сцены агрегации ===== */
.hxc-cv .hxc-tag { left: auto; right: auto; top: auto; bottom: auto; }
.hxc-cv .hxc-tag.t1 { left: 0; top: 46%; } .hxc-cv .hxc-tag.t2 { left: 30%; top: 2%; } .hxc-cv .hxc-tag.t3 { left: 58%; top: 18%; } .hxc-cv .hxc-tag.t4 { right: 0; top: 40%; }
@media (max-width: 640px) { .hxc-cv .hxc-tag.t2 { left: 26%; } .hxc-cv .hxc-tag.t3 { left: 52%; top: 16%; } .hxc-cv .hxc-tag.t4 { top: 36%; } }
.hxc-cv .hxc-card { width: 100%; margin-top: 6px; }
.hxc-cv .hxc-name, .hxc-cv .hxc-meta { white-space: normal; overflow: visible; }  /* название и строка карточки целиком, не наезжают на «Подписать» */

/* ---- x-materials.css ---- */
/* Продуктовые страницы (tools/routes/materials.py): приёмка УПД, 1С, станция маркировки, ТСД. Подход 1 «Ночная сцена».
   mt-* — общее для четырёх страниц, pu-* — приёмка УПД. Цвета — токены p1.css, уровни замечаний — свои токены ниже. */
:root {
  --lv-stop: #c42b31; --lv-stop-bg: rgba(229, 72, 77, .11); --lv-risk: #9a5a00; --lv-risk-bg: rgba(240, 160, 32, .16);
  --lv-info: #3f4fc2; --lv-info-bg: rgba(123, 140, 255, .14); --lv-ok: #0b7a4f; --lv-ok-bg: rgba(15, 154, 100, .12);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --lv-stop: #ff8a8e; --lv-stop-bg: rgba(229, 72, 77, .18); --lv-risk: #ffc566; --lv-risk-bg: rgba(240, 160, 32, .16);
  --lv-info: #aab5ff; --lv-info-bg: rgba(123, 140, 255, .18); --lv-ok: #62d6a0; --lv-ok-bg: rgba(15, 154, 100, .2); } }
:root[data-theme="dark"] {
  --lv-stop: #ff8a8e; --lv-stop-bg: rgba(229, 72, 77, .18); --lv-risk: #ffc566; --lv-risk-bg: rgba(240, 160, 32, .16);
  --lv-info: #aab5ff; --lv-info-bg: rgba(123, 140, 255, .18); --lv-ok: #62d6a0; --lv-ok-bg: rgba(15, 154, 100, .2); }

/* ---------- первый экран: тёмная сцена, как на главной ---------- */
.mt-hero { background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.mt-hero::before { content: ""; position: absolute; inset: auto -10% -30% 35%; height: 90%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.mt-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask: linear-gradient(to bottom, #000, transparent 85%); mask: linear-gradient(to bottom, #000, transparent 85%); pointer-events: none; }
.mt-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 36px 52px; position: relative; z-index: 1; }
.mt-hero-l { display: grid; gap: 18px; justify-items: start; }
.mt-hero .crumbs { color: var(--scene-ink-2); margin-bottom: 6px; }
.mt-hero .crumbs a:hover { color: #fff; }
.mt-hero h1 { font: 750 clamp(38px, 4.8vw, 66px)/0.99 var(--fh); letter-spacing: -0.045em; max-width: 14ch; text-wrap: balance; }
.mt-hero .lead { max-width: 54ch; }
.mt-hero .cta-btns { margin-top: 8px; }
.mt-hero .cta-btns .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.mt-hero .cta-btns .btn-g:hover { background: rgba(255, 255, 255, .08); }
.mt-hero-r { position: relative; display: grid; }
.mt-hero .facts { position: relative; z-index: 1; border-top: 1px solid var(--scene-line); }
.mt-hero .facts > div { border-color: var(--scene-line); }
.mt-hero .facts dt { font-size: clamp(26px, 2.6vw, 38px); }
.mt-hero .facts dd { color: var(--scene-ink-2); }

/* ---------- разделы ---------- */
.mt-sec { padding-block: 96px 0; }
.mt-head .sub a { color: var(--acc-text); }
.mt .faq { padding-block: 96px 24px; }
.mt-more { padding-block: 72px 16px; }
.mt .cta-end { padding-top: 56px; }

/* уровни замечаний: стоп, риск, инфо и тон табло */
.lvl { display: inline-flex; align-items: center; gap: 6px; font: 600 12.5px/1 var(--f); padding: 6px 9px 6px 8px; border-radius: 999px; white-space: nowrap; }
.lvl::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: currentColor; flex: none; }
.lvl.stop { color: var(--lv-stop); background: var(--lv-stop-bg); }
.lvl.risk { color: var(--lv-risk); background: var(--lv-risk-bg); }
.lvl.info { color: var(--lv-info); background: var(--lv-info-bg); }
.lvl.ok { color: var(--lv-ok); background: var(--lv-ok-bg); }
.lvl-set { display: inline-flex; align-items: center; font: 500 11.5px/1 var(--m); color: var(--muted); padding: 6px 0 6px 2px; white-space: nowrap; }

/* ---------- приёмка УПД ---------- */
.pu-doc { position: relative; }
.pu-hero .ud-h div span { display: block; margin-top: 3px; }

.pu-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.pu-steps li { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pu-step-n { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pu-step-n b { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; font: 600 13px/1 var(--m); background: var(--acc-soft); color: var(--acc-text); }
.pu-step-n .ic { width: 22px; height: 22px; color: var(--muted); }
.pu-steps h3 { font: 650 18.5px/1.25 var(--fh); letter-spacing: -0.01em; }
.pu-steps p { color: var(--ink-2); font-size: 14.5px; flex: 1; }
.pu-chip { align-self: flex-start; font: 500 12px/1 var(--m); padding: 7px 9px; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.pu-tree { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 10px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 12px/1 var(--m); color: var(--ink); }
.pu-tree span { padding: 6px 8px; border-radius: 7px; background: var(--card); box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.pu-tree span:last-child { background: var(--acc); color: #fff; box-shadow: none; }
.pu-tree i { width: 12px; height: 1.5px; background: var(--line-2); position: relative; flex: none; }
.pu-tree i::after { content: ""; position: absolute; right: -1px; top: -3px; border: 3.5px solid transparent; border-left-color: var(--line-2); border-right: 0; }

.pu-lvls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.pu-lvl { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 20px 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pu-lvl p { color: var(--ink-2); font-size: 14.5px; }
.pu-grp { display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: 40px; margin-top: 14px; padding: 30px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 84px; }
.pu-grp-h { display: grid; gap: 12px; align-content: start; }
.pu-grp-ic { position: relative; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.pu-grp-ic .ic { width: 23px; height: 23px; }
.pu-grp-ic b { position: absolute; right: -7px; top: -7px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 7px; display: grid; place-items: center; font: 600 11.5px/1 var(--m); background: var(--acc); color: #fff; box-shadow: 0 0 0 3px var(--card); }
.pu-grp-h h3 { font: 700 clamp(21px, 1.9vw, 25px)/1.15 var(--fh); letter-spacing: -0.02em; margin-top: 6px; }
.pu-grp-h > p { color: var(--ink-2); font-size: 15px; }
.pu-guard { margin-top: 4px; padding: 14px 16px; border-radius: 13px; background: var(--acc-soft); color: var(--ink); font-size: 14.5px; line-height: 1.5; }
.pu-guard b { display: block; font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--acc-text); margin-bottom: 7px; }
.pu-tbl table { width: 100%; border-collapse: collapse; }
.pu-tbl th { text-align: left; font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.pu-tbl th:last-child, .pu-tbl td:last-child { text-align: right; padding-left: 16px; }
.pu-tbl td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; vertical-align: top; }
.pu-tbl tr:last-child td { border-bottom: 0; padding-bottom: 0; }
.pu-tbl td:last-child { white-space: nowrap; }
.pu-tbl td:last-child > * + * { margin-left: 6px; }

.pu-sv { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); margin-top: 36px; border-radius: 22px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pu-sv .tsd-art { min-height: 600px; }
.pu-sv-r { padding: 32px; display: grid; gap: 22px; align-content: start; }
.pu-ways { list-style: none; margin: 0; padding: 0; display: grid; }
.pu-ways li { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.pu-ways li:first-child { border-top: 0; padding-top: 0; }
.pu-way-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.pu-way-ic .ic { width: 21px; height: 21px; }
.pu-ways b { font: 650 17px/1.3 var(--fh); }
.pu-ways p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.pu-ways .more { margin-top: 8px; font-size: 14.5px; }
.pu-ways .more .ic { width: 16px; height: 16px; }
.pu-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 18px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pu-modes-k { grid-column: 1 / -1; font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pu-modes div { display: grid; gap: 4px; align-content: start; padding: 14px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pu-modes div:first-of-type { box-shadow: inset 0 0 0 1.5px var(--acc); }
.pu-modes b { font-weight: 600; font-size: 15px; }
.pu-modes span { color: var(--ink-2); font-size: 13.5px; line-height: 1.45; }

.pu-errs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.pu-err { display: grid; grid-template-rows: auto 1fr auto; gap: 18px; padding: 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 84px; }
.pu-err-h { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; }
.pu-err-n { display: grid; justify-items: center; align-content: center; width: 92px; height: 92px; border-radius: 20px; background: var(--scene-bg); color: #fff; font: 700 40px/1 var(--m); letter-spacing: -0.04em; }
.pu-err-n small { font: 500 10.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: #cfaeff; margin-bottom: 6px; }
.pu-err h3 { font: 700 clamp(20px, 1.8vw, 24px)/1.2 var(--fh); letter-spacing: -0.02em; }
.pu-err-o { margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.pu-err dl { margin: 0; display: grid; gap: 14px; align-content: start; }
.pu-err dt { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pu-err dd { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.pu-err .tm { padding: 14px 16px; border-radius: 13px; background: var(--acc-soft); }
.pu-err .tm dt { color: var(--acc-text); }
.pu-err .tm dd { color: var(--ink); }
.pu-err > .more { font-size: 14.5px; }
.pu-err > .more .ic { width: 16px; height: 16px; }
.pu-errl { margin-top: 14px; padding: 26px 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pu-errl-k { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.pu-errl ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 36px; }
.pu-errl li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-top: 1px solid var(--line); scroll-margin-top: 84px; }
.pu-errl-n { justify-self: start; font: 600 13px/1 var(--m); padding: 7px 8px; border-radius: 8px; background: var(--lv-stop-bg); color: var(--lv-stop); white-space: nowrap; }
.pu-errl b { font-weight: 600; font-size: 15.5px; }
.pu-errl p { color: var(--ink-2); font-size: 14px; margin-top: 3px; }
.pu-errl-f { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 14.5px; }
.ul { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.ul:hover { color: var(--acc-text); }

.pu-out { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 48px; align-items: center; margin-top: 36px; }
.pu-res { display: grid; gap: 12px; }
.pu-res-i { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pu-res-i .n { grid-row: 1 / span 3; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font: 600 15px/1 var(--m); }
.pu-res-i.ok .n { color: var(--lv-ok); background: var(--lv-ok-bg); }
.pu-res-i.risk .n { color: var(--lv-risk); background: var(--lv-risk-bg); }
.pu-res-i.stop .n { color: var(--lv-stop); background: var(--lv-stop-bg); }
.pu-res-i h3 { font: 650 18px/1.3 var(--fh); letter-spacing: -0.01em; }
.pu-res-i .h { font-weight: 550; color: var(--ink); font-size: 14.5px; }
.pu-res-i p { color: var(--ink-2); font-size: 14.5px; }
.pu-out-r { padding: 32px; border-radius: 26px; background: var(--scene-bg); position: relative; overflow: hidden; }
.pu-out-r::before { content: ""; position: absolute; inset: 30% -20% -40% -20%; background: radial-gradient(closest-side, var(--scene-glow), transparent); }
.pu-dlg { position: relative; border-radius: 18px; padding: 22px; display: grid; gap: 12px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 34px 80px -34px rgba(0, 0, 0, .6); }
.pu-dlg-t { font: 650 18px/1.25 var(--fh); }
.pu-dlg-s { font-size: 13.5px; color: var(--res-muted); }
.pu-dlg-k { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--res-muted); margin-top: 4px; }
.pu-dlg-o { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pu-dlg-o li { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 10px 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pu-dlg-o li.on { box-shadow: inset 0 0 0 1.5px var(--acc); background: var(--res-due-bg); }
.pu-dlg-o i { width: 16px; height: 16px; border-radius: 50%; margin-top: 2px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.pu-dlg-o li.on i { box-shadow: inset 0 0 0 5px var(--acc); }
.pu-dlg-o span { font-size: 12.5px; color: var(--res-muted); line-height: 1.4; }
.pu-dlg-o b { display: block; font-weight: 600; font-size: 14px; color: var(--res-ink); }
.pu-dlg-n { font: 500 12.5px/1.3 var(--m); color: var(--lv-risk); }
.pu-dlg-f { display: grid; gap: 6px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.pu-dlg-l { font-size: 12px; color: var(--res-muted); }
.pu-dlg-f p { font-size: 13.5px; }
.pu-dlg-f em { font-style: normal; font-size: 12px; color: var(--res-muted); }
.pu-dlg-b { display: flex; justify-content: flex-end; gap: 8px; }
.pu-dlg .btn-g { color: var(--res-ink); }

.mt-pl-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.mt-pl-top .more .ic { width: 16px; height: 16px; }
.mt-pls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.mt-pl { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.mt-pl.hot { box-shadow: inset 0 0 0 1.5px var(--acc), 0 24px 60px -36px rgba(107, 47, 179, .55); }
.mt-pl-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mt-pl-h h3 { font: 700 21px/1.1 var(--fh); letter-spacing: -0.02em; }
.mt-pl-b { font: 500 11.5px/1 var(--m); padding: 6px 8px; border-radius: 7px; background: var(--acc-soft); color: var(--acc-text); white-space: nowrap; }
.mt-pl-p { display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.mt-pl-p b { font: 700 26px/1.05 var(--fh); letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mt-pl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; align-content: start; }
.mt-pl li { display: grid; grid-template-columns: auto 1fr; gap: 8px; font-size: 14px; color: var(--ink-2); }
.mt-pl li .ic { width: 16px; height: 16px; color: #0f9a64; margin-top: 2px; }

@media (min-width: 1101px) { .pu-grp-h { position: sticky; top: 96px; align-self: start; } }
@media (max-width: 1100px) {
  .mt-pls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pu-grp { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .pu-out { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 980px) {
  .mt-hero-in { grid-template-columns: minmax(0, 1fr); gap: 36px; padding-block: 28px 40px; }
  .mt-sec { padding-top: 72px; }
  .pu-steps, .pu-errs { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pu-sv { grid-template-columns: minmax(0, 1fr); }
  .pu-sv .tsd-art { min-height: 540px; }
  .pu-errl ul { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mt-hero .cta-btns { width: 100%; }
  .mt-hero .cta-btns .btn { flex: 1 1 100%; }
  .mt-hero .facts dt { font-size: 26px; }
  .pu-steps, .pu-errs, .pu-lvls, .mt-pls, .pu-modes { grid-template-columns: minmax(0, 1fr); }
  .pu-steps li, .pu-grp, .pu-err, .pu-errl, .mt-pl { padding: 20px 18px; }
  .pu-grp { border-radius: 18px; }
  .pu-tbl thead { display: none; }
  .pu-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .pu-tbl tr:last-child { border-bottom: 0; padding-bottom: 0; }
  .pu-tbl tr:first-child { padding-top: 0; }
  .pu-tbl td, .pu-tbl td:last-child { padding: 0; border: 0; font-size: 14.5px; }
  .pu-tbl td:last-child { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
  .pu-tbl td:last-child > * + * { margin-left: 0; }
  .lvl-set { padding: 0; }
  .pu-sv-r { padding: 22px 18px; }
  .pu-err-h { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pu-err-n { width: 76px; height: 76px; font-size: 32px; border-radius: 16px; }
  .pu-errl li { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .pu-out-r { padding: 14px; border-radius: 20px; }
  .pu-dlg { padding: 18px; }
}
.pu-doc .btn-g { color: var(--res-ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* тарифы: три карточки */
.mt-pls.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- маркировка в 1С ---------- */
.oc-hero h1 { font-size: clamp(34px, 3.6vw, 52px); line-height: 1.04; max-width: 19ch; }
.oc-hero .onec-art { background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--scene-line); }
@media (min-width: 981px) { .oc-hero .mt-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }

.oc-swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: center; margin-top: 14px; padding: 28px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.oc-swap::before { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.oc-swap > div { position: relative; display: grid; gap: 6px; }
.oc-swap span { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--scene-ink-2); }
.oc-swap b { font: 700 clamp(20px, 2vw, 26px)/1.15 var(--fh); letter-spacing: -0.02em; }
.oc-swap p { color: var(--scene-ink-2); font-size: 14.5px; }
.oc-swap .was b { color: var(--scene-ink-2); text-decoration: line-through; text-decoration-color: rgba(255, 138, 142, .7); text-decoration-thickness: 2px; }
.oc-swap .now span { color: #cfaeff; }
.oc-swap-a { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 8px rgba(150, 80, 230, .16); }
.oc-swap-a .ic { width: 22px; height: 22px; }

.oc-cfg { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.oc-cfg li { display: grid; gap: 10px; align-content: start; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.oc-cfg-k { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--m); color: var(--muted); letter-spacing: .03em; }
.oc-cfg b { font: 650 19px/1.25 var(--fh); letter-spacing: -0.015em; }

.oc-how { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 48px; align-items: start; margin-top: 36px; }
.oc-steps { list-style: none; margin: 0; padding: 0; display: grid; position: relative; }
.oc-steps li { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding-bottom: 26px; position: relative; }
.oc-steps li:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 40px; bottom: 4px; width: 2px; border-radius: 1px; background: var(--line-2); }
.oc-n { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 600 14px/1 var(--m); background: var(--acc); color: #fff; }
.oc-steps h3 { font: 650 18px/1.3 var(--fh); margin-top: 6px; }
.oc-steps p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.oc-how-r { position: sticky; top: 96px; padding: 28px; border-radius: 24px; background: var(--scene-bg); overflow: hidden; }
.oc-win { container-type: inline-size; position: relative; border-radius: 12px; overflow: hidden; background: #f4f4f1; color: #222; font: 400 12px/1.35 Arial, "Segoe UI", sans-serif; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 30px 70px -30px rgba(0, 0, 0, .7); }
.oc-win-t { display: flex; align-items: center; gap: 8px; padding: 9px 12px; background: #fbed9e; border-bottom: 1px solid #e3d27a; font-weight: 700; font-size: 13px; }
.oc-win-t .sp, .oc-win-f .sp { flex: 1; }
.oc-win-t i { width: 10px; height: 10px; border-radius: 2px; background: rgba(0, 0, 0, .18); }
.oc-win-f { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 9px 12px; border-bottom: 1px solid #d9d9d4; color: #555; }
.oc-win-f b { color: #222; font-weight: 600; }
.oc-b { display: inline-block; padding: 5px 10px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 1px #b9b9b4; font-weight: 600; color: #222; }
.oc-b.p { background: #fbed9e; box-shadow: inset 0 0 0 1px #c9b553; }
.oc-tbl { background: #fff; }
.oc-tr { display: grid; grid-template-columns: 74px minmax(0, 1fr) 66px 74px 36px 104px 70px; gap: 6px; padding: 7px 10px; border-bottom: 1px solid #ecece8; white-space: nowrap; }
.oc-tr > span { overflow: hidden; text-overflow: ellipsis; }
.oc-tr .num { text-align: right; font-variant-numeric: tabular-nums; }
.oc-th { background: #f0f0ec; color: #666; font-weight: 600; }
.oc-tr.sel { background: #fff7cf; }
.oc-tr .ok { color: #2a7a3a; font-weight: 600; }
.oc-tr .no { color: #b04a2a; font-weight: 600; }
.oc-tr > :nth-child(2) { white-space: normal; overflow-wrap: anywhere; }  /* контрагент: при нехватке места — перенос, а не многоточие */
/* колонки окна 1С — по ширине самого окна: узкое окно прячет сумму и число кодов, совсем узкое — ещё статус УПД */
@container (max-width: 600px) {
  .oc-tr { grid-template-columns: 74px minmax(0, 1fr) 66px 104px 70px; }
  .oc-tr > :nth-child(4), .oc-tr > :nth-child(5) { display: none; }
}
@container (max-width: 480px) {
  .oc-tr { grid-template-columns: 64px minmax(0, 1fr) 62px 66px; font-size: 11px; padding: 7px 8px; }
  .oc-tr > :nth-child(6) { display: none; }
}
.oc-dlg { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: center; margin: 12px; padding: 12px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #c9c9c4, 0 10px 30px -14px rgba(0, 0, 0, .4); }
.oc-dlg-t { grid-column: 1 / -1; font-weight: 700; font-size: 13px; }
.oc-r { display: flex; align-items: center; gap: 8px; grid-column: 1; }
.oc-r i { width: 13px; height: 13px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #999; }
.oc-r.on i { box-shadow: inset 0 0 0 4px #c9a400; }
.oc-dlg .oc-b.p { grid-column: 2; grid-row: 2 / span 2; }

.oc-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.oc-card { display: grid; gap: 16px; align-content: start; padding: 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.oc-card h3 { font: 700 22px/1.2 var(--fh); letter-spacing: -0.02em; }
.oc-card-s { color: var(--ink-2); font-size: 15px; margin-top: -6px; }
.oc-src { list-style: none; margin: 0; padding: 0; display: grid; }
.oc-src li { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.oc-src li:first-child { border-top: 0; padding-top: 0; }
.oc-src .ic { width: 17px; height: 17px; color: #0f9a64; margin-top: 3px; }
.oc-note { padding: 14px 16px; border-radius: 13px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font-size: 14px; }
.mt .vs .vs-tbl { margin-top: 36px; }
.oc-after { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-2); }
.oc-after .more .ic { width: 16px; height: 16px; }

.oc-api { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding: 40px; border-radius: 26px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.oc-api::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.oc-api > * { position: relative; }
.oc-api .eyebrow, .oc-api .sub { color: var(--scene-ink-2); }
.oc-api .h2 em { color: #cfaeff; }
.oc-api-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.oc-api-l li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--scene-line); }
.oc-api-l code { font: 600 13px/1.2 var(--m); color: #dcc8ff; }
.oc-api-l span { color: var(--scene-ink-2); font-size: 14px; }

@media (max-width: 1100px) {
  .oc-how { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .oc-how-r { position: static; }
}
@media (max-width: 980px) {
  .oc-cfg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .oc-two, .oc-api { grid-template-columns: minmax(0, 1fr); }
  .mt-pls.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .oc-cfg, .mt-pls.n3 { grid-template-columns: minmax(0, 1fr); }
  .oc-cfg li, .oc-card { padding: 20px 18px; }
  .oc-swap { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .oc-swap-a { transform: rotate(90deg); justify-self: center; }
  .oc-how-r { padding: 12px; border-radius: 18px; }
  .oc-api { padding: 24px 18px; }
  .oc-api-l li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* общие: инструкции базы знаний карточками */
.mt-docs { padding-top: 72px; }
.mt-h3 { font: 700 clamp(24px, 2.4vw, 32px)/1.15 var(--fh); letter-spacing: -0.025em; }
.mt-doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.mt-doc { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550; font-size: 15px; line-height: 1.35; transition: box-shadow .2s ease, transform .2s ease; }
.mt-doc:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.mt-doc > .ic { width: 16px; height: 16px; color: var(--muted); }

/* ---------- ТСД ---------- */
.td-art { background: transparent; min-height: 540px; overflow: visible; }
.td-art::before { inset: auto -10% -10% -10%; }
.td-art .tsd { top: 12px; width: 252px; }
.td-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.td-tile { position: relative; display: grid; justify-items: center; gap: 5px; padding: 10px 4px 8px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e8e6f0; text-align: center; }
.td-tile .ic { width: 18px; height: 18px; color: #6b2fb3; }
.td-tile b { font: 600 8.5px/1.15 var(--f); color: #15131d; min-height: 2.3em; display: grid; place-items: center; }
.td-tile i { position: absolute; left: 5px; top: 4px; font: 600 8px/1 var(--m); font-style: normal; color: #9a97ab; }
.td-tile.new { background: #f3e8ff; box-shadow: inset 0 0 0 1.5px #6b2fb3; }

.td-req { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.td-req li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550; font-size: 14.5px; }
.td-req .ic { width: 16px; height: 16px; color: #0f9a64; }
.td-models { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.td-model { display: grid; gap: 8px; align-content: start; justify-items: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.td-model h3 { font: 650 18.5px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 6px; }
.td-model-s { font: 500 12.5px/1.35 var(--m); color: var(--muted); }
.td-model p:last-child { color: var(--ink-2); font-size: 14.5px; }
.td-no { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--lv-stop-bg); color: var(--ink); font-size: 14.5px; }
.td-no .ic { width: 18px; height: 18px; color: var(--lv-stop); flex: none; }

.td-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.td-f { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.td-f.big { grid-column: span 2; grid-row: span 2; background: var(--scene-bg); color: var(--scene-ink); box-shadow: none; padding: 30px; position: relative; overflow: hidden; }
.td-f.big::before { content: ""; position: absolute; inset: auto -20% -40% 20%; height: 80%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.td-f.big > * { position: relative; }
.td-f.big h3 { font-size: clamp(24px, 2.4vw, 32px); }
.td-f.big p { color: var(--scene-ink-2); font-size: 15.5px; max-width: 46ch; }
.td-f.big .pu-way-ic { background: rgba(255, 255, 255, .08); color: #dcc8ff; }
.td-f.big .more { margin-top: auto; color: #dcc8ff; }
.td-f-h { display: flex; justify-content: space-between; align-items: center; }
.td-key { min-width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; display: grid; place-items: center; font: 600 13px/1 var(--m); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -2px 0 var(--line-2); }
.td-f.big .td-key { color: #dcc8ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 -2px 0 rgba(255, 255, 255, .2); }
.td-f h3 { font: 700 19px/1.2 var(--fh); letter-spacing: -0.015em; margin-top: 4px; }
.td-f p { color: var(--ink-2); font-size: 14.5px; }
.td-f .more { font-size: 14.5px; margin-top: auto; padding-top: 4px; }
.td-f .more .ic { width: 16px; height: 16px; }

.td-eyes { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); border-radius: 26px; overflow: hidden; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.td-eyes .tsd-art { min-height: 600px; }
.td-eyes-r { padding: 40px; display: grid; gap: 14px; align-content: start; }
.td-eyes-r .h2 { margin-top: 4px; }
.td-eyes-r .sub { margin-top: 0; }
.td-eyes-l { list-style: none; margin: 8px 0 0; padding: 0; display: grid; }
.td-eyes-l li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; }
.td-eyes-l b { font-weight: 600; }
.td-eyes-l span { color: var(--ink-2); }
.td-eyes-r .more .ic { width: 16px; height: 16px; }

.td-qrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.td-qr { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; padding: 26px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.td-qr img { width: 168px; height: 168px; padding: 10px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--line); }
.td-qr > div { display: grid; gap: 10px; justify-items: start; }
.td-qr h3 { font: 700 21px/1.2 var(--fh); letter-spacing: -0.02em; }
.td-qr ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14.5px; }
.td-qr .more .ic { width: 16px; height: 16px; }

.td-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.td-links .oc-card { gap: 12px; }
.td-links .oc-card h3 { font-size: 19px; }
.td-links .oc-card p { color: var(--ink-2); font-size: 14.5px; }
.td-links .more { font-size: 14.5px; }
.td-links .more .ic { width: 16px; height: 16px; }
.td-lang { display: grid; gap: 6px; font-size: 13.5px !important; }
.td-lang span { display: flex; align-items: center; gap: 8px; }
.td-lang code { min-width: 44px; text-align: center; font: 600 11.5px/1 var(--m); padding: 5px 7px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-text); }
.td-f.wide { grid-column: span 2; }
.td-tablo { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: 460px; }
.td-tablo li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px; background: rgba(255, 255, 255, .06); box-shadow: inset 3px 0 0 currentColor; }
.td-tablo .ok { color: #62d6a0; }
.td-tablo .stop { color: #ff8a8e; }
.td-tablo .risk { color: #ffc566; }
.td-tablo .info { color: #dcc8ff; }

@media (max-width: 1100px) {
  .td-models, .td-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .td-f.big { grid-row: auto; }
  .td-qrs { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 980px) {
  .mt-doc-grid, .td-links { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .td-eyes { grid-template-columns: minmax(0, 1fr); }
  .td-eyes .tsd-art { min-height: 540px; }
  .td-art { min-height: 500px; }
}
@media (max-width: 640px) {
  .mt-doc-grid, .td-links, .td-models, .td-feats { grid-template-columns: minmax(0, 1fr); }
  .td-f.big, .td-f.wide { grid-column: auto; }
  .td-f.big { padding: 22px 18px; }
  .td-f, .td-model { padding: 20px 18px; }
  .td-eyes-r { padding: 24px 18px; }
  .td-eyes-l li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .td-qr { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
  .td-qr img { width: 150px; height: 150px; }
  .td-art { min-height: 470px; }
  .td-art .tsd { width: 236px; }
}
@media (max-width: 640px) { .td-hero .facts dt { font-size: 22px; } }

/* ---------- станция маркировки ---------- */
.sm-hero h1 { font-size: clamp(36px, 4.2vw, 58px); max-width: 15ch; }
.sm-hero .facts > div:first-child dt { color: #ffcf5c; }
.sm-art { display: grid; place-items: center; }
.sm-art canvas { width: 100%; height: auto; max-width: 680px; aspect-ratio: 680 / 520; --iso-grid: rgba(255, 255, 255, .06); --iso-fade: #130f22; }

.sm-how { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 40px; align-items: center; margin-top: 36px; }
.sm-was { display: grid; gap: 12px; align-content: start; }
.sm-was-k { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sm-was-k.now { color: var(--acc-text); margin-top: 10px; }
.sm-was ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: w; }
.sm-was ol li { counter-increment: w; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: center; color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--lv-stop) 60%, transparent); }
.sm-was ol li::before { content: counter(w); width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font: 600 12px/1 var(--m); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; }
.sm-now { padding: 16px 18px; border-radius: 14px; background: var(--acc-soft); color: var(--ink); font-weight: 550; }
.sm-how-r { padding: 26px; border-radius: 26px; background: var(--scene-bg); }

.sm-scr { border-radius: 14px; overflow: hidden; background: #fff; color: #15131d; font: 400 12px/1.35 var(--f); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -30px rgba(0, 0, 0, .7); }
.sm-top { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #ecebf2; }
.sm-top .cab-logo { display: inline-flex; align-items: center; gap: 6px; font: 600 8.5px/1.05 var(--f); color: #4b485c; }
.sm-top .cab-logo .dm { width: 20px; height: 20px; color: #6b2fb3; }
.sm-top > b { font: 650 13px/1 var(--fh); }
.sm-top .sp { flex: 1; }
.sm-dev { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #4b485c; }
.sm-dev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0f9a64; }
.sm-body { display: grid; grid-template-columns: 0.9fr 1.5fr 0.8fr; min-height: 300px; }
.sm-col { padding: 12px; background: #f7f6fb; display: grid; gap: 8px; align-content: start; }
.sm-col:last-child { border-left: 1px solid #ecebf2; }
.sm-col:first-child { border-right: 1px solid #ecebf2; }
.sm-k { font: 500 10px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #77748a; }
.sm-goods, .sm-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.sm-goods li { display: grid; gap: 2px; padding: 8px 9px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #e8e6f0; }
.sm-goods li.on { box-shadow: inset 0 0 0 1.5px #6b2fb3; }
.sm-goods b { font-weight: 600; font-size: 11.5px; }
.sm-goods span { font-size: 10.5px; color: #77748a; }
.sm-log li { display: flex; justify-content: space-between; gap: 6px; font: 500 10.5px/1.3 var(--m); color: #4b485c; padding: 5px 0; border-bottom: 1px solid #ecebf2; }
.sm-log b { font-weight: 600; color: #15131d; }
.sm-mid { padding: 12px; display: grid; gap: 10px; align-content: start; }
.sm-tablo { display: grid; gap: 2px; padding: 14px; border-radius: 12px; background: #0f9a64; color: #fff; }
.sm-tablo b { font: 750 34px/1 var(--fh); letter-spacing: -0.03em; }
.sm-tablo span { font: 650 15px/1.2 var(--fh); }
.sm-tablo em { font-style: normal; font-size: 10.5px; opacity: .85; }
.sm-lbl { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; padding: 10px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px #d9d6e4, 0 6px 16px -10px rgba(0, 0, 0, .3); }
.sm-lbl .dm { width: 54px; height: 54px; color: #100e19; }
.sm-lbl div { display: grid; gap: 1px; font-size: 10.5px; color: #33303f; }
.sm-lbl b { font-size: 12px; color: #100e19; }
.sm-bar { display: flex; justify-content: space-between; gap: 8px; }
.sm-mode, .sm-b { padding: 6px 9px; border-radius: 8px; font-size: 11px; font-weight: 600; }
.sm-mode { background: #6b2fb3; color: #fff; }
.sm-b { box-shadow: inset 0 0 0 1px #d9d6e4; }

.sm-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.sm-mode-c { display: grid; gap: 10px; align-content: start; justify-items: start; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sm-mode-c h3 { font: 700 20px/1.2 var(--fh); letter-spacing: -0.015em; margin-top: 4px; }
.sm-mode-c p { color: var(--ink-2); font-size: 14.5px; }
.sm-colors { margin-top: 14px; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sm-colors ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.sm-colors li { display: grid; gap: 6px; align-content: start; }
.sm-colors i { height: 34px; border-radius: 9px; }
.sm-colors b { font-weight: 600; font-size: 14px; }
.sm-colors span { color: var(--ink-2); font-size: 13px; line-height: 1.4; }

.sm-own { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 14px; padding: 22px 26px; border-radius: 18px; background: var(--scene-bg); color: var(--scene-ink); }
.sm-own b { font: 650 18px/1.3 var(--fh); }
.sm-own p { color: var(--scene-ink-2); font-size: 14.5px; margin-top: 4px; max-width: 70ch; }

.sm-feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.sm-f { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sm-f h3 { font: 700 18px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 4px; }
.sm-f p { color: var(--ink-2); font-size: 14.5px; }

.sm-tsd { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); border-radius: 26px; overflow: hidden; background: var(--scene-bg); color: var(--scene-ink); }
.sm-tsd .td-art { min-height: 520px; }
.sm-tsd .td-art .tsd { top: 40px; }
.sm-tsd-r { padding: 44px 40px; display: grid; gap: 14px; align-content: center; }
.sm-tsd-r .eyebrow, .sm-tsd-r .sub { color: var(--scene-ink-2); }
.sm-tsd-r .h2 { margin-top: 0; }
.sm-tsd-r .h2 em { color: #cfaeff; }
.sm-tsd-r .sub { margin-top: 0; }
.sm-tsd-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 8px 0 4px; border-block: 1px solid var(--scene-line); }
.sm-tsd-n div { padding: 16px 14px 16px 0; }
.sm-tsd-n div + div { padding-left: 16px; border-left: 1px solid var(--scene-line); }
.sm-tsd-n dt { font: var(--h-w) clamp(22px, 2vw, 28px)/1 var(--fh); letter-spacing: -0.03em; color: #fff; }
.sm-tsd-n div:first-child dt { color: #ffcf5c; }
.sm-tsd-n dd { margin: 6px 0 0; color: var(--scene-ink-2); font-size: 13px; line-height: 1.4; }
.sm-tsd-r .more { color: #dcc8ff; }
.sm-tsd-r .more .ic { width: 16px; height: 16px; }

.sm-steps { margin-top: 36px; max-width: 760px; }

@media (max-width: 1100px) {
  .sm-how { grid-template-columns: minmax(0, 1fr); }
  .sm-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-colors ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .sm-modes { grid-template-columns: minmax(0, 1fr); }
  .sm-tsd { grid-template-columns: minmax(0, 1fr); }
  .sm-tsd .td-art { min-height: 480px; }
}
@media (max-width: 640px) {
  .sm-hero .facts dt { font-size: 22px; }
  .sm-feats { grid-template-columns: minmax(0, 1fr); }
  .sm-f, .sm-mode-c { padding: 20px 18px; }
  .sm-colors { padding: 20px 18px; }
  .sm-colors ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm-how-r { padding: 12px; border-radius: 18px; }
  .sm-body { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sm-body .sm-col { display: none; }
  .sm-tsd-r { padding: 26px 18px; }
  .sm-tsd-n { grid-template-columns: minmax(0, 1fr); }
  .sm-tsd-n div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--scene-line); }
  .sm-own { padding: 20px 18px; }
}

/* общее: подпись к источнику цифр */
.mt-src { margin-top: 12px; font: 500 12px/1.4 var(--m); color: var(--muted); }

/* ---------- крупный бизнес ---------- */
.en-hero h1 { font-size: clamp(36px, 4.2vw, 58px); max-width: 15ch; }
.en-card { border-radius: 18px; padding: 22px; display: grid; gap: 16px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 34px 80px -34px rgba(20, 12, 70, .55); }
.en-card-h { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.en-card-h .cab-logo { display: inline-flex; align-items: center; gap: 6px; font: 600 8.5px/1.05 var(--f); color: var(--res-muted); }
.en-card-h .cab-logo .dm { width: 22px; height: 22px; color: var(--acc); }
.en-card-h b { display: block; font: 650 16px/1.2 var(--fh); }
.en-card-h div span { font-size: 12.5px; color: var(--res-muted); }
.en-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.en-big b { font: 750 clamp(40px, 4.4vw, 58px)/1 var(--fh); letter-spacing: -0.04em; color: var(--acc-text); font-variant-numeric: tabular-nums; }
.en-big span { font-size: 14px; color: var(--res-muted); }
.en-steps { list-style: none; margin: 0; padding: 0; display: grid; }
.en-steps li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.en-steps li:first-child { border-top: 0; }
.en-steps b { font-weight: 550; text-align: right; }
.en-steps .st { font: 600 12px/1 var(--f); padding: 6px 9px; border-radius: 999px; white-space: nowrap; }
.en-steps .st.ok { color: var(--lv-ok); background: var(--lv-ok-bg); }
.en-steps .st.view { color: var(--lv-info); background: var(--lv-info-bg); }
.en-steps .st.draft { color: var(--res-muted); background: var(--res-due-bg); }
.en-bar { height: 6px; border-radius: 3px; background: var(--res-due-bg); overflow: hidden; }
.en-bar i { display: block; height: 100%; border-radius: 3px; background: var(--acc); }

/* ---------- API ---------- */
.api-hero h1 { font-size: clamp(36px, 4.2vw, 58px); max-width: 15ch; }
.api-code { border-radius: 16px; overflow: hidden; background: #0d0b14; color: #e6e3f2; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 34px 80px -34px rgba(0, 0, 0, .7); }
.api-code-h { display: flex; align-items: center; gap: 6px; padding: 11px 14px; background: rgba(255, 255, 255, .05); border-bottom: 1px solid rgba(255, 255, 255, .08); font: 500 12px/1 var(--m); color: #a8a4bf; }
.api-code-h i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.api-code-h span { margin-left: 8px; }
.api-code pre { margin: 0; padding: 18px 18px 20px; overflow-x: auto; font: 500 12.5px/1.6 var(--m); white-space: pre; }
.api-code .k { color: #cfaeff; }
.api-code .c { color: #62d6a0; }
.api-code .p { color: #9fc5ff; }
.api-code .s { color: #ffd38a; }
.api-code .n { color: #ff9fb6; }
.api-code .b { color: #cfaeff; }
.api-m { display: grid; gap: 10px; align-content: start; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.api-m-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.api-m-h code { font: 500 12.5px/1.3 var(--m); color: var(--ink-2); word-break: break-all; }
.api-verb { font: 700 11px/1 var(--m); padding: 6px 8px; border-radius: 7px; letter-spacing: .04em; }
.api-verb.get { color: var(--lv-ok); background: var(--lv-ok-bg); }
.api-verb.post { color: var(--lv-info); background: var(--lv-info-bg); }
.api-m h3 { font: 700 20px/1.2 var(--fh); letter-spacing: -0.015em; margin-top: 4px; }
.api-m p:last-child { color: var(--ink-2); font-size: 14.5px; }
.api-safe { align-self: start; }
.api-safe .td-eyes-l { margin-top: 0; }
.api-safe .td-eyes-l li { grid-template-columns: 170px 1fr; }

/* ---------- импортёрам ---------- */
.im-hero h1 { font-size: clamp(34px, 3.8vw, 52px); max-width: 17ch; }
.im-art { display: grid; grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr); gap: 14px; align-items: center; }
.im-side { display: grid; gap: 10px; justify-items: center; }
.im-k { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--scene-ink-2); }
.im-tsd.tsd { position: relative; left: auto; top: auto; transform: none; width: 210px; padding: 12px 11px 14px; border-radius: 30px 30px 18px 18px; }
.im-tsd .tsd-keys { grid-template-columns: repeat(3, 1fr); margin: 10px 8px 0; }
.im-arrow { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 8px rgba(150, 80, 230, .16); }
.im-arrow .ic { width: 20px; height: 20px; }
.im-win { width: 100%; display: grid; gap: 10px; padding: 16px; border-radius: 16px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--res-line), 0 30px 70px -30px rgba(0, 0, 0, .6); }
.im-t { display: flex; align-items: center; gap: 8px; font: 650 14px/1.2 var(--fh); }
.im-t .dm { width: 18px; height: 18px; color: var(--acc); flex: none; }
.im-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; color: var(--res-muted); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.im-row b { color: var(--res-ink); font-variant-numeric: tabular-nums; }
.im-f { display: grid; gap: 4px; padding: 10px; border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--acc); font-size: 11.5px; color: var(--res-muted); }
.im-f b { font: 600 13px/1.2 var(--m); color: var(--res-ink); }
.im-win .btn { justify-self: end; }
.im-two { margin-top: 14px; }
.im-two .more, .en-links .more { font-size: 14.5px; }
.im-two .more .ic, .en-links .more .ic { width: 16px; height: 16px; }
.en-links .oc-card p { color: var(--ink-2); font-size: 14.5px; }
.en-links .oc-card h3 { font-size: 19px; }

@media (max-width: 640px) {
  .en-card, .api-m { padding: 18px; }
  .en-steps li { flex-wrap: wrap; }
  .api-code pre { font-size: 11px; padding: 14px; }
  .api-safe .td-eyes-l li { grid-template-columns: minmax(0, 1fr); }
  .im-art { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .im-arrow { transform: rotate(90deg); }
}

/* правки 20.11: числа без переноса, плашки по содержимому, отступ полосы от заголовка */
.im-row b, .im-tsd .ts-pr b { white-space: nowrap; }
.im-tsd.tsd { width: 220px; }
.oc-card > .lvl { justify-self: start; }
.mt-head + .oc-swap { margin-top: 36px; }

/* ---------- живые сцены (site/public/materials/scenes.js): состояния, которые ставит скрипт ---------- */
.en-card.sim .en-steps .st { transition: background-color .3s, color .3s; }
.en-bar i { transition: width .6s cubic-bezier(.4, 0, .2, 1); }
.api-code pre { min-height: calc(14 * 1.6em + 40px); }
.api-code.sim .ln { opacity: 0; transition: opacity .2s; }
.api-code.sim .ln.on { opacity: 1; }
.im-f b { min-height: 1.25em; }
.mt-flow { animation: mt-flow .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes mt-flow { 40% { scale: 1.1; box-shadow: 0 0 0 16px rgba(150, 80, 230, .28); } }
.mt-press { animation: mt-press .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes mt-press { 35% { scale: .92; filter: brightness(1.15); } }
.mt-key { animation: mt-key .4s ease-out; }
@keyframes mt-key { 40% { scale: .93; background: #ece3ff; } }
.mt-pick { animation: mt-pick .9s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes mt-pick { 40% { scale: 1.1; box-shadow: inset 0 0 0 2px #6b2fb3, 0 10px 22px -8px rgba(107, 47, 179, .65); } }
.sm-tablo { transition: background-color .35s, color .35s; }
.sm-tablo.idle { background: #8b889c; }
.sm-tablo.weigh { background: #c9b6ef; color: #2a1650; }
.sm-tablo.print { background: #6b2fb3; }
.sm-tablo.done { background: #0f9a64; }
.sm-log li.new { animation: sm-new .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes sm-new { from { opacity: 0; translate: 0 -6px; background: #ecfaf3; } }
.oc-tr { transition: background-color .3s; }
.pu-dlg.sim .pu-dlg-f p { min-height: 2.9em; }
@media (prefers-reduced-motion: reduce) { .mt-flow, .mt-press, .mt-key, .mt-pick, .sm-log li.new { animation: none; } }

/* ---------- интерактив 20.11: расчёт документов, консоль API, вид ввода импорта ---------- */
.en-calc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 36px; margin: 36px 0 14px; padding: 32px; border-radius: 26px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.en-calc::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 110%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.en-calc > * { position: relative; }
.en-calc .ef-k { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--scene-ink-2); }
.en-calc-l { display: grid; gap: 14px; align-content: center; }
.en-calc-n { display: block; font: 750 clamp(44px, 5vw, 68px)/1 var(--fh); letter-spacing: -0.04em; color: #fff; font-variant-numeric: tabular-nums; }
.en-calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #9c42f0 var(--p, 100%), rgba(255, 255, 255, .12) var(--p, 100%)); outline: none; cursor: pointer; }
.en-calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(156, 66, 240, .35), 0 6px 16px rgba(0, 0, 0, .4); transition: box-shadow .2s; }
.en-calc input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 6px rgba(156, 66, 240, .35); }
.en-calc input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgba(207, 174, 255, .8); }
.en-calc-p { display: flex; flex-wrap: wrap; gap: 6px; }
.en-calc-p button { border: 0; cursor: pointer; padding: 8px 11px; border-radius: 9px; font: 600 13px/1 var(--m); color: var(--scene-ink-2); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--scene-line); transition: background-color .15s, color .15s; }
.en-calc-p button:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.en-calc-p button[aria-pressed="true"] { color: #fff; background: var(--acc); box-shadow: none; }
.en-calc-p button:focus-visible { outline: 2px solid #cfaeff; outline-offset: 2px; }
.en-calc-r { display: grid; gap: 16px; align-content: start; }
.en-calc-o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--scene-line); }
.en-calc-o div { padding: 16px 14px 16px 0; }
.en-calc-o div + div { padding-left: 16px; border-left: 1px solid var(--scene-line); }
.en-calc-o dt { font: 750 clamp(28px, 2.8vw, 40px)/1 var(--fh); letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.en-calc-o div:first-child dt { color: #ffcf5c; }
.en-calc-o .czk dt { color: #ff8a8e; }
.en-calc-o dd { margin: 8px 0 0; color: var(--scene-ink-2); font-size: 13px; line-height: 1.4; }
.en-calc-t { display: grid; grid-template-columns: repeat(17, minmax(0, 1fr)); gap: 5px; }
.en-calc-t i { aspect-ratio: 1; border-radius: 4px; background: linear-gradient(160deg, #b98cff, #7b3fd0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); transition: opacity .3s, transform .3s cubic-bezier(.3, 1.4, .5, 1); }
.en-calc-t i.part { background: linear-gradient(90deg, #b98cff 34%, rgba(255, 255, 255, .1) 34%); }
.en-calc-t i.off { opacity: .1; transform: scale(.6); }
.en-calc-s { color: var(--scene-ink-2); font-size: 13.5px; }

.api-con { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 14px; margin-top: 36px; align-items: stretch; }
.api-ms { display: grid; gap: 10px; margin: 0; grid-template-columns: minmax(0, 1fr); align-content: start; }
button.api-m { display: grid; gap: 8px; text-align: left; font: inherit; color: inherit; cursor: pointer; border: 0; padding: 20px 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, background-color .2s, transform .2s; }
button.api-m:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
button.api-m[aria-selected="true"] { box-shadow: inset 0 0 0 1.5px var(--acc), 0 18px 40px -26px rgba(107, 47, 179, .6); }
button.api-m:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
button.api-m strong { font: 700 19px/1.2 var(--fh); letter-spacing: -0.015em; }
.api-m-d { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
button.api-m[aria-selected="false"] .api-m-d { display: none; }
.api-panels { display: grid; }
.api-panels .api-p { display: grid; grid-template-rows: auto 1fr; }
.api-panels .api-p[hidden] { display: none; }
.api-panels pre { min-height: 0; }
.api-p.lines .ln { animation: ln-in .35s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes ln-in { from { opacity: 0; translate: 6px 0; } }

.im-sw { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 32px; align-items: center; margin: 36px 0 14px; padding: 28px; border-radius: 24px; background: var(--scene-bg); }
.im-seg { display: grid; gap: 6px; padding: 6px; border-radius: 14px; background: rgba(255, 255, 255, .06); align-self: center; }
.im-seg button { border: 0; cursor: pointer; padding: 12px 18px; border-radius: 10px; font: 600 15px/1 var(--f); color: var(--scene-ink-2); background: transparent; text-align: left; white-space: nowrap; transition: background-color .15s, color .15s; }
.im-seg button:hover { color: #fff; }
.im-seg button[aria-pressed="true"] { background: var(--acc); color: #fff; }
.im-seg button:focus-visible { outline: 2px solid #cfaeff; outline-offset: 2px; }
.im-form { max-width: 560px; justify-self: start; }
.im-fp { display: grid; gap: 8px; }
.im-fp[hidden] { display: none; }
.im-fk { font: 500 11.5px/1.3 var(--m); color: var(--res-muted); }
.im-fn { font-size: 12.5px; color: var(--res-muted); }
.im-form .im-f { box-shadow: inset 0 0 0 1px var(--line); }
.im-form .im-f:first-of-type { box-shadow: inset 0 0 0 1.5px var(--acc); }

@media (max-width: 980px) {
  .en-calc, .api-con { grid-template-columns: minmax(0, 1fr); }
  .im-sw { grid-template-columns: minmax(0, 1fr); }
  .im-seg { grid-template-columns: 1fr 1fr; }
  .im-seg button { text-align: center; }
}
@media (max-width: 640px) {
  .en-calc { padding: 22px 18px; border-radius: 20px; }
  .en-calc-o { grid-template-columns: minmax(0, 1fr); }
  .en-calc-o div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--scene-line); }
  .en-calc-t { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
  button.api-m { padding: 16px 18px; }
  .im-sw { padding: 14px; border-radius: 20px; }
}
@media (prefers-reduced-motion: reduce) { .api-p.lines .ln { animation: none; } .en-calc-t i { transition: none; } }

/* ---------- переход к бесплатному инструменту одной строкой (tool_link) ---------- */
.mt-tool { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px 11px 11px; border-radius: 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.4; text-decoration: none; transition: box-shadow .2s, color .2s; }
.mt-tool:hover { box-shadow: inset 0 0 0 1px var(--acc); color: var(--acc-text); }
.mt-tool:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.mt-tool-ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.mt-tool-ic .ic { width: 18px; height: 18px; }
.mt-tool > .ic { width: 16px; height: 16px; color: var(--acc-text); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.mt-tool:hover > .ic { transform: translateX(4px); }
.oc-card .mt-tool { margin-top: 16px; }
.oc-steps .mt-tool { margin-top: 12px; }
.mt-line { margin-top: 28px; max-width: 72ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }  /* строка текста в конце раздела: ссылка без плашки */
.mt-line a { color: var(--acc-text); }
.mt-tool.dl:hover > .ic { transform: translateY(2px); }  /* скачивание: стрелка вниз, а не вбок */
@media (prefers-reduced-motion: reduce) { .mt-tool > .ic { transition: none; } }

/* ---------- доработка под вас ---------- */
.mt-dev { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: 40px; align-items: center; padding: 40px; border-radius: 26px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.mt-dev::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.mt-dev > * { position: relative; }
.mt-dev .eyebrow, .mt-dev .sub { color: var(--scene-ink-2); }
.mt-dev .h2 em { color: #cfaeff; }
.mt-dev-f { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; justify-items: stretch; }
.mt-dev-f li { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--scene-line); }
.mt-dev-f li.tm { background: rgba(156, 66, 240, .18); box-shadow: inset 0 0 0 1.5px rgba(207, 174, 255, .55), 0 0 30px rgba(156, 66, 240, .25); }
.mt-dev-ic { grid-row: 1 / span 2; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #dcc8ff; }
.mt-dev-ic .ic { width: 20px; height: 20px; }
.mt-dev-ic .dm { width: 24px; height: 24px; color: #fff; }
.mt-dev-f b { font: 650 16px/1.2 var(--fh); }
.mt-dev-f li > span:last-child { color: var(--scene-ink-2); font-size: 13px; }
.mt-dev-f > i { justify-self: center; width: 2px; height: 26px; position: relative; background: linear-gradient(var(--scene-line), rgba(207, 174, 255, .5)); }
.mt-dev-f > i::after { content: ""; position: absolute; left: -3px; top: 0; width: 8px; height: 8px; border-radius: 50%; background: #cfaeff; box-shadow: 0 0 10px #9c42f0; animation: dev-run 1.8s cubic-bezier(.4, 0, .2, 1) infinite; }
.mt-dev-f > i:nth-of-type(2)::after { animation-delay: .9s; animation-direction: reverse; }
@keyframes dev-run { 0% { top: -4px; opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { top: 22px; opacity: 0; } }

/* ---------- О Трумарке ---------- */
.ab-hero h1 { font-size: clamp(36px, 4.2vw, 58px); max-width: 15ch; }
.ab-player { display: grid; gap: 14px; padding: 14px; border-radius: 22px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--scene-line), 0 34px 80px -34px rgba(0, 0, 0, .7); color: var(--scene-ink); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.ab-player:hover { box-shadow: inset 0 0 0 1px rgba(207, 174, 255, .45), 0 34px 80px -34px rgba(0, 0, 0, .7); }
.ab-player:hover .ab-play { transform: translate(-50%, -50%) scale(1.08); }
.ab-scr { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #3b1d66, #120d1f 70%); }
.ab-lbl { position: absolute; left: 14%; top: 22%; width: 34%; aspect-ratio: 58 / 40; display: grid; grid-template-columns: auto 1fr; grid-template-rows: repeat(3, 1fr); gap: 6% 8%; padding: 6%; border-radius: 6px; background: #fff; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); transform: rotate(-4deg); }
.ab-lbl .dm { grid-row: 1 / span 3; height: 100%; width: auto; aspect-ratio: 1; color: #100e19; }
.ab-lbl i { display: block; border-radius: 3px; background: #d9d6e4; }
.ab-lbl i:first-of-type { background: #100e19; opacity: .75; }
.ab-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--acc); color: #fff; box-shadow: 0 0 0 10px rgba(156, 66, 240, .25); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.ab-play svg { width: 26px; height: 26px; margin-left: 3px; }
.ab-play.sm { width: 44px; height: 44px; box-shadow: 0 0 0 7px rgba(156, 66, 240, .22); }
.ab-play.sm svg { width: 18px; height: 18px; }
.ab-dur { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; border-radius: 6px; background: rgba(0, 0, 0, .7); color: #fff; font: 600 12px/1 var(--m); }
.ab-meta { display: grid; gap: 4px; padding: 0 4px 2px; }
.ab-meta b { font: 650 16.5px/1.3 var(--fh); }
.ab-meta span { font: 500 12.5px/1.3 var(--m); color: var(--scene-ink-2); }

.ab-line { list-style: none; margin: 40px 0 0; padding: 0; display: grid; position: relative; }
.ab-line::before { content: ""; position: absolute; left: 61px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--acc), var(--line-2)); border-radius: 1px; }
.ab-line li { display: grid; grid-template-columns: 124px 1fr; gap: 24px; padding: 0 0 30px; position: relative; }
.ab-y { justify-self: center; align-self: start; position: relative; z-index: 1; min-width: 88px; text-align: center; padding: 8px 10px; border-radius: 10px; font: 600 13px/1 var(--m); background: var(--card); color: var(--acc-text); box-shadow: inset 0 0 0 1.5px var(--acc); }
.ab-line li:last-child .ab-y, .ab-line li.born .ab-y { background: var(--acc); color: #fff; }
.ab-line h3 { font: 700 20px/1.25 var(--fh); letter-spacing: -0.015em; }
.ab-line p { color: var(--ink-2); font-size: 15.5px; margin-top: 6px; max-width: 70ch; }
.ab-q { margin: 8px 0 0; padding: 30px 34px; border-radius: 22px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.ab-q::before { content: "«"; position: absolute; right: 24px; top: -30px; font: 700 180px/1 var(--fh); color: rgba(207, 174, 255, .12); }
.ab-q p { position: relative; font: 650 clamp(20px, 2.2vw, 28px)/1.3 var(--fh); letter-spacing: -0.015em; max-width: 46ch; }

.ab-vs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.ab-v { display: grid; gap: 8px; align-content: start; padding: 12px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .2s; }
.ab-v:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.ab-v-th { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 12px; background: radial-gradient(120% 90% at 30% 20%, #3b1d66, #120d1f 70%); margin-bottom: 4px; }
.ab-v-d { font: 500 12px/1 var(--m); color: var(--muted); padding: 0 4px; }
.ab-v b { font: 650 15.5px/1.3 var(--fh); padding: 0 4px; }
.ab-v-n { font-size: 13px; color: var(--muted); padding: 0 4px 4px; }

.ab-team { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ab-team .oc-card p { color: var(--ink-2); font-size: 14.5px; }
.ab-team .oc-card h3 { font-size: 18.5px; }
.ab-team .more { font-size: 14.5px; }
.ab-team .more .ic { width: 16px; height: 16px; }

.ab-cont { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; padding: 40px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ab-dl { margin: 0; display: grid; }
.ab-dl div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.ab-dl div:first-child { border-top: 0; }
.ab-dl dt { font: 500 11px/1.6 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.ab-dl dd { margin: 0; font-size: 15.5px; }
.ab-dl a { color: var(--ink); font-weight: 600; }
.ab-dl a:hover { color: var(--acc-text); }

@media (max-width: 1100px) {
  .ab-vs, .ab-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .mt-dev, .ab-cont { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .mt-dev, .ab-cont { padding: 24px 18px; }
  .ab-vs, .ab-team { grid-template-columns: minmax(0, 1fr); }
  .ab-line::before { left: 43px; }
  .ab-line li { grid-template-columns: 88px 1fr; gap: 14px; }
  .ab-y { min-width: 70px; font-size: 12px; padding: 7px 6px; }
  .ab-q { padding: 24px 20px; }
  .ab-dl div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .mt-dev-f > i::after { animation: none; top: 9px; } }

/* ---------- весовой товар (/markirovka-vesovogo-tovara/, класс страницы vt-page, префикс vt-) ---------- */
@media (min-width: 981px) { .vt-hero .mt-hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.vt-hero h1 em { font-style: normal; color: #cfaeff; }
.vt-art { position: relative; }
.vt-art canvas { display: block; width: 100%; height: auto; --iso-grid: rgba(255, 255, 255, .06); }
.vt-chip { position: absolute; right: 0; top: 0; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 8px 13px 8px 10px; border-radius: 999px; background: rgba(15, 154, 100, .18); color: #c6f5df; box-shadow: inset 0 0 0 1px rgba(61, 220, 151, .4); font: 500 13px/1.2 var(--f); }
.vt-chip .ic { width: 16px; height: 16px; color: #3ddc97; }
.vt-chip b { color: #fff; font-weight: 650; }

/* этикетка: термобумага, код с весом, нетто, брутто, даты */
.vt-lbl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 12px; align-items: center; padding: 12px 14px 10px; border-radius: 8px; background: #fff; color: #100e19; box-shadow: 0 0 0 1px #dcd8ea, 0 22px 44px -20px rgba(0, 0, 0, .6); font: 500 11.5px/1.35 var(--f); }
.vt-lbl-dm { position: relative; align-self: start; }
.vt-lbl-dm .dm { display: block; width: 64px; height: 64px; color: #100e19; }
.vt-ai { position: absolute; right: -7px; bottom: -6px; padding: 3px 4px; border-radius: 4px; background: #6b2fb3; color: #fff; font: 700 9px/1 var(--m); letter-spacing: .02em; }
.vt-lbl-t { display: grid; gap: 1px; min-width: 0; }
.vt-lbl-t b { font: 700 13px/1.2 var(--fh); margin-bottom: 3px; }
.vt-lbl-t span { color: #3a3748; }
.vt-lbl-t i { font-style: normal; font-weight: 700; color: #100e19; }
.vt-lbl-c { grid-column: 1 / -1; margin: 3px 0 0; padding-top: 6px; border-top: 1px dashed #dcd8ea; font: 500 9.5px/1.35 var(--m); color: #5c586e; word-break: break-all; }
.vt-lbl-c em { font-style: normal; font-weight: 700; color: #6b2fb3; background: #f1e9ff; border-radius: 3px; padding: 0 2px; }
.vt-lbl-c i { font-style: normal; }
.vt-lbl-hero { position: absolute; right: 0; bottom: 0; width: min(58%, 330px); rotate: -2deg; }
.vt-art { padding-bottom: 13%; }
/* элементы сеток страницы не шире колонки: без min-width: 0 строка без переносов раздвигает карточку и даёт прокрутку вбок */
.vt-page :is(.vt-anat, .vt-vk, .vt-tsd, .vt-ways, .vt-goods, .vt-ops, .vt-tablos, .vt-net, .vt-net-c, .vt-scr-b) > * { min-width: 0; }
.vt-n { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: #6b2fb3; color: #fff; font: 700 10px/1 var(--f); font-style: normal; vertical-align: 1px; flex: none; }
.vt-lbl-dm .vt-n { position: absolute; left: -9px; top: -9px; margin: 0; }

/* окно станции в блоке «Для оператора»: табло, этикетка, журнал и отчёт идут по циклу */
.vt-st { max-width: 860px; margin: 36px auto 0; }
.vt-scr { border-radius: 14px; overflow: hidden; background: #fff; color: #15131d; font: 400 12px/1.35 var(--f); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 30px 70px -30px rgba(0, 0, 0, .7); }
.vt-scr-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 14px; border-bottom: 1px solid #ecebf2; }
.vt-scr-top .cab-logo { display: inline-flex; align-items: center; gap: 6px; font: 600 8.5px/1.05 var(--f); color: #4b485c; }
.vt-scr-top .cab-logo .dm { width: 20px; height: 20px; color: #6b2fb3; }
.vt-scr-top > b { font: 650 13px/1 var(--fh); }
.vt-scr-top .sp { flex: 1; }
.vt-dev { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: #4b485c; }
.vt-dev::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #0f9a64; }
.vt-scr-b { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.8fr); }
.vt-scr-m { padding: 12px; display: grid; gap: 10px; align-content: start; }
.vt-scr-p { margin: 0; font-weight: 650; font-size: 12.5px; }
.vt-scr-p span { font-weight: 500; color: #77748a; }
.vt-scr-r { padding: 12px; background: #f7f6fb; border-left: 1px solid #ecebf2; display: grid; gap: 8px; align-content: start; }
.vt-scr-k { margin: 0; font: 500 10px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #77748a; }
.vt-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.vt-log li { display: flex; justify-content: space-between; gap: 6px; padding: 5px 0; border-bottom: 1px solid #ecebf2; font: 500 10.5px/1.3 var(--m); color: #4b485c; }
.vt-log b { font-weight: 600; color: #15131d; }
.vt-log li.new { animation: sm-new .55s cubic-bezier(.2, .8, .2, 1); }
.vt-rep { display: grid; gap: 2px; padding: 9px 10px; border-radius: 9px; background: #e9f8f1; color: #0b6e47; }
.vt-rep span { font-size: 10.5px; }
.vt-rep b { font: 700 13px/1.2 var(--fh); }
.vt-rep i { font-style: normal; }
.vt-lbl-scr { box-shadow: 0 0 0 1px #dcd8ea; padding: 10px 12px 8px; }
.vt-lbl-scr .vt-lbl-dm .dm { width: 52px; height: 52px; }

/* табло: те же цвета, что на станции в кабинете */
.vt-tablo { display: grid; gap: 2px; padding: 14px 16px; border-radius: 12px; background: #0f9a64; color: #fff; transition: background-color .35s, color .35s; }
.vt-tablo b { font: 750 40px/1 var(--fh); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.vt-tablo span { font: 650 15px/1.2 var(--fh); }
.vt-tablo em { font-style: normal; font-size: 10.5px; opacity: .85; }
.vt-tablo.idle { background: #8b889c; }
.vt-tablo.weigh { background: #c9b6ef; color: #2a1650; }
.vt-tablo.print { background: #6b2fb3; }
.vt-tablo.done { background: #0f9a64; }

/* появление этикетки и отметки об отчёте в анимации (без анимаций видны сразу) */
.vt-art.sim .vt-lbl-hero, .vt-art.sim .vt-chip { opacity: 0; translate: 0 12px; transition: opacity .45s, translate .55s cubic-bezier(.2, .8, .2, 1); }
.vt-art.sim .vt-lbl-hero.on, .vt-art.sim .vt-chip.on { opacity: 1; translate: 0 0; }
.vt-lbl.pop .vt-lbl-t > *, .vt-lbl.pop .vt-lbl-c { animation: vt-in .5s cubic-bezier(.2, .8, .2, 1) both; }
.vt-lbl.pop .vt-lbl-t > :nth-child(2) { animation-delay: .08s; }
.vt-lbl.pop .vt-lbl-t > :nth-child(3) { animation-delay: .16s; }
.vt-lbl.pop .vt-lbl-t > :nth-child(4) { animation-delay: .24s; }
.vt-lbl.pop .vt-lbl-t > :nth-child(5) { animation-delay: .32s; }
.vt-lbl.pop .vt-lbl-t > :nth-child(6) { animation-delay: .4s; }
.vt-lbl.pop .vt-lbl-c { animation-delay: .48s; }
@keyframes vt-in { from { opacity: 0; translate: 0 5px; } }

/* этикетка крупно и выноски */
.vt-anat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-top: 36px; }
.vt-anat-l { display: grid; gap: 16px; justify-items: center; padding: 40px 28px; border-radius: 26px; background: var(--scene-bg); }
.vt-lbl-big { width: min(100%, 440px); padding: 22px 22px 16px; gap: 10px 20px; font-size: 14.5px; rotate: -1.5deg; }
.vt-lbl-big .vt-lbl-dm .dm { width: 112px; height: 112px; }
.vt-lbl-big .vt-ai { font-size: 11px; padding: 4px 6px; right: -10px; bottom: -8px; }
.vt-lbl-big .vt-lbl-t b { font-size: 17px; }
.vt-lbl-big .vt-lbl-c { font-size: 11px; }
.vt-tare { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--scene-line); }
.vt-tare button { padding: 8px 14px; border: 0; border-radius: 999px; background: none; color: var(--scene-ink-2); font: 600 13.5px/1 var(--f); cursor: pointer; transition: background-color .2s, color .2s; }
.vt-tare button:hover { color: #fff; }
.vt-tare button[aria-checked="true"] { background: var(--acc); color: #fff; }
.vt-tare button:focus-visible { outline: 2px solid #cfaeff; outline-offset: 2px; }
.vt-tare-n { margin: 0; color: var(--scene-ink-2); font-size: 13.5px; text-align: center; }
.vt-anat-r { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.vt-anat-r li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.vt-anat-r li:first-child { border-top: 0; }
.vt-anat-r .vt-n { width: 26px; height: 26px; font-size: 13px; margin: 0; }
.vt-anat-r b { font: 650 17px/1.3 var(--fh); }
.vt-anat-r p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
[data-vt-gross] { transition: color .25s; }
.vt-flash { color: #6b2fb3 !important; }

/* путь: пять шагов с кадрами кабинета */
.vt-flow { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.vt-flow li { grid-column: span 2; min-width: 0; position: relative; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vt-flow li:nth-child(n+4) { grid-column: span 3; }
.vt-flow h3 { font: 700 18px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 4px; }
.vt-flow li > p { color: var(--ink-2); font-size: 14.5px; }
.vt-flow-n { position: absolute; left: 30px; top: 30px; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--acc); color: #fff; font: 700 13px/1 var(--f); box-shadow: 0 6px 14px -6px rgba(107, 47, 179, .7); }
.vt-fr { display: grid; gap: 0; align-content: start; min-width: 0; min-height: 132px; padding: 12px 12px 8px 52px; border-radius: 14px; background: #fff; color: #15131d; font: 400 11.5px/1.35 var(--f); box-shadow: 0 0 0 1px #e4e1ee, 0 14px 30px -22px rgba(0, 0, 0, .45); }
.vt-fr-h { margin: 0 0 6px; font: 500 10px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #77748a; }
.vt-fr dl { margin: 0; display: grid; }
.vt-fr dl div, .vt-fr-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; min-width: 0; padding: 6px 0; border-top: 1px solid #efedf5; }
.vt-fr dt { color: #4b485c; }
.vt-fr dd { margin: 0; font-weight: 650; }
.vt-fr dd.ok { color: #0b7a4f; }
.vt-fr-row b { flex: 1 1 auto; min-width: 0; font-weight: 600; }  /* длинное название переносится, а не обрезается */
.vt-fr-row span { white-space: nowrap; color: #33303f; }
.vt-fr-row.head span { color: #77748a; font-size: 10.5px; }
.vt-fr-row.sum b, .vt-fr-row.sum span { font-weight: 750; color: #15131d; }
.vt-fr-row code { font: 500 11px/1 var(--m); color: #4b485c; }
.vt-fr .st { padding: 3px 7px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.vt-fr .st.done { background: #e4f7ee; color: #0b7a4f; }
.vt-fr-tab .vt-tablo { padding: 12px 14px; }
.vt-fr-tab .vt-tablo b { font-size: 30px; }
.vt-fr-s { margin: 8px 0 2px; color: #77748a; font-size: 11px; }

/* три способа */
.vt-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.vt-way { display: grid; gap: 14px; align-content: start; padding: 26px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vt-way.tm { background: var(--scene-bg); color: var(--scene-ink); box-shadow: 0 0 0 2px var(--acc), 0 30px 60px -30px rgba(107, 47, 179, .6); }
.vt-way-h { margin: 0; display: grid; gap: 8px; justify-items: start; }
.vt-way-h b { font: 700 20px/1.2 var(--fh); letter-spacing: -0.01em; }
.vt-way-h .tag { padding: 4px 8px; border-radius: 999px; background: var(--acc); color: #fff; font: 600 11px/1 var(--m); letter-spacing: .04em; text-transform: uppercase; }
.vt-way dl { margin: 0; display: grid; }
.vt-way dl div { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.vt-way.tm dl div { border-color: var(--scene-line); }
.vt-way dt { font: 500 11px/1.4 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.vt-way.tm dt { color: var(--scene-ink-2); }
.vt-way dd { margin: 0; font-size: 15px; }

/* оборудование: схема подключения */
.vt-net { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 0.95fr) 56px minmax(0, 1fr); align-items: center; margin-top: 36px; }
.vt-net-c { display: grid; gap: 14px; }
.vt-node { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vt-node .pu-way-ic { grid-row: 1 / span 2; }
.vt-node b { font: 650 16.5px/1.3 var(--fh); }
.vt-node > p { color: var(--ink-2); font-size: 14px; }
.vt-node ul { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.vt-node li { position: relative; padding-left: 16px; font-size: 14px; }
.vt-node li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--acc); }
.vt-node.hub { background: var(--scene-bg); color: var(--scene-ink); box-shadow: 0 0 0 2px var(--acc), 0 30px 60px -30px rgba(107, 47, 179, .6); }
.vt-node.hub > p { color: var(--scene-ink-2); }
.vt-node.hub li::before { background: #cfaeff; }
.vt-net-l { position: relative; height: 100%; min-height: 40px; }
.vt-net-l::before { content: ""; position: absolute; left: 6px; right: 6px; top: 50%; height: 2px; border-radius: 1px; background: repeating-linear-gradient(90deg, var(--acc) 0 6px, transparent 6px 11px); opacity: .55; }
.vt-net-l i { position: absolute; left: 6px; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px rgba(156, 66, 240, .8); animation: vt-run 2.2s cubic-bezier(.4, 0, .2, 1) infinite; }
.vt-net-l i:nth-child(2) { animation-delay: 1.1s; }
@keyframes vt-run { 0% { left: 6px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 14px); opacity: 0; } }
@keyframes vt-run-y { 0% { top: 4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { top: calc(100% - 12px); opacity: 0; } }

/* табло: шесть цветов */
.vt-tablos { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.vt-t { display: grid; gap: 6px; align-content: start; padding: 22px; border-radius: 20px; color: #fff; min-height: 168px; }
.vt-t.idle { background: #8b889c; }
.vt-t.weigh { background: #c9b6ef; color: #2a1650; }
.vt-t.print { background: #6b2fb3; }
.vt-t.done { background: #0f9a64; }
.vt-t.wait { background: #c96f10; }
.vt-t.stop { background: #c42b31; }
.vt-t-c { font: 500 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.vt-t b { font: 750 26px/1.1 var(--fh); letter-spacing: -0.02em; }
.vt-t p { font-size: 14.5px; opacity: .92; }
.vt-ops { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.vt-ops > div { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vt-ops .pu-way-ic { grid-row: 1 / span 2; }
.vt-ops b { font: 650 16px/1.3 var(--fh); }
.vt-ops p { color: var(--ink-2); font-size: 14px; }

/* вес в коде */
.vt-code { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin-top: 36px; }
.vt-seg { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.vt-seg b { font: 700 13px/1 var(--m); color: var(--acc-text); }
.vt-seg code { font: 600 clamp(16px, 1.7vw, 22px)/1.1 var(--m); letter-spacing: .02em; }
.vt-seg em { font-style: normal; font-size: 13px; color: var(--muted); }
.vt-seg.w { background: var(--scene-bg); color: var(--scene-ink); box-shadow: 0 0 0 2px var(--acc), 0 20px 40px -24px rgba(107, 47, 179, .7); }
.vt-seg.w b { color: #cfaeff; }
.vt-seg.w em { color: #3ddc97; font-weight: 650; }
.vt-gs { align-self: center; padding: 5px 7px; border-radius: 7px; background: var(--acc-soft); color: var(--acc-text); font: 600 11px/1 var(--m); }
.vt-vk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 22px; }
.vt-vk .mt-line { margin-top: 0; }
.vt-rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vt-rules li { display: grid; gap: 3px; padding: 14px 16px 14px 42px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.vt-rules li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 12px; height: 12px; border-radius: 50%; background: var(--lv-ok); }
.vt-rules li.off::before { background: var(--lv-risk); }
.vt-rules b { font: 650 15.5px/1.3 var(--fh); }
.vt-rules span { color: var(--ink-2); font-size: 14px; }

/* ТСД станцией */
.vt-tsd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 40px; align-items: center; padding: 40px; border-radius: 26px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.vt-tsd::before { content: ""; position: absolute; inset: -30% -10% auto 45%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.vt-tsd > * { position: relative; }
.vt-tsd .eyebrow, .vt-tsd .sub { color: var(--scene-ink-2); }
.vt-tsd .h2 em { color: #cfaeff; }
.vt-tsd-t { display: grid; gap: 14px; justify-items: start; }
.vt-tsd-n { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 28px; }
.vt-tsd-n div { display: grid; gap: 4px; }
.vt-tsd-n dt { font: 750 34px/1 var(--fh); letter-spacing: -0.03em; }
.vt-tsd-n dd { margin: 0; color: var(--scene-ink-2); font-size: 14px; max-width: 20ch; }
.vt-tsd .more { color: #dcc8ff; }
.vt-tsd-dev { justify-self: center; width: 230px; padding: 16px 12px 30px; border-radius: 30px; background: #1d1a2b; box-shadow: inset 0 0 0 2px #2e2a42, 0 30px 60px -26px rgba(0, 0, 0, .8); }
.vt-tsd-scr { display: grid; gap: 8px; padding: 12px; border-radius: 14px; background: #fff; color: #15131d; font: 400 11px/1.3 var(--f); }
.vt-tsd-top { margin: 0; font: 500 10px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; color: #77748a; }
.vt-tsd-p { margin: 0; font-weight: 650; font-size: 12.5px; }
.vt-tsd-scr .vt-tablo { padding: 12px; }
.vt-tsd-scr .vt-tablo b { font-size: 32px; }
.vt-tsd-b { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.vt-tsd-b span { padding: 7px 4px; border-radius: 8px; text-align: center; font-weight: 600; box-shadow: inset 0 0 0 1px #d9d6e4; }
.vt-tsd-b span:first-child { background: #6b2fb3; color: #fff; box-shadow: none; }

/* товары */
.vt-goods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.vt-g-l { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; }
.vt-g-l .more { font-size: 14.5px; }

@media (max-width: 1100px) {
  .vt-net { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .vt-net-l { height: 40px; min-height: 0; }
  .vt-net-l::before { left: 50%; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--acc) 0 6px, transparent 6px 11px); }
  .vt-net-l i { left: calc(50% - 4px); top: 4px; animation-name: vt-run-y; }
  .vt-net-c { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vt-flow li, .vt-flow li:nth-child(n+4) { grid-column: auto; }
  .vt-flow li:last-child { grid-column: 1 / -1; }
  .vt-tablos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .vt-anat, .vt-vk, .vt-tsd { grid-template-columns: minmax(0, 1fr); }
  .vt-anat { gap: 28px; }
  .vt-ways, .vt-goods, .vt-ops { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .vt-art { padding-bottom: 0; }
  .vt-lbl-hero { position: relative; right: auto; bottom: auto; width: 92%; margin: -6% 0 0 auto; }
  .vt-chip { top: 0; font-size: 12px; }
  .vt-scr-b { grid-template-columns: minmax(0, 1fr); }
  .vt-scr-r { border-left: 0; border-top: 1px solid #ecebf2; }
  .vt-tablo b { font-size: 34px; }
  .vt-anat-l { padding: 28px 16px; }
  .vt-lbl-big { padding: 16px 14px 12px; gap: 8px 12px; font-size: 12.5px; }
  .vt-lbl-big .vt-lbl-dm .dm { width: 78px; height: 78px; }
  .vt-net-c, .vt-flow, .vt-tablos { grid-template-columns: minmax(0, 1fr); }
  .vt-flow li:last-child { grid-column: auto; }
  .vt-t { min-height: 0; }
  .vt-tsd { padding: 26px 18px; }
  .vt-seg { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .vt-net-l i { animation: none; opacity: 0; }
  .vt-art.sim .vt-lbl-hero, .vt-art.sim .vt-chip, .vt-tablo { transition: none; }
  .vt-lbl.pop .vt-lbl-t > *, .vt-lbl.pop .vt-lbl-c, .vt-log li.new { animation: none; }
}

/* ---------- отгрузка по УПД (/otgruzka-upd-chestnyj-znak/, класс страницы ou-page, префикс ou-) ---------- */
/* первый экран: исходящий УПД — проверка кодов, подпись, статус */
.ou-st { color: #0b7a4f; background: rgba(15, 154, 100, .13); animation: none; }
.ou-st.wait { color: #6b2fb3; background: rgba(107, 47, 179, .12); }
.ou-st.idle { color: var(--res-muted); background: var(--res-due-bg); }
.ou-codes { list-style: none; margin: 0; padding: 0; display: grid; }
.ou-codes li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 9px 4px; border-top: 1px solid var(--res-line); }
.ou-codes li:first-child { border-top: 0; }
.ou-codes code { grid-column: 1; min-width: 0; overflow-wrap: anywhere; font: 500 11.5px/1.35 var(--m); color: var(--res-ink); }
.ou-codes li > span { grid-column: 1; font-size: 12.5px; color: var(--res-muted); }
.ou-codes li > b { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 5px 8px; border-radius: 999px; font: 600 11.5px/1 var(--f); white-space: nowrap; transition: background-color .3s, color .3s; }
.ou-codes li.ok > b { color: #0b7a4f; background: rgba(15, 154, 100, .13); }
.ou-codes li.err > b { color: #c42b31; background: rgba(229, 72, 77, .12); }
.ou-codes li.chk > b { color: #6b2fb3; background: rgba(107, 47, 179, .12); }
.ou-track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ou-track li { position: relative; display: grid; gap: 6px; font-size: 11.5px; line-height: 1.25; color: var(--res-muted); }
.ou-track i { height: 4px; border-radius: 2px; background: var(--res-due-bg); transition: background-color .35s; }
.ou-track li.done { color: var(--res-ink); }
.ou-track li.done i { background: #0f9a64; }
.ou-track li.cur i { background: #6b2fb3; }
.ou-doc .btn-g { color: var(--res-ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.ou-doc .btn.press { animation: mt-press .5s cubic-bezier(.3, 1.4, .5, 1); }

/* шаги: пять в ряд на широком экране */
@media (min-width: 1101px) { .ou-steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } .ou-steps li { padding: 20px; } }
.ou-checks { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* как собирается: шесть карточек */
.ou-ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }
.ou-ways .oc-card { min-width: 0; }
.ou-ways .more { margin-top: auto; }

/* после отправки: путь документа и что делать, если что-то пошло не так */
.ou-path { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ou-path li { position: relative; display: grid; gap: 4px; padding: 26px 18px 0 0; }
.ou-path li::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: linear-gradient(90deg, #0f9a64, rgba(15, 154, 100, .25)); }
.ou-path li:last-child::before { right: auto; width: 24px; }
.ou-path i { position: absolute; left: 0; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #0f9a64; box-shadow: 0 0 0 4px var(--lv-ok-bg); }
.ou-path li:last-child i { background: #0f9a64; box-shadow: 0 0 0 4px var(--lv-ok-bg), 0 0 18px rgba(15, 154, 100, .6); }
.ou-path b { font: 650 16.5px/1.3 var(--fh); }
.ou-path span { color: var(--ink-2); font-size: 14px; }
.ou-st-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 48px; }
.ou-st-grid > * { min-width: 0; }
.ou-trouble { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.ou-trouble li { display: grid; gap: 6px; justify-items: start; padding: 14px 0; border-top: 1px solid var(--line); }
.ou-trouble li:first-child { border-top: 0; }
.ou-trouble p { color: var(--ink-2); font-size: 14.5px; }
.ou-trouble b { font-size: 14.5px; font-weight: 600; }
.ou-note { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }

/* список УПД в кабинете: светлое окно в обеих темах, статусы своими цветами */
.ou-list { position: relative; border-radius: 14px; background: #fff; color: #15131d; font: 400 12px/1.35 var(--f); box-shadow: 0 0 0 1px var(--line), 0 26px 60px -30px rgba(0, 0, 0, .5); padding-bottom: 184px; }
.ou-lh { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #ecebf2; }
.ou-lh b { font: 650 14px/1 var(--fh); }
.ou-lr { display: grid; grid-template-columns: 56px minmax(0, 1fr) 44px auto 18px; gap: 8px; align-items: center; padding: 8px 14px; border-bottom: 1px solid #f0eff5; }
.ou-lr > span { min-width: 0; }
.ou-lr.sel { background: #f7f2ff; }
.ou-lth { color: #77748a; font-size: 10.5px; border-bottom-color: #ecebf2; }
.ou-lr .num { text-align: right; font-variant-numeric: tabular-nums; }
.ou-lr .lvl { font-size: 11px; padding: 4px 7px; white-space: normal; }
.ou-list .lvl.ok { color: #0b7a4f; background: rgba(15, 154, 100, .12); }
.ou-list .lvl.info { color: #3f4fc2; background: rgba(123, 140, 255, .14); }
.ou-list .lvl.risk { color: #9a5a00; background: rgba(240, 160, 32, .16); }
.ou-list .lvl.stop { color: #c42b31; background: rgba(229, 72, 77, .11); }
.ou-dots { color: #77748a; font-weight: 700; text-align: center; }
.ou-menu { position: absolute; right: 14px; bottom: 12px; z-index: 1; list-style: none; margin: 0; padding: 6px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e4e1ee, 0 16px 34px -14px rgba(0, 0, 0, .35); display: grid; gap: 1px; min-width: 200px; }
.ou-menu li { padding: 7px 10px; border-radius: 7px; font-size: 12px; color: #33303f; }
.ou-menu li.on { background: #f1e9ff; color: #6b2fb3; font-weight: 600; }

/* дальше: приёмка, агрегация, 1С */
.ou-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ou-next-i { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 20px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.ou-next-i:hover { box-shadow: inset 0 0 0 1px var(--acc); transform: translateY(-2px); }
.ou-next-i .pu-way-ic { grid-row: 1 / span 2; }
.ou-next-i b { font: 650 16.5px/1.3 var(--fh); }
.ou-next-i > span:not(.pu-way-ic) { grid-column: 2; color: var(--ink-2); font-size: 14px; }
.ou-next-i > .ic { grid-column: 3; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--acc-text); }

@media (max-width: 1100px) {
  .ou-checks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ou-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .ou-st-grid, .ou-next { grid-template-columns: minmax(0, 1fr); }
  .ou-path { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
}
@media (max-width: 640px) {
  .ou-checks, .ou-ways { grid-template-columns: minmax(0, 1fr); }
  .ou-path { grid-template-columns: minmax(0, 1fr); }
  .ou-path li { padding: 0 0 0 30px; }
  .ou-path li::before { left: 6px; right: auto; top: 16px; bottom: -18px; width: 2px; height: auto; background: linear-gradient(180deg, #0f9a64, rgba(15, 154, 100, .25)); }
  .ou-path li:last-child::before { display: none; }
  .ou-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ou-lr { grid-template-columns: 50px minmax(0, 1fr) auto 14px; padding: 8px 10px; }
  .ou-lr > .num { display: none; }
  .ou-menu { right: 10px; min-width: 180px; }
}
@media (prefers-reduced-motion: reduce) { .ou-codes li > b, .ou-track i { transition: none; } .ou-doc .btn.press { animation: none; } }

/* ---- x-news.css ---- */
/* Раздел /novinki/ (tools/routes/news.py): список новостей, вопросы, «Где в кабинете». «Коротко» — общий div.short из x-seo.css. Только токены темы. */

/* список новостей: на /novinki/ и в «Ещё новинки» */
.nv-wrap { padding-block: 36px 88px; display: grid; gap: 44px; }
.nv-month { display: grid; gap: 16px; }
.nv-month > h2 { font: 500 13px/1.3 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.nv-list { display: grid; gap: 12px; }
.ar-more .nv-list { margin-top: 22px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nv-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 22px; border-radius: 16px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: inherit; transition: box-shadow .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
.nv-item:hover { box-shadow: inset 0 0 0 1px var(--acc); transform: translateY(-1px); }
.nv-item:focus-visible { outline: 2px solid var(--focus, var(--acc)); outline-offset: 2px; }
.nv-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); flex: none; }
.nv-ic .ic { width: 22px; height: 22px; }
.nv-txt { display: grid; gap: 6px; min-width: 0; }
.nv-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font: 500 12px/1.3 var(--m); letter-spacing: .03em; color: var(--muted); }
.nv-meta span { color: var(--acc-text); }
.nv-item h2, .nv-item h3 { font: 650 19px/1.3 var(--fh); letter-spacing: -0.01em; transition: color .15s ease; }
.nv-item:hover h2, .nv-item:hover h3 { color: var(--acc-text); }
.nv-lead { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.nv-go { align-self: center; color: var(--muted); transition: transform .2s ease, color .15s ease; }
.nv-go .ic { width: 20px; height: 20px; }
.nv-item:hover .nv-go { color: var(--acc-text); transform: translateX(3px); }
.ar-more .nv-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ar-more .nv-go { display: none; }
.nv-empty { color: var(--muted); }
.bl-hero .sub a { color: inherit; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }

/* кадры кабинета на всю ширину колонки (у figure по умолчанию поля браузера по 40px) */
.nv .ar-body figure { margin: 0; }
.nv .ar-body figure + * { margin-top: 1.4em; }
.nv .ar-body .nv-zoom { display: block; border-radius: 14px; cursor: zoom-in; text-decoration: none; }
.nv .ar-body .nv-zoom:focus-visible { outline: 2px solid var(--focus, var(--acc)); outline-offset: 3px; }

/* списки с маркерами: сброс base.css снимает их и в .ar-body */
.nv .ar-body ul { list-style: disc; }
.nv .ar-body ol { list-style: decimal; }
.nv .ar-body li::marker { color: var(--acc-text); }

/* вопросы и ответы: видимый блок, та же разметка в FAQPage */
.ar-body .nv-faq { display: grid; gap: 10px; }
.ar-body .nv-q { padding: 16px 20px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ar-body .nv-q h3 { margin: 0; font: 650 17px/1.35 var(--fh); }
.ar-body .nv-q > * + * { margin-top: 8px; }
.ar-body .nv-q p, .ar-body .nv-q li { color: var(--ink-2); }

/* «Где в кабинете» в конце новости */
.ar-body .nv-where { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 1.9em;
  padding: 18px 20px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.ar-body .nv-where p { margin: 0; }
.ar-body .nv-where .nv-where-h { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ar-body .nv-where .btn { text-decoration: none; }

/* боковая колонка новости: другие новинки */
.nv-side { padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; }
.nv-side > p { font: 500 12px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.nv-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.nv-side li { display: grid; gap: 2px; font-size: 14px; line-height: 1.4; }
.nv-side li a:hover { color: var(--acc-text); }
.nv-side li span { font: 500 12px/1.3 var(--m); color: var(--muted); }
.nv-side .more { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--acc-text); }
.nv-side .more .ic { width: 16px; height: 16px; }

@media (max-width: 980px) {
  .ar-more .nv-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nv-wrap { padding-block: 24px 64px; gap: 32px; }
  .nv-item { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; }
  .nv-item .nv-go { display: none; }
  .ar-body .nv-where { grid-template-columns: auto minmax(0, 1fr); }
  .ar-body .nv-where .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .nv-item, .nv-go { transition: none; }
  .nv-item:hover { transform: none; }
}

/* ---- x-put.css ---- */
/* «Трумарк целиком» (tools/v3_build.py: put_ribbon, put; владелец 21.11, «всё по советам»): лента пути кода в панели «Продукт»
   и блок #put на главной после «Как это работает». Панель меню тёмная в обеих темах — лента на её токенах (--hd-*). */
.pmw { margin-bottom: 22px; padding-bottom: 20px; border-bottom: 1px solid var(--hd-line); }
.pmw-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: baseline; gap: 6px 18px; }
.pmw-k { margin: 0; font: 500 11.5px/1.3 var(--m); letter-spacing: .07em; text-transform: uppercase; color: #cfaeff; }
.pmw-t { margin: 0; font-size: 14px; color: var(--hd-ink-2); }
.pmw-a { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--hd-ink); white-space: nowrap; }
.pmw-a .ic { width: 15px; height: 15px; transition: transform .15s ease; }
.pmw-a:hover .ic { transform: translateX(2px); }
.pmw-steps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); margin: 16px 0 0; padding: 0; list-style: none; }
.pmw-s { position: relative; display: grid; justify-items: center; gap: 8px; padding: 0 6px; text-align: center; font-size: 13px; line-height: 1.3; color: var(--hd-ink); }
.pmw-s::before { content: ""; position: absolute; top: 18px; left: calc(50% + 24px); right: calc(-50% + 24px); height: 1px; background: var(--hd-line); }
.pmw-s:last-child::before { display: none; }
.pmw-ic { position: relative; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(155, 109, 255, .16); color: #d5c2ff; }
.pmw-ic > .ic { width: 18px; height: 18px; }
.pmw-ic i { position: absolute; right: -6px; bottom: -6px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: #3dcb8f; color: #0b1a12; box-shadow: 0 0 0 2px var(--hd-solid, #12101c); }
.pmw-ic i .ic { width: 11px; height: 11px; stroke-width: 3; }
/* легенда галочки (владелец 21.11: «а что значат эти галочки?»): тот же зелёный значок прямо в тексте ленты */
.pmw-lg { display: inline-flex; align-items: center; gap: 7px; color: var(--hd-ink); }
.pmw-lg i { flex: none; width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; background: #3dcb8f; color: #0b1a12; }
.pmw-lg i .ic { width: 10px; height: 10px; stroke-width: 3; }
.pmw-s.is-chk { cursor: help; }
.pmw-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .pmw-a .ic { transition: none; } }
@media (max-width: 1100px) {
  .pmw { margin: 4px 0 14px 12px; padding-bottom: 14px; }
  .pmw-h { grid-template-columns: minmax(0, 1fr); }
  .pmw-lg { display: flex; align-items: flex-start; margin-top: 6px; }
  .pmw-lg i { margin-top: 2px; }
  .pmw-steps { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 12px; }
  .pmw-s { grid-template-columns: 36px minmax(0, 1fr); justify-items: start; align-items: center; padding: 0; text-align: left; font-size: 14px; }
  .pmw-s::before { display: none; }
}

/* блок на главной */
.put { padding-block: 72px 48px; }
.put-l { display: grid; margin: 32px 0 0; padding: 0; list-style: none; }
.put-r { display: grid; grid-template-columns: 44px minmax(0, 5fr) minmax(0, 7fr); gap: 20px 24px; padding: 18px 0; border-top: 1px solid var(--line); }
.put-r:last-child { border-bottom: 1px solid var(--line); }
.put-ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.put-ic .ic { width: 22px; height: 22px; }
.put-s p { margin: 0; }
.put-n { font: 600 12px/1 var(--m); letter-spacing: .04em; color: var(--muted); }
.put-s h3 { margin: 4px 0; font-size: 18px; }
.put-s > p:last-child { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.put-ch { margin: 0 0 8px; font: 600 11.5px/1.3 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.put-r.is-chk .put-ch { color: #0f8a5a; }
.put-c ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.put-c li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.put-c li .ic { width: 16px; height: 16px; margin-top: 2px; color: #0f8a5a; stroke-width: 2.4; }
.put-dot { width: 6px; height: 6px; margin: 8px 6px 0; border-radius: 50%; background: var(--muted); }
:root[data-theme="dark"] .put-c li .ic, :root[data-theme="dark"] .put-r.is-chk .put-ch { color: #3ccb8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .put-c li .ic, :root:not([data-theme="light"]) .put-r.is-chk .put-ch { color: #3ccb8f; } }
@media (max-width: 860px) {
  .put { padding-block: 56px 32px; }
  .put-r { grid-template-columns: 40px minmax(0, 1fr); gap: 10px 14px; }
  .put-ic { width: 40px; height: 40px; }
  .put-c { grid-column: 2; }
}

/* ---- x-retail.css ---- */
/* Посадочная модуля «Отклонения» (tools/routes/retail.py, живая сцена — site/public/otkloneniya/rz.js).
   Язык главной: тёмная сцена с точечной сеткой и светом, живые карточки, крупные заголовки. Только токены темы, без полос слева. */

/* ---------- первый экран: сцена сводки ---------- */
.rz-hero { position: relative; overflow: hidden; background: var(--scene-bg); color: var(--scene-ink); }
.rz-hero::before { content: ""; position: absolute; inset: auto -10% -35% 30%; height: 95%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.rz-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 26px 26px;
  -webkit-mask: linear-gradient(to bottom, #000, transparent 88%); mask: linear-gradient(to bottom, #000, transparent 88%); pointer-events: none; }
.rz-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-block: 36px 48px; }
.rz-hero-l { display: grid; gap: 18px; justify-items: start; }
.rz-hero .crumbs { color: var(--scene-ink-2); margin-bottom: 6px; }
.rz-hero .crumbs a:hover { color: #fff; }
.rz-badge { font: 500 12px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; padding: 8px 11px; border-radius: 999px; background: rgba(255, 255, 255, .07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); color: var(--scene-ink); }
.rz-hero h1 { font: 750 clamp(38px, 4.8vw, 66px)/0.99 var(--fh); letter-spacing: -0.045em; max-width: 13ch; text-wrap: balance; }
.rz-hero h1 em { font-style: normal; color: var(--acc-text); }
.rz-hero .lead { max-width: 54ch; color: var(--scene-ink-2); }
.rz-hero .cta-btns { margin-top: 6px; }
.rz-hero .cta-btns .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.rz-hero .cta-btns .btn-g:hover { background: rgba(255, 255, 255, .08); }
.rz-note { font-size: 14px; color: var(--scene-ink-2); }

.rz-scene { position: relative; display: grid; gap: 12px; justify-items: stretch; }
.rz-card { border-radius: 22px; background: var(--res-bg); color: var(--res-ink); padding: 20px; display: grid; gap: 14px;
  box-shadow: 0 0 0 1px var(--res-line), 0 40px 90px -36px rgba(20, 12, 70, .6); }
.rz-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rz-k { display: inline-flex; align-items: center; gap: 8px; font: 650 17px/1.3 var(--fh); }
.rz-k .dm { width: 20px; height: 20px; }
.rz-per { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--res-chip); }
.rz-per button { font: 500 12px/1 var(--f); color: var(--res-muted); padding: 7px 10px; border-radius: 8px; border: 0; background: none; cursor: pointer; transition: background-color .2s, color .2s; }
.rz-per button[aria-pressed="true"] { font-weight: 600; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.rz-per button:focus-visible { outline: 2px solid var(--acc); outline-offset: 1px; }
.rz-sum { display: grid; gap: 4px; font-size: 14.5px; line-height: 1.4; color: var(--res-muted); }
.rz-sum b { font: 700 clamp(28px, 2.8vw, 38px)/1.05 var(--fh); letter-spacing: -0.03em; color: var(--res-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rz-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.rz-tiles div { padding: 10px 12px; border-radius: 12px; background: var(--res-due-bg); display: grid; gap: 3px; align-content: space-between; font-size: 12px; line-height: 1.3; color: var(--res-muted); }
.rz-tiles b { font: 650 20px/1.1 var(--fh); color: var(--res-ink); font-variant-numeric: tabular-nums; }
.rz-h { font: 500 11px/1 var(--m); letter-spacing: .07em; text-transform: uppercase; color: var(--res-muted); }
.rz-kl { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rz-kl li { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 10px; align-items: center; font-size: 13.5px; }
.rz-kl i { display: block; height: 8px; border-radius: 99px; background: var(--res-chip); overflow: hidden; }
.rz-kl s { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--acc), #b88cf0); transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.rz-kl b { font: 600 13px/1 var(--m); text-align: right; font-variant-numeric: tabular-nums; }
.rz-blur { filter: blur(3.5px); user-select: none; }
.rz-mail { justify-self: end; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px; font-size: 13px;
  background: rgba(255, 255, 255, .08); color: var(--scene-ink); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); backdrop-filter: blur(6px); }
.rz-mail .ic { width: 16px; height: 16px; color: var(--acc-text); }
.rz-mail.pop { animation: rz-pop .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes rz-pop { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
.rz-cap { font-size: 12px; color: var(--scene-ink-2); text-align: right; }

.rz-facts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--scene-line); margin: 0; }
.rz-facts > div { padding: 22px 22px 26px 0; display: grid; gap: 6px; align-content: start; }
.rz-facts > div + div { padding-left: 22px; border-left: 1px solid var(--scene-line); }
.rz-facts dt { font: 750 clamp(30px, 3vw, 42px)/1 var(--fh); letter-spacing: -0.03em; }
.rz-facts dd { margin: 0; color: var(--scene-ink-2); font-size: 14.5px; line-height: 1.45; }

/* ---------- разделы ---------- */
.rz-sec { padding-block: 96px 0; }
.rz-sec .mt-head h2 em, .rz-buy h2 em { font-style: normal; color: var(--acc-text); }

/* шаги: дорожка с узлами */
.rz-flow { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.rz-flow::before { content: ""; position: absolute; left: 26px; right: 26px; top: 26px; height: 2px; background: linear-gradient(90deg, var(--acc), color-mix(in srgb, var(--acc) 15%, transparent)); }
.rz-flow li { position: relative; display: grid; gap: 10px; align-content: start; }
.rz-n { position: relative; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--acc-text);
  box-shadow: inset 0 0 0 1.5px var(--acc), 0 12px 30px -16px rgba(107, 47, 179, .7); margin-bottom: 8px; }
.rz-n .ic { width: 24px; height: 24px; }
.rz-n b { position: absolute; right: -8px; top: -8px; min-width: 22px; height: 22px; border-radius: 999px; display: grid; place-items: center; font: 600 12px/1 var(--m); background: var(--acc); color: #fff; }
.rz-flow h3 { font: 650 19px/1.25 var(--fh); letter-spacing: -0.01em; }
.rz-flow p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* сводка и модуль */
.rz-two { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 16px; margin-top: 40px; align-items: start; }
.rz-col { padding: 28px; border-radius: 22px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 16px; align-content: start; }
.rz-col.hot { box-shadow: inset 0 0 0 1.5px var(--acc), 0 30px 70px -40px rgba(107, 47, 179, .65); }
.rz-col-k { font: 500 11.5px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--acc-text); }
.rz-col h3 { font: 700 24px/1.15 var(--fh); letter-spacing: -0.02em; }
.rz-li { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rz-li li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.rz-li .ic { width: 18px; height: 18px; color: var(--acc-text); margin-top: 2px; }
.rz-col-b { padding-top: 4px; }

.rz-mock { border-radius: 16px; background: var(--res-bg); color: var(--res-ink); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.rz-mock-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font: 650 14px/1.2 var(--fh); border-bottom: 1px solid var(--line); }
.rz-mock-s { display: inline-flex; align-items: center; gap: 6px; font: 400 12.5px/1 var(--f); color: var(--res-muted); padding: 7px 10px; border-radius: 9px; background: var(--res-chip); }
.rz-mock-s .ic { width: 14px; height: 14px; }
.rz-rows { list-style: none; margin: 0; padding: 0; }
.rz-rows li { display: grid; grid-template-columns: 44px 60px auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.rz-rows time { font: 500 12px/1 var(--m); color: var(--res-muted); }
.rz-chip { font: 600 11.5px/1 var(--f); padding: 6px 8px; border-radius: 7px; white-space: nowrap; background: var(--acc-soft); color: var(--acc-text); }
.rz-chip.warm { background: rgba(240, 174, 69, .16); color: #b26a00; }
.rz-chip.err { background: rgba(229, 72, 77, .14); color: #c62f35; }
.rz-good { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rz-price { font: 600 12.5px/1 var(--m); font-variant-numeric: tabular-nums; }
.rz-mock-f { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 14px; }
.rz-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 7px 10px; border-radius: 9px; box-shadow: inset 0 0 0 1px var(--line); color: var(--res-ink); }
.rz-pill .ic { width: 14px; height: 14px; }

/* виды отклонений */
.rz-kinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.rz-kind { padding: 24px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 10px; align-content: start; }
.rz-kind-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); margin-bottom: 4px; }
.rz-kind-ic .ic { width: 21px; height: 21px; }
.rz-kind-k { font: 500 11px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rz-kind h3 { font: 650 18.5px/1.25 var(--fh); letter-spacing: -0.01em; }
.rz-kind p:last-child { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* инструменты магазина */
.rz-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.rz-tool { display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: inherit;
  transition: box-shadow .2s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
.rz-tool:hover { box-shadow: inset 0 0 0 1px var(--acc), 0 24px 50px -34px rgba(107, 47, 179, .6); transform: translateY(-3px); }
.rz-tool:focus-visible { outline: 2px solid var(--focus, var(--acc)); outline-offset: 2px; }
.rz-tool-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.rz-tool-ic .ic { width: 21px; height: 21px; }
.rz-acc { justify-self: start; font: 500 11px/1.2 var(--m); letter-spacing: .03em; padding: 5px 8px; border-radius: 7px; background: var(--hover); color: var(--ink-2); }
.rz-tool h3 { font: 650 18px/1.25 var(--fh); }
.rz-tool p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
.rz-go { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--acc-text); margin-top: 2px; }
.rz-go .ic { width: 16px; height: 16px; transition: transform .2s ease; }
.rz-tool:hover .rz-go .ic { transform: translateX(3px); }

/* подключение модуля */
.rz-buy { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding: 44px;
  border-radius: 28px; background: var(--scene-bg); color: var(--scene-ink); }
.rz-buy::before { content: ""; position: absolute; inset: -40% -10% auto 45%; height: 120%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.rz-buy::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px); background-size: 22px 22px; pointer-events: none; }
.rz-buy > * { position: relative; z-index: 1; }
.rz-buy-l { display: grid; gap: 14px; justify-items: start; }
.rz-buy .eyebrow { color: var(--scene-ink-2); }
.rz-buy .sub { color: var(--scene-ink-2); max-width: 52ch; }
.rz-buy .cta-btns .btn-g { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .24); }
.rz-buy-r { list-style: none; margin: 0; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); display: grid; gap: 12px; }
.rz-buy-r li { display: grid; grid-template-columns: auto 1fr; gap: 10px; font-size: 15px; line-height: 1.45; }
.rz-buy-r .ic { width: 18px; height: 18px; color: var(--acc-text); margin-top: 2px; }

@media (max-width: 1100px) {
  .rz-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rz-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .rz-hero-in, .rz-two, .rz-buy { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .rz-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .rz-flow::before { display: none; }
  .rz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rz-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .rz-facts > div:nth-child(n + 3) { border-top: 1px solid var(--scene-line); }
}
@media (max-width: 640px) {
  .rz-sec { padding-block: 64px 0; }
  .rz-flow, .rz-kinds, .rz-tools { grid-template-columns: minmax(0, 1fr); }
  .rz-buy { padding: 26px 20px; border-radius: 22px; }
  .rz-card { padding: 16px; }
  .rz-top { flex-wrap: wrap; }
  .rz-rows li { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "t c p" "k g g"; row-gap: 6px; }
  .rz-rows time { grid-area: t; } .rz-rows .rz-chip { grid-area: c; justify-self: start; } .rz-rows li > span:nth-of-type(1) { grid-area: k; color: var(--res-muted); }
  .rz-rows .rz-good { grid-area: g; } .rz-rows .rz-price { grid-area: p; }
  .rz-facts > div { padding: 16px 12px 18px 0; }
  .rz-facts > div + div { padding-left: 12px; }
  .rz-facts > div:nth-child(3) { padding-left: 0; }
  .rz-mail { justify-self: stretch; }
  .rz-cap { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  .rz-tool, .rz-kl s, .rz-per button { transition: none; }
  .rz-tool:hover { transform: none; }
  .rz-mail.pop { animation: none; }
}

/* ---- x-retain.css ---- */
/* Удержание: предложения по поведению посетителя (site/public/retain/retain.js).
   Четыре вида: нижняя панель (rt-bar), карточка в углу (rt-card), окно по центру (rt-modal, только компьютер),
   встроенный блок (rt-inline). Цвета — токены подхода 1, обе темы. На телефоне окна на весь экран нет. */

.rt { --rt-in: var(--card); --rt-ink: var(--ink); --rt-ink-2: var(--ink-2); --rt-muted: var(--muted); --rt-line: var(--line); --rt-field: var(--bg); --rt-field-line: var(--line-2);
  --rt-link: var(--acc-text); --rt-ok: #0f8a5a; --rt-err: #d93a3f;
  font: 400 15px/1.5 var(--f); color: var(--rt-ink); box-sizing: border-box; }
.rt *, .rt *::before, .rt *::after { box-sizing: inherit; }
.rt-scene { --rt-in: transparent; --rt-ink: var(--scene-ink); --rt-ink-2: var(--scene-ink-2); --rt-muted: #9a96b2; --rt-line: var(--scene-line);
  --rt-field: rgba(255, 255, 255, .06); --rt-field-line: rgba(255, 255, 255, .18); --rt-link: #d8c2ff; --rt-ok: #4fd39a; --rt-err: #ff8a8f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rt { --rt-ok: #4fd39a; --rt-err: #ff8a8f; } }
:root[data-theme="dark"] .rt { --rt-ok: #4fd39a; --rt-err: #ff8a8f; }

/* общие части */
.rt-eb { display: inline-flex; align-items: center; gap: 8px; font: 500 11.5px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--rt-muted); margin: 0; }
.rt-eb::before { content: ""; width: 7px; height: 7px; border-radius: 1px; background: var(--acc); flex: none; }
.rt-scene .rt-eb { color: #d2bcff; }
.rt-scene .rt-eb::before { background: #b78cf5; }
.rt-h { font: 680 19px/1.25 var(--fh); letter-spacing: -0.015em; margin: 8px 0 0; color: var(--rt-ink); text-wrap: balance; }
.rt-p { margin: 6px 0 0; color: var(--rt-ink-2); font-size: 14.5px; line-height: 1.5; text-wrap: pretty; }
.rt-x { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent;
  color: var(--rt-muted); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.rt-x:hover { background: var(--hover); color: var(--rt-ink); }
.rt-scene .rt-x:hover { background: rgba(255, 255, 255, .08); }
.rt-x svg { width: 18px; height: 18px; }
.rt :focus-visible { outline: 2px solid var(--focus, #cfaeff); outline-offset: 2px; }
.rt:not(.rt-scene) :focus-visible { outline-color: var(--acc); }

/* форма: одно поле и кнопка, согласие, ошибка */
.rt-f { display: grid; gap: 10px; margin-top: 14px; }
.rt-row { display: flex; gap: 8px; }
.rt-in { flex: 1 1 auto; min-width: 0; width: 100%; height: 46px; padding: 0 14px; border: 0; border-radius: var(--r-btn, 12px); background: var(--rt-field); color: var(--rt-ink);
  box-shadow: inset 0 0 0 1px var(--rt-field-line); font: 500 16px/1 var(--f); letter-spacing: .01em; transition: box-shadow .15s ease; }
.rt-in::placeholder { color: var(--rt-muted); font-weight: 400; }
.rt-in:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }
.rt-scene .rt-in:focus { box-shadow: inset 0 0 0 2px #b78cf5; }
.rt-in[aria-invalid="true"] { box-shadow: inset 0 0 0 2px var(--rt-err); }
.rt-row .btn { flex: none; }
.rt-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.rt-ok { display: flex; gap: 9px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--rt-muted); cursor: pointer; }
.rt-ok input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--acc); cursor: pointer; }
.rt-ok a { color: var(--rt-link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.rt-ok[data-invalid] { color: var(--rt-err); }
.rt-err { margin: 0; font-size: 13.5px; color: var(--rt-err); }
.rt-err:empty { display: none; }
.rt-err a { color: inherit; font-weight: 600; white-space: nowrap; }
.rt-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.rt-alt { display: block; width: fit-content; max-width: 100%; margin-top: 12px; font-size: 14px; line-height: 1.4; font-weight: 550; color: var(--rt-link); text-wrap: pretty; }
.rt-alt svg { display: inline-block; vertical-align: -3px; margin-left: 2px; }
.rt-alt:hover { text-decoration: underline; text-underline-offset: 3px; }
.rt-later { border: 0; background: transparent; padding: 8px 2px; margin: 4px 0 0; font: 500 13.5px/1 var(--f); color: var(--rt-muted); cursor: pointer; }
.rt-later:hover { color: var(--rt-ink); text-decoration: underline; text-underline-offset: 3px; }
.rt-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rt [hidden] { display: none !important; }

/* готово */
.rt-done { display: grid; gap: 6px; padding: 4px 0 2px; }
.rt-done:focus { outline: none; }
.rt-done-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--rt-ok) 16%, transparent); color: var(--rt-ok); margin-bottom: 4px; }
.rt-done-ic svg { width: 22px; height: 22px; }
.rt-done b { font: 680 18px/1.3 var(--fh); color: var(--rt-ink); }
.rt-done p { margin: 0; color: var(--rt-ink-2); font-size: 14.5px; }
.rt-done a { color: var(--rt-link); }
.rt-done p a { white-space: nowrap; }

/* 1. нижняя панель: на компьютере плавающая строка, на телефоне шторка снизу */
.rt-bar { position: fixed; z-index: 60; left: 50%; bottom: 16px; width: min(940px, calc(100% - 32px)); transform: translateX(-50%);
  background: var(--card); border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 28px 70px -24px rgba(16, 8, 50, .45), 0 8px 20px -10px rgba(16, 8, 50, .2); }
.rt-bar .rt-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 8px 28px; align-items: center; padding: 18px 60px 18px 22px; }
.rt-bar .rt-h { font-size: 17.5px; margin-top: 6px; }
.rt-bar .rt-p { font-size: 14px; margin-top: 4px; }
.rt-bar .rt-f { margin-top: 0; }
.rt-bar .rt-x { top: 50%; transform: translateY(-50%); right: 10px; }
.rt-bar .rt-done { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; column-gap: 14px; }
.rt-bar .rt-done-ic { grid-row: span 2; margin: 0; }

/* 2. карточка в углу: тёмная сцена, как финальный блок страниц */
.rt-card { position: fixed; z-index: 60; right: 20px; bottom: 20px; width: 384px; max-width: calc(100% - 40px); border-radius: 20px; overflow: hidden;
  background: var(--scene-bg); background-color: var(--scene-bg-solid); color: var(--scene-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 80px -24px rgba(10, 4, 30, .65); }
.rt-card::before { content: ""; position: absolute; inset: -30% -30% auto 30%; height: 90%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.rt-card .rt-box { position: relative; padding: 22px 22px 18px; }
.rt-card .rt-h { padding-right: 28px; }
.rt-card .rt-row { flex-direction: column; }
.rt-card .rt-row .btn { width: 100%; }
.rt-card .rt-open { display: none; }

/* 3. окно по центру: только компьютер, две колонки */
.rt-modal { border: 0; padding: 0; margin: auto; width: min(780px, calc(100% - 48px)); max-height: calc(100% - 48px); overflow: auto; border-radius: 24px; background: var(--card); color: var(--ink);
  box-shadow: 0 0 0 1px var(--line), 0 40px 120px -30px rgba(10, 4, 30, .6); }
.rt-modal::backdrop { background: rgba(9, 7, 18, .56); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.rt-modal .rt-box { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.rt-modal .rt-side { position: relative; overflow: hidden; padding: 34px 30px; background: var(--scene-bg); background-color: var(--scene-bg-solid); color: var(--scene-ink); }
.rt-modal .rt-side::before { content: ""; position: absolute; inset: auto -30% -40% -10%; height: 90%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.rt-modal .rt-side > * { position: relative; }
.rt-modal .rt-h { font-size: 26px; line-height: 1.12; letter-spacing: -0.03em; margin-top: 14px; color: #fff; }
.rt-modal .rt-side .rt-p { color: var(--scene-ink-2); font-size: 15px; margin-top: 10px; }
.rt-pts { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.rt-pts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14.5px; color: var(--scene-ink); line-height: 1.4; }
.rt-pts svg { width: 18px; height: 18px; color: #c9a8ff; margin-top: 1px; }
.rt-modal .rt-main { position: relative; padding: 34px 30px 26px; display: grid; align-content: center; }
.rt-modal .rt-main .rt-lbl { font: 650 17px/1.3 var(--fh); color: var(--ink); margin: 0; padding-right: 34px; }
.rt-modal .rt-main .rt-sub { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.rt-modal .rt-row { flex-direction: column; }
.rt-modal .rt-row .btn { width: 100%; }
.rt-modal .rt-x { top: 12px; right: 12px; }
.rt-modal .rt-alt2 { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rt-modal .rt-alt2 .rt-alt { margin-top: 0; }
.rt-modal .rt-alt2 .rt-later { margin: 0; }

/* окно заявки по кнопкам (замена окна 2715): имя, телефон или почта, комментарий по желанию */
.rt-modal.rt-lead { width: min(880px, calc(100% - 48px)); }
.rt-modal.rt-lead .rt-box { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.rt-full { gap: 12px; }
.rt-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.rt-fld { display: grid; gap: 6px; align-content: start; min-width: 0; }
.rt-l { font: 500 13px/1.2 var(--f); color: var(--rt-ink-2); }
.rt-l small { font-size: 12px; font-weight: 400; color: var(--rt-muted); margin-left: 4px; }
.rt-sw { justify-self: start; border: 0; background: none; padding: 2px 0; font: 500 13px/1.3 var(--f); color: var(--rt-link); cursor: pointer;
  text-decoration: underline dotted; text-underline-offset: 3px; }
.rt-sw:hover { text-decoration-style: solid; }
.rt-ta { height: auto; min-height: 84px; padding: 11px 14px; resize: vertical; font-size: 15px; font-weight: 400; line-height: 1.45; }
.rt-go { width: 100%; }
.rt-done .rt-alt { margin-top: 8px; }

/* 4. встроенный блок: в тексте страницы, ничего не всплывает */
.rt-inline { position: relative; margin: 2em 0; border-radius: 20px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.rt-inline::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--acc); }
.rt-inline .rt-box { position: relative; display: grid; gap: 16px; padding: 24px 26px 22px 30px; }
.rt-inline .rt-h { font-size: 20px; margin-top: 8px !important; }
.rt-inline .rt-p { margin-top: 6px !important; max-width: 60ch; }
.rt-inline .rt-f { margin-top: 0; max-width: 560px; }
.rt-inline .rt-alt { margin-top: 10px; }
.ar-body .rt-inline h2.rt-h { margin-bottom: 0; }

/* появление: снизу вверх, без движения для тех, кто его отключил */
.rt-bar, .rt-card { animation: rt-up .32s cubic-bezier(.2, .8, .2, 1) both; }
.rt-bar { animation-name: rt-up-x; }
.rt-modal[open] { animation: rt-pop .26s cubic-bezier(.2, .8, .2, 1) both; }
.rt-modal[open]::backdrop { animation: rt-fade .2s ease both; }
.rt-out { animation: rt-down .2s ease both !important; }
.rt-bar.rt-out { animation-name: rt-down-x !important; }
@keyframes rt-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rt-up-x { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translateX(-50%); } }
@keyframes rt-down { to { opacity: 0; transform: translateY(14px); } }
@keyframes rt-down-x { to { opacity: 0; transform: translate(-50%, 14px); } }
@keyframes rt-pop { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes rt-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .rt-bar, .rt-card, .rt-modal[open], .rt-modal[open]::backdrop, .rt-out { animation-duration: .01ms !important; }
  .rt-x, .rt-in { transition: none; }
}

/* планшет: окно и встроенный блок в одну колонку */
@media (max-width: 860px) {
  .rt-bar .rt-box, .rt-modal .rt-box { grid-template-columns: minmax(0, 1fr); }
  .rt-bar .rt-box { padding: 18px 56px 18px 20px; }
}

/* телефон: только нижняя шторка после вовлечения, не больше трети экрана, крестик 44 px */
@media (max-width: 767px) {
  .rt-bar { left: 0; right: 0; bottom: 0; width: auto; transform: none; border-radius: 20px 20px 0 0; animation-name: rt-up;
    box-shadow: 0 0 0 1px var(--line), 0 -18px 50px -20px rgba(16, 8, 50, .45); }
  .rt-bar.rt-out { animation-name: rt-down !important; }
  .rt-bar .rt-box { display: block; padding: 16px 16px calc(14px + env(safe-area-inset-bottom, 0px)); }
  .rt-bar .rt-box::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 2px; background: var(--line-2); margin: -4px auto 10px; }
  .rt-bar .rt-x { top: 6px; right: 6px; transform: none; width: 44px; height: 44px; }
  .rt-bar .rt-h { font-size: 17px; padding-right: 40px; }
  .rt-bar .rt-p { display: none; }
  .rt-bar .rt-f { margin-top: 12px; }
  .rt-bar .rt-done { display: grid; padding-right: 40px; }
  .rt-card { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); width: auto; max-width: none; border-radius: 18px; }
  .rt-card .rt-box { padding: 16px 16px 14px; }
  .rt-card .rt-h { font-size: 17px; padding-right: 34px; margin-top: 6px; }
  .rt-card .rt-x { top: 4px; right: 4px; width: 44px; height: 44px; }
  .rt-card:not([data-open]) .rt-p, .rt-card:not([data-open]) .rt-f, .rt-card:not([data-open]) .rt-alt { display: none; }
  .rt-card:not([data-open]) .rt-open { display: flex; margin-top: 12px; width: 100%; }
  .rt-card[data-open] .rt-p { display: none; }
  .rt-inline .rt-box { padding: 20px 18px 18px 22px; }
  .rt-inline .rt-row { flex-direction: column; }
  .rt-inline .rt-row .btn { width: 100%; }
  .rt-bar .rt-row .btn { padding: 0 16px; }
}
/* телефон: окно по кнопке — шторка снизу (модальная, открыл сам человек), без списка пунктов */
@media (max-width: 767px) {
  .rt-modal, .rt-modal.rt-lead { width: 100%; max-width: 100%; margin: auto 0 0; max-height: calc(100% - 16px - env(safe-area-inset-top, 0px)); border-radius: 20px 20px 0 0; }
  .rt-modal[open] { animation-name: rt-up; }
  .rt-modal .rt-box, .rt-modal.rt-lead .rt-box { grid-template-columns: minmax(0, 1fr); }
  .rt-modal .rt-side { padding: 20px 16px 16px; }
  .rt-modal .rt-h { font-size: 21px; margin-top: 8px; padding-right: 40px; }
  .rt-modal .rt-side .rt-p { font-size: 14px; margin-top: 6px; }
  .rt-modal .rt-pts, .rt-modal .rt-main .rt-lbl, .rt-modal .rt-main .rt-sub { display: none; }
  .rt-modal[data-req="email"] .rt-main .rt-sub { display: block; margin: 0 0 12px; font-size: 14px; color: var(--ink-2); } /* «Ответим письмом.» */
  .rt-modal .rt-main { padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
  .rt-modal .rt-x { top: 6px; right: 6px; width: 44px; height: 44px; color: #cfc9e6; }
  .rt-modal .rt-x:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .rt-modal .rt-alt2 { margin-top: 12px; padding-top: 12px; }
  .rt-two { grid-template-columns: minmax(0, 1fr); }
  html.rt-lock { overflow: hidden; }
}
@media (max-width: 380px) { .rt-bar .rt-row { flex-direction: column; } .rt-bar .rt-row .btn { width: 100%; } }
@media print { .rt-bar, .rt-card, .rt-modal { display: none !important; } }

/* ---- x-search.css ---- */
/* Поиск по базе знаний и блогу (site/public/search/search.js, разметка — search_form и search_page в tools/export_site.py). Токены подхода 1. */
.srch { position: relative; width: 100%; max-width: 640px; scroll-margin-top: 84px; }
.srch-row { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s ease; }
.srch-row .ic { width: 18px; height: 18px; color: var(--muted); flex: none; }
.srch-row input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 400 15.5px/1 var(--f); color: var(--ink); }
.srch-row input::placeholder { color: var(--muted); }
.srch-row input::-webkit-search-cancel-button { cursor: pointer; }
.srch-row:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }
.srch.big .srch-row { height: 54px; border-radius: 16px; }
.srch.big .srch-row input { font-size: 16.5px; }
/* подсказка клавиши «/»: только с мышью и пока поле пустое и не в фокусе */
.srch-k { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: 500 12px/1 var(--m); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.srch-row:focus-within .srch-k, .srch-row input:not(:placeholder-shown) + .srch-k { display: none; }
@media (hover: none), (max-width: 640px) { .srch-k { display: none; } }

/* в тёмной шапке ленты блога, базы знаний и страницы поиска — как поле компании на главной */
.bl-hero .srch-row { background: var(--hook-bg); box-shadow: inset 0 0 0 1px var(--hook-line); }
.bl-hero .srch-row input { color: var(--hook-ink); }
.bl-hero .srch-row input::placeholder { color: var(--hook-ph); }
.bl-hero .srch-row .ic { color: var(--hook-ph); }
.bl-hero .srch-row:focus-within { box-shadow: inset 0 0 0 2px #cfaeff; }
.bl-hero .srch-k { color: var(--hook-ph); box-shadow: inset 0 0 0 1px var(--hook-line); }
.bl-hero .srch { margin-top: 4px; }
/* шапка обрезает всё, что выходит за край (узор точек), — окну результатов нужно выходить вниз поверх списка */
.bl-hero:has(.srch-pop) { overflow: visible; z-index: 5; }

/* вверху статьи: крошки слева, поле справа */
.ar-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 24px; flex-wrap: wrap; }
.ar-top .srch { max-width: 340px; flex: 0 1 340px; }
.ar-top .srch-row { height: 40px; border-radius: 12px; }
.ar-top .srch-row input { font-size: 14.5px; }
.ar-top .srch-pop { left: 0; right: auto; width: min(560px, calc(100vw - 32px)); }
.ar-top .srch.pop-r .srch-pop { left: auto; right: 0; }

/* окно результатов */
/* высота окна: --srch-room — место до низа видимой области (search.js fit()), потолок — свой */
.srch-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40; max-height: min(560px, 70vh, var(--srch-room, 70vh)); overflow: auto; overscroll-behavior: contain; padding: 8px; border-radius: 16px; background: var(--card); color: var(--ink); text-align: left; box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(16, 8, 50, .45); }
.srch-pop[hidden] { display: none; }
.srch-h { position: sticky; top: -8px; z-index: 1; display: flex; gap: 6px; padding: 6px 4px 8px; background: var(--card); }
.srch-f { border: 0; border-radius: 9px; padding: 8px 11px; background: var(--bg); color: var(--ink-2); font: 500 13.5px/1 var(--f); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.srch-f b { font: 600 12px/1 var(--m); opacity: .7; margin-left: 2px; }
.srch-f:hover { color: var(--ink); }
.srch-f.on { background: var(--acc); color: #fff; }
.srch-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.srch-r { display: grid; gap: 5px; padding: 10px 12px; border-radius: 10px; color: inherit; text-decoration: none; }
.srch-r:hover, .srch-r.act { background: var(--hover); }
.srch-r.act { box-shadow: inset 2px 0 0 var(--acc); }
.srch-r b { font: 650 15px/1.3 var(--fh); letter-spacing: -0.005em; }
.srch-ex { font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.srch-ex mark { background: color-mix(in srgb, var(--acc) 22%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
/* строка над заголовком: раздел и адрес статьи */
.srch-m { display: flex; align-items: center; gap: 10px; min-width: 0; font: 500 11px/1.2 var(--m); color: var(--muted); }
.srch-s { flex: none; display: inline-flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: .06em; }
.srch-s::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: #d9822b; }
.srch-s.kb::before { background: var(--acc); }
.srch-u { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; letter-spacing: .01em; }
.srch-all { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 6px; padding: 12px; border-radius: 10px; background: var(--bg); color: var(--acc-text); font: 500 14px/1 var(--f); text-decoration: none; }
.srch-all:hover, .srch-all.act { background: var(--hover); }
.srch-all span { transition: transform .15s ease; }
.srch-all:hover span, .srch-all.act span { transform: translateX(3px); }
.srch-more { width: 100%; margin-top: 4px; border: 0; border-radius: 10px; padding: 11px; background: var(--bg); color: var(--acc-text); font: 500 14px/1 var(--f); cursor: pointer; }
.srch-more:hover { background: var(--hover); }
.srch-empty { display: grid; gap: 10px; padding: 10px 12px 12px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.srch-empty b { color: var(--ink); }
.srch-empty a { color: var(--acc-text); }
.srch-cta { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-link { border: 0; padding: 0; background: none; color: var(--acc-text); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.srch-chip { padding: 8px 13px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); font-size: 14px; line-height: 1; text-decoration: none; transition: box-shadow .15s ease; }
.srch-chip:hover { box-shadow: inset 0 0 0 1px var(--acc); }

/* ---------- страница /poisk/ ---------- */
.sp-hero { padding-block: 40px 44px; }
.sp-hero .srch { max-width: 780px; }
.sp-hero .sub { max-width: 780px; }
.sp-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 0; font-size: 14px; color: var(--scene-ink-2); }
.sp-ex span { margin-right: 4px; }
.sp-ex a { padding: 7px 12px; border-radius: 999px; background: var(--scene-chip); box-shadow: inset 0 0 0 1px var(--scene-line); color: var(--scene-ink); font-size: 13.5px; line-height: 1; text-decoration: none; transition: box-shadow .15s ease, color .15s ease; }
.sp-ex a:hover { box-shadow: inset 0 0 0 1px #cfaeff; }
.sp-body { padding-block: 36px 88px; }
.sp-grid { display: grid; grid-template-columns: 208px minmax(0, 800px); gap: 48px; }
.sp-side { position: sticky; top: 96px; align-self: start; display: grid; gap: 10px; }
.sp-side-k { margin: 0; padding-left: 12px; font: 500 11px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sp-fs { display: grid; gap: 2px; }
.sp-f { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; border-radius: 10px; padding: 11px 12px; background: transparent; color: var(--ink-2); font: 500 14.5px/1 var(--f); text-align: left; cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.sp-f b { font: 600 12.5px/1 var(--m); color: var(--muted); font-variant-numeric: tabular-nums; }
.sp-f:hover { background: var(--hover); color: var(--ink); }
.sp-f.on { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), inset 3px 0 0 var(--acc); }
.sp-f.on b { color: var(--acc-text); }
.sp-main { display: grid; gap: 14px; align-content: start; min-width: 0; }
.sp-sum { margin: 0; min-height: 22px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.sp-sum:empty { display: none; }
.sp-sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.sp .srch-list { gap: 8px; }
.sp .srch-r { gap: 8px; padding: 18px 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease; }
.sp .srch-r:hover, .sp .srch-r:focus-visible { background: var(--card); box-shadow: inset 0 0 0 1px var(--acc), 0 14px 34px -24px rgba(16, 8, 50, .5); outline: none; }
.sp .srch-r b { font-size: 18.5px; line-height: 1.28; }
.sp .srch-ex { font-size: 14.5px; line-height: 1.55; }
.sp .srch-more { margin-top: 4px; padding: 15px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sp .srch-more:hover { box-shadow: inset 0 0 0 1px var(--acc); background: var(--card); }
.sp-start { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sp-sec { display: grid; gap: 8px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: inherit; text-decoration: none; transition: box-shadow .15s ease; }
.sp-sec:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.sp-sec-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.sp-sec-ic .ic { width: 22px; height: 22px; }
.sp-sec b { margin-top: 6px; font: 650 20px/1.25 var(--fh); letter-spacing: -0.01em; }
.sp-sec > span:not(.sp-sec-ic) { font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.sp-sec i { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 500; color: var(--acc-text); }
.sp-sec i .ic { width: 16px; height: 16px; transition: transform .15s ease; }
.sp-sec:hover i .ic { transform: translateX(3px); }
.sp-empty { display: grid; gap: 12px; padding: 26px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.sp-empty p { margin: 0; }
.sp-empty-t { font: 650 21px/1.3 var(--fh); letter-spacing: -0.01em; color: var(--ink); }
.sp-help { display: flex; justify-content: space-between; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-top: 10px; padding: 20px 22px; border-radius: 18px; background: color-mix(in srgb, var(--acc) 6%, var(--card)); box-shadow: inset 0 0 0 1px var(--line); }
.sp-help b { font: 650 16.5px/1.3 var(--fh); color: var(--ink); }
.sp-help p { margin: 4px 0 0; max-width: 430px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 900px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sp-side { position: static; }
  .sp-side-k { display: none; }
  .sp-fs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 2px 20px; }
  .sp-fs::-webkit-scrollbar { display: none; }
  .sp-f { flex: none; padding: 10px 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
  .sp-f.on { background: var(--acc); color: #fff; box-shadow: none; }
  .sp-f.on b { color: #fff; opacity: .75; }
}
@media (max-width: 640px) {
  .ar-top .srch { max-width: none; flex: 1 1 100%; }
  .ar-top .srch .srch-pop, .ar-top .srch.pop-r .srch-pop { left: 0; right: 0; width: auto; }
  .sp.has-q .sp-ex { display: none; }
  .srch-pop { max-height: min(65vh, var(--srch-room, 65vh)); }
  .srch-r { padding: 10px; }
  .sp-hero { padding-block: 28px 32px; }
  .sp-body { padding-block: 18px 56px; }
  .sp-start { grid-template-columns: minmax(0, 1fr); }
  .sp .srch-r { padding: 16px; border-radius: 14px; }
  .sp .srch-r b { font-size: 16.5px; }
  .sp .srch-ex { font-size: 14px; }
  .sp-empty { padding: 20px; }
  .sp-help { padding: 18px; }
}

/* ---- x-seo.css ---- */
/* SEO и ИИ (сессия seo): «Коротко» в начале статей — прямой ответ для читателя и ассистентов (div.short, tools/seo_build.py) */

/* Вид «Коротко» с 20.11 живёт в шаблоне статьи: design/v3/x-blog.css (вариант Б «Ответ на экране»). Мотивы те же:
   градиентная линия сверху, модуль DataMatrix в метке, тающий узор кода в углу. Здесь правил нет, чтобы не спорить с шаблоном. */

/* ---- x-tnved.css ---- */
/* Справочник ТН ВЭД и конвертер ТН ВЭД ↔ ОКПД 2 (tools/routes/tnved.py). Шапка, «Коротко», мост и вопросы — общие
   классы инструментов (x-tools.css), здесь — ответ, таблица кодов, группы, поиск и конвертер. Статусы:
   on — обязательна, soon — станет обязательной или по этапам, exp — эксперимент, no — не подлежит, na — нет ответа. */
.tv { --tv-on: #0f8a5a; --tv-on-bg: #e3f6ec; --tv-soon: #a15c00; --tv-soon-bg: #fdf0db; --tv-exp: #2459c9; --tv-exp-bg: #e6eefe;
      --tv-no: #6c6880; --tv-no-bg: #efedf5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tv {
  --tv-on: #5fd6a0; --tv-on-bg: rgba(46, 190, 125, .14); --tv-soon: #f2b866; --tv-soon-bg: rgba(242, 170, 70, .13); --tv-exp: #8db0ff; --tv-exp-bg: rgba(110, 150, 255, .14);
  --tv-no: #a29eb8; --tv-no-bg: rgba(255, 255, 255, .06); } }
:root[data-theme="dark"] .tv {
  --tv-on: #5fd6a0; --tv-on-bg: rgba(46, 190, 125, .14); --tv-soon: #f2b866; --tv-soon-bg: rgba(242, 170, 70, .13); --tv-exp: #8db0ff; --tv-exp-bg: rgba(110, 150, 255, .14);
  --tv-no: #a29eb8; --tv-no-bg: rgba(255, 255, 255, .06); }

.tv code { font: 500 .92em/1.2 var(--m); letter-spacing: -0.01em; }
.tv-hero .lead { max-width: 64ch; }
.tv-src { display: block; margin-top: 8px; font: 500 12.5px/1.4 var(--m); color: var(--scene-ink-2); opacity: .8; }

/* ---------- ответ: белая карточка поверх тёмной шапки ---------- */
.tv-work { position: relative; z-index: 2; margin-top: -76px; }
.tv-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); border-radius: 22px; background: var(--card);
  box-shadow: 0 0 0 1px var(--line), 0 30px 80px -34px rgba(16, 8, 50, .45); }
.tv-card > * { padding: 28px; min-width: 0; }
.tv-card > * + * { border-left: 1px solid var(--line); }
.tv-card-hub { display: block; padding: 26px 28px 22px; }
.tv-card-hub > * { padding: 0; }
.tv-card-hub > * + * { border: 0; }
.tv-verdict { display: grid; gap: 14px; align-content: start; }
.tv-v-t { position: relative; padding-left: 30px; font: 680 clamp(22px, 2.3vw, 30px)/1.15 var(--fh); letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.tv-v-t::before { content: ""; position: absolute; left: 2px; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--tv-c, var(--tv-on));
  box-shadow: 0 0 0 5px var(--tv-cb, var(--tv-on-bg)); }
.tv-verdict.on { --tv-c: var(--tv-on); --tv-cb: var(--tv-on-bg); }
.tv-verdict.soon { --tv-c: var(--tv-soon); --tv-cb: var(--tv-soon-bg); }
.tv-verdict.exp { --tv-c: var(--tv-exp); --tv-cb: var(--tv-exp-bg); }
.tv-verdict.no, .tv-verdict.na { --tv-c: var(--tv-no); --tv-cb: var(--tv-no-bg); }
.tv-verdict.mix { --tv-c: var(--acc); --tv-cb: var(--acc-soft); }
.tv-spread { display: flex; flex-wrap: wrap; gap: 8px; }
.tv-spread li { display: inline-flex; gap: 8px; align-items: baseline; padding: 7px 11px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.tv-spread b { font: 600 13px/1.2 var(--m); }
.tv-spread span { color: var(--muted); }
.tv-v-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; }
.tv-v-n { font-size: 14.5px; color: var(--ink-2); }
.tv-cd { font: 500 13px/1.3 var(--m); color: var(--tv-soon); }
.tv-fresh { font: 500 12px/1.3 var(--m); color: var(--muted); }
.tv-side { display: grid; gap: 14px; align-content: start; background: color-mix(in srgb, var(--bg) 55%, var(--card)); border-radius: 0 22px 22px 0; }
.tv-side-l { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--acc-text); }
.tv-side-l .ic { width: 18px; height: 18px; flex: none; }
.tv-side-l:hover span { text-decoration: underline; text-underline-offset: 3px; }

/* место кода в классификаторе: от позиции к коду, с отступом по уровню */
.tv-path { display: grid; gap: 2px; list-style: none; padding: 0; margin: 0; }
.tv-path li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 13.5px; line-height: 1.4; color: var(--ink-2); }
.tv-path li span { position: relative; padding-left: calc(var(--d, 0) * 12px); }
.tv-path li + li span::before { content: "↳"; position: absolute; left: calc(var(--d, 0) * 12px - 14px); color: var(--line-2); }
.tv-path li code { color: var(--muted); font-size: 12.5px; }
.tv-path li:first-child span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-path li:last-child { color: var(--ink); font-weight: 600; }
.tv-path li:last-child code { color: var(--acc-text); }

/* товарная группа — значок и название */
.tv-grp { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px 6px 8px; border-radius: 999px; background: var(--acc-soft); color: var(--ink);
  font-size: 13.5px; line-height: 1.2; max-width: 100%; }
.tv-grp .ic { width: 16px; height: 16px; flex: none; color: var(--acc-text); }
.tv-grp span { min-width: 0; }
a.tv-grp { transition: box-shadow .15s ease; }
a.tv-grp:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc-text) 45%, transparent); }

/* статус кода */
.tv-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 8px; font: 600 12.5px/1.1 var(--m); white-space: nowrap;
  color: var(--tv-c); background: var(--tv-cb); }
.tv-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tv-pill.on { --tv-c: var(--tv-on); --tv-cb: var(--tv-on-bg); }
.tv-pill.soon { --tv-c: var(--tv-soon); --tv-cb: var(--tv-soon-bg); }
.tv-pill.exp { --tv-c: var(--tv-exp); --tv-cb: var(--tv-exp-bg); }
.tv-pill.no, .tv-pill.na { --tv-c: var(--tv-no); --tv-cb: var(--tv-no-bg); }
.tv-pill.mix { --tv-c: var(--acc-text); --tv-cb: var(--acc-soft); }
.tv-pill.na { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.tv-part { margin-left: 8px; font: 500 12px/1 var(--m); color: var(--muted); }

/* ---------- поиск по справочнику ---------- */
.tv-find { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.tv-find-l { font: 500 12px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tv-find-row { min-width: 0; display: flex; gap: 8px; align-items: center; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s ease; }
.tv-find-row:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }
.tv-find-ic .ic { width: 18px; height: 18px; color: var(--muted); display: block; }
.tv-find input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 16px/1.2 var(--m); padding: 10px 0; outline: none; }
.tv-find input::placeholder { color: var(--muted); font-family: var(--f); }
.tv-find .btn { flex: none; height: 42px; }
.tv-find.big .tv-find-row { padding: 8px 8px 8px 18px; border-radius: 16px; }
.tv-find.big input { font-size: 19px; padding: 12px 0; }
.tv-find.big .btn { height: 50px; padding-inline: 26px; }
.tv-res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: min(440px, 60vh); overflow: auto; overscroll-behavior: contain;
  border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 24px 60px -20px rgba(16, 8, 50, .35); padding: 6px; }
.tv-res a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.tv-res a[aria-selected="true"], .tv-res a:hover { background: var(--hover); }
.tv-res a code { color: var(--acc-text); }
.tv-res .tv-st { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.tv-res a .tv-rn { font-size: 14px; line-height: 1.35; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tv-res mark { background: none; color: var(--ink); font-weight: 650; }
.tv-res p { padding: 12px; font-size: 14px; color: var(--muted); }
.tv-hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); }
.tv-hint .tl-link { font-family: var(--m); }

/* ---------- разделы страницы ---------- */
.tv-sec { padding-block: 64px 8px; }
.tv-sec-h { display: grid; gap: 8px; margin-bottom: 24px; }
.tv-sec .h2 { font-size: clamp(26px, 2.6vw, 38px); }
.tv-note { font-size: 13.5px; color: var(--muted); }
.tv-hero-note { font-size: 13.5px; color: var(--scene-ink-2); }

/* таблица кодов позиции: дерево ТН ВЭД с отступом по уровню */
.tv-tbl-w { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tv-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tv-tbl th { text-align: left; font: 500 11.5px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 50%, var(--card)); }
.tv-tbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tv-tbl tr:last-child td { border-bottom: 0; }
.tv-tbl tbody tr { scroll-margin-top: 90px; transition: background-color .2s ease; }
.tv-tbl tbody tr:not(.tv-sub):hover { background: var(--hover); }
.tv-tbl tr.on, .tv-tbl tr:target { background: color-mix(in srgb, var(--acc-soft) 70%, transparent); }
.tv-c { width: 1%; white-space: nowrap; }
.tv-n span { display: block; padding-left: calc((var(--d, 1) - 1) * 14px); }
.tv-n a { color: var(--acc-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
.tv-n a:hover { text-decoration-color: currentColor; }
.tv-s { width: 1%; white-space: nowrap; }
.tv-g { width: 26%; }
.tv-g .tv-grp { font-size: 12.5px; padding: 4px 9px 4px 6px; margin: 0 4px 4px 0; }
.tv-g .tv-grp .ic { width: 14px; height: 14px; }
.tv-none { color: var(--muted); }
.tv-sub td { padding-block: 9px; color: var(--muted); font-size: 13.5px; background: color-mix(in srgb, var(--bg) 35%, var(--card)); }
.tv-sub .tv-c { font: 500 12.5px/1.2 var(--m); }
.tv-dim td { color: var(--muted); }
.tv-copy { border: 0; background: none; padding: 4px 6px; margin: -4px -6px; border-radius: 6px; color: var(--ink); font: 600 13.5px/1.2 var(--m); cursor: copy; white-space: nowrap; }
.tv-copy:hover { background: var(--hover); }
.tv-copy.ok { color: var(--tv-on); }
.tv-copy.no { color: var(--tv-soon); white-space: normal; }
.tv-copy.big { margin: 0; padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; }
.tv-ok { margin-top: 6px; }
.tv-ok summary { display: inline-flex; font: 500 12.5px/1.2 var(--m); color: var(--acc-text); cursor: pointer; list-style: none; }
.tv-ok summary::-webkit-details-marker { display: none; }
.tv-ok summary::after { content: "↓"; margin-left: 6px; transition: transform .2s ease; }
.tv-ok[open] summary::after { transform: rotate(180deg); }
.tv-ok .tv-okpd { margin-top: 8px; }

/* ОКПД 2 */
.tv-okpd { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-okpd li code { display: inline-block; padding: 4px 8px; border-radius: 7px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.tv-okpd[data-more]:not(.all) li:nth-child(n + 19):not(.tv-more-li) { display: none; }
.tv-okpd .tv-more { border: 0; background: none; color: var(--acc-text); font: 500 12.5px/1.2 var(--m); padding: 4px 6px; cursor: pointer; }

/* сроки, документ, исключения по группе */
.tv-gfs, .tv-sec .tv-gf + .tv-gf { margin-top: 14px; }
.tv-gf { display: grid; gap: 16px; padding: 24px 26px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tv-gf-h { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.tv-gf-h .tv-grp { font-size: 15px; padding: 8px 14px 8px 10px; }
.tv-gf-st { font: 600 14px/1.3 var(--m); color: var(--ink-2); }
.tv-txt { color: var(--ink-2); font-size: 15px; max-width: 80ch; }
.tv-rule { padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.tv-doc { font-size: 15px; color: var(--ink-2); max-width: 86ch; }
.tv-doc b { color: var(--ink); font-weight: 600; }
.tv-stages { display: grid; gap: 10px; }
.tv-stages ul { display: grid; gap: 8px; }
.tv-stages li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 14px; align-items: baseline; font-size: 14.5px; }
.tv-stages li b { font: 600 13.5px/1.3 var(--m); color: var(--ink); }
.tv-stages li span { color: var(--ink-2); }
.tv-exc { display: grid; gap: 10px; }
.tv-exc ul { display: grid; gap: 8px; }
.tv-exc li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); max-width: 90ch; }
.tv-exc li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 2px; background: var(--tv-soon); }
.tv-okpd-w { display: grid; gap: 10px; }

/* что сделать */
.tv-todo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tv-todo-c { padding: 24px 26px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tv-todo-c h3 { font: 650 18px/1.25 var(--fh); letter-spacing: -0.01em; }
.tv-todo-c ol { counter-reset: s; display: grid; gap: 12px; margin-top: 16px; }
.tv-todo-c li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; font-size: 15px; color: var(--ink-2); }
.tv-todo-c li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--acc-soft); color: var(--acc-text); font: 600 12.5px/1 var(--m); }
.tv-bridge { margin-top: 14px; }

/* соседние позиции и куда дальше */
.tv-nears { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.tv-near { display: grid; gap: 12px; align-content: start; padding: 22px 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tv-near ul { display: grid; gap: 2px; }
.tv-near a { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; }
.tv-near a:hover { background: var(--hover); }
.tv-near a code { color: var(--acc-text); }
.tv-near a span { font-size: 14.5px; color: var(--ink-2); }
.tv .tv-next { margin-top: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tv-cr-list { display: grid; gap: 2px; }
.tv-cr-list a { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 7px 10px; margin-inline: -10px; border-radius: 10px; }
.tv-cr-list a:hover { background: var(--hover); }
.tv-cr-list a code { color: var(--acc-text); }
.tv-cr-list a span { font-size: 14px; color: var(--ink-2); }

/* ---------- хаб: товарные группы и разделы ---------- */
.tv-gcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tv-gc { display: grid; gap: 12px; align-content: start; padding: 22px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tv-gc h3 { display: flex; gap: 10px; align-items: center; font: 650 17px/1.25 var(--fh); letter-spacing: -0.01em; }
.tv-gc h3 .ic { width: 34px; height: 34px; padding: 8px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-text); flex: none; }
.tv-gc > p { font: 500 12.5px/1.2 var(--m); color: var(--muted); }
.tv-gc ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-gc li a, .tv-gc li.more { display: inline-block; padding: 5px 9px; border-radius: 8px; font: 500 13px/1.2 var(--m); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.tv-gc li a:hover { box-shadow: inset 0 0 0 1px var(--acc-text); color: var(--acc-text); }
.tv-gc li.more { box-shadow: none; color: var(--muted); background: transparent; }
.tv-gc-l { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; color: var(--acc-text); margin-top: 2px; }
.tv-gc-l .ic { width: 16px; height: 16px; }
.tv-secs { display: grid; gap: 8px; }
.tv-secd { border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tv-secd summary { display: grid; grid-template-columns: 56px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 16px 20px; cursor: pointer; list-style: none; font: 600 15.5px/1.35 var(--fh); }
.tv-secd summary::-webkit-details-marker { display: none; }
.tv-secd summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
.tv-secd[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.tv-secd summary code { color: var(--acc-text); }
.tv-secd ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 16px; padding: 0 20px 18px; }
.tv-secd li > a, .tv-secd li > .tv-ch { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 8px 10px; margin-inline: -10px; border-radius: 10px; font-size: 14.5px; }
.tv-secd li > a:hover { background: var(--hover); }
.tv-secd li > a code { color: var(--acc-text); }
.tv-secd li em { font: 500 12px/1.2 var(--m); font-style: normal; color: var(--tv-on); white-space: nowrap; }
.tv-secd li.tv-dim { color: var(--muted); }
.tv-secd li.tv-dim em { color: var(--muted); }
.tv-prose { display: grid; gap: 14px; max-width: 76ch; color: var(--ink-2); font-size: 16px; }
.tv-prose a { color: var(--acc-text); }

/* ---------- конвертер ---------- */
.tv-conv { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); align-items: start; }
.tv-conv .tl-in { position: sticky; top: 84px; border-right: 0; }
.tv-conv .tl-out { border-left: 1px solid var(--line); min-height: 100%; }
.tv-conv input { font: 500 17px/1.2 var(--m); padding: 14px 16px; }
.tv-dir { justify-self: stretch; }
.tv-cres { display: grid; gap: 10px; align-content: start; min-height: 220px; }
.tv-empty { display: grid; place-items: center; min-height: 220px; padding: 24px; border-radius: 16px; background: var(--bg); color: var(--muted); text-align: center; font-size: 14.5px; }
.tv-cr { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tv-cr-h { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; }
.tv-cr-h a { font: 600 15px/1.2 var(--m); color: var(--acc-text); }
.tv-cr-n { font-size: 14px; color: var(--ink-2); }
.tv-cr-g { display: flex; flex-wrap: wrap; gap: 6px; }
.tv-cr .tv-okpd li code { cursor: copy; }
.tv-cr-more { font: 500 13px/1.2 var(--m); color: var(--muted); text-align: center; padding: 6px; }

@media (max-width: 1100px) {
  .tv-gcs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tv .tv-next { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .tv-card { grid-template-columns: minmax(0, 1fr); }
  .tv-card > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .tv-side { border-radius: 0 0 22px 22px; }
  .tv-todo, .tv-nears { grid-template-columns: minmax(0, 1fr); }
  .tv-secd ul { grid-template-columns: minmax(0, 1fr); }
  .tv-conv { grid-template-columns: minmax(0, 1fr); }
  .tv-conv .tl-in { position: static; }
  .tv-conv .tl-out { border-left: 0; }
  /* таблица кодов — карточками: код и статус в первой строке, наименование и группа ниже */
  .tv-tbl thead { display: none; }
  .tv-tbl, .tv-tbl tbody { display: block; }
  .tv-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .tv-tbl tr:last-child { border-bottom: 0; }
  .tv-tbl td { display: block; padding: 0; border: 0; width: auto; }
  .tv-tbl .tv-c { grid-column: 1; grid-row: 1; }
  .tv-tbl .tv-s { grid-column: 2; grid-row: 1; justify-self: end; }
  .tv-tbl .tv-n { grid-column: 1 / -1; }
  .tv-tbl .tv-n span { padding-left: 0; }
  .tv-tbl .tv-g { grid-column: 1 / -1; }
  .tv-tbl .tv-g:has(.tv-none) { display: none; }
  .tv-tbl tr.tv-sub { display: block; padding: 10px 16px; }
  .tv-tbl tr.tv-sub .tv-c:empty { display: none; }
  .tv-tbl tr.tv-sub .tv-c { display: inline; margin-right: 8px; }
  .tv-tbl tr.tv-sub .tv-n { display: inline; }
  .tv-tbl tr.tv-sub .tv-n span { display: inline; }
}
@media (max-width: 640px) {
  /* длинное официальное название не должно уводить ответ за первый экран: три строки, полностью — в таблице */
  .tv-hero .lead { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 15.5px; }
  .tv-hero .tv-src { display: none; }
  .tv-card > * { padding: 20px 18px; }
  .tv-card-hub { padding: 18px 16px; }
  .tv-work { margin-top: -72px; }
  .tv-v-t { font-size: 22px; padding-left: 26px; }
  .tv-v-t::before { width: 12px; height: 12px; }
  .tv-find.big input { font-size: 16px; }
  .tv-find .tv-find-ic { display: none; }   /* узкое поле: место подсказке, а не значку */
  .tv-find-row, .tv-find.big .tv-find-row { padding-left: 14px; }
  .tv-find.big .btn { padding-inline: 16px; height: 46px; }
  .tv-find .btn { padding-inline: 14px; }
  .tv-sec { padding-block: 48px 4px; }
  .tv-gcs, .tv .tv-next { grid-template-columns: minmax(0, 1fr); }
  .tv-cr-list a { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tv .tv-dir { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tv .tv-dir button { white-space: normal; line-height: 1.25; padding: 8px 4px; }
  /* подсказки поиска на телефоне: код и плашка — первой строкой, название — второй */
  .tv-res a { grid-template-columns: minmax(0, 1fr) auto; }
  .tv-res a code { grid-column: 1; grid-row: 1; }
  .tv-res a .tv-st { grid-column: 2; grid-row: 1; justify-self: end; }
  .tv-res a .tv-rn { grid-column: 1 / -1; grid-row: 2; }
  .tv-gf, .tv-todo-c, .tv-near { padding: 20px 18px; }
  .tv-stages li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .tv-secd summary { grid-template-columns: 44px minmax(0, 1fr) 16px; padding: 14px 16px; font-size: 15px; }
  .tv-secd ul { padding: 0 16px 14px; }
  .tv-near a { grid-template-columns: 52px minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .tv-tbl tbody tr, .tv-ok summary::after, .tv-secd summary::after { transition: none; } }

/* ===== проверка обязательности /proverka-obyazatelnosti-markirovki/ (tools/routes/_tnved_check.py) ===== */
.tvc-form { display: grid; gap: 12px; min-width: 0; }
.tvc-seg { justify-self: start; }
.tvc-row { display: flex; gap: 8px; align-items: center; min-width: 0; padding: 6px 6px 6px 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .15s ease; }
.tvc-row:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }
.tvc-ic .ic { width: 18px; height: 18px; color: var(--muted); display: block; }
.tvc-row input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 500 17px/1.2 var(--m); padding: 11px 0; outline: none; }
.tvc-row input::placeholder { color: var(--muted); font-family: var(--f); }
.tvc-row .btn { flex: none; height: 44px; }
.tvc-exs { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--muted); }
.tvc-ex { border: 0; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 12.5px/1 var(--m); padding: 7px 9px; border-radius: 8px; cursor: pointer; }
.tvc-ex:hover { color: var(--acc-text); box-shadow: inset 0 0 0 1px var(--acc-text); }

.tvc-q { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline; }
.tvc-q-k { font: 500 11.5px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tvc-q code { font: 650 17px/1.2 var(--m); color: var(--acc-text); }
.tvc-q-n { flex-basis: 100%; font-size: 14px; color: var(--ink-2); }
.tvc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tvc-l { display: inline-flex; gap: 8px; align-items: center; padding: 9px 13px; border-radius: 10px; font-size: 14px; color: var(--acc-text); box-shadow: inset 0 0 0 1px var(--line-2); }
.tvc-l .ic { width: 16px; height: 16px; }
.tvc-l:hover { box-shadow: inset 0 0 0 1px var(--acc-text); }
.tvc-more { margin-top: 16px; font-size: 14.5px; }

/* плитки ближайших стартов: дата крупно, группа и что начинается */
.tvc-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tvc-tile { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease, transform .2s ease; }
.tvc-tile:hover { box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.tvc-tile time { display: grid; justify-items: center; padding: 8px 4px; border-radius: 12px; background: var(--acc-soft); color: var(--acc-text); }
.tvc-tile time b { font: 700 24px/1 var(--m); }
.tvc-tile time span { font: 500 11.5px/1.3 var(--m); text-align: center; }
.tvc-tile-t { display: grid; gap: 4px; }
.tvc-tile-t b { font: 650 15.5px/1.3 var(--fh); color: var(--ink); }
.tvc-tile-t span { font-size: 13.5px; color: var(--ink-2); }

/* вариант 2 владельца: поиск во всю ширину тёмной сцены, ответ панелью со шкалой сроков */
.tvc-hero2 .wrap { position: relative; z-index: 1; padding-block: 34px 72px; display: grid; gap: 22px; }
.tvc2-head { display: grid; justify-items: start; gap: 12px; max-width: 860px; }
.tvc2-head h1 { font: 750 clamp(32px, 4.2vw, 56px)/1.03 var(--fh); letter-spacing: -0.04em; }
.tvc2-head .lead { max-width: 64ch; }
.tvc-form.big { max-width: 920px; }
.tvc-form.big .tvc-row { padding: 8px 8px 8px 18px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: 0 20px 60px -24px rgba(0, 0, 0, .6); }
.tvc-form.big .tvc-row input { color: #0f0d18; font-size: 20px; padding: 13px 0; }
.tvc-form.big .tvc-row .btn { height: 52px; padding-inline: 28px; }
.tvc-hero2 .tvc-seg { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.tvc-hero2 .tvc-seg button { color: var(--scene-ink-2); }
.tvc-hero2 .tvc-seg button[aria-checked="true"] { color: #fff; }
.tvc-hero2 .tvc-exs { color: var(--scene-ink-2); }
.tvc-hero2 .tvc-ex { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); color: var(--scene-ink); }
.tvc2-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 22px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }
.tvc2-l, .tvc2-r { padding: 26px 28px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.tvc2-r { border-left: 1px solid rgba(255, 255, 255, .1); }
.tvc2-panel .tvc-q code { color: #d9c2ff; }
.tvc2-panel .tvc-q-n, .tvc2-panel .tv-fresh { color: var(--scene-ink-2); }
.tvc2-panel .tv-v-t { color: var(--scene-ink); }
.tvc2-panel .tl-k { color: #d2bcff; }
.tvc2-panel .tv-grp { background: rgba(175, 125, 245, .16); color: var(--scene-ink); }
.tvc2-panel .tv-grp .ic { color: #d2bcff; }
.tvc2-panel .tvc-l { color: #e2d2ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.tvc2-gs { display: grid; gap: 10px; }
.tvc2-gs li { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; }
.tvc2-gs li > span { font: 600 13px/1.35 var(--m); color: var(--scene-ink-2); }
.tvc2-line { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.tvc2-line::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(#5fd6a0, #f2b866 60%, rgba(255, 255, 255, .15)); border-radius: 2px; }
.tvc2-line li { position: relative; display: grid; gap: 2px; }
.tvc2-line li::before { content: ""; position: absolute; left: -22px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #5fd6a0; box-shadow: 0 0 0 4px rgba(95, 214, 160, .18); }
.tvc2-line li.next::before { background: var(--scene-bg-solid); box-shadow: inset 0 0 0 2px #f2b866, 0 0 0 4px rgba(242, 184, 102, .14); }
.tvc2-line time { font: 600 13px/1.3 var(--m); color: var(--scene-ink); }
.tvc2-line b { font-size: 14px; font-weight: 600; color: var(--scene-ink); }
.tvc2-line span { font-size: 13.5px; color: var(--scene-ink-2); }
.tvc2-soon .tvc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1100px) { .tvc-tiles, .tvc2-soon .tvc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .tvc2-panel { grid-template-columns: minmax(0, 1fr); }
  .tvc2-r { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
}
@media (max-width: 640px) {
  .tvc-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); justify-self: stretch; }
  .tvc-row input { font-size: 16px; }
  .tvc-ic { display: none; }   /* узкое поле: место подсказке, а не значку */
  .tvc-row .btn { padding-inline: 14px; }
  .tvc-form.big .tvc-row input { font-size: 16px; }
  .tvc-form.big .tvc-row .btn { height: 46px; padding-inline: 16px; }
  .tvc-tiles, .tvc2-soon .tvc-tiles { grid-template-columns: minmax(0, 1fr); }
  .tvc-hero2 .wrap { padding-block: 26px 48px; gap: 18px; }
  .tvc2-l, .tvc2-r { padding: 20px 18px; }
  .tvc-links .tvc-l { flex: 1 1 100%; }
}

/* подсказки под полем, сообщение о вводе, загрузка, вводная панель */
.tvc-box { position: relative; min-width: 0; }
.tvc-res { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: min(420px, 60vh); overflow: auto; overscroll-behavior: contain; padding: 6px;
  border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 13, 24, .08), 0 24px 60px -20px rgba(0, 0, 0, .55); }
.tvc-res button { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; text-align: left; cursor: pointer; color: #0f0d18; font: 400 14px/1.35 var(--f); }
.tvc-res button:hover, .tvc-res button:focus-visible { background: rgba(107, 47, 179, .08); outline: none; }
.tvc-res code { font: 600 13px/1.3 var(--m); color: #6b2fb3; white-space: nowrap; }
.tvc-res span { color: #464358; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.tvc-note { font-size: 14px; color: #f2b866; }
.tvc-ex-k { padding: 3px 8px; border-radius: 6px; background: rgba(242, 184, 102, .16); color: #f2b866; font: 600 11px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; }
.tvc2-panel { transition: opacity .2s ease; }
.tvc2-panel.busy { opacity: .55; pointer-events: none; }
.tvc2-gs li small { flex-basis: 100%; font-size: 12.5px; color: var(--scene-ink-2); }
.tvc2-intro { display: grid; gap: 10px; }
.tvc2-intro li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; font-size: 14.5px; color: var(--scene-ink); }
.tvc2-intro .ic { width: 18px; height: 18px; color: #cfaeff; margin-top: 2px; }
.tvc2-rel { display: grid; gap: 8px; }
.tvc2-rel p:last-child { display: flex; flex-wrap: wrap; gap: 6px; }
.tvc2-rel a, .tvc2-rel code { font: 500 12.5px/1 var(--m); padding: 6px 8px; border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--scene-ink); }
.tvc2-rel a { color: #e2d2ff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.tvc2-none { font-size: 14px; color: var(--scene-ink-2); }
.tvc2-panel .tv-verdict.na { --tv-c: #a29eb8; --tv-cb: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) { .tvc2-panel { transition: none; } }

/* ---- x-tools-new.css ---- */
/* Новые бесплатные инструменты (tools/routes/tools_new.py): общие части и по разделу на инструмент. Классы tn-*.
   Каркас страницы, поля, переключатели и кнопки — из x-tools.css (tl-*), токены — p1.css. Цвета состояний — свои, в обеих темах. */

.tnp { --ok: #0f8a5a; --ok-bg: rgba(15, 154, 100, .1); --bad: #c9353b; --bad-bg: rgba(229, 72, 77, .1); --warn: #a3620a; --warn-bg: rgba(214, 140, 20, .12);
  --info: var(--acc-text); --info-bg: var(--acc-soft); --tile: #fff;
  /* стрелка выпадающего списка — цвет --ink-2 темы (SVG в url() не видит переменные) */
  --tn-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23464358' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tnp { --ok: #46d39a; --ok-bg: rgba(70, 211, 154, .12); --bad: #ff7a7f; --bad-bg: rgba(255, 110, 115, .12); --warn: #f2b84b; --warn-bg: rgba(242, 184, 75, .12); --tn-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b0c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); } }
:root[data-theme="dark"] .tnp { --ok: #46d39a; --ok-bg: rgba(70, 211, 154, .12); --bad: #ff7a7f; --bad-bg: rgba(255, 110, 115, .12); --warn: #f2b84b; --warn-bg: rgba(242, 184, 75, .12); --tn-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b0c8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }

.tn-muted { color: var(--muted); }
.tn-nw { white-space: nowrap; }
/* «Подробнее» под «Попробовать бесплатно» в блоке «В кабинете Трумарка» (tools_new.py, bridge_more): светлая ссылка на тёмной сцене */
.tnp .tl-bridge-more { color: #e2d3ff; font: 500 14.5px/1.35 var(--f); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(226, 211, 255, .45); }
.tnp .tl-bridge-more:hover { color: #fff; text-decoration-color: currentColor; }

/* сбой загрузки инструмента (скрипты *.js, «не загрузилась библиотека») и кнопка, у которой не собрался файл (TNUi.failed) */
.tn-broken { margin: 0; padding: 14px 18px; border-radius: 14px; color: var(--bad); background: var(--bad-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 30%, transparent); font: 500 15px/1.45 var(--f); }
.tl-app > .tn-broken { grid-column: 1 / -1; margin: 22px 26px 0; }
@media (max-width: 980px) { .tl-app > .tn-broken { margin: 0; } }
.tnp .tn-fail, .tnp .tl-acts .tn-fail { background: var(--bad-bg) !important; box-shadow: inset 0 0 0 1px var(--bad) !important; color: var(--bad) !important; }
.tn-mono { font-family: var(--m); }

/* список проверок: значок состояния, заголовок, пояснение */
.tn-checks { list-style: none; margin: 0; padding: 0; display: grid; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tn-checks li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 12px 14px; border-top: 1px solid var(--line); }
.tn-checks li:first-child { border-top: 0; }
.tn-checks i { grid-row: 1 / span 2; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--hover); color: var(--muted); }
.tn-checks i svg { width: 16px; height: 16px; }
.tn-checks b { font-weight: 650; font-size: 14.5px; line-height: 1.35; }
.tn-checks span { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.tn-checks .ok i { background: var(--ok-bg); color: var(--ok); }
.tn-checks .bad i { background: var(--bad-bg); color: var(--bad); }
.tn-checks .warn i { background: var(--warn-bg); color: var(--warn); }
.tn-checks .info i { background: var(--info-bg); color: var(--info); }
.tn-checks .bad b { color: var(--bad); }
.tn-checks.dim i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.tn-tips { display: grid; gap: 10px; padding: 16px 18px; border-radius: 14px; background: var(--acc-soft); }
.tn-tips[hidden] { display: none; }
.tn-tips ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 14.5px; line-height: 1.5; }
.tn-tips .tl-k { color: var(--acc-text); }

/* таблицы в тексте страницы */
.tn-table { overflow-x: auto; margin: 1.2em 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tn-table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.tn-table th, .tn-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-top: 1px solid var(--line); line-height: 1.45; }
.tn-table thead th { border-top: 0; font: 600 12px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--card); }
.tn-table tbody th { font-weight: 650; white-space: nowrap; }
.tn-table td { color: var(--ink-2); }

/* печать: лист поверх страницы */
#tn-print { display: none; }
@media print {
  body.tn-printing > *:not(#tn-print) { display: none !important; }
  body.tn-printing #tn-print { display: block; color: #000; background: #fff; }
  body.tn-printing { background: #fff !important; }
}
.tn-ps { font-family: Arial, Helvetica, sans-serif; padding: 10mm; }
.tn-ps h1 { font-size: 18pt; margin: 0 0 4mm; }
.tn-ps p { font-size: 10pt; margin: 0 0 10mm; color: #333; }
.tn-ps-row { display: flex; gap: 20mm; align-items: flex-end; flex-wrap: wrap; }
.tn-ps figure { margin: 0; }
.tn-ps figcaption { font-size: 10pt; margin-top: 3mm; }
.tn-ps-dm svg { width: 40mm; height: 40mm; padding: 4mm; }
.tn-ps-ean svg { width: auto; height: auto; }

/* ---------- 1. проверка сканера ---------- */
.tl-app.tn-sc { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.tn-sc-sym { display: grid; gap: 12px; }
.tn-sc-symtop { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tn-sc-tile { position: relative; display: grid; place-items: center; min-height: 300px; padding: 26px; border-radius: 18px; background-color: var(--bg);
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.2px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tn-sc-code { background: var(--tile); border-radius: 14px; box-shadow: 0 0 0 1px rgba(15, 13, 24, .08), 0 22px 50px -24px rgba(16, 8, 50, .5); display: grid; place-items: center; }
.tn-sc-code.dm { width: min(250px, 72%); aspect-ratio: 1; padding: 22px; }
.tn-sc-code.dm svg { width: 100%; height: 100%; display: block; }
.tn-sc-code.ean { padding: 14px 18px; max-width: 100%; }
.tn-sc-code.ean svg { display: block; width: min(320px, 100%); height: auto; }
.tn-sc-own { display: grid; justify-items: center; gap: 6px; text-align: center; max-width: 280px; }
.tn-sc-own b { font: 650 17px/1.3 var(--fh); margin-top: 8px; }
.tn-sc-own span:not(.tn-sc-own-ic) { color: var(--muted); font-size: 14px; }
.tn-sc-own-ic { width: 88px; height: 88px; border-radius: 18px; background:
  linear-gradient(var(--acc-text), var(--acc-text)) 0 0 / 22px 4px no-repeat, linear-gradient(var(--acc-text), var(--acc-text)) 0 0 / 4px 22px no-repeat,
  linear-gradient(var(--acc-text), var(--acc-text)) 100% 0 / 22px 4px no-repeat, linear-gradient(var(--acc-text), var(--acc-text)) 100% 0 / 4px 22px no-repeat,
  linear-gradient(var(--acc-text), var(--acc-text)) 0 100% / 22px 4px no-repeat, linear-gradient(var(--acc-text), var(--acc-text)) 0 100% / 4px 22px no-repeat,
  linear-gradient(var(--acc-text), var(--acc-text)) 100% 100% / 22px 4px no-repeat, linear-gradient(var(--acc-text), var(--acc-text)) 100% 100% / 4px 22px no-repeat;
  position: relative; }
.tn-sc-own-ic::after { content: ""; position: absolute; left: 10px; right: 10px; top: 50%; height: 2px; background: var(--bad); box-shadow: 0 0 12px var(--bad); animation: tn-scanline 2.4s ease-in-out infinite; }
@keyframes tn-scanline { 0%, 100% { transform: translateY(-26px); } 50% { transform: translateY(26px); } }
.tn-sc-cap { font-size: 13px; color: var(--muted); line-height: 1.45; min-height: 2.9em; }

.tn-sc-pad { position: relative; display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: var(--scene-bg); color: var(--scene-ink); overflow: hidden; }
.tn-sc-pad::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .06) 1px, transparent 1.2px); background-size: 18px 18px; pointer-events: none; }
.tn-sc-pad > * { position: relative; }
.tn-sc-in { display: flex; align-items: center; gap: 10px; font: 500 14.5px/1.35 var(--f); color: var(--scene-ink-2); cursor: text; }
.tn-sc-led { width: 10px; height: 10px; border-radius: 50%; background: #5d5873; flex: none; box-shadow: 0 0 0 4px rgba(255, 255, 255, .05); transition: background-color .2s ease; }
.tn-sc-pad.is-on .tn-sc-led { background: #46d39a; box-shadow: 0 0 0 4px rgba(70, 211, 154, .18), 0 0 14px rgba(70, 211, 154, .6); animation: tn-led 1.6s ease-in-out infinite; }
.tn-sc-pad.is-busy .tn-sc-led { background: #cfaeff; box-shadow: 0 0 0 4px rgba(207, 174, 255, .2), 0 0 16px rgba(207, 174, 255, .8); animation: none; }
.tn-sc-pad.is-on .tn-sc-in { color: var(--scene-ink); }
@keyframes tn-led { 50% { box-shadow: 0 0 0 7px rgba(70, 211, 154, .06), 0 0 18px rgba(70, 211, 154, .4); } }
.tl-app .tn-sc-ta { min-height: 64px; background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); caret-color: #46d39a; font: 500 14px/1.5 var(--m); }
.tl-app .tn-sc-ta::placeholder { color: #8d89a6; font-family: var(--m); }
.tl-app .tn-sc-ta:focus { box-shadow: inset 0 0 0 2px #46d39a, 0 0 0 4px rgba(70, 211, 154, .12); }
.tn-sc-ta[hidden], .tn-sc-com[hidden] { display: none; }
/* «COM-порт · рекомендуем»: пометка в переключателе режима; ссылка на статью, как перевести сканер в COM-порт */
.tn-rec { margin-left: 6px; padding: 2px 6px; border-radius: 6px; background: var(--ok-bg); color: var(--ok); font: 600 10.5px/1.3 var(--m); letter-spacing: .02em; text-transform: uppercase; vertical-align: 1px; }
.tl-seg [aria-checked="true"] .tn-rec { background: rgba(255, 255, 255, .2); color: #fff; }
.tn-sc .tn-sc-how { justify-self: start; }
.tn-sc-com { display: grid; gap: 8px; justify-items: start; }
.tn-sc-com .btn { gap: 8px; }
.tn-sc-com .btn svg { width: 18px; height: 18px; }
.tn-sc-com .tl-hint { color: var(--scene-ink-2); }

.tn-sc-res { display: grid; gap: 14px; }
.tn-sc-res[hidden], .tn-sc-empty[hidden] { display: none; }
.tn-sc-verdict { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--hover); }
.tn-sc-verdict b { display: block; font: 700 18px/1.25 var(--fh); letter-spacing: -0.01em; }
.tn-sc-verdict small { display: block; font: 500 12px/1.3 var(--m); color: var(--muted); margin-top: 3px; }
.tn-vi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tn-vi svg { width: 20px; height: 20px; }
.tn-sc-verdict.ok { background: var(--ok-bg); } .tn-sc-verdict.ok .tn-vi { background: var(--ok); color: #fff; } .tn-sc-verdict.ok b { color: var(--ok); }
.tn-sc-verdict.bad { background: var(--bad-bg); } .tn-sc-verdict.bad .tn-vi { background: var(--bad); color: #fff; } .tn-sc-verdict.bad b { color: var(--bad); }
.tn-sc-verdict.warn, .tn-sc-verdict.none { background: var(--warn-bg); } .tn-sc-verdict.warn .tn-vi, .tn-sc-verdict.none .tn-vi { background: var(--warn); color: #fff; }
.tn-sc-got { display: grid; gap: 8px; }
.tn-sc-stream { padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font: 500 13.5px/1.9 var(--m); word-break: break-all; }
.tn-sc-stream .tk { display: inline-block; padding: 0 6px; margin: 0 2px; border-radius: 6px; font: 600 11.5px/1.65 var(--m); vertical-align: 1px; }
.tn-sc-stream .tk.gs { background: var(--acc); color: #fff; }
.tn-sc-stream .tk.cr, .tn-sc-stream .tk.lf, .tn-sc-stream .tk.tab { background: var(--res-chip); color: var(--acc-text); }
.tn-sc-stream .tk.aim, .tn-sc-stream .tk.key { background: var(--bad-bg); color: var(--bad); }
.tn-sc-stream .tk.cy { background: var(--warn-bg); color: var(--warn); padding: 0 2px; margin: 0; font-size: 13.5px; }
.tn-sc-meta { font: 500 12px/1.4 var(--m); color: var(--muted); }
.tn-sc-empty { display: grid; gap: 10px; }

@media (max-width: 980px) {
  .tn-sc-tile { min-height: 240px; }
}
@media (max-width: 640px) {
  .tn-sc-symtop .tl-seg { grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1 1 100%; }
  .tn-sc-tile { min-height: 220px; padding: 18px; }
  .tn-sc-code.dm { width: min(210px, 78%); padding: 16px; }
  .tn-checks li { padding: 11px 12px; }
  .tn-rec { display: block; width: fit-content; margin: 3px auto 0; }
}

/* ---------- 2. расшифровка ошибок ---------- */
.tl-app.tn-er { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
.tn-er-q { position: relative; }
.tn-er-q svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.tnp .tl-app .tn-er-q input { width: 100%; height: 52px; padding: 0 14px 0 44px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 16px/1 var(--f);
  box-shadow: inset 0 0 0 1px var(--line-2); outline: none; -webkit-appearance: none; appearance: none; transition: box-shadow .15s ease; }
.tnp .tl-app .tn-er-q input:focus { box-shadow: inset 0 0 0 2px var(--acc); }
.tnp .tl-app .tn-er-q input::-webkit-search-cancel-button { cursor: pointer; }
.tn-er-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tn-er-pop .tl-ex { font-family: var(--m); }
.tn-er-f .tl-seg { display: flex; flex-wrap: wrap; justify-self: stretch; }
.tn-er-f .tl-seg button { font-family: var(--f); padding: 9px 11px; }
.tn-er-f .tl-seg small { font: 500 11.5px/1 var(--m); opacity: .7; margin-left: 2px; }
.tn-er-r { display: grid; gap: 8px; }
.tn-er-rows { list-style: none; margin: 0; padding: 4px; display: grid; gap: 2px; max-height: 384px; overflow: auto; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.tn-er-rows li[data-id] { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background-color .12s ease; }
.tn-er-rows li[data-id]:hover { background: var(--hover); }
.tn-er-rows li[aria-selected="true"] { background: var(--acc-soft); }
.tn-er-n { justify-self: start; min-width: 38px; text-align: center; font: 700 13px/1 var(--m); padding: 6px 8px; border-radius: 8px; background: var(--res-chip); color: var(--acc-text); }
.tn-er-rows li[aria-selected="true"] .tn-er-n { background: var(--acc); color: #fff; }
.tn-er-t { font-size: 14px; line-height: 1.35; font-weight: 550; }
.tn-er-c { font: 500 11px/1.2 var(--m); letter-spacing: .02em; color: var(--muted); white-space: nowrap; }
.tn-er-none { padding: 14px; font-size: 14px; color: var(--muted); }

.tn-er-d { display: grid; gap: 16px; align-content: start; }
.tn-er-dh { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.tn-er-big { display: grid; place-items: center; min-width: 76px; height: 76px; padding: 0 12px; border-radius: 20px; background: var(--scene-bg); color: #fff; font: 750 34px/1 var(--m); letter-spacing: -0.04em; box-shadow: 0 18px 40px -22px rgba(60, 20, 120, .8); }
.tn-er-dh h2 { font: 700 clamp(19px, 1.7vw, 23px)/1.22 var(--fh); letter-spacing: -0.015em; margin-top: 6px; }
.tn-er-db { display: grid; gap: 14px; }
.tn-er-msgs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tn-er-msgs li { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-er-msgs .tn-er-q { display: block; quotes: none; padding: 0; background: none; font: 500 13.5px/1.5 var(--m); color: var(--ink); word-break: break-word; white-space: normal; }
.tn-er-msgs small { font-size: 12.5px; color: var(--muted); }
.tn-er-dl { display: grid; gap: 8px; margin: 0; }
.tn-er-dl > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px dashed var(--line); }
.tn-er-dl > div:first-child { border-top: 0; }
.tn-er-dl dt { font: 600 12px/1.5 var(--m); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tn-er-dl dd { margin: 0; font-size: 15px; line-height: 1.5; }
.tn-er-dl .do { padding: 12px 14px; border: 0; border-radius: 12px; background: var(--ok-bg); }
.tn-er-dl .do dt { color: var(--ok); }
.tn-er-a { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; }
.tn-er-a span { color: var(--muted); }
.tn-er-docs { font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.tn-er-da { display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 4px; }
.tn-er-empty { display: grid; gap: 8px; padding: 22px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-er-empty b { font: 650 17px/1.3 var(--fh); }
.tn-er-empty p { color: var(--ink-2); font-size: 14.5px; }

/* справочник всех ошибок */
.tn-er-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 26px; }
.tn-er-nav a { padding: 9px 13px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 550; font-size: 14px; }
.tn-er-nav a:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.tn-er-nav small { font: 500 12px/1 var(--m); color: var(--muted); margin-left: 4px; }
.tn-er-g { margin-top: 36px; scroll-margin-top: 90px; }
.tn-er-gh { display: grid; gap: 6px; margin-bottom: 14px; max-width: 860px; }
.tn-er-gh h2 { font: 700 24px/1.2 var(--fh); letter-spacing: -0.02em; }
.tn-er-gh p { color: var(--ink-2); font-size: 15px; }
.tn-er-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-items: start; }
.tn-er-i { border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); scroll-margin-top: 96px; transition: box-shadow .2s ease; }
.tn-er-i[open] { grid-column: 1 / -1; background: var(--card); box-shadow: inset 0 0 0 1.5px var(--acc); }
.tn-er-i.is-hl { box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 6px var(--acc-soft); }
.tn-er-i summary { list-style: none; display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 12px; cursor: pointer; }
.tn-er-i summary::-webkit-details-marker { display: none; }
.tn-er-i summary:hover .tn-er-t { color: var(--acc-text); }
.tn-er-i .tn-er-b { display: grid; gap: 12px; padding: 4px 16px 18px 72px; }
.tn-er-i .tn-er-b > .tl-k { margin-top: 2px; }

@media (max-width: 980px) {
  .tn-er-rows { max-height: 300px; }
  .tn-er-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .tn-er-rows li[data-id], .tn-er-i summary { grid-template-columns: 44px minmax(0, 1fr); }
  .tn-er-rows .tn-er-c, .tn-er-i summary .tn-er-c { grid-column: 2; }
  .tn-er-dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tn-er-i .tn-er-b { padding: 4px 12px 16px; }
  .tn-er-big { min-width: 60px; height: 60px; font-size: 26px; border-radius: 16px; }
  .tn-er-f .tl-seg button { padding: 8px 9px; font-size: 13px; }
}
.tn-er-i summary { grid-template-columns: 50px minmax(0, 1fr); }
.tn-er-i summary .tn-er-c { display: none; }

/* ---------- 3. калькулятор стоимости ---------- */
.tl-app.tn-ca { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tn-ca-big { display: flex; align-items: baseline; gap: 10px; padding: 6px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); }
.tn-ca-big:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }
.tnp .tl-app .tn-ca-big input { height: 56px; padding: 0; border: 0; background: transparent; box-shadow: none; font: 700 34px/1 var(--m); letter-spacing: -0.03em; color: var(--ink); min-width: 0; flex: 1; }
.tn-ca-big span { font: 500 15px/1 var(--f); color: var(--muted); }
.tn-range { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; margin: 2px 0 0; cursor: pointer; }
.tn-range::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--acc), #a46ff0); }
.tn-range::-moz-range-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--acc), #a46ff0); }
.tn-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--acc), 0 6px 14px -4px rgba(60, 20, 120, .5); }
.tn-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px var(--acc), 0 6px 14px -4px rgba(60, 20, 120, .5); }
.tn-range:focus-visible { outline: none; }
.tn-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 2px var(--acc), 0 0 0 6px var(--acc-soft); }
.tn-ca-scale { display: flex; justify-content: space-between; font: 500 11.5px/1 var(--m); color: var(--muted); }
.tn-ca-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-ca-two .tl-lab { font-size: 13.5px; }
.tn-ca-need { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.tn-ca-need legend { margin-bottom: 10px; padding: 0; }
.tn-ca-need .tl-check { font-size: 14px; }
.tn-ca-eq { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tn-ca-eq summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.tn-ca-eq summary::-webkit-details-marker { display: none; }
.tn-ca-eq summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); transition: transform .2s ease; }
.tn-ca-eq[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.tn-ca-eqb { display: grid; gap: 12px; padding: 0 16px 16px; }
.tn-ca-eqb [hidden] { display: none; }
.tnp .tl-app select { width: 100%; height: 44px; padding: 0 42px 0 14px; border: 0; border-radius: 12px; background-color: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 14.5px/1 var(--f);
  /* своя стрелка: системная у края поля «прилипала» (владелец 20.11). Отступ справа 14 px, как у остальных полей; длинное название обрезается до стрелки */
  -webkit-appearance: none; appearance: none; background-image: var(--tn-chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px 16px;
  text-overflow: ellipsis; white-space: nowrap; overflow: hidden; cursor: pointer; }
.tnp .tl-app select::-ms-expand { display: none; }
.tnp .tl-app select:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.tnp .tl-app select:focus { outline: none; box-shadow: inset 0 0 0 2px var(--acc); }

.tn-ca-sum { display: grid; gap: 10px; padding: 22px; border-radius: 18px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.tn-ca-sum::before { content: ""; position: absolute; inset: -40% -20% auto 40%; height: 140%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.tn-ca-sum > * { position: relative; }
.tn-ca-sum .tl-k { color: #d2bcff; }
.tn-ca-total { display: flex; align-items: baseline; gap: 10px; }
.tn-ca-total b { font: 750 clamp(40px, 4.4vw, 58px)/1 var(--m); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.tn-ca-total span { font: 600 22px/1 var(--f); color: var(--scene-ink-2); }
.tn-ca-sub { font-size: 14px; color: var(--scene-ink-2); }
.tn-ca-bar { display: flex; gap: 3px; height: 10px; margin: 6px 0 2px; }
.tn-ca-bar i { flex: 1 1 0; min-width: 4px; border-radius: 4px; transition: flex-grow .5s cubic-bezier(.2, .8, .2, 1); }
.tn-ca-sum .c1 { background: #f2b84b; } .tn-ca-sum .c2 { background: #b98bff; } .tn-ca-sum .c3 { background: #46d39a; } .tn-ca-sum .c4 { background: #7fb6ff; }
.tn-ca-rows { list-style: none; margin: 0; padding: 0; display: grid; }
.tn-ca-rows li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.tn-ca-rows li > i { width: 10px; height: 10px; border-radius: 3px; grid-row: 1 / span 2; }
.tn-ca-rows b { display: block; font-weight: 600; font-size: 14.5px; }
.tn-ca-rows small { display: block; font-size: 12.5px; color: var(--scene-ink-2); line-height: 1.35; }
.tn-ca-rows em { font: 600 15px/1.2 var(--m); font-style: normal; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tn-ca-every { grid-column: 3; font: 500 11px/1.2 var(--m); color: var(--scene-ink-2); text-align: right; }
.tn-ca-plan { display: grid; gap: 12px; padding: 20px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--acc); background: var(--card); }
.tn-ca-ph { display: grid; gap: 4px; }
.tn-ca-ph b { font: 750 30px/1 var(--fh); letter-spacing: -0.03em; color: var(--acc-text); }
.tn-ca-lim { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tn-ca-lim li { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.tn-ca-lim small { display: block; font: 500 11px/1.2 var(--m); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tn-ca-lim b { display: block; margin-top: 4px; font: 650 15px/1.2 var(--m); }
.tn-ca-why { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tn-ca-cta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.tn-ca-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tn-ca-t td small { display: block; font: 500 11.5px/1.3 var(--m); color: var(--muted); }
.tn-ca-t td { white-space: nowrap; font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .tn-ca-need { grid-template-columns: minmax(0, 1fr); }
  .tn-ca-lim { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tn-ca-total b { font-size: 40px; }
  .tn-ca-sum { padding: 18px 16px; }
}

/* ---------- 4. проверка GTIN и EAN-13 ---------- */
.tnp .tl-app .tn-gt-in { height: 56px; font: 650 24px/1 var(--m); letter-spacing: .02em; }
.tn-gt-ex { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tn-gt-res { display: grid; gap: 12px; }
.tn-gt-res:empty { display: none; }
.tn-gt-v { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; font-size: 15px; }
.tn-gt-v b { font-weight: 650; line-height: 1.35; }
.tn-gt-v span { font-size: 13.5px; color: var(--ink-2); }
.tn-gt-v.ok { background: var(--ok-bg); } .tn-gt-v.ok b { color: var(--ok); }
.tn-gt-v.bad { background: var(--bad-bg); } .tn-gt-v.bad b { color: var(--bad); }
.tn-gt-v .tl-link { justify-self: start; font-size: 14px; }
.tn-gt-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tn-gt-facts > div { padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.tn-gt-facts small { display: block; font: 500 11px/1.25 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tn-gt-facts b { display: block; margin-top: 5px; font-size: 14.5px; font-weight: 600; word-break: break-word; }
.tn-gt-notes { margin: 0; padding: 0 0 0 1.1em; display: grid; gap: 6px; font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.tn-gt-stage { min-height: 240px; }
.tn-gt-code { width: 100%; display: grid; place-items: center; }
.tn-gt-code svg { display: block; width: calc(var(--sc, 1) * 290px); max-width: 100%; height: auto; padding: 10px; background: #fff; border-radius: 8px; box-shadow: 0 0 0 1px rgba(15, 13, 24, .08), 0 18px 40px -18px rgba(16, 8, 50, .45); transition: width .25s cubic-bezier(.2, .8, .2, 1), opacity .2s ease; }
.tn-gt-code.is-bad svg { opacity: .3; filter: grayscale(1); }
.tn-gt-nocode { max-width: 320px; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; }
.tn-gt-calc:empty { display: none; }
.tn-gt-calc { display: grid; gap: 10px; }
.tn-gt-digits { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 3px; }
.tn-gt-digits li { display: grid; justify-items: center; gap: 3px; padding: 7px 0; border-radius: 8px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-gt-digits b { font: 700 16px/1 var(--m); }
.tn-gt-digits small { font: 500 10px/1 var(--m); color: var(--muted); }
.tn-gt-digits span { font: 600 11.5px/1 var(--m); color: var(--acc-text); }
.tn-gt-digits .ck { background: var(--acc-soft); box-shadow: inset 0 0 0 1.5px var(--acc); }
.tn-gt-digits .ck.bad { background: var(--bad-bg); box-shadow: inset 0 0 0 1.5px var(--bad); }
.tn-gt-digits .ck.bad span { color: var(--bad); }
.tn-gt-digits .ck.ok span { color: var(--ok); }
.tn-gt-sum { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.tn-gt-sum b { font-family: var(--m); color: var(--ink); }
.tn-gt-sum b.ok { color: var(--ok); } .tn-gt-sum b.bad { color: var(--bad); }
.tn-gt-sumrow { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; }
.tn-gt-sumrow .ok b { color: var(--ok); font-family: var(--m); } .tn-gt-sumrow .bad b { color: var(--bad); font-family: var(--m); }
.tn-gt-tbl { display: grid; max-height: 320px; overflow: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.tn-gt-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); padding: 9px 12px 9px 30px; font-size: 13.5px; cursor: pointer; position: relative; }
.tn-gt-row:first-child { border-top: 0; }
.tn-gt-row::before { content: ""; position: absolute; left: 12px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--ok); }
.tn-gt-row.bad::before { background: var(--bad); }
.tn-gt-row.bad span:last-child { color: var(--bad); }
.tn-gt-row span:last-child { color: var(--ink-2); }
.tn-gt-row:hover { background: var(--hover); }
.tn-gt-row.on { background: var(--acc-soft); }
@media (max-width: 640px) {
  .tn-gt-facts { grid-template-columns: minmax(0, 1fr); }
  .tn-gt-digits b { font-size: 13px; }
  .tn-gt-digits span { font-size: 10px; }
  .tn-gt-digits small { display: none; }
}
.tn-gt [data-pane][hidden], .tnp [hidden].tl-field { display: none; }
.tn-ca-two { align-items: end; }

/* ---------- 5. тестовые коды ---------- */
.tn-tc-warn { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: var(--bad-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bad) 35%, transparent); }
.tn-tc-warn b { color: var(--bad); font: 700 13px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; }
.tn-tc-warn span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.tn-tc-desc { font: 500 12.5px/1.5 var(--m); color: var(--muted); min-height: 3em; }
/* коды из песочницы Честного ЗНАКа (20.11): статус кода в шапке превью и честная пустая карточка у группы без кода */
.tn-tc-st { padding: 5px 10px; border-radius: 999px; background: var(--acc-soft); color: var(--acc-text); font: 600 12.5px/1 var(--f); }
.tn-tc-st:empty { display: none; }
.tn-tc-none { display: grid; gap: 8px; justify-items: start; max-width: 420px; margin: 18px auto; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.tn-tc-none[hidden] { display: none; }
.tn-tc-none b { font: 650 16px/1.3 var(--fh); color: var(--ink); }
.tn-tc-none span { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.tn-tc [data-struct][hidden], .tn-tc [data-acts][hidden], .tn-tc [data-preview][hidden], .tn-tc [data-variants][hidden] { display: none; }
.tnp .tl-app #tc-gtin { font-family: var(--m); letter-spacing: .02em; }
.tn-tc .tl-stage-top .tl-link { font-size: 13px; }
.tn-tc-t td:first-child { width: 64px; }
.tn-tc-t table { min-width: 640px; }

/* ---------- 6. конвертер кодов ---------- */
.tn-drop { position: relative; display: grid; gap: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line-2); background: var(--bg); transition: box-shadow .15s ease, background-color .15s ease; }
.tn-drop:focus-within { box-shadow: inset 0 0 0 2px var(--acc); }
.tn-drop.is-over { box-shadow: inset 0 0 0 2px var(--acc), 0 0 0 6px var(--acc-soft); background: var(--acc-soft); }
.tnp .tl-app .tn-drop textarea { box-shadow: none; background: transparent; min-height: 168px; border-radius: 14px 14px 0 0; }
.tn-drop-bar { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-top: 1px dashed var(--line-2); }
.tn-file { position: relative; flex: none; height: 36px; padding: 0 14px; font-size: 14px; white-space: nowrap; cursor: pointer; overflow: hidden; }
.tn-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tn-cv-gs { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tn-cv-gs[hidden] { display: none; }
.tnp .tl-app .tn-cv-gs select { width: auto; height: 38px; font-family: var(--m); }
.tn-cv-opts { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.tn-cv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tn-cv-stats > div { padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-cv-stats b { display: block; font: 700 26px/1 var(--m); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tn-cv-stats small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tn-cv-stats .warn { background: var(--warn-bg); box-shadow: none; } .tn-cv-stats .warn b { color: var(--warn); }
.tn-cv-stats > div:first-child { background: var(--scene-bg); color: var(--scene-ink); box-shadow: none; } .tn-cv-stats > div:first-child small { color: var(--scene-ink-2); }
.tn-cv-res { display: grid; gap: 8px; }
.tn-cv-rh { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tn-cv-list { list-style: none; margin: 0; padding: 4px; counter-reset: cv; max-height: 320px; overflow: auto; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.tn-cv-list li { counter-increment: cv; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 8px; padding: 7px 8px; border-radius: 8px; font-size: 12.5px; line-height: 1.45; word-break: break-all; }
.tn-cv-list li::before { content: counter(cv); grid-row: 1 / span 2; font: 500 11px/1.6 var(--m); color: var(--muted); text-align: right; }
.tn-cv-list li:nth-child(even) { background: color-mix(in srgb, var(--bg) 70%, transparent); }
.tn-cv-list li.bad .tn-mono { color: var(--bad); }
.tn-cv-list li.more { display: block; color: var(--muted); font-size: 13px; }
.tn-cv-list li.more::before { content: none; }
.tn-cv-list i.gs { font-style: normal; display: inline-block; padding: 0 4px; margin: 0 1px; border-radius: 4px; background: var(--acc); color: #fff; font: 600 10px/1.5 var(--m); vertical-align: 1px; }
.tn-cv-t { display: flex; flex-wrap: wrap; gap: 4px; grid-column: 2; }
.tn-cv-t em { font: 500 11px/1 var(--f); font-style: normal; padding: 4px 6px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-text); }
.tn-cv-t em.w { background: var(--warn-bg); color: var(--warn); } .tn-cv-t em.b { background: var(--bad-bg); color: var(--bad); }
.tn-cv-gt { display: grid; gap: 8px; }
.tn-cv-gt[hidden] { display: none; }
.tn-cv-gt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tn-cv-gt li { display: flex; gap: 8px; align-items: center; padding: 6px 10px; border-radius: 8px; background: var(--res-chip); font-size: 12.5px; }
.tn-cv-gt li b { font-family: var(--m); color: var(--acc-text); }
@media (max-width: 640px) { .tn-cv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tn-cv-stats b { font-size: 22px; } }

/* ---------- 7. просмотр УПД ---------- */
.tl-app.tn-up { grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); }
.tn-up-drop { padding: 0; }
.tn-up-dz { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 22px 16px; text-align: center; }
.tn-up-dz b { flex: 1 1 100%; font: 650 16px/1.3 var(--fh); }
.tn-up-dz > span:not(.tn-up-ic) { color: var(--muted); font-size: 14px; }
.tn-up-ic { flex: 1 1 100%; height: 40px; background: no-repeat center / 34px 40px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 40' fill='none' stroke='%237f4fd6' stroke-width='2'%3E%3Cpath d='M4 2h18l8 8v28H4z'/%3E%3Cpath d='M22 2v8h8'/%3E%3Cpath d='M10 22l-3 3 3 3M24 22l3 3-3 3M19 20l-4 10'/%3E%3C/svg%3E"); }
.tn-up-drop .tl-hint { padding: 0 16px 12px; text-align: center; margin-top: -8px; }
.tn-up-drop .tl-hint:empty { display: none; }
.tn-up-doc { display: grid; gap: 14px; }
.tn-up-doc:empty { display: none; }
.tn-up-h h2 { font: 700 21px/1.25 var(--fh); letter-spacing: -0.015em; margin-top: 4px; }
.tn-up-ps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tn-up-p { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.tn-up-p small { font: 500 11px/1.2 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tn-up-p b { font-size: 14px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.tn-up-p span { font: 500 12px/1.35 var(--m); color: var(--ink-2); }
.tn-up-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.tn-up-sum div { padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.tn-up-sum dt { font: 500 11px/1.2 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.tn-up-sum dd { margin: 4px 0 0; font: 650 15px/1.2 var(--m); font-variant-numeric: tabular-nums; }
.tn-up-sum .all { background: var(--scene-bg); color: var(--scene-ink); }
.tn-up-sum .all dt { color: var(--scene-ink-2); }
.tn-up-err { display: grid; gap: 6px; padding: 16px; border-radius: 14px; background: var(--bad-bg); }
.tn-up-err b { color: var(--bad); }
.tn-checks details { margin-top: 6px; }
.tn-checks details summary { cursor: pointer; color: var(--acc-text); font-size: 13px; }
.tn-checks details ul { margin: 6px 0 0; padding-left: 1.1em; display: grid; gap: 3px; font-size: 12px; word-break: break-all; }
.tn-up-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tn-up-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-up-tabs button { border: 0; background: transparent; color: var(--ink-2); font: 550 14px/1 var(--f); padding: 10px 12px; border-radius: 9px; cursor: pointer; white-space: nowrap; }
.tn-up-tabs button small { font: 500 11.5px/1 var(--m); opacity: .7; }
.tn-up-tabs button:hover { background: var(--hover); color: var(--ink); }
.tn-up-tabs button[aria-selected="true"] { background: var(--acc); color: #fff; }
.tn-up-pane { min-height: 260px; }
.tn-up-tw { overflow: auto; max-height: 520px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.tn-up-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tn-up-t th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; background: var(--card); font: 600 11px/1.2 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 -1px 0 var(--line); }
.tn-up-t td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.tn-up-t tbody tr:first-child td { border-top: 0; }
.tn-up-t td b { font-weight: 600; }
.tn-up-t td small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.tn-up-t .r { text-align: right; white-space: nowrap; }
.tn-up-t.codes td.code { word-break: break-all; font-size: 12.5px; }
.tn-up-t tr.bad td { background: var(--bad-bg); }
.tn-up-t i.gs, .tn-up-node i.gs { font-style: normal; padding: 0 4px; border-radius: 4px; background: var(--acc); color: #fff; font: 600 10px/1.5 var(--m); }
.tn-up-chip { display: inline-block; margin: 0 4px 4px 0; padding: 4px 7px; border-radius: 7px; background: var(--res-chip); color: var(--acc-text); font-size: 12px; white-space: nowrap; }
.tn-up-empty { padding: 26px; text-align: center; color: var(--muted); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tn-up-node { padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; }
.tn-up-ln { display: flex; gap: 10px; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.tn-up-ln .tn-mono { color: var(--acc-text); }
.tn-up-node ul { list-style: none; margin: 0; padding: 0 0 0 16px; border-left: 1.5px solid var(--line-2); display: grid; gap: 4px; }
.tn-up-node li { position: relative; display: grid; gap: 1px; padding: 4px 0 4px 10px; font-size: 12.5px; word-break: break-all; }
.tn-up-node li::before { content: ""; position: absolute; left: -16px; top: 13px; width: 20px; height: 1.5px; background: var(--line-2); }
.tn-up-node li em { font-style: normal; color: var(--muted); font-size: 12px; }
.tn-up-node li.box > .tn-mono { font-weight: 650; color: var(--acc-text); }
.tn-up-node li > ul { margin-top: 4px; }
/* печатная форма УПД для сверки */
.tn-upf { font: 10pt/1.35 Arial, Helvetica, sans-serif; color: #000; }
.tn-upf .note { font-size: 8pt; color: #555; border: 1px solid #999; padding: 2mm 3mm; margin: 0 0 4mm; }
.tn-upf h1 { font-size: 12pt; margin: 0 0 1mm; }
.tn-upf h2 { font-size: 11pt; margin: 0 0 4mm; font-weight: 600; }
.tn-upf h3 { font-size: 11pt; margin: 6mm 0 2mm; }
.tn-upf table { width: 100%; border-collapse: collapse; margin-bottom: 4mm; }
.tn-upf th, .tn-upf td { border: 1px solid #555; padding: 1.5mm 2mm; vertical-align: top; text-align: left; }
.tn-upf .kv th { width: 35mm; background: #f2f2f2; }
.tn-upf .g th { background: #f2f2f2; font-size: 9pt; }
.tn-upf .r { text-align: right; white-space: nowrap; }
.tn-upf .t td { font-weight: 700; }
.tn-upf .codes p { font: 8pt/1.4 "Courier New", monospace; margin: 0 0 2mm; word-break: break-all; }
@media (max-width: 980px) { .tn-up-tw { max-height: 420px; } }
@media (max-width: 640px) {
  .tn-up-ps, .tn-up-sum { grid-template-columns: minmax(0, 1fr); }
  .tn-up-top { flex-wrap: wrap; }
  .tn-up-tabs { width: 100%; overflow-x: auto; }
  .tn-up-tabs button { padding: 9px 10px; font-size: 13px; }
}
@media (max-width: 640px) { .tn-cv .tl-seg, .tn-tc [data-variants] { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tn-cv .tl-seg button { white-space: normal; line-height: 1.2; padding: 8px 4px; } .tn-tc [data-variants] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 8. этикетка Wildberries и Ozon ---------- */
.tn-wb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tn-wb-grid .wide { grid-column: 1 / -1; }
.tn-wb-grid .tl-lab { font-size: 13.5px; }
.tn-wb .tl-label svg { max-width: var(--lw, 380px); }
.tn-wb-nav { display: inline-flex; align-items: center; gap: 6px; font: 500 12px/1 var(--m); color: var(--muted); }
.tn-wb-nav[hidden] { display: none; }
.tn-wb-nav button { width: 26px; height: 26px; border: 0; border-radius: 8px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font: 600 15px/1 var(--f); }
.tn-wb-nav button:hover { background: var(--hover); }
.tn-wb [data-pane][hidden] { display: none; }
/* панель общего редактора макета (label-editor.js) прячем, пока этикетки нет */
.tnp .tn-wb .le-bar[hidden] { display: none; }
@media (max-width: 640px) { .tn-wb-grid { grid-template-columns: minmax(0, 1fr); } .tn-wb-zpl { width: 100%; } }
@media (max-width: 640px) { .tn-wb [aria-labelledby="wb-size-l"] { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

q.tn-q { quotes: none; }

/* ---------- 9. проверка контрагента ---------- */
.tl-app.tn-co { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.tn-co-form { display: grid; gap: 8px; position: relative; }
.tn-co-form[hidden], .tn-co [data-pane][hidden] { display: none; }
.tn-co-form .tl-lab { font-weight: 600; font-size: 14.5px; }
.tn-co-row { display: flex; gap: 8px; }
.tn-co-box { flex: 1 1 auto; min-width: 0; }
.tnp .tl-app .tn-co-box input { height: 50px; font-size: 16px; }
.tn-co-row .btn { height: 50px; }
.tn-co-sug { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 6px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line-2), 0 24px 50px -20px rgba(16, 8, 50, .45); max-height: 340px; overflow: auto; }
.tn-co-sug[hidden] { display: none; }
.tn-co-sug li[data-i] { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
.tn-co-sug li[data-i]:hover, .tn-co-sug li[aria-selected="true"] { background: var(--acc-soft); }
.tn-co-sug li b { font-weight: 600; font-size: 14.5px; }
.tn-co-sug li span { grid-column: 1; font-size: 12.5px; color: var(--muted); }
.tn-co-sug li code { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 500 12px/1 var(--m); color: var(--ink-2); background: none; padding: 0; }
.tn-co-sug li.off b { color: var(--muted); }
.tn-co-none { padding: 10px; font-size: 13.5px; color: var(--muted); }
.tn-co-go { justify-self: start; }
.tn-co-mine { border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.tn-co-mine summary { cursor: pointer; padding: 13px 16px; font-weight: 600; font-size: 14.5px; list-style: none; }
.tn-co-mine summary::-webkit-details-marker { display: none; }
.tn-co-mine summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-right: 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-text); font: 700 14px/1 var(--m); }
.tn-co-mine[open] summary::before { content: "−"; }
.tn-co-mine .tl-field { padding: 0 16px 16px; }
.tn-co-res { display: grid; gap: 12px; align-content: start; min-height: 220px; }
.tn-co-ex { margin-bottom: -4px; }
.tn-co-card { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-co-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.tn-co-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 600 12.5px/1 var(--f); background: var(--ok-bg); color: var(--ok); white-space: nowrap; }
.tn-co-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.tn-co-card.no .tn-co-badge, tr.no .tn-co-badge { background: var(--bad-bg); color: var(--bad); }
.tn-co-badge.sm { padding: 5px 8px; font-size: 12px; }
.tn-co-name { font-size: 14px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.tn-co-name b { color: var(--ink); font-weight: 650; }
.tn-co-card h3 { font: 700 20px/1.25 var(--fh); letter-spacing: -0.015em; }
.tn-co-p { font-size: 14.5px; color: var(--ink-2); line-height: 1.5; }
.tn-co-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tn-co-chip { display: inline-block; padding: 6px 10px; border-radius: 9px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; line-height: 1.3; color: var(--ink); }
a.tn-co-chip:hover { box-shadow: inset 0 0 0 1.5px var(--acc); color: var(--acc-text); }
.tn-co-chip.miss { background: var(--warn-bg); box-shadow: none; color: var(--warn); }
.tn-co-more { font-size: 12.5px; color: var(--muted); align-self: center; }
.tn-co-chip[hidden] { display: none; }
.tn-co-all { border: 0; padding: 6px 4px; background: none; color: var(--acc-text); font: 500 13px/1.3 var(--f); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; }
.tn-co-all:hover { text-decoration-color: currentColor; }
.tn-co-cmp { font-size: 14px; line-height: 1.5; }
.tn-co-cmp.ok { color: var(--ok); }
.tn-co-cmp.warn { display: grid; gap: 8px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--ink); }
.tn-co-cmp.warn.sm { display: block; margin-top: 6px; padding: 6px 8px; font-size: 12.5px; color: var(--warn); }
.tn-co-due { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--scene-bg); color: var(--scene-ink); }
.tn-co-due > b { display: grid; justify-items: center; min-width: 56px; font: 750 28px/1 var(--m); letter-spacing: -0.03em; }
.tn-co-due > b small { font: 600 11px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: #d2bcff; margin-top: 4px; }
.tn-co-due span { display: grid; gap: 3px; font-size: 14px; line-height: 1.4; }
.tn-co-due em { font: 600 11px/1.2 var(--m); font-style: normal; letter-spacing: .05em; text-transform: uppercase; color: #d2bcff; }
.tn-co-due i { font-style: normal; font-size: 12.5px; color: var(--scene-ink-2); }
.tn-co-due a { color: var(--scene-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.tn-co-src { font-size: 12.5px; color: var(--muted); }
.tn-co-note { font-size: 13.5px; color: var(--warn); }
.tn-co-err { display: grid; gap: 6px; padding: 16px 18px; border-radius: 14px; background: var(--bad-bg); }
.tn-co-err b { color: var(--bad); font-weight: 600; }
.tn-co-err.off { background: var(--warn-bg); } .tn-co-err.off b { color: var(--ink); }
.tn-co-load { display: flex; align-items: center; gap: 12px; padding: 18px; border-radius: 14px; background: var(--bg); color: var(--ink-2); font-size: 14.5px; }
.tn-co-load span { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--acc-soft); border-top-color: var(--acc); animation: tn-spin .8s linear infinite; }
@keyframes tn-spin { to { transform: rotate(360deg); } }
.tn-co-sum { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.tn-co-sum > div { padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.tn-co-sum b { display: block; font: 700 26px/1 var(--m); letter-spacing: -0.03em; }
.tn-co-sum small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tn-co-sum .ok b { color: var(--ok); } .tn-co-sum .bad { background: var(--bad-bg); box-shadow: none; } .tn-co-sum .bad b { color: var(--bad); }
.tn-co-sum .warn { background: var(--warn-bg); box-shadow: none; } .tn-co-sum .warn b { color: var(--warn); }
.tn-co-tw { overflow: auto; max-height: 520px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); overscroll-behavior: contain; }
.tn-co-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tn-co-t th { position: sticky; top: 0; z-index: 1; text-align: left; padding: 10px 12px; background: var(--card); font: 600 11px/1.2 var(--m); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); box-shadow: inset 0 -1px 0 var(--line); }
.tn-co-t td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
.tn-co-t tbody tr:first-child td { border-top: 0; }
.tn-co-t td b { display: block; font-weight: 600; overflow-wrap: anywhere; }
.tn-co-t td small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tn-co-t .tn-co-chip { padding: 4px 8px; font-size: 12px; }
.tn-co-groups { columns: 2; column-gap: 28px; padding-left: 1.1em; }
.tn-co-groups li { break-inside: avoid; margin-bottom: .35em; }
@media (max-width: 640px) {
  .tn-co-row { flex-direction: column; }
  .tn-co-row .btn { width: 100%; }
  .tn-co-card { padding: 16px; }
  .tn-co-groups { columns: 1; }
  .tn-co-t thead { display: none; }
  .tn-co-t tr { display: grid; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--line); }
  .tn-co-t td { display: block; padding: 0; border: 0; }
}
.tn-co [data-acts][hidden] { display: none; }
.tnp .tl-out > .tl-hook { margin-top: 2px; }

/* ---- x-tools.css ---- */
/* Страницы бесплатных инструментов (tools/routes/tools.py). Токены и компоненты — подход 1 (p1.css, base.css, home.css, blog.css). */

/* шапка: тёмная полоса, как первый экран главной; снизу запас под карточку инструмента */
.tl-hero { background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.tl-hero::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); background-size: 26px 26px; -webkit-mask: linear-gradient(to bottom, #000, transparent 90%); mask: linear-gradient(to bottom, #000, transparent 90%); pointer-events: none; }
.tl-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 40px; align-items: end; padding-block: 36px 108px; }
.tl-hero-l { display: grid; gap: 16px; justify-items: start; }
.tl-hero .crumbs { color: var(--scene-ink-2); }
.tl-hero .crumbs a:hover { color: #fff; }
/* строка над заголовком — общий ld-kicker (x-landings.css, вариант A, владелец 20.11) вместо пилюли; отступы как у посадочных:
   от крошек 32px и до заголовка 36px (сетка .tl-hero-l даёт 16px, остальное — здесь) */
.tl-hero .ld-kicker { margin: 16px 0 20px; }
.tl-hero h1 { font: 750 clamp(32px, 4.2vw, 56px)/1.03 var(--fh); letter-spacing: -0.04em; max-width: 24ch; }
.tl-hero .lead { max-width: 60ch; }
.tl-k { font: 500 12px/1.2 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.tl-short { padding: 20px 22px; border-radius: 18px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); display: grid; gap: 12px; }
.tl-short .tl-k { color: #d2bcff; }
.tl-short ul { display: grid; gap: 10px; }
.tl-short li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14.5px; line-height: 1.45; color: var(--scene-ink); }
.tl-short .ic { color: #cfaeff; margin-top: 2px; }
.tl-short.m { display: none; margin-top: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tl-short.m .tl-k { color: var(--acc-text); }
.tl-short.m li { color: var(--ink); }
.tl-short.m .ic { color: var(--acc-text); }

/* карточка инструмента наезжает на шапку */
.tl-work { position: relative; z-index: 2; margin-top: -76px; padding-bottom: 8px; }
.tl-app { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); border-radius: 22px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 80px -34px rgba(16, 8, 50, .45); scroll-margin-top: 80px; }
.tl-in { padding: 26px; display: grid; gap: 20px; align-content: start; border-right: 1px solid var(--line); }
.tl-out { padding: 26px; display: grid; gap: 16px; align-content: start; min-width: 0; }
.tl-field { display: grid; gap: 8px; }
.tl-lab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 14.5px; }
.tl-opt { font: 400 13px/1 var(--f); color: var(--muted); }
.tl-link { border: 0; background: none; padding: 0; color: var(--acc-text); font: 500 13.5px/1.2 var(--f); cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
.tl-link:hover { text-decoration-color: currentColor; }
.tl-app textarea, .tl-app input[type="text"], .tl-app input:not([type]), .tl-app input[type="number"] { width: 100%; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow .15s ease; }
.tl-app textarea { min-height: 116px; resize: vertical; padding: 12px 14px; font: 500 14px/1.55 var(--m); }
.tl-app textarea:not(:placeholder-shown) { word-break: break-all; }
.tl-app input:not([type="checkbox"]) { height: 44px; padding: 0 14px; font: 400 15px/1 var(--f); }
.tl-app textarea::placeholder, .tl-app input::placeholder { color: var(--muted); font-family: var(--f); font-weight: 400; }
.tl-app textarea:focus, .tl-app input:not([type="checkbox"]):focus { box-shadow: inset 0 0 0 2px var(--acc); }
.tl-hint { font-size: 13px; color: var(--muted); line-height: 1.45; }
.tl-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.tl-seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 13.5px/1 var(--m); padding: 10px 12px; border-radius: 9px; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.tl-seg button:hover { color: var(--ink); background: var(--hover); }
.tl-seg button[aria-checked="true"] { background: var(--acc); color: #fff; }
.tl-size { display: flex; align-items: end; gap: 10px; color: var(--muted); }
.tl-size[hidden], .tl-struct[hidden] { display: none; }
.tl-size label { display: grid; gap: 4px; font-size: 12.5px; }
.tl-size input { width: 96px !important; font-family: var(--m) !important; }
.tl-check { display: flex; gap: 10px; align-items: center; font-size: 14.5px; cursor: pointer; }
.tl-check input { width: 18px; height: 18px; accent-color: var(--acc); margin: 0; flex: none; }
.tl-privacy { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 16px; }
.tl-privacy::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #1f9d6a; box-shadow: 0 0 0 3px rgba(31, 157, 106, .18); flex: none; }

/* предпросмотр: этикетка всегда белая, как на рулоне */
.tl-stage { position: relative; display: grid; place-items: center; min-height: 260px; padding: 52px 20px 28px; border-radius: 16px; background-color: var(--bg); background-image: radial-gradient(color-mix(in srgb, var(--ink) 9%, transparent) 1px, transparent 1.2px); background-size: 18px 18px; box-shadow: inset 0 0 0 1px var(--line); }
.tl-stage-top { position: absolute; left: 14px; right: 14px; top: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tl-tag { font: 600 11.5px/1 var(--f); padding: 6px 9px; border-radius: 999px; color: var(--acc-text); background: var(--acc-soft); }
.tl-tag.mine { color: #0f8a5a; background: rgba(15, 154, 100, .12); }
.tl-tag.bad { color: #c9353b; background: rgba(229, 72, 77, .12); }
.tl-dim { font: 500 12px/1 var(--m); color: var(--muted); }
.tl-label { position: relative; width: 100%; display: grid; place-items: center; }
.tl-ink { z-index: 1; }
.tl-label svg { display: block; width: 100%; max-width: var(--lw, 420px); height: auto; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(15, 13, 24, .08), 0 18px 40px -18px rgba(16, 8, 50, .45); transition: opacity .2s ease; }
.tl-label.is-bad svg { opacity: .28; filter: grayscale(1); }
.tl-nojs { color: var(--muted); font-size: 14px; }
.tl-status { min-height: 1.5em; font-size: 14.5px; line-height: 1.5; display: grid; gap: 4px; }
.tl-status:empty { display: none; }
.tl-status .ok { color: #0f8a5a; }
.tl-status .err { color: #c9353b; }
.tl-status .warn { color: #a3620a; }
.tl-status .note { color: var(--muted); }
.tl-struct { display: grid; gap: 10px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tl-chips .ch { display: inline-flex; align-items: baseline; gap: 6px; max-width: 100%; padding: 6px 9px; border-radius: 8px; background: var(--res-chip); color: var(--ink); font: 500 12.5px/1.35 var(--m); }
.tl-chips .ch span { min-width: 0; word-break: break-all; }
.tl-chips .ch b { flex: none; }
.tl-chips .ch b { color: var(--acc-text); font-weight: 700; }
.tl-chips .ch.gs, .tl-chips .ch.fn { background: var(--acc); color: #fff; font-weight: 600; letter-spacing: .03em; }
.tl-parts { display: grid; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.tl-part { display: grid; grid-template-columns: 44px minmax(0, 150px) minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 8px 8px 8px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tl-part:first-child { border-top: 0; }
.tl-part .ai { font: 700 12.5px/1 var(--m); color: var(--acc-text); }
.tl-part .nm { color: var(--ink-2); }
.tl-part .nm small { display: block; font: 500 11.5px/1.3 var(--m); color: var(--muted); }
.tl-part .vl { font: 500 13px/1.4 var(--m); word-break: break-all; }
.tl-cp { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.tl-cp:hover { background: var(--hover); color: var(--ink); }
.tl-cp svg { width: 16px; height: 16px; }
.tl-acts { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.tl-dl { display: flex; gap: 8px; }
.tl-dl .btn { height: 42px; padding: 0 16px; font-size: 14.5px; }
.tl-cpy { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.tl-cpy button { height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--ink); font: 500 13.5px/1 var(--f); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background-color .15s ease; }
.tl-cpy button:hover:not(:disabled) { background: var(--hover); }
.tl-acts button:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.tl-acts .done { box-shadow: inset 0 0 0 1px #1f9d6a !important; color: #0f8a5a !important; }

/* мост в кабинет */
.tl-bridge { margin-top: 16px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center; padding: 26px 28px; border-radius: 20px; background: var(--scene-bg); color: var(--scene-ink); position: relative; overflow: hidden; }
.tl-bridge::before { content: ""; position: absolute; inset: -60% -10% auto 45%; height: 160%; background: radial-gradient(closest-side, var(--scene-glow), transparent); pointer-events: none; }
.tl-bridge > * { position: relative; }
.tl-bridge .tl-k { color: #d2bcff; }
.tl-bridge h2 { font: 700 clamp(20px, 2vw, 26px)/1.2 var(--fh); letter-spacing: -0.02em; margin-top: 8px; max-width: 34ch; }
.tl-bridge ul { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 28px; margin-top: 14px; }
.tl-bridge li { display: flex; gap: 8px; align-items: center; font-size: 14.5px; color: var(--scene-ink-2); }
.tl-bridge li .ic { width: 16px; height: 16px; color: #cfaeff; }
.tl-bridge-r { display: grid; gap: 10px; justify-items: start; max-width: 300px; }
.tl-bridge-r p { font-size: 13px; color: var(--scene-ink-2); }

/* текст страницы и оглавление */
.tl-art { padding-block: 64px 24px; }
.tl-art-grid { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 64px; align-items: start; }
.tl-art .ar-body h2:first-child { margin-top: 0; }
.tl-side { position: sticky; top: 84px; }
.tl-src { font-size: 14px !important; color: var(--muted); }
.tl-scheme { margin: 1.6em 0 0; padding: 18px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; }

/* весь цикл */
.tl-cycle { padding-block: 64px 24px; }
.tl-steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tl-steps li { position: relative; display: grid; gap: 10px; align-content: start; padding: 22px; border-radius: 16px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tl-step-n { position: absolute; top: 18px; right: 20px; font: 600 12px/1 var(--m); color: var(--muted); }
.tl-steps h3 { font: 650 18px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 6px; }
.tl-steps p { color: var(--ink-2); font-size: 14.5px; }
.tl-bonus { margin-top: 14px; display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; padding: 18px 22px; border-radius: 16px; background: var(--acc-soft); }
.tl-bonus p { flex: 1 1 340px; font-size: 15px; }
.tl-bonus-b { font: 600 12px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; color: #fff; background: var(--acc); padding: 7px 10px; border-radius: 8px; }

/* вопросы и другие инструменты */
.tl-faq { padding-block: 72px 24px; }
.tl-faq .h2 { font-size: clamp(28px, 2.8vw, 40px); }
.tl-faq .faq-list a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 3px; }
.tl-more { padding-block: 64px 48px; }
.tl-more-h { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; }
.tl-tools { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-top: 26px; }
.tl-tools .tool { grid-column: auto; padding: 18px; gap: 8px; }
.tl-tools .tool-ic { width: 36px; height: 36px; border-radius: 10px; }
.tl-tools .tool-ic svg { width: 19px; height: 19px; }
.tl-tools .tool h3 { font-size: 16px; margin-top: 4px; }
.tl-tools .tool p { font-size: 13.5px; line-height: 1.45; }

@media (max-width: 1100px) { .tl-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tl-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .tl-hero-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 28px 96px; }
  .tl-hero .tl-short { display: none; }
  .tl-short.m { display: grid; }
  /* одна колонка: поле кода, сразу под ним этикетка и итог, потом настройки, кнопки и структура */
  .tl-app { display: flex; flex-direction: column; gap: 18px; padding: 22px; }
  .tl-in, .tl-out { display: contents; }
  .tl-app > * > * { order: var(--o, 10); }
  .tl-bridge { grid-template-columns: minmax(0, 1fr); }
  .tl-art-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-side { display: none; }
}
@media (max-width: 640px) {
  .tl-hero h1 { font-size: 30px; }
  .tl-short { padding: 16px; }
  .tl-work { margin-top: -72px; }
  .tl-app { border-radius: 18px; }
  .tl-app { padding: 18px 16px; gap: 16px; }
  .tl-stage { min-height: 200px; padding: 48px 12px 20px; }
  .tl-part { grid-template-columns: 36px minmax(0, 1fr) 32px; padding: 10px 6px 10px 10px; }
  .tl-part .nm { grid-column: 2; }
  .tl-part .vl { grid-column: 2; grid-row: 2; }
  .tl-part .tl-cp { grid-column: 3; grid-row: 1 / span 2; }
  .tl-seg { display: grid; grid-template-columns: repeat(4, auto); justify-self: stretch; }
  .tl-seg button { padding: 10px 4px; font-size: 13px; white-space: nowrap; }
  .tl-seg.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ss-two { grid-template-columns: 110px minmax(0, 1fr); }
  .tl-dl { width: 100%; flex-wrap: wrap; }
  .tl-dl .btn { flex: 1 1 0; padding: 0 10px; white-space: nowrap; }
  .tl-cpy { flex-wrap: wrap; }
  .tl-cpy button { white-space: nowrap; padding: 0 9px; }
  /* короткие подписи «Скачать PDF», «18 цифр» — в одну строку: общее .tl .btn на телефоне разрешает перенос длинным кнопкам */
  .tl .tl-dl .btn { white-space: nowrap; }
  .tl-dl .btn-p { flex: 2 1 0; }
  .tl-bridge { padding: 22px 18px; }
  .tl .btn { max-width: 100%; white-space: normal; text-align: center; height: auto; min-height: 46px; padding-block: 10px; }
  .tl-bonus .btn, .tl-bridge .btn { width: 100%; }
  .tl-bridge ul { grid-template-columns: minmax(0, 1fr); }
  .tl-steps, .tl-tools { grid-template-columns: minmax(0, 1fr); }
  .tl-art, .tl-cycle, .tl-faq, .tl-more { padding-block: 48px 16px; }
}

/* ---------- общие разделы страниц инструментов ---------- */
.tl-intro { padding-block: 40px 0; }
.tl-intro p { max-width: 820px; font-size: 18px; line-height: 1.6; }
.tl-intro .tl-src { margin-top: 8px; }
.tl-sec { padding-block: 72px 8px; }
.tl-sec .sub { margin-bottom: 28px; }
.tl-alt { margin-top: 64px; padding-block: 72px; background: var(--card); border-block: 1px solid var(--line); }
.tl-center { display: flex; justify-content: center; margin-top: 28px; }
.tl-cap { font-size: 13.5px; color: var(--muted); margin-top: 10px; }
.tl-ui { display: inline-block; font: 500 .86em/1.4 var(--f); padding: 1px 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-text); white-space: nowrap; }
.tl-steps.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tl-steps .tool-ic { margin-bottom: 4px; }
.tl-noscroll { overflow: hidden; }
.tl-win { position: relative; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 70px -34px rgba(16, 8, 50, .45); }
.tl-win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #f3f1f8; border-bottom: 1px solid #e6e3ef; }
.tl-win-bar i { width: 9px; height: 9px; border-radius: 50%; background: #d9d5e5; }
.tl-win-bar span { margin-left: 10px; font: 500 12px/1 var(--m); color: #8a869e; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-win video { display: block; width: 100%; height: auto; background: #fff; }
.tl-play { position: absolute; right: 12px; bottom: 12px; border: 0; border-radius: 999px; padding: 8px 12px; background: rgba(15, 13, 24, .72); color: #fff; font: 500 12.5px/1 var(--f); cursor: pointer; }
.tl-lb { position: fixed; inset: 0; z-index: 100; background: rgba(8, 6, 16, .86); display: grid; place-items: center; padding: 24px; }
.tl-lb figure { position: relative; margin: 0; max-width: min(1400px, 100%); max-height: 100%; }
.tl-lb img { display: block; max-width: 100%; max-height: calc(100vh - 48px); width: auto; height: auto; border-radius: 10px; }

/* ---------- проверка кода ---------- */
.tl-app.pk { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.pk-row { display: flex; gap: 8px; }
.pk-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; font-family: var(--m) !important; font-size: 14.5px !important; }
.pk-row .btn { height: 44px; }
.pk-cam { height: 44px; justify-self: start; gap: 8px; }
.pk-cam[hidden] { display: none; }
.pk-exs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tl-ex { border: 0; border-radius: 8px; padding: 6px 10px; background: var(--acc-soft); color: var(--acc-text); font: 500 13px/1 var(--f); cursor: pointer; }
.tl-ex:hover { background: color-mix(in srgb, var(--acc) 18%, transparent); }
.pk-res { display: grid; gap: 12px; min-height: 120px; align-content: start; padding: 18px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pk-res:empty { display: none; }
.pk-res-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; }
.tl-chips .ch.noai { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); }
.pk-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pk-facts > div { padding: 10px 12px; border-radius: 10px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.pk-facts small { display: block; font: 500 11px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pk-facts b { display: block; margin-top: 4px; font-size: 14.5px; font-weight: 600; word-break: break-all; }
.pk-facts b.m { font: 600 13.5px/1.35 var(--m); }
.pk-notes { display: grid; gap: 6px; }
.pk-notes:empty { display: none; }
.pk-note { font-size: 14px; color: #a3620a; }
.pk-warn { font-size: 14.5px; color: #c9353b; }
.pk-up { display: grid; gap: 16px; align-content: start; }
.pk-up img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 0 0 1px var(--line), 0 20px 50px -30px rgba(16, 8, 50, .5); }
.pk-up-t { display: grid; gap: 8px; justify-items: start; }
.pk-up h2 { font: 700 20px/1.25 var(--fh); letter-spacing: -0.015em; }
.pk-up p:not(.tl-k) { color: var(--ink-2); font-size: 15px; }
.pk-up .btn { margin-top: 6px; }
.pk-up small { font-size: 12.5px; color: var(--muted); }
.pk-tour { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; }
.pk-tabs { display: grid; gap: 10px; }
.pk-tab { display: grid; gap: 8px; text-align: left; border: 0; border-radius: 16px; padding: 18px; background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.pk-tab b { display: flex; align-items: center; gap: 10px; font: 650 16.5px/1.25 var(--fh); }
.pk-tab .tool-ic { width: 34px; height: 34px; border-radius: 10px; }
.pk-tab .tool-ic svg { width: 18px; height: 18px; }
.pk-tab-p { font-size: 14px; color: var(--ink-2); }
.pk-tab ul { display: none; padding-left: 1.1em; list-style: disc; font-size: 14px; color: var(--ink-2); }
.pk-tab ul li + li { margin-top: 3px; }
.pk-tab.is-on { box-shadow: inset 0 0 0 2px var(--acc); }
.pk-tab.is-on ul { display: block; }
.pk-tab:hover:not(.is-on) { box-shadow: inset 0 0 0 1px var(--line-2); }
.pk-shot { border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -34px rgba(16, 8, 50, .4); }
.pk-pane { display: none; }
.pk-pane.is-on { display: block; }
.pk-pane img, .pk-pair img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.pk-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 40px; align-items: center; }
.pk-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pk-points li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.pk-n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--acc); color: #fff; font: 600 13px/1 var(--m); }
.pk-points h3 { font: 650 17px/1.3 var(--fh); }
.pk-points p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.pk-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 32px; }
.pk-pair figure { margin: 0; border-radius: 14px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--line); }
.pk-pair figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); }
.pk-checks { display: grid; gap: 12px; margin-top: 4px; }
.pk-checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 15.5px; }
.pk-checks .ic { color: var(--acc-text); margin-top: 3px; }
/* ТСД и маркетплейсы на проверке кода: две карточки, у каждой — ссылки на посадочные и статьи базы знаний */
.pk-ways { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pk-ways > li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; padding: 24px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pk-ways h3 { font: 650 18px/1.25 var(--fh); letter-spacing: -0.01em; margin-top: 8px; }
.pk-ways p { color: var(--ink-2); font-size: 15px; margin-top: 8px; }
.pk-go { list-style: none; margin: 16px 0 0; padding: 6px 0 0; border-top: 1px solid var(--line); display: grid; }
.pk-go a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; padding: 8px 0; font: 500 15px/1.35 var(--f); color: var(--acc-text); text-decoration: none; }
.pk-go li + li a { border-top: 1px dashed var(--line); }
.pk-go a .ic { width: 16px; height: 16px; flex: none; transition: translate .15s ease; }
.pk-go a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pk-go a:hover .ic { translate: 3px 0; }
.pk-go a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
@media (max-width: 900px) { .pk-ways { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .pk-ways > li { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 20px; } .pk-ways h3 { margin-top: 2px; } }
.pk-big { margin: 4px 0 24px; }
.pk-big .ch { font-size: 15px; padding: 9px 12px; border-radius: 10px; }
.pk-legend h3 { font-family: var(--m); font-size: 15.5px; }
.pk-wide { max-width: none; margin-top: 22px; }
.pk-statuses { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-statuses li { display: grid; gap: 8px; align-content: start; padding: 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pk-statuses p { font-size: 14.5px; color: var(--ink-2); }
.pk-pill { justify-self: start; font: 600 12.5px/1 var(--f); padding: 7px 10px; border-radius: 999px; background: var(--res-chip); color: var(--ink-2); }
.pk-pill.info { background: rgba(53, 120, 229, .12); color: #2f66c4; }
.pk-pill.ok { background: rgba(15, 154, 100, .13); color: #0f8a5a; }
.pk-pill.final { background: rgba(15, 13, 24, .08); color: var(--ink); }
.pk-pill.warn { background: rgba(240, 174, 69, .18); color: #a3620a; }
.pk-pill.bad { background: rgba(229, 72, 77, .13); color: #c9353b; }
.pk-buyer { display: flex; gap: 16px; align-items: flex-start; margin-top: 18px; padding: 20px; border-radius: 16px; background: var(--acc-soft); }
.pk-buyer h3 { font: 650 17px/1.3 var(--fh); }
.pk-buyer p { margin-top: 4px; color: var(--ink-2); font-size: 15px; max-width: 80ch; }
.pk-scan { position: fixed; inset: 0; z-index: 100; background: #08060f; color: #fff; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 24px; }
.pk-scan.is-on { display: flex; }
.pk-scan-box { position: relative; width: min(92vw, 520px); aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: #000; }
.pk-scan-box video { width: 100%; height: 100%; object-fit: cover; }
.pk-scan-frame { position: absolute; inset: 18%; border: 2px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .35); }
.pk-scan-hint { font-size: 15px; text-align: center; color: #e8e5f4; }
.pk-scan-photo { padding: 10px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); cursor: pointer; font-size: 14.5px; }
.pk-scan-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 18px; cursor: pointer; }
.tl-lb .pk-scan-close { top: 10px; right: 10px; background: rgba(15, 13, 24, .7); }
:root[data-theme="dark"] .pk-pill.final { background: rgba(255, 255, 255, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pk-pill.final { background: rgba(255, 255, 255, .1); } }
@media (max-width: 1100px) { .pk-statuses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .pk-tour, .pk-split { grid-template-columns: minmax(0, 1fr); }
  .tl-steps.three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .pk-row { flex-direction: column; }
  .pk-row .btn, .pk-cam { width: 100%; }
  .pk-facts { grid-template-columns: minmax(0, 1fr); }
  .pk-pair, .pk-statuses { grid-template-columns: minmax(0, 1fr); }
  .tl-sec { padding-block: 48px 8px; }
  .tl-alt { margin-top: 48px; padding-block: 48px; }
  .tl-intro p { font-size: 16px; }
}

/* ---------- генератор SSCC ---------- */
.ss-pane { display: grid; gap: 8px; margin-top: 14px; }
.ss-pane[hidden] { display: none; }
.ss-pane input { font-family: var(--m) !important; }
.ss-two { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 10px; }
.ss-two label { display: grid; gap: 4px; font-size: 12.5px; color: var(--muted); }
.ss-pane .tl-link { justify-self: start; }
/* пример префикса в поле значением (владелец 20.11) и серия этикеток подряд, до 500 за раз */
.ss-exh { margin: -2px 0 0; color: var(--acc-text); }
.ss-exh[hidden] { display: none; }
.ss-n { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 12.5px; color: var(--muted); }
.ss-n label { flex-basis: 100%; }
.tl-app .ss-n input { width: 96px; }
.ss-over[hidden] { display: none; }
.ss .tl-chips .ch { font-size: 14px; padding: 8px 10px; }
.ss .tl-chips .ch.ai { background: var(--acc); color: #fff; }
.ss .tl-chips .ch.alt { background: var(--acc-soft); color: var(--acc-text); }
.ss .tl-chips .ch.ok { background: rgba(15, 154, 100, .13); color: #0f8a5a; }
.ss .tl-chips .ch.badc { background: rgba(229, 72, 77, .13); color: #c9353b; }
.ss-legend { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.ss-legend span { display: inline-flex; align-items: center; gap: 6px; }
.ss-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--res-chip); }
.ss-legend i.ai { background: var(--acc); }
.ss-legend i.alt { background: var(--acc-soft); box-shadow: inset 0 0 0 1px var(--acc); }
.ss-legend i.ok { background: #1f9d6a; }
.ss-copy { flex-basis: 100%; display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 6px 6px 6px 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.ss-copy .m { flex: 1; font: 600 15px/1.3 var(--m); letter-spacing: .04em; word-break: break-all; }

/* ---------- гибрид: рабочий виджет WordPress внутри новой рамки ---------- */
.tl-legacy { position: relative; border-radius: 22px; background: #fff; color: #1b1430; color-scheme: light; padding: 22px; box-shadow: 0 0 0 1px var(--line), 0 30px 80px -34px rgba(16, 8, 50, .45); scroll-margin-top: 80px; overflow-x: auto; }
.tl-legacy :where(p) { margin: 0 0 .6em; }
.tl-legacy :where(ul, ol) { list-style: revert; padding-left: 1.3em; }
.tl-legacy :where(button, input, select, textarea) { font: inherit; }
.tl-legacy :where(h2, h3) { margin: .4em 0 .5em; }
/* заголовок и вступление внутри виджета уже показаны в шапке страницы */
.tl-legacy [data-h1], .tl-legacy [data-h1] + p { display: none; }
@media (max-width: 640px) { .tl-legacy { padding: 12px; border-radius: 18px; } }

/* ---------- оболочка: страница WordPress целиком в светлой схеме ---------- */
.tl-sh-top { padding-block: 18px 14px; }
.tl-shell { color-scheme: light; background: #fff; color: #1b1430; border-block: 1px solid var(--line); padding-block: 8px 40px; }
.tl-shell .wp-raw { overflow-x: clip; }
.tl-shell .wp-raw img, .tl-shell .wp-raw video { max-width: 100%; height: auto; }
.tl-shell :where(.wp-raw p) { margin: 0 0 1em; }
.tl-shell :where(.wp-raw ul, .wp-raw ol) { list-style: revert; padding-left: 1.3em; margin: 0 0 1em; }
.tl-shell :where(.wp-raw h2) { margin: 1.4em 0 .5em; }
.tl-shell :where(.wp-raw h3) { margin: 1.1em 0 .4em; }
.tl-shell :where(.wp-raw button, .wp-raw input, .wp-raw select, .wp-raw textarea) { font: inherit; }
.tl-shell-h h1 { font: 750 clamp(30px, 3.6vw, 48px)/1.05 var(--fh); letter-spacing: -0.035em; padding-top: 28px; max-width: 24ch; color: #0f0d18; }

/* ---------- календарь: прямой ответ «Ближайшие сроки» под первым экраном (страница в светлой схеме) ---------- */
.tl-soon { margin: 22px 0 8px; padding: 22px 24px; border-radius: 18px; background: #faf8ff; box-shadow: inset 0 0 0 1px #e6e1f3; }
.tl-soon h2 { font: 700 22px/1.2 var(--fh); letter-spacing: -0.015em; color: #0f0d18; margin: 0 0 14px !important; }
.tl-soon ol { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tl-soon li { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px #ebe7f4; }
.tl-soon li[hidden] { display: none; }
.tl-soon time { font: 600 13px/1.2 var(--m); color: #6b2fb3; letter-spacing: .02em; }
.tl-soon span { font-weight: 650; font-size: 15px; }
.tl-soon span a { color: #0f0d18; text-decoration: underline; text-decoration-color: rgba(107, 47, 179, .35); text-underline-offset: 3px; }
.tl-soon span a:hover { color: #6b2fb3; }
.tl-soon li p { margin: 0 !important; font-size: 14px; line-height: 1.45; color: #464358; }
.tl-soon-n { margin: 12px 0 0 !important; font-size: 13px; color: #77748a; }
@media (max-width: 980px) { .tl-soon ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .tl-soon { padding: 16px; } .tl-soon ol { grid-template-columns: minmax(0, 1fr); } }

/* ---------- хаб «Инструменты» ---------- */
.hub-hero .tl-hero-in { grid-template-columns: minmax(0, 1fr); }
.hub-hero .lead { max-width: 72ch; }

/* ---------- «Проверьте свою компанию» на главной: состояния ответа (основной вид — .res в base.css) ---------- */
.res-ok.warn { color: #a3620a; background: rgba(240, 174, 69, .16); }
.res-co { font-weight: 600; font-size: 14px; }
.res-p { font-size: 14.5px; color: var(--res-muted); }
.res .chips a.chip:hover { background: var(--acc); color: #fff; }
.res-src { font-size: 12.5px; color: var(--res-muted); }
.res-off p, .res-load p { font-size: 14.5px; }
.res-load p { display: flex; align-items: center; gap: 10px; color: var(--res-muted); }
.res-load p::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--res-chip); border-top-color: var(--acc); animation: tl-spin .8s linear infinite; }
@keyframes tl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .res-load p::before { animation: none; } }
.sug li.off b { color: var(--res-muted); }

/* коды показываем как есть: без лигатур моноширинного шрифта, «==» не склеивается в один знак (font сбрасывает это свойство, поэтому !important) */
.tl-app, .tl-app *, .tl-scheme *, .tl-chips * { font-variant-ligatures: none !important; font-feature-settings: "liga" 0, "calt" 0 !important; }

/* ---------- статус кода на /proverka-koda-markirovki/ (site/public/tools/pk-status.js): справа вместо плаката кабинета ---------- */
.pk-st[hidden], .pk-up[hidden] { display: none; }
.pks { --st: var(--acc); display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pks-ok { --st: #16a34a; } .pks-stop { --st: #dc2626; } .pks-wait, .pks-warn { --st: #d97706; } .pks-none { --st: var(--acc); } .pks-off { --st: #8b93a7; }
.pks-k { margin: 0; font: 500 11px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pks-h { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--st) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--st) 28%, transparent); }
.pks-ic { flex: none; width: 28px; height: 28px; color: var(--st); }
.pks-t { margin: 0; font: 750 23px/1.15 var(--fh); letter-spacing: -0.02em; color: var(--ink); }
.pks-x { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pks-rs { margin: 0; padding-left: 20px; display: grid; gap: 6px; list-style: disc; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.pks-rs li::marker { color: var(--st); }
.pks-p { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); }
.pks-p img { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #fff; }
.pks-p img[hidden] { display: none; }   /* картинка не загрузилась (pk.js) — без пустой рамки: общее img { display: block } сильнее [hidden] */
.pks-p b { display: block; font: 650 15px/1.3 var(--fh); color: var(--ink); }
.pks-p span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pks-f { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
.pks-f div { min-width: 0; }
.pks-f div.w { grid-column: 1 / -1; }
.pks-f dt { font: 500 11px/1.2 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pks-f dd { margin: 4px 0 0; font-size: 14.5px; line-height: 1.35; color: var(--ink); overflow-wrap: anywhere; }
.pks-hs ol { list-style: none; margin: 8px 0 0; padding: 0 0 0 14px; display: grid; border-left: 2px solid var(--line); }
.pks-hs li { position: relative; display: grid; gap: 2px; padding: 6px 0; }
.pks-hs li::before { content: ""; position: absolute; left: -20px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); box-shadow: inset 0 0 0 2px var(--st); }
.pks-hs time { font: 500 12px/1.2 var(--m); color: var(--muted); }
.pks-hs span { font-size: 14px; color: var(--ink); }
.pks-hs small { color: var(--muted); }
.pks-a { display: flex; flex-wrap: wrap; gap: 8px; }
.pks-spin { flex: none; width: 24px; height: 24px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, var(--acc) 22%, transparent); border-top-color: var(--acc); animation: pks-spin-k .8s linear infinite; }
.pks-sk { display: grid; gap: 8px; }
.pks-sk i { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--bg) 0%, var(--hover) 50%, var(--bg) 100%); background-size: 200% 100%; animation: pks-sh-k 1.3s ease-in-out infinite; }
.pks-sk i:nth-child(1) { width: 92%; } .pks-sk i:nth-child(2) { width: 74%; } .pks-sk i:nth-child(3) { width: 52%; }
@keyframes pks-spin-k { to { transform: rotate(360deg); } }
@keyframes pks-sh-k { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .pks-spin, .pks-sk i { animation: none; } }
@media (max-width: 640px) { .pks { padding: 16px; } .pks-t { font-size: 20px; } .pks-f { grid-template-columns: minmax(0, 1fr); } }

/* ---------- крючок в кабинет после результата (hook() в tools/routes/tools.py, site/public/tools/tl-hook.js) ---------- */
.tl-hook { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px 14px; padding: 16px 18px; border-radius: 16px; background: color-mix(in srgb, var(--acc) 7%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 24%, var(--line)); }
.tl-hook[hidden] { display: none; }
.tl-hook-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.tl-hook-ic .ic { width: 22px; height: 22px; }
.tl-hook-t b { display: block; font: 650 15.5px/1.3 var(--fh); letter-spacing: -0.005em; color: var(--ink); }
.tl-hook-t p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.tl-hook .btn { grid-column: 1 / -1; justify-self: start; }
.tl-hook-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.tl-hook-acts .btn { grid-column: auto; }
.tl-hook-more .ic { width: 16px; height: 16px; }   /* «Подробнее о … →» — на свою посадочную, рядом с «Попробовать бесплатно» */
.pks-n { margin: 0; padding: 10px 12px; border-radius: 10px; font-size: 14px; line-height: 1.45; color: var(--ink); background: color-mix(in srgb, #d97706 12%, transparent); }
.pks-f dd.m { font-family: var(--m); font-size: 13.5px; letter-spacing: .01em; }
.pks-f dd a { color: var(--acc-text); text-decoration: underline; text-underline-offset: 3px; }
.pks-c { margin: 0; font: 500 11.5px/1.3 var(--m); color: var(--muted); }
.pk [data-go][disabled] { opacity: .75; cursor: progress; }
/* крючок под виджетом WordPress: отступ от виджета, а в светлой оболочке (.tl-shell) — светлые цвета и в тёмной теме */
.tl-hook[data-hook-auto] { margin-top: 16px; }
.tl-shell .tl-hook { --card: #ffffff; --ink: #0f0d18; --ink-2: #464358; --line: #e4e1ee; --acc: #6b2fb3; --acc-text: #6b2fb3; --acc-soft: #f3e8ff; color-scheme: light; }

/* ---------- редактор макета этикетки (site/public/tools/label-editor.js) ---------- */
.le-bar { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 12px; margin-top: 14px; max-width: 520px; }
.le-edit { display: inline-flex; align-items: center; gap: 7px; height: 36px; border: 0; border-radius: 10px; padding: 0 13px; background: var(--card); color: var(--ink); font: 500 13.5px/1 var(--f); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.le-edit svg { width: 16px; height: 16px; }
.le-edit:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.le-edit[aria-pressed="true"] { background: var(--acc); color: #fff; box-shadow: none; }
.le-reset { border: 0; padding: 0 2px; background: none; color: var(--acc-text); font: 500 13.5px/1 var(--f); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.le-reset[hidden] { display: none; }
.le-tip { flex-basis: 100%; text-align: center; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.le-tip:empty { display: none; }
.le-msg { margin: 8px 0 0; max-width: 520px; text-align: center; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.le-msg:empty { display: none; }
.le-msg.err { color: #dc2626; }
.le-layer { position: absolute; z-index: 3; }
.le-layer[hidden] { display: none; }
/* сетка 1 мм точками — только пока настраиваете */
.le-on .le-layer { border-radius: 6px; background-image: radial-gradient(circle, rgba(107, 47, 179, .32) .7px, transparent .9px); background-size: var(--mm) var(--mm); background-position: calc(var(--mm) / -2) calc(var(--mm) / -2); }
.le-box { position: absolute; border-radius: 2px; outline: 1px dashed rgba(107, 47, 179, .6); cursor: grab; touch-action: none; }
.le-box:hover { outline-style: solid; }
.le-box:active { cursor: grabbing; }
.le-box.on { outline: 2px solid #6b2fb3; background: rgba(107, 47, 179, .07); }
.le-box.bad { outline-color: #dc2626; background: rgba(220, 38, 38, .1); }
.le-box:focus-visible { outline: 2px solid #6b2fb3; outline-offset: 2px; }
.le-h { position: absolute; width: 11px; height: 11px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px #6b2fb3, 0 2px 6px rgba(16, 8, 50, .25); touch-action: none; }
.le-h::after { content: ""; position: absolute; inset: -9px; }
.le-h.tl { left: -6px; top: -6px; cursor: nwse-resize; } .le-h.tr { right: -6px; top: -6px; cursor: nesw-resize; }
.le-h.bl { left: -6px; bottom: -6px; cursor: nesw-resize; } .le-h.br { right: -6px; bottom: -6px; cursor: nwse-resize; }
.le-chip { position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 1; white-space: nowrap; padding: 5px 7px; border-radius: 7px; background: #15121f; color: #fff; font: 500 10.5px/1 var(--m); letter-spacing: .01em; pointer-events: none; box-shadow: 0 6px 16px -6px rgba(16, 8, 50, .5); }
@media (pointer: coarse) {
  .le-h { width: 15px; height: 15px; }
  .le-h.tl { left: -8px; top: -8px; } .le-h.tr { right: -8px; top: -8px; } .le-h.bl { left: -8px; bottom: -8px; } .le-h.br { right: -8px; bottom: -8px; }
}

/* ZPL для термопринтера: кнопка с выбором 203 или 300 dpi */
.tl-zpl { position: relative; }
.tl-zpl > summary { list-style: none; display: inline-flex; align-items: center; height: 42px; padding: 0 16px; font-size: 14.5px; cursor: pointer; }
.tl-zpl > summary::-webkit-details-marker { display: none; }
.tl-zpl > summary::after { content: ""; width: 6px; height: 6px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tl-zpl-m { position: absolute; right: 0; top: calc(100% + 6px); z-index: 6; display: grid; min-width: 150px; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 16px 40px -16px rgba(16, 8, 50, .45); }
.tl-zpl-m button { border: 0; border-radius: 8px; padding: 10px 12px; background: none; color: var(--ink); font: 500 14px/1 var(--f); text-align: left; cursor: pointer; }
.tl-zpl-m button:hover:not([disabled]) { background: var(--hover); }
.tl-zpl-m button[disabled] { color: var(--muted); cursor: not-allowed; }
@media (max-width: 640px) { .tl-zpl { flex: 1 1 0; } .tl-zpl > summary { width: 100%; justify-content: center; padding: 0 10px; } }
.le-chip.up { top: auto; bottom: calc(100% + 8px); }
/* мелкий блок: поле захвата шире самого блока, уголки снаружи и не накрывают середину */
.le-box.tiny::before { content: ""; position: absolute; inset: -8px; }
.le-box.tiny .le-h::after { inset: -5px; }
.le-box.tiny .le-h.tl { left: -17px; top: -17px; } .le-box.tiny .le-h.tr { right: -17px; top: -17px; }
.le-box.tiny .le-h.bl { left: -17px; bottom: -17px; } .le-box.tiny .le-h.br { right: -17px; bottom: -17px; }
.le-box.tiny .le-chip { top: calc(100% + 22px); } .le-box.tiny .le-chip.up { top: auto; bottom: calc(100% + 22px); }
@media (pointer: coarse) {
  .le-box.tiny::before { inset: -12px; }
  .le-box.tiny .le-h.tl { left: -22px; top: -22px; } .le-box.tiny .le-h.tr { right: -22px; top: -22px; }
  .le-box.tiny .le-h.bl { left: -22px; bottom: -22px; } .le-box.tiny .le-h.br { right: -22px; bottom: -22px; }
  .le-box.tiny .le-chip { top: calc(100% + 28px); } .le-box.tiny .le-chip.up { top: auto; bottom: calc(100% + 28px); }
}
/* ---------- живой режим редактора (label-editor.js, live): правка сразу на превью, без «Настроить макет» (владелец 21.11) ----------
   рамки блоков — по наведению и у выделенного, на сенсорном экране — бледные всегда; сетка привязки видна, пока блок тянут */
.le-live .le-box { outline-color: transparent; }
.le-live .le-box:hover { outline: 1px dashed rgba(107, 47, 179, .7); }
.le-live .le-box.on { outline: 2px solid #6b2fb3; }
.le-live .le-box.bad { outline-color: #dc2626; }
@media (pointer: coarse) { .le-live .le-box:not(.on) { outline: 1px dashed rgba(107, 47, 179, .35); } }
.le-drag .le-layer { border-radius: 6px; background-image: radial-gradient(circle, rgba(107, 47, 179, .32) .7px, transparent .9px); background-size: var(--mm) var(--mm); background-position: calc(var(--mm) / -2) calc(var(--mm) / -2); }
.le-add { height: 36px; }
.le-panel { display: grid; gap: 12px; width: 100%; max-width: 520px; margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -28px rgba(16, 8, 50, .45); text-align: left; }
.le-panel[hidden] { display: none; }
.le-p-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.le-p-h b { font: 650 15px/1.25 var(--fh); color: var(--ink); }
.le-p-del { border: 0; padding: 4px 2px; background: none; color: #dc2626; font: 500 13.5px/1 var(--f); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.le-p-text { display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.le-p-vars { position: relative; justify-self: start; }
.le-p-menu { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); display: grid; gap: 2px; min-width: 260px; padding: 6px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -20px rgba(16, 8, 50, .45); }
.le-p-menu[hidden] { display: none; }
.le-p-menu button { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 500 14px/1.25 var(--f); text-align: left; cursor: pointer; }
.le-p-menu button small { font: 500 12px/1.2 var(--m); color: var(--muted); }
.le-p-menu button:hover, .le-p-menu button:focus-visible { background: var(--acc-soft); outline: none; }
.le-p-start { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.le-p-start[hidden] { display: none; }
.tl-app .le-p-start input { width: 110px; }
.le-p-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.le-seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.le-seg button, .le-p-b, .le-step button { min-height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); font: 500 13px/1 var(--f); cursor: pointer; }
.le-seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(16, 8, 50, .18); }
.le-p-b { min-width: 34px; font-weight: 800; box-shadow: inset 0 0 0 1px var(--line); }
.le-p-b[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc-text); box-shadow: inset 0 0 0 1px var(--acc); }
.le-step { display: inline-flex; align-items: center; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.le-step button { min-width: 34px; font-size: 16px; }
.le-step span { min-width: 58px; text-align: center; font: 500 13px/1 var(--m); color: var(--ink); }
.le-seg button:focus-visible, .le-p-b:focus-visible, .le-step button:focus-visible, .le-p-del:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.le-p-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
@media (max-width: 640px) { .le-panel { padding: 12px; } .le-p-menu { min-width: 0; right: -60px; } .le-seg button { padding: 0 8px; } }

/* ---------- пачка кодов из файла в генераторе GS1 (site/public/tools/batch.js) ---------- */
.tl-batch { display: grid; gap: 10px; scroll-margin-top: 90px; }
.tl-batch[hidden] { display: none; }
.tl-batch-pick { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; transition: box-shadow .15s ease, background-color .15s ease; }
.tl-batch-pick:hover, .tl-batch-pick:focus-within, .tl-batch-pick.over { box-shadow: inset 0 0 0 1.5px var(--acc); }
.tl-batch-pick.over { background: color-mix(in srgb, var(--acc) 8%, var(--bg)); }
.tl-batch-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.tl-batch-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.tl-batch-ic svg { width: 20px; height: 20px; }
.tl-batch-t b { display: block; font: 600 14.5px/1.3 var(--fh); color: var(--ink); }
.tl-batch-t span { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.tl-batch-btn { padding: 8px 12px; border-radius: 10px; background: var(--card); color: var(--acc-text); font: 500 13px/1 var(--f); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.tl-batch-res { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.tl-batch-res[hidden] { display: none; }
.tl-batch-sum { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tl-batch-f { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12.5px/1.2 var(--m); color: var(--muted); }
.tl-batch-sum b { margin-left: auto; flex: none; font: 650 15px/1 var(--fh); color: var(--ink); }
.tl-batch-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: var(--bg); color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; }
.tl-batch-x:hover { color: var(--ink); }
.tl-batch-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.tl-batch-err { margin: 0; font-size: 13.5px; line-height: 1.45; color: #dc2626; }
/* в файле больше 500 кодов: сказано до сборки, остальные — кнопкой в файл для следующей пачки */
.tl-batch-warn { display: grid; gap: 6px; justify-items: start; padding: 12px 14px; border-radius: 12px; background: rgba(217, 119, 6, .1); box-shadow: inset 0 0 0 1px rgba(217, 119, 6, .35); }
.tl-batch-warn b { font: 650 14px/1.35 var(--fh); color: var(--ink); }
.tl-batch-warn span { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.tl-batch-warn .btn { margin-top: 4px; }
.tl-batch-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-batch-acts .btn[disabled] { opacity: .6; cursor: progress; }
.tl-batch-prog { display: grid; gap: 6px; }
.tl-batch-prog[hidden] { display: none; }
.tl-batch-prog i { display: block; height: 4px; width: 0; border-radius: 4px; background: var(--acc); transition: width .2s ease; }
.tl-batch-prog span { font: 500 12px/1.2 var(--m); color: var(--muted); }
.tl-batch-hint { margin: 0; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
@media (max-width: 640px) { .tl-batch-pick { grid-template-columns: auto minmax(0, 1fr); } .tl-batch-btn { grid-column: 1 / -1; justify-self: start; } }

/* ---------- коды маркировки из PDF (pdf_codes() в tools/routes/tools.py, site/public/tools/pdf-codes.js) ---------- */
.tl-app.pc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); --warn: #b45309; }
.pc-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 30px 20px 24px; border-radius: 18px; text-align: center; background: var(--bg); border: 1.5px dashed color-mix(in srgb, var(--acc) 34%, var(--line-2)); cursor: pointer; transition: border-color .15s ease, background-color .15s ease; }
.pc-drop:hover, .pc-drop.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, var(--bg)); }
.pc-drop:focus-within { border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.pc-drop input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.pc-drop-ic { width: 56px; height: 56px; margin-bottom: 6px; border-radius: 16px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); transition: transform .2s ease; }
.pc-drop-ic .ic { width: 28px; height: 28px; }
.pc-drop:hover .pc-drop-ic, .pc-drop.over .pc-drop-ic { transform: translateY(-2px); }
.pc-drop b { font: 650 17px/1.3 var(--fh); letter-spacing: -0.01em; color: var(--ink); }
.pc-drop > .pc-dnd { font-size: 14px; color: var(--ink-2); }
.pc-tap { display: none; }
@media (pointer: coarse) { .pc-drop .pc-dnd { display: none; } .pc-drop .pc-tap { display: inline; } }
.pc-drop .btn { margin-top: 10px; pointer-events: none; }
.pc-drop small { margin-top: 6px; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 30ch; }
.pc-checks ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.pc-checks li { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pc-checks .ic { flex: none; width: 18px; height: 18px; color: #16a34a; }

.pc-stage { --scan: 0; position: relative; display: grid; justify-items: center; gap: 14px; padding: 28px 20px 22px; border-radius: 18px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--acc) 9%, transparent), transparent 70%), var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pc-stage[hidden] { display: none; }
/* лист — как бумага в обеих темах: тёмные коды на светлом, в тёмной теме бумага чуть приглушена */
.pc-sheet { --paper: #fff; --paper-line: #dcd9e6; --paper-ink: #16131f; position: relative; width: 100%; max-width: 214px; aspect-ratio: 210 / 297; filter: drop-shadow(0 18px 30px rgba(16, 8, 50, .16)); }
.pc-sheet svg { display: block; width: 100%; height: 100%; }
.pc-sheet .pg { fill: var(--paper); stroke: var(--paper-line); }
.pc-sheet .lb { fill: none; stroke: var(--paper-line); stroke-width: .6; }
.pc-sheet .dm { fill: var(--paper-ink); }
.pc-sheet .tx { fill: var(--paper-line); }
.pc-sheet .bm { opacity: 0; }
.pc-sheet .dn { fill: var(--acc); opacity: .07; transform-origin: 0 0; transform: scaleY(var(--scan)); transition: transform .3s ease; }
.pc-stage.run .bm { opacity: 1; animation: pc-beam 1.8s cubic-bezier(.45, 0, .55, 1) infinite; }
.pc-stage.run .dm { animation: pc-dm 1.8s ease-in-out infinite; }
@keyframes pc-beam { from { transform: translateY(-24px); } to { transform: translateY(297px); } }
@keyframes pc-dm { 50% { fill: #6d28d9; } }
.pc-stage p { margin: 0; max-width: 40ch; text-align: center; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.pc-stage.run p { visibility: hidden; }

.pc-state { display: grid; gap: 10px; }
.pc-state[hidden] { display: none; }
.pc-prog { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pc-prog-t { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.pc-prog-t b { font-weight: 600; color: var(--ink); }
.pc-prog-t span { font: 500 13px/1.2 var(--m); color: var(--acc-text); white-space: nowrap; }
.pc-prog i { display: block; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.pc-prog i b { display: block; height: 100%; border-radius: 6px; background: var(--acc); transition: width .25s ease; }
.pc-prog .tl-link { justify-self: start; }
.pc-prog .tl-link[disabled] { opacity: .5; cursor: default; }
.pc-err { margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.5; color: var(--ink); background: color-mix(in srgb, #dc2626 8%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #dc2626 22%, var(--line)); }
.pc-err a { color: var(--acc-text); }

.pc-res { display: grid; gap: 14px; min-width: 0; }
.pc-res[hidden] { display: none; }
.pc-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pc-file { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px/1.3 var(--m); color: var(--ink); }
.pc-pages { flex: none; margin-left: auto; font-size: 12.5px; color: var(--muted); }
.pc-again { display: none; justify-self: start; }
.pc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.pc-stat { padding: 14px 16px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pc-stat b { display: block; font: 750 28px/1 var(--fh); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-stat span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.3; color: var(--muted); }
.pc-stat.warn b { color: var(--warn); }
.pc-stat.ok b { color: #16a34a; }
.pc-note { margin: 0; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
/* главное действие после проверки — печать на своих этикетках в генераторе GS1 */
.pc-batch { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 18px; border: 0; border-radius: 14px; text-align: left; cursor: pointer; color: #fff;
  background: var(--acc); box-shadow: 0 14px 30px -16px color-mix(in srgb, var(--acc) 80%, transparent); transition: background-color .15s ease, transform .15s ease; }
.pc-batch:hover { background: var(--acc-hover); }
.pc-batch:active { transform: translateY(1px); }
.pc-batch:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.pc-batch b { display: block; font: 650 16px/1.3 var(--fh); }
.pc-batch small { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: rgba(255, 255, 255, .84); }
.pc-batch svg { flex: none; margin-left: auto; width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.pc-batch:hover svg { transform: translateX(3px); }
.pc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-tab { border: 0; border-radius: 999px; padding: 8px 13px; background: var(--bg); color: var(--ink-2); font: 500 13px/1 var(--f); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.pc-tab b { margin-left: 2px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.pc-tab.on { background: var(--ink); color: var(--card); box-shadow: none; }
.pc-tab.on b { color: inherit; }
.pc-list { list-style: none; margin: 0; padding: 0; max-height: 540px; overflow: auto; overscroll-behavior: contain; border-radius: 14px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pc-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 11px 14px 11px 8px; }
.pc-row + .pc-row { border-top: 1px solid var(--line); }
.pc-n { font: 500 12px/1.6 var(--m); color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.pc-c { min-width: 0; }
.pc-c code { display: block; font: 500 12.5px/1.6 var(--m); color: var(--ink); word-break: break-all; background: none; padding: 0; }
.pc-gs { display: inline-block; margin: 0 2px; padding: 2px 4px; border-radius: 4px; font: 650 9px/1 var(--m); font-style: normal; vertical-align: 1px; background: var(--acc-soft); color: var(--acc-text); }
.pc-notes { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; }
.pc-notes li { position: relative; padding-left: 14px; font-size: 12.5px; line-height: 1.4; color: var(--warn); }
.pc-notes li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pc-meta { display: grid; justify-items: end; gap: 5px; }
.pc-k { padding: 4px 8px; border-radius: 999px; font: 500 11.5px/1 var(--f); white-space: nowrap; color: var(--ink-2); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pc-row.sscc .pc-k { background: var(--acc-soft); color: var(--acc-text); box-shadow: none; }
.pc-row.other .pc-k { color: var(--muted); }
.pc-p { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.pc-more { justify-self: center; margin-top: 4px; border: 0; background: none; padding: 8px 12px; border-radius: 10px; color: var(--acc-text); font: 500 13.5px/1 var(--f); cursor: pointer; }
.pc-more:hover { background: var(--bg); }
.pc-empty { margin: 0; padding: 18px; text-align: center; font-size: 14px; color: var(--muted); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tl-app.pc { --warn: #f2a54a; } :root:not([data-theme="light"]) .pc-sheet { --paper: #e6e4ee; --paper-line: #c4c0d3; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); } }
:root[data-theme="dark"] .tl-app.pc { --warn: #f2a54a; }
:root[data-theme="dark"] .pc-sheet { --paper: #e6e4ee; --paper-line: #c4c0d3; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
@media (prefers-reduced-motion: reduce) { .pc-stage.run .bm, .pc-stage.run .dm { animation: none; } .pc-stage.run .bm { transform: translateY(140px); } }
/* одна колонка: после разбора большая зона загрузки уходит, вместо неё ссылка «Загрузить другой PDF» */
@media (max-width: 980px) { .pc.has-res .pc-drop { display: none; } .pc.has-res .pc-again { display: block; } .pc.has-res .pc-head .tl-batch-x { display: none; } }
@media (max-width: 640px) {
  .pc-drop { padding: 22px 16px 18px; }
  .pc-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .pc-stage:not(.run) { display: none; }
  .pc-stage { padding: 18px 16px 14px; } .pc-sheet { max-width: 120px; } .pc-stage p { display: none; }
  .pc-row { grid-template-columns: 24px minmax(0, 1fr); gap: 8px 10px; padding: 10px 12px 10px 6px; }
  .pc-meta { grid-column: 2; display: flex; align-items: center; gap: 8px; }
  .pc-list { max-height: none; }
  .pc-stat { padding: 12px; } .pc-stat b { font-size: 22px; } .pc-stat span { font-size: 12px; }
  .pc-acts .btn { flex: 1 1 auto; }
}

/* ---------- мостик к соседнему инструменту одной строкой (xlink() в tools/routes/tools.py) ---------- */
.tl-xlink { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: var(--ink); text-decoration: none; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .15s ease; }
.tl-xlink:hover { box-shadow: inset 0 0 0 1.5px var(--acc); }
.tl-xlink:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.tl-xlink-ic { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc-text); }
.tl-xlink-ic .ic { width: 18px; height: 18px; }
.tl-xlink .tl-xlink-t { min-width: 0; font: 400 14px/1.4 var(--f); letter-spacing: 0; color: var(--ink-2); }
.tl-xlink .tl-xlink-t b { font-weight: 600; color: var(--ink); }
.tl-xlink > .ic:last-child { flex: none; margin-left: auto; width: 18px; height: 18px; color: var(--acc-text); transition: transform .2s ease; }
.tl-xlink:hover > .ic:last-child { transform: translateX(3px); }
/* в оболочке календаря страница всегда светлая: свои светлые значения, ссылка без подчёркивания из текста WordPress */
.tl-xlink-row { max-width: 1104px; margin: 20px auto 28px; }
.tl-shell .tl-xlink { --card: #ffffff; --ink: #0f0d18; --ink-2: #464358; --line: #e4e1ee; --acc: #6b2fb3; --acc-text: #6b2fb3; --acc-soft: #f3e8ff; color-scheme: light; text-decoration: none !important; }
@media (prefers-reduced-motion: reduce) { .tl-xlink > .ic:last-child { transition: none; } }

/* путь в три шага над инструментом: PDF → проверка → печать (pdf-codes.js переключает on и done) */
.pc-path { grid-column: 1 / -1; list-style: none; margin: 0; padding: 20px 26px 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pc-path li { position: relative; display: flex; align-items: flex-start; gap: 10px; padding-top: 14px; }
.pc-path li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--line); transition: background-color .3s ease; }
.pc-path li.on::before, .pc-path li.done::before { background: var(--acc); }
.pc-path-n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 650 12.5px/1 var(--fh); color: var(--muted); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: background-color .2s ease, color .2s ease; }
.pc-path li.on .pc-path-n { color: #fff; background: var(--acc); box-shadow: none; }
.pc-path li.done .pc-path-n { font-size: 0; color: var(--acc-text); background: var(--acc-soft); box-shadow: none; }
.pc-path li.done .pc-path-n::before { content: "✓"; font-size: 13px; }
.pc-path-t { min-width: 0; }
.pc-path-t b { display: block; font: 600 14px/1.3 var(--fh); color: var(--ink-2); }
.pc-path li.on .pc-path-t b { color: var(--ink); }
.pc-path-t small { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.pc-dl { display: grid; gap: 8px; }
.pc-dl .tl-k { margin: 0; }
.pc-gtins { border-radius: 12px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.pc-gtins summary { cursor: pointer; padding: 10px 14px; font-size: 13.5px; color: var(--ink-2); }
.pc-gtins p { margin: 0 14px 6px; font-size: 12.5px; color: var(--muted); }
.pc-gtins ul { list-style: none; margin: 0; padding: 0 14px 10px; display: grid; gap: 4px; }
.pc-gtins li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.pc-gtins code { font: 500 12.5px/1.3 var(--m); color: var(--ink); background: none; padding: 0; }
@media (prefers-reduced-motion: reduce) { .pc-path li::before, .pc-path-n, .pc-batch { transition: none; } }
@media (max-width: 980px) { .pc-path { padding: 0; } }
@media (max-width: 640px) { .pc-path { gap: 10px; } .pc-path li { flex-direction: column; gap: 6px; } .pc-path-t b { font-size: 12.5px; } .pc-path-t small { display: none; } }

/* ---------- хаб инструментов: витрина по задачам (hub_section() и more_tools() в tools/routes/tools.py, site/public/tools/hub.js) ---------- */
/* .thub — витрина инструментов, свой префикс: прежний .hx совпал с первым экраном посадочных (hero ld-hero hx hx-a…),
   и посадочные уезжали под шапку (20.11). Классы и data-атрибуты витрины — только thub, тест в tools/tests/tools-js.test.mjs */
.thub { position: relative; z-index: 2; margin-top: -76px; padding-bottom: 64px; }
.thub .wrap { display: grid; gap: 36px; }
.thub-bar { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); align-items: center; gap: 12px 18px; padding: 14px; border-radius: 20px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px -34px rgba(16, 8, 50, .45); }
.thub-search { position: relative; display: block; }
.thub-search .ic { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; translate: 0 -50%; color: var(--muted); pointer-events: none; }
.thub-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 15px/1 var(--f);
  box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow .15s ease; -webkit-appearance: none; appearance: none; }
.thub-search input::placeholder { color: var(--muted); }
.thub-search input:focus { box-shadow: inset 0 0 0 2px var(--acc); }
.thub-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.thub-chip { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bg); color: var(--ink-2);
  font: 500 14px/1 var(--f); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; transition: background-color .15s ease, color .15s ease, box-shadow .15s ease; }
.thub-chip i { width: 8px; height: 8px; border-radius: 3px; background: var(--h); }
.thub-chip b { font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.thub-chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.thub-chip.on { background: var(--ink); color: var(--card); box-shadow: none; }
.thub-chip.on b { color: inherit; opacity: .65; }
.thub-chip:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.thub-h { margin: 0 0 14px; display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--m); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.thub-h::before { content: ""; width: 7px; height: 7px; background: var(--acc); border-radius: 1px; }

/* главные инструменты: крупные карточки с живым превью */
.thub-feat { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.thub-f { position: relative; display: grid; grid-template-rows: auto 1fr auto; gap: 16px; padding: 12px 12px 20px; border-radius: 22px; background: var(--card); color: var(--ink);
  text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s ease, transform .25s ease; }
.thub-f:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 45%, var(--line)), 0 26px 50px -30px color-mix(in srgb, var(--h) 65%, transparent); }
.thub-f:focus-visible, .thub-t:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
.thub-prev { position: relative; height: 200px; border-radius: 15px; overflow: hidden; display: grid;
  background: radial-gradient(110% 100% at 50% 0%, color-mix(in srgb, var(--h) 15%, transparent), transparent 72%), var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.thub-f-b { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 0 8px; }
.thub-f .thub-tt b { font: 650 19px/1.25 var(--fh); letter-spacing: -0.01em; }
.thub-f .thub-tt > span { font-size: 14.5px; }
.thub-f-go { justify-self: start; display: inline-flex; align-items: center; gap: 6px; margin: 0 8px; font: 600 14.5px/1 var(--f); color: var(--acc-text); }
.thub-f-go .ic { width: 16px; height: 16px; transition: transform .2s ease; }
.thub-f:hover .thub-f-go .ic { transform: translateX(3px); }
.thub-f .thub-tt .thub-bds { margin-bottom: 2px; }

/* плитки */
.thub-grp { display: grid; gap: 16px; }
.thub-grp-h { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 6px 12px; }
.thub-dot { width: 12px; height: 12px; border-radius: 4px; background: var(--h); }
.thub-grp-h h2 { margin: 0; font: 700 26px/1.15 var(--fh); letter-spacing: -0.02em; color: var(--ink); }
.thub-n { font: 600 13px/1 var(--m); color: var(--muted); }
.thub-grp-h p { grid-column: 2 / -1; margin: 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); }
/* посадочные по задачам под заголовком группы (21.11, перелинковка) */
.thub-grp-h .thub-land { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 2px; }
.thub-land a { display: inline-flex; align-items: center; gap: 6px; font: 600 14px/1.3 var(--f); color: var(--acc-text); text-decoration: none; }
.thub-land a .ic { width: 15px; height: 15px; transition: translate .15s ease; }
.thub-land a:hover { text-decoration: underline; text-underline-offset: 3px; }
.thub-land a:hover .ic { translate: 3px 0; }
.thub-land a:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 4px; }
.thub-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.thub-tiles.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.thub-t { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 18px 22px 18px 18px; border-radius: 18px;
  background: var(--card); color: var(--ink); text-decoration: none; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s ease, transform .25s ease; }
.thub-t[hidden] { display: none; }
.thub-t:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 45%, var(--line)), 0 20px 40px -28px color-mix(in srgb, var(--h) 60%, transparent); }
.thub-ic { --hc: var(--h); width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--hc);
  background: color-mix(in srgb, var(--h) 12%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--h) 20%, transparent); transition: background-color .25s ease, color .25s ease; }
.thub-ic .ic { width: 23px; height: 23px; }
.thub-t:hover .thub-ic, .thub-f:hover .thub-ic, .thub-t:focus-visible .thub-ic { background: var(--h); color: #fff; box-shadow: none; }
.thub-tt { min-width: 0; display: grid; gap: 5px; align-content: start; }
.thub-tt b { font: 650 16px/1.3 var(--fh); letter-spacing: -0.005em; color: var(--ink); }
.thub-tt > span { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.thub-go { --hc: var(--h); position: absolute; right: 16px; bottom: 16px; width: 16px; height: 16px; color: var(--hc); opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.thub-t:hover .thub-go, .thub-t:focus-visible .thub-go { opacity: 1; transform: none; }
.thub-bds { display: flex; flex-wrap: wrap; gap: 4px; }
.thub-t > .thub-bds { position: absolute; top: -9px; right: 14px; }
.thub-bd { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 999px; font: 600 10.5px/1 var(--m); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.thub-bd .ic { width: 11px; height: 11px; }
.thub-bd-top { background: #fff0e3; color: #b9430c; box-shadow: inset 0 0 0 1px #fed7b8; }
.thub-bd-new { background: var(--acc-soft); color: var(--acc-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 22%, transparent); }
.thub-bd-batch, .thub-bd-local { background: var(--card); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }

.thub-empty { margin: 0; padding: 28px; border-radius: 18px; text-align: center; color: var(--ink-2); background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.thub-empty[hidden], .thub-grp[hidden], .thub-top[hidden], .thub-f[hidden] { display: none; }

/* ---------- превью ---------- */
.hp { position: relative; width: 100%; height: 100%; padding: 18px; display: grid; align-content: center; gap: 12px; }
.hp-pk-code { position: relative; display: flex; flex-wrap: wrap; gap: 5px; padding: 12px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.hp-c { display: inline-flex; gap: 5px; align-items: baseline; padding: 6px 8px; border-radius: 7px; background: var(--bg); font: 500 11.5px/1 var(--m); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.hp-c b { color: var(--acc-text); font-weight: 650; }
.hp-gs { padding: 6px 7px; border-radius: 7px; background: var(--acc); color: #fff; font: 650 10.5px/1 var(--m); }
.hp-beam { position: absolute; top: 0; bottom: 0; left: 0; width: 70px; background: linear-gradient(90deg, transparent, color-mix(in srgb, #16a34a 26%, transparent), transparent); transform: translateX(-90px); }
.hp-pk-st { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, #16a34a 9%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, #16a34a 32%, var(--line)); }
.hp-ok { position: relative; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #16a34a; color: #fff; }
.hp-ok .ic { width: 18px; height: 18px; }
.hp-ok::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px #16a34a; opacity: 0; }
.hp-pk-st b { display: block; font: 750 17px/1.1 var(--fh); color: var(--ink); letter-spacing: -0.01em; }
.hp-pk-st small { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); }

.hp-gs1 { justify-items: center; }
.hp-lab { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; width: min(100%, 290px); padding: 12px 14px; border-radius: 8px;
  background: #fff; color: #111; box-shadow: 0 16px 30px -18px rgba(16, 8, 50, .45), inset 0 0 0 1px rgba(0, 0, 0, .07); }
.hp-dm { width: 82px; height: 82px; fill: #111; }
.hp-lab-t { display: grid; gap: 3px; min-width: 0; }
.hp-lab-t b { font: 700 12.5px/1.25 Arial, Helvetica, sans-serif; margin-bottom: 3px; }
.hp-lab-t span { font: 500 11px/1.35 "Courier New", Courier, monospace; white-space: nowrap; }
.hp-gs1-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.hp-gs1-tags span, .hp-pdf-out span { padding: 5px 9px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); font: 500 11px/1 var(--m); color: var(--ink-2); white-space: nowrap; }

.hp-pdf { grid-template-columns: auto auto auto; justify-content: center; align-items: center; gap: 16px; }
.hp-sheet { --paper: #fff; --paper-line: #dcd9e6; position: relative; width: 112px; aspect-ratio: 210 / 297; filter: drop-shadow(0 14px 22px rgba(16, 8, 50, .18)); }
.hp-sheet svg { display: block; width: 100%; height: 100%; }
.hp-sheet .pg { fill: var(--paper); stroke: var(--paper-line); }
.hp-sheet .lb { fill: none; stroke: var(--paper-line); stroke-width: .6; }
.hp-sheet .dm { fill: #16131f; }
.hp-sheet .tx { fill: var(--paper-line); }
.hp-sheet .dn { display: none; }
.hp-sheet .bm { opacity: 1; transform: translateY(120px); }
.hp-pdf-n { position: absolute; left: -16px; bottom: 14px; display: grid; gap: 2px; padding: 6px 10px; border-radius: 10px; background: var(--ink); color: var(--card); box-shadow: 0 10px 20px -10px rgba(16, 8, 50, .5); }
.hp-pdf-n b { font: 750 18px/1 var(--fh); }
.hp-pdf-n span { font-size: 10.5px; opacity: .8; }
.hp-pdf-arrow { color: var(--muted); }
.hp-pdf-arrow .ic { width: 22px; height: 22px; }
.hp-pdf-out { display: grid; gap: 6px; justify-items: start; }

@media (prefers-reduced-motion: no-preference) {
  .hp-beam { animation: hp-beam 4.8s cubic-bezier(.45, 0, .55, 1) infinite; }
  .hp-ok::after { animation: hp-ring 4.8s ease-out infinite; }
  .hp-dm { animation: hp-ink 6s ease-in-out infinite; }
  .hp-sheet .bm { animation: hp-sheet 3.2s cubic-bezier(.45, 0, .55, 1) infinite; }
  .hp-sheet .dm { animation: hp-dmf 3.2s ease-in-out infinite; }
}
@keyframes hp-beam { 0% { transform: translateX(-90px); } 45%, 100% { transform: translateX(560px); } }
@keyframes hp-ring { 0%, 42% { opacity: 0; transform: scale(.85); } 52% { opacity: .55; } 80%, 100% { opacity: 0; transform: scale(1.35); } }
@keyframes hp-ink { 0% { clip-path: inset(0 0 100% 0); } 30%, 88% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); } }
@keyframes hp-sheet { from { transform: translateY(-24px); } to { transform: translateY(297px); } }
@keyframes hp-dmf { 50% { fill: #6d28d9; } }

/* тёмная тема: цвет задачи светлее, метка «Самый популярный» темнее */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .thub-ic, :root:not([data-theme="light"]) .thub-go { --hc: color-mix(in srgb, var(--h) 62%, #fff); }
  :root:not([data-theme="light"]) .thub-ic { background: color-mix(in srgb, var(--h) 22%, var(--card)); }
  :root:not([data-theme="light"]) .thub-bd-top { background: rgba(251, 146, 60, .14); color: #fdba74; box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .3); }
  :root:not([data-theme="light"]) .hp-sheet { --paper: #e6e4ee; --paper-line: #c4c0d3; }
}
:root[data-theme="dark"] .thub-ic, :root[data-theme="dark"] .thub-go { --hc: color-mix(in srgb, var(--h) 62%, #fff); }
:root[data-theme="dark"] .thub-ic { background: color-mix(in srgb, var(--h) 22%, var(--card)); }
:root[data-theme="dark"] .thub-bd-top { background: rgba(251, 146, 60, .14); color: #fdba74; box-shadow: inset 0 0 0 1px rgba(251, 146, 60, .3); }
:root[data-theme="dark"] .hp-sheet { --paper: #e6e4ee; --paper-line: #c4c0d3; }
@media (prefers-reduced-motion: reduce) { .thub-t, .thub-f, .thub-ic, .thub-go, .thub-f-go .ic { transition: none; } .thub-t:hover, .thub-f:hover { transform: none; } }

@media (max-width: 1100px) { .thub-tiles.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 980px) {
  .thub-bar { grid-template-columns: minmax(0, 1fr); }
  .thub-feat { grid-template-columns: minmax(0, 1fr); }
  .thub-f { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 16px; padding: 12px 12px 18px 20px; }
  .thub-f .thub-prev { grid-column: 2; grid-row: 1 / span 2; height: 100%; min-height: 170px; }
  .thub-f .thub-f-b { grid-column: 1; grid-row: 1; padding: 8px 0 0; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .thub-f .thub-f-go { grid-column: 1; grid-row: 2; margin: 0; }
  .thub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }

}
@media (max-width: 640px) {
  .thub { margin-top: -64px; padding-bottom: 40px; }
  .thub .wrap { gap: 28px; }
  .thub-bar { padding: 12px; border-radius: 18px; }
  .thub-chip { height: 34px; padding: 0 11px; font-size: 13px; }
  .thub-f { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; padding: 10px 10px 18px; }
  .thub-f .thub-prev { grid-column: 1; grid-row: 1; height: 168px; min-height: 0; }
  .thub-f .thub-f-b { grid-row: 2; padding: 0 8px; grid-template-columns: auto minmax(0, 1fr); }
  .thub-f .thub-f-go { grid-row: 3; margin: 0 8px; }
  .thub-f .thub-tt b { font-size: 18px; }
  .thub-tiles, .thub-tiles.four { grid-template-columns: minmax(0, 1fr); }
  .thub-t { grid-template-columns: auto minmax(0, 1fr); min-height: 0; padding: 14px 16px 14px 14px; gap: 12px; }
  .thub-ic { width: 42px; height: 42px; border-radius: 12px; }
  .thub-ic .ic { width: 21px; height: 21px; }
  .thub-tt b { font-size: 15.5px; }
  .thub-tt > span { font-size: 13.5px; }
  .thub-grp-h h2 { font-size: 22px; }
  .thub-grp-h p { grid-column: 1 / -1; font-size: 14px; }
  .thub-go { display: none; }
  .hp-pk-code { padding: 10px; }
  .hp-c { font-size: 10.5px; padding: 5px 7px; }
}

.thub-more .thub-tiles { margin-top: 32px; }
@media (max-width: 640px) { .thub-more .thub-tiles { margin-top: 24px; } }

.hp { min-width: 0; }


/* ---------- выпадающий список с поиском (site/public/js/tm-combo.js): товарная группа вместо системного select ----------
   поле — через предков и элемент (0,3,1): общие правила полей инструментов (.tl-app input…) не перебивают высоту и отступ под значок
   владелец 20.11: «надо выпадающий список с поиском». Подсветка совпадения — цветом сайта, без системной синей; на телефоне — на весь экран */
.tm-combo { position: relative; }
.tm-combo-head { display: none; }
.tm-combo-field { position: relative; display: flex; align-items: center; }
.tm-combo .tm-combo-field input.tm-combo-in { width: 100%; height: 44px; padding: 0 42px; border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); font: 500 15px/1.2 var(--f);
  box-shadow: inset 0 0 0 1px var(--line-2); outline: none; cursor: pointer; text-overflow: ellipsis; -webkit-appearance: none; appearance: none; transition: box-shadow .15s ease; }
.tm-combo .tm-combo-field input.tm-combo-in::placeholder { color: var(--muted); opacity: 1; }
.tm-combo .tm-combo-field input.tm-combo-in:hover { box-shadow: inset 0 0 0 1px var(--acc); }
.tm-combo.is-open .tm-combo-field input.tm-combo-in, .tm-combo .tm-combo-field input.tm-combo-in:focus-visible { box-shadow: inset 0 0 0 2px var(--acc); cursor: text; }
.tm-combo-s, .tm-combo-v { position: absolute; width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.tm-combo-s { left: 14px; }
.tm-combo-v { right: 14px; transition: transform .18s ease; }
.tm-combo.is-open .tm-combo-v { transform: rotate(180deg); }
.tm-combo-pop { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 14px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -20px rgba(16, 8, 50, .45); }
.tm-combo-pop[hidden] { display: none; }
.tm-combo-list { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; }
.tm-combo-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 9px; font: 400 14.5px/1.35 var(--f); color: var(--ink); cursor: pointer; }
.tm-combo-list li.is-act { background: var(--acc-soft); }
.tm-combo-list li.is-sel { font-weight: 600; color: var(--acc-text); }
.tm-combo-list li.is-sel::after { content: "✓"; flex: none; font-weight: 700; }
.tm-combo-list mark { background: none; color: var(--acc-text); font-weight: 700; }
.tm-combo-none { margin: 0; padding: 14px 12px; color: var(--muted); font-size: 14px; }
.tm-combo-x { width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--bg); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; }
html.tm-combo-lock, html.tm-combo-lock body { overflow: hidden; }
@media (max-width: 640px) {
  .tm-combo .tm-combo-field input.tm-combo-in { font-size: 16px; }   /* 16 px — телефон не увеличивает страницу при вводе */
  .tm-combo.is-full { position: fixed; z-index: 1000; inset: 0; display: flex; flex-direction: column; padding: 12px 16px 0; background: var(--card); }
  .tm-combo.is-full .tm-combo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 0 12px; font: 650 17px/1.25 var(--fh); color: var(--ink); }
  .tm-combo.is-full .tm-combo-v { display: none; }
  .tm-combo.is-full .tm-combo-field input.tm-combo-in { height: 50px; cursor: text; }
  .tm-combo.is-full .tm-combo-pop { position: static; flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 10px -16px 0; padding: 0 6px; border-radius: 0; box-shadow: none; }
  .tm-combo.is-full .tm-combo-list { max-height: none; flex: 1; padding-bottom: 24px; }
  .tm-combo.is-full .tm-combo-list li { min-height: 48px; align-items: center; padding: 12px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
}

/* чипы размера на самых узких телефонах (320–360): в одну строку и внутри карточки */
@media (max-width: 360px) { .tl-seg button { padding: 10px 2px; font-size: 12px; } }

/* ---------- редактор этикетки: переменные и перетаскивание на виду (владелец 21.11 выбрал «этикетку с меню») ---------- */
.le-layer .le-vh { position: absolute; border-radius: 2px; background: rgba(124, 58, 237, .16); box-shadow: inset 0 -1.5px 0 rgba(124, 58, 237, .55); pointer-events: none; }
.le-coach { position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(280px, 82vw); padding: 8px 8px 8px 12px; border-radius: 10px; background: #15121f; color: #fff; font: 500 12.5px/1.3 var(--f); box-shadow: 0 10px 24px -10px rgba(16, 8, 50, .6); transform: translate(-50%, calc(-100% - 10px)); }
.le-coach.down { transform: translate(-50%, 10px); }
.le-coach::after { content: ""; position: absolute; left: clamp(14px, calc(50% - var(--sh, 0px)), calc(100% - 14px)); top: 100%; border: 6px solid transparent; border-top-color: #15121f; transform: translateX(-50%); }
.le-coach.down::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #15121f; }
.le-coach button { flex: none; height: 26px; padding: 0 9px; border: 0; border-radius: 7px; background: rgba(255, 255, 255, .14); color: #fff; font: 600 12px/1 var(--f); cursor: pointer; }
.le-coach button:hover { background: rgba(255, 255, 255, .24); }
.le-addv { position: relative; }
.le-v-menu { left: 50%; transform: translateX(-50%); text-align: left; }
/* блок на превью: курсор «двигать», при наведении — пунктирная рамка (.le-live .le-box:hover выше) */
.le-live .le-box { cursor: move; }
/* поле текста: {переменные} подсвечены */
.le-tx { position: relative; display: block; }
.le-tx-hl { position: absolute; inset: 0; overflow: hidden; padding: 0 14px; border-radius: 12px; background: var(--bg); color: var(--ink); font: 400 15px/44px var(--f); white-space: pre; pointer-events: none; }
.le-tx-hl mark { border-radius: 5px; background: var(--acc-soft); color: var(--acc-text); box-shadow: inset 0 0 0 1px rgba(124, 58, 237, .3); }
.tl-app .le-tx input { position: relative; background: transparent; color: transparent; caret-color: var(--ink); }
.tl-app .le-tx input::selection { color: transparent; background: rgba(124, 58, 237, .25); }
@media (max-width: 640px) { .le-bar .le-add { padding: 0 12px; font-size: 13.5px; } .le-v-menu { right: auto; min-width: 250px; } .le-coach { max-width: 230px; font-size: 12px; } }
/* код (DataMatrix, штрихкод): рамка и уголки размера видны с первого открытия, тихая зона — бледной штриховкой отдельно (владелец 21.11) */
.le-layer .le-qz { position: absolute; pointer-events: none; background: repeating-linear-gradient(-45deg, rgba(107, 47, 179, .2) 0 1px, transparent 1px 4px); }
.le-live .le-box.code:not(.on) { outline: 1.5px dashed rgba(107, 47, 179, .65); }
.le-live .le-box.code:not(.on):hover { outline: 2px solid rgba(107, 47, 179, .8); }
.le-h.soft { width: 9px; height: 9px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 1.5px rgba(107, 47, 179, .75); }
.le-h.soft.tl { left: -5px; top: -5px; } .le-h.soft.tr { right: -5px; top: -5px; } .le-h.soft.bl { left: -5px; bottom: -5px; } .le-h.soft.br { right: -5px; bottom: -5px; }
@media (pointer: coarse) { .le-h.soft { width: 11px; height: 11px; } .le-h.soft.tl { left: -6px; top: -6px; } .le-h.soft.tr { right: -6px; top: -6px; } .le-h.soft.bl { left: -6px; bottom: -6px; } .le-h.soft.br { right: -6px; bottom: -6px; } }

/* ---- x-uikit.css ---- */
/* Служебная страница /ui-kit/ (tools/routes/zzzz_uikit.py): рамка вокруг настоящих компонентов. Только свой префикс uk-,
   сами компоненты стилизует их собственный CSS. */
.uk-top { padding-block: 40px 28px; border-bottom: 1px solid var(--line); }
.uk-top .wrap { display: grid; gap: 14px; }
.uk-top h1 { font: var(--h-w) clamp(32px, 4vw, 52px)/1.05 var(--fh); letter-spacing: var(--h-ls); }
.uk-top .sub { max-width: 68ch; }
.uk-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 40px; padding-block: 32px 80px; align-items: start; }
.uk-toc { position: sticky; top: 84px; }
.uk-toc p { margin: 0 0 10px; font: 600 11.5px/1 var(--m); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.uk-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: uk; }
.uk-toc li { counter-increment: uk; }
.uk-toc a { display: grid; grid-template-columns: 22px 1fr; padding: 7px 10px; border-radius: 10px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; }
.uk-toc a::before { content: counter(uk); font: 600 11px/1.6 var(--m); color: var(--muted); }
.uk-toc a:hover { background: var(--hover); color: var(--ink); }
.uk-body { min-width: 0; display: grid; gap: 56px; }
.uk-sec { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; scroll-margin-top: 90px; }
.uk-h { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; margin: 0; font: var(--h-w) 28px/1.1 var(--fh); letter-spacing: var(--h-ls); }
.uk-h span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--acc-soft); color: var(--acc-text); font: 600 15px/1 var(--m); }
.uk-item { min-width: 0; display: grid; gap: 10px; align-content: start; }
.uk-wide { grid-column: 1 / -1; }
.uk-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; }
.uk-cap b { font: 650 16px/1.3 var(--fh); color: var(--ink); }
.uk-src { font: 500 12px/1.4 var(--m); color: var(--muted); }
.uk-src a { color: var(--acc-text); }
.uk-src code { font: inherit; }
.uk-note { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.uk-demo { position: relative; min-width: 0; padding: 22px; border-radius: 16px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); overflow-x: auto; }
.uk-demo.uk-dark { background: var(--scene-bg); color: var(--scene-ink); }
.uk-demo > :first-child { margin-top: 0; }
.uk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.uk-row + .uk-row { margin-top: 12px; }
.uk-demo .uk-h1 { margin: 0 0 10px; font: var(--h-w) clamp(30px, 3.4vw, 44px)/1.05 var(--fh); letter-spacing: var(--h-ls); }
.uk-demo h3 { margin: 12px 0 6px; font: 650 20px/1.3 var(--fh); }
.uk-demo h4 { margin: 10px 0 0; font: 650 16px/1.3 var(--fh); }
.uk-demo .ar-body { max-width: none; font-size: 16px; }
.uk-miss { margin: 0; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, #e5484d 12%, transparent); color: var(--ink); font-size: 14px; }
.uk-font { display: grid; gap: 4px; padding-block: 8px; border-top: 1px solid var(--line); }
.uk-font:first-child { border-top: 0; padding-top: 0; }
.uk-font code { font: 500 12px/1 var(--m); color: var(--muted); }
.uk-font span { font-size: 20px; color: var(--ink); }
.uk-sws { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.uk-sw { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 10px; align-items: center; padding: 8px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.uk-sw i { grid-row: 1 / 4; width: 40px; height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .25); }
.uk-sw code { font: 600 12px/1.3 var(--m); color: var(--ink); overflow-wrap: anywhere; }
.uk-sw span { font: 500 11px/1.35 var(--m); color: var(--muted); overflow-wrap: anywhere; }
.uk-sw .uk-sw-d { color: var(--ink-2); }
.uk-ics { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.uk-ic { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); text-align: center; }
.uk-ic .ic { width: 26px; height: 26px; color: var(--ink); }
.uk-ic code { font: 500 11px/1.25 var(--m); color: var(--ink-2); overflow-wrap: anywhere; }
.uk-ic small { font: 500 9.5px/1 var(--m); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 980px) {
  .uk-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .uk-toc { position: static; }
  .uk-toc ol { display: flex; flex-wrap: wrap; gap: 6px; }
  .uk-toc a { grid-template-columns: auto 1fr; gap: 6px; box-shadow: inset 0 0 0 1px var(--line); }
  .uk-sec { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .uk-demo { padding: 16px; }
  .uk-h { font-size: 24px; }
}

/* ---- x-wptools.css ---- */
/* Календарь и чек-листы маркировки в виде нового сайта (tools/routes/tools.py, wp_tool; владелец 21.11: «как будто этот чеклист
   мог устареть и визуально»). Виджет WordPress живёт в светлой карточке .tl-legacy.tl-wp, как другие старые инструменты.
   Здесь — только стык с карточкой: шрифт сайта, без своих боковых полей и без нахлёста на убранный первый экран WordPress,
   и сроки на телефоне в две строки (дата над событием). Сами цвета и раскладка виджетов — их стили из WordPress. */
.tl-wp .tmcl, .tl-wp .tmcal { font-family: var(--f); }
.tl-wp .tmcl :where(h2, h3, .tmcl-setup__t), .tl-wp .tmcal :where(h2, h3) { font-family: var(--fh); }
.tl-wp .tmcl__w { padding-inline: 0; }
.tl-wp .tmcl-setup { margin-top: 0; box-shadow: none; }
.tl-wp .tmcal { padding-inline: 0; }
@media (max-width: 640px) {
  .tl-wp .tmcl-setup { padding: 16px; }
  .tl-wp .tmcl-block { padding: 16px 14px; }
  .tl-wp .tmcl-card { padding: 16px; }
  .tl-wp .tmcl-dates li { flex-direction: column; gap: 2px; }
  .tl-wp .tmcl-dates time { flex-basis: auto; }
}
