/* Страница выпуска облигации, раскладка «Ряды» (принята Женей 23.09.2026).
 *
 * Собрано из макета prototypes/bond-page/panel4.html (bp.css, panel.css,
 * panel3.css, panel4.css) без изменений в правилах; в конце - переходник под
 * разметку генератора: шапка живёт в section.hero (на неё опираются
 * mark_archived и live-quote.js), а ячейки ленты размечены span/strong/small
 * (их читают live-quote.js и bake-static-rows.py).
 */
/* ── из макета: bp.css ── */
/* Страница выпуска облигации: общая основа трёх макетов (прототип, 23.09.2026).
 *
 * Мир уже выбран - облик Coinbase портала: Public Sans с табличными цифрами,
 * синий - действие и выбранное, лайм - только знак бренда в шапке. Отсюда
 * берутся палитра и словарь попапа выпуска (lib/bond-card.js): шапка со
 * звёздочкой, рейтинг буквой со шкалой D..AAA, лента ключевых чисел без плиток.
 *
 * Три макета различаются раскладкой и путём, а не видом: всё общее живёт тут.
 */

:root {
  --bg: #ffffff; --bg2: #f7f8fa; --bg3: #eef0f3;
  --line: #eceef2; --line2: #dde1e7;
  --ink: #0a0b0d; --ink2: #4b5260; --ink3: #646b77;
  --acc: #0052ff; --acc-h: #003ecb; --acc-btn: #0052ff; --acc-soft: #eef3ff; --acc-ring: rgba(0, 82, 255, .2);
  --acc-dim: #b8cbff;
  --up: #0a7c4a; --dn: #cf202f; --up-soft: #e8f6ef; --dn-soft: #fdeceb;
  --warn: #8a5a00; --warn-soft: #fdf4e3;
  --star: #e8a400;
  --shadow: 0 1px 2px rgba(10, 11, 13, .04), 0 12px 32px rgba(10, 11, 13, .07);
  --r: 16px; --r-sm: 12px;
  --ease: cubic-bezier(.23, 1, .32, 1);
  --pad: 24px;
  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;
  --line: #22262c; --line2: #30353d;
  --ink: #f3f6fa; --ink2: #b3bac5; --ink3: #8d95a1;
  --acc: #4d8dff; --acc-h: #7fabff; --acc-btn: #2f6fe0; --acc-soft: rgba(77, 141, 255, .14); --acc-ring: rgba(77, 141, 255, .32);
  --acc-dim: #3e5f9f;
  --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);
  --star: #f5b93a;
  --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: 136px; }
body {
  margin: 0; background: var(--bg); 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 { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; letter-spacing: 0; }
.up { color: var(--up); } .dn { color: var(--dn); }
.muted { color: var(--ink3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html { scrollbar-color: var(--line2) transparent; }

/* ── каркас ─────────────────────────────────────────────────────────── */
.bp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--pad); }
.bp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 20px 0 0;
  font-size: 13px; color: var(--ink3); }
.bp-crumbs a { text-decoration: none; color: var(--ink2); }
.bp-crumbs a:hover { color: var(--acc); }
.bp-crumbs svg { width: 12px; height: 12px; opacity: .6; }

/* ── шапка выпуска (из попапа: знак, звёздочка, название, подзаголовок, теги) ── */
.bp-head { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0 0; }
.bp-logo { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bp-logo img { width: 100%; height: 100%; display: block; }
.bp-titles { min-width: 0; flex: 1 1 auto; }
.bp-title-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.bp-name { margin: 0; font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.15;
  text-wrap: balance; }
.bp-star { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: -4px;
  border: 0; border-radius: 50%; background: none; color: var(--ink3); cursor: pointer;
  transition: transform 160ms var(--ease), color 160ms ease, background-color 160ms ease; }
.bp-star svg { width: 20px; height: 20px; }
.bp-star:hover { background: var(--bg3); color: var(--ink); }
.bp-star:active { transform: scale(.9); }
.bp-star[aria-pressed="true"] { color: var(--star); }
.bp-star[aria-pressed="true"] svg path { fill: currentColor; }
.bp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px;
  font-size: 14px; color: var(--ink3); }
.bp-sub > * + *::before { content: "·"; margin-right: 8px; color: var(--line2); }
.bp-sub a { color: var(--ink2); text-decoration: none; border-bottom: 1px dotted var(--line2); }
.bp-sub a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.bp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bp-tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px;
  background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2);
  font-size: 12.5px; font-weight: 600; white-space: nowrap; }
button.bp-tag { border: 0; cursor: pointer; transition: background-color 150ms ease, transform 160ms var(--ease); }
button.bp-tag:hover { background: var(--bg3); color: var(--ink); }
button.bp-tag:active { transform: scale(.97); }
.bp-tag svg { width: 13px; height: 13px; opacity: .7; }
.bp-tag.is-copied { color: var(--up); }
.bp-head-r { flex: none; display: flex; align-items: center; gap: 8px; padding-top: 6px; }

/* ── кнопки ─────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border: 0; border-radius: 999px; font-size: 14px; font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 150ms ease, color 150ms ease, box-shadow 150ms ease; }
.btn:active { transform: scale(.97); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn-pri { background: var(--acc-btn); color: #fff; }
.btn-pri:hover { background: var(--acc-h); }
:root[data-theme="dark"] .btn-pri:hover { background: #3f7ef0; }
.btn-sec { background: var(--bg2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.btn-sec:hover { background: var(--bg3); }
.btn-ghost { background: none; color: var(--ink2); padding: 0 12px; }
.btn-ghost:hover { color: var(--ink); background: var(--bg2); }
.btn-wide { width: 100%; height: 48px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.lnk { color: var(--acc); font-weight: 600; text-decoration: none; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }
.lnk-arrow::after { content: " →"; }

/* ── цена и рейтинг (сцена попапа) ─────────────────────────────────── */
.bp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.bp-price-now { font-size: 48px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.bp-price-rub { font-size: 17px; font-weight: 500; color: var(--ink2); }
.bp-delta { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 600; color: var(--up); }
.bp-delta.dn { color: var(--dn); }
.bp-delta svg { width: 12px; height: 12px; }
.bp-delta .muted { font-weight: 500; }
.bp-stamp { margin-top: 10px; font-size: 13px; color: var(--ink3); display: flex; flex-wrap: wrap; gap: 2px 14px; }
.bp-stamp .live { display: inline-flex; align-items: center; gap: 6px; color: var(--ink2); font-weight: 500; }
.bp-stamp .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--up);
  box-shadow: 0 0 0 3px var(--up-soft); }

.bp-rate { display: flex; flex-direction: column; gap: 10px; }
.bp-rate-top { display: flex; align-items: center; gap: 14px; }
.bp-grade { flex: none; min-width: 76px; height: 58px; padding: 0 12px; border-radius: 14px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); font-size: 24px; font-weight: 700; letter-spacing: -.03em; }
.bp-rate-txt { font-size: 13px; color: var(--ink3); line-height: 1.4; }
.bp-rate-txt b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.bp-scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.bp-scale span { height: 7px; border-radius: 2px; background: var(--line2); }
.bp-scale span.dim { background: color-mix(in srgb, var(--acc) 30%, var(--line2)); }
.bp-scale span.on { background: var(--acc); }
.bp-scale-leg { display: grid; grid-template-columns: repeat(9, 1fr); font-size: 11px; color: var(--ink3); }
.bp-scale-leg span:nth-child(1) { grid-column: 1; }
.bp-scale-leg span:nth-child(2) { grid-column: 5; text-align: center; }
.bp-scale-leg span:nth-child(3) { grid-column: 7; text-align: center; }
.bp-scale-leg span:nth-child(4) { grid-column: 9; text-align: right; }

