/*
 * Про ОФЗ — прототип дизайна.
 * Очень тёмно-синий фон, белый текст, золото монеты ₽ как акцент, рыночные зелёный и красный. Серифный заголовок (Source Serif 4) и гротеск (Golos Text).
 * Анимируются только transform и opacity; при prefers-reduced-motion движение отключено.
 */

@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/golos-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/golos-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Golos"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(../fonts/golos-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/serif-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/serif-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(../fonts/serif-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 400 500; font-display: swap; src: url(../fonts/serif-italic-cyrillic.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Source Serif"; font-style: italic; font-weight: 400 500; font-display: swap; src: url(../fonts/serif-italic-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--bg: #050b1d;
	--bg-2: #08112a;
	--surface: #0c1733;
	--surface-2: #111f42;
	--line: rgba(150, 175, 255, .11);
	--line-2: rgba(150, 175, 255, .2);
	--ink: #f4f6fb;
	--ink-2: #ccd5ea;
	--mute: #8d9bbd;
	--gold: #efb94f;
	--gold-2: #ffd98c;
	--green: #3fd68a;
	--red: #ff5f57;
	--steel: #8fb2ff;

	--serif: "Source Serif", "Source Serif 4", Georgia, "Times New Roman", serif;
	--sans: "Golos", "Golos Text", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	--mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--spring: cubic-bezier(.3, 1.42, .52, 1);
	--header: 72px;
	--bar: 44px;
	--gutter: clamp(20px, 4vw, 48px);
	--radius: 12px;
	--radius-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--ink-2); font: 400 1.0625rem/1.6 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
/* Таблицы — системным шрифтом: он компактнее и тоньше Golos, столбцы помещаются (просьба клиента). */
table { --sans: -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-family: var(--sans); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
table { border-collapse: separate; border-spacing: 0; }
::selection { background: rgba(239, 185, 79, .32); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 100; padding: 10px 14px; background: var(--gold); color: var(--bg); border-radius: var(--radius-sm); font-weight: 600; transform: translateY(-160%); }
.skip:focus { transform: none; }

/* Типографика */
.display, h1, h2, h3, .serif { font-family: var(--serif); font-optical-sizing: auto; color: var(--ink); font-weight: 450; letter-spacing: -.012em; }
.display { font-size: clamp(2.8rem, 1.2rem + 4.5vw, 5.4rem); line-height: .98; letter-spacing: -.026em; font-weight: 430; }
.display em, h1 em, h2 em { font-style: italic; font-weight: 400; color: var(--ink-2); }
h1 { font-size: clamp(2.6rem, 1.5rem + 3.5vw, 4.6rem); line-height: 1.02; letter-spacing: -.022em; }
h2 { font-size: clamp(2.05rem, 1.35rem + 2.2vw, 3.35rem); line-height: 1.06; letter-spacing: -.018em; }
h3 { font-size: 1.45rem; line-height: 1.22; font-weight: 500; }
h4 { font: 600 .8125rem/1.4 var(--sans); color: var(--ink); }
.lead { font-size: clamp(1.06rem, 1rem + .3vw, 1.2rem); line-height: 1.58; color: var(--ink-2); max-width: 38rem; }
.muted { color: var(--mute); }
.small { font-size: .875rem; line-height: 1.55; }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }

.wrap { width: min(100% - 2 * var(--gutter), 1240px); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 860px); margin-inline: auto; }

/* Кнопки */
.btn { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: var(--radius-sm); font: 600 .9375rem/1 var(--sans); letter-spacing: .005em; white-space: nowrap; transition: transform .16s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: #fff; opacity: 0; transition: opacity .2s var(--ease); }
.btn:hover::after { opacity: .07; }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.go { transform: translateX(3px); }
.btn-primary { background: var(--gold); color: #050b1d; }
.btn-primary::after { background: #fff; }
.btn-primary:hover::after { opacity: .16; }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet { height: auto; padding: 8px 4px; color: var(--ink-2); }
.btn-quiet::after { display: none; }
.btn-quiet:hover { color: var(--ink); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .875rem; }
.btn-block { width: 100%; }

.link { color: var(--ink); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; }
.link-u { position: relative; color: var(--ink); }
.link-u::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

/* Сегментированный переключатель */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); }
.seg button, .seg a { position: relative; isolation: isolate; height: 34px; padding: 0 13px; border-radius: 5px; font-size: .875rem; font-weight: 500; color: var(--mute); display: inline-flex; align-items: center; white-space: nowrap; }
.seg button::before, .seg a::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0; transition: opacity .2s var(--ease); }
.seg button:hover, .seg a:hover { color: var(--ink-2); }
.seg [aria-pressed="true"], .seg [aria-selected="true"], .seg [aria-current="page"] { color: var(--ink); }
.seg [aria-pressed="true"]::before, .seg [aria-selected="true"]::before, .seg [aria-current="page"]::before { opacity: 1; }

