/* Орбита — сайт v2. Layout: широкие светлые секции на мятном фоне, тяжёлые хвойные акценты,
   крупная лёгкая типографика как в референсе. Палитра 1:1 с референса Venzer. */
:root {
  --forest: 170 100% 10%; --forest-2: 172 70% 13%; --forest-fg: 100 60% 96%;
  --lime: 90 54% 67%; --lime-light: 97 77% 83%; --lime-soft: 100 100% 91%; --lime-ink: 110 55% 26%;
  --sage: 153 15% 30%; --mist: 133 13% 81%;
  --bg: 100 45% 92%; --bg-hi: 100 64% 96%; --fg: 170 80% 10%; --card: 0 0% 100%;
  --muted: 100 30% 89%; --muted-fg: 153 12% 35%; --border: 105 22% 84%;
  --primary: var(--forest); --primary-fg: var(--forest-fg); --link: 170 80% 22%;
  --shadow-sm: 0 1px 2px hsl(170 60% 12% / .05), 0 6px 18px hsl(170 60% 12% / .05);
  --shadow-lg: 0 30px 70px -30px hsl(170 100% 8% / .45);
  --font: 'Onest', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Spline Sans Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --wrap: 1200px; --r: 24px;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: 172 60% 5%; --bg-hi: 172 50% 8%; --fg: 100 40% 94%; --card: 172 50% 8%;
  --muted: 172 35% 12%; --muted-fg: 140 12% 66%; --border: 172 30% 17%;
  --primary: var(--lime); --primary-fg: var(--forest); --link: 90 54% 67%;
  --lime-soft: 100 40% 15%; --lime-ink: 97 77% 83%; --sage: 120 15% 80%; --mist: 172 30% 12%;
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / .3); --shadow-lg: 0 30px 70px -30px hsl(0 0% 0% / .8);
  color-scheme: dark; } }
:root[data-theme="dark"] {
  --bg: 172 60% 5%; --bg-hi: 172 50% 8%; --fg: 100 40% 94%; --card: 172 50% 8%;
  --muted: 172 35% 12%; --muted-fg: 140 12% 66%; --border: 172 30% 17%;
  --primary: var(--lime); --primary-fg: var(--forest); --link: 90 54% 67%;
  --lime-soft: 100 40% 15%; --lime-ink: 97 77% 83%; --sage: 120 15% 80%; --mist: 172 30% 12%;
  --shadow-sm: 0 1px 2px hsl(0 0% 0% / .3); --shadow-lg: 0 30px 70px -30px hsl(0 0% 0% / .8);
  color-scheme: dark; }

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: hsl(var(--fg)); background: hsl(var(--bg)); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { max-width: 100%; }
h1, h2, h3 { margin: 0; text-wrap: balance; letter-spacing: -.03em; }
:focus-visible { outline: 2px solid hsl(var(--primary)); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 24px; }
.caps { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--muted-fg)); }
.muted { color: hsl(var(--muted-fg)); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -.03em; }

/* кнопки, чипы */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent; font: 500 15.5px var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .12s, filter .15s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: scale(.98); }
.btn-p { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); }
.btn-l { background: hsl(var(--lime)); color: hsl(var(--forest)); }
.btn-o { background: hsl(var(--card)); color: hsl(var(--fg)); border-color: hsl(var(--border)); }
.btn-w { background: hsl(var(--forest-fg)); color: hsl(var(--forest)); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 500; background: hsl(var(--lime-soft)); color: hsl(var(--lime-ink)); text-decoration: none; }
.chip-d { background: hsl(var(--forest)); color: hsl(var(--lime)); }
.rub { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; background: hsl(var(--lime)); color: hsl(var(--forest)); font-size: 13px; font-weight: 700; flex: none; }

/* шапка */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: hsl(var(--bg-hi) / .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid hsl(var(--border) / .6); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 21px; letter-spacing: -.04em; text-decoration: none; }
.top nav { display: flex; gap: 4px; margin-left: 18px; }
.top nav a { text-decoration: none; padding: 8px 14px; border-radius: 999px; font-size: 15px; color: hsl(var(--fg) / .78); }
.top nav a:hover, .top nav a[aria-current="page"] { background: hsl(var(--muted)); color: hsl(var(--fg)); }
.top .acts { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.theme-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); display: grid; place-items: center; cursor: pointer; }