/* ── лента ключевых чисел: не плитки, делят тонкие линии ─────────────── */
.bp-key { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto auto auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* Подписи бывают в одну и в две строки; сетка-наследница держит значения
   всех колонок на одной линии, как резерв высоты в попапе. */
.bp-key > div { grid-row: span 3; display: grid; grid-template-rows: subgrid; align-content: start;
  padding: 18px 20px 18px 0; position: relative; min-width: 0; }
.bp-key > div + div { padding-left: 20px; }
.bp-key > div + div::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.bp-k { font-size: 13px; color: var(--ink3); line-height: 1.35; align-self: end; text-wrap: balance; }
.bp-v { margin-top: 8px; font-size: 28px; font-weight: 700; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.bp-v em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--ink2); margin-left: 6px; letter-spacing: -.01em; }
.bp-u { margin-top: 7px; font-size: 13px; color: var(--ink2); }

/* ── ближайшие события строкой ───────────────────────────────────────── */
.bp-next { display: flex; flex-wrap: wrap; gap: 8px 28px; padding: 14px 0; font-size: 14px; color: var(--ink2);
  border-bottom: 1px solid var(--line); }
.bp-next > span { display: inline-flex; align-items: center; gap: 8px; }
.bp-next b { color: var(--ink); font-weight: 600; }
.bp-next i { font-style: normal; color: var(--ink3); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--acc); }
.dot.o { background: none; box-shadow: inset 0 0 0 2px var(--acc); }
.dot.g { background: var(--ink3); }

/* ── сегменты и переключатели ────────────────────────────────────────── */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 32px; padding: 0 13px; border: 0; border-radius: 999px; background: none; color: var(--ink3);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: color 150ms ease, background-color 150ms ease; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--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; }

/* ── график ─────────────────────────────────────────────────────────── */
.bp-chart-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.bp-chart { position: relative; margin-top: 14px; user-select: none; }
.bp-chart svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-ax { fill: var(--ink3); font-size: 11px; }
.ch-line { fill: none; stroke: var(--acc); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-area { fill: url(#bpArea); }
.ch-base { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 2 4; opacity: .7; }
.ch-vol { fill: var(--line2); }
.ch-ev { fill: var(--bg); stroke: var(--acc); stroke-width: 1.5; }
.ch-ev.o { fill: var(--acc); }
.ch-cross { stroke: var(--ink3); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ch-dot { fill: var(--acc); stroke: var(--bg); stroke-width: 2.5; opacity: 0; }
.bp-chart.is-hover .ch-cross, .bp-chart.is-hover .ch-dot { opacity: 1; }
.ch-tip { position: absolute; top: 0; pointer-events: none; padding: 8px 10px; border-radius: 10px; background: var(--ink);
  color: var(--bg); font-size: 12.5px; line-height: 1.35; white-space: nowrap; transform: translateX(-50%);
  opacity: 0; transition: opacity 120ms ease; }
.ch-tip b { font-size: 14px; }
.bp-chart.is-hover .ch-tip { opacity: 1; }

/* ── секции ─────────────────────────────────────────────────────────── */
.bp-sec { padding: 44px 0 0; }
.bp-sec > h2, .bp-h2 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; text-wrap: balance; }
.bp-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bp-lead { margin: 8px 0 0; font-size: 15px; color: var(--ink2); max-width: 68ch; }
.bp-h3 { margin: 0 0 4px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; }

/* Строки «название - значение» парами, как в попапе */
.rows { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; }
.rows.one { grid-template-columns: minmax(0, 1fr); }
.row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 13px 0;
  border-bottom: 1px solid var(--line); min-width: 0; }
.row dt { margin: 0; font-size: 14.5px; color: var(--ink2); }
.row dd { margin: 0; font-size: 15px; font-weight: 600; text-align: right; letter-spacing: -.01em; }
.row dd small { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink3); margin-top: 2px; letter-spacing: 0; }
.q { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border: 0; border-radius: 50%;
  background: var(--bg3); color: var(--ink3); font-size: 10.5px; font-weight: 700; cursor: help; vertical-align: 1px; padding: 0; }
.q:hover, .q:focus-visible { background: var(--acc-soft); color: var(--acc); }

/* Таблицы */
.tbl-wrap { overflow-x: auto; margin-top: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: right; padding: 0 12px 10px; font-size: 12.5px; font-weight: 600; color: var(--ink3);
  border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { text-align: right; padding: 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl th:first-child, .tbl td:first-child, .tbl .l { text-align: left; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl tr.past td { color: var(--ink3); }
.tbl tr.now td { font-weight: 600; }
.tbl tr.now td:first-child { color: var(--acc); }
.tbl tr.cur td { background: var(--acc-soft); }
.tbl tr.cur td:first-child { box-shadow: -12px 0 0 var(--acc-soft); }
.tbl tr.cur td:last-child { box-shadow: 12px 0 0 var(--acc-soft); }
.tbl a { text-decoration: none; font-weight: 600; }
.tbl a:hover { color: var(--acc); }
.tbl .sub { display: block; font-size: 12.5px; font-weight: 400; color: var(--ink3); }
.tbl td.unk { color: var(--ink3); }
.tbl-more { margin-top: 14px; }

/* Пилюля-метка внутри строки */
.pill { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: var(--bg3); color: var(--ink2); }
.pill.acc { background: var(--acc-soft); color: var(--acc); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }

/* Полоса выплат: столбик на каждый купон */
.pay-strip { margin-top: 18px; }
.pay-strip svg { display: block; width: 100%; height: auto; overflow: visible; }
.ps-bar { fill: var(--acc-dim); }
.ps-bar.past { fill: var(--line2); }
.ps-bar.now { fill: var(--acc); }
.ps-bar.unk { fill: none; stroke: var(--line2); stroke-width: 1.2; stroke-dasharray: 3 2; }
.ps-face { fill: var(--acc-soft); stroke: var(--acc); stroke-width: 1.2; }
.ps-mark { stroke: var(--ink); stroke-width: 1.2; }
.ps-lbl { fill: var(--ink3); font-size: 11px; }
.ps-lbl.strong { fill: var(--ink); font-weight: 600; }
.ps-today { stroke: var(--acc); stroke-width: 1.2; stroke-dasharray: 2 3; }
.ps-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 12.5px; color: var(--ink3); }
.ps-legend span { display: inline-flex; align-items: center; gap: 7px; }
.ps-legend i { width: 10px; height: 10px; border-radius: 2px; background: var(--acc-dim); }
.ps-legend i.now { background: var(--acc); }
.ps-legend i.past { background: var(--line2); }
.ps-legend i.unk { background: none; box-shadow: inset 0 0 0 1.2px var(--line2); }

/* Хронология: оферты и погашение */
.tl { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 22px; }
.tl::before { content: ""; position: absolute; left: 7px; right: 7px; top: 7px; height: 2px; background: var(--line2); }
.tl-i { position: relative; padding-right: 16px; }
.tl-i::before { content: ""; position: relative; z-index: 1; display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); box-shadow: inset 0 0 0 2px var(--line2); }
.tl-i.now::before { background: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft); }
.tl-i.key::before { box-shadow: inset 0 0 0 2px var(--acc); }
.tl-i.end::before { background: var(--ink); box-shadow: none; }
.tl-d { margin-top: 12px; font-size: 13px; color: var(--ink3); }
.tl-t { margin-top: 2px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.tl-x { margin-top: 4px; font-size: 13.5px; color: var(--ink2); line-height: 1.45; max-width: 30ch; }

/* Рейтинги агентств строками */
.ag { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.ag-n { font-size: 15px; font-weight: 600; }
.ag-r { font-size: 18px; font-weight: 700; letter-spacing: -.02em; text-align: right; }
.ag-r.off { font-size: 14px; font-weight: 600; color: var(--ink3); }
.ag-m { font-size: 13px; color: var(--ink3); }
.ag-m2 { font-size: 13px; color: var(--ink3); text-align: right; }

/* Вопросы и ответы */
.faq { margin-top: 12px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 0; font-size: 16px; font-weight: 600; letter-spacing: -.012em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px; border-right: 2px solid var(--ink3);
  border-bottom: 2px solid var(--ink3); transform: translateY(-3px) rotate(45deg); transition: transform 200ms var(--ease); }
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq summary:hover { color: var(--acc); }
.faq .a { padding: 0 0 18px; font-size: 15px; line-height: 1.62; color: var(--ink2); max-width: 72ch; }
.faq .a p { margin: 0 0 10px; }
.faq .a p:last-child { margin: 0; }
.faq .a b { color: var(--ink); font-weight: 600; }

/* Текст о выпуске */
.prose { font-size: 16px; line-height: 1.65; color: var(--ink2); max-width: 70ch; }
.prose p { margin: 0 0 14px; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { color: var(--acc); text-decoration: none; }
.prose a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Список материалов */
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin-top: 10px; }
.links a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.links a::after { content: "→"; color: var(--ink3); transition: transform 160ms var(--ease), color 150ms ease; }
.links a:hover { color: var(--acc); }
.links a:hover::after { color: var(--acc); transform: translateX(3px); }

/* Калькулятор покупки */
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.crow span { font-size: 14px; color: var(--ink2); }
.crow b { font-size: 15.5px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; }
.crow small { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink3); }
footer .logo { text-decoration: none; }
.calc-q { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line2); background: var(--bg); }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: none; font-size: 18px; font-weight: 500;
  color: var(--ink2); cursor: pointer; transition: transform 160ms var(--ease), background-color 150ms ease; }