/* Поля */
.field { display: grid; gap: 8px; }
.field-label { font-size: .875rem; color: var(--mute); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(3, 8, 22, .55); color: var(--ink); font-size: 1rem; outline: none; }
.input:hover { border-color: rgba(150, 175, 255, .28); }
.input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239, 185, 79, .16); }
textarea.input { height: auto; min-height: 140px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.check { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; font-size: .875rem; line-height: 1.5; color: var(--mute); cursor: pointer; }
.check input { appearance: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(3, 8, 22, .55); display: grid; place-content: center; cursor: pointer; }
.check input::after { content: ""; width: 10px; height: 6px; border: solid var(--bg); border-width: 0 0 2px 2px; transform: rotate(-45deg) scale(0); transition: transform .18s var(--ease); margin-top: -2px; }
.check input:checked { background: var(--gold); border-color: var(--gold); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-note { font-size: .8125rem; color: var(--mute); line-height: 1.5; }
.demo-note { font-size: .875rem; color: var(--gold-2); opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.demo-note.is-on { opacity: 1; transform: none; }

/* Шапка */
.header { position: sticky; top: 0; z-index: 50; height: var(--header); }
.header .header-actions .btn-line { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .55); }
.header::before { content: ""; position: absolute; inset: 0; background: rgba(5, 11, 29, .94); box-shadow: inset 0 -1px 0 var(--line); opacity: 0; transition: opacity .3s var(--ease); }
.header.is-scrolled::before, .header.is-open::before { opacity: 1; }
.header .wrap { position: relative; height: 100%; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 38px; height: 38px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-name { font: 500 1.2rem/1.1 var(--serif); color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: .72rem; color: var(--mute); letter-spacing: .01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { position: relative; padding: 8px 11px; font-size: .9rem; color: var(--ink-2); }
.nav a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.burger { display: none; width: 44px; height: 44px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-2); position: relative; }
.burger i { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease), opacity .2s; }
.burger i:nth-child(1) { top: 16px; } .burger i:nth-child(2) { top: 21.25px; } .burger i:nth-child(3) { top: 26.5px; }
.header.is-open .burger i:nth-child(1) { transform: translateY(5.25px) rotate(45deg); }
.header.is-open .burger i:nth-child(2) { opacity: 0; }
.header.is-open .burger i:nth-child(3) { transform: translateY(-5.25px) rotate(-45deg); }
.sheet { display: none; }

/* Первый экран главной: не ниже окна (вместе с полосой прототипа), фон уезжает вместе с экраном; контент и шапка шире остальных секций */
.home .header .wrap, .hero .wrap { width: min(100% - 2 * var(--gutter), 1400px); }
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * var(--header)); padding-top: var(--header); min-height: max(640px, calc(100svh - var(--bar))); display: grid; grid-template-rows: minmax(16px, 1fr) auto minmax(16px, 1fr) auto minmax(16px, 1fr) auto; background: radial-gradient(90% 70% at 10% 0%, rgba(38, 78, 180, .14), rgba(38, 78, 180, 0) 70%), linear-gradient(180deg, #08122e 0%, var(--bg) 65%); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/grain.svg) 0 0 / 220px 220px; opacity: .4; mix-blend-mode: soft-light; pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(150, 175, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(150, 175, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .35) 60%, transparent 100%); pointer-events: none; }
/* Фоновые линейные волны: холст под содержимым на всю площадь экрана */
.hero-waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 calc(var(--fade, 70%) - 120px), rgba(0, 0, 0, .16) var(--fade, 70%)); mask-image: linear-gradient(180deg, #000 calc(var(--fade, 70%) - 120px), rgba(0, 0, 0, .16) var(--fade, 70%)); }
.hero-top { grid-row: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr); gap: 24px clamp(32px, 5vw, 96px); align-items: center; }
.hero .display { font-size: clamp(2.4rem, min(1rem + 3.9vw, 8.4vh), 5.4rem); }
.hero-copy .lead { margin-top: clamp(12px, 2.2vh, 24px); max-width: 33rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(16px, 3vh, 32px); }

/* Табло с моушном (первый экран, калькулятор): цвет результата, угловые скобы, блик по рамке, барабан цифр.
   .glass — та же стеклянная панель без эффектов. */
.fx, .glass { border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.fx { --tone: var(--gold-2); --rgb: 255, 217, 140; position: relative; isolation: isolate; }
.fx.up { --tone: var(--green); --rgb: 63, 214, 138; }
.fx.down { --tone: var(--red); --rgb: 255, 95, 87; }
.fx-tint { position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(85% 65% at 0% 0%, rgba(var(--rgb), .17), rgba(var(--rgb), 0) 70%), linear-gradient(180deg, rgba(var(--rgb), 0) 55%, rgba(var(--rgb), .05)); opacity: .8; pointer-events: none; }
@property --sweep { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fx::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.5px; background: conic-gradient(from var(--sweep), transparent 0deg, transparent 240deg, rgba(var(--rgb), .9) 330deg, transparent 360deg); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; pointer-events: none; }
.fx.is-hit::before { animation: comet 1.3s var(--ease-io) both; }
.fx.is-hit .fx-tint { animation: flare 1.1s var(--ease) both; }
.fx.is-hit .cn { animation: snap .6s var(--spring) both; }
.fx.is-hit .fx-chip { animation: pop .55s var(--spring) both; }
.fx.is-hit .fx-num { animation: kick .7s var(--spring) both; }
@keyframes comet { 0% { --sweep: 0deg; opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { --sweep: 360deg; opacity: 0; } }
@keyframes flare { 0% { opacity: .8; } 25% { opacity: 1; } 100% { opacity: .8; } }
@keyframes snap { from { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes pop { from { transform: scale(.7); opacity: 0; } }
@keyframes kick { from { transform: translateY(8px) scale(.97); } }
.cn { position: absolute; z-index: 3; width: 16px; height: 16px; border: 0 solid var(--tone); pointer-events: none; }
.cn.tl { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; --dx: -9px; --dy: -9px; }
.cn.tr { right: -1px; top: -1px; border-width: 2px 2px 0 0; border-top-right-radius: 14px; --dx: 9px; --dy: -9px; }
.cn.bl { left: -1px; bottom: -1px; border-width: 0 0 2px 2px; border-bottom-left-radius: 14px; --dx: -9px; --dy: 9px; }
.cn.br { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; --dx: 9px; --dy: 9px; }
.fx-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.fx-cap { font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.fx-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 13px; background: rgba(var(--rgb), .14); box-shadow: inset 0 0 0 1px rgba(var(--rgb), .45); color: var(--tone); font-size: .8125rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fx-num { display: flex; align-items: flex-start; height: 1em; font-family: var(--sans); font-weight: 700; line-height: 1; letter-spacing: -.05em; color: var(--tone); font-variant-numeric: tabular-nums lining-nums; white-space: pre; transform-origin: left bottom; }
.fx-num > span { display: block; height: 1em; line-height: 1; }
.fx-num .rd { overflow: hidden; }
.rd-strip { display: block; transition: transform .9s var(--spring); }
.rd-strip span { display: block; height: 1em; }

/* Табло сценария первого экрана */
.shock { display: grid; gap: 10px; padding: 20px 26px 18px; }
/* Без подписки вместо табло стресс-теста — карточка подписки */
.shock-lock { gap: 14px; box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .35), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.shock-lock h2 { font-size: clamp(1.5rem, 1.1rem + 1vw, 2rem); }
.shock-lock p { color: var(--ink-2); }
.shock-num { margin-top: 2px; font-size: clamp(3.4rem, 1.4rem + 4.4vw, 6.6rem); }
.shock-money { font-size: .9375rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.shock-money span { margin-inline: 4px; color: var(--tone); }
.shock-money b { color: var(--ink); font-weight: 700; }
.shock-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-size: .9375rem; }
.shock-who b { color: var(--ink); font-weight: 600; }
.shock-who span { color: var(--mute); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.shock-spark { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.shock-spark-cap { font-size: .72rem; color: var(--mute); }
.shock-spark svg { display: block; width: 100%; height: 40px; overflow: visible; }
.sp-area { fill: rgba(var(--rgb), .1); }
.sp-line { fill: none; stroke: var(--tone); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sp-base { fill: none; stroke: rgba(244, 246, 251, .35); stroke-width: 1; stroke-dasharray: 3 4; }
.sp-dot { fill: var(--bg); stroke: var(--tone); stroke-width: 2.5; transition: transform .6s var(--spring); }
.sp-ticks { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); font-size: .6875rem; color: var(--mute); text-align: center; font-variant-numeric: tabular-nums; }
.sp-ticks li.is-on { color: var(--tone); font-weight: 700; }
.shock-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.shock-parts div { display: grid; gap: 2px; }
.shock-parts dt { font-size: .72rem; color: var(--mute); }
.shock-parts dd { font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.shock-parts dd.up { color: var(--green); }
.shock-parts dd.down { color: var(--red); }

/* Стресс-тест: линейная диаграмма на холсте, волна при смене сценария идёт слева направо */
.stress-wrap { grid-row: 4; display: grid; }
.stress-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-bottom: 10px; }
.stress-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .8125rem; color: var(--mute); }
.stress-title b { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.stress-ctl { display: flex; align-items: center; gap: 10px; }
.stress-unit { font-size: .8125rem; color: var(--mute); white-space: nowrap; }
.shifts { position: relative; isolation: isolate; display: inline-flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(3, 8, 22, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.shifts button { position: relative; z-index: 1; width: 44px; height: 34px; border-radius: 5px; font-size: .875rem; font-weight: 700; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: color .25s var(--ease); }
.shifts button.neg { color: var(--green); }
.shifts button.pos { color: var(--red); }
.shifts button:hover { color: var(--ink); }
.shifts button[aria-pressed="true"] { color: var(--bg); }
.shift-ind { position: absolute; z-index: 0; left: 0; top: 3px; width: 44px; height: 34px; overflow: hidden; border-radius: 5px; background: var(--ink); transition: transform .5s var(--spring), background-color .3s var(--ease); }
.shift-ind.up { background: var(--green); }
.shift-ind.down { background: var(--red); }
.shift-ind::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--bg); opacity: .45; transform: scaleX(0); transform-origin: left; }
.hero.is-auto .shift-ind.is-run::after { animation: hold var(--hold, 3s) linear forwards; }
.hero.is-holding .shift-ind.is-run::after { animation-play-state: paused; }
@keyframes hold { to { transform: scaleX(1); } }
.stress-play { display: grid; place-content: center; width: 40px; height: 40px; flex: none; border-radius: var(--radius-sm); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.stress-play:hover { color: var(--ink); }
.stress-play svg { width: 16px; height: 16px; }
.stress-play .i-play, .stress-play[aria-pressed="true"] .i-pause { display: none; }
.stress-play[aria-pressed="true"] .i-play { display: block; }
.stress { position: relative; height: clamp(170px, 24vh, 240px); cursor: crosshair; touch-action: pan-y; outline: none; }
.stress:focus-visible { box-shadow: 0 0 0 2px var(--gold); border-radius: 4px; }
.stress canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.stress-front { position: absolute; top: 0; left: 0; width: 2px; margin-left: -1px; background: var(--c, var(--ink)); opacity: 0; pointer-events: none; }
.stress-front span { position: absolute; top: 0; left: 6px; padding: 4px 7px; border-radius: 4px; background: var(--c, var(--ink)); color: var(--bg); font-size: .75rem; font-weight: 700; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stress-note { padding-top: 6px; font-size: .72rem; line-height: 1.4; color: var(--mute); opacity: .85; }

/* Лента котировок внизу первого экрана */
.tape { grid-row: 6; position: relative; height: 44px; overflow: hidden; border-top: 1px solid var(--line); background: rgba(3, 8, 22, .6); -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.tape-run { display: flex; width: max-content; height: 100%; align-items: center; animation: tape var(--tape-dur, 140s) linear infinite; }
.tape:hover .tape-run, .hero.is-paused .tape-run { animation-play-state: paused; }
.tape-item { display: inline-flex; align-items: baseline; gap: 10px; padding: 0 22px; border-right: 1px solid var(--line); font-size: .8125rem; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tape-item b { color: var(--ink); font-weight: 600; }
.tape-item em { font-style: normal; font-weight: 600; color: var(--gold-2); }
.tape-item i { font-style: normal; font-size: .75rem; }
.tape-item i.up { color: var(--green); }
.tape-item i.down { color: var(--red); }
@keyframes tape { to { transform: translateX(-50%); } }

/* Появление первого экрана */
.js [data-load] { opacity: 0; transform: translateY(14px); }
.js .is-loaded [data-load] { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--d, 0) * 1s), transform .9s var(--ease) calc(var(--d, 0) * 1s); }

/* Секции */
.section { position: relative; padding-block: clamp(72px, 7.5vw, 116px); }
.section-rule { border-top: 1px solid var(--line); }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.head h2 { max-width: 13em; }
.head .lead { max-width: 30rem; }
.head-solo { grid-template-columns: minmax(0, 1fr); }
.head-solo h2 { max-width: 22ch; }

/* Панель — стекло, как карточки первого экрана главной */
.panel { position: relative; border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); }

/* Фоновые волны секции (как на первом экране): холст под содержимым, края гаснут */
.sec-waves-host { isolation: isolate; overflow: hidden; }
.sec-waves { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent); }

/* Калькулятор: стеклянная панель ввода и табло результата в стиле первого экрана */
.sec-grid { isolation: isolate; overflow: hidden; }
.sec-grid::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(55% 50% at 72% 55%, rgba(38, 78, 180, .18), rgba(38, 78, 180, 0) 70%), linear-gradient(rgba(150, 175, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(150, 175, 255, .045) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: radial-gradient(75% 70% at 50% 55%, #000 35%, transparent 90%); mask-image: radial-gradient(75% 70% at 50% 55%, #000 35%, transparent 90%); pointer-events: none; }
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.calc-ctl { display: grid; gap: 30px; align-content: space-between; padding: clamp(22px, 2.6vw, 34px); }
.calc-ctl .field { gap: 12px; }
.amount { position: relative; }
.amount .input { height: 72px; padding: 0 56px 0 20px; border-radius: 10px; background: rgba(3, 8, 22, .6); font: 700 2.1rem/1 var(--sans); letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.amount span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--gold-2); font-size: 1.4rem; font-weight: 700; }
.chips { position: relative; isolation: isolate; display: inline-flex; flex-wrap: wrap; justify-self: start; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(3, 8, 22, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.chips button { position: relative; z-index: 1; height: 34px; padding: 0 14px; border-radius: 5px; font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color .25s var(--ease); }
.chips button:hover { color: var(--ink); }
.chips button[aria-pressed="true"] { color: var(--bg); }
.chips-ind { position: absolute; z-index: 0; left: 0; top: 3px; width: 0; height: 34px; border-radius: 5px; background: var(--gold); opacity: 0; transition: transform .5s var(--spring), width .3s var(--ease), opacity .2s var(--ease); }
.chips-ind.is-on { opacity: 1; }
.field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.field-top b { font: 700 1rem/1 var(--sans); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.range { --p: 50%; width: 100%; height: 28px; margin: 0; background: transparent; appearance: none; -webkit-appearance: none; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p), var(--line-2) var(--p)); }
.range::-moz-range-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold) var(--p), var(--line-2) var(--p)); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -9px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold); transition: transform .16s var(--ease); }
.range::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold); }
.range:active::-webkit-slider-thumb { transform: scale(1.1); }
/* Шкала горизонта: под ползунком «спектр» выпусков, над ним — плашка со сроком */
.horizon { position: relative; padding-top: 36px; }
.horizon-bubble { position: absolute; left: 0; top: 0; padding: 6px 9px; border-radius: 6px; background: var(--gold); color: var(--bg); font-size: .8125rem; font-weight: 700; line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; transition: transform .4s var(--spring); }
.horizon-bubble::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 1px; background: inherit; transform: rotate(45deg); }
.spec { position: relative; height: 54px; margin: 0 11px; }
.spec i { position: absolute; bottom: 0; width: 6px; height: 100%; margin-left: -3px; border-radius: 2px 2px 0 0; background: rgba(150, 175, 255, .22); transform-origin: 50% 100%; transition: background-color .3s var(--ease); }
.spec i.on { background: linear-gradient(0deg, rgba(239, 185, 79, .3), var(--gold)); }
.spec i.is-sel { background: var(--gold-2); }
.horizon .range { position: relative; display: block; height: 26px; margin-top: -1px; }
.horizon .range::-webkit-slider-thumb { width: 22px; height: 22px; margin-top: -10px; background: var(--bg); box-shadow: inset 0 0 0 3px var(--gold-2), 0 0 0 5px rgba(239, 185, 79, .16); }
.horizon .range::-moz-range-thumb { width: 22px; height: 22px; background: var(--bg); box-shadow: inset 0 0 0 3px var(--gold-2), 0 0 0 5px rgba(239, 185, 79, .16); }
.ticks-cap { display: flex; justify-content: space-between; gap: 10px; font-size: .78rem; color: var(--mute); margin-top: 6px; }
.calc-parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-parts div { display: grid; gap: 4px; align-content: start; }
.calc-parts dt { font-size: .72rem; color: var(--mute); }
.calc-parts dd { font-size: 1rem; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }
.calc-parts .lock { font-size: .8125rem; font-weight: 500; }
.rows { display: grid; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); font-size: .9375rem; }
.rows > div:last-child { border-bottom: 1px solid var(--line); }
.rows dt { color: var(--mute); }
.rows dd { color: var(--ink); text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.rows .plus { color: var(--green); }
.lock { display: inline-flex; align-items: center; gap: 8px; color: var(--mute) !important; }
.lock svg { width: 14px; height: 14px; }
/* Табло результата: сумма барабаном, «вложено / доход», рост на холсте */
.calc-res { display: grid; gap: 14px; align-content: start; padding: clamp(22px, 2.6vw, 34px); }
.calc-num { font-size: clamp(2.8rem, 1.2rem + 3.6vw, 4.8rem); }
.calc-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; font-size: .9375rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.calc-sub b { color: var(--tone); font-weight: 700; }
.split { display: grid; gap: 8px; }
.split-bar { position: relative; height: 10px; overflow: hidden; border-radius: 5px; background: rgba(150, 175, 255, .08); }
.split-bar i { position: absolute; top: 0; bottom: 0; width: 100%; transform: scaleX(0); transition: transform .8s var(--spring); }
.split-in { left: 0; transform-origin: left; background: linear-gradient(90deg, rgba(143, 178, 255, .3), rgba(143, 178, 255, .62)); }
.split-pr { right: 0; transform-origin: right; background: linear-gradient(90deg, rgba(63, 214, 138, .55), var(--green)); }
.split-legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-size: .8125rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.split-legend span { display: inline-flex; align-items: center; gap: 8px; }
.split-legend i { width: 10px; height: 10px; border-radius: 3px; }
.split-legend .k-in { background: rgba(143, 178, 255, .62); }
.split-legend .k-pr { background: var(--green); }
.split-legend b { color: var(--ink); font-weight: 600; }
.split-legend b.plus { color: var(--green); }
.calc-plot { position: relative; height: clamp(220px, 24vw, 300px); cursor: crosshair; }
.calc-plot canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.calc-note { max-width: 74rem; margin-top: 18px; font-size: .78rem; }
.chart { width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chart text { fill: var(--mute); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .grid line { stroke: var(--line); }
.chart .axis line, .chart .axis path { stroke: var(--line-2); }
.note { font-size: .84rem; line-height: 1.55; color: var(--mute); }
.note b { color: var(--ink-2); font-weight: 600; }

/* Преимущества */
.merits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.merit { position: relative; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; padding: 24px 26px 22px; transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.merit::before, .merit::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.merit::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.merit::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.merit:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.merit:hover::before, .merit:hover::after { opacity: 1; transform: none; }
.merit svg.mini { display: block; width: 100%; height: 88px; margin-bottom: 6px; padding: 10px 12px; border-radius: 10px; background: rgba(3, 8, 22, .5); box-shadow: inset 0 0 0 1px var(--line); overflow: visible; }
.merit h3 { font-size: clamp(1.25rem, 1.05rem + .5vw, 1.5rem); line-height: 1.2; }
.merit p { font-size: .9375rem; color: var(--ink-2); }
.merit footer { align-self: end; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.js .merit { opacity: 0; transform: translateY(22px); }
.js .merit.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--d, 0) * 1s), transform .9s var(--spring) calc(var(--d, 0) * 1s), box-shadow .3s var(--ease); }
.js .merit.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.js .merit .mini .ln, .js .merit .mini .ln-g { stroke-dasharray: 700; stroke-dashoffset: 700; }
.js .merit.is-in .mini .ln, .js .merit.is-in .mini .ln-g { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s var(--ease) calc(var(--d, 0) * 1s + .25s); }
.mini .ln { fill: none; stroke: var(--ink); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.mini .ln-2 { fill: none; stroke: var(--steel); stroke-width: 1; stroke-dasharray: 3 4; }
.mini .ln-g { fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-linecap: round; }
.mini .gr { stroke: var(--line); }
.mini .dt { fill: var(--gold); }
.mini .dt-i { fill: var(--ink); }
.mini .cell { fill: var(--gold); }
.mini .bar { fill: var(--steel); }

/* Сложный процент */
.fan { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.fan-chart { padding: clamp(18px, 2.4vw, 32px); border-right: 1px solid var(--line); position: relative; }
.fan-side { padding: clamp(24px, 2.6vw, 36px); display: grid; gap: 18px; align-content: start; }
.fan-year { display: flex; align-items: baseline; justify-content: space-between; }
.fan-year b { font: 700 2.6rem/1 var(--sans); color: var(--gold-2); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.js .wipe-in { clip-path: inset(0 100% 0 0); }
.js .wipe.is-in .wipe-in { clip-path: inset(0); transition: clip-path 1.8s var(--ease) .15s; }
.legend { display: grid; list-style: none; }
.legend li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: .9375rem; transition: opacity .2s var(--ease); }
.legend li:last-child { border-bottom: 1px solid var(--line); }
.legend i { height: 2px; background: var(--c); border-radius: 2px; }
.legend b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.legend li.is-dim { opacity: .35; }
.legend .band-row i { height: 8px; background: rgba(239, 185, 79, .22); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .5); }
.fan-curve { fill: none; stroke: var(--c); stroke-width: 1.5; transition: opacity .25s var(--ease); }
.fan-curve.is-dim { opacity: .18; }
.fan-band { fill: rgba(239, 185, 79, .14); stroke: rgba(239, 185, 79, .35); stroke-width: 1; }
.scrub { pointer-events: none; transition: opacity .2s; }
.scrub line { stroke: var(--ink); stroke-opacity: .35; }
.scrub circle { fill: var(--bg); stroke-width: 1.5; }

/* Таблица */
.table-shell { overflow: hidden; }
.table-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.stamp { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--mute); }
.stamp i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.scroller { overflow: auto; overscroll-behavior-x: contain; max-height: 640px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.data { width: 100%; min-width: 980px; font-size: .9rem; font-variant-numeric: tabular-nums lining-nums; }
.data th { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 14px 14px 12px; text-align: right; font-weight: 500; color: var(--mute); font-size: .78rem; line-height: 1.3; white-space: nowrap; border-bottom: 1px solid var(--line-2); vertical-align: bottom; }
.data th .sym { display: block; font: italic 450 1.02rem/1.1 var(--serif); color: var(--ink); margin-bottom: 3px; letter-spacing: 0; }
.data th button { display: inline-grid; justify-items: end; text-align: right; color: inherit; }
.data th button::after { content: ""; display: block; width: 0; height: 0; margin-top: 5px; border: 4px solid transparent; border-top-color: currentColor; opacity: 0; transition: opacity .2s, transform .2s var(--ease); }
.data th button:hover::after { opacity: .5; }
.data th[aria-sort] button::after { opacity: 1; color: var(--gold); }
.data th[aria-sort="ascending"] button::after { transform: rotate(180deg) translateY(4px); }
.data td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.data th:first-child, .data td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.data th:first-child { z-index: 3; }
.data th:first-child button { justify-items: start; text-align: left; }
.data td:first-child { color: var(--ink); font-weight: 500; }
.data tbody tr { transition: transform .5s var(--ease); }
.data tbody tr:hover td { background: #132350; }
.table-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-top: 1px solid var(--line); }

.premium { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; margin-top: 24px; overflow: hidden; }
.premium-copy { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: center; }
.premium-copy h3 { font-size: 1.9rem; }
.premium-facts { display: flex; gap: 32px; margin: 6px 0 10px; }
.premium-facts div { display: grid; gap: 2px; }
.premium-facts b { font: 450 1.7rem/1.1 var(--serif); color: var(--ink); }
.premium-facts span { font-size: .8125rem; color: var(--mute); }
.heat { position: relative; padding: clamp(18px, 2.4vw, 28px); border-left: 1px solid var(--line); display: grid; align-content: center; }
.heat-grid { display: grid; grid-template-columns: 64px repeat(11, minmax(0, 1fr)); gap: 3px; font-size: .72rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.heat-grid span { display: flex; align-items: center; height: 22px; }
.heat-grid .hc { justify-content: center; }
.heat-grid i { height: 22px; border-radius: 2px; background: var(--c); }
.heat-veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; background: linear-gradient(90deg, rgba(12, 23, 51, .2), rgba(12, 23, 51, .55)); color: var(--ink); font-size: .875rem; text-align: center; }
.heat-veil svg { width: 22px; height: 22px; color: var(--gold); }

/* Сравнение версий */
.versions { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.versions-copy { position: sticky; top: calc(var(--header) + 32px); display: grid; gap: 22px; }
.versions-copy h2 { margin-top: 0; }
.matrix { width: 100%; font-size: .9375rem; }
.matrix th, .matrix td { padding: 13px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.matrix thead th { font: 500 .8125rem/1.3 var(--sans); color: var(--mute); padding-top: 0; border-bottom-color: var(--line-2); }
.matrix thead th.pro { color: var(--gold); }
.matrix td:nth-child(n + 2), .matrix th:nth-child(n + 2) { width: 120px; text-align: center; }
.matrix .code { display: inline-block; min-width: 4.4rem; font: italic 450 1rem/1.4 var(--serif); color: var(--ink); }
.matrix .grp td { padding-top: 28px; font-size: .78rem; color: var(--gold); border-bottom-color: var(--line-2); }
.yes, .no { display: inline-grid; place-content: center; width: 24px; height: 24px; }
.yes svg { width: 16px; height: 16px; color: var(--green); }
.no::before { content: ""; width: 10px; height: 1px; background: var(--mute); opacity: .7; }
.matrix td.hl { background: rgba(239, 185, 79, .045); }


.acc { border-top: 1px solid var(--line-2); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: grid; grid-template-columns: 52px 1fr 24px; gap: 16px; align-items: center; padding: 24px 0; cursor: pointer; font: 450 clamp(1.15rem, 1rem + .5vw, 1.45rem)/1.3 var(--serif); color: var(--ink); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .n { font: 500 .8125rem/1 var(--sans); color: var(--mute); font-variant-numeric: tabular-nums; }
.acc summary .pm { position: relative; width: 14px; height: 14px; justify-self: end; }
.acc summary .pm::before, .acc summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink-2); transition: transform .3s var(--ease); }
.acc summary .pm::after { transform: rotate(90deg); }
.acc details[open] summary .pm::after { transform: rotate(0); }
.acc summary:hover .pm::before, .acc summary:hover .pm::after { background: var(--gold); }
.acc-body { padding: 0 0 32px 68px; max-width: 900px; }
.js .acc details[open] .acc-body { animation: acc-in .5s var(--ease); }
@keyframes acc-in { from { opacity: 0; transform: translateY(-6px); } }

/* Текст статьи и аккордеонов */
.prose { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.72; }
.prose > * + * { margin-top: 1.05em; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.7rem, 1.3rem + 1.1vw, 2.25rem); line-height: 1.15; }
.prose h3 { margin-top: 1.8em; font-size: 1.3rem; }
.prose h2 + *, .prose h3 + * { margin-top: .7em; }
.prose strong, .prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .45em; }
.prose li::marker { color: var(--gold); }
.prose ol li::marker { font-variant-numeric: tabular-nums; font-size: .92em; }
.prose blockquote { padding: 4px 0 4px 24px; border-left: 1px solid var(--gold); font-family: var(--serif); font-size: 1.18rem; line-height: 1.55; color: var(--ink); }
.prose blockquote strong { font-weight: 500; }
.prose .note { padding: 18px 20px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: .9688rem; }
.prose .note.warn { box-shadow: inset 3px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.prose .formula, .formula { text-align: center; padding: 18px 22px; border-radius: 8px; background: rgba(3, 8, 22, .55); box-shadow: inset 0 0 0 1px var(--line); font: italic 450 1.1rem/1.6 var(--serif); color: var(--ink); overflow-x: auto; }
.formula .tag { float: right; font-style: normal; color: var(--mute); font-size: .9rem; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .15em; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 .2em; }
.frac > span { line-height: 1.35; }
.big { font-size: 1.35em; vertical-align: middle; font-style: normal; }
.prose .tbl, .tbl { overflow-x: auto; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.prose table, .tbl table { width: 100%; font-size: .9rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.prose th, .prose td, .tbl th, .tbl td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th, .tbl th { font-weight: 500; color: var(--mute); font-size: .8125rem; background: rgba(3, 8, 22, .35); }
.prose tr:last-child td, .tbl tr:last-child td { border-bottom: 0; }
.prose td:first-child, .tbl td:first-child { color: var(--ink); }
.defs { display: grid; gap: 10px; }
.defs p { padding-left: 16px; border-left: 1px solid var(--line-2); }
.defs b { font-family: var(--serif); font-style: italic; font-weight: 450; color: var(--ink); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 980px; margin-inline: auto; }
.plan { position: relative; padding: clamp(28px, 3vw, 44px); display: grid; gap: 22px; align-content: start; }
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan-top h3 { font-size: 1.6rem; }
.plan-price { display: grid; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.plan-price > div { display: flex; align-items: baseline; gap: 10px; }
.plan-price .fx-num { font-size: clamp(3rem, 2.4rem + 2vw, 4.4rem); color: var(--ink); }
.plan-best .plan-price .fx-num { color: var(--gold-2); }
.plan-price small { font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.plan-price small b { color: var(--green); font-weight: 600; }
.plan-unit { color: var(--mute); font-size: 1rem; }
.plan ul { list-style: none; display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 12px; font-size: .9688rem; }
.plan li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--gold); }
.plan .btn { margin-top: 8px; }
.plan-best { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .5), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.plan-best.is-in::before { animation: comet 4.2s var(--ease-io) 1s infinite; }
.btn-shine { overflow: hidden; }
.btn-shine::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); transform: skewX(-20deg) translateX(0); pointer-events: none; }
.btn-shine:hover::before { transform: skewX(-20deg) translateX(420%); transition: transform .8s var(--ease); }
.plans-note { margin-top: 24px; text-align: center; }

/* Обратная связь */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-copy { display: grid; gap: 22px; }
.contact-copy h2 { margin-top: 0; }
.contact-list { display: grid; margin-top: 12px; padding: 4px 22px; }
.contact-list div { display: grid; gap: 4px; padding: 16px 0; }
.contact-list div + div { border-top: 1px solid var(--line); }
.contact-list span { font-size: .8125rem; color: var(--mute); }
.contact-list a, .contact-list b { color: var(--ink); font-weight: 500; }
.contact-form { padding: clamp(24px, 3vw, 40px); }
.contact-form .input { background: rgba(3, 8, 22, .6); }

/* Подвал */
.age { padding: 2px 7px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }

/* Cookie */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(360px, calc(100% - 40px)); padding: 16px 18px; font-size: .78rem !important; color: var(--ink-2); border-radius: var(--radius); background: #0e1a3a; box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 48px -20px rgba(0, 0, 0, .7); font-size: .875rem; line-height: 1.5; display: grid; gap: 14px; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .4s var(--ease), transform .5s var(--ease); }
.cookie.is-on { opacity: 1; transform: none; pointer-events: auto; }
.cookie-actions { display: flex; gap: 8px; }
.cookie .btn { height: 34px; padding: 0 14px; font-size: .8125rem; }
.field .seg { justify-self: start; }

/* Модальные окна */
.modal { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 20px; visibility: hidden; }
.modal::before { content: ""; position: absolute; inset: 0; background: rgba(2, 5, 15, .72); opacity: 0; transition: opacity .25s var(--ease); }
.modal-box { position: relative; width: min(480px, 100%); max-height: calc(100svh - 40px); overflow: auto; padding: 36px; border-radius: 14px; background: #0e1a3a; box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -30px rgba(0, 0, 0, .8); opacity: 0; transform: translateY(10px) scale(.97); transition: opacity .22s var(--ease), transform .3s var(--ease); }
.modal.is-open { visibility: visible; }
.modal.is-open::before { opacity: 1; }
.modal.is-open .modal-box { opacity: 1; transform: none; }
.modal-box h2 { font-size: 2rem; margin-top: 14px; }
.modal-box .lead { font-size: .9688rem; margin-top: 10px; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 8px; display: grid; place-content: center; color: var(--mute); }
.modal-close:hover { color: var(--ink); }
.modal-close svg { width: 18px; height: 18px; }
.pick { display: grid; gap: 10px; margin: 24px 0; }
.pick label { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; }
.pick label::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--gold); opacity: 0; transition: opacity .2s var(--ease); }
.pick label:has(input:checked)::before { opacity: 1; }
.pick input { position: absolute; opacity: 0; }
.pick b { color: var(--ink); font-weight: 600; }
.pick .price { font: 450 1.3rem/1.2 var(--serif); color: var(--ink); text-align: right; }
.pick small { color: var(--mute); font-size: .84rem; }
.tabs-mini { display: flex; gap: 2px; margin-top: 18px; }

/* Страницы второго уровня */
.page-hero { position: relative; isolation: isolate; margin-top: calc(-1 * var(--header)); padding: calc(var(--header) + clamp(48px, 7vw, 96px)) 0 clamp(48px, 6vw, 80px); }
.page-hero h1 { margin-top: 22px; max-width: 16ch; }
.page-hero .lead { margin-top: 22px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .84rem; color: var(--mute); }
.crumbs a:hover { color: var(--ink); }
.crumbs > * + *::before { content: "/"; margin-right: 8px; color: var(--line-2); }
.meta-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 26px; font-size: .875rem; color: var(--mute); }
.tag { color: var(--gold-2); }
.tag:hover { color: var(--ink); }

/* Дашборды */
.tabbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; }
.js [role="tabpanel"].is-in { animation: panel-in .5s var(--ease); }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
/* Графики — сборка дашбордов основного сайта (assets/dashboard.js: ECharts, SVG). Скрипт берёт цвета с :root
   в HSL без hsl(); вторая серия зашита в скрипт — янтарь 30 62% 47%, поэтому основная — синий из семейства --steel. */
:root { --primary: 221 92% 68%; --accent: 221 100% 78%; --foreground: 223 47% 97%; --muted-foreground: 223 27% 65%; --text-dim: 223 18% 48%; --border: 225 37% 21%; --card: 223 62% 12%; --success: 150 65% 54%; --destructive: 3 100% 67%; --warning: 40 83% 62%; }
.dash:fullscreen { padding: clamp(16px, 2vw, 28px); overflow: auto; background: var(--bg); }
.dash__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin-bottom: 16px; }
.dash__meta { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.dash__meta::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.dash__full { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line-2); font-size: .8125rem; font-weight: 600; color: var(--ink-2); transition: color .2s var(--ease); }
.dash__full svg { width: 15px; height: 15px; }
.dash__full:hover, .dash-card__full:hover { color: var(--gold-2); }
/* Вкладки — сегмент с бегунком, как выбор суммы в калькуляторе; на узком экране прокручиваются */
.dash__tabs { position: relative; isolation: isolate; display: flex; gap: 2px; width: fit-content; max-width: 100%; margin-bottom: clamp(28px, 3vw, 40px); padding: 3px; overflow-x: auto; border-radius: 8px; background: rgba(3, 8, 22, .6); box-shadow: inset 0 0 0 1px var(--line-2); scrollbar-width: none; }
.dash__tabs::-webkit-scrollbar { display: none; }
.dash__tab { position: relative; z-index: 1; flex: none; height: 36px; padding: 0 14px; border-radius: 5px; font-size: .875rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: color .25s var(--ease); }
.dash__tab:hover { color: var(--ink); }
.dash__tab[aria-selected="true"] { color: var(--bg); }
.dash__tabs:not(.has-ind) .dash__tab[aria-selected="true"] { background: var(--gold); }
.dash__tab:focus-visible { outline-offset: -2px; }
.dash__ind { position: absolute; z-index: 0; left: 0; top: 3px; width: 0; height: 36px; border-radius: 5px; background: var(--gold); opacity: 0; pointer-events: none; transition: transform .5s var(--spring), width .3s var(--ease), opacity .2s var(--ease); }
.dash__ind.is-on { opacity: 1; }
.dash__title { font-size: clamp(1.7rem, 1.25rem + 1.2vw, 2.4rem); line-height: 1.1; }
.dash__sub { max-width: 62rem; margin: 12px 0 24px; font-size: .9688rem; line-height: 1.6; color: var(--mute); }
.dash__select { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; font-size: .875rem; color: var(--mute); }
.dash__select select { flex: 0 1 26rem; min-width: 0; max-width: 100%; height: 46px; padding: 0 40px 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(3, 8, 22, .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23efb94f' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 15px center / 12px 8px; color: var(--ink); font-size: .9375rem; appearance: none; outline: none; cursor: pointer; }
.dash__select select:hover { border-color: rgba(150, 175, 255, .28); }
.dash__select select:focus-visible { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239, 185, 79, .16); }
.dash__select option { background: var(--surface); color: var(--ink); }
/* Сводка KPI — табло (.fx): обёртку со скобами добавляет proto.js, цифры едут барабаном */
.dash-board { margin-bottom: 20px; }
.dash-board:has(> dl[hidden]) { display: none; }
.dash__kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: inherit; }
@media (min-width: 1041px) { .dash__kpis:has(> :nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.dash__kpis div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; min-width: 0; padding: 18px 20px 20px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.dash__kpis dt { font-size: .8125rem; line-height: 1.35; color: var(--mute); }
.dash__kpis dd { font: 700 1.6rem/1.15 var(--sans); letter-spacing: -.03em; color: var(--tone); font-variant-numeric: tabular-nums lining-nums; overflow-wrap: anywhere; }
.dash__kpis .fx-num > span { flex: none; }
.dash__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Карточка графика — стекло, как «Почему выбирают ОФЗ»: при наведении подъём и скобы-уголки */
.dash-card { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); transition: transform .5s var(--spring); }
.dash-card::before, .dash-card::after { content: ""; position: absolute; z-index: 1; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.dash-card::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.dash-card::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.dash-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.dash-card:hover::before, .dash-card:hover::after { opacity: 1; transform: none; }
.dash-card--wide { --dash-chart-height: 380px; grid-column: 1 / -1; }
.dash-card__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 6px; }
.dash-card__title { font-size: 1.125rem; line-height: 1.3; }
.dash-card__full { display: grid; place-content: center; flex: none; width: 32px; height: 32px; margin: -4px -6px 0 0; border-radius: 6px; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s var(--ease); }
.dash-card__full svg { width: 14px; height: 14px; }
/* Высота графика — переменная: правило для телефона меняет её у всех карточек и не трогает таблицы (.is-dom) */
.dash-card__body { min-width: 0; height: var(--dash-chart-height, 320px); padding: 4px 10px 10px; }
.dash-card__body.is-dom, .dash-card__body.is-empty { height: auto; padding: 12px 20px 20px; }
.dash-card__empty { padding: 32px 0; font-size: .9rem; color: var(--mute); text-align: center; }
.dash-card__body:not(.is-dom) > div + div { border-radius: 8px !important; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .85) !important; }
.dash-card:fullscreen { padding: 16px; transform: none; border-radius: 0; background: var(--bg-2); }
.dash-card:fullscreen::before, .dash-card:fullscreen::after { display: none; }
.dash-card:fullscreen .dash-card__body { flex: 1; height: auto; }
.dash-card:fullscreen .dash-card__body.is-dom { overflow: auto; }
.dash-card:fullscreen .dash-matrix { max-height: none; }
/* Подсказка графика */
.dash-tip { display: grid; gap: 3px; min-width: 9rem; font-variant-numeric: tabular-nums; }
.dash-tip__title { margin-bottom: 3px; color: var(--ink); font-weight: 600; }
.dash-tip__row { display: flex; justify-content: space-between; gap: 16px; color: var(--mute); }
.dash-tip__row b { color: var(--ink); font-weight: 600; }
/* Матрицы и таблица показателей — как таблицы расчётов главной; заливку ячеек по значению ставит скрипт */
.dash-matrix { max-height: 34rem; overflow: auto; border: 1px solid rgba(148, 163, 184, .7); border-radius: .75rem; background: #0e1320; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .4) transparent; }
.dash-matrix table { width: 100%; font-size: .875rem; font-variant-numeric: tabular-nums; }
.dash-matrix th, .dash-matrix td { padding: 5px 9px; border-right: 1px solid rgba(148, 163, 184, .4); border-bottom: 1px solid rgba(148, 163, 184, .4); color: #a7aeb7; font-weight: 400; line-height: 1.3; text-align: right; white-space: nowrap; }
.dash-matrix tr > :last-child { border-right: 0; }
.dash-matrix tbody tr:last-child > * { border-bottom: 0; }
.dash-matrix thead th { position: sticky; top: 0; z-index: 2; background: #0e1320; color: #e2ebf3; border-bottom-color: rgba(148, 163, 184, .48); }
.dash-matrix tbody th { position: sticky; left: 0; z-index: 1; background: #0e1320; color: #e2ebf3; text-align: left; }
.dash-matrix thead th:first-child { left: 0; z-index: 3; text-align: left; }
.dash-matrix tbody tr:hover > * { color: #e2ebf3; box-shadow: inset 0 0 0 999px rgba(226, 235, 243, .06); }
.dash-filter { width: min(100%, 18rem); height: 42px; margin-bottom: 12px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--line-2); background: rgba(3, 8, 22, .55); color: var(--ink); font-size: .9rem; outline: none; }
.dash-filter::placeholder { color: var(--mute); }
.dash-filter:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(239, 185, 79, .16); }
.dash-sort { color: inherit; white-space: nowrap; }
.dash-sort:hover, [aria-sort="ascending"] > .dash-sort, [aria-sort="descending"] > .dash-sort { color: #0a85ff; }
[aria-sort="ascending"] > .dash-sort::after { content: " ▲"; font-size: .7em; }
[aria-sort="descending"] > .dash-sort::after { content: " ▼"; font-size: .7em; }
.dash-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 18px 28px; }
.dash-top h4 { margin-bottom: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.dash-top table { width: 100%; font-size: .84rem; font-variant-numeric: tabular-nums; }
.dash-top td { padding: 6px 4px; border-bottom: 1px solid var(--line); color: var(--mute); white-space: nowrap; }
.dash-top td:first-child { width: 1.5rem; opacity: .75; }
.dash-top td:nth-child(2), .dash-top td:nth-child(3) { color: var(--ink); }
.dash-top td:nth-child(n + 3) { text-align: right; }
.dash-top tr:last-child td { border-bottom: 0; }
/* Справочник показателей */
.dash-ref { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); column-gap: 32px; max-width: 64rem; padding: clamp(20px, 2.6vw, 34px); border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); font-size: .9688rem; line-height: 1.55; }
.dash-ref dt, .dash-ref dd { padding: 12px 0; border-top: 1px solid var(--line); }
.dash-ref dt:first-child, .dash-ref dt:first-child + dd { padding-top: 0; border-top: 0; }
.dash-ref dt { font: italic 450 1.05rem/1.5 var(--serif); color: var(--ink); white-space: nowrap; }
.dash-ref dd { color: var(--ink-2); }
/* Без подписки: те же живые графики под размытием, поверх — стеклянная карточка замка */
.dash-stage { position: relative; }
.dash-lock { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; padding: 20px; }
.dash-lock .dash-lock-card { width: min(100%, 580px); justify-items: center; text-align: center; box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .35), 0 40px 80px -30px rgba(0, 0, 0, .9); }
.dash-lock-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.dash-lock-list li { padding: 4px 11px; border-radius: 13px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: .8125rem; color: var(--ink-2); }
/* Главное за неделю: табло чисел и восемь карточек отчёта */
.week-board { margin-bottom: 20px; }
.week-board dl { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: hidden; border-radius: inherit; }
.week-board dl > div { display: grid; gap: 10px; align-content: start; min-width: 0; padding: 20px 22px 22px; box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); }
.week-board dt { font-size: .8125rem; line-height: 1.35; color: var(--mute); }
.week-board dd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; font-size: .875rem; color: var(--mute); font-variant-numeric: tabular-nums; }
.week-board .fx-num { font-size: 1.75rem; }
.week-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; list-style: none; }
.week-item { grid-template-rows: auto 1fr; }
.week-n { font-size: .8125rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.week-item p { font-size: .9688rem; line-height: 1.65; }
.week-item strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1180px) {
	.dash__tab { padding: 0 10px; }
}
@media (max-width: 1040px) {
	.week-board dl { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.dash__grid { grid-template-columns: minmax(0, 1fr); }
	.dash-card { --dash-chart-height: 300px; }
	.dash__kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
	.dash-card { --dash-chart-height: 280px; }
	.dash-card__head { padding: 16px 16px 4px; }
	.dash-card__body { padding-inline: 4px; }
	.dash-card__body.is-dom, .dash-card__body.is-empty { padding: 10px 14px 16px; }
	.dash__kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.dash__kpis div { padding: 14px 16px 16px; }
	.dash__kpis dd { font-size: 1.2rem; }
	.dash-ref { grid-template-columns: minmax(0, 1fr); }
	.dash-ref dd { padding-top: 0; border-top: 0; }
	.dash-lock { padding: 12px 0; }
	.week-board dl { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.week-list { grid-template-columns: minmax(0, 1fr); }
	.week-board dl > div { padding: 16px; }
	.week-board .fx-num { font-size: 1.4rem; }
}

/* Блог */
/* Рубрики: сегмент с бегунком (slideTo), в кнопках — число статей */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.filters .seg { position: relative; isolation: isolate; background: rgba(3, 8, 22, .6); }
.filters .seg button { z-index: 1; gap: 8px; transition: color .25s var(--ease); }
.filters .seg button::before { display: none; }
.filters .seg [aria-pressed="true"] { color: var(--gold-2); }
.seg-run { position: absolute; z-index: 0; left: 0; top: 3px; width: 0; height: 34px; border-radius: 5px; background: rgba(239, 185, 79, .14); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45); opacity: 0; transition: transform .5s var(--spring), width .3s var(--ease), opacity .2s var(--ease); }
.seg-run.is-on { opacity: 1; }
.seg-n { font-size: .75rem; font-weight: 600; color: var(--mute); font-variant-numeric: tabular-nums; transition: color .25s var(--ease); }
.filters .seg [aria-pressed="true"] .seg-n { color: var(--gold); }
.filters > .muted { font-variant-numeric: tabular-nums; }
/* Главная статья: крупное табло .fx, обложка слева; при наведении — блик по рамке (hitFx) и золотая рамка */
.feature-post { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); margin-bottom: 20px; transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.feature-post .fx-tint { background: radial-gradient(80% 90% at 100% 0%, rgba(var(--rgb), .17), rgba(var(--rgb), 0) 70%), linear-gradient(180deg, rgba(var(--rgb), 0) 55%, rgba(var(--rgb), .05)); }
.feature-post .cover { min-height: 360px; border-right: 1px solid var(--line); border-radius: 14px 0 0 14px; }
.feature-post .cover::after { background: linear-gradient(90deg, rgba(4, 9, 24, 0) 62%, rgba(4, 9, 24, .55)); }
.feature-post .post-copy { padding: clamp(26px, 3vw, 44px); display: grid; gap: 16px; align-content: center; }
.feature-post h2 { font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); }
.feature-post:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
/* Карточки: как «Почему выбирают ОФЗ» на главной — подъём, скобы-уголки, появление при прокрутке; уголки и подъём — и у ссылок «Соседние статьи» */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-card { display: grid; grid-template-rows: auto 1fr; transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.post-nav a::before, .post-nav a::after { content: ""; position: absolute; z-index: 3; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.post-nav a::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.post-nav a::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.post-card:hover, .feature-post:hover, .post-nav a:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.post-nav a:hover::before, .post-nav a:hover::after { opacity: 1; transform: none; }
.post-card .cover { height: 168px; border-bottom: 1px solid var(--line); border-radius: 14px 14px 0 0; }
.post-card .post-copy { padding: 22px 24px 26px; display: grid; gap: 12px; align-content: start; }
.post-card h3 { font-size: 1.28rem; line-height: 1.28; }
.js .post-card, .js .feature-post, .js .post-nav a { opacity: 0; transform: translateY(22px); }
.js .post-card.is-in, .js .feature-post.is-in, .js .post-nav a.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--d, 0) * 1s), transform .9s var(--spring) calc(var(--d, 0) * 1s), box-shadow .3s var(--ease); }
.js .post-card.is-in:hover, .js .feature-post.is-in:hover, .js .post-nav a.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .8125rem; color: var(--mute); }
.post-meta .cat { color: var(--gold); }
.read { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ink); font-weight: 500; }
.read svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
a:hover .read svg { transform: translateX(3px); }
.cover { position: relative; background: #0a1430; overflow: hidden; }
/* Пагинация: цифры в капсуле, как сегмент; текущая — золотой чип */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.pager > :first-child, .pager > :last-child { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); transition: box-shadow .25s var(--ease), color .25s var(--ease); }
.pager > :first-child { opacity: .55; }
.pager > a:last-child::after { display: none; }
.pager > a:last-child:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .5); color: var(--gold-2); }
.pager-nums { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(3, 8, 22, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.pager-nums a, .pager-nums span { display: grid; place-content: center; width: 38px; height: 34px; border-radius: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease), color .2s var(--ease); }
.pager-nums [aria-current] { color: var(--gold-2); font-weight: 600; background: rgba(239, 185, 79, .14); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45); }
.pager-nums a:hover { color: var(--ink); background: var(--surface-2); }
.is-filtered-out { display: none; }
@media (max-width: 1040px) { .feature-post .cover { border-radius: 14px 14px 0 0; } .feature-post .cover::after { background: linear-gradient(180deg, rgba(4, 9, 24, 0) 62%, rgba(4, 9, 24, .55)); } }
@media (max-width: 720px) {
	.filters { gap: 12px; }
	.filters .seg { flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
	.filters .seg button { flex: none; gap: 6px; padding: 0 9px; font-size: .8125rem; }
	.pager { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
	.pager-nums { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
	.pager > :last-child { justify-self: end; }
}
@media (max-width: 430px) { .seg-n { display: none; } }

/* Статья */
/* Полоса прогресса чтения — золото; ширина через scaleX */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 70; height: 3px; background: linear-gradient(90deg, rgba(239, 185, 79, .55), var(--gold-2)); box-shadow: 0 0 12px rgba(239, 185, 79, .4); transform-origin: left; transform: scaleX(0); }
/* Шапка статьи: текст слева, обложка в рамке справа; мета-строка — чипы */
.post-hero h1 { max-width: 20ch; font-size: clamp(2.3rem, 1.4rem + 3vw, 4rem); }
.post-hero .meta-line { gap: 10px; margin-top: 28px; }
.post-hero .meta-line > * { display: inline-flex; align-items: center; height: 30px; padding: 0 13px; border-radius: 15px; background: rgba(3, 8, 22, .5); box-shadow: inset 0 0 0 1px var(--line-2); font-variant-numeric: tabular-nums; }
.post-hero .meta-line .tag { background: rgba(239, 185, 79, .14); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45); font-weight: 600; transition: background-color .25s var(--ease), color .25s var(--ease); }
.post-hero .meta-line .tag:hover { background: rgba(239, 185, 79, .24); }
@media (min-width: 1041px) {
	.post-hero .wrap { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); column-gap: clamp(36px, 5vw, 80px); align-items: center; }
	.post-hero .crumbs { grid-column: 1 / -1; }
	.post-hero h1, .post-hero .lead, .post-hero .meta-line { grid-column: 1; }
	.post-hero h1 { font-size: clamp(2.2rem, 1.2rem + 2.2vw, 3.4rem); max-width: none; }
	.post-hero .post-cover { grid-column: 2; grid-row: 2 / span 3; margin-top: 22px; }
}
/* Тело статьи: фон — сетка, гаснущая вниз; overflow: clip не ломает липкое оглавление */
.post-body { isolation: isolate; overflow: clip; }
.post-body::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 620px; z-index: -1; background: radial-gradient(60% 70% at 12% 0%, rgba(38, 78, 180, .14), rgba(38, 78, 180, 0) 70%), linear-gradient(rgba(150, 175, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(150, 175, 255, .04) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, transparent 100%); pointer-events: none; }
.post-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
/* Оглавление: стеклянная липкая панель, бегунок едет к текущему разделу, справа в шапке — процент прочитанного */
.post-toc { --tone: var(--gold-2); --rgb: 255, 217, 140; position: sticky; top: calc(var(--header) + 28px); padding: 18px 12px 12px; }
.toc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 8px 12px; border-bottom: 1px solid var(--line); }
.toc-list { position: relative; max-height: calc(100svh - var(--header) - 28px - 28px - 110px); margin-top: 8px; overflow: auto; scrollbar-width: none; overscroll-behavior: contain; }
.toc-list::-webkit-scrollbar { display: none; }
.toc-list ol { list-style: none; display: grid; counter-reset: t; }
.toc-list li { counter-increment: t; }
.toc-list a { position: relative; z-index: 1; display: flex; gap: 10px; padding: 7px 10px; border-radius: 6px; font-size: .875rem; line-height: 1.4; color: var(--mute); transition: color .25s var(--ease); }
.toc-list a::before { content: counter(t, decimal-leading-zero); flex: none; width: 1.7em; font: 500 .75rem/1.85 var(--mono); color: var(--mute); transition: color .25s var(--ease); }
.toc-list a:hover { color: var(--ink-2); }
.toc-list a[aria-current="true"] { color: var(--ink); }
.toc-list a[aria-current="true"]::before { color: var(--gold); }
.toc-run { position: absolute; z-index: 0; left: 0; top: 0; width: 100%; height: 0; border-radius: 6px; background: rgba(239, 185, 79, .1); box-shadow: inset 2px 0 0 var(--gold), inset 0 0 0 1px rgba(239, 185, 79, .18); opacity: 0; pointer-events: none; transition: transform .5s var(--spring), height .3s var(--ease), opacity .25s var(--ease); }
.toc-run.is-on { opacity: 1; }
/* Типографика тела: номер раздела над заголовком, золотые маркеры, врезки и формулы — стекло, таблицы — как таблицы главной */
.article { max-width: 720px; counter-reset: sec; }
.article h2 { margin-top: 2.4em; padding-top: 1.35em; border-top: 1px solid var(--line); }
.article h2::before { counter-increment: sec; content: counter(sec, decimal-leading-zero); display: block; margin-bottom: .6em; font: 600 .75rem/1 var(--mono); letter-spacing: .14em; color: var(--gold); }
.article h3 { padding-left: 14px; border-left: 2px solid var(--gold); font-size: 1.2rem; line-height: 1.3; }
.article ul, .article ol { list-style: none; padding-left: 0; }
.article li { position: relative; padding-left: 1.6em; }
.article ul > li::before { content: ""; position: absolute; left: .25em; top: .72em; width: .36em; height: .36em; background: var(--gold); transform: rotate(45deg); }
.article ol { counter-reset: li; }
.article ol > li { counter-increment: li; padding-left: 2.3em; }
.article ol > li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: .3em; font: 600 .78rem/1.6 var(--mono); color: var(--gold); letter-spacing: .04em; }
.article #s16 + p + ul > li { padding-left: 2.1em; }
.article #s16 + p + ul > li::before { left: 0; top: .3em; width: 1.1em; height: 1.1em; border-radius: 4px; background: rgba(239, 185, 79, .08); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .5); transform: none; }
.article blockquote { padding: 20px 24px 20px 28px; border-left: 2px solid var(--gold); border-radius: 0 12px 12px 0; background: linear-gradient(90deg, rgba(239, 185, 79, .09), rgba(239, 185, 79, 0) 75%); }
.article .note { padding: 18px 22px; border-radius: 12px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2); }
.article .note.warn { background: linear-gradient(155deg, rgba(239, 185, 79, .13), rgba(4, 9, 24, .9) 58%); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .32); }
.article .formula { position: relative; padding: 22px 26px; border-radius: 12px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 1.15rem; text-align: center; }
.article .formula::before, .article .formula::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--gold-2); pointer-events: none; }
.article .formula::before { left: 0; top: 0; border-width: 2px 0 0 2px; border-top-left-radius: 12px; }
.article .formula::after { right: 0; bottom: 0; border-width: 0 2px 2px 0; border-bottom-right-radius: 12px; }
.article .tbl { border: 1px solid rgba(148, 163, 184, .55); border-radius: 12px; background: linear-gradient(90deg, #0e1320 30%, rgba(14, 19, 32, 0)) 0 0 / 36px 100% local no-repeat, linear-gradient(270deg, #0e1320 30%, rgba(14, 19, 32, 0)) 100% 0 / 36px 100% local no-repeat, linear-gradient(90deg, rgba(148, 163, 184, .28), rgba(148, 163, 184, 0)) 0 0 / 14px 100% scroll no-repeat, linear-gradient(270deg, rgba(148, 163, 184, .28), rgba(148, 163, 184, 0)) 100% 0 / 14px 100% scroll no-repeat, #0e1320; box-shadow: none; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .4) transparent; }
.article .tbl table { border-collapse: collapse; color: #a7aeb7; }
.article .tbl th, .article .tbl td { padding: 10px 14px; border-right: 1px solid rgba(148, 163, 184, .3); border-bottom: 1px solid rgba(148, 163, 184, .3); background: transparent; }
.article .tbl th:last-child, .article .tbl td:last-child { border-right: 0; }
.article .tbl th:first-child, .article .tbl td:first-child { min-width: 7.5em; }
.article .tbl th { border-bottom-color: rgba(148, 163, 184, .48); background: rgba(148, 163, 184, .06); color: #e2ebf3; font: 500 .78rem/1.3 var(--mono); }
.article .tbl td:first-child { color: #e2ebf3; font-weight: 500; }
.article .tbl tbody tr { transition: background-color .15s ease; }
.article .tbl tbody tr:hover { background: #1b2337; }
.article .tbl tbody tr:hover td { color: #e2ebf3; }
/* Конец статьи: соседние статьи — карточки с подъёмом, справка внизу */
.article-end { max-width: 720px; margin-top: 56px; display: grid; gap: 24px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav a { padding: 20px 22px; display: grid; gap: 6px; transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.post-nav small { color: var(--mute); font-size: .8125rem; }
.post-nav b { font: 450 1.1rem/1.35 var(--serif); color: var(--ink); }
.post-nav a:last-child { text-align: right; }
.article-end .note { padding-top: 18px; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.55; color: var(--mute); }
/* Призыв к таблице/подписке: табло .fx с волнами внутри */
.post-cta-sec { padding-block: clamp(24px, 3vw, 40px) clamp(64px, 7vw, 104px); }
.post-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px clamp(32px, 5vw, 72px); padding: clamp(28px, 3.6vw, 52px); }
.post-cta .sec-waves { border-radius: inherit; }
.post-cta-copy { display: grid; gap: 14px; }
.post-cta .fx-head { justify-content: flex-start; gap: 6px 14px; }
.post-cta h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.5rem); max-width: 24ch; }
.post-cta .lead { max-width: 36rem; font-size: 1rem; }
.post-cta-act { display: grid; gap: 10px; min-width: 220px; }
.js .post-cta { opacity: 0; transform: translateY(22px); }
.js .post-cta.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--spring); }
@media (max-width: 1040px) {
	.post-toc { position: static; }
	.toc-list { max-height: 232px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 28px), transparent); }
	.post-cta { grid-template-columns: minmax(0, 1fr); }
	.post-cta-act { grid-auto-flow: column; justify-content: start; }
}
@media (max-width: 720px) {
	.post-cta-act { grid-auto-flow: row; }
	.article h2 { margin-top: 2em; }
	.article blockquote { padding: 16px 16px 16px 18px; font-size: 1.06rem; }
	.article .note { padding: 16px 18px; }
	.article .tbl table { font-size: .84rem; }
	.article .tbl th, .article .tbl td { padding: 9px 10px; }
	.article .tbl th:first-child, .article .tbl td:first-child { min-width: 5.2em; }
	.post-hero .meta-line > * { height: 28px; padding: 0 11px; }
}
@media (prefers-reduced-motion: reduce) {
	.js .post-card, .js .feature-post, .js .post-nav a, .js .post-cta { opacity: 1; transform: none; }
}

/* Глоссарий */
/* Поиск: крупное поле в стекле, золотая подсветка фокуса со скобами, счётчик барабаном */
.search { --tone: var(--gold-2); --rgb: 255, 217, 140; position: relative; display: flex; align-items: center; gap: 14px; max-width: 760px; height: 72px; margin-top: 36px; padding: 0 14px 0 22px; border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); transition: box-shadow .3s var(--ease); }
.search:hover { box-shadow: inset 0 0 0 1px rgba(150, 175, 255, .34), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.search:focus-within { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .6), 0 0 0 4px rgba(239, 185, 79, .12), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.search::before, .search::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.search::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.search::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.search:focus-within::before, .search:focus-within::after { opacity: 1; transform: none; }
.search > svg { flex: none; width: 22px; height: 22px; color: var(--mute); transition: color .25s var(--ease); }
.search:focus-within > svg { color: var(--gold-2); }
.search .input, .search .input:hover, .search .input:focus { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-overflow: ellipsis; font-size: clamp(1.05rem, .95rem + .5vw, 1.3rem); }
.search .input::placeholder { color: var(--mute); }
.search .input::-webkit-search-cancel-button, .search .input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-x { flex: none; display: grid; place-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--mute); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s var(--ease), box-shadow .2s var(--ease); }
.search-x:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .6); }
.search-x svg { width: 14px; height: 14px; }
.search .count { flex: none; display: flex; align-items: center; gap: 8px; height: 34px; padding-left: 16px; border-left: 1px solid var(--line-2); font-size: .9375rem; color: var(--mute); white-space: nowrap; font-variant-numeric: tabular-nums; }
.search .count .fx-num { font-size: 1.5rem; letter-spacing: -.02em; }