/* подвал */
.foot { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); padding-block: 64px 40px; position: relative; overflow: hidden; }
.foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; position: relative; z-index: 1; }
.foot h3, .foot h4 { margin: 0 0 12px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: hsl(var(--lime)); font-weight: 500; }
.foot a { display: block; text-decoration: none; opacity: .8; padding: 4px 0; font-size: 15px; }
.foot a:hover { opacity: 1; }
.foot .legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid hsl(var(--forest-fg) / .15); font-size: 13px; opacity: .6; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; position: relative; z-index: 1; }
.bigword { position: absolute; left: 50%; bottom: -.24em; transform: translateX(-50%); font-weight: 500; font-size: clamp(120px, 26vw, 380px); letter-spacing: -.06em; line-height: 1; white-space: nowrap; pointer-events: none; color: hsl(var(--forest-fg) / .05); }

/* ---------- статья ---------- */
.progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: hsl(var(--lime)); z-index: 60; }
.ahead { background: linear-gradient(180deg, hsl(var(--bg-hi)), hsl(var(--bg))); padding-block: 36px 48px; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; color: hsl(var(--muted-fg)); margin-bottom: 26px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: hsl(var(--fg)); }
.ahead .grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.ahead h1 { font-weight: 400; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.04; letter-spacing: -.04em; margin: 16px 0 18px; }
.lead { font-size: 19px; line-height: 1.55; color: hsl(var(--muted-fg)); max-width: 60ch; margin: 0 0 24px; }
.meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--forest)); color: hsl(var(--lime)); font-weight: 600; flex: none; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: hsl(var(--muted-fg) / .6); }
.cover { position: relative; aspect-ratio: 5 / 4; border-radius: 30px; overflow: hidden; background: hsl(var(--forest)); color: hsl(var(--forest-fg)); padding: 32px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow-lg); max-width: 100%; }
.cover::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; right: -55%; top: -60%; border-radius: 50%; border: 1.5px dashed hsl(var(--forest-fg) / .18); }
.cover::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: hsl(var(--lime)); right: 26%; top: 13%; box-shadow: 0 0 0 8px hsl(var(--lime) / .15); }
.cover .k { position: relative; font-size: clamp(40px, 5.2vw, 68px); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.cover .kl { position: relative; margin-top: 10px; opacity: .7; font-size: 15px; max-width: 26ch; }
.cover .tag { position: absolute; top: 28px; left: 32px; }
.cover .bars { position: relative; display: flex; height: 14px; border-radius: 999px; overflow: hidden; margin-top: 18px; gap: 3px; }
.cover .bars i { display: block; }

.abody { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-block: 48px 72px; align-items: start; }
.toc { position: sticky; top: calc(88px + env(safe-area-inset-top, 0px)); display: grid; gap: 18px; }
.toc nav { display: grid; gap: 2px; border-left: 1.5px solid hsl(var(--border)); }
.toc nav a { text-decoration: none; font-size: 14px; line-height: 1.35; padding: 7px 0 7px 16px; margin-left: -1.5px; border-left: 1.5px solid transparent; color: hsl(var(--muted-fg)); }
.toc nav a:hover { color: hsl(var(--fg)); }
.toc nav a.on { color: hsl(var(--fg)); border-left-color: hsl(var(--primary)); font-weight: 500; }
.toc-cta { border-radius: 20px; padding: 18px; background: hsl(var(--lime-soft)); }
.toc-cta b { display: block; font-size: 15px; margin-bottom: 6px; }
.toc-cta p { margin: 0 0 12px; font-size: 13.5px; color: hsl(var(--muted-fg)); line-height: 1.45; }
.toc-m { display: none; }

.prose { max-width: 70ch; font-size: 17.5px; line-height: 1.72; min-width: 0; }
.prose > * + * { margin-top: 1.05em; }
.prose p { margin: 0; }
.prose h2 { font-weight: 500; font-size: clamp(25px, 2.6vw, 31px); line-height: 1.15; margin-top: 2.1em; scroll-margin-top: 96px; }
.prose h3 { font-weight: 600; font-size: 20px; margin-top: 1.6em; letter-spacing: -.02em; }
.prose strong { font-weight: 600; }
.prose a { color: hsl(var(--link)); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 0; list-style: none; display: grid; gap: .5em; margin-block: 1em 0; }
.prose li { position: relative; padding-left: 30px; }
.prose ul > li::before { content: ""; position: absolute; left: 6px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--lime)); box-shadow: 0 0 0 3px hsl(var(--lime) / .25); }
.prose ol { counter-reset: n; }
.prose ol > li { counter-increment: n; }
.prose ol > li::before { content: counter(n); position: absolute; left: 0; top: .18em; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: hsl(var(--forest)); color: hsl(var(--lime)); line-height: 1; }
.prose blockquote { margin: 1.4em 0 0; padding: 18px 20px 18px 54px; border-radius: 18px; background: hsl(var(--lime-soft)); position: relative; font-size: 16px; line-height: 1.6; }
.prose blockquote::before { content: "i"; position: absolute; left: 18px; top: 18px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--forest)); color: hsl(var(--lime)); font: 700 13px var(--mono); }
.prose blockquote p + p { margin-top: .6em; }
.prose hr { border: 0; height: 1px; background: hsl(var(--border)); margin-block: 2.2em; }
.tbl { overflow-x: auto; border-radius: 18px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); margin-top: 1.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th { text-align: left; font-weight: 600; font-size: 13px; color: hsl(var(--muted-fg)); background: hsl(var(--muted) / .6); padding: 12px 16px; }
.prose td { padding: 12px 16px; border-top: 1px solid hsl(var(--border) / .7); vertical-align: top; }
.prose td:last-child, .prose th:last-child { text-align: right; }
.faq { display: grid; gap: 10px; margin-top: 1.2em; }
.faq details { border-radius: 18px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; font-size: 17px; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: .9; color: hsl(var(--muted-fg)); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding-bottom: 18px; color: hsl(var(--fg) / .85); font-size: 16.5px; }
.sources { font-size: 14px; color: hsl(var(--muted-fg)); line-height: 1.6; }
.incta { margin-top: 2em !important; border-radius: 26px; padding: 26px; background: hsl(var(--forest)); color: hsl(var(--forest-fg)); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; position: relative; overflow: hidden; }
.incta::after { content: ""; position: absolute; right: -40px; bottom: -70px; width: 180px; height: 180px; border-radius: 50%; border: 1.5px dashed hsl(var(--forest-fg) / .2); }
.incta b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.incta span { opacity: .7; font-size: 15px; }
.author { margin-top: 2.4em !important; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border-radius: 20px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); }
.author p { margin: 4px 0 0; font-size: 15px; color: hsl(var(--muted-fg)); line-height: 1.5; }

