/* Hallmark · shape: Workbench · genre: modern-minimal · theme: custom (by request: fintech 2027, bright like exchanges and banking apps) · hero: Stage · job: look up a figure, then use a calculator · signature: hero chart switching USD, EUR, CNY, gold, BTC and IMOEX over 1M to 5Y with hover readout · fonts: Onest for heads, text and figures, as on nimb.digital (owner's request) · data: live CBR, MOEX, CoinGecko, collected on the server several times a day */
/* critique: P4 a money site that answers with the figure and lets you play with it · H4 · E3 · S4 the chart and heat map carry svoikapital data only · R3 colour by section, no photos · V5 dark stage, mint signal, bright tiles */
/* Hallmark · dismissed 58 · the 450-word page total and words per screen: each search page answers its query in text with tables and FAQ, as the owner's SEO rule for svoikapital pages requires */
/* Hallmark · waive 72 · details.qa answers are closed by default, the measured overflow is the hidden answer text, open answers sit inside the padded box · svoikapital FAQ keeps answers folded so the page stays scannable */
/* Hallmark · waive 49b · footer and chip links at 320 wrap to two lines inside their own column, never past the screen · svoikapital link names are the full search phrases a reader typed */
/* Hallmark · waive 59 · the 40px gap is the dark page band overlapping the first white card by design, the rest keep 96px · svoikapital inner pages open with the figure card riding over the band */
/* Hallmark · waive 77 · FAQ and related-links blocks close every page with three to six rows · the owner's SEO rule for svoikapital asks for FAQ markup and links to neighbour pages on each page */
/* Hallmark · waive 78 · section heads at 39px under a 51 to 58px page head keep a reference rhythm, data cards lead each section · svoikapital is a figures reference where the chart, not the head, carries the section */
/* Hallmark · waive 79 · inner page heads are short by design and the white figure card rides up over the dark band, filling the first screen below the head · a svoikapital page answers with its figure first */
/* Hallmark · waive 39b · OFZ filter chips stand 40px inside a dense table toolbar, with 44px hit targets through padding · the svoikapital bond list is a working tool, app control sizes apply */
@import url("./fonts/fonts.css");

:root {
  color-scheme: light;
  --bg: oklch(97.4% 0.006 255);
  --surface: oklch(99.4% 0.004 255);
  --surface-2: oklch(95.6% 0.009 255);
  --ink: oklch(21% 0.035 265);
  --ink-2: oklch(36% 0.03 265);
  --muted: oklch(52% 0.025 265);
  --line: oklch(91.5% 0.012 255);

  --night: oklch(17.5% 0.04 268);
  --night-2: oklch(22% 0.045 268);
  --night-3: oklch(27% 0.05 268);
  --night-line: oklch(32% 0.05 268);
  --on-night: oklch(97% 0.006 255);
  --on-night-muted: oklch(74% 0.03 262);

  --brand: oklch(84% 0.19 158);
  --brand-2: oklch(89% 0.17 158);
  --brand-strong: oklch(46% 0.13 158);
  --brand-ink: oklch(23% 0.06 165);
  --sun: oklch(86% 0.16 90);
  --sky: oklch(68% 0.15 245);
  --violet: oklch(60% 0.19 292);
  --coral: oklch(68% 0.18 30);

  --up: oklch(60% 0.16 155);
  --up-bg: oklch(94.5% 0.05 155);
  --up-ink: oklch(42% 0.12 155);
  --up-night: oklch(82% 0.18 155);
  --down: oklch(62% 0.2 25);
  --down-bg: oklch(94.5% 0.04 25);
  --down-ink: oklch(48% 0.17 25);
  --down-night: oklch(74% 0.17 25);
  --focus: oklch(55% 0.19 255);
  --field-line: oklch(62% 0.025 265);
  --shadow-night: 0 30px 60px oklch(10% 0.03 268 / 0.45);

  --font-display: "Onest", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Onest", ui-sans-serif, system-ui, sans-serif;

  --r-xl: 28px; --r-lg: 22px; --r-md: 14px; --r-sm: 10px; --r-pill: 999px;
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px; --s-24: 96px;
  --wrap: 1320px; --gutter: 40px; --gap: 20px; --sec: 96px; --hdr: 72px;
  --shadow: 0 1px 2px oklch(21% 0.035 265 / 0.05), 0 8px 24px oklch(21% 0.035 265 / 0.06);
  --shadow-up: 0 2px 4px oklch(21% 0.035 265 / 0.06), 0 16px 36px oklch(21% 0.035 265 / 0.1);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --t: 180ms;
}
@media (max-width: 60rem) { :root { --gutter: 24px; --sec: 72px; --gap: 16px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --sec: 56px; --gap: 12px; --hdr: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--hdr) + var(--s-4)); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "tnum" 1; }
h1, h2, h3 { margin: 0; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; line-height: 1.3; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
button, input { font: inherit; color: inherit; }
svg { display: block; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.lead { font-size: clamp(1.0625rem, 0.4vw + 0.95rem, 1.25rem); line-height: 1.5; max-width: 56ch; }
.note { margin-top: var(--s-3); font-size: 0.875rem; color: var(--muted); max-width: 70ch; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in oklab, var(--surface) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: var(--s-6); min-height: var(--hdr); }
.logo { display: inline-flex; align-items: center; gap: var(--s-3); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; white-space: nowrap; }
.logo-mark { width: 34px; height: 34px; flex: none; }
.lm-bg { fill: var(--night); }
.lm-bar { fill: var(--brand); }
.logo--night .lm-bg { fill: var(--brand); }
.logo--night .lm-bar { fill: var(--night); }
.nav { flex: 1; min-width: 0; }
.nav > ul { display: flex; align-items: center; gap: var(--s-1); }
.nav a, .more summary { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-3); border-radius: var(--r-sm); font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.nav a:hover, .more summary:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { color: var(--ink); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--brand-strong); }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.more, .menu { position: relative; }
.more summary::after, .menu summary::after { content: ""; width: 6px; height: 6px; margin-left: var(--s-2); border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--t) var(--ease); }
.more[open] summary::after, .menu[open] summary::after { transform: translateY(2px) rotate(225deg); }
.drop { position: absolute; top: calc(100% + var(--s-2)); left: 0; min-width: 240px; padding: var(--s-2); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-up); z-index: 60; }
.drop a { display: block; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); text-decoration: none; font-weight: 500; }
.drop a:hover { background: var(--surface-2); }
.menu { display: none; }
.menu summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 600; background: var(--surface); }
.menu .drop { left: auto; right: 0; }
@media (max-width: 40rem) { .hdr-in { position: relative; } .menu { position: static; } .menu .drop { top: 100%; left: var(--gutter); right: var(--gutter); min-width: 0; } }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); transition: border-color var(--t) var(--ease), color var(--t) var(--ease); }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@media (max-width: 72rem) { .nav { display: none; } .menu { display: block; margin-left: auto; } .icon-btn { order: 2; } }
@media (max-width: 40rem) { .hdr .hdr-cta, .hdr .icon-btn { display: none; } .logo { font-size: 0.9375rem; } }