/* Алфавит: ряд букв-сегментов, липкий при прокрутке; активная буква — золотой бегунок */
.alpha { position: sticky; top: var(--header); z-index: 20; padding: 10px 0; background: rgba(5, 11, 29, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.alpha-row { position: relative; isolation: isolate; display: flex; width: max-content; max-width: 100%; gap: 2px; padding: 3px; overflow-x: auto; scrollbar-width: none; border-radius: 8px; background: rgba(3, 8, 22, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.alpha-row::-webkit-scrollbar { display: none; }
.alpha a { position: relative; z-index: 1; flex: none; display: grid; place-content: center; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 5px; font: 450 1.05rem/1 var(--serif); color: var(--ink-2); transition: color .25s var(--ease); }
.alpha a:hover { color: var(--ink); }
.alpha a[aria-current] { color: var(--bg); font-weight: 600; }
.alpha a:focus-visible { outline-offset: -3px; }
.alpha a.is-empty { opacity: .25; pointer-events: none; }
.alpha .sep { flex: none; width: 1px; margin: 6px 8px; background: var(--line-2); }
.alpha-ind { position: absolute; z-index: 0; left: 0; top: 3px; width: 0; height: 34px; border-radius: 5px; background: var(--gold); opacity: 0; transition: transform .5s var(--spring), width .3s var(--ease), opacity .2s var(--ease); }
.alpha-ind.is-on { opacity: 1; }

/* Группы по буквам: стеклянные карточки, как «Почему выбирают ОФЗ»; при наведении — подъём и скобы */
.gl-cards { --gap: clamp(14px, 1.6vw, 20px); columns: 3; column-gap: var(--gap); }
.gl-card { position: relative; break-inside: avoid; margin-bottom: var(--gap); padding: 22px 24px 18px; border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); scroll-margin-top: calc(var(--header) + 76px); transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.gl-card::before, .gl-card::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.gl-card::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.gl-card::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.gl-card:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.gl-card:hover::before, .gl-card:hover::after { opacity: 1; transform: none; }
.js .gl-card { opacity: 0; transform: translateY(22px); }
.js .gl-card.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease) calc(var(--d, 0) * 1s), transform .9s var(--spring) calc(var(--d, 0) * 1s), box-shadow .3s var(--ease); }
.js .gl-card.is-in:hover { transform: translateY(-4px); transition-delay: 0s; }
.gl-card h2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: clamp(2.9rem, 2.2rem + 1.8vw, 3.8rem); line-height: .9; color: var(--ink); transition: color .3s var(--ease); }
.gl-card:hover h2 { color: var(--gold-2); }
.gl-card h2 small { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(239, 185, 79, .12); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4); font: 700 .8125rem/1 var(--sans); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.gl-card ul { list-style: none; }
.gl-card li a { position: relative; display: block; margin-inline: -10px; padding: 8px 34px 8px 10px; border-radius: 6px; font-size: .9688rem; line-height: 1.35; color: var(--ink-2); transition: color .2s var(--ease), background-color .2s var(--ease); }
.gl-card li a::after { content: ""; position: absolute; right: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--gold); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat; opacity: 0; transform: translateX(-6px); transition: opacity .25s var(--ease), transform .35s var(--ease); }
.gl-card li a:hover, .gl-card li a:focus-visible { color: var(--ink); background: rgba(150, 175, 255, .07); }
.gl-card li a:hover::after, .gl-card li a:focus-visible::after { opacity: 1; transform: none; }
.gl-card li a mark { background: rgba(239, 185, 79, .28); color: var(--ink); border-radius: 2px; }