.stepper button:hover { background: var(--bg3); color: var(--ink); }
.stepper button:active { transform: scale(.9); }
.stepper input { width: 64px; height: 38px; border: 0; background: none; text-align: center; font: 600 16px 'Public Sans', sans-serif;
  color: var(--ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { outline: none; }
.stepper:focus-within { box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 3px var(--acc-ring); }
.calc-out { margin-top: 14px; }
.calc-out .row { padding: 10px 0; }
.calc-out .row dt { font-size: 14px; }
.calc-out .row dd { font-size: 15px; }
.calc-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0 2px; }
.calc-total span { font-size: 14px; color: var(--ink2); }
.calc-total b { font-size: 22px; font-weight: 700; letter-spacing: -.03em; }

/* Подсказка поверх, а не внутри прокрутки */
.tip { position: fixed; z-index: 60; max-width: 300px; padding: 10px 12px; border-radius: 10px; background: var(--ink); color: var(--bg);
  font-size: 13px; line-height: 1.45; pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity 140ms ease, transform 140ms var(--ease); }
.tip.on { opacity: 1; transform: none; }

/* Календарь выплат: год строкой, месяц клеткой */
.mc { display: grid; gap: 6px; margin-top: 18px; }
.mc-row { display: grid; grid-template-columns: 44px repeat(12, minmax(0, 1fr)); gap: 6px; align-items: center; }
.mc-head span { font-size: 11.5px; color: var(--ink3); text-align: center; }
.mc-y { font-size: 13px; font-weight: 600; color: var(--ink2); }
.mc-c { position: relative; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.mc-c i { font-style: normal; }
.mc-c i b { font-weight: 400; opacity: .55; margin: 0 2px; }
.mc-two { font-size: 12px; }
.mc-none { background: none; box-shadow: inset 0 0 0 1px var(--line); }
.mc-past { background: var(--bg3); color: var(--ink3); }
.mc-fut { background: var(--acc-soft); color: var(--acc); }
.mc-now { background: var(--acc); color: #fff; }
.mc-unk { box-shadow: none; outline: 1.2px dashed var(--line2); outline-offset: -1.2px; color: var(--ink3); }
.mc-c em { position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; font-style: normal;
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.mc-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 12.5px; color: var(--ink3); }
.mc-legend span { display: inline-flex; align-items: center; gap: 7px; }
.mc-legend i { width: 14px; height: 14px; border-radius: 4px; }

/* Карта доходности: выпуски эмитента и кривая ОФЗ */
.sc-ofz { fill: none; stroke: var(--ink3); stroke-width: 2; stroke-dasharray: 5 4; }
.sc-dot { fill: var(--acc-dim); stroke: var(--bg); stroke-width: 2; }
.sc-dot.me { fill: var(--acc); stroke-width: 3; }
.sc-gap { stroke: var(--acc); stroke-width: 1.5; stroke-dasharray: 2 3; }
.sc-lbl { fill: var(--ink3); font-size: 12px; }
.sc-lbl.strong { fill: var(--ink); font-weight: 600; }
.sc-n { fill: var(--ink3); font-size: 11px; }

/* Навигация по разделам: отметка скользит к текущему */
.spy { position: relative; display: flex; gap: 2px; }
.spy a { position: relative; z-index: 1; display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: var(--ink3); text-decoration: none; white-space: nowrap; transition: color 200ms ease; }
.spy a:hover { color: var(--ink); }
.spy a[aria-current] { color: var(--ink); }
.spy-ind { position: absolute; left: 0; top: 0; z-index: 0; border-radius: 999px; background: var(--bg3);
  transition: transform 260ms var(--ease), width 260ms var(--ease); pointer-events: none; }

/* Переключатель макетов (только у прототипа) */

@media (max-width: 760px) {
  :root { --pad: 16px; }
  html { scroll-padding-top: 120px; }
  .bp-head { gap: 12px; }
  .bp-logo { width: 44px; height: 44px; }
  .bp-name { font-size: 23px; }
  .bp-sub { gap: 2px 12px; }
  .bp-sub > * + *::before { display: none; }
  .tbl .hm { display: none; }
  .tbl { font-size: 14px; }
  .mc-two { font-size: 9px; }
  .mc-two i b { margin: 0; }
  .bp-price-now { font-size: 40px; }
  .bp-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-key > div { padding: 14px 12px 14px 0; }
  .bp-key > div:nth-child(2n) { padding-left: 14px; }
  .bp-key > div:nth-child(3) { padding-left: 0; }
  .bp-key > div:nth-child(3)::before { display: none; }
  .bp-key > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .bp-v { font-size: 23px; }
  .rows { grid-template-columns: minmax(0, 1fr); }
  .bp-sec { padding-top: 36px; }
  .bp-sec > h2, .bp-h2 { font-size: 21px; }
  .tl { grid-auto-flow: row; grid-auto-columns: auto; gap: 18px; }
  .tl::before { left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; }
  .tl-i { display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 14px; padding: 0; }
  .tl-i::before { grid-row: 1 / 4; }
  .tl-d { margin-top: 0; }
  .tl-x { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; scroll-behavior: auto !important; }
}

/* ── из макета: panel.css ── */
/* Макет «Панель», вторая итерация: раскладка, график, события, доход. */

:root { --c-vio: #6d4ae0; --c-vio-soft: #f1edfd; --c-teal: #0c7c87; --c-teal-soft: #e5f5f6; --c-amb: #95620a; --c-amb-soft: #fdf4e3; --pn-bg: #ffffff; }
:root[data-theme="dark"] { --c-vio: #a78bfa; --c-vio-soft: rgba(167, 139, 250, .16); --c-teal: #3fc9d6; --c-teal-soft: rgba(63, 201, 214, .15);
  --c-amb: #f0b84a; --c-amb-soft: rgba(240, 184, 74, .15); --pn-bg: #131519; }

body { background: var(--bg2); }
:root[data-theme="dark"] body { background: var(--bg); }
.v3-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.v3-top .bp-head-r { padding-top: 26px; }
.v3-acts .btn-sec[aria-pressed="true"] { color: var(--star); }

/* Лента ключевых чисел */
.tick { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: auto auto auto; margin-top: 24px; border-radius: 20px;
  background: var(--pn-bg); box-shadow: inset 0 0 0 1px var(--line); }
.tick > div { grid-row: span 3; display: grid; grid-template-rows: subgrid; padding: 16px 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 .bp-k { align-self: end; }
.tick .v { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.tick .v .big { font-size: 26px; }
.tick .s { margin-top: 5px; font-size: 12.5px; color: var(--ink3); white-space: nowrap; }

/* Сетка панелей */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.pn { grid-column: span 12; min-width: 0; border-radius: 20px; padding: 22px 24px; background: var(--pn-bg); box-shadow: inset 0 0 0 1px var(--line); }
.c8 { grid-column: span 8; } .c7 { grid-column: span 7; } .c5 { grid-column: span 5; } .c4 { grid-column: span 4; }
.pn-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pn-h h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.pn-h .muted { font-size: 13px; }

/* Правая колонка: рейтинг сколько есть, остальное добирают события. График
   слева растягивается на всю высоту ряда, поэтому пустот нет при любом
   числе агентств, в том числе при нуле. */
.side { display: flex; flex-direction: column; gap: 16px; min-width: 0; height: 0; min-height: 100%; }
.side > .pn { grid-column: auto; }
.side-fill { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.ags { margin-top: 12px; }
.agl { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; }
.agl-n { font-weight: 600; }
.agl-n i { font-style: normal; font-weight: 400; color: var(--ink3); margin-left: 6px; font-size: 13px; }
.agl b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.agl time { text-align: right; font-size: 13px; color: var(--ink3); }
.agl.off b { font-size: 13px; font-weight: 600; color: var(--ink3); }
.ld { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.ld-h { font-size: 13px; color: var(--ink3); margin-bottom: 6px; }
.ladder { width: 100%; height: auto; display: block; }
.ld-grid { stroke: var(--line); stroke-width: 1; }
.ld-ax { fill: var(--ink3); font-size: 10.5px; }
.ld-leg { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; color: var(--ink3); }
.ld-leg i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Буквы событий: одинаковые на графике, в списке и на полосе выплат */
.ev-dot { flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 11.5px; font-weight: 700; line-height: 1; }
.ev-k { background: var(--acc-soft); color: var(--acc); }
.ev-o { background: var(--c-vio); color: #fff; }
.ev-oc { background: var(--c-vio-soft); color: var(--c-vio); box-shadow: inset 0 0 0 1.5px var(--c-vio); }
.ev-a { background: var(--c-teal); color: #fff; }
.ev-p { background: var(--ink); color: var(--bg); }

.evl { list-style: none; margin: 10px 0 0; padding: 0; flex: 1 1 auto; overflow: hidden; }
.evl li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); }
.evl li:last-child { border-bottom: 0; }
.evl li b { display: block; font-size: 14px; font-weight: 600; }
.evl li span:not(.ev-dot) { display: block; font-size: 12.5px; color: var(--ink3); margin-top: 1px; }
.evl li time { font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; padding-top: 1px; }
.evl li.minor b { font-weight: 500; color: var(--ink2); }
.evl li.minor .ev-dot { opacity: .7; }

/* График */
.chart-pn { display: flex; flex-direction: column; height: 600px; }
.cc-legend { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 14px; min-height: 24px; font-size: 13px; color: var(--ink3); }
.cc-legend b { color: var(--ink); font-weight: 600; }
.cc-legend > b:first-child { font-size: 20px; letter-spacing: -.02em; }
.cc-legend .cc-when { margin-left: auto; }
.cc-keys { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink3); margin-top: 4px; }
.cc-keys i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.cc-host { position: relative; flex: 1 1 0; min-height: 0; overflow: hidden; margin-top: 8px; }
.cc-host table, .cc-host tr, .cc-host td { all: revert; }
.cc-lane { position: relative; height: 34px; margin-top: 2px; border-top: 1px dashed var(--line2); }
.cc-lane .ev { position: absolute; top: 6px; transform: translateX(-50%); width: 20px; height: 20px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; font: 700 10.5px/1 'Public Sans', sans-serif; cursor: default; transition: transform 140ms var(--ease); }
.cc-lane .ev:hover, .cc-lane .ev:focus-visible { transform: translateX(-50%) scale(1.18); z-index: 2; }
.cc-lane .ev.past { opacity: .45; }
.cc-lane .ev.tight { top: 13px; width: 8px; height: 8px; font-size: 0; }
.cc-lane .ev.big { z-index: 1; }
.cc-lane .ev.ev-o, .cc-lane .ev.ev-oc, .cc-lane .ev.ev-a, .cc-lane .ev.ev-p { z-index: 2; box-shadow: 0 0 0 2px var(--pn-bg); }
.cc-lane .ev-k { background: var(--acc-soft); color: var(--acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 35%, transparent); }
.ev-tip { position: absolute; bottom: calc(100% + 8px); transform: translateX(-50%); z-index: 5; width: max-content; max-width: 240px; padding: 9px 11px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.4; pointer-events: none; }
.ev-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.ev-tip i { display: block; font-style: normal; opacity: .7; }
.ev-guide { position: absolute; bottom: 100%; width: 0; border-left: 1px dashed var(--ink3); pointer-events: none; }
.cc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.evchip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 5px; border: 0; border-radius: 999px; background: var(--bg2);
  box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: opacity 150ms ease, transform 160ms var(--ease); }
.evchip:active { transform: scale(.97); }
.evchip[aria-pressed="false"] { opacity: .45; }
.evchip .ev-dot { width: 22px; height: 22px; }
.tv-host { flex: 1 1 auto; min-height: 480px; margin-top: 14px; border-radius: 12px; overflow: hidden; }

/* Карта доходности */
.sc-note { margin-top: 8px; font-size: 12.5px; color: var(--ink3); }

/* Выплаты */
.cf-next { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; margin-top: 18px; align-items: baseline; }
.cf-next .d, .cf-next .a { font-size: 28px; font-weight: 700; letter-spacing: -.035em; }
.cf-next .a { text-align: right; }
.cf-next .s { font-size: 13px; color: var(--ink3); }
.cf-next .s2 { font-size: 13px; color: var(--ink3); text-align: right; }
.pay-strip { margin-top: 14px; }
.ps-ev circle { stroke: var(--pn-bg); stroke-width: 2; }
.ps-ev text { font: 700 10px 'Public Sans', sans-serif; }
.ps-ev.ev-o circle { fill: var(--c-vio); } .ps-ev.ev-o text { fill: #fff; }
.ps-ev.ev-oc circle { fill: var(--c-vio-soft); stroke: var(--c-vio); stroke-width: 1.5; } .ps-ev.ev-oc text { fill: var(--c-vio); }
.ps-ev.ev-a circle { fill: var(--c-teal); } .ps-ev.ev-a text { fill: #fff; }
.ps-ev.ev-p circle { fill: var(--ink); } .ps-ev.ev-p text { fill: var(--bg); }
.face { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.face.one { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.face-h { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--ink2); }
.face-h b { color: var(--ink); font-weight: 600; }
.face-bar { display: flex; gap: 3px; height: 10px; margin-top: 10px; }
.face-bar i { border-radius: 3px; background: var(--c-teal-soft); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c-teal) 40%, transparent); }
.face-bar i.done { background: var(--line2); box-shadow: none; }
.face-leg { display: flex; gap: 3px; margin-top: 6px; font-size: 11.5px; color: var(--ink3); }
.face-leg span { min-width: 0; }
.face-leg b { display: block; color: var(--ink2); font-weight: 600; }
.cf-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; border-top: 1px solid var(--line); }
.cf-sum > div { padding: 14px 0 0; }
.cf-sum > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.cf-sum b { display: block; font-size: 17px; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.cf-sum span { font-size: 12.5px; color: var(--ink3); }

/* Вкладки */
.tabs { position: relative; display: flex; gap: 2px; margin: -4px 0 0; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { position: relative; height: 46px; padding: 0 14px; border: 0; background: none; font-size: 14.5px; font-weight: 600; color: var(--ink3); white-space: nowrap; cursor: pointer; transition: color 150ms ease; }
.tabs button:hover, .tabs button[aria-selected="true"] { color: var(--ink); }
.tabs button .n { margin-left: 6px; font-size: 12px; font-weight: 600; color: var(--ink3); }
.tabs .ti { position: absolute; bottom: -1px; left: 0; height: 2px; background: var(--acc); border-radius: 2px; transition: transform 260ms var(--ease), width 260ms var(--ease); }
.tp { padding-top: 6px; }
.tp[hidden] { display: none; }
.tp .tbl-wrap { max-height: 520px; overflow-y: auto; }
.tp .tbl thead th { position: sticky; top: 0; background: var(--pn-bg); z-index: 1; padding-top: 12px; }
.tab-note { margin: 14px 0 0; font-size: 13px; color: var(--ink3); max-width: 70ch; }
.rows.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.off-row { display: grid; grid-template-columns: 130px 110px minmax(0, 1fr) 150px; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.off-row:last-child { border-bottom: 0; }
.off-row b { font-size: 15px; font-weight: 600; }
.off-row span { font-size: 14px; color: var(--ink2); }
.off-row .r { text-align: right; }

/* Сколько принесёт */
.inc-in { margin-top: 16px; }
.inc-in label { display: block; font-size: 13px; color: var(--ink3); margin-bottom: 6px; }
.inc-field { display: flex; align-items: center; height: 48px; padding: 0 16px; border-radius: 12px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); }
.inc-field:focus-within { box-shadow: inset 0 0 0 1px var(--acc), 0 0 0 3px var(--acc-ring); }
.inc-field input { flex: 1; min-width: 0; border: 0; background: none; font: 700 22px 'Public Sans', sans-serif; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; outline: none; }
.inc-field span { font-size: 18px; font-weight: 600; color: var(--ink3); }
.inc-pre { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.inc-pre button { height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.inc-pre button[aria-pressed="true"] { background: var(--acc-soft); color: var(--acc); box-shadow: none; }
.inc-lead { margin: 18px 0 0; font-size: 15px; line-height: 1.5; color: var(--ink2); }
.inc-lead b { color: var(--ink); font-weight: 600; }
.inc-bar { display: flex; gap: 3px; height: 12px; margin-top: 14px; }
.inc-bar i { border-radius: 4px; }
i.inv { background: var(--line2); } i.cp { background: var(--acc); } i.gain { background: var(--up); } i.loss { background: var(--dn); }
.inc-leg { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 6px; font-size: 13px; color: var(--ink2); }
.inc-leg span { display: flex; align-items: center; gap: 8px; }
.inc-leg span b { margin-left: auto; color: var(--ink); font-weight: 600; }
.inc-leg i { width: 10px; height: 10px; border-radius: 3px; }

/* Вопросы под текстом о выпуске */
.v3-faq { margin-top: 18px; }
.v3-faq .faq + .faq { border-top: 0; margin-top: 0; }
.about-links { margin-top: 18px; }

.m-bar { display: none; }

@media (max-width: 1100px) {
  .c8, .c7, .c5, .c4 { grid-column: span 12; }
  .side { height: auto; min-height: 0; }
  .side { display: grid; grid-template-columns: 1fr 1fr; }
  .side > .pn:only-child { grid-column: 1 / -1; }
  .chart-pn { height: 520px; }
  .tick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tick > div:nth-child(5)::before { display: none; }
  .tick > div:nth-child(n+5) { border-top: 1px solid var(--line); }
  .rows.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .v3-top .bp-head-r { display: none; }
  .side { grid-template-columns: minmax(0, 1fr); }
  .chart-pn { height: 480px; }
  .cc-legend .cc-when { margin-left: 0; }
  .tick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tick > div::before { display: none; }
  .tick > div:first-child { grid-column: span 2; }
  .tick > div:nth-child(n+2) { border-top: 1px solid var(--line); }
  .tick > div:nth-child(2n+1):not(:first-child) { border-left: 1px solid var(--line); }
  .pn { padding: 18px 16px; border-radius: 16px; }
  .grid { gap: 12px; }
  .rows.three { grid-template-columns: minmax(0, 1fr); }
  .off-row { grid-template-columns: minmax(0, 1fr) auto; }
  .off-row span:nth-child(3) { grid-column: 1 / -1; }
  .cf-next .d, .cf-next .a { font-size: 23px; }
  .m-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .m-bar .btn { flex: 1 1 0; height: 44px; padding: 0 10px; }
  .m-bar .btn.icon { flex: 0 0 44px; padding: 0; }
  body { padding-bottom: 72px; }
}

/* ── из макета: panel3.css ── */
/* Третья итерация: три раскладки одной панели без пустот. */

.pn { grid-column: auto; }
.grid > .c12 { grid-column: span 12; }
.grid > div:not(.side) > .pn { height: 100%; }
.grid > div { min-width: 0; }

/* График меньше: пропорция, а не высота соседа */
.lay-rows .grid > div > .chart-pn, .lay-rows .chart-pn { height: 460px; }
.lay-rail .chart-pn { height: 420px; }
.lay-stack .chart-pn { height: 430px; }

/* A. Ряды: справа рейтинг + события, события подстраиваются */
.lay-rows .side { height: 0; min-height: 100%; }
.lay-rows .side .ev-pn { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.lay-rows .side .evl { flex: 1 1 0; }

/* B. Рельс: основная колонка друг под другом, рельс прилипает */
.rl { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; margin-top: 16px; }
.rl-main { display: grid; gap: 16px; min-width: 0; }
.rl-rail { position: sticky; top: 86px; display: grid; gap: 16px; }
.rl-rail .pn { padding: 20px; }
.rl-rail .evl { overflow: visible; }
.lay-rail .rl-rail .inc-pre { margin-top: 6px; }
/* В рельсе калькулятор короче: вместо трёх строк расчёта - итог с расшифровкой */
.lay-rail .rl-rail .inc-sum .crow { display: none; }
.inc-total-sub { display: none; }
.lay-rail .rl-rail .inc-total-sub { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink3); }
.lay-rail .rl-rail .inc-field { height: 44px; }
.lay-rail .rl-rail .inc-lead { margin-top: 14px; font-size: 14px; }

/* C. Лента: всё на всю ширину, внутри раскладывается по горизонтали */
.st { display: grid; gap: 16px; margin-top: 16px; }
.lay-stack .rt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 40px; align-items: start; margin-top: 14px; }
.lay-stack .rt-grid .bp-rate { margin-top: 0; }
.lay-stack .rt-ags .agl:first-child { border-top: 0; }
.lay-stack .rt-hist .ld { margin-top: 0; padding-top: 0; border-top: 0; }
.lay-rail .pay-grid, .lay-stack .pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 40px; grid-template-areas: "a b" "ev b" "sum sum"; }
.pay-grid .pay-a { grid-area: a; } .pay-grid .pay-b { grid-area: b; align-self: start; } .pay-grid .pay-ev { grid-area: ev; } .pay-grid > .cf-sum { grid-area: sum; }
.lay-rows .pay-grid { display: block; }
.pay-ev-h { margin-top: 16px; font-size: 13px; color: var(--ink3); }
.pay-ev .evl { overflow: hidden; margin-top: 4px; }
.lay-stack [data-income] { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px; align-items: start; }
.lay-stack [data-income] > .pn-h { grid-column: 1 / -1; }
.lay-stack [data-income] .inc-out { display: contents; }
.lay-stack [data-income] .inc-story { grid-column: 1; }
.lay-stack [data-income] .inc-sum { grid-column: 2; grid-row: 2 / 4; }

/* Рейтинг: блоки внутри */
.rt-ags { margin-top: 12px; }
.agl-more { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--acc); text-decoration: none; }

/* О выпуске: текст и материалы рядом, вопросы в две колонки ниже */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0 40px; align-items: start; margin-top: 12px; }
.about-grid .prose { font-size: 15.5px; }
.about-grid .about-links { grid-template-columns: 1fr; margin-top: 0; }
.v3-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; margin-top: 22px; }
.v3-faq .faq + .faq { border-top: 1px solid var(--line); margin-top: 12px; }

/* Таблица выпусков эмитента: сортировка по заголовку */
.iss-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 12px 0 0; }
.srt { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; }
.srt span { font-size: 10px; color: var(--ink3); opacity: .6; }
.srt:hover, .srt.on { color: var(--ink); }
.srt.on span { color: var(--acc); opacity: 1; }
.tbl.iss td { font-size: 14px; }
.ev-dot.mini { width: 17px; height: 17px; font-size: 9.5px; margin-right: 6px; vertical-align: -3px; }
.tp [data-scatter] { margin-top: 14px; }

@media (max-width: 1100px) {
  /* На телефоне и планшете одна колонка и один порядок во всех раскладках */
  .grid, .rl, .st { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .grid > div, .rl-main, .rl-rail, .side { display: contents; }
  .rl-rail { position: static; }
  .chart-pn { order: 1; } .rt-pn { order: 2; } .ev-pn { order: 3; } .pay-pn { order: 4; } .inc-pn { order: 5; } #tabs { order: 6; } .about-pn { order: 7; }
  .lay-rows .chart-pn, .lay-rail .chart-pn, .lay-stack .chart-pn { height: 440px; }
  .lay-rail .pay-grid, .lay-stack .pay-grid { display: block; }
  .lay-stack [data-income] { display: block; }
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about-grid .about-links { margin-top: 12px; }
  .v3-faq { grid-template-columns: minmax(0, 1fr); }
  .v3-faq .faq + .faq { border-top: 0; margin-top: 0; }
}
@media (max-width: 760px) {
  .lay-rows .chart-pn, .lay-rail .chart-pn, .lay-stack .chart-pn { height: 400px; }
}

/* ── из макета: panel4.css ── */
/* Четвёртая итерация: первый экран как у попапа, ряды без пустот, вариант без карточек. */

/* Колокольчик рядом со звёздочкой вместо большой кнопки */
.bp-bell { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: -6px; border: 0; border-radius: 50%;
  background: none; color: var(--ink3); cursor: pointer; transition: transform 160ms var(--ease), color 160ms ease, background-color 160ms ease; }
.bp-bell svg { width: 19px; height: 19px; }
.bp-bell:hover { background: var(--bg3); color: var(--ink); }
.bp-bell:active { transform: scale(.9); }
.bp-bell[aria-pressed="true"] { color: var(--acc); }
.bp-bell[aria-pressed="true"] svg path:first-child { fill: currentColor; }

/* Первый экран: цена слева, рейтинг справа, под ними лента чисел */
.hero-pn { padding: 26px 28px 8px; }
.st-top { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px 48px; align-items: center; }
.st-rate { display: grid; gap: 9px; }
.st-rate.none .bp-grade { font-size: 15px; color: var(--ink3); background: var(--bg3); }
.st-rate.none .bp-scale span { background: var(--line2); }
.st-more { font-size: 13px; color: var(--ink3); }
.st-more b { color: var(--ink2); font-weight: 600; }
.st-more a { color: var(--acc); text-decoration: none; font-weight: 600; margin-left: 4px; }
.st-key { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 22px; border-bottom: 0; }
.st-key .bp-v { font-size: 24px; }
.st-key .bp-v em { font-size: 13.5px; }

/* График и выплаты стоят рядом и тянутся до общей высоты */
.chart-pn { display: flex; flex-direction: column; height: auto; }
.chart-pn .cc-host { flex: 1 1 0; min-height: 0; }
.pay-pn { display: flex; flex-direction: column; }
.pay-freq { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 10px; font-size: 14px; color: var(--ink3); }
.pay-freq b { font-size: 15px; color: var(--ink); font-weight: 600; }
.pay-pn .pay-grid { display: block; }
.pay-pn .cf-next { margin-top: 14px; }
.pay-strip { position: relative; }
.ps-bar { transition: opacity 120ms ease; cursor: default; }
.pay-strip svg:hover .ps-bar:not(.hl) { opacity: .55; }
.ps-tip { position: absolute; bottom: calc(100% - 20px); transform: translateX(-50%); z-index: 5; width: max-content; max-width: 240px; padding: 10px 12px;
  border-radius: 10px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; pointer-events: none; }
.ps-tip b { display: block; font-size: 13px; margin-bottom: 3px; }
.ps-tip span { display: block; }
.ps-tip strong { font-weight: 700; }
.ps-tip i { display: block; font-style: normal; opacity: .7; margin-top: 2px; }

/* Таблица выпусков: буква и дата на одной линии */
.tbl .dd { display: inline-flex; align-items: center; gap: 7px; }
.tbl .dd .ev-dot.mini { margin: 0; vertical-align: baseline; }

/* О выпуске: ссылки на статьи внутри ответов и одной строкой внизу */
.about-pn .prose { margin-top: 12px; font-size: 15.5px; max-width: 80ch; }
.faq .a .a-more { margin-top: 8px; }
.faq .a .a-more a { color: var(--acc); font-weight: 600; text-decoration: none; }
.faq .a .a-more a:hover { text-decoration: underline; text-underline-offset: 3px; }
.learn-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }
.learn-line span { color: var(--ink3); }
.learn-line a { color: var(--ink2); text-decoration: none; font-weight: 500; }
.learn-line a:hover { color: var(--acc); }

/* B. Без карточек: те же блоки, но без рамок и подложек. Разница высот
   соседних блоков читается как воздух, а не как пустая коробка. */
.lay-flat body, body.lay-flat { background: var(--bg); }
.lay-flat .pn { background: none; box-shadow: none; border-radius: 0; padding: 0; }
.lay-flat .grid { gap: 0 56px; margin-top: 4px; }
.lay-flat .grid > div { padding: 36px 0; border-top: 1px solid var(--line); }
.lay-flat .grid > div:first-child { border-top: 0; padding-top: 12px; }
.lay-flat .grid > .c7 { border-right: 0; }
.lay-flat .hero-pn { padding: 0; }
.lay-flat .pn-h h2 { font-size: 22px; letter-spacing: -.025em; }
.lay-flat .tabs { margin-top: 0; }

@media (max-width: 1100px) {
  .st-top { grid-template-columns: minmax(0, 1fr); }
  .st-key { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .st-key > div:nth-child(4)::before { display: none; }
  .st-key > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .lay-flat .grid > div { padding: 28px 0; }
  .lay-rows .grid > div > .chart-pn, .lay-flat .grid > div > .chart-pn { height: 440px !important; }
}
@media (max-width: 760px) {
  .hero-pn { padding: 18px 16px 4px; }
  .st-key { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-key > div:nth-child(n) { border-top: 0; padding-left: 0; }
  .st-key > div:nth-child(2n) { padding-left: 14px; }
  .st-key > div:nth-child(2n)::before { display: block; }
  .st-key > div:nth-child(2n+1)::before { display: none; }
  .st-key > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .st-key .bp-v { font-size: 21px; }
}

@media (max-width: 1100px) { .params-pn { order: 5; } }
.cc-head { flex-wrap: wrap; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.cc-legend > span:first-child { color: var(--ink3); }
.cc-legend b.up { color: var(--up); } .cc-legend b.dn { color: var(--dn); }
.cc-legend > b:first-child { font-size: 20px; }

/* Итерация 5: рейтинг справа от названия, метрики прежней панелью */
.v3-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px 40px; align-items: center; }
.head-rate { display: grid; gap: 9px; padding-top: 14px; }
.head-rate .bp-grade { min-width: 64px; height: 50px; font-size: 21px; border-radius: 12px; }
.head-rate.none .bp-grade { font-size: 15px; color: var(--ink3); background: var(--bg3); }
.head-rate .st-more { font-size: 12.5px; }
.lay-rows .grid { margin-top: 16px; }

/* Подсказка у столбика короче */
.ps-tip b { display: flex; justify-content: space-between; gap: 14px; }
.ps-tip b em { font-style: normal; font-weight: 400; opacity: .7; }

/* О выпуске: описание | вопросы | вопросы */
.about3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 48px; align-items: start; }
.about3 h2 { margin: 0 0 12px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; }
.about3 .prose { margin-top: 0; font-size: 15px; line-height: 1.6; }
.about3 .prose p { margin: 0 0 10px; }
.about-faq .v3-faq { margin-top: 0; }
.about-faq .faq summary { font-size: 15px; padding: 14px 0; }
.learn-col { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 18px; font-size: 13px; }
.learn-col span { width: 100%; color: var(--ink3); }
.learn-col a { color: var(--ink2); text-decoration: none; font-weight: 500; }
.learn-col a:hover { color: var(--acc); }
@media (max-width: 1100px) {
  .v3-top { grid-template-columns: minmax(0, 1fr); }
  .head-rate { padding-top: 0; max-width: 420px; }
  .about3 { grid-template-columns: minmax(0, 1fr); }
  .about-faq { margin-top: 24px; }
}

/* Под последним вопросом одна линия, а не две */
.about-faq .faq details:last-child { border-bottom: 0; }
.about-faq .v3-faq { border-bottom: 1px solid var(--line); }
.about-faq .faq { border-top: 1px solid var(--line); }

/* Окно колокольчика: настройка уведомлений по выпуску */
.al-pop { position: absolute; top: calc(100% + 10px); left: 30px; z-index: 30; width: 370px; padding: 16px; border-radius: 16px;
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line), 0 2px 6px rgba(10,11,13,.06), 0 20px 48px rgba(10,11,13,.16);
  transform-origin: 16px 0; }
:root[data-theme="dark"] .al-pop { background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2), 0 20px 48px rgba(0,0,0,.55); }
.al-pop.in { animation: alIn 180ms var(--ease); }
@keyframes alIn { from { opacity: 0; transform: scale(.96) translateY(-4px); } }
.al-h { display: flex; align-items: center; gap: 8px; }
.al-h b { font-size: 16px; font-weight: 600; }
.al-pro { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px; background: #c8f048; color: #0c0c0e; font-size: 11px; font-weight: 700; }
.al-note { margin: 6px 0 10px; font-size: 13px; color: var(--ink3); }
.al-rows { border-top: 1px solid var(--line); }
.al-row { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 14px; cursor: pointer; }
.al-row input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: var(--acc-btn); flex: none; }
.al-l { flex: 1 1 auto; color: var(--ink); }
.al-sel, .al-num { height: 30px; border: 0; border-radius: 8px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line2); color: var(--ink);
  font: 600 13px 'Public Sans', sans-serif; padding: 0 8px; }
:root[data-theme="dark"] .al-sel, :root[data-theme="dark"] .al-num { background: var(--bg3); }
.al-num { width: 56px; text-align: right; }
.al-u { font-size: 12.5px; color: var(--ink3); min-width: 20px; }
.al-ch { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--ink3); }
.al-ch .seg button { height: 28px; padding: 0 10px; font-size: 12.5px; }
.al-f { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; }
.al-f a { font-size: 13px; font-weight: 600; color: var(--acc); text-decoration: none; }
.al-toast { position: fixed; left: 50%; bottom: 72px; z-index: 80; padding: 11px 16px; border-radius: 12px; background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 600; transform: translate(-50%, 8px); opacity: 0; transition: opacity 200ms ease, transform 200ms var(--ease); }
.al-toast.in { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .al-pop { left: -40px; width: calc(100vw - 32px); max-width: 370px; } }
@media (prefers-reduced-motion: reduce) { .al-pop.in { animation: none; } }

/* Карта выпусков эмитента */
.sc-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px 20px; flex-wrap: wrap; margin-bottom: 10px; }
.sc-leg { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--ink3); }
.sc-leg span { display: inline-flex; align-items: center; gap: 7px; }
.sc-leg i { width: 10px; height: 10px; border-radius: 50%; background: var(--acc-dim); }
.sc-leg i.me { background: var(--acc); }
.sc-leg i.ofz { width: 16px; height: 0; border-radius: 0; border-top: 2px dashed var(--ink3); background: none; }
.sc { position: relative; }
.sc-tick { stroke: var(--line2); }
.sc-axt { fill: var(--ink3); font-size: 11.5px; }
.sc-dot { fill: var(--acc-dim); fill-opacity: .85; stroke: var(--pn-bg); stroke-width: 1.5; transition: r 120ms var(--ease); }
.sc-dot.me { fill: var(--acc); fill-opacity: 1; stroke-width: 3; }
.sc-dot.hot { stroke: var(--ink); stroke-width: 2; }
.sc-n { fill: var(--ink2); font-size: 11.5px; }
.sc-n.me { fill: var(--ink); font-size: 12.5px; font-weight: 700; }
.sc-tip { position: absolute; z-index: 5; width: 240px; padding: 11px 13px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.4; pointer-events: none; }
.sc-tip b { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; }
.sc-tip b em { font-style: normal; font-weight: 500; opacity: .7; font-size: 12px; }
.sc-tip-y { margin: 4px 0 8px; opacity: .85; }
.sc-tip-y strong { font-size: 18px; opacity: 1; margin-right: 4px; }
.sc-tip dl { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; margin: 0; }
.sc-tip dt { opacity: .7; } .sc-tip dd { margin: 0; text-align: right; font-weight: 600; }
.sc-tip i { display: block; margin-top: 8px; font-style: normal; opacity: .6; font-size: 12px; }