/* ---------- кнопки, пилюли, чипы ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--s-6); border-radius: var(--r-md); border: 1px solid transparent; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease), color var(--t) var(--ease); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn--brand { background: var(--brand); color: var(--brand-ink); }
.btn--brand:hover { background: var(--brand-2); }
.btn--ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--brand-ink); color: var(--brand); border-color: var(--brand-ink); }
.hdr-cta { min-height: 44px; padding: 0 var(--s-5); }

.pill { display: inline-flex; align-items: center; gap: var(--s-1); padding: 2px var(--s-2); border-radius: var(--r-pill); font-size: 0.875rem; font-weight: 600; line-height: 1.5; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill.up { background: var(--up-bg); color: var(--up-ink); }
.pill.down { background: var(--down-bg); color: var(--down-ink); }
.pill.flat { background: var(--surface-2); color: var(--ink-2); }
.night .pill.up, .card--night .pill.up { background: color-mix(in oklab, var(--up-night) 16%, transparent); color: var(--up-night); }
.night .pill.down, .card--night .pill.down { background: color-mix(in oklab, var(--down-night) 16%, transparent); color: var(--down-night); }
.night .pill.flat { background: var(--night-3); color: var(--on-night-muted); }
.tag { display: inline-block; padding: 1px var(--s-2); border: 1px dashed var(--muted); border-radius: var(--r-pill); font-size: 0.875rem; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.chip { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-pill); border: 1px solid var(--line); background: var(--surface); font-size: 0.9375rem; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease); }
.chip:hover { border-color: var(--brand-strong); color: var(--brand-strong); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.chip--night { background: color-mix(in oklab, var(--night-3) 70%, transparent); border-color: var(--night-line); color: var(--on-night); }
.chip--night:hover { border-color: var(--brand); color: var(--brand); }
.chip--soft { background: var(--surface-2); border-color: transparent; }

/* ---------- тёмные полосы ---------- */
.night { position: relative; background:
  radial-gradient(55% 75% at 88% 0%, color-mix(in oklab, var(--brand) 20%, transparent), transparent 70%),
  radial-gradient(45% 70% at 0% 100%, color-mix(in oklab, var(--sky) 22%, transparent), transparent 70%),
  var(--night); color: var(--on-night); }
.night a:focus-visible, .night button:focus-visible { outline-color: var(--brand); }

