/* Калькуляторы /calc в облике Coinbase (25.09.2026).
 *
 * Мир тот же, что у карточки выпуска (lib/bond-v2.css): Public Sans с
 * табличными цифрами, синий - действие и выбранное, лайм - только знак
 * бренда (черта под заголовком). Прежний вид раздела (Manrope, моноширинный
 * капс, лайм на чёрном) выброшен целиком, а не перекрашен.
 *
 * Раскладка страницы калькулятора - «ответ всегда на виду»: слева панель
 * параметров, справа ответ и его разбор. На телефоне параметры идут первыми,
 * а главный результат висит плашкой внизу экрана и обновляется на ходу.
 */

:root {
  --bg: #ffffff; --bg2: #f7f8fa; --bg3: #eef0f3;
  --pn-bg: #ffffff; --fld: #f3f5f8; --fld-h: #eceff3;
  --line: #eceef2; --line2: #dde1e7;
  --ink: #0a0b0d; --ink2: #4b5260; --ink3: #646b77;
  --acc: #0052ff; --acc-h: #003ecb; --acc-soft: #eef3ff; --acc-ring: rgba(0, 82, 255, .2);
  --up: #0a7c4a; --dn: #cf202f; --up-soft: #e8f6ef; --dn-soft: #fdeceb;
  --warn: #8a5a00; --warn-soft: #fdf4e3;
  /* серии графиков: основное - синий, второе - чернильный, третье - бирюза */
  --s1: #0052ff; --s2: #0a0b0d; --s3: #0c7c87; --s4: #b8cbff; --s-tax: #cf202f;
  --shadow: 0 1px 2px rgba(10, 11, 13, .04), 0 12px 32px rgba(10, 11, 13, .07);
  --r: 20px; --r-sm: 12px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
  --white: var(--bg); --g50: var(--bg2); --g100: var(--line); --g200: var(--line); --g300: var(--line2);
  --g400: var(--ink3); --g500: var(--ink3); --g700: var(--ink2);
}
:root[data-theme="dark"] {
  --bg: #0a0b0d; --bg2: #131519; --bg3: #1b1e23;
  --pn-bg: #111317; --fld: #1b1e23; --fld-h: #23272e;
  --line: #22262c; --line2: #30353d;
  --ink: #f3f6fa; --ink2: #b3bac5; --ink3: #8d95a1;
  --acc: #4d8dff; --acc-h: #7fabff; --acc-soft: rgba(77, 141, 255, .14); --acc-ring: rgba(77, 141, 255, .32);
  --up: #3ecf87; --dn: #ff6b6b; --up-soft: rgba(62, 207, 135, .14); --dn-soft: rgba(255, 107, 107, .14);
  --warn: #f0b84a; --warn-soft: rgba(240, 184, 74, .12);
  --s1: #4d8dff; --s2: #e6ebf2; --s3: #3fc9d6; --s4: #2c4a85; --s-tax: #ff6b6b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 16px 40px rgba(0, 0, 0, .45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body {
  margin: 0; background: var(--bg2); color: var(--ink);
  font: 400 15px/1.5 'Public Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: var(--acc-soft); color: var(--ink); }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.skiplink { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 14px; border-radius: 10px;
  background: var(--acc); color: #fff; font-weight: 600; text-decoration: none; }
.skiplink:focus { left: 12px; }
main { display: block; max-width: 1240px; margin: 0 auto; padding: 22px 24px 72px; outline: none; }

/* ── хлебные крошки и заголовок ─────────────────────────────────────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--ink3); }
.crumbs a { text-decoration: none; color: var(--ink2); }
.crumbs a:hover { color: var(--acc); }
.c-head { margin: 18px 0 26px; max-width: 760px; }
.c-head h1 { margin: 0; font-size: 36px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; text-wrap: balance; }
.c-head .rule { display: block; width: 56px; height: 4px; border-radius: 99px; background: #c8f048; margin: 16px 0 14px; }
.c-head p { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--ink2); max-width: 66ch; }

/* ── раскладка калькулятора ─────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; }
.pn { min-width: 0; border-radius: var(--r); padding: 22px 24px; background: var(--pn-bg); box-shadow: inset 0 0 0 1px var(--line); }
.pn + .pn { margin-top: 20px; }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.pn-h h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.pn-h .lnk { font-size: 13.5px; font-weight: 600; color: var(--acc); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.pn-h .lnk:hover { color: var(--acc-h); }
.inputs { position: sticky; top: 86px; }
.out { min-width: 0; }

/* ── поля ───────────────────────────────────────────────────────────────── */
.fg { display: grid; gap: 16px; }
.fg.two { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.fg + .fg, .fg + .sw, .sw + .fg, .seg-wrap + .fg { margin-top: 16px; }
.fl { display: grid; gap: 6px; min-width: 0; }
.fl > span, .fl-t { font-size: 13.5px; font-weight: 600; color: var(--ink2); display: flex; align-items: center; gap: 6px; }
.fl small { font-size: 12.5px; color: var(--ink3); line-height: 1.4; }
.inp { position: relative; display: flex; align-items: center; height: 48px; border-radius: 12px; background: var(--fld);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow 150ms ease, background 150ms ease; }
.inp:hover { background: var(--fld-h); }
.inp:focus-within { background: var(--pn-bg); box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 4px var(--acc-ring); }
.inp { min-width: 0; }
.inp input, .inp select { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 14px; border: 0; background: none; outline: none;
  font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.inp select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; font-weight: 500; }
.inp.sel::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -5px;
  border-right: 1.8px solid var(--ink3); border-bottom: 1.8px solid var(--ink3); transform: rotate(45deg); pointer-events: none; }
.inp select.u-sel { flex: none; width: auto; height: 36px; margin-right: 6px; padding: 0 28px 0 10px; border-radius: 9px; background: var(--pn-bg); font-size: 14px; font-weight: 600; color: var(--ink2);
  background-image: linear-gradient(45deg, transparent 50%, var(--ink3) 50%), linear-gradient(135deg, var(--ink3) 50%, transparent 50%);
  background-position: calc(100% - 14px) 16px, calc(100% - 10px) 16px; background-size: 4px 4px; background-repeat: no-repeat; box-shadow: 0 1px 2px rgba(10,11,13,.08); }
:root[data-theme="dark"] .inp select.u-sel { background-color: var(--bg3); box-shadow: none; }
.inp .u { padding-right: 14px; font-size: 14px; font-weight: 500; color: var(--ink3); white-space: nowrap; }
.inp.bad { box-shadow: inset 0 0 0 1.5px var(--dn); }
.inp input::placeholder { color: var(--ink3); font-weight: 400; }
.inp input[type="date"] { font-weight: 500; }
.inp input[type="date"]::-webkit-calendar-picker-indicator { opacity: .55; cursor: pointer; }
:root[data-theme="dark"] .inp input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); }
.inp.filled { animation: fillPulse 900ms var(--ease); }
@keyframes fillPulse { 0% { box-shadow: inset 0 0 0 1.5px var(--acc), 0 0 0 6px var(--acc-ring); } 100% { box-shadow: inset 0 0 0 1px transparent; } }
.fl .err { font-size: 12.5px; color: var(--dn); }

