/* α
   оформление страниц сайта
*/
:root {
    --bg: #f3f6fb; /* фон страницы */
    --bg-alt: #e7edf7; /* фон чётного раздела */
    --surface: #ffffff; /* фон карточки */
    --surface-2: #e9effa; /* фон вложенного блока */
    --border: #dbe2ee; /* линии и рамки */
    --text: #0f1a2e; /* основной текст */
    --text-dim: #4a5872; /* второстепенный текст */
    --text-mute: #8592aa; /* подписи и пометки */
    --brand: #0747a6; /* синий бренда */
    --brand-light: oklch(from var(--brand) 0.7 c h); /* светлый тон синего бренда */
    --brand-2: #fee800; /* жёлтый бренда */
    --brand-2-ink: #25221e; /* текст на жёлтом бренда */
    --accent: var(--brand); /* цвет бренда */
    --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent); /* подложка цвета бренда */
    --grad: linear-gradient(135deg, var(--brand), oklch(from var(--brand) 0.6 c h)); /* градиент бренда */
    --bull: #2b9a10; /* рост */
    --bear: #dc2626; /* падение */
    --shadow: 0 6px 24px rgba(15, 26, 46, 0.08); /* тень карточки */
    --radius: 22px; /* скругление карточки */
    --font: "Golos Text", "Noto Sans Arabic", "Noto Sans Hebrew", "Noto Sans Devanagari", "Noto Sans Bengali", "Noto Sans Gurmukhi", "Noto Sans Tamil", "Noto Sans Telugu", "Noto Sans Georgian", system-ui, sans-serif; /* шрифт текста */
    --mono: "JetBrains Mono", "Noto Sans Arabic", "Noto Sans Hebrew", ui-monospace, monospace; /* шрифт цифр и меток */
}
[data-theme="dark"] {
    --bg: #070d1a;
    --bg-alt: #0b1324;
    --surface: #0f182b;
    --surface-2: #152241;
    --border: #25304a;
    --text: #e8edf6;
    --text-dim: #97a4bf;
    --text-mute: #5c6a86;
    --accent: var(--brand-light);
    --accent-soft: color-mix(in srgb, var(--accent) 14%, transparent);
    --grad: linear-gradient(135deg, oklch(from var(--brand) 0.55 c h), var(--brand-light));
    --bull: #08bd23;
    --bear: #ef4444;
    --shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
:lang(vi) { --font: "Noto Sans", system-ui, sans-serif; }
:lang(ko) { --font: "Noto Sans KR", system-ui, sans-serif; word-break: keep-all; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background 0.2s, color 0.2s; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1248px; margin: 0 auto; padding: 0 24px; }
@font-face { font-family: "Material Icons"; font-style: normal; font-weight: 400; font-display: block; src: url("/fonts/material-icons.woff2") format("woff2"); }
.material-icons { display: inline-block; width: 1em; font-family: "Material Icons"; font-weight: normal; font-style: normal; font-size: 24px; line-height: 1; letter-spacing: normal; text-transform: none; white-space: nowrap; word-wrap: normal; direction: ltr; font-feature-settings: "liga"; -webkit-font-smoothing: antialiased; }
.material-icons[data-i]::before { content: attr(data-i); }

.nav { position: sticky; top: 12px; z-index: 50; margin: 12px auto 0; max-width: 1248px; padding: 0 24px; }
.nav .wrap { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 22px; height: 60px; max-width: none; padding-block: 0; padding-inline: 18px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--border); box-shadow: var(--shadow); transition: background 0.25s, border-color 0.25s, box-shadow 0.25s; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--text-dim); font-size: 0.90625rem; font-weight: 600; white-space: nowrap; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }
.nav-ico { display: inline-flex; align-items: center; gap: 4px; }
.nav-ico .material-icons { font-size: 18px; }
footer .nav-ico .material-icons { font-size: 16px; }
.nav-tools { grid-column: 2; justify-self: end; align-self: stretch; margin-block: -1px; margin-inline-end: -11px; padding: 0 10px; border: 1px solid transparent; border-radius: 999px; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; padding: 0; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-dim); font: 700 0.8125rem var(--mono); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--text); border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn .material-icons { font-size: 20px; }
.nav-menu { display: none; }
.nav-theme, .nav-lang { display: none; }
.menu, .nav.menu-open .nav-links { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 8px; }
.menu-item, .nav.menu-open .nav-links a { padding: 10px 14px; border-radius: 10px; color: var(--text-dim); font: 600 0.90625rem var(--font); text-align: start; }
.menu-item { width: 100%; border: 0; background: none; cursor: pointer; }
.menu-item:hover, .nav.menu-open .nav-links a:hover { color: var(--text); background: var(--accent-soft); }
.menu-item.on, .nav.menu-open .nav-links a.active { color: var(--accent); background: var(--accent-soft); }
.menu-item .material-icons { font-size: 18px; vertical-align: -4px; margin-inline-end: 4px; }
.nav.compact .wrap { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; }
.nav.compact .nav-links { display: none; position: absolute; top: calc(100% + 8px); inset-inline-end: 0; width: 380px; flex-direction: column; gap: 2px; }
.nav.compact.menu-open .nav-links { display: flex; }
.nav.compact .nav-menu { display: grid; }
.nav.compact .nav-theme, .nav.compact .nav-lang { display: block; }
.nav.compact .theme-btn, .nav.compact .lang { display: none; }
@media (prefers-reduced-motion: reduce) {
    .nav .wrap { transition: none; }
}
.nav-lang-list { display: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-content: start; gap: 2px; padding-block: 4px; padding-inline: 26px 0; min-height: 132px; overflow-y: auto; overscroll-behavior: contain; }
.nav-lang.open .nav-lang-list { display: grid; }
.nav.menu-open .nav-lang-list a { padding-block: 5px; white-space: normal; }
.nav.menu-open .nav-links { max-height: calc(100vh - 92px); max-height: calc(100dvh - 92px); overflow-y: auto; overscroll-behavior: contain; }
.nav.menu-open .nav-lang.open { display: flex; flex-direction: column; min-height: 0; }
.nav-home { position: relative; }
.nav-home.open > a .material-icons:last-child { transform: rotate(180deg); }
.nav-home-list { display: none; position: absolute; top: calc(100% + 19px); inset-inline-start: -14px; min-width: 240px; flex-direction: column; gap: 2px; }
.nav-home.open .nav-home-list { display: flex; }
.nav-home-list a:first-child { margin-block-end: 4px; border-block-end: 1px solid var(--border); border-end-start-radius: 0; border-end-end-radius: 0; }
.nav.menu-open .nav-home > a { display: flex; }
.nav.menu-open .nav-home-list { position: static; min-width: 0; padding: 0; padding-inline-start: 26px; border: 0; background: none; box-shadow: none; }
.nav.menu-open .nav-home-list a { padding-block: 5px; }
[data-theme="dark"] .i-moon, [data-theme="light"] .i-sun { display: none; }