/* ---------- первый экран ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-12); align-items: center; padding-block: var(--s-12) var(--s-10); }
.hero h1 { font-size: clamp(2.375rem, 2.9vw + 1rem, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 11ch; }
.hero .lead { margin-top: var(--s-5); color: var(--on-night-muted); max-width: 30ch; }
.search { position: relative; display: flex; align-items: center; gap: var(--s-2); margin-top: var(--s-8); padding: var(--s-2) var(--s-2) var(--s-2) var(--s-12); background: var(--surface); border-radius: var(--r-lg); color: var(--ink); max-width: 520px; box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 18%, transparent); }
.search-ico { position: absolute; left: var(--s-4); color: var(--muted); }
.search input { flex: 1; min-width: 0; height: 48px; padding: 0 var(--s-2); border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--surface); font-size: 1rem; }
.search input:focus-visible, .search .btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input::placeholder { color: var(--muted); }
.search:focus-within { box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 45%, transparent); }
.chips--hero { margin-top: var(--s-5); max-width: 560px; }
@media (max-width: 64rem) { .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); padding-block: var(--s-10) var(--s-8); } .hero h1 { max-width: 14ch; } }
@media (max-width: 40rem) { .search { padding-left: var(--s-10); } .search .btn { padding: 0 var(--s-4); } }

/* ---------- карточка графика ---------- */
.chart-card { --c: var(--up); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-5) var(--s-6) var(--s-4); box-shadow: var(--shadow); min-width: 0; }
.chart-card.is-down { --c: var(--down); }
.chart-card.is-brand { --c: var(--brand-strong); }
.chart-card.is-violet { --c: var(--violet); }
.chart-card--dark { --c: var(--up-night); background: color-mix(in oklab, var(--night-2) 88%, transparent); border-color: var(--night-line); box-shadow: var(--shadow-night); }
.chart-card--dark.is-down { --c: var(--down-night); }
.cc-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-4); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border-radius: var(--r-md); background: var(--surface-2); }
.seg button { min-height: 36px; padding: 0 var(--s-3); border: 0; border-radius: var(--r-sm); background: transparent; font-size: 0.875rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.chart-card--dark .seg { background: var(--night); }
.chart-card--dark .seg button { color: var(--on-night-muted); }
.chart-card--dark .seg button:hover { color: var(--on-night); }
.chart-card--dark .seg button[aria-selected="true"] { background: var(--night-3); color: var(--brand); box-shadow: none; }
.cc-now { margin-top: var(--s-4); }
.cc-name { font-family: var(--font-body); font-weight: 500; font-size: 0.9375rem; letter-spacing: 0; color: var(--muted); }
.chart-card--dark .cc-name { color: var(--on-night-muted); }
.cc-val { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-top: 2px; }
.cc-big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.75rem, 1.6vw + 1rem, 2.5rem); letter-spacing: -0.02em; line-height: 1.15; }
.cc-plot { position: relative; height: 300px; margin-top: var(--s-2); }
.cc-plot--static { height: auto; }
.cc-plot--static .plot { width: 100%; height: auto; }
.plot { overflow: visible; touch-action: pan-y; }
.plot .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 2 4; }
.chart-card--dark .plot .grid { stroke: var(--night-line); }
.plot .ax { font-family: var(--font-body); font-size: 12px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-card--dark .plot .ax { fill: var(--on-night-muted); }
.plot .line { fill: none; stroke: var(--c); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.plot .g-top { stop-color: var(--c); stop-opacity: 0.32; }
.plot .g-bot { stop-color: var(--c); stop-opacity: 0; }
.plot .dot { fill: var(--c); stroke: var(--surface); stroke-width: 2; }
.chart-card--dark .plot .dot { stroke: var(--night-2); }
.plot .pulse { fill: var(--c); opacity: 0.35; transform-box: fill-box; transform-origin: center; animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: 0.45; } 100% { transform: scale(3.2); opacity: 0; } }
.plot .cross { stroke: var(--muted); stroke-dasharray: 3 3; pointer-events: none; transition: opacity var(--t) var(--ease); }
.plot .hdot { fill: var(--c); stroke: var(--surface); stroke-width: 2; pointer-events: none; transition: opacity var(--t) var(--ease); }
.cc-tip { position: absolute; top: 0; left: 0; width: 128px; padding: var(--s-2) var(--s-3); border-radius: var(--r-sm); background: var(--ink); color: var(--surface); font-size: 0.8125rem; line-height: 1.35; pointer-events: none; display: grid; }
.cc-tip b { font-size: 1rem; font-variant-numeric: tabular-nums; }
.chart-card--dark .cc-tip { background: var(--on-night); color: var(--night); }
.curve-card { --c: var(--violet); margin: 0; }
.curve-card figcaption { margin-top: var(--s-2); font-size: 0.875rem; color: var(--muted); }
@media (max-width: 40rem) { .chart-card { padding: var(--s-4); border-radius: var(--r-lg); } .cc-plot { height: 240px; } }

/* ---------- бегущая строка ---------- */
.ticker { display: flex; overflow: hidden; border-top: 1px solid var(--night-line); background: color-mix(in oklab, var(--night) 70%, transparent); }
.ticker-track { display: flex; flex: none; gap: var(--s-8); padding: var(--s-3) var(--s-4); animation: marquee 70s linear infinite; font-size: 0.9375rem; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker li { display: inline-flex; align-items: center; gap: var(--s-2); white-space: nowrap; }
.tk-k { color: var(--on-night-muted); font-weight: 500; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- секции ---------- */
.sec { margin-top: var(--sec); }
.sec--tight { margin-top: var(--s-16); }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s-2) var(--s-8); margin-bottom: var(--s-6); }
.sec-head h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.625rem); max-width: 22ch; }
.sec-head p { color: var(--muted); max-width: 56ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: var(--s-6); box-shadow: var(--shadow); min-width: 0; }
.card h3, .card-h { font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0; margin-bottom: var(--s-4); line-height: 1.3; }
.card-h--out { margin-bottom: var(--s-3); }
.card--night { background: color-mix(in oklab, var(--night-2) 90%, transparent); border-color: var(--night-line); color: var(--on-night); box-shadow: none; }
.split { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--gap); align-items: stretch; }
.split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.split--3 { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 0.9fr); align-items: start; }
.split--calc { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; }
@media (max-width: 64rem) { .split, .split--even, .split--3, .split--calc { grid-template-columns: minmax(0, 1fr); } }
.more-link { display: inline-block; margin-top: var(--s-4); font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.more-link:hover { text-decoration: underline; }

/* ---------- плитки ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.tiles--col { grid-template-columns: minmax(0, 1fr); }
.tile { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "k k" "v c" "s s"; align-items: center; gap: var(--s-1) var(--s-2); height: 100%; padding: var(--s-5) var(--s-5) var(--s-4); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; box-shadow: var(--shadow); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease); }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: color-mix(in oklab, var(--brand-strong) 40%, var(--line)); }
.tile:active { transform: translateY(-1px); }
.tile-k { grid-area: k; font-size: 0.9375rem; color: var(--muted); font-weight: 500; }
.tile-v { grid-area: v; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 0.8vw + 0.9rem, 1.625rem); letter-spacing: -0.02em; }
.tile-c { grid-area: c; justify-self: end; }
.spark { grid-area: s; width: 100%; height: 40px; margin-top: var(--s-2); color: var(--up); }
.spark.down { color: var(--down); }
.spark.brand { color: var(--brand-strong); }
.spark.warn { color: var(--coral); }
.spark-area { fill: currentColor; opacity: 0.12; }
.spark-line { fill: none; stroke: currentColor; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
td .spark { width: 90px; height: 28px; margin: 0; }
@media (max-width: 64rem) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 64rem) { .tiles--col { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 26rem) { .tile { padding: var(--s-4); } .tile-v { font-size: 1.125rem; } }

/* ---------- ставка ---------- */
.rate-card { background: var(--brand); border-color: transparent; color: var(--brand-ink); display: flex; flex-direction: column; gap: var(--s-3); }
.rate-now { font-family: var(--font-display); font-weight: 700; font-size: clamp(4rem, 5vw + 1rem, 6rem); line-height: 0.95; letter-spacing: -0.05em; }
.rate-sub { font-weight: 500; }
.countdown { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); background: color-mix(in oklab, var(--brand-ink) 10%, transparent); }
.cd-n { font-family: var(--font-display); font-weight: 700; font-size: 2rem; line-height: 1; }
.cd-t { font-weight: 500; line-height: 1.3; }
.rate-card .rate-h { margin: var(--s-2) 0 0; font-size: 0.9375rem; font-weight: 600; }
.meet { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); }
.meet li { padding: var(--s-1) var(--s-3); border-radius: var(--r-pill); background: color-mix(in oklab, var(--brand-ink) 8%, transparent); font-size: 0.875rem; font-weight: 500; }
.meet li.is-next { background: var(--brand-ink); color: var(--brand); }
.rate-card .btn { margin-top: auto; align-self: flex-start; }