/* сегменты: как переключатель «Цена / Доходность» на карточке выпуска */
.seg-wrap { display: grid; gap: 6px; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--fld); }
.seg button { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink3);
  font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: color 150ms ease, background 150ms ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--pn-bg); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 11, 13, .12); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--bg3); box-shadow: none; }
.seg button:disabled { opacity: .4; cursor: default; }

/* выключатель */
.sw { display: flex; align-items: center; justify-content: space-between; gap: 14px; cursor: pointer; }
.sw > span { font-size: 14px; font-weight: 600; color: var(--ink2); }
.sw > span small { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink3); margin-top: 2px; }
.sw input { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 24px; margin: 0; border-radius: 99px; background: var(--line2);
  position: relative; cursor: pointer; transition: background 180ms ease; }
.sw input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(10, 11, 13, .25); transition: transform 220ms var(--ease); }
.sw input:checked { background: var(--acc); }
.sw input:checked::after { transform: translateX(16px); }
.more { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.more[hidden] { display: none; }
.sep { height: 1px; background: var(--line); margin: 18px 0; border: 0; }
.hint-i { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 0; background: var(--bg3);
  color: var(--ink3); font-size: 11px; font-weight: 700; cursor: help; position: relative; padding: 0; }
/* подсказка живёт над всем полем, а не над кружком: у длинного названия
   кружок стоит у правого края, и подсказка шириной 260px уезжала за экран */
.fl, .seg-wrap, .sw { position: relative; }
.hint-i { position: static; }
.hint-i .tip { position: absolute; left: 0; bottom: calc(100% + 6px); max-width: 100%; width: 320px; padding: 10px 12px;
  border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; font-weight: 400; line-height: 1.45; text-align: left;
  opacity: 0; visibility: hidden; transition: opacity 150ms ease; z-index: 20; pointer-events: none; }
.hint-i:hover .tip, .hint-i:focus .tip { opacity: 1; visibility: visible; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 0;
  background: var(--acc); color: #fff; font-size: 14.5px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 150ms ease, transform 120ms ease; }
.btn:hover { background: var(--acc-h); }
.btn:active { transform: scale(.98); }
.btn.ghost { background: var(--fld); color: var(--ink); }
.btn.ghost:hover { background: var(--fld-h); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 13.5px; }
.btn svg { width: 16px; height: 16px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }

/* редкие параметры: раскрываются по запросу */
.more-d { margin-top: 18px; border-top: 1px solid var(--line); }
.more-s { display: flex; align-items: center; justify-content: space-between; padding: 14px 0 2px; font-size: 14px; font-weight: 600; color: var(--acc); cursor: pointer; list-style: none; }
.more-s::-webkit-details-marker { display: none; }
.more-s::after { content: ""; width: 7px; height: 7px; border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: rotate(45deg); transition: transform 220ms var(--ease); }
.more-d[open] .more-s::after { transform: rotate(-135deg); }
.more-b { padding-top: 14px; display: grid; gap: 16px; }
.more-b > .fg + .fg { margin-top: 0; }
.hint-i.open .tip { opacity: 1; visibility: visible; }
[hidden] { display: none !important; }

/* ── ответ ──────────────────────────────────────────────────────────────── */
.ans { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; }
.ans-k { font-size: 14px; font-weight: 600; color: var(--ink2); }
.ans-v { margin-top: 4px; font-size: 52px; font-weight: 700; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.ans-v .cur { font-size: .55em; font-weight: 600; letter-spacing: -.02em; margin-left: .12em; color: var(--ink2); }
.ans-s { margin-top: 8px; font-size: 14px; color: var(--ink3); }
.ans-s b { color: var(--ink); font-weight: 600; }
.ans-side { text-align: right; margin-left: auto; }
.ans-side .ans-v { font-size: 30px; }
.up { color: var(--up); } .dn { color: var(--dn); }

/* лента чисел: как «Главные числа» карточки выпуска */
.tick { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); margin: 20px -24px -22px; border-top: 1px solid var(--line); }
.tick > div { padding: 16px 20px 18px; position: relative; min-width: 0; }
.tick > div + div::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 1px; background: var(--line); }
.tick span { display: block; font-size: 13px; color: var(--ink3); line-height: 1.3; }
.tick > div { container-type: inline-size; }
/* Кегль числа подстраивается под ширину ячейки: триллионы не вылезают за край */
.tick strong { display: block; margin-top: 6px; font-size: 20px; font-size: clamp(14px, 12cqi, 20px); font-weight: 700; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere; }
.tick small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--ink3); }