/* Пустой результат поиска */
.empty { display: grid; justify-items: center; gap: 8px; max-width: 520px; margin: 0 auto; padding: 44px 28px 38px; border-radius: 14px; text-align: center; color: var(--mute); background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.empty > svg { width: 34px; height: 34px; margin-bottom: 6px; color: var(--gold); }
.empty b { font: 450 clamp(1.5rem, 1.2rem + 1vw, 1.9rem)/1.2 var(--serif); color: var(--ink); }
.empty .btn { margin-top: 14px; }
@media (max-width: 1040px) {
	.gl-cards { columns: 2; }
}
@media (max-width: 720px) {
	.search { height: 60px; gap: 10px; margin-top: 28px; padding: 0 10px 0 16px; }
	.search > svg { width: 20px; height: 20px; }
	.search .count { gap: 6px; padding-left: 12px; font-size: .8125rem; }
	.search .count .fx-num { font-size: 1.2rem; }
	.gl-cards { columns: 1; }
	.gl-card { padding: 18px 18px 14px; }
}
@media (prefers-reduced-motion: reduce) {
	.js .gl-card { opacity: 1; transform: none; }
}

/* Термин */
.term-layout { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 860px; gap: clamp(32px, 6vw, 96px); align-items: start; }
/* Определение — крупное табло (холодный тон), блик по рамке при появлении */
.term-def { --tone: var(--steel); --rgb: 143, 178, 255; padding: clamp(22px, 2.8vw, 36px); }
.term-def .term-lead { margin-top: 18px; }
.term-lead { font: 450 clamp(1.3rem, 1.05rem + .8vw, 1.7rem)/1.45 var(--serif); color: var(--ink); }
.js .term-def { opacity: 0; transform: translateY(18px); }
.js .term-def.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--spring); }
.term-layout .prose .formula, .term-layout .prose .note { border-radius: 12px; background: linear-gradient(155deg, rgba(18, 31, 72, .6), rgba(4, 9, 24, .72) 62%); box-shadow: inset 0 0 0 1px var(--line-2); }
/* Поток платежей: столбцы купонов растут слева направо, номинал — золотой столбец; под курсором — дата и сумма платежа */
.flows { padding: clamp(22px, 2.6vw, 32px); position: sticky; top: calc(var(--header) + 28px); }
.flows h3 { margin-top: 18px; font-size: 1.25rem; margin-bottom: 4px; }
.flows .note { margin-bottom: 18px; }
.flow-bar { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .9s var(--ease) calc(var(--i) * 45ms), opacity .2s var(--ease), filter .2s var(--ease); }
.flow-bar.is-last { filter: drop-shadow(0 0 9px rgba(239, 185, 79, .4)); transition: transform 1.1s var(--spring) calc(var(--i) * 45ms), opacity .2s var(--ease), filter .2s var(--ease); }
.flow-bar.is-on { filter: drop-shadow(0 0 6px rgba(143, 178, 255, .7)); }
.flow-bar.is-last.is-on { filter: drop-shadow(0 0 12px rgba(239, 185, 79, .7)); }
.flows.is-probe .flow-bar:not(.is-on) { opacity: .4; }
.js .flow-bar { transform: scaleY(0); }
.js .is-in .flow-bar { transform: none; }
.flow-base, .flow-tick { stroke: var(--line-2); }
.flow-guide { stroke: rgba(239, 185, 79, .4); stroke-dasharray: 3 5; }
.flow-guide.cpn { stroke: rgba(143, 178, 255, .32); }
.chart text.nom { fill: var(--gold-2); }
.js .flow-lbl { opacity: 0; }
.js .is-in .flow-lbl { opacity: 1; transition: opacity .9s var(--ease) .8s; }
.flow-stats { margin-top: 14px; padding-top: 14px; }
/* Связанные термины: стеклянные карточки, при наведении — подъём и скобы */
.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related a { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 76px; padding: 18px 22px; border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); font: 450 1.12rem/1.3 var(--serif); color: var(--ink); transition: box-shadow .3s var(--ease), transform .5s var(--spring); }
.related a::before, .related a::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.related a::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.related a::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.related a:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.related a:hover::before, .related a:hover::after { opacity: 1; transform: none; }
.related a svg { flex: none; width: 16px; height: 16px; color: var(--mute); transition: transform .3s var(--ease), color .3s var(--ease); }
.related a:hover svg { transform: translateX(3px); color: var(--gold); }
.js .related a { opacity: 0; transform: translateY(16px); }
.js .related.is-in a { opacity: 1; transform: none; transition: opacity .6s var(--ease) calc(var(--i, 0) * 45ms), transform .8s var(--spring) calc(var(--i, 0) * 45ms), box-shadow .3s var(--ease); }
.js .related.is-in a:hover { transform: translateY(-3px); transition-delay: 0s; }
.cta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 40px); }
.cta-row h3 { font-size: 1.7rem; }
.cta-row p { margin-top: 8px; }
/* Призыв — табло .fx с кнопкой */
.term-cta .fx-cap { margin: 0 0 12px; }
.js .term-cta { opacity: 0; transform: translateY(18px); }
.js .term-cta.is-in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--spring); }
@media (prefers-reduced-motion: reduce) {
	.js .term-def, .js .term-cta, .js .related a, .js .flow-lbl { opacity: 1; transform: none; }
}