/* ---------- задачи ---------- */
.goals { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--s-10); padding: var(--s-12); border-radius: var(--r-xl); background: color-mix(in oklab, var(--brand) 16%, var(--bg)); }
.goals-l h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.625rem); }
.goals-l > p { margin-top: var(--s-4); color: var(--ink-2); max-width: 40ch; }
.goal-tabs { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-6); }
.goal-tab { min-height: 44px; padding: 0 var(--s-5); border-radius: var(--r-pill); border: 1px solid color-mix(in oklab, var(--brand-strong) 30%, transparent); background: var(--surface); font-weight: 500; cursor: pointer; transition: background-color var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease); }
.goal-tab:hover { border-color: var(--brand-strong); }
.goal-tab[aria-selected="true"] { background: var(--brand-ink); border-color: var(--brand-ink); color: var(--brand); }
.goals-r { border: 0; }
.goal-panel + .goal-panel { margin-top: var(--s-8); }
.goal-panel h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.01em; margin-bottom: var(--s-2); }
.goal-panel > p { color: var(--ink-2); max-width: 60ch; }
.goal-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); margin: var(--s-5) 0; }
.goal-figs li { display: grid; gap: var(--s-1); padding: var(--s-4); border-radius: var(--r-md); background: var(--surface-2); }
.gf-k { font-size: 0.875rem; color: var(--muted); line-height: 1.3; }
.gf-v { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--brand-strong); }
.goal-note { margin-top: var(--s-5); font-size: 0.875rem; color: var(--muted); }
@media (max-width: 64rem) { .goals { grid-template-columns: minmax(0, 1fr); padding: var(--s-6); gap: var(--s-6); } }
@media (max-width: 40rem) { .goal-figs { grid-template-columns: minmax(0, 1fr); } .goals { padding: var(--s-4); border-radius: var(--r-lg); } }