/* полоса-раскладка суммы: из чего складывается итог */
.split { margin-top: 18px; }
.split-bar { display: flex; height: 10px; border-radius: 99px; overflow: hidden; background: var(--bg3); gap: 2px; }
.split-bar i { display: block; height: 100%; min-width: 2px; transition: flex-grow 420ms var(--ease); }
.split-leg { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: 13px; color: var(--ink2); }
.split-leg span { display: inline-flex; align-items: center; gap: 7px; }
.split-leg i { width: 9px; height: 9px; border-radius: 3px; }
.split-leg b { font-weight: 600; color: var(--ink); }

/* пояснение-предупреждение рядом с числом */
.note { display: flex; gap: 10px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--warn-soft); color: var(--warn);
  font-size: 13.5px; line-height: 1.45; }
.note.info { background: var(--acc-soft); color: var(--ink2); }
.note[hidden] { display: none; }

/* ── график ─────────────────────────────────────────────────────────────── */
.chart { position: relative; margin-top: 4px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .ax { font-size: 11.5px; fill: var(--ink3); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .bar { transition: opacity 150ms ease; }
.chart .hot .bar { opacity: .45; }
.chart .hot .bar.on { opacity: 1; }
.chart .cross { stroke: var(--ink3); stroke-dasharray: 3 3; }
.chart-tip { position: absolute; top: 0; pointer-events: none; min-width: 170px; padding: 10px 12px; border-radius: 12px; background: var(--pn-bg);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--line); font-size: 12.5px; line-height: 1.5; opacity: 0; transition: opacity 120ms ease; z-index: 5; }
.chart-tip.on { opacity: 1; }
.chart-tip b { display: block; font-size: 13px; margin-bottom: 4px; }
.chart-tip div { display: flex; justify-content: space-between; gap: 14px; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--ink2); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ── таблица графика платежей ───────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; margin: 0 -24px; padding: 0 24px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; padding: 10px 12px; text-align: right; font-size: 12.5px; font-weight: 600; color: var(--ink3);
  border-bottom: 1px solid var(--line); background: var(--pn-bg); white-space: nowrap; }