/* ---------- обложки: язык экрана «Обзор баланса» (одинаковы в обеих темах) ---------- */
.scene { container-type: inline-size; position: relative; overflow: hidden; isolation: isolate; border-radius: 30px; aspect-ratio: 5 / 4; max-width: 100%; color: hsl(var(--forest)); }
.scene.sm { aspect-ratio: 16 / 10; border-radius: 0; }
.scene.v0 { background: linear-gradient(160deg, hsl(100 64% 95%), hsl(105 35% 88%)); }
.scene.v1 { background: hsl(var(--forest)); }
.scene.v2 { background: radial-gradient(60cqw 50cqw at 72% 28%, hsl(100 70% 97%), transparent 70%), linear-gradient(160deg, hsl(104 40% 90%), hsl(110 28% 82%)); }
.o-word { position: absolute; left: -2cqw; bottom: -6.5cqw; z-index: 0; font: 500 30cqw/1 var(--font); letter-spacing: -.06em; white-space: nowrap; color: hsl(var(--mist) / .6); pointer-events: none; }
.v1 .o-word { color: hsl(var(--forest-fg) / .05); }
.o-ring { position: absolute; left: 64cqw; top: 50%; width: 80cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: .3cqw dashed hsl(var(--forest) / .32); }
.v1 .o-ring { border-color: hsl(var(--forest-fg) / .2); }
.o-sat { position: absolute; z-index: 2; width: 7.4cqw; height: 7.4cqw; transform: translate(-50%, -50%); border-radius: 999px; display: grid; place-items: center; background: hsl(0 0% 100%); color: hsl(var(--forest)); box-shadow: 0 1cqw 3cqw -1cqw hsl(170 100% 8% / .35); }
.o-sat svg { width: 3.4cqw; height: 3.4cqw; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.o-sat.on { width: 12cqw; background: hsl(var(--forest)); color: hsl(var(--lime)); }
.v1 .o-sat.on { background: hsl(var(--lime)); color: hsl(var(--forest)); }
.o-chip { position: absolute; left: 5cqw; top: 5cqw; z-index: 3; font: 500 2.6cqw var(--font); padding: .55em 1.15em; border-radius: 999px; background: hsl(0 0% 100% / .85); color: hsl(var(--forest)); }
.v1 .o-chip { background: hsl(var(--forest-fg) / .1); color: hsl(var(--forest-fg)); }
.o-disc { position: absolute; z-index: 1; left: 64cqw; top: 50%; width: 52cqw; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; padding: 0 7cqw;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.1cqw; text-align: center; font-size: 3cqw; color: hsl(var(--forest));
  background-color: hsl(120 25% 98%); background-image: radial-gradient(hsl(170 60% 15% / .09) .25cqw, transparent .32cqw); background-size: 2.2cqw 2.2cqw;
  box-shadow: 0 4cqw 9cqw -4cqw hsl(170 100% 8% / .45), inset 0 0 0 .3cqw hsl(0 0% 100%); }
.o-arc { position: absolute; left: -2.4cqw; top: -2.4cqw; width: calc(100% + 4.8cqw); height: calc(100% + 4.8cqw); }
.o-rub { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95em; background: hsl(var(--forest)); color: hsl(var(--lime)); }
.o-wave { width: 74%; height: auto; overflow: visible; }
.o-bar { display: block; width: 72%; height: .7em; border-radius: 999px; background: hsl(110 20% 90%); overflow: hidden; }
.o-bar i { display: block; height: 100%; border-radius: inherit; background: hsl(var(--forest)); }
.o-bar.l i { background: hsl(var(--lime)); }
.o-stack { display: flex; gap: .2em; width: 72%; height: .7em; border-radius: 999px; overflow: hidden; }
.o-stack i:nth-child(1) { background: hsl(var(--forest)); } .o-stack i:nth-child(2) { background: hsl(var(--lime)); } .o-stack i:nth-child(3) { background: hsl(var(--lime-light)); }
.o-cols { display: flex; align-items: flex-end; gap: .35em; width: 58%; height: 3em; }
.o-cols i { flex: 1; border-radius: .3em; background: hsl(110 20% 89%); }
.o-cols i.on { background: hsl(var(--lime)); }
.o-badge { padding: .25em .85em; border-radius: 999px; font-size: .8em; font-weight: 600; background: hsl(var(--lime-light)); color: hsl(var(--forest)); }
.o-v { font-size: 2.3em; font-weight: 400; letter-spacing: -.045em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-cap { font-size: .78em; opacity: .6; }
.o-card { position: absolute; z-index: 3; left: 5cqw; bottom: 6cqw; width: 36cqw; padding: 2.6cqw 3cqw; border-radius: 4cqw; font-size: 2.7cqw;
  display: flex; flex-direction: column; gap: 1.4cqw; background: hsl(var(--forest)); color: hsl(var(--forest-fg)); box-shadow: 0 3cqw 7cqw -3cqw hsl(170 100% 6% / .55); }
.v1 .o-card { background: linear-gradient(120deg, hsl(var(--lime-light)), hsl(var(--lime))); color: hsl(var(--forest)); }
.o-card b { font-size: 1.85em; font-weight: 500; letter-spacing: -.04em; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.o-row { display: flex; align-items: center; gap: .6em; min-width: 0; }
.o-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.o-sub { opacity: .65; font-size: .9em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: -.4cqw; }
.o-dot { width: 1.7em; height: 1.7em; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: .85em; font-weight: 700; background: hsl(var(--lime)); color: hsl(var(--forest)); }
.v1 .o-dot { background: hsl(var(--forest)); color: hsl(var(--lime)); }
.acard > .scene { flex: none; }
.scene.art, .scene.art.lg { aspect-ratio: 16 / 10; background: hsl(105 35% 90%); }
.scene.art svg { display: block; width: 100%; height: 100%; }
.ahead .scene { box-shadow: var(--shadow-lg); }

/* ---------- иллюстрации в статьях ---------- */
.fig { margin: 1.9em 0 0 !important; }
.fig-b { border-radius: 26px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); padding: 24px; box-shadow: var(--shadow-sm); font-size: 15.5px; line-height: 1.5; }
.fig-b.d { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); border-color: transparent; }
.fig-b.d .muted, .fig-b.d .fl-s span { color: hsl(var(--forest-fg) / .65); }
.fig-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.fig-h b { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.fig figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 10px; font-size: 13.5px; line-height: 1.45; color: hsl(var(--muted-fg)); }
.fig figcaption .caps { flex: none; }
.big { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -.045em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.stat { border-radius: 20px; padding: 18px; background: hsl(var(--muted) / .55); display: grid; gap: 6px; align-content: start; min-width: 0; }
.stat.d { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); }
.stat.l { background: hsl(var(--lime-soft)); }
.stat .big { font-size: clamp(24px, 2.4vw, 30px); overflow-wrap: anywhere; }
.stat span { font-size: 14px; line-height: 1.4; color: hsl(var(--muted-fg)); }
.stat.d span { color: hsl(var(--forest-fg) / .7); }
.was { font-size: 15px; font-weight: 400; letter-spacing: 0; text-decoration: line-through; opacity: .55; margin-left: 4px; }
.sbar { display: flex; height: 46px; border-radius: 14px; overflow: hidden; gap: 3px; }
.sbar > i { display: flex; align-items: center; padding: 0 12px; font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; min-width: 0; transition: flex-grow .35s ease; }
.sbar.sm { height: 30px; border-radius: 10px; }
.sbar.sm > i { font-size: 12px; padding: 0 8px; }
.c-f { background: hsl(var(--forest)); color: hsl(var(--lime)); }
.c-l { background: hsl(var(--lime)); color: hsl(var(--forest)); }
.c-ll { background: hsl(var(--lime-light)); color: hsl(var(--forest)); }
.c-m { background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.c-o { background: repeating-linear-gradient(135deg, hsl(var(--muted)) 0 6px, hsl(var(--card)) 6px 12px); color: hsl(var(--muted-fg)); }
.legend2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 16px; }
.legend2 > div { display: grid; gap: 2px; min-width: 0; }
.legend2 b { font-size: 20px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.legend2 span { font-size: 13.5px; color: hsl(var(--muted-fg)); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.rows { display: grid; gap: 12px; }
.rows > div { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: 14px; align-items: center; }
.rows > div > span { font-size: 14px; }
.meter { position: relative; margin: 46px 4px 48px; height: 18px; border-radius: 999px; background: hsl(var(--muted)); }
.meter > i { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
.mk { position: absolute; top: -8px; bottom: -8px; width: 2px; background: hsl(var(--fg)); }
.mk span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; font-weight: 600; }
.mk.t span { bottom: calc(100% + 6px); }
.mk.b span { top: calc(100% + 6px); color: hsl(var(--muted-fg)); font-weight: 500; }
.tl { display: grid; }
.tl-i { display: grid; grid-template-columns: 112px 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; position: relative; }
.tl-i::before { content: ""; position: absolute; left: 145px; top: 0; bottom: 0; width: 2px; background: hsl(var(--border)); }
.tl-i:first-child::before { top: 50%; } .tl-i:last-child::before { bottom: 50%; }
.tl-i .dt { font-size: 13.5px; font-variant-numeric: tabular-nums; color: hsl(var(--muted-fg)); }
.tl-i .pt { width: 14px; height: 14px; border-radius: 50%; background: hsl(var(--card)); border: 2px solid hsl(var(--border)); position: relative; z-index: 1; justify-self: center; }
.tl-i.past { opacity: .5; }
.tl-i.past .pt { background: hsl(var(--muted-fg)); border-color: transparent; }
.tl-i.next { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); }
.tl-i.next .dt { color: hsl(var(--lime)); font-weight: 600; }
.tl-i.next .pt { background: hsl(var(--lime)); border-color: hsl(var(--lime)); box-shadow: 0 0 0 5px hsl(var(--lime) / .25); }
.tl-y { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: hsl(var(--muted-fg)); padding: 10px 12px 4px; }
.cmp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cmp > div { border-radius: 20px; padding: 18px; border: 1px solid hsl(var(--border)); display: grid; gap: 10px; align-content: start; min-width: 0; }
.cmp > div.d { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); border-color: transparent; }
.cmp .it { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.4; }
.ok, .no { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 12px; font-weight: 700; }
.ok { background: hsl(var(--lime)); color: hsl(var(--forest)); }
.no { background: hsl(var(--muted)); color: hsl(var(--muted-fg)); }
.d .no { background: hsl(var(--forest-fg) / .12); color: hsl(var(--forest-fg) / .6); }
.flow { display: grid; grid-template-columns: repeat(var(--k, 3), minmax(0, 1fr)); gap: 10px; }
.fl-s { position: relative; border-radius: 20px; padding: 18px; background: hsl(var(--muted) / .55); display: grid; gap: 8px; align-content: start; }
.fl-s:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 22px; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: hsl(var(--forest)); color: hsl(var(--lime)); }
.fl-s .n { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: hsl(var(--muted-fg)); }
.fl-s b { font-size: 16px; font-weight: 600; line-height: 1.3; }
.fl-s span { font-size: 14px; color: hsl(var(--muted-fg)); line-height: 1.45; }
.fl-s.d { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); }
.fl-s.d span, .fl-s.d .n { color: hsl(var(--forest-fg) / .65); }
.coins { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 5px; }
.coins i { aspect-ratio: 1; border-radius: 50%; display: block; }
.baskets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bk { border-radius: 22px; padding: 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.bk .pc { font-size: 34px; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.bk ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.bk li { padding: 5px 10px !important; border-radius: 999px; font-size: 13px; line-height: 1.3; background: hsl(var(--card) / .85); color: hsl(var(--fg)); }
.bk li::before { display: none !important; }
.calc { display: grid; gap: 16px; }
.calc label { display: grid; gap: 6px; font-size: 13.5px; color: hsl(var(--muted-fg)); }
.inp { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; border: 1px solid hsl(var(--border)); background: hsl(var(--bg-hi)); color: hsl(var(--fg)); font: 500 20px var(--font); font-variant-numeric: tabular-nums; outline: none; }
.inp:focus { border-color: hsl(var(--primary)); box-shadow: 0 0 0 3px hsl(var(--primary) / .15); }
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: 999px; background: hsl(var(--muted)); flex-wrap: wrap; }
.seg button { border: 0; background: transparent; height: 36px; padding: 0 14px; border-radius: 999px; font: 500 14px var(--font); color: hsl(var(--muted-fg)); cursor: pointer; }
.seg button[aria-pressed="true"] { background: hsl(var(--card)); color: hsl(var(--fg)); box-shadow: var(--shadow-sm); }
.res { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.res > div { border-radius: 18px; padding: 14px 16px; background: hsl(var(--muted) / .55); display: grid; gap: 4px; min-width: 0; }
.res > div.d { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); }
.res > div.d span { color: hsl(var(--forest-fg) / .7); }
.res span { font-size: 13px; color: hsl(var(--muted-fg)); line-height: 1.35; }
.res b { font-size: 22px; font-weight: 500; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.colchart { position: relative; height: 200px; display: grid; grid-template-columns: repeat(var(--k, 6), minmax(0, 1fr)); gap: 10px; align-items: end; margin: 8px 0 30px; border-bottom: 1.5px solid hsl(var(--border)); }
.colchart > div:not(.line) { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.colchart i { display: block; width: min(44px, 80%); border-radius: 12px 12px 4px 4px; background: hsl(var(--lime)); }
.colchart i.lo { background: hsl(var(--muted)); box-shadow: inset 0 0 0 1.5px hsl(var(--lime)); }
.colchart b { font-size: 12.5px; font-weight: 600; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.colchart small { position: absolute; top: calc(100% + 6px); font-size: 12px; color: hsl(var(--muted-fg)); }
.colchart .line { position: absolute; left: 0; right: 0; border-top: 2px dashed hsl(var(--primary)); z-index: 1; }
.colchart .line span { position: absolute; left: 0; bottom: 4px; font-size: 12px; font-weight: 600; background: hsl(var(--card)); padding: 1px 8px; border-radius: 999px; color: hsl(var(--fg)); }
.dec { display: grid; gap: 8px; }
.dec > div { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: hsl(var(--muted) / .55); }
.dec .q { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--mono); background: hsl(var(--card)); }
.dec .a { padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; background: hsl(var(--forest)); color: hsl(var(--lime)); }
.dec span:nth-child(2) { font-size: 15px; line-height: 1.4; }
.note { font-size: 13.5px; color: hsl(var(--muted-fg)); line-height: 1.5; }
.warn { border-radius: 14px; padding: 10px 14px; font-size: 14px; background: hsl(var(--lime-soft)); }
.warn.bad { background: hsl(4 70% 50% / .12); color: hsl(var(--fg)); }

/* блог */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; text-decoration: none; padding: 18px; border-radius: 36px; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .7); box-shadow: var(--shadow-sm); margin-bottom: 40px; }
.feat-b { display: flex; flex-direction: column; gap: 14px; padding-right: 18px; min-width: 0; }
.feat-b .chip { align-self: flex-start; }
.feat-b h2 { font-weight: 400; font-size: clamp(26px, 3vw, 40px); line-height: 1.08; letter-spacing: -.04em; }
.feat-b p { margin: 0; font-size: 17px; line-height: 1.55; }
.bfilters { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; position: sticky; top: calc(68px + env(safe-area-inset-top, 0px)); z-index: 5; padding-block: 10px; background: hsl(var(--bg) / .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.bsearch { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; background: hsl(var(--card)); border: 1px solid hsl(var(--border)); color: hsl(var(--muted-fg)); flex: 0 1 300px; min-width: 0; }
.bsearch input { border: 0; outline: 0; background: transparent; font: 15px var(--font); color: hsl(var(--fg)); width: 100%; min-width: 0; }
.fchips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
.fchip { height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); font: 500 14px var(--font); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.fchip span { color: hsl(var(--muted-fg)); font-size: 12.5px; }
.fchip[aria-pressed="true"] { background: hsl(var(--forest)); color: hsl(var(--forest-fg)); border-color: transparent; }
.fchip[aria-pressed="true"] span { color: hsl(var(--lime)); }
.acard[hidden] { display: none; }

.related { padding-block: 64px; background: hsl(var(--bg-hi)); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px; }
.acard { display: flex; flex-direction: column; text-decoration: none; border-radius: 26px; background: hsl(var(--card)); border: 1px solid hsl(var(--border) / .7); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .2s; min-width: 0; }
.acard:hover { transform: translateY(-3px); }
.acard .cv { aspect-ratio: 16 / 9; background: hsl(var(--forest)); color: hsl(var(--forest-fg)); padding: 20px 22px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; }
.acard .cv::before { content: ""; position: absolute; width: 90%; aspect-ratio: 1; right: -45%; top: -55%; border-radius: 50%; border: 1.5px dashed hsl(var(--forest-fg) / .2); }
.acard .cv b { position: relative; font-size: 34px; font-weight: 500; letter-spacing: -.04em; line-height: 1; }
.acard .cv small { position: relative; opacity: .7; margin-top: 6px; }
.acard .cv.l { background: linear-gradient(120deg, hsl(var(--lime-light)), hsl(var(--lime))); color: hsl(var(--forest)); }
.acard .bd { padding: 20px 22px 22px; display: grid; gap: 8px; }
.acard h3 { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.02em; }

@media (max-width: 960px) {
  .top nav:not(.mnav) { display: none; }
  .ahead .grid, .abody { grid-template-columns: minmax(0, 1fr); }
  .ahead .grid { gap: 28px; }
  .cover { aspect-ratio: 16 / 10; }
  .toc { display: none; }
  .toc-m { display: block; border-radius: 18px; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); padding: 0 18px; margin-bottom: 8px; }
  .toc-m summary { padding: 14px 0; cursor: pointer; font-weight: 600; }
  .toc-m nav { display: grid; gap: 4px; padding-bottom: 14px; }
  .toc-m a { text-decoration: none; color: hsl(var(--muted-fg)); padding: 6px 0; font-size: 15px; }
  .abody { padding-block: 24px 56px; gap: 0; }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: 1fr 1fr; }
  .incta { grid-template-columns: minmax(0, 1fr); }
  .feat { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 12px; border-radius: 30px; }
  .feat-b { padding: 0 8px 10px; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .fchip { flex: none; }
  .bfilters { position: static; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .bsearch { flex: 1 1 100%; }
  .fig-b { padding: 18px; }
  .cmp, .baskets { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .fl-s:not(:last-child)::after { right: auto; left: 22px; top: auto; bottom: -15px; content: "↓"; }
  .rows > div { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .tl-i { grid-template-columns: 84px 16px minmax(0, 1fr); }
  .tl-i::before { left: 116px; }
  .tl-i > :last-child { grid-column: 3; }
  .coins { grid-template-columns: repeat(10, minmax(0, 1fr)); }
  .sbar:not(.sm) > i { font-size: 0; padding: 0; }   /* на телефоне значения — в легенде под полосой */
  .wrap { padding-inline: 16px; }
}
@media (max-width: 520px) {
  .top .acts .btn-o, .top .acts .btn-p { display: none; }   /* обе кнопки — в мобильном меню и на первом экране */
  .prose { font-size: 17px; }
  .foot .cols { grid-template-columns: 1fr; }
}


/* посадочные под аудитории */
.aud-head .lead { max-width: 60ch; }
.aud-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }
.aud-body { padding-block: 36px 24px; }
.aud-pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.aud-pt { background: hsl(var(--card)); border-radius: 26px; padding: 24px; }
.aud-pt .n { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: hsl(var(--muted-fg)); }
.aud-pt b { display: block; font-size: 19px; font-weight: 500; margin: 10px 0 8px; letter-spacing: -.01em; }
.aud-pt p { margin: 0; color: hsl(var(--muted-fg)); line-height: 1.5; font-size: 15.5px; }
.aud-prose { max-width: 820px; margin: 48px auto 0; }
@media (max-width: 960px) { .aud-pts { grid-template-columns: minmax(0, 1fr); } }
.aud-steps { margin-top: 48px; }
.aud-steps h2 { font-weight: 400; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.02em; margin: 0 0 18px; }
.aud-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; counter-reset: s; }
.aud-steps li { counter-increment: s; background: hsl(var(--forest)); color: hsl(var(--forest-fg)); border-radius: 26px; padding: 24px; }
.aud-steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: hsl(var(--lime)); color: hsl(var(--forest)); font-weight: 600; margin-bottom: 14px; }
.aud-steps b { display: block; font-size: 18px; font-weight: 500; margin-bottom: 6px; }
.aud-steps span { opacity: .78; line-height: 1.5; font-size: 15px; }
@media (max-width: 960px) { .aud-steps ol { grid-template-columns: minmax(0, 1fr); } }
/* мобильное меню */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid hsl(var(--border)); background: hsl(var(--card)); color: hsl(var(--fg)); cursor: pointer; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.top .mnav { display: block; margin: 0; gap: 0; border-top: 1px solid hsl(var(--border)); background: hsl(var(--bg)); box-shadow: 0 30px 60px -30px rgba(0, 30, 24, .35); }
.top .mnav[hidden] { display: none; }
.top .mnav .wrap { display: grid; gap: 0; height: auto; padding-block: 6px 18px; }
.top .mnav a:not(.btn) { padding: 15px 4px; border-radius: 0; font-size: 18px; color: hsl(var(--fg)); background: none; border-bottom: 1px solid hsl(var(--border)); }
.top .mnav-b { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.top .mnav-b .btn { justify-content: center; border-radius: 999px; padding: 14px; font-size: 16px; }
.top .mnav-b .btn-p { background: hsl(var(--primary)); color: hsl(var(--primary-fg)); }
.top .mnav-b .btn-o { color: hsl(var(--fg)); }
@media (max-width: 960px) { .menu-btn { display: inline-flex; } }
@media (min-width: 961px) { .top .mnav { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- документы (оферта, политика) ---------- */
.legaldoc h1 { font-weight: 400; font-size: clamp(34px, 4.4vw, 54px); letter-spacing: -.045em; line-height: 1.05; margin: 0; }
.legaldoc .sub { color: hsl(var(--muted-fg, var(--fg)) / .7); margin: 12px 0 34px; font-size: 15px; }
.legaldoc .prose { max-width: none; font-size: 16.5px; }
.legaldoc .req { background: hsl(var(--card, 0 0% 100%)); border-radius: 20px; padding: 6px 22px; margin: 4px 0 8px; }
.legaldoc .req .row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr); gap: 16px; padding: 12px 0; font-size: 15.5px; }
.legaldoc .req .row + .row { border-top: 1px solid hsl(var(--border, 120 20% 85%)); }
.legaldoc .req .row span:first-child { opacity: .6; }