.sc-dot.off { fill: var(--c-vio); fill-opacity: .7; }
.sc-leg i.off { background: var(--c-vio); opacity: .8; }
.sc-tip { width: 250px; }
.sc-tip-isin { display: block; font-family: 'JetBrains Mono', monospace; font-size: 11px; opacity: .6; margin-top: 1px; }
.sc-tip dl { grid-template-columns: auto 1fr auto 1fr; gap: 3px 10px; }
.sc-tip { width: 330px; }
.sc-tip dt, .sc-tip dd { white-space: nowrap; }

/* Копирование названия выпуска: значок рядом с названием, как у ISIN */
.bp-namecopy { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-left: 2px; border: 0; border-radius: 8px;
  background: none; color: var(--ink3); cursor: pointer; opacity: .55; transition: opacity 150ms ease, background-color 150ms ease, transform 160ms var(--ease); }
.bp-namecopy svg { width: 16px; height: 16px; }
.bp-title-line:hover .bp-namecopy, .bp-namecopy:focus-visible { opacity: 1; }
.bp-namecopy:hover { background: var(--bg3); color: var(--ink); }
.bp-namecopy:active { transform: scale(.92); }
.bp-namecopy.ok { color: var(--up); opacity: 1; }

/* ── переходник: разметка генератора ─────────────────────────────────── */
/* Шапка: в макете это .v3-top, у генератора - section.hero (перед ней
   mark_archived и live-quote.js вставляют плашку архива или дефолта). */