.tbl td { padding: 11px 12px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child { text-align: left; padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tr.past td { color: var(--ink3); }
.tbl tr.sum td { font-weight: 700; border-bottom: 0; }
.tbl tr.yr td { font-weight: 600; background: var(--bg2); }
.tbl td .tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600;
  background: var(--acc-soft); color: var(--acc); }
.tbl-more { margin-top: 12px; }

/* ── поиск выпуска ──────────────────────────────────────────────────────── */
.find { position: relative; }
.find .inp { padding-left: 40px; }
.find .inp::before { content: ""; position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; margin-top: -8px; border-radius: 50%;
  border: 2px solid var(--ink3); }
.find .inp::after { content: ""; position: absolute; left: 27px; top: 50%; width: 6px; height: 2px; margin-top: 5px; background: var(--ink3);
  transform: rotate(45deg); border-radius: 2px; }
.find .inp input { padding-left: 0; }
.find-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px;
  list-style: none; border-radius: 16px; background: var(--pn-bg); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.find-list[hidden] { display: none; }
.find-list li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.find-list li[aria-selected="true"], .find-list li:hover { background: var(--fld); }
.find-list b { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-list small { grid-column: 1; font-size: 12.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-list .r { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13px; font-weight: 600; color: var(--ink2); text-align: right; }
.find-list .empty { display: block; color: var(--ink3); font-size: 13.5px; cursor: default; }
.picked { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--acc-soft); margin-top: 12px; }
.picked[hidden] { display: none; }
.picked .nm { min-width: 0; flex: 1; }
.picked b { display: block; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picked small { display: block; font-size: 12.5px; color: var(--ink2); }
.picked a { font-size: 13px; font-weight: 600; color: var(--acc); text-decoration: none; white-space: nowrap; }
.picked button { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; color: var(--ink3); cursor: pointer; font-size: 18px; line-height: 1; }
.picked button:hover { background: var(--pn-bg); color: var(--ink); }
.status { font-size: 12.5px; color: var(--ink3); margin-top: 8px; min-height: 18px; }
.status.err { color: var(--dn); }

/* список строк (несколько бумаг, ступени лестницы) */
.rows { display: grid; gap: 8px; margin-top: 12px; }
.row-it { display: grid; grid-template-columns: 1fr 96px 32px; gap: 8px; align-items: center; padding: 8px 8px 8px 12px; border-radius: 12px; background: var(--fld); }
.row-it .nm { min-width: 0; }
.row-it .nm b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-it .nm small { display: block; font-size: 12px; color: var(--ink3); }
.row-it .inp { height: 38px; background: var(--pn-bg); }
.row-it .inp input { font-size: 14px; padding: 0 10px; }
.row-it .x { width: 32px; height: 32px; border-radius: 50%; border: 0; background: none; color: var(--ink3); cursor: pointer; font-size: 18px; }
.row-it .x:hover { background: var(--pn-bg); color: var(--dn); }

/* ── плашка ответа на телефоне ──────────────────────────────────────────── */
.mbar { display: none; }

/* ── методика, пример, вопросы ──────────────────────────────────────────── */
.doc { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; margin-top: 20px; align-items: start; }
.prose h2 { margin: 0 0 12px; font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.prose h3 { margin: 26px 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.prose p, .prose li { font-size: 15.5px; line-height: 1.65; color: var(--ink2); max-width: 70ch; }
.prose p { margin: 0 0 12px; }
.prose ul, .prose ol { margin: 0 0 12px; padding-left: 20px; }
.prose li { margin: 4px 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--acc); text-decoration: underline; text-decoration-color: var(--acc-ring); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--acc); }
.formula { margin: 14px 0; padding: 14px 16px; border-radius: 12px; background: var(--bg2); font-size: 15px; line-height: 1.6; color: var(--ink);
  overflow-x: auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-size: 15.5px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 8px; height: 8px; margin-top: 6px; border-right: 1.8px solid var(--ink3); border-bottom: 1.8px solid var(--ink3);
  transform: rotate(45deg); transition: transform 220ms var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 10px; }
.faq .a { padding: 0 0 14px; }
.faq .a p { margin: 0 0 8px; font-size: 15px; line-height: 1.6; color: var(--ink2); }
.side-links { display: grid; gap: 2px; margin: 0 -10px; }
.side-links a { display: block; padding: 10px; border-radius: 12px; text-decoration: none; }
.side-links a:hover { background: var(--fld); }
.side-links b { display: block; font-size: 14.5px; font-weight: 600; }
.side-links small { display: block; font-size: 13px; color: var(--ink3); line-height: 1.4; margin-top: 2px; }
.disc { margin-top: 20px; font-size: 13px; color: var(--ink3); line-height: 1.5; max-width: 90ch; }

/* ── хаб /calc ──────────────────────────────────────────────────────────── */
.hub-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 18px 0 22px; }
.hub-top .c-head { margin: 0; }
.hub-q { width: 340px; max-width: 100%; }
.hub-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--pn-bg); box-shadow: inset 0 0 0 1px var(--line2);
  font-size: 13.5px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: background 150ms ease, color 150ms ease; }
