/* Страница акции: общая основа трёх макетов (прототип, 24.09.2026).
 *
 * Мир выбран раньше и не меняется: облик Coinbase портала, как у принятой
 * страницы выпуска (prototypes/bond-page/panel4.html). Public Sans с
 * табличными цифрами, синий - действие и выбранное, лайм - только знак бренда
 * в шапке. Числа на лентах без плиток, панели - один слой с тонкой рамкой.
 *
 * Макеты различаются раскладкой первого экрана и путём по странице; таблица
 * отчётности, дивиденды, отрасль, облигации и вопросы - общие и живут тут.
 */

:root {
  --bg: #ffffff; --bg2: #f7f8fa; --bg3: #eef0f3;
  --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); --acc-dim: #b8cbff;
  --up: #0a7c4a; --dn: #cf202f; --up-soft: #e8f6ef; --dn-soft: #fdeceb;
  --bar: #0052ff; --bar-dim: #b8cbff; --bar-neg: #e5484d; --bar-ltm: #7ea4ff;
  --idx: #8a6d2f;
  --star: #e8a400;
  --pn-bg: #ffffff; --pn-line: #e6e8ec;
  --ltm-bg: #f3f6ff;
  --shadow: 0 1px 2px rgba(10, 11, 13, .04), 0 12px 32px rgba(10, 11, 13, .07);
  --r: 16px; --r-sm: 10px;
  --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-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);
  --bar: #4d8dff; --bar-dim: #2c4474; --bar-neg: #ff6b6b; --bar-ltm: #3b62ad;
  --idx: #d6b56a;
  --star: #f5b93a;
  --pn-bg: #0f1114; --pn-line: #23272e;
  --ltm-bg: rgba(77, 141, 255, .08);
  --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: 88px; scrollbar-color: var(--line2) transparent; }
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; }
.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; }
.nowrap { white-space: nowrap; }

.sp-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.sp-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 20px 0 0; font-size: 13px; color: var(--ink3); }
.sp-crumbs a { text-decoration: none; color: var(--ink2); }
.sp-crumbs a:hover { color: var(--acc); }