section.hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px 40px; align-items: center; margin: 0; }
section.hero .bp-head { min-width: 0; }
@media (max-width: 1100px) { section.hero { grid-template-columns: minmax(0, 1fr); } section.hero .head-rate { padding-top: 0; max-width: 420px; } }
.head-rate.gov .bp-grade { font-size: 16px; }

/* Звёздочка общая с сайтом (favorites.js ставит .on) */
.bp-star.fav-star { width: 34px; height: 34px; border: 0; background: none; color: var(--ink3); cursor: pointer; border-radius: 50%; }
.bp-star.fav-star.on { color: var(--star); }
.bp-star.fav-star.on svg path { fill: currentColor; stroke: currentColor; }
.bp-namecopy.ok { color: var(--up); }
.issuer-link--plain { color: var(--ink2); }

/* Лента: span - подпись, strong - число, small - пояснение */
.tick { margin-top: 24px; }
.tick > .tk > span { align-self: end; font-size: 13px; color: var(--ink3); line-height: 1.35; text-wrap: balance; }
.tick > .tk > strong { margin-top: 6px; font-size: 21px; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick > .tk:first-child > strong { font-size: 26px; }
.tick > .tk > small { margin-top: 5px; font-size: 12.5px; color: var(--ink3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tick small b { font-weight: 600; }
/* Ширина как в макете: страница шире остальных, у неё семь чисел в ряд */
main.bp-wrap { max-width: 1360px; padding-bottom: 64px; }

/* Предупреждения о риске - сразу под лентой, их нельзя прятать во вкладки */
.bp-notes { display: grid; gap: 10px; margin-top: 12px; }
.bp-notes .risk-flags, .bp-notes .warning { margin: 0; padding: 14px 18px; border-radius: 16px; background: var(--warn-soft); color: var(--ink); font-size: 13.5px; line-height: 1.55; }
.bp-notes .risk-flags ul { margin: 0; padding-left: 18px; }
.bp-notes .risk-flags li + li { margin-top: 6px; }
.bp-notes b { color: var(--warn); }
.risk-flags.archived, .risk-flags.defaulted { margin: 0 0 16px; padding: 14px 18px; border-radius: 16px; background: var(--warn-soft); font-size: 13.5px; line-height: 1.55; }
.risk-flags.archived ul, .risk-flags.defaulted ul { margin: 0; padding-left: 18px; }
.floater-line, .risk-help { margin: 14px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink3); }
.floater-line b { color: var(--ink); }

/* График: общий движок CFChart в панели ряда */
.chart-pn { padding: 18px 20px 14px; }
.chart-pn > .pn-h { margin-bottom: 6px; }
.chart-pn .cfc { flex: 1 1 auto; min-height: 0; }
.chart-empty { display: grid; place-items: center; flex: 1 1 auto; min-height: 240px; text-align: center; color: var(--ink3); font-size: 14px; line-height: 1.55; padding: 0 24px; }

/* Оферты во вкладке */
.off-row.past, .off-row.cancelled { opacity: .55; }
.iss-acts { display: flex; align-items: center; gap: 14px; }
.iss .num-wait { color: var(--ink3); }
/* Узкий экран: график и выплаты друг под другом, высоту графика задаёт он сам.
   Фиксированная высота панели из макета здесь обрезала панель объёма. */
@media (max-width: 1100px) {
  .lay-rows .grid > div > .chart-pn, .lay-rows .chart-pn { height: auto !important; }
}
/* Легенда событий под графиком на странице выпуска не нужна (решение Жени
   23.09.2026): буквы на дорожке объясняют себя подсказкой. */
.chart-pn .cfc-filters { display: none !important; }
.bp-mono { display: grid; place-items: center; width: 100%; height: 100%; font-size: 22px; font-weight: 700; color: var(--ink2); }
/* Сумма купона, которую ещё не объявили, - не число: мельче и приглушённо */
.cf-next .a.tbd { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--ink3); }
/* Подписи в ленте переносятся на вторую строку, а не режутся: у флоатера в
   них формула и база, обрезанные они теряют смысл. */
.tick > .tk > small { white-space: normal; overflow: visible; line-height: 1.35; }
/* Выпуск без сделок: графика нет, выплаты на всю ширину в две колонки */
.pay-pn.wide .pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 0 40px; grid-template-areas: "a b" "sum b"; }
@media (max-width: 1100px) { .pay-pn.wide .pay-grid { display: block; } }
/* Вопросы сеткой по строкам: пара вопросов делит высоту строки, колонки
   кончаются вровень без пустоты под короткой колонкой. */