/* Кабинет */
.cab-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: end; }
.sub-card { padding: 22px 26px 24px; display: grid; gap: 14px; align-content: start; }
.sub-card .state { display: inline-flex; align-items: center; gap: 10px; }
.sub-card .state i { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.sub-card .state i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: sub-pulse 2.6s var(--ease) infinite; }
@keyframes sub-pulse { from { transform: scale(1); opacity: .55; } to { transform: scale(3.4); opacity: 0; } }
.days { display: flex; align-items: flex-end; gap: 14px; }
.days .fx-num { font-size: clamp(3.8rem, 3rem + 1.6vw, 4.8rem); }
.days > span:not(.sr) { padding-bottom: .55rem; color: var(--mute); }
.sub-card p.muted { font-size: .9375rem; line-height: 1.55; }
.meter { height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--tone, var(--gold)); transform-origin: left; transform: scaleX(var(--v)); }
.js .meter i { transform: scaleX(0); transition: transform 1.2s var(--ease) .3s; }
.js .is-loaded .meter i { transform: scaleX(var(--v)); }
.cab-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cab-card { padding: clamp(22px, 2.6vw, 34px); display: grid; gap: 18px; align-content: start; }
.cab-card h2 { font-size: 1.6rem; }
.cab-card:not(.fx) { transition: box-shadow .3s var(--ease); }
.cab-card:not(.fx)::before, .cab-card:not(.fx)::after { content: ""; position: absolute; width: 16px; height: 16px; border: 0 solid var(--gold-2); opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .5s var(--spring); }
.cab-card:not(.fx)::before { left: -1px; top: -1px; border-width: 2px 0 0 2px; border-top-left-radius: 14px; transform: translate(-9px, -9px); }
.cab-card:not(.fx)::after { right: -1px; bottom: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: 14px; transform: translate(9px, 9px); }
.cab-card:not(.fx):hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .4), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.cab-card:not(.fx):hover::before, .cab-card:not(.fx):hover::after { opacity: 1; transform: none; }
.cab-card .input { background: rgba(3, 8, 22, .6); }
.cab-card .input::placeholder { color: rgba(141, 155, 189, .55); }
.cab-card .field-label { transition: color .2s var(--ease); }
.cab-card .field:focus-within .field-label { color: var(--gold-2); }
.cab-stack { display: grid; gap: 20px; }
.cab-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cab-seg-ind { display: none; }
.js .cab-seg { position: relative; isolation: isolate; flex-wrap: nowrap; background: rgba(3, 8, 22, .6); }
.js .cab-seg [role="tab"] { z-index: 1; height: 38px; padding: 0 18px; font-weight: 600; transition: color .25s var(--ease); }
.js .cab-seg [role="tab"]::before { display: none; }
.js .cab-seg [role="tab"]:hover { color: var(--ink); }
.js .cab-seg [role="tab"][aria-selected="true"] { color: var(--bg); }
.js .cab-seg-ind { display: block; position: absolute; z-index: 0; left: 0; top: 3px; width: 0; height: 38px; border-radius: 5px; background: var(--gold); opacity: 0; transition: transform .5s var(--spring), width .3s var(--ease), opacity .2s var(--ease); }
.js .cab-seg-ind.is-on { opacity: 1; }
.status { --c: var(--mute); --crgb: 141, 155, 189; display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 10px; border-radius: 12px; background: rgba(var(--crgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--crgb), .36); color: var(--c); font-size: .78rem; font-weight: 600; white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.ok { --c: var(--green); --crgb: 63, 214, 138; }
.status.fail { --c: var(--red); --crgb: 255, 95, 87; }
.status.wait { --c: var(--gold); --crgb: 239, 185, 79; }
.status.wait::before { animation: status-blink 1.8s var(--ease-io) infinite; }
@keyframes status-blink { 50% { opacity: .3; } }
.pay-card .pay-table { margin: 0; }
.pay-card .pay-table table { min-width: 860px; font-size: 15px; }
.pay-card .pay-table thead th { padding: 12px 16px; font: 500 .75rem/1.2 var(--mono); letter-spacing: .02em; text-align: left; white-space: nowrap; }
.pay-card .pay-table thead th:first-child { position: static; border-right: 1px solid rgba(148, 163, 184, .4); box-shadow: none; }
.pay-card .pay-table tbody td { padding: 13px 16px; font-size: .9375rem; line-height: 1.3; text-align: left; }
.pay-card .pay-table tbody td:nth-child(-n + 3), .pay-card .pay-table tbody td:nth-child(5), .pay-card .pay-table tbody td:nth-child(6) { font-family: var(--mono); font-size: .875rem; }
.pay-card .pay-table tbody td:first-child { color: var(--ink); }
.pay-card .pay-table th.is-num, .pay-card .pay-table tbody td:nth-child(6) { text-align: right; }
.thread { display: grid; gap: 12px; }
.msg { padding: 14px 16px; border-radius: 8px; background: rgba(3, 8, 22, .45); box-shadow: inset 0 0 0 1px var(--line); font-size: .9375rem; }
.msg-admin { box-shadow: inset 2px 0 0 var(--gold), inset 0 0 0 1px var(--line); }
.msg-meta { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; font-size: .8125rem; color: var(--mute); }
.msg-meta strong { color: var(--ink); font-weight: 600; }
.acc-tight summary { padding: 18px 0; font-size: 1.1rem; grid-template-columns: 1fr 24px; }
.acc-tight .acc-body { padding: 0 0 22px; }
.ticket-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font: 400 .8125rem/1.3 var(--sans); color: var(--mute); }