/* ── шапка бумаги: название и цена одним блоком, рейтинг эмитента справа ── */
.sp-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px 48px; align-items: center; padding: 18px 0 0; }
.sp-top.solo { grid-template-columns: minmax(0, 1fr); }
.sp-head { display: flex; gap: 18px; align-items: flex-start; min-width: 0; }
.sp-logo { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: var(--ink2); margin-top: 2px; }
.sp-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.sp-logo[data-mono] { background: var(--ink); color: var(--bg); }
.sp-id { min-width: 0; }
.sp-title-line { display: flex; align-items: center; gap: 4px; min-width: 0; }
.sp-name { margin: 0 6px 0 0; font-size: 30px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; }
.sp-icon-btn { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: none; color: var(--ink3); cursor: pointer; transition: transform 160ms var(--ease), color 160ms, background-color 160ms; }
.sp-icon-btn svg { width: 20px; height: 20px; }
.sp-icon-btn:hover { background: var(--bg3); color: var(--ink); }
.sp-icon-btn:active { transform: scale(.9); }
.sp-icon-btn[aria-pressed="true"] { color: var(--star); }
.sp-icon-btn[aria-pressed="true"] svg path { fill: currentColor; }
.sp-icon-btn[data-bell][aria-pressed="true"] { color: var(--acc); }
.sp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 2px; font-size: 14px; color: var(--ink3); }
.sp-sub > * + *::before { content: "·"; margin-right: 8px; color: var(--line2); }
.sp-sub b { font-weight: 600; color: var(--ink2); }
.sp-sub a { color: var(--ink2); text-decoration: none; border-bottom: 1px dotted var(--line2); }
.sp-sub a:hover { color: var(--acc); border-bottom-color: var(--acc); }
.sp-quote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; }
.sp-price-now { font-size: 32px; font-weight: 700; letter-spacing: -.035em; line-height: 1; white-space: nowrap; }
.sp-chg { font-size: 15px; font-weight: 600; white-space: nowrap; }
.sp-when { font-size: 13px; color: var(--ink3); }
.sp-rate { display: grid; gap: 9px; }
.sp-rate-top { display: flex; align-items: center; gap: 14px; }
.sp-grade { flex: none; min-width: 64px; height: 50px; padding: 0 12px; border-radius: 12px; display: grid; place-items: center;
  background: var(--acc-soft); color: var(--acc); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.sp-rate-txt { font-size: 13px; color: var(--ink3); line-height: 1.4; }
.sp-rate-txt b { display: block; color: var(--ink); font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.sp-scale { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; }
.sp-scale span { height: 7px; border-radius: 2px; background: var(--line2); }
.sp-scale span.dim { background: color-mix(in srgb, var(--acc) 30%, var(--line2)); }
.sp-scale span.on { background: var(--acc); }
.sp-scale-leg { display: grid; grid-template-columns: repeat(9, 1fr); font-size: 11px; color: var(--ink3); }
.sp-scale-leg span:nth-child(2) { grid-column: 5; text-align: center; }
.sp-scale-leg span:nth-child(3) { grid-column: 7; text-align: center; }
.sp-scale-leg span:nth-child(4) { grid-column: 9; text-align: right; }
.sp-rate-more { font-size: 12.5px; color: var(--ink3); }
.sp-rate-more b { color: var(--ink2); font-weight: 600; }
.sp-rate-more a { color: var(--acc); text-decoration: none; font-weight: 600; display: inline-flex; align-items: center; gap: 3px; }
.sp-rate-more a:hover { color: var(--acc-h); }

/* ── панели ─────────────────────────────────────────────────────────── */
.pn { background: var(--pn-bg); border: 1px solid var(--pn-line); border-radius: var(--r); padding: 22px 24px; min-width: 0; }
.pn + .pn, .sp-row + .pn, .pn + .sp-row, .sp-row + .sp-row { margin-top: 16px; }
.pn-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 4px; }
.pn-h h2, .pn-h h3 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.pn-note { margin: 0 0 16px; font-size: 13.5px; color: var(--ink3); }
.sp-row { display: grid; gap: 16px; }
.sp-row > .pn { margin-top: 0 !important; }
[data-seo] { display: block; margin-top: 16px; }
[data-seo] > .pn + .pn { margin-top: 16px; }
.sp-section { scroll-margin-top: 88px; }

/* лента чисел без плиток */
.ribbon { display: grid; grid-template-columns: repeat(var(--n, 7), minmax(0, 1fr)); padding: 0; }
.ribbon > div { padding: 18px 20px; min-width: 0; }
.ribbon > div + div { border-left: 1px solid var(--line); }
.rb-l { font-size: 13px; color: var(--ink3); line-height: 1.3; }
.rb-v { margin-top: 6px; font-size: 21px; font-weight: 650; letter-spacing: -.02em; line-height: 1.15; white-space: nowrap; }
.rb-s { margin-top: 4px; font-size: 12.5px; color: var(--ink3); line-height: 1.35; }

/* сегменты */
.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 { border: 0; background: none; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink2);
  cursor: pointer; transition: background-color 150ms, color 150ms; white-space: nowrap; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--pn-bg); color: var(--ink); box-shadow: 0 1px 2px rgba(10, 11, 13, .08), 0 0 0 1px var(--line); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: var(--bg3); }
.seg button:disabled { opacity: .4; cursor: default; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; user-select: none; }
.chk input { accent-color: var(--acc); width: 15px; height: 15px; margin: 0; }
.chk i { width: 14px; height: 2px; border-radius: 2px; background: var(--idx); }

.btn-link { border: 0; background: none; padding: 0; color: var(--acc); font-weight: 600; font-size: 13.5px; cursor: pointer; text-decoration: none; }
.btn-link:hover { color: var(--acc-h); }
.btn-ghost { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2);
  background: var(--pn-bg); font-size: 13px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: border-color 150ms, color 150ms; }
.btn-ghost:hover { border-color: var(--ink3); color: var(--ink); }

/* ── график цены ────────────────────────────────────────────────────── */
.pc { display: flex; flex-direction: column; min-width: 0; }
.pc-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pc-sum { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: baseline; gap: 4px 14px; font-size: 13.5px; color: var(--ink3); }
.pc-bar { margin-bottom: 10px; }
.pc-ix { display: inline-flex; align-items: baseline; gap: 6px; }
.pc-ix i { width: 12px; height: 2px; border-radius: 2px; background: var(--idx); align-self: center; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: none;
  font-size: 12.5px; font-weight: 650; color: var(--ink2); cursor: pointer; transition: border-color 150ms, background-color 150ms, color 150ms; }