/* ---------- рынок ---------- */
.market { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gap); align-items: stretch; }
.heat-card { padding: var(--s-3); }
.heat { display: flex; flex-direction: column; gap: var(--s-2); height: 100%; min-height: 420px; }
.heat-row { display: flex; gap: var(--s-2); flex: 1; }
.heat-cell { --k: 0.5; flex-basis: 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: var(--s-3); border-radius: var(--r-md); text-decoration: none; color: var(--ink); background: color-mix(in oklab, var(--up) calc(var(--k) * 60% + 12%), var(--surface)); transition: filter var(--t) var(--ease), transform var(--t) var(--ease); }
.heat-cell.down { background: color-mix(in oklab, var(--down) calc(var(--k) * 60% + 12%), var(--surface)); }
.heat-cell.flat { background: var(--surface-2); }
.heat-cell.strong { color: var(--surface); background: color-mix(in oklab, var(--up-ink), var(--night) calc(var(--k) * 30%)); }
.heat-cell.down.strong { background: color-mix(in oklab, var(--down-ink), var(--night) calc(var(--k) * 30%)); }
.heat-cell:hover { filter: brightness(1.06) saturate(1.1); transform: scale(0.985); }
.hc-t { font-family: var(--font-display); font-weight: 700; font-size: clamp(0.875rem, 0.6vw + 0.6rem, 1.25rem); letter-spacing: -0.01em; }
.hc-c { font-size: 0.875rem; font-weight: 600; }
@media (max-width: 64rem) { .market { grid-template-columns: minmax(0, 1fr); } .heat { min-height: 320px; } }
@media (max-width: 40rem) { .heat-cell { padding: var(--s-2); } }

/* ---------- таблицы ---------- */
.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
caption { text-align: left; font-weight: 600; padding-bottom: var(--s-3); }
thead th { padding: 0 var(--s-3) var(--s-3); font-size: 0.875rem; font-weight: 500; color: var(--muted); text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
tbody th, tbody td { padding: var(--s-3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 500; }
th:first-child, td:first-child { padding-left: 0; }
th:last-child, td:last-child { padding-right: 0; }
th.num, td.num { text-align: right; }
tbody tr { transition: background-color var(--t) var(--ease); }
tbody tr:hover { background: var(--surface-2); }
.sub { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
tbody a { text-decoration-color: var(--brand-strong); }
@media (max-width: 40rem) { .opt { display: none; } thead th, thead th.num { white-space: normal; vertical-align: bottom; } }

/* ---------- облигации ---------- */
.ofz-list li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "n y" "m s"; gap: 2px var(--s-3); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.ol-s { grid-area: s; justify-self: end; }
.ofz-list li:last-child a { border-bottom: 0; }
.ofz-list a:hover .ol-n { color: var(--violet); }
.ol-n { grid-area: n; font-weight: 600; transition: color var(--t) var(--ease); }
.ol-m { grid-area: m; font-size: 0.875rem; color: var(--muted); }
.ol-y { grid-area: y; justify-self: end; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.bar { display: block; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; width: 100%; border-radius: var(--r-pill); background: var(--violet); transform-origin: left; transform: scaleX(var(--w)); }
.ybar { display: inline-flex; align-items: center; gap: var(--s-3); }
.ybar .bar { width: 80px; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-5); }

/* ---------- калькуляторы плитками ---------- */
.calc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.calc-tile { --tone: var(--brand); display: grid; gap: var(--s-1); height: 100%; padding: var(--s-5); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-decoration: none; box-shadow: var(--shadow); transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease), border-color var(--t) var(--ease), background-color var(--t) var(--ease); }
.calc-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); border-color: var(--tone); background: color-mix(in oklab, var(--tone) 7%, var(--surface)); }
.ct-ico { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--s-3); border-radius: var(--r-md); background: color-mix(in oklab, var(--tone) 24%, var(--surface)); color: color-mix(in oklab, var(--tone) 55%, var(--ink)); font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.ct-t { font-weight: 600; font-size: 1.0625rem; }
.ct-d { color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
@media (max-width: 64rem) { .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- полоса с ботом ---------- */
.band { margin-top: var(--sec); padding-block: var(--s-16); }
.band-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-10); align-items: center; }
.band h2 { font-size: clamp(1.75rem, 1.6vw + 1rem, 2.625rem); margin-bottom: var(--s-6); }
.bot-card { display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-8); border-radius: var(--r-xl); background: color-mix(in oklab, var(--night-2) 90%, transparent); border: 1px solid var(--night-line); }
.bot-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.375rem; }
.bot-card > p { color: var(--on-night-muted); }
.bot-msg { display: grid; gap: var(--s-1); padding: var(--s-3) var(--s-4); border-radius: var(--r-md) var(--r-md) var(--r-md) 4px; background: var(--night-3); }
.bm-t { font-size: 0.8125rem; color: var(--on-night-muted); }
@media (max-width: 64rem) { .band-in { grid-template-columns: minmax(0, 1fr); } }