/* Реквизиты */
.req { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.req-card { padding: clamp(22px, 2.6vw, 36px); }
.req-card h2 { font-size: 1.5rem; margin-bottom: 18px; }
.req-wide { grid-column: 1 / -1; }
.req-card:not(.req-wide) { transition: box-shadow .3s var(--ease); }
.req-card:not(.req-wide):hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .32), 0 40px 80px -44px rgba(0, 0, 0, .9); }
.req-rows > div { position: relative; align-items: center; }
.req-rows > div::before { content: ""; position: absolute; inset: 0 -12px; z-index: -1; border-radius: 8px; background: rgba(150, 175, 255, .05); opacity: 0; transition: opacity .25s var(--ease); pointer-events: none; }
.req-rows > div:hover::before { opacity: 1; }
.req-rows > div.is-copied::before { background: rgba(63, 214, 138, .11); opacity: 1; }
.req-rows dd { display: flex; align-items: center; justify-content: flex-end; gap: 10px; text-align: right; }
.req-val.num { font-family: var(--mono); font-size: .9em; letter-spacing: .01em; }
.copy { position: relative; width: 34px; height: 34px; flex: none; display: grid; place-content: center; border-radius: 6px; color: var(--mute); transition: transform .16s var(--ease); }
.copy:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.copy:active { transform: scale(.92); }
.copy.is-done { color: var(--green); background: rgba(63, 214, 138, .12); box-shadow: inset 0 0 0 1px rgba(63, 214, 138, .45); }
.copy::after { content: "Скопировано"; position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 5; padding: 5px 10px; border-radius: 13px; background: #0d2b27; box-shadow: inset 0 0 0 1px rgba(63, 214, 138, .5); color: var(--green); font-size: .75rem; font-weight: 700; line-height: 1; white-space: nowrap; opacity: 0; transform: translateY(5px) scale(.92); transform-origin: right bottom; pointer-events: none; transition: opacity .2s var(--ease), transform .4s var(--spring); }
.copy.is-done::after { opacity: 1; transform: none; }
.copy svg { width: 16px; height: 16px; transition: opacity .2s, transform .25s var(--ease); }
.copy .ok { position: absolute; left: 9px; top: 9px; color: var(--green); opacity: 0; transform: scale(.6); }
.copy.is-done .ic { opacity: 0; transform: scale(.6); }
.copy.is-done .ok { opacity: 1; transform: none; }

/* 404 */
.nf { min-height: clamp(620px, 92svh, 900px); display: flex; align-items: center; }
.nf-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.nf-code { font-size: clamp(7rem, 4rem + 12vw, 13rem); color: var(--ink); letter-spacing: -.02em; }
.nf-code .rd:nth-child(2) { color: var(--gold); }
.nf h1 { margin-top: 24px; font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.nf-board { padding: 22px 26px 20px; display: grid; gap: 14px; }
.nf-chart { display: block; width: 100%; height: auto; overflow: visible; }
.nf-grid-lines path { fill: none; stroke: var(--line); stroke-width: 1; }
.nf-area { fill: rgba(143, 178, 255, .08); }
.nf-rise, .nf-fall, .nf-ghost, .nf-flat { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.nf-rise { stroke: var(--steel); stroke-width: 2.5; }
.nf-fall { stroke: var(--red); stroke-width: 2.5; }
.nf-ghost { stroke: rgba(143, 178, 255, .55); stroke-width: 1.5; stroke-dasharray: 3 5; }
.nf-flat { stroke: rgba(255, 95, 87, .55); stroke-width: 1.5; stroke-dasharray: 3 5; }
.nf-dot { fill: var(--bg); stroke: var(--red); stroke-width: 3; transform-box: fill-box; transform-origin: center; }
.nf-tag rect { fill: var(--red); }
.nf-tag text { fill: var(--bg); font: 700 12px var(--sans); }
.nf-cap { font-size: .875rem; color: var(--mute); }
.js .nf-rise, .js .nf-fall { stroke-dasharray: 100; stroke-dashoffset: 100; }
.js .nf-area, .js .nf-ghost, .js .nf-flat, .js .nf-tag { opacity: 0; }
.js .nf-dot { opacity: 0; transform: scale(.2); }
.js .nf-board.is-run .nf-rise { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease-io); }
.js .nf-board.is-run .nf-fall { stroke-dashoffset: 0; transition: stroke-dashoffset .3s ease-in 1.25s; }
.js .nf-board.is-run .nf-area { opacity: 1; transition: opacity 1.2s var(--ease) .3s; }
.js .nf-board.is-run .nf-ghost, .js .nf-board.is-run .nf-flat { opacity: 1; transition: opacity .7s var(--ease) 1.5s; }
.js .nf-board.is-run .nf-tag { opacity: 1; transition: opacity .3s var(--ease) 1.1s; }
.js .nf-board.is-run .nf-dot { opacity: 1; transform: none; transition: opacity .2s var(--ease) 1.5s, transform .6s var(--spring) 1.5s; }

/* Адаптив */
/* Таблицы расчётов — как на основном сайте (тема ofz, _table.scss и _accordion.scss): моноширинная шапка
   с буквами столбцов Excel, тонкие границы ячеек, цвет по столбцу, перекрестье под курсором,
   выделение строки щелчком по номеру ОФЗ. Цвета — значения токенов темы. */
.table-panel { width: fit-content; max-width: 100%; margin: 0 auto; }
.table-panel--premium { width: auto; }
.table-panel--premium:fullscreen { max-width: none; padding: 1.5rem; overflow: auto; background: #141a29; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; font-size: 1rem; line-height: 1.25rem; }
.table-action-button, .table-updated { display: inline-flex; align-items: center; gap: .3rem; color: #7588a3; transition: color .15s ease; }
.table-action-button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
.table-title-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin: 1.5rem 0 .75rem; }
.table-title-row .table-group-title { margin: 0; }
.table-action-button:hover { color: #e2ebf3; }
.table-action-button svg { width: 1rem; height: 1rem; }
.table-group-title { margin: 1.5rem 0 .75rem; font: 600 1.25rem/1.5rem var(--sans); color: #e2ebf3; letter-spacing: 0; }
.table-horizons__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .375rem; margin-bottom: .75rem; }
.table-horizons__title { margin-right: .375rem; color: #7588a3; font-size: .875rem; }
.table-horizons__button { padding: .3rem .7rem; border: 1px solid #252a37; border-radius: .375rem; background: transparent; color: #7588a3; font-size: .875rem; line-height: 1.3; transition: border-color .15s ease, color .15s ease; }
.table-horizons__button:hover { color: #e2ebf3; }
.table-horizons__button[aria-pressed="true"] { border-color: rgba(10, 133, 255, .7); background: rgba(10, 133, 255, .1); color: #e2ebf3; }
.table-wrap { overflow-x: auto; border: 1px solid rgba(37, 42, 55, .5); border-radius: .75rem; background: #0e1320; box-shadow: 0 1px 0 rgba(226, 235, 243, .02) inset; scrollbar-width: thin; scrollbar-color: rgba(148, 163, 184, .4) transparent; }
.table-wrap.original-table { width: fit-content; max-width: 100%; margin-inline: auto; border-color: rgba(148, 163, 184, .7); }
.table-note { max-width: 74rem; margin: 12px auto 0; font-size: .78rem; line-height: 1.5; color: var(--mute); text-align: center; }
.original-table table { width: max-content; margin: 0 auto; cursor: default; }
.original-table table, .issues-table table { border-collapse: collapse; background: #0e1320; color: #7588a3; font-family: var(--mono); font-size: 18px; font-weight: 400; font-variant-numeric: tabular-nums; }
.original-table th, .original-table td, .issues-table th, .issues-table td { padding: 6px 9px; border-bottom: 1px solid rgba(37, 42, 55, .3); background: transparent; color: #a7aeb7; font-weight: 400; line-height: 1.05; text-align: center; white-space: nowrap; }
.original-table thead th, .issues-table thead th { border-right: 1px solid rgba(148, 163, 184, .4); border-bottom: 1px solid rgba(148, 163, 184, .48); color: #e2ebf3; font-size: .8em; }
.original-table thead th:last-child, .issues-table thead th:last-child { border-right: none; }
.original-table tbody td, .original-table tbody th, .issues-table tbody td, .issues-table tbody th { padding: 4px 8px; border-right: 1px solid rgba(148, 163, 184, .4); border-bottom: 1px solid rgba(148, 163, 184, .4); font-family: var(--sans); font-size: .8em; transition: background-color .12s ease, filter .12s ease; }
.original-table tbody td:last-child, .issues-table tbody td:last-child { border-right: none; }
.original-table tbody tr:last-child > *, .issues-table tbody tr:last-child > * { border-bottom: none; }
/* Шапка как у таблицы «Обзор» в дашбордах: белый текст, синий и стрелка — только у столбца,
   по которому отсортировано. Таблица показывается целиком, без прокрутки по вертикали.
   Строки шапки той же высоты, что и строки тела; столбец ОФЗ закреплён при прокрутке по горизонтали. */
.original-table thead th { background-color: #0e1320; font-family: var(--sans); }
.original-table th.letter, .original-table thead tr:last-child th { height: auto; padding: 4px 8px; line-height: 1.05; }
.original-table thead th sub, .original-table thead th sup { line-height: 0; }
.original-table th.letter { color: #7588a3; cursor: help; }
.original-table tbody td:first-child { position: sticky; left: 0; z-index: 6; background-color: #0e1320; }
.original-table thead th:first-child { position: sticky; left: 0; z-index: 1; }
.original-table th.group { padding: .3rem .5rem; font-family: var(--sans); line-height: 1.2; white-space: normal; }
.original-table thead tr:last-child th { vertical-align: middle; cursor: pointer; user-select: none; transition: color .15s ease, background-color .15s ease; }
.original-table thead tr:last-child th button { display: inline; padding: 0; color: inherit; font: inherit; line-height: inherit; cursor: pointer; }
.original-table thead tr:last-child th:hover, .original-table thead tr:last-child th:focus-visible { outline: none; color: #0a85ff; }
.original-table thead th[aria-sort="ascending"], .original-table thead th[aria-sort="descending"] { color: #0a85ff; }
.original-table thead th[aria-sort="ascending"]::after, .original-table thead th[aria-sort="descending"]::after { margin-left: .1rem; font-size: .7em; content: "▲"; }
.original-table thead th[aria-sort="descending"]::after { content: "▼"; }
.original-table tbody td:first-child, .original-table tbody td:last-child { cursor: pointer; }
.original-table tbody td:first-child:hover, .original-table tbody td:last-child:hover { background-color: #0e1c32; }
.original-table tbody td.align-right { text-align: right; }
.original-table tbody td.align-left { text-align: left; }
.original-table tbody td.excel-colored-cell { color: #c9d9e8; text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.original-table tbody td.row-hover { color: #e2ebf3; filter: brightness(1.8); }
.original-table tbody td.row-hover:not(.excel-colored-cell) { background-color: #1b2337; }
.original-table tbody td.col-hover { color: #e2ebf3; }
.original-table tbody td.col-hover:not(.excel-colored-cell) { background-color: #1c2e40; filter: none; }
.original-table tbody td.col-hover.excel-colored-cell { box-shadow: inset 0 0 0 1px rgba(59, 130, 246, .4); filter: brightness(1.35); }
.original-table tbody td.cell-cross { position: relative; z-index: 5; box-shadow: inset 0 0 0 2px rgba(59, 130, 246, .8); color: #fff; }
.original-table tbody td.cell-cross:not(.excel-colored-cell) { background-color: #204060; }
.original-table tbody td.cell-cross.excel-colored-cell { box-shadow: inset 0 0 0 2.5px #3b82f6; filter: brightness(1.5); }
.original-table thead th.col-hover { background-color: #1f3851; color: #fff; font-weight: 700; }
.original-table tbody tr.row-selected td { border-top: 2px solid #0a84ff; border-bottom: 2px solid #0a84ff; color: #9dbade; text-shadow: 0 0 4px rgba(0, 0, 0, .6); filter: brightness(1.8); }
.original-table tbody tr.row-selected td:not(.excel-colored-cell):not(:first-child):not(:last-child) { background-color: #19334d; }
.original-table tbody tr.row-selected td.bridge-cell-selected { color: #0156c0; text-shadow: 0 0 6px rgba(147, 197, 253, .4); }
.original-table tbody tr.row-selected td.excel-colored-cell { color: #c9d9e8; }
.original-table tbody tr.row-selected:hover td { background-color: #273451; }
.original-table tbody tr.row-selected:hover td.bridge-cell-selected { color: #fff; text-shadow: 0 0 8px rgba(147, 197, 253, .5); }
/* «Синтетические коэффициенты ранжирования»: на всех горизонтах столбцы уже за счёт отступов */
[data-ofz-horizons] .original-table th, [data-ofz-horizons] .original-table td { padding-inline: 3px; }
/* «Выпуски ОФЗ-ПД» в «Принципах расчётов» */
.issues-table { margin: .9rem 0 1rem; border-color: rgba(148, 163, 184, .7); }
.issues-table table { width: 100%; }
.issues-table thead th { padding: .3rem .5rem; font-family: var(--sans); line-height: 1.2; text-align: center; vertical-align: middle; white-space: normal; }
.issues-table thead th:first-child, .issues-table tbody th { position: sticky; left: 0; z-index: 1; border-right: none; background-color: #0e1320; box-shadow: inset -1px 0 0 rgba(148, 163, 184, .4); }
.issues-table tbody tr:hover > * { background-color: #1b2337; color: #e2ebf3; filter: brightness(1.8); }
.issues-table td.is-num { text-align: right; }

/* Принципы расчётов: пункты аккордеона — стеклянные карточки в стиле первого экрана */
/* Карточки уже секции и по центру, как гармошка на прежнем сайте */
#theory .acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; max-width: 1020px; margin-inline: auto; border-top: 0; }
#theory .acc details { position: relative; padding: 0 clamp(18px, 2.4vw, 30px); border-bottom: 0; border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); transition: box-shadow .3s var(--ease); }
#theory .acc details:hover { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .3), 0 40px 80px -44px rgba(0, 0, 0, .9); }
#theory .acc details[open] { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45), 0 40px 80px -44px rgba(0, 0, 0, .9); }
#theory .acc details::before { content: ""; position: absolute; left: -1px; top: -1px; width: 16px; height: 16px; border: 0 solid var(--gold-2); border-width: 2px 0 0 2px; border-top-left-radius: 14px; opacity: 0; transform: translate(-9px, -9px); transition: opacity .3s var(--ease), transform .5s var(--spring); pointer-events: none; }
#theory .acc details[open]::before { opacity: 1; transform: none; }
#theory .acc summary { padding: 20px 0; }
#theory .acc summary .n { color: var(--gold-2); font-weight: 700; }
/* Отступы текста слева и справа равны: формулы стоят по центру карточки */
#theory .acc-body { max-width: none; padding-inline: 68px; }
/* Блок из двух колонок в тексте настроек главной («Расширенный анализ»): разметка с inline display:flex,
   поэтому сетка и отступы с !important. Колонки — карточки одной высоты, отделены от списка ниже. */
#theory .acc-body > div[style*="display: flex"] { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px !important; align-items: stretch !important; margin-bottom: 1.6em; }
#theory .acc-body > div[style*="display: flex"] > div { padding: 20px 22px 22px; border-radius: 12px; background: rgba(3, 8, 22, .45); box-shadow: inset 0 0 0 1px var(--line-2); }
#theory .acc-body > div[style*="display: flex"] h3 { margin-top: 0; font-size: 1.125rem; line-height: 1.3; color: var(--ink); }
#theory .acc-body > div[style*="display: flex"] > div > * + * { margin-top: .7em; }
@media (max-width: 720px) {
	#theory .acc-body { padding-inline: 0; }
	#theory .acc-body > div[style*="display: flex"] { grid-template-columns: minmax(0, 1fr); }
}

/* Подвал: бренд слева, блок «Документы» справа, внизу — полоса, из которой поднимаются значки валют */
.site-footer { position: relative; padding: 2.5rem 1rem 0; border-top: 1px solid var(--line); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1.5rem 2rem; width: min(100% - 2 * var(--gutter), 1240px); margin: 0 auto; color: var(--mute); font-size: 1rem; line-height: 1.45; }
.footer-left { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; min-width: 0; }
.footer-brand { color: var(--ink); font-family: var(--serif); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; transition: color .2s var(--ease); }
.footer-brand:hover { color: var(--gold-2); }
.footer-docs { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.footer-docs-title { display: flex; align-items: center; gap: .5rem; margin: 0; color: var(--mute); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.footer-docs-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.footer-docs-list a { display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: .9rem; line-height: 1.3; transition: box-shadow .25s var(--ease), color .25s var(--ease), background-color .25s var(--ease); }
.footer-doc-icon { flex: none; color: var(--gold-2); opacity: .75; transition: opacity .25s var(--ease); }
.footer-docs-list a:hover { color: var(--ink); background: rgba(239, 185, 79, .06); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45); }
.footer-docs-list a:hover .footer-doc-icon { opacity: 1; }
.age-badge { display: inline-flex; align-items: center; padding: .12rem .45rem; border: 1px solid var(--line-2); border-radius: .25rem; font-size: .75rem; line-height: 1rem; white-space: nowrap; }

/* Полоса внизу сайта: значки валют выплывают из нижней кромки, поднимаются на ~40 px и растворяются */
.footer-fx { position: relative; height: 124px; margin-top: .5rem; overflow: hidden; pointer-events: none; }
.footer-fx span { position: absolute; bottom: -32px; left: var(--x); color: var(--gold-2); font-family: var(--serif); font-size: 26px; line-height: 1; opacity: 0; animation: footer-coin var(--dur) var(--ease) var(--delay) infinite; will-change: transform, opacity; }
.footer-fx span:nth-child(3n) { color: var(--blue-2, #5aa7ff); font-size: 22px; }
.footer-fx span:nth-child(3n + 1) { font-size: 30px; }
@keyframes footer-coin {
	0% { opacity: 0; transform: translateY(0) rotate(-8deg); }
	12% { opacity: .55; }
	55% { opacity: 0; transform: translateY(-112px) rotate(8deg); }
	100% { opacity: 0; transform: translateY(-112px) rotate(8deg); }
}
@media (prefers-reduced-motion: reduce) {
	.footer-fx span { animation: none; }
}
@media (max-width: 768px) {
	.footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
	.footer-left { justify-content: center; }
	.footer-docs { justify-content: center; }
	.footer-docs-list { justify-content: center; }
}
@media (max-width: 480px) {
	.site-footer { padding: 2rem .5rem 0; }
	.footer-docs-list a { font-size: .8rem; padding: .35rem .6rem; }
	.footer-fx { height: 100px; }
}

@media (max-width: 1180px) {
	.nav a { padding-inline: 8px; font-size: .86rem; }
	.nav a::after { left: 8px; right: 8px; }
	.brand-sub { display: none; }
}
@media (max-width: 1040px) {
	.nav, .header-actions .hide-m { display: none; }
	.burger { display: block; }
	.header-actions { margin-left: auto; }
	.sheet { display: block; position: fixed; left: 0; right: 0; top: var(--header); bottom: 0; z-index: 49; padding: 20px var(--gutter) 32px; background: rgba(5, 11, 29, .985); overflow: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
	.sheet.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .35s var(--ease); }
	.sheet nav { display: grid; }
	.sheet nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font: 450 1.5rem/1.2 var(--serif); color: var(--ink); }
	.sheet nav a[aria-current="page"] { color: var(--gold-2); }
	.sheet-actions { display: grid; gap: 10px; margin-top: 28px; }
	.calc, .fan, .premium, .feature-post { grid-template-columns: minmax(0, 1fr); }
	.fan-chart { border-right: 0; border-bottom: 1px solid var(--line); }
	.heat { border-left: 0; border-top: 1px solid var(--line); }
	.feature-post .cover { border-right: 0; border-bottom: 1px solid var(--line); min-height: 240px; }
	.versions, .contact, .term-layout, .cab-top { grid-template-columns: minmax(0, 1fr); }
	.versions-copy { position: static; }
	.flows { position: relative; top: auto; }
	.posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.post-layout { grid-template-columns: minmax(0, 1fr); }
	.related { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.head { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
	:root { --header: 64px; }
	.brand img { width: 34px; height: 34px; }
	.form-row, .plans, .posts, .cab-grid, .req, .post-nav, .related { grid-template-columns: minmax(0, 1fr); }
	.post-nav a:last-child { text-align: left; }
	.cta-row { grid-template-columns: minmax(0, 1fr); }
	.acc summary { grid-template-columns: 34px 1fr 20px; gap: 10px; }
	.acc-body { padding-left: 0; }
	.premium-facts { gap: 22px; }
	.heat-grid { grid-template-columns: 48px repeat(11, minmax(0, 1fr)); gap: 2px; font-size: .66rem; }
	.matrix td:nth-child(n + 2), .matrix th:nth-child(n + 2) { width: 64px; }
	.matrix .code { display: block; }
	.modal-box { padding: 28px 22px; }
	.cookie { left: 12px; bottom: 12px; width: calc(100% - 24px); }
	.req-rows > div { flex-direction: column; align-items: stretch; gap: 4px; }
	.req-rows dd { justify-content: space-between; text-align: left; }
	.feature-post .cover { min-height: 200px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0s !important; }
	.js [data-load], .js .flow-bar { opacity: 1; transform: none; }
	.tape-run { animation: none; }
	.js .meter i { transform: scaleX(var(--v)); }
}

/* Полоса прототипа: переключатель «Ограниченный / Полный доступ» */
.who { display: inline-flex; align-items: center; gap: 10px; font-size: .875rem; color: var(--ink-2); }
.who i { display: grid; place-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 .8rem/1 var(--sans); font-style: normal; color: var(--gold-2); }

/* Полная таблица */
.ptabs { display: flex; flex-wrap: nowrap; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 3px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line-2); max-width: 100%; }
.ptabs button { flex: none; }

/* Закрыто без подписки */
.locked-copy { padding: clamp(28px, 3.4vw, 48px); display: grid; gap: 16px; align-content: center; justify-items: start; }
.locked-copy svg { width: 22px; height: 22px; color: var(--gold); }
.locked-copy h2 { font-size: clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem); }
.sub-state { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; width: fit-content; max-width: 100%; margin: -8px auto 36px; padding: 10px 20px; border-radius: 22px; background: rgba(63, 214, 138, .07); box-shadow: inset 0 0 0 1px rgba(63, 214, 138, .3); font-size: .9375rem; color: var(--ink-2); text-align: center; }
.sub-state b { color: var(--green); font-weight: 600; }
.sub-state b::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 9px; border-radius: 50%; background: var(--green); vertical-align: middle; }

/* Обложки статей — изображения */
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
a:hover > .cover img, a:hover .cover img { transform: scale(1.025); }
.post-card:hover .cover img, .feature-post:hover .cover img { transform: scale(1.06); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 9, 24, 0) 55%, rgba(4, 9, 24, .5)); pointer-events: none; }
/* Обложка в шапке статьи: стеклянная рамка и золотые скобы по диагонали (как у табло) */
.post-cover { position: relative; isolation: isolate; aspect-ratio: 21 / 9; margin-top: clamp(28px, 4vw, 48px); border-radius: 14px; overflow: hidden; box-shadow: 0 40px 80px -44px rgba(0, 0, 0, .9); }
.post-cover img { width: 100%; height: 100%; object-fit: cover; }
.post-cover::before, .post-cover::after { content: ""; position: absolute; pointer-events: none; }
.post-cover::before { inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); background: linear-gradient(180deg, rgba(4, 9, 24, 0) 60%, rgba(4, 9, 24, .5)); }
.post-cover::after { left: 0; top: 0; width: 16px; height: 16px; border: solid var(--gold-2); border-width: 2px 0 0 2px; border-top-left-radius: 14px; }
@media (min-width: 1041px) { .post-cover { aspect-ratio: 16 / 10; } }

/* Страницы второго уровня: фон как у первого экрана главной — свечение слева сверху, сетка и линейные волны */
.page-hero { overflow: hidden; background: radial-gradient(90% 80% at 10% 0%, rgba(38, 78, 180, .16), rgba(38, 78, 180, 0) 70%), linear-gradient(180deg, #08122e 0%, var(--bg) 100%); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(150, 175, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(150, 175, 255, .05) 1px, transparent 1px) 0 0 / 56px 56px; -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .3) 70%, transparent 100%); pointer-events: none; }
.page-hero .sec-waves { -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0%, #000 30%, #000 70%, transparent 100%); }

@media (max-width: 1040px) {
	.merits { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 900px) {
	.hero-top { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
	.shock { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head head" "num spark" "money spark" "who parts"; column-gap: 28px; }
	.shock .fx-head { grid-area: head; }
	.shock .fx-num { grid-area: num; }
	.shock-money { grid-area: money; }
	.shock-who { grid-area: who; }
	.shock-spark { grid-area: spark; align-self: start; padding-top: 0; border-top: 0; }
	.shock-parts { grid-area: parts; }
	.stress { height: clamp(200px, 28vh, 300px); }
}
@media (max-width: 720px) {
	:root { --bar: 48px; }
	.hero-top { gap: 14px; padding-top: 14px; }
	.hero .display { font-size: clamp(2.3rem, 10.5vw, 3rem); }
	.hero-copy .lead { font-size: 1rem; line-height: 1.5; }
	.hero-actions { margin-top: 18px; gap: 8px; }
	.hero-actions { flex-wrap: nowrap; }
	.hero-actions .btn { flex: 1 1 0; height: 46px; padding: 0 10px; font-size: .8125rem; }
	.hero-actions .btn svg { display: none; }
	.shock { grid-template-columns: minmax(0, 1fr); grid-template-areas: none; gap: 10px; padding: 16px 18px; }
	.shock > *, .shock .fx-head, .shock .fx-num { grid-area: auto; }
	.amount .input { height: 64px; font-size: 1.8rem; }
	.chips { flex-wrap: nowrap; }
	.chips button { padding: 0 11px; }
	.ticks-cap span { white-space: nowrap; }
	.ticks-cap span:nth-child(2) { display: none; }
	.calc-parts { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.calc-parts > div:first-child { grid-column: 1 / -1; }
	.shock-num { font-size: 3.6rem; }
	.shock-spark { padding-top: 10px; border-top: 1px solid var(--line); }
	.shock-parts { gap: 8px; }
	.shock-parts dd { font-size: .9375rem; }
	.stress-wrap { margin-top: 20px; }
	.hero-waves { opacity: .75; }
	.stress { height: 210px; }
	.stress-title span, .stress-unit, .stress-note { display: none; }
	.stress-ctl { width: 100%; justify-content: space-between; }
	.shifts button { width: 40px; }
	.merits { grid-template-columns: minmax(0, 1fr); }
}
@media (max-height: 960px) and (min-width: 901px) { .stress-note { display: none; } }
@media (max-width: 1320px) and (min-width: 721px) { .stress-title span { display: none; } }
@media (max-height: 820px) and (min-width: 901px) { .shock-spark { display: none; } }
.sub-card .state.off i { background: var(--mute); }
.sub-card .state.off i::after { display: none; }
.status.off { color: var(--mute); }

/* Кабинет, реквизиты, 404: адаптив */
@media (max-width: 900px) {
	.nf-grid { grid-template-columns: minmax(0, 1fr); }
	.nf-board { max-width: 520px; }
}
@media (max-width: 720px) {
	.cab-seg { display: flex; width: 100%; }
	.js .cab-seg button { flex: 1 1 auto; justify-content: center; padding: 0 8px; }
	.sub-card { padding: 20px 20px 22px; }
	.nf .hero-actions { flex-wrap: wrap; }
	.nf .hero-actions .btn { flex: 1 1 auto; }
	.nf .hero-actions .btn-primary { flex-basis: 100%; }
	.nf-board { padding: 18px 18px 16px; }
}
@media (max-width: 420px) {
	.js .cab-seg button { font-size: .8125rem; padding: 0 4px; }
}
@media (prefers-reduced-motion: reduce) {
	.sub-card .state i::after, .status.wait::before { animation: none; }
}

/* ---------- Движок: правила для родительских модулей (cookie-consent.js, modals.js, auth.js, to-top.js) ---------- */
.cookie:not([hidden]) { opacity: 1; transform: none; pointer-events: auto; }
.cookie-actions { flex-wrap: wrap; }
body.ofz-modal-open { overflow: hidden; }
[role="dialog"]:focus, [role="alertdialog"]:focus { outline: none; }
.ofz-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.pick button { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 16px; width: 100%; padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); text-align: left; color: var(--ink-2); transition: box-shadow .2s var(--ease); }
.pick button:hover, .pick button:focus-visible { box-shadow: inset 0 0 0 1px var(--gold); }
.form-error { color: #fca5a5; }
.input.invalid { border-color: #f87171; }
.modal-box > .btn-block { margin-top: 24px; }
.btn-to-top { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: grid; place-content: center; width: 44px; height: 44px; border-radius: 50%; background: #0e1a3a; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-to-top svg { width: 20px; height: 20px; }

/* ---------- Блог на движке: пагинация родителя (ofz_pagination), карточки, галерея и лайтбокс (lightbox.js) ---------- */
.blog-pagination { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9rem; }
.pagination-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); white-space: nowrap; transition: box-shadow .25s var(--ease), color .25s var(--ease); }
.pagination-btn:first-child { grid-column: 1; grid-row: 1; justify-self: start; }
.pagination-btn:last-child { grid-column: 3; grid-row: 1; justify-self: end; }
.pagination-btn:hover:not(.disabled) { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .5); color: var(--gold-2); }
.pagination-btn.disabled { opacity: .55; pointer-events: none; }
.pagination-numbers { grid-column: 2; grid-row: 1; display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: rgba(3, 8, 22, .6); box-shadow: inset 0 0 0 1px var(--line-2); }
.pagination-number, .pagination-ellipsis { display: grid; place-content: center; min-width: 38px; height: 34px; padding: 0 6px; border-radius: 5px; color: var(--ink-2); font-variant-numeric: tabular-nums; transition: background-color .2s var(--ease), color .2s var(--ease); }
.pagination-number.active { color: var(--gold-2); font-weight: 600; background: rgba(239, 185, 79, .14); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45); }
a.pagination-number:hover { color: var(--ink); background: var(--surface-2); }
.pagination-info { grid-column: 1 / -1; grid-row: 2; color: var(--mute); text-align: center; }
@media (max-width: 640px) {
	.blog-pagination { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.pagination-numbers { grid-column: 1 / -1; justify-self: center; }
	.pagination-btn:first-child { grid-row: 2; }
	.pagination-btn:last-child { grid-column: 2; grid-row: 2; }
	.pagination-info { grid-row: 3; }
}
.posts > :nth-child(3n+2) { --d: .06; }
.posts > :nth-child(3n) { --d: .12; }
.feature-post:not(:has(.cover)) { grid-template-columns: 1fr; }
.post-layout:has(.post-toc[hidden]) { grid-template-columns: 1fr; }
.post-gallery { margin: 48px 0; }
.gallery-title { margin-bottom: 18px; font-size: 1.25rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.gallery-item { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.lightbox { position: fixed; inset: 0; z-index: 9999; display: none; flex-direction: column; align-items: center; justify-content: center; overflow: auto; background: rgba(0, 0, 0, .92); backdrop-filter: blur(8px); }
.lightbox.is-open { display: flex; }
.lightbox-content { max-width: 90%; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 40px rgba(0, 0, 0, .6); }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: none; color: #f1f1f1; font-weight: 300; line-height: 1; cursor: pointer; transition: color .3s, transform .3s; }
.lightbox-close:hover, .lightbox-nav:hover { color: var(--gold-2); }
.lightbox-close { top: 20px; right: 35px; font-size: 48px; }
.lightbox-nav { top: 50%; padding: 1rem; font-size: 40px; transform: translateY(-50%); }
.lightbox-nav--prev { left: 1rem; }
.lightbox-nav--next { right: 1rem; }
.lightbox-caption { max-width: 80%; margin-top: 1rem; color: #e2e8f0; font-size: 1.05rem; text-align: center; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.page-links { margin: 32px 0; }

/* ---------- Таблица расчётов на движке: панель в стиле дашбордов, вкладки групп, заголовок по центру ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
#table .table-panel { padding: clamp(16px, 2vw, 24px); border-radius: 14px; background: linear-gradient(155deg, rgba(18, 31, 72, .82), rgba(4, 9, 24, .9) 62%); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 80px -44px rgba(0, 0, 0, .9); }
#table .table-panel:fullscreen { border-radius: 0; }
.table-panel--premium > .table-actions { justify-content: center; }
.ptabs { width: fit-content; margin-inline: auto; background: rgba(3, 8, 22, .6); }
.ptabs button { height: 36px; padding: 0 14px; font-weight: 600; color: var(--ink-2); }
.ptabs button::before { display: none; }
.ptabs [aria-pressed="true"] { background: var(--gold); color: var(--bg); }
.table-title-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px; }
.table-title-row .table-group-title { grid-column: 2; text-align: center; }
.table-title-row [data-ofz-fullscreen] { grid-column: 3; justify-self: end; }
a.table-action-button { text-decoration: none; }
.table-sample-note { margin-bottom: 16px; color: var(--mute); font-size: .875rem; }
.table-error { padding: 24px; color: var(--mute); text-align: center; }
.panel.premium { grid-template-columns: minmax(0, 1fr); }
.premium-badge { display: inline-flex; align-items: center; height: 26px; margin-bottom: 14px; padding: 0 10px; border-radius: 13px; background: rgba(239, 185, 79, .14); color: var(--gold-2); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.premium-features { display: grid; gap: 10px; margin: 18px 0 24px; padding: 0; list-style: none; }
.premium-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--ink-2); }
.premium-features li svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--green); }
.head-chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; margin-bottom: 18px; padding: 0 12px; border-radius: 15px; background: rgba(150, 175, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: .8125rem; font-weight: 600; }
.head-chip svg { width: 16px; height: 16px; color: var(--gold-2); }
/* «Выпуски ОФЗ-ПД»: шрифт как у основной таблицы, таблица на всю ширину карточки.
   Пункт не растягивается по таблице: если она шире, прокручивается внутри рамки. */
.issues-table table { font-size: 18px; }
#theory .acc-body--wide { padding-inline: 0; }
/* Формулы KaTeX: по центру, номер (\tag) справа силами KaTeX */
#theory .formula { text-align: center; }
.formula .katex-display { margin: 0; }
.formula .katex .tag { float: none; font-size: inherit; color: var(--mute); }

/* ---------- Кабинет, глоссарий и реквизиты на движке ---------- */
.cab-panel { display: grid; gap: 20px; }
.cab-notice { padding: 14px 18px; border-radius: 10px; background: rgba(150, 175, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); font-size: .9375rem; }
.cab-notice.is-success { background: rgba(63, 214, 138, .1); box-shadow: inset 0 0 0 1px rgba(63, 214, 138, .35); color: #9fe8c1; }
.cab-notice.is-error { background: rgba(255, 95, 87, .1); box-shadow: inset 0 0 0 1px rgba(255, 95, 87, .35); color: #ffb3ae; }
.cab-notice.is-info { background: rgba(239, 185, 79, .1); box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .35); color: var(--gold-2); }
.cabinet-tab__badge { display: inline-grid; place-content: center; min-width: 20px; height: 20px; margin-left: 8px; padding: 0 6px; border-radius: 10px; background: var(--gold); color: var(--bg); font-size: .75rem; font-weight: 700; }
.ticket-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--gold); vertical-align: middle; }
.plan.is-selected { box-shadow: inset 0 0 0 2px var(--gold); }
.term-body { margin-top: 18px; }
.term-body > * + * { margin-top: 14px; }
.term-body > p:first-child { font-size: 1.125rem; color: var(--ink); }

/* ---------- Дашборды на движке: блокировка без подписки (статичное превью), находки ---------- */
.dash-stage--locked { position: relative; height: clamp(560px, 62vw, 760px); overflow: hidden; }
.dash-preview { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; filter: blur(4px) saturate(.75); opacity: .6; pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(180deg, #000 35%, transparent 96%); mask-image: linear-gradient(180deg, #000 35%, transparent 96%); }
.dash-findings { max-width: 62rem; margin-top: clamp(28px, 3vw, 40px); }
.dash-findings > :first-child { margin-top: 0; }

/* ---------- Главная на движке: заголовок из поля, статистика первого экрана, карточки преимуществ, формы ---------- */
.hero .display span { display: block; font-style: italic; font-weight: 400; color: var(--ink-2); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 32px; margin: 28px 0 10px; }
.hero-stats div { display: grid; gap: 2px; }
.hero-stats b { font: 450 1.7rem/1.1 var(--serif); color: var(--ink); }
.hero-stats span { font-size: .8125rem; color: var(--mute); }
.merit-icon { display: grid; place-content: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 10px; background: rgba(3, 8, 22, .5); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--gold-2); }
.merit-icon svg { width: 22px; height: 22px; }
.merit-head .fx-cap { display: block; margin-bottom: 6px; }
.validation-message { display: block; margin-top: 6px; color: #fca5a5; font-size: .8125rem; }
.validation-message:empty { display: none; }
.contact-error { color: #fca5a5; }
.contact-success { color: #9fe8c1; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.plan form { display: grid; }

/* Карточки блога: обложка вложена в карточку со своей обводкой, показана целиком и растворяется в тело карточки */
.post-card .cover, .feature-post .cover { margin: 10px; border: 0; border-radius: 10px; background: transparent; }
.post-card .cover::before, .feature-post .cover::before { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line-2); pointer-events: none; transition: box-shadow .3s var(--ease); }
.post-card:hover .cover::before, .feature-post:hover .cover::before { box-shadow: inset 0 0 0 1px rgba(239, 185, 79, .45); }
.post-card .cover { height: auto; -webkit-mask-image: linear-gradient(180deg, #000 56%, transparent); mask-image: linear-gradient(180deg, #000 56%, transparent); }
.post-card .cover img { position: static; height: auto; object-fit: initial; }
.post-card .cover::after { inset: auto 0 0 0; height: 52%; background: none; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(180deg, transparent, #000 80%); mask-image: linear-gradient(180deg, transparent, #000 80%); }
.post-card .post-copy { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; margin-top: -30px; padding: 0 24px 26px; }
.post-card .post-copy .read { margin-top: auto; padding-top: 4px; }
.feature-post .cover { margin: 10px 0 10px 10px; -webkit-mask-image: linear-gradient(90deg, #000 62%, transparent); mask-image: linear-gradient(90deg, #000 62%, transparent); }
.feature-post .cover::after { background: none; -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px); -webkit-mask-image: linear-gradient(90deg, transparent 55%, #000); mask-image: linear-gradient(90deg, transparent 55%, #000); }
@media (max-width: 1040px) {
	.feature-post .cover { margin: 10px 10px 0; -webkit-mask-image: linear-gradient(180deg, #000 56%, transparent); mask-image: linear-gradient(180deg, #000 56%, transparent); }
	.feature-post .cover::after { -webkit-mask-image: linear-gradient(180deg, transparent 50%, #000); mask-image: linear-gradient(180deg, transparent 50%, #000); }
	.feature-post .post-copy { margin-top: -30px; position: relative; z-index: 1; }
}

/* Волны подвала: заметны у нижней кромки, где поднимаются значки валют, и не мешают плашкам документов */
.site-footer .sec-waves { opacity: .7; -webkit-mask-image: linear-gradient(180deg, transparent 30%, #000 78%, #000); mask-image: linear-gradient(180deg, transparent 30%, #000 78%, #000); }
.site-footer > :not(.sec-waves) { position: relative; }