.chip i { width: 12px; height: 2px; border-radius: 2px; background: var(--idx); }
.chip:hover { border-color: var(--ink3); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--acc-soft); border-color: transparent; color: var(--acc); }
.pc-sum b { font-weight: 650; }
.pc-host { position: relative; flex: 1 1 auto; min-height: 300px; }
.pc-host > div { position: absolute !important; inset: 0; }
.pc-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink3); }
.pc-lane { position: relative; height: 24px; margin-top: 2px; }
.pc-ev { position: absolute; top: 2px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; font-size: 10.5px; font-weight: 750; cursor: default; background: var(--bg3); color: var(--ink2); }
.pc-ev[data-k="d"] { background: var(--acc-soft); color: var(--acc); }
.pc-ev[data-k="r"] { background: var(--bg3); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--line2); }
.pc-ev[data-k="s"] { background: var(--ink); color: var(--bg); }
.pc-ev[data-future] { background: none; box-shadow: inset 0 0 0 1.5px currentColor; }
.pc-ev.dot { width: 7px; height: 7px; top: 8px; font-size: 0; }

/* подсказка общая */
.tip { position: fixed; z-index: 60; pointer-events: none; min-width: 150px; max-width: 280px; padding: 10px 12px; border-radius: 10px;
  background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow); opacity: 0; transform: translateY(4px);
  transition: opacity 120ms, transform 120ms var(--ease); }
.tip[data-on] { opacity: 1; transform: none; }
.tip b { font-weight: 650; }
.tip .t-l { opacity: .7; }

/* ── столбики по годам (SVG) ────────────────────────────────────────── */
.yb { width: 100%; display: block; overflow: visible; }
.yb text { font: 500 11px 'Public Sans', system-ui, sans-serif; fill: var(--ink3); }
.yb .v { font-weight: 650; fill: var(--ink2); font-size: 11px; }
.yb .base { stroke: var(--line2); stroke-width: 1; }
.yb .grid { stroke: var(--line); stroke-width: 1; }
.yb path.bp { fill: var(--bar); }
.yb path.bp.neg { fill: var(--bar-neg); }
.yb path.bp.ltm { fill: var(--bar-ltm); }
.yb path.bp.dim { fill: var(--bar-dim); }
.yb rect.hit { fill: transparent; cursor: default; }
.yb g.col:hover path.bp { opacity: .82; }
.yb .ltm-sep { stroke: var(--line2); stroke-dasharray: 3 3; }

/* ── таблица отчётности ─────────────────────────────────────────────── */
.ft-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.ft-tools .sp { flex: 1 1 auto; }
.ft-scroll { overflow-x: auto; margin: 0 -24px; padding: 0 24px; scrollbar-width: thin; }
.ft { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; font-size: 14px; min-width: 760px; }
.ft col.c-nm { width: 300px; }
.ft col.c-5 { width: 112px; }
.ft col.c-l { width: 96px; }
.ft-narrow .ft col.c-nm { width: 220px; }
.ft th.cagr small { display: block; font-weight: 500; font-size: 11px; color: var(--ink3); line-height: 1.1; }
.ft th, .ft td { padding: 0 10px; height: 38px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line); }
.ft thead th { height: 40px; font-size: 12.5px; font-weight: 600; color: var(--ink3); border-bottom-color: var(--line2); position: sticky; top: 0; background: var(--pn-bg); }
.ft th:first-child, .ft td:first-child { text-align: left; position: sticky; left: 0; z-index: 1; background: var(--pn-bg); padding-left: 0; }
.ft td.ltm, .ft th.ltm { background: var(--ltm-bg); font-weight: 650; }
.ft th.ltm small { display: block; font-weight: 500; font-size: 11px; color: var(--ink3); line-height: 1.1; }
.ft thead th.ltm { line-height: 1.2; }
.ft td.cagr, .ft th.cagr { color: var(--ink2); padding-right: 0; }
.ft tr.grp td { height: 44px; padding-top: 14px; font-size: 12.5px; font-weight: 700; color: var(--ink); border-bottom-color: var(--line2);
  letter-spacing: .01em; vertical-align: bottom; }