/* ---------- внутренние страницы ---------- */
.page-band { padding-block: var(--s-6) calc(var(--s-16) + var(--s-10)); }
.page-band + .sec { position: relative; margin-top: calc(var(--s-16) * -1); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-2); font-size: 0.875rem; color: var(--on-night-muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: var(--s-2); opacity: 0.6; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--on-night); text-decoration: underline; }
.page-head { margin-top: var(--s-6); }
.page-head--side { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: var(--s-10); align-items: end; }
.page-head h1 { font-size: clamp(2rem, 2.4vw + 1rem, 3.25rem); max-width: 20ch; }
.page-head .lead { margin-top: var(--s-4); color: var(--on-night-muted); max-width: 64ch; }
@media (max-width: 64rem) { .page-head--side { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); } }
.stats { margin: 0; padding: var(--s-4) var(--s-5); }
.stats > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px solid var(--night-line); }
.stats > div:last-child { border-bottom: 0; }
.stats dt { color: var(--on-night-muted); }
.stats dd { margin: 0; font-weight: 600; }
.accent { color: var(--brand-strong); }
.card--night .accent, .stats .accent { color: var(--brand); }
.countdown-card { display: grid; gap: var(--s-2); }
.cd-big { font-family: var(--font-display); font-weight: 700; font-size: 3.5rem; line-height: 1; color: var(--brand); }
.countdown-card p:last-child { color: var(--on-night-muted); }

/* поля и калькуляторы */
.conv { display: grid; gap: var(--s-3); }
.conv .card-h { margin-bottom: 0; }
.conv-row { display: grid; gap: var(--s-1); }
.conv label, .field label { font-size: 0.875rem; font-weight: 500; color: var(--muted); }
.conv label { color: var(--on-night-muted); }
input[type="text"] { width: 100%; height: 52px; padding: 0 var(--s-4); border-radius: var(--r-md); border: 1px solid var(--field-line); background: var(--surface); font-size: 1.125rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color var(--t) var(--ease); }
input[type="text"]:hover { border-color: var(--ink-2); }
input[type="text"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-color: var(--brand-strong); }
.conv input[type="text"] { background: var(--night); border-color: var(--on-night-muted); color: var(--on-night); }
.conv input[type="text"]:focus-visible { outline-color: var(--brand); }
.conv-note { font-size: 0.875rem; color: var(--on-night-muted); }
.calc { display: grid; gap: var(--s-5); align-content: start; }
.calc .card-h { margin-bottom: 0; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-2); min-width: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 24px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--brand-strong) var(--p, 50%), var(--surface-2) var(--p, 50%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: var(--r-pill); background: linear-gradient(to right, var(--brand-strong) var(--p, 50%), var(--surface-2) var(--p, 50%)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-strong); box-shadow: var(--shadow); transition: transform var(--t) var(--ease); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--brand-strong); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.12); }
input[type="range"]:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.seg--light { border: 0; margin: 0; padding: 4px; }
.seg--light label { display: inline-flex; cursor: pointer; }
.seg--light input { position: absolute; opacity: 0; pointer-events: none; }
.seg--light span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--s-4); border-radius: var(--r-sm); font-weight: 600; font-size: 0.9375rem; color: var(--muted); transition: background-color var(--t) var(--ease), color var(--t) var(--ease); }
.seg--light label:hover span { color: var(--ink); }
.seg--light input:checked + span { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.seg--light input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.result .card-h { margin-bottom: var(--s-2); }
.big { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.25rem, 2vw + 1.25rem, 3.25rem); letter-spacing: -0.03em; line-height: 1.05; color: var(--brand-strong); }
.stack { display: flex; height: 12px; margin-top: var(--s-5); border-radius: var(--r-pill); overflow: hidden; gap: var(--s-1); }
.st-a { flex: var(--w) 1 0; background: var(--sky); border-radius: var(--r-pill); }
.st-b { flex: var(--w) 1 0; background: var(--brand); border-radius: var(--r-pill); min-width: 6px; }
.stack-legend { display: flex; gap: var(--s-5); margin-top: var(--s-2); font-size: 0.875rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: var(--s-2); border-radius: 50%; }
.lg-a::before { background: var(--sky); }
.lg-b::before { background: var(--brand); }
.res { margin: var(--s-4) 0 0; }
.res > div { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; border-bottom: 1px solid var(--line); }
.res > div:last-child { border-bottom: 0; }
.res dt { color: var(--ink-2); }
.res dd { margin: 0; font-weight: 600; }