.lang { position: relative; }
.lang-list { display: none; position: absolute; inset-inline-end: 0; top: 50px; }
.lang.open .lang-list { display: block; }
.lang-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 140px; align-content: start; max-height: calc(100vh - 102px); max-height: calc(100dvh - 102px); overflow-y: auto; overscroll-behavior: contain; }

.scroll-fade { --fade-top: 0px; --fade-bottom: 0px; --fade-left: 0px; --fade-right: 0px; -webkit-mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent), linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 var(--fade-top), #000 calc(100% - var(--fade-bottom)), transparent), linear-gradient(to right, transparent, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent); mask-composite: intersect; }
.scroll-fade.fade-top { --fade-top: 24px; }
.scroll-fade.fade-bottom { --fade-bottom: 24px; }
.scroll-fade.fade-left { --fade-left: 24px; }
.scroll-fade.fade-right { --fade-right: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 0.9375rem; border: 0; cursor: pointer; transition: transform 0.15s, background 0.2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #fff; }
.btn:disabled, .btn[aria-disabled] { opacity: 0.6; cursor: default; transform: none; }
.btn-dl { height: 56px; padding-inline: 24px 30px; font-size: 1rem; box-shadow: 0 10px 28px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-dl .material-icons { font-size: 22px; }

.top { position: relative; overflow: hidden; margin-top: -84px; padding: 190px 0 110px; text-align: center; color: #fff; background: radial-gradient(ellipse 800px 400px at 85% 0%, color-mix(in srgb, var(--brand-light) 25%, transparent), transparent 60%), radial-gradient(ellipse 600px 360px at 10% 100%, rgba(8, 189, 35, 0.18), transparent 60%), linear-gradient(160deg, #0a1428, #0f2148); }
.top-bg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.top-bg .gl { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.top-bg .l1 { stroke: var(--brand-light); stroke-width: 3; opacity: 0.6; }
.top-bg .l2 { stroke: #08bd23; stroke-width: 2; opacity: 0.4; }
.top-bg .l3 { stroke: #08bd23; stroke-width: 2; opacity: 0.22; }
.top-bg .w { stroke: rgba(255, 255, 255, 0.16); stroke-width: 2; }
.top-bg .lk { stroke: var(--brand-light); stroke-width: 2; stroke-dasharray: 8 10; opacity: 0.5; }
.top-bg-m { display: none; }
.top-in { position: relative; }
.top h1 { font-size: 48px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; max-width: 900px; margin: 0 auto; }
.top p { max-width: 640px; margin: 16px auto 0; font-size: 1.125rem; opacity: 0.85; }
.top .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.top.top-page { display: flex; flex-direction: column; justify-content: center; min-height: 400px; padding-block: 124px 40px; }

.eyebrow { font: 700 0.8125rem var(--mono); color: var(--accent); letter-spacing: 0.08em; text-transform: uppercase; }
.hero { padding: 64px 0; }
.hero h2 { font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; max-width: 860px; margin: 0 auto 36px; text-align: center; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; }
.fact i { display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--grad); margin-bottom: 14px; }
.fact b { display: block; font-size: 1rem; margin-bottom: 6px; }
.fact span { font-size: 0.875rem; color: var(--text-dim); }
.fact strong, .card strong { color: var(--text); font-weight: 700; }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.panel-head b { font-size: 1.125rem; font-weight: 800; letter-spacing: -0.01em; }
.deal { overflow-x: auto; }
table.fol { width: 100%; border-collapse: collapse; font-size: 0.8125rem; }
table.fol th { text-align: start; font-weight: 500; color: var(--text-mute); padding: 6px 8px; border-bottom: 1px solid var(--border); }
table.fol td { padding: 8px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: 0.78125rem; }
table.fol tr:last-child td { border-bottom: 0; }
table.fol tr.src-row td { background: var(--accent-soft); color: var(--accent); font-weight: 700; border-bottom: 0; }
.up { color: var(--bull); }
.skip { color: var(--text-mute); }

section.block { padding: 80px 0; }
section.block:nth-of-type(even) { background: var(--bg-alt); }
.block-head { max-width: 780px; margin-bottom: 32px; }
.block-head h2 { font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; }
.block-head p { color: var(--text-dim); font-size: 1.03125rem; margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.s2 { grid-column: span 2; }
.s3 { grid-column: span 3; }
.s6 { grid-column: span 6; }
.card { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card-k { font: 600 0.75rem var(--mono); color: var(--accent); text-transform: uppercase; letter-spacing: 0.04em; }
.card h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 8px 0; }
.card p, .card li { font-size: 0.90625rem; color: var(--text-dim); }
.card ul { list-style: none; display: grid; gap: 6px; }
.card li { padding-inline-start: 14px; position: relative; }
.card li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.card h3:first-child, .card-icon + h3 { margin-top: 0; }
.card .shot { margin-top: 18px; }
.card p + ul { margin-top: 10px; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card-icon .material-icons { font-size: 22px; }
.il { height: 120px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-2); }
.il svg { display: block; width: 100%; height: 100%; padding: 8px 10px; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.il .b { stroke: var(--accent); }
.il .g { stroke: var(--bull); }
.il .r { stroke: var(--bear); }
.il .m { stroke: var(--text-mute); }
.il .w { stroke: #fff; }
.il .fb { fill: var(--accent); }
.il .fl { fill: var(--accent); opacity: 0.4; }
.il .fg { fill: var(--bull); }
.il .fr { fill: var(--bear); }
.il .fm { fill: var(--text-mute); }
.il .ft { fill: var(--surface); }
.il .dash { stroke-dasharray: 5 5; }
.il .thick { stroke-width: 3; }
.il .gauge { stroke-width: 10; stroke-linecap: butt; }
.il text { font: 700 11px var(--mono); fill: var(--text-dim); stroke: none; }
.il .wt { fill: #fff; }
.il .tg { fill: var(--bull); }
.il .tr { fill: var(--bear); }

.tree-note, .dl-help, .frm-msg, .frm-note { position: relative; padding: 12px 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); font-size: 0.875rem; color: var(--text-dim); }
.tree-note { margin: 20px 0 0; text-align: center; background: var(--surface-2); border-color: var(--surface-2); color: var(--text-dim); }
.card .num, .tree-note .num { font: 700 0.875rem var(--mono); color: var(--accent); }
.badge { position: absolute; top: -10px; inset-inline-end: 12px; padding: 3px 10px; border-radius: 999px; background: var(--brand-2); color: var(--brand-2-ink); font: 700 0.6875rem var(--mono); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.card:has(> .leaf-plan) { container-type: inline-size; display: flex; flex-direction: column; }
.card:has(> .leaf-plan) > p { flex: 1; }
.leaf-plan { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
@container (max-width: 300px) {
    .leaf-plan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.leaf-plan div { padding: 6px 8px; border-radius: 10px; background: var(--surface-2); text-align: center; font-size: 0.8125rem; }
.leaf-plan div:only-child { grid-column: 1 / -1; justify-self: start; }
.leaf-plan dd { margin: 0; }

.wl-strip { display: flex; align-items: center; gap: 16px; margin-top: 16px; padding: 16px 20px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--brand); color: #fff; font-size: 0.9375rem; text-decoration: none; transition: transform 0.15s; }
.wl-strip:hover { transform: translateY(-1px); }
.wl-strip .card-icon { flex: none; margin: 0; background: rgba(255, 255, 255, 0.15); color: #fff; }
.wl-strip b { color: var(--brand-2); }
.wl-strip-go { flex: none; margin-inline-start: auto; display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 700; white-space: nowrap; }
.wl-strip-go .material-icons { font-size: 20px; }
.wl-cta { display: flex; justify-content: center; margin-top: 28px; }

.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.shot img, .wif img { border-radius: var(--radius); outline: 2px solid var(--accent); outline-offset: -2px; }
.wif { display: grid; grid-template-columns: 1fr 270px; gap: 24px; align-items: start; }
.wif h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 6px 0 8px; }
.wif p { font-size: 0.90625rem; color: var(--text-dim); margin-bottom: 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.card .tags { margin: 14px 0 0; }
.tags span { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 500 0.78125rem var(--mono); }
.wif ul { list-style: none; display: grid; gap: 6px; margin-top: 4px; }
.wif li { font-size: 0.90625rem; color: var(--text-dim); padding-inline-start: 14px; position: relative; }
.wif li::before { content: ""; position: absolute; inset-inline-start: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.arch { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 16px; }
.arch-arrow { align-self: center; color: var(--text-mute); font: 500 1.25rem var(--mono); }
[dir="rtl"] .arch-arrow { scale: -1 1; }

.cmp-h { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; text-align: center; margin: 48px 0 20px; }
.cmp-wrap { padding: 8px 0; overflow-x: auto; }
table.cmp { width: 100%; min-width: 600px; border-collapse: separate; border-spacing: 0; }
table.cmp th, table.cmp td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.cmp thead th { font: 600 0.75rem var(--mono); color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; text-align: center; vertical-align: bottom; }
table.cmp th:first-child { position: sticky; inset-inline-start: 0; z-index: 1; background: var(--surface); }
table.cmp tbody th { width: 22%; text-align: start; font-size: 0.90625rem; font-weight: 700; color: var(--text); }
table.cmp td { width: 19.5%; text-align: center; vertical-align: middle; font-size: 0.8125rem; color: var(--text-dim); }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
table.cmp .material-icons { display: block; margin: 0 auto; font-size: 22px; }
table.cmp .ok { color: var(--bull); }
table.cmp .no { color: var(--bear); }
table.cmp .mid { color: var(--bull); }
table.cmp .cmp-app { background: var(--accent-soft); }
table.cmp thead .cmp-app { color: var(--accent); border-radius: 14px 14px 0 0; }
table.cmp thead .cmp-app span { display: inline-block; padding: 5px 12px; border-radius: 12px; background: var(--brand-2); color: var(--brand-2-ink); font-weight: 700; }
table.cmp tr:last-child .cmp-app { border-radius: 0 0 14px 14px; }
table.cmp td.cmp-app { color: var(--text); font-weight: 600; }

.faq { display: grid; gap: 10px; max-width: 840px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px 20px; }
.faq summary { cursor: pointer; font-size: 16px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent); }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--text-dim); font-size: 0.9375rem; margin-top: 10px; }
.faq details ul { color: var(--text-dim); font-size: 0.9375rem; margin-block: 6px 0; margin-inline: 20px 0; }
.faq details .faq-lead { color: var(--text); font-weight: 600; }

.cta { text-align: center; padding: 56px 24px; border-radius: 26px; background: var(--surface); border: 1px solid var(--border); }
.cta h2 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.cta .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }

.manual { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 48px; }
.dl, .sup { padding-top: 48px; }
.dl .doc, .sup .doc { margin-inline: auto; }
.err { padding-top: 64px; text-align: center; }
.err h1 { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 20px; font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; }
.err h1 b { font: 800 64px var(--mono); color: var(--accent); }
.err svg { display: block; width: min(420px, 100%); height: auto; margin: 32px auto 0; fill: var(--surface); stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.dl-help { margin-top: 32px; text-align: center; }
.frm:not(:first-child) { margin-top: 12px; }
.frm-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.frm-row[hidden] { display: none; }
.frm input, .frm select, .frm textarea { border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; }
.frm input { flex: 1 1 200px; min-width: 0; height: 48px; padding: 0 14px; }
.frm select { display: block; width: 100%; height: 48px; margin-bottom: 10px; padding: 0 14px; }
.frm .bad { border-color: var(--bear); }
.frm textarea { display: block; width: 100%; min-height: 160px; margin-bottom: 10px; padding: 12px 14px; resize: vertical; }
.frm button { display: inline-grid; place-items: center; }
.frm button > span { grid-area: 1 / 1; }
.frm button > span + span, .frm button:disabled > span:first-child { visibility: hidden; }
.frm button:disabled > span + span { visibility: visible; }
.frm-hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.frm-msg { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: inherit; color: var(--text); }
.frm-msg[hidden] { display: none; }
.frm-msg .material-icons { font-size: 22px; }
.frm-msg.ok { background: color-mix(in srgb, var(--bull) 12%, var(--surface)); border-color: color-mix(in srgb, var(--bull) 45%, transparent); }
.frm-msg.ok .material-icons { color: var(--bull); }
.frm-msg.fail { background: color-mix(in srgb, var(--bear) 10%, var(--surface)); border-color: color-mix(in srgb, var(--bear) 45%, transparent); }
.frm-msg.fail .material-icons { color: var(--bear); }
.frm-note { margin: 0 0 10px; font-size: inherit; color: var(--text); background: var(--accent-soft); }
.frm-note ul { margin: 0; }
.dl li ul { margin: 6px 0 0; }
.dl code { font-family: var(--mono); font-size: 0.92em; }

.dl-wiz-sec { padding-bottom: 96px; }
.dl-wiz { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; }
.dl-wiz [hidden] { display: none !important; }
.dl-wiz-step h3 { display: flex; align-items: center; gap: 10px; }
.dl-wiz-step > p { color: var(--text-dim); margin-top: 6px; }
.dl-wiz-step > p + p { margin-top: 14px; }
.dl-wiz-step:not(.card) { padding-inline: 25px; }
.dl-wiz-step:not(.card) .frm-row { justify-content: flex-end; }
.dl-wiz-step .frm-msg { margin: 12px 0 0; }
.dl-wiz-step .frm-msg ul { margin-top: 0; gap: 0; }
.dl-wiz-n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font: 700 0.875rem var(--mono); }
.dl-wiz-opts, .dl-wiz-list { display: grid; gap: 10px; margin-top: 14px; }
.dl-wiz-opt { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: 600 0.9375rem var(--font); text-align: start; cursor: pointer; transition: border-color 0.15s, background 0.15s, opacity 0.15s; }
.dl-wiz-opt:hover { border-color: var(--accent); }
.dl-wiz-opt.on { border-color: var(--accent); background: var(--accent-soft); }
.dl-wiz-opts:has(.on) .dl-wiz-opt:not(.on), .dl-wiz-list:has(.on) .dl-wiz-opt:not(.on) { opacity: 0.4; }
.dl-wiz-opts:has(.on) .dl-wiz-opt:not(.on):hover, .dl-wiz-list:has(.on) .dl-wiz-opt:not(.on):hover { opacity: 1; }
.dl-wiz-opt > .material-icons { color: var(--accent); }
.dl-wiz .frm input[type=file] { padding: 10px 14px; }
.dl-wiz-wl { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--text); vertical-align: middle; }
.dl-wiz-logo { display: block; box-sizing: content-box; height: 28.6px; width: auto; padding: 8px; border-radius: 10px; background: var(--accent); }
[data-theme="dark"] .dl-wiz-logo { background: #000000; }
.dl-wiz-pick { margin-top: 14px; }
.dl-wiz-pick > p { font-weight: 600; }
.dl-wiz-pick .dl-wiz-list { margin-top: 8px; }
.dl-wiz-final .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 20px; }
.dl-wiz-final .doc ul { display: revert; list-style: revert; }
.dl-wiz-final .doc li { padding-inline-start: 0; position: static; font-size: inherit; color: inherit; }
.dl-wiz-final .doc li::before { display: none; }
.dl-wiz-final .dl-help { font-size: 0.875rem; }
.manual-side { position: sticky; top: 88px; }
.manual-nav { display: grid; gap: 2px; max-height: calc(100vh - 104px); overflow-y: auto; }
.manual-nav .manual-top.open { color: var(--text); }
.manual-nav .manual-sub { padding-inline-start: 28px; font-weight: 500; font-size: 0.875rem; }
.manual-nav-btn { display: none; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: 600 0.9375rem/38px var(--font); text-align: start; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.manual-nav-btn .material-icons { font-size: 20px; color: var(--accent); vertical-align: -5px; margin-inline-end: 8px; }
.doc { max-width: 820px; font-size: 1rem; }
.doc h1 { font-size: 34px; line-height: 1.18; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 24px; }
.doc p { margin-bottom: 14px; }
.doc h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 32px 0 12px; }
.doc h4 { font-size: 18px; font-weight: 800; margin: 26px 0 10px; }
.doc ul, .doc ol { margin-bottom: 14px; padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--accent); }
.doc img { display: inline-block; max-width: 100%; height: auto; border: 1px solid var(--border); }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .btn { text-decoration: none; }
img.img-zoom { cursor: zoom-in; }
.img-view { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: auto; overscroll-behavior: contain; touch-action: pan-x pan-y; cursor: zoom-out; }
.img-view[open] { display: flex; }
.img-view::backdrop { background: rgba(0, 0, 0, 0.85); }
.img-view img { flex: none; max-width: none; height: auto; margin: auto; }
html:has(.img-view[open]) { overflow: hidden; }
.ver, section[id] { scroll-margin-top: 96px; }
.ver + .ver { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border); }
.ver h2, .dl h2, .sup h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.ver figure { margin: 8px 0 14px; }
.ver figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--text-mute); text-align: center; }

/* inline-цвета под палитру */
.doc [style*="background-color"] { background-color: var(--accent-soft) !important; border-radius: 12px; }
.doc [style*="border:"] { border-color: var(--border) !important; border-radius: 10px; }

footer { padding: 40px 0; color: var(--text-mute); font-size: 0.875rem; border-top: 1px solid var(--border); margin-top: 80px; }
footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-dim); margin-inline-end: 18px; }

@media (max-width: 900px) {
    html { font-size: 112.5%; }
    footer .wrap { flex-direction: column; align-items: center; text-align: center; }
    footer a { margin-inline: 9px; }
    .nav-links { display: none; position: absolute; top: calc(100% + 8px); inset-inline: 0; flex-direction: column; gap: 2px; }
    .nav.menu-open .nav-links { display: flex; max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); }
    .nav.compact .nav-links { width: auto; inset-inline: 0; }
    .nav-menu { display: grid; }
    .nav .wrap { height: 40px; padding-inline: 0; border: 0; background: transparent; box-shadow: none; backdrop-filter: none; }
    .nav-theme, .nav-lang { display: block; }
    .theme-btn, .lang { display: none; }
    .facts, .wif { grid-template-columns: 1fr; }
    .arch { grid-template-columns: 1fr; }
    .arch-arrow { justify-self: center; transform: rotate(90deg); }
    .wl-strip { flex-wrap: wrap; }
    .hero h2 { font-size: 26px; }
    .top { margin-top: -64px; padding: 150px 0 72px; }
    .top.top-page { min-height: 0; padding-block: 150px 72px; }
    .top-bg-d { display: none; }
    .top-bg-m { display: block; }
    .top h1 { font-size: 32px; }
    .block-head h2 { font-size: 26px; }
    .grid { grid-template-columns: minmax(0, 1fr); }
    .s2, .s3, .s6 { grid-column: auto; }
    .manual { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
    .dl, .sup { padding-top: 24px; }
    .err { padding-top: 32px; }
    .err h1 { font-size: 26px; }
    .err h1 b { font-size: 48px; }
    .manual-side { position: fixed; top: 60px; inset-inline: 24px; z-index: 60; }
    .manual-nav-btn { display: block; justify-self: start; min-width: 0; max-width: 100%; box-shadow: var(--shadow); }
    .manual-nav { display: none; max-height: calc(100dvh - 100px); }
    .manual-side.open .manual-nav { display: grid; }
    .doc h1 { font-size: 26px; }
}