.ft .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ft .nm button { all: unset; cursor: pointer; display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; border-radius: 6px; }
.ft .nm button:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
.ft .nm .lb { overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.ft tr.row:hover td { background: var(--bg2); }
.ft tr.row:hover td.ltm { background: var(--ltm-bg); }
.ft tr.row[aria-expanded="true"] td { border-bottom-color: transparent; }
.ft .chev { flex: none; width: 16px; height: 16px; color: var(--ink3); transition: transform 200ms var(--ease); }
.ft tr.row[aria-expanded="true"] .chev { transform: rotate(90deg); color: var(--acc); }
.ft .spk { flex: none; margin-left: auto; }
.ft .spk rect { fill: var(--bar-dim); }
.ft .spk rect.l { fill: var(--bar); }
.ft .spk rect.n { fill: var(--bar-neg); opacity: .55; }
.ft td.na { color: var(--line2); }
.ft td .dn, .ft td .up { font-weight: 600; }
.ft tr.x td { padding: 6px 0 18px; height: auto; background: var(--pn-bg) !important; position: static; }
.ft tr.x .x-in { position: sticky; left: 0; width: min(100%, calc(100vw - 96px)); max-width: 1100px; }
.ft-narrow .ft th, .ft-narrow .ft td { padding: 0 7px; }
.ft-narrow .ft .spk { display: none; }
.ft-narrow .ft td.cagr, .ft-narrow .ft th.cagr { padding-right: 0; }
.tb-scroll { overflow-x: auto; }
.ft-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 14px; font-size: 12.5px; color: var(--ink3); }
.x-h { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--ink3); }
.x-h b { color: var(--ink); font-size: 15px; font-weight: 650; }

/* компактный срез, когда отчётности нет по годам (Казахстан) */
.snap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.snap > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.snap > div:nth-child(3n+2), .snap > div:nth-child(3n) { padding-left: 20px; border-left: 1px solid var(--line); }

/* ── дивиденды ──────────────────────────────────────────────────────── */
.dv-facts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.dv-facts > div { padding: 14px 16px; min-width: 0; }
.dv-facts > div:first-child { padding-left: 0; }
.dv-facts > div + div { border-left: 1px solid var(--line); }
.dv-facts .rb-v { font-size: 20px; }
.dv-facts .dv-nx .rb-v { color: var(--acc); }
.dv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.dv > div { min-width: 0; }
.dv-more { margin: 10px 0 0; }
.st { white-space: nowrap; 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); }
.st[data-s="declared"] { background: var(--acc-soft); color: var(--acc); }
.st[data-s="record"] { background: var(--up-soft); color: var(--up); }

.tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.tb th, .tb td { text-align: right; padding: 0 8px; height: 40px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tb th { font-size: 12.5px; font-weight: 600; color: var(--ink3); height: 36px; border-bottom-color: var(--line2); }
.tb th:first-child, .tb td:first-child { text-align: left; padding-left: 0; }
.tb th:last-child, .tb td:last-child { padding-right: 0; }
.tb tr.me td { background: var(--acc-soft); }
.tb tr.me td:first-child { box-shadow: inset 3px 0 0 var(--acc); padding-left: 10px; }
.tb tr.med td { color: var(--ink3); font-style: normal; border-bottom: 0; }
.tb a { text-decoration: none; color: var(--ink); font-weight: 600; }
.tb a:hover { color: var(--acc); }
.co { display: flex; align-items: center; gap: 10px; }
.co img, .co .ph { width: 24px; height: 24px; border-radius: 50%; flex: none; background: var(--bg3); object-fit: cover; }
.co small { color: var(--ink3); font-size: 12px; font-weight: 500; }

/* ── рейтинг эмитента ───────────────────────────────────────────────── */
.rt { display: flex; gap: 16px; align-items: center; }
.rt-badge { flex: none; width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--acc-soft);
  color: var(--acc); font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.rt-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 3px; margin-top: 8px; }
.rt-scale i { height: 6px; border-radius: 3px; background: var(--bg3); }
.rt-scale i.on { background: var(--acc); }
.rt-scale i.lit { background: var(--acc-dim); }