.v3-faq { display: block; }
.v3-faq .faq-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 0; margin-top: 0; }
.v3-faq .faq-rows details { display: flex; flex-direction: column; justify-content: flex-start; }
.v3-faq .faq-rows summary { flex: 1 1 auto; }
.v3-faq .faq-rows details[open] summary { flex: none; }
.v3-faq .faq-rows details:nth-child(-n+2) { border-top: 1px solid var(--line); }
@media (max-width: 1100px) {
  .v3-faq .faq-rows { grid-template-columns: minmax(0, 1fr); }
  .v3-faq .faq-rows details:nth-child(2) { border-top: 0; }
}
/* Как в макете: над графиком только цена/доходность и периоды, без значков
   инструментов общего движка. */
.chart-pn .cfc-tools { display: none !important; }
.chart-pn .cfc-bar { justify-content: space-between; }
.chart-pn .cc-legend { margin: 12px 0 4px; }
.pn-h .lnk { font-size: 13px; }
/* Переключатели графика - те же пилюли, что в макете (.seg): движок
   CFChart рисует свои, мельче и с синим выбором. cf-chart.css грузится
   позже, поэтому селекторы на ступень конкретнее. */
.chart-pn .cfc-seg { gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); }
.chart-pn .cfc-seg button { min-width: 0; height: 32px; padding: 0 13px; border-radius: 999px; color: var(--ink3);
  font-size: 13px; font-weight: 600; line-height: 1; transition: color 150ms ease, background-color 150ms ease; }