.chip:hover { color: var(--ink); background: var(--fld); }
.chip[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); box-shadow: inset 0 0 0 1px transparent; }
.chip .n { margin-left: 6px; font-size: 12px; color: var(--ink3); }
.chip[aria-pressed="true"] .n { color: var(--acc); }

/* ведущий блок: облигации - то, чего нет у соседей */
.lead-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; margin-bottom: 20px; }
.feat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 300px; padding: 26px 28px;
  border-radius: var(--r); background: var(--pn-bg); box-shadow: inset 0 0 0 1px var(--line); text-decoration: none; overflow: hidden;
  transition: box-shadow 200ms ease, transform 200ms var(--ease); }
.feat:hover { box-shadow: inset 0 0 0 1px var(--line2), var(--shadow); }
.feat h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; max-width: 16ch; }
.feat p { margin: 10px 0 0; font-size: 15px; color: var(--ink2); line-height: 1.5; max-width: 44ch; }
.feat .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14.5px; font-weight: 600; color: var(--acc); }
.feat .go::after { content: ""; width: 7px; height: 7px; border-top: 1.8px solid currentColor; border-right: 1.8px solid currentColor; transform: rotate(45deg);
  transition: transform 200ms var(--ease); }
.feat:hover .go::after { transform: translateX(3px) rotate(45deg); }
.feat-demo { margin-top: 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 14px; background: var(--bg2); }
.feat-demo div { padding: 12px 14px; min-width: 0; }
.feat-demo span { display: block; font-size: 12px; color: var(--ink3); }
.feat-demo b { display: block; margin-top: 3px; font-size: 18px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.feat-demo svg { display: block; width: 100%; height: 64px; }
.feat-list { display: grid; gap: 0; border-radius: var(--r); background: var(--pn-bg); box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }

.grp { margin-top: 30px; }
.grp > h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.grp[hidden] { display: none; }
.list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; border-radius: var(--r); background: var(--pn-bg);
  box-shadow: inset 0 0 0 1px var(--line); padding: 8px; }