/* ── о компании и вопросы ───────────────────────────────────────────── */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.facts > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.facts > div span:first-child { color: var(--ink3); }
.facts > div span:last-child { font-weight: 600; text-align: right; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; font-weight: 600; font-size: 15px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 18px; height: 18px; color: var(--ink3); transition: transform 200ms var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0 0 16px; color: var(--ink2); font-size: 14.5px; max-width: 70ch; }
.similar { display: flex; flex-wrap: wrap; gap: 8px; }
.similar a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line2);
  text-decoration: none; font-size: 14px; font-weight: 600; }
.similar a:hover { border-color: var(--acc); color: var(--acc); }
.similar img, .similar .ph { width: 24px; height: 24px; border-radius: 50%; background: var(--bg3); }

/* ── окно полной истории дивидендов ───────────────────────────────── */
.dlg { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0;
  display: grid; place-items: center; color: var(--ink); background: rgba(10, 11, 13, .45); animation: dlg-fade 200ms ease-out; }
:root[data-theme="dark"] .dlg { background: rgba(0, 0, 0, .66); }
.dlg[data-closing] { opacity: 0; transition: opacity 150ms ease-out; }
.dlg:not([open]) { display: none; }
.dlg::backdrop { background: transparent; }
.dlg-in { width: min(720px, calc(100vw - 32px)); max-height: min(80vh, 760px); display: flex; flex-direction: column; background: var(--pn-bg);
  border-radius: 18px; box-shadow: var(--shadow), 0 0 0 1px var(--pn-line); overflow: hidden; animation: dlg-in 220ms cubic-bezier(.23, 1, .32, 1); }
.dlg[data-closing] .dlg-in { opacity: 0; transform: scale(.98); transition: opacity 150ms ease-out, transform 150ms ease-out; }
.dlg-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 24px 14px; border-bottom: 1px solid var(--line); }
.dlg-h h2 { margin: 0; font-size: 20px; font-weight: 650; letter-spacing: -.02em; }
.dlg-h p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink3); }
.dlg-x { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin: -6px -8px 0 0; border: 0; border-radius: 50%; background: none;
  color: var(--ink3); cursor: pointer; transition: background-color 150ms, color 150ms, transform 160ms ease-out; }
.dlg-x:hover { background: var(--bg3); color: var(--ink); }
.dlg-x:active { transform: scale(.94); }
.dlg-b { overflow-y: auto; padding: 0 24px 20px; overscroll-behavior: contain; scrollbar-width: thin; }
.dlg-t thead th { position: sticky; top: 0; z-index: 1; background: var(--pn-bg); }
.dlg-t tr.yr td { height: 44px; padding-top: 14px; vertical-align: bottom; font-weight: 700; color: var(--ink); border-bottom-color: var(--line2); }
.dlg-t tr.yr td:last-child { font-weight: 600; color: var(--ink3); font-size: 13px; }
@keyframes dlg-in { from { opacity: 0; transform: scale(.97); } }
@keyframes dlg-fade { from { opacity: 0; } }
@media (max-width: 720px) {
  .dlg { place-items: end stretch; }
  .dlg-in { width: 100%; max-height: 88vh; border-radius: 18px 18px 0 0; animation: dlg-up 260ms cubic-bezier(.32, .72, 0, 1); }
  .dlg[data-closing] .dlg-in { transform: translateY(100%); opacity: 1; transition: transform 180ms ease-out; }
  .dlg-h { padding: 18px 16px 12px; } .dlg-b { padding: 0 12px 20px; }
  .dlg-t { font-size: 13px; }
  .dlg-t th, .dlg-t td { padding: 0 4px; }
  .dlg-t .st { height: 20px; padding: 0 6px; font-size: 11px; }
  .dlg-t tr.yr td:last-child { font-size: 12px; }
}
@keyframes dlg-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .dlg-in { animation: dlg-fade 150ms ease-out !important; } }
html:has(.dlg[open]) { overflow: hidden; }

/* ── отрасль ───────────────────────────────────────────────────────── */
.soft { color: var(--ink3); font-size: 12.5px; }
.tb.peers td, .tb.peers th { padding: 0 10px; }

/* ── лента в две строки (сетка) ─────────────────────────────────────── */
.ribbon-grid > div { border-left: 0 !important; }
.ribbon-grid > div:not(:nth-child(4n+1)) { border-left: 1px solid var(--line) !important; }
.ribbon-grid > div:nth-child(n+5) { border-top: 1px solid var(--line); }