.chart-pn .cfc-seg button:hover:not([aria-pressed="true"]):not(:disabled) { color: var(--ink); }
.chart-pn .cfc-seg button[aria-pressed="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 11, 13, .12); }
:root[data-theme="dark"] .chart-pn .cfc-seg button[aria-pressed="true"] { background: var(--bg3); box-shadow: none; }
/* Вопросик со справкой в ленте: как считается число */
.tick > .tk > span { position: relative; }
.tk-i { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 3px; padding: 0; vertical-align: 1px;
  border: 1px solid var(--line2); border-radius: 50%; background: none; color: var(--ink3); font-size: 10.5px; font-weight: 700; line-height: 1; cursor: help; }
.tk-i:hover, .tk-i:focus-visible, .tk-i.open { color: var(--acc); border-color: var(--acc); }
.tk-tip { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; width: 260px; 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; white-space: normal;
  box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(4px); pointer-events: none;
  transition: opacity 150ms var(--ease), transform 150ms var(--ease), visibility 150ms; }
.tk-i:hover .tk-tip, .tk-i:focus-visible .tk-tip, .tk-i.open .tk-tip { opacity: 1; visibility: visible; transform: none; }
.tick > .tk:nth-child(n+6) .tk-tip { left: auto; right: -40px; }
@media (prefers-reduced-motion: reduce) { .tk-tip { transition: none; } }