/* факты, вопросы, прочее */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.fact { --tone: var(--brand); display: grid; gap: var(--s-2); align-content: start; padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fact::before { content: ""; width: 36px; height: 6px; border-radius: var(--r-pill); background: var(--tone); margin-bottom: var(--s-2); }
.fact p { color: var(--ink-2); font-size: 0.9375rem; }
.fact a { font-weight: 600; color: var(--brand-strong); text-decoration: none; }
.fact a:hover { text-decoration: underline; }
.facts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 72rem) { .facts, .facts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .facts, .facts--3 { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.ticks li { position: relative; padding-left: var(--s-6); color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.55em; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.ticks a { color: var(--brand-strong); }
.qa-list { display: grid; gap: var(--s-2); }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.qa summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); padding: var(--s-4) var(--s-5); font-weight: 600; font-size: 1.0625rem; }
.qa summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); font-weight: 500; transition: transform var(--t) var(--ease), background-color var(--t) var(--ease); }
.qa summary:hover::after { background: var(--brand); }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 var(--s-5) var(--s-5); color: var(--ink-2); max-width: 75ch; }
.meet-list li { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-4); border-radius: var(--r-md); }
.meet-list li:nth-child(odd) { background: var(--surface-2); }
.meet-list li.is-next { background: var(--brand); color: var(--brand-ink); font-weight: 600; }
.meet-list li span:last-child { color: var(--muted); }
.meet-list li.is-next span:last-child { color: var(--brand-ink); }
.sums a { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); text-decoration: none; border-radius: var(--r-sm); transition: background-color var(--t) var(--ease); }
.sums li:last-child a { border-bottom: 0; }
.sums a:hover { background: var(--surface-2); }
.sums .num { font-weight: 600; }
.timeline { position: relative; display: grid; gap: var(--s-1); padding-left: var(--s-6); }
.timeline::before { content: ""; position: absolute; left: 7px; top: 12px; bottom: 12px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-2) 0; }
.timeline li::before { content: ""; position: absolute; left: calc(var(--s-6) * -1 + 2px); top: 50%; width: 12px; height: 12px; transform: translateY(-50%); border-radius: 50%; background: var(--surface); border: 2px solid var(--violet); }
.timeline li.is-next::before { background: var(--violet); box-shadow: 0 0 0 4px color-mix(in oklab, var(--violet) 20%, transparent); }
.tl-v { font-weight: 600; }
.map { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap); }
.map-cell { --tone: var(--brand); padding: var(--s-6); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.map-cell::before { content: ""; display: block; width: 36px; height: 6px; border-radius: var(--r-pill); background: var(--tone); margin-bottom: var(--s-4); }
.map-cell h2 { font-family: var(--font-body); font-weight: 600; font-size: 1.1875rem; letter-spacing: 0; }
.map-cell h2 a { text-decoration-color: var(--tone); }
.map-n { margin: var(--s-1) 0 var(--s-3); font-size: 0.875rem; color: var(--muted); }
.map-cell ul { display: grid; gap: var(--s-1); color: var(--ink-2); font-size: 0.9375rem; }
@media (max-width: 72rem) { .map { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .map { grid-template-columns: minmax(0, 1fr); } }
.bot-wide p { color: var(--ink-2); max-width: 70ch; }

/* ---------- подвал ---------- */
.band + .foot, main:has(> .band:last-child) + .foot { margin-top: 0; border-top: 1px solid var(--night-line); }
.foot { margin-top: var(--sec); background: var(--night); color: var(--on-night); padding-block: var(--s-16) var(--s-10); }
.foot-top { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-12); }
.foot-brand { display: grid; gap: var(--s-4); align-content: start; }
.foot-brand p { color: var(--on-night-muted); max-width: 32ch; }
.foot-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6); }
.foot-h { font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; margin-bottom: var(--s-3); }
.foot-cols ul { display: grid; gap: var(--s-2); font-size: 0.9375rem; color: var(--on-night-muted); }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { color: var(--brand); }
.foot-legal { margin-top: var(--s-10); padding-top: var(--s-5); border-top: 1px solid var(--night-line); display: grid; gap: var(--s-1); font-size: 0.875rem; color: var(--on-night-muted); }
.foot a:focus-visible { outline-color: var(--brand); }
@media (max-width: 64rem) { .foot-top { grid-template-columns: minmax(0, 1fr); } .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ticker { overflow-x: auto; }
  .ticker-track { animation: none; }
  .ticker-track + .ticker-track { display: none; }
  .plot .pulse { display: none; }
}