/* ── SEO-блок: факты сеткой без дыр, вопросы в две колонки ───────────── */
.seo-lead { margin: 8px 0 20px; font-size: 15.5px; line-height: 1.6; color: var(--ink2); max-width: 90ch; }
.seo-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.seo-facts > div { display: flex; flex-direction: column; gap: 3px; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.seo-facts > div:not(:nth-child(4n+1)) { padding-left: 16px; border-left: 1px solid var(--line); }
.seo-facts span { font-size: 12.5px; color: var(--ink3); }
.seo-facts b { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.seo-facts a { color: var(--acc); text-decoration: none; }
.faq2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 40px; margin-top: 6px; }
.faq2 > div { min-width: 0; }
.faq details p a { color: var(--acc); text-decoration: none; }
.seo-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; border-top: 1px solid var(--line); }
.seo-links a { display: flex; flex-direction: column; gap: 3px; padding: 16px 16px 4px 0; text-decoration: none; min-width: 0; }
.seo-links a + a { padding-left: 16px; border-left: 1px solid var(--line); }
.seo-links b { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 650; color: var(--ink); }
.seo-links span { font-size: 13px; color: var(--ink3); }
.seo-links a:hover b { color: var(--acc); }
.seo-sim { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink3); }
.seo-sim span { margin-right: 6px; }
.seo-sim a { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 5px; border-radius: 999px; border: 1px solid var(--line2);
  text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.seo-sim a:hover { border-color: var(--acc); color: var(--acc); }
.seo-sim img { width: 22px; height: 22px; border-radius: 50%; }

@media (max-width: 1100px) {
  .sp-top { grid-template-columns: minmax(0, 1fr); }
  .sp-rate { max-width: 420px; }
  .dv-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dv-facts > div:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .dv-facts > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .seo-facts, .seo-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seo-facts > div:nth-child(n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .seo-facts > div:nth-child(2n+1) { padding-left: 0; border-left: 0; }
  .seo-links a:nth-child(3) { padding-left: 0; border-left: 0; }
  .ribbon { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ribbon > div:nth-child(4n+1) { border-left: 0; }
  .ribbon > div:nth-child(n+5) { border-top: 1px solid var(--line); }
  .dv { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .sp-name { font-size: 25px; }
  .sp-logo { width: 48px; height: 48px; }
  .sp-head { gap: 12px; }
  .sp-price-now { font-size: 27px; }
  .pc-sum { justify-content: flex-start; order: 3; flex-basis: 100%; }
  .dv-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dv-facts > div:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .dv-facts > div:nth-child(2n) { border-left: 1px solid var(--line); padding-left: 14px; }
  .dv-facts > div:nth-child(-n+2) { border-top: 0; }
  .dv-facts > div:last-child:nth-child(odd) { grid-column: span 2; }
  .faq2 { grid-template-columns: 1fr; }
  .pn { padding: 18px 16px; border-radius: 14px; }
  .ft-scroll { margin: 0 -16px; padding: 0 16px; }
  .ribbon { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ribbon > div { padding: 14px 16px; }
  .ribbon > div:nth-child(n) { border-left: 0; border-top: 1px solid var(--line); }
  .ribbon > div:nth-child(2n) { border-left: 1px solid var(--line); }
  .ribbon > div:nth-child(-n+2) { border-top: 0; }
  .rb-v { font-size: 18px; }
  .ribbon > div:last-child:nth-child(odd) { grid-column: span 2; }
  .facts { grid-template-columns: 1fr; }
  .snap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .snap > div:nth-child(n) { padding-left: 0; border-left: 0; }
  .snap > div:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .ft col.c-nm { width: 180px !important; }
  .ft { min-width: 620px; }
  .ft .spk { display: none; }
  .tb.wide { min-width: 560px; }
  .tb-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.lead-f { margin: 4px 0 20px; font-size: 16.5px; line-height: 1.5; max-width: 72ch; }
.sp-wrap > .pn:first-of-type { margin-top: 22px; }
.sp-wrap > .ribbon { margin-top: 22px; }
.ft-src { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; }
.ft-src a { color: var(--acc); text-decoration: none; font-weight: 600; }
.ft-src a:hover { color: var(--acc-h); }
[data-copy] { cursor: copy; }
.sp-name[data-copy]:hover, .sp-sub b[data-copy]:hover { color: var(--acc); }