.it { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px; border-radius: 14px; text-decoration: none;
  transition: background 150ms ease; }
.it:hover { background: var(--fld); }
.it[hidden] { display: none; }
.it .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--acc-soft); color: var(--acc); }
.it .ic svg { width: 22px; height: 22px; }
.it b { display: block; font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; }
.it small { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ink3); line-height: 1.4; }
.it .ar { width: 8px; height: 8px; border-top: 1.8px solid var(--ink3); border-right: 1.8px solid var(--ink3); transform: rotate(45deg); margin-right: 6px;
  transition: transform 200ms var(--ease), border-color 150ms ease; }
.it:hover .ar { border-color: var(--acc); transform: translateX(3px) rotate(45deg); }
.it .new { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600; vertical-align: 2px;
  background: var(--up-soft); color: var(--up); }
.hub-empty { padding: 40px 0; text-align: center; color: var(--ink3); }
.hub-empty[hidden] { display: none; }

/* ── адаптив ────────────────────────────────────────────────────────────── */
@media (max-width: 1060px) {
  .calc { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
  .doc { grid-template-columns: 1fr; }
  .tick { --n: 2 !important; }
  .tick > div:nth-child(2n+1)::before { display: none; }
  .tick > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .tick > div:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (max-width: 860px) {
  main { padding: 16px 16px 110px; }
  .c-head h1 { font-size: 28px; }
  .c-head p { font-size: 15.5px; }
  .calc { grid-template-columns: 1fr; }
  .inputs { position: static; }
  .pn { padding: 18px 16px; border-radius: 18px; }
  .tick { margin: 18px -16px -18px; }
  .tick > div { padding: 14px 16px; }
  .ans-v { font-size: 42px; }
  .ans-side { text-align: left; margin-left: 0; }
  .tbl-wrap { margin: 0 -16px; padding: 0 16px; }
  .lead-grid, .list { grid-template-columns: 1fr; }
  .feat { min-height: 0; padding: 22px 20px; }
  .feat h2 { font-size: 22px; }
  .hub-q { width: 100%; }
  /* главный результат всегда на виду, пока человек крутит параметры */
  .mbar { display: flex; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 0; width: auto;
    background: var(--ink); color: var(--bg); box-shadow: 0 10px 30px rgba(10, 11, 13, .3); text-align: left; cursor: pointer;
    transition: transform 280ms var(--ease), opacity 200ms ease; }
  .mbar.off { transform: translateY(140%); opacity: 0; }
  .mbar span { font-size: 12.5px; opacity: .72; display: block; }
  .mbar b { font-size: 21px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
  .mbar em { font-style: normal; font-size: 13px; font-weight: 600; white-space: nowrap; opacity: .85; }
}
@media (max-width: 420px) {
  .fg.two { grid-template-columns: 1fr; }
  .ans-v { font-size: 38px; }
  .feat-demo { grid-template-columns: 1fr 1fr; }
  .feat-demo div:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}