/* ---------- служебные страницы, поиск ---------- */
.prose { padding: var(--s-8) var(--s-10); }
.prose h2 { font-size: clamp(1.375rem, 0.8vw + 1rem, 1.75rem); margin: var(--s-10) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.65; max-width: 72ch; }
.prose p + p { margin-top: var(--s-3); }
.prose ul { display: grid; gap: var(--s-2); padding-left: var(--s-5); list-style: disc; }
.prose a { color: var(--brand-strong); text-underline-offset: 3px; }
.prose a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 40rem) { .prose { padding: var(--s-6) var(--s-5); } }
.prose .tbl { margin-top: var(--s-2); }
.search--page { margin-top: 0; max-width: none; }
.search-res { display: grid; gap: var(--s-2); margin-top: var(--s-6); }
.search-res a { display: block; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.search-res a:hover { border-color: var(--brand-strong); }
.search-res a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search-res b { display: block; font-weight: 600; }
.search-res span { display: block; margin-top: var(--s-1); font-size: 0.875rem; color: var(--muted); }
.mc-pixel { position: absolute; left: -9999px; }

/* неделя 3: параметры выпуска, прошедшие купоны, выбор года, суммы без ссылок, плитки калькуляторов */
.kv { margin: 0; }
.kv > div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-4); padding: var(--s-2) 0; border-bottom: 1px solid var(--line); }
.kv > div:last-child { border-bottom: 0; }
.kv--2 { display: grid; grid-template-columns: 1fr; column-gap: var(--s-6); }
@media (min-width: 900px) { .kv--2 { grid-template-columns: 1fr 1fr; } .kv--2 > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; } }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; min-width: 0; }
.past { margin-top: var(--s-4); }
.past summary { padding: var(--s-3) 0; font-weight: 600; color: var(--brand-strong); }
.past summary:hover { text-decoration: underline; }
.past summary:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.field select { width: 100%; min-width: 0; text-overflow: ellipsis; font: inherit; padding: var(--s-3) var(--s-4); border: 1px solid var(--field-line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
.field select:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 2px; }
.sums li > span { display: flex; }
.sums li:has(> span) { display: flex; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) var(--s-2); border-bottom: 1px solid var(--line); }
.sums li:has(> span):last-child { border-bottom: 0; }
.sums li > .num { font-weight: 600; }
.facts h2 { font-size: 1.25rem; }
.prose ul { padding-left: var(--s-5); display: grid; gap: var(--s-2); }
.tbl-tight tbody th, .tbl-tight tbody td { padding-top: var(--s-2); padding-bottom: var(--s-2); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }

/* неделя 4: подстановка ставок, галочка, режимы калькулятора */
.presets { margin-top: calc(-1 * var(--s-2)); margin-bottom: var(--s-4); }
.presets .chip { min-height: 36px; font-size: 0.875rem; }
.check { display: flex; align-items: center; gap: var(--s-3); margin: var(--s-2) 0 var(--s-4); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand-strong); }
.check input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
[data-mode][hidden], [data-own][hidden] { display: none; }
.calc .seg--light { margin-bottom: var(--s-4); }
.sums--wrap li { flex-wrap: wrap; gap: 0 var(--s-3); }
.sums--wrap .num { white-space: normal; text-align: right; margin-left: auto; }
.sums--wrap li > span { display: block; min-width: 0; }
.conv select { width: 100%; min-width: 0; font: inherit; font-size: 1.125rem; padding: var(--s-3) var(--s-4); border: 1px solid var(--on-night-muted); border-radius: var(--r-sm); background: var(--night); color: var(--on-night); }
.conv select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.conv-out { font-size: 1.75rem; font-weight: 700; color: var(--on-night); margin: 0; }
.sums--plain a { display: inline; padding: 0; border: 0; border-radius: 0; text-decoration: underline; }
.sums--plain a:hover { background: none; }
.conv select { height: 52px; padding: 0 var(--s-4); border-radius: var(--r-md); font-weight: 600; }
