/* CRYPT.ru
   Цвет: фирменный синий из логотипа (#207daf), холодная бумага днём, глубокий синий ночью.
   Шрифт: Onest (variable, кириллица + латиница, ~50 КБ). Цифры времени — табличные.
   Главный приём — лента как цепочка блоков: время, узел, заголовок. Всё остальное тихое. */

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #111a26;
  --ink-2: #4a5668;
  --line: #d9e0e8;
  --brand: #1a6c9c;
  --brand-bright: #207daf;
  --node: #ffffff;
  --up: #0e8a5a;
  --down: #cc3b33;

  --step--1: .8125rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.625rem;
  --step-3: 2.0625rem;
  --step-4: 2.5625rem;

  --wrap: 75rem;
  --gutter: 1rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1520; --surface: #142030; --ink: #e3e9f1; --ink-2: #93a1b4;
    --line: #22324a; --brand: #6cbcf0; --brand-bright: #3a9ad6; --node: #0d1520; --up: #3ccf8e; --down: #ff6b61;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1520; --surface: #142030; --ink: #e3e9f1; --ink-2: #93a1b4;
  --line: #22324a; --brand: #6cbcf0; --brand-bright: #3a9ad6; --node: #0d1520; --up: #3ccf8e; --down: #ff6b61;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 var(--step-0)/1.55 Onest, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-optical-sizing: auto;
}
h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 3px; border-radius: 2px; }
img { max-width: 100%; height: auto; display: block; }
time { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }

/* ---------- шапка ---------- */
.masthead { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.masthead-row { display: flex; align-items: center; gap: 2rem; min-height: 4rem; }
.brand { display: flex; align-items: center; gap: .625rem; color: var(--brand-bright); }
.brand:hover { color: var(--brand-bright); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { color: var(--ink); font-weight: 800; font-size: 1.5rem; letter-spacing: .02em; }
.brand-tld { color: var(--brand-bright); font-weight: 700; letter-spacing: 0; text-transform: lowercase; }
.brand-tag { color: var(--ink-2); font-size: .6875rem; margin-top: .25rem; }
.sections { display: flex; gap: 1.5rem; flex: 1; overflow-x: auto; scrollbar-width: none; }
.sections a { color: var(--ink-2); font-weight: 500; white-space: nowrap; padding: .25rem 0; border-bottom: 2px solid transparent; }
.sections a:hover { color: var(--ink); }
.sections a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand-bright); }
.theme-toggle {
  flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; margin-right: -.5rem;
  background: none; border: 0; border-radius: 50%; color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { color: var(--ink); background: var(--surface); }
:root[data-theme="dark"] .theme-toggle svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle svg { transform: rotate(180deg); } }
@media (max-width: 640px) {
  .masthead-row { flex-wrap: wrap; gap: 0 1rem; padding-top: .5rem; }
  .brand { flex: 1; }
  .sections { order: 3; flex-basis: 100%; padding: .5rem 0 .625rem; }
  .brand-tag { display: none; }
}

/* ---------- статья дня ---------- */
.daily {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 2.5rem; align-items: center;
  padding: 2.5rem 0; border-bottom: 1px solid var(--line);
}
.daily-img img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.daily-label { color: var(--brand); font-weight: 600; margin-bottom: .75rem; }
.daily h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.daily-lead { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; margin-top: 1rem; max-width: 34em; }
@media (max-width: 860px) {
  .daily { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 0; }
  .daily h1 { font-size: var(--step-3); }
  .daily-lead { font-size: var(--step-0); }
}

/* ---------- колонки ---------- */
.columns { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 3.5rem; padding-top: 1rem; }
.columns-single { grid-template-columns: minmax(0, 47.5rem); }
@media (max-width: 960px) { .columns { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- лента-цепочка ---------- */
.chain { --time: 3.25rem; --rail: 1.75rem; list-style: none; margin: 0; padding: 0; position: relative; }
.chain::before {
  content: ""; position: absolute; top: 1.5rem; bottom: 1.5rem;
  left: calc(var(--time) + var(--rail) / 2); width: 1px;
  background: color-mix(in srgb, var(--brand-bright) 30%, var(--line));
}
.chain-day { padding: 1.75rem 0 .5rem calc(var(--time) + var(--rail)); }
.chain-day p { font-size: var(--step--1); font-weight: 600; color: var(--ink-2); }
.chain-day:first-child { padding-top: 1rem; }
.chain-item {
  display: grid; grid-template-columns: var(--time) var(--rail) minmax(0, 1fr) auto;
  align-items: start; padding: .875rem 0; position: relative;
}
.chain-item > time { grid-column: 1; color: var(--ink-2); font-size: var(--step--1); font-weight: 500; padding-top: .2rem; }
.chain-item::before {
  /* узел цепочки — маленький блок */
  content: ""; grid-column: 2; justify-self: center;
  width: .5625rem; height: .5625rem; border: 1.5px solid var(--brand-bright); background: var(--node);
  border-radius: 2px; position: relative; z-index: 1; margin-top: .55rem;
}
.chain-item.is-article::before { background: var(--brand-bright); width: .75rem; height: .75rem; margin-top: .47rem; }
.chain-body { grid-column: 3; min-width: 0; }
.chain-body h3 { font-size: var(--step-1); line-height: 1.3; font-weight: 600; text-wrap: pretty; }
.chain-body p { color: var(--ink-2); margin-top: .375rem; }
.chain-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: var(--step--1); }
.chain-meta:empty { display: none; }
.chain-meta a { color: var(--brand); font-weight: 500; }
.chain-thumb { grid-column: 4; margin-left: 1.25rem; }
.chain-thumb img { width: 7rem; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.chain-empty { padding: 2rem 0; color: var(--ink-2); }
.sources-count { color: var(--ink-2); }
.sources-count::before { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-right: .375rem; border: 1.5px solid currentColor; border-radius: 2px; box-shadow: 3px -3px 0 -1.5px var(--bg), 3px -3px 0 0 currentColor; vertical-align: .05em; }
@media (max-width: 640px) {
  .chain { --time: 2.75rem; --rail: 1.25rem; }
  .chain-body h3 { font-size: var(--step-0); }
  .chain-thumb img { width: 4.5rem; aspect-ratio: 1; }
  .chain-thumb { margin-left: .75rem; }
}

.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 2rem 0 0 calc(3.25rem + 1.75rem); padding-top: 1.25rem; border-top: 1px solid var(--line); }
.pager a { color: var(--brand); font-weight: 600; }
.pager-num { color: var(--ink-2); font-size: var(--step--1); }
@media (max-width: 640px) { .pager { margin-left: 0; } }

/* ---------- боковая колонка ---------- */
.column-side { padding-top: 1rem; }
.side-block + .side-block { margin-top: 2.5rem; }
.side-block h2 { font-size: var(--step-0); padding-bottom: .625rem; border-bottom: 2px solid var(--ink); }
.side-list, .side-cards { list-style: none; margin: 0; padding: 0; }
.side-list li { display: grid; grid-template-columns: 2.75rem 1fr; gap: .5rem; padding: .625rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; line-height: 1.4; }
.side-list time { color: var(--ink-2); font-size: var(--step--1); padding-top: .1rem; }
.side-cards li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.side-cards img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: .625rem; }
.side-card-title { font-weight: 600; line-height: 1.35; }

/* ---------- страница рубрики ---------- */
.page-head { padding: 2.25rem 0 .5rem; max-width: 47.5rem; }
.page-head h1 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -.02em; }
.page-head p { color: var(--ink-2); margin-top: .75rem; font-size: var(--step-1); }

/* ---------- материал ---------- */
.story { max-width: 47.5rem; margin: 0 auto; padding-top: 2.25rem; }
.story-meta { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; color: var(--ink-2); }
.story-meta a:first-child { color: var(--brand); font-weight: 600; }
.story h1 { font-size: var(--step-4); line-height: 1.12; letter-spacing: -.02em; margin-top: .875rem; text-wrap: balance; }
.story-lead { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); margin-top: 1.125rem; }
.story-cover { margin: 1.75rem 0 0; }
.story-cover img { width: 100%; border-radius: 4px; }
.story-cover figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: .5rem; }
@media (max-width: 640px) { .story h1 { font-size: var(--step-3); } .story-lead { font-size: 1.125rem; } }

.prose { font-size: 1.125rem; line-height: 1.7; margin-top: 1.75rem; }
.prose > * + * { margin-top: 1.1em; }
.prose p { margin: 0; }
.prose a { color: var(--brand); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
/* внутренние автоссылки — спокойно: цвет текста, тонкое подчёркивание */
.prose a.autolink { color: inherit; text-decoration-color: color-mix(in srgb, var(--brand-bright) 55%, transparent); }
.prose a.autolink:hover { color: var(--brand); }
.prose h2 { font-size: var(--step-2); line-height: 1.25; margin-top: 1.8em; }
.prose h3 { font-size: var(--step-1); line-height: 1.3; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-left: 0; margin-right: 0; padding-left: 1.25rem; border-left: 3px solid var(--brand-bright); color: var(--ink-2); }
.prose img { border-radius: 4px; }
.prose figure { margin-left: 0; margin-right: 0; }
.prose figcaption { font-size: var(--step--1); color: var(--ink-2); margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; font-size: .9375rem; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: .5rem .75rem .5rem 0; text-align: left; }
.prose pre { background: var(--surface); padding: 1rem; overflow-x: auto; font-size: .875rem; border-radius: 4px; }
.prose .source-note { font-size: .9375rem; color: var(--ink-2); }

.story-sources { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.story-sources h2 { font-size: var(--step-0); }
.story-sources ul { list-style: none; margin: .75rem 0 0; padding: 0; }
.story-sources li { display: flex; flex-wrap: wrap; gap: 0 .75rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.story-sources li a { font-weight: 600; color: var(--brand); }
.story-sources li span { color: var(--ink-2); }
.story-tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 0; padding: 0; }
.story-tags a { display: inline-block; font-size: .875rem; padding: .3rem .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); }
.story-tags a:hover { color: var(--ink); border-color: var(--ink-2); }

.more { max-width: 47.5rem; margin: 3.5rem auto 0; }
.more > h2 { font-size: var(--step-0); padding-bottom: .625rem; border-bottom: 2px solid var(--ink); }

/* ---------- подвал ---------- */
.colophon { margin-top: 4.5rem; border-top: 1px solid var(--line); padding: 2rem 0 2.5rem; color: var(--ink-2); font-size: .9375rem; }
.colophon-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.colophon-row .colophon-links { flex: 1; }
.colophon-note { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .8125rem; line-height: 1.5; }
.colophon-brand { color: var(--ink); font-weight: 800; }
.colophon-links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.colophon-links a:hover { color: var(--ink); }
.badge-152on { display: inline-block; line-height: 0; }  /* тёмную и светлую версии 152on подставляет сам */
@media (max-width: 760px) { .colophon-row { flex-direction: column; align-items: flex-start; } }

/* ---------- строка котировок ---------- */
.tickerbar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: var(--step--1); overflow: hidden; }
/* бегущая строка: две одинаковые группы, сдвиг на ширину одной — бесшовный круг */
.ticker-track { display: flex; width: max-content; animation: ticker var(--ticker-duration, 70s) linear infinite; }
.ticker-group { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; min-height: 2.125rem; white-space: nowrap; }
.tickerbar:hover .ticker-track, .tickerbar:focus-within .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .tickerbar { overflow-x: auto; scrollbar-width: none; }
  .ticker-track { animation: none; padding-left: 1rem; }
  .ticker-group[aria-hidden] { display: none; }
}
.tick { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tick b { color: var(--ink); font-weight: 600; margin-right: .25rem; }
.tick-note { color: var(--ink-2); font-size: .75rem; }
.chg { font-variant-numeric: tabular-nums; white-space: nowrap; }
.chg.up { color: var(--up); }
.chg.down { color: var(--down); }
.sections-sep { flex: none; width: 1px; height: 1.1rem; background: var(--line); align-self: center; }

/* ---------- главная: первый экран ---------- */
.top { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 3rem; padding-top: 2rem; }
.lead-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 1.25rem; }
.lead-label { color: var(--brand); font-weight: 600; margin-bottom: .5rem; }
.lead h2 { font-size: var(--step-4); line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.lead-text h2 { font-size: clamp(2rem, 4.2vw, 3.25rem); }
.lead-text-lead { color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; margin: .875rem 0 .5rem; max-width: 40em; }
.lead .chain-meta { margin-top: .5rem; color: var(--ink-2); }
.secondary { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 1.5rem; border-top: 2px solid var(--ink); }
.secondary li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.secondary h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 600; }
.secondary-img img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: .625rem; }
.secondary .chain-meta { color: var(--ink-2); margin-top: .5rem; }
.top-feed { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.block-title { font-size: var(--step-0); padding-bottom: .625rem; border-bottom: 2px solid var(--ink); margin-bottom: .25rem; }
.block-more { display: inline-block; margin-top: 1rem; color: var(--brand); font-weight: 600; }
.chain-compact { --time: 2.75rem; --rail: 1.25rem; }
.chain-compact .chain-day { display: none; }
.chain-compact .chain-item { padding: .5rem 0; }
.chain-compact .chain-body h3 { font-size: .9375rem; line-height: 1.35; font-weight: 500; }
.chain-compact .chain-meta { display: none; }
.chain-compact::before { top: .75rem; bottom: .75rem; }
.chain-compact .chain-item::before { margin-top: .4rem; }
@media (max-width: 960px) {
  .top { grid-template-columns: 1fr; gap: 2rem; }
  .top-feed { border-left: 0; padding-left: 0; }
  .secondary { grid-template-columns: 1fr; gap: 1rem; }
  .lead h2 { font-size: var(--step-3); }
}

/* ---------- экраны ---------- */
.screen { margin-top: 3.5rem; }
.screen-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .75rem 2rem; padding-bottom: .75rem; border-bottom: 2px solid var(--ink); margin-bottom: 1.25rem; }
.screen-head h2 { font-size: var(--step-2); letter-spacing: -.01em; }
.stats { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin: 0; }
.stats div { display: flex; flex-direction: column; }
.stats dt { font-size: .75rem; color: var(--ink-2); }
.stats dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.page-head .stats { margin-top: 1.25rem; }

.market-grid { display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .market-grid { grid-template-columns: 1fr; } }
.coins { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .9375rem; }
.coins th { text-align: left; font-size: .75rem; font-weight: 500; color: var(--ink-2); padding: 0 .5rem .5rem; border-bottom: 1px solid var(--line); }
.coins td { padding: .625rem .5rem; border-bottom: 1px solid var(--line); }
.coins .num { text-align: right; white-space: nowrap; }
.coins tbody tr:hover { background: var(--surface); }
.c-rank { color: var(--ink-2); width: 2rem; }
.coin-name { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.coin-name img { border-radius: 50%; }
.coin-name small { color: var(--ink-2); font-weight: 400; }
.coin-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--line); }
.spark { display: block; width: 7.5rem; height: 2rem; }
.spark.up, .chart.up { color: var(--up); }
.spark.down, .chart.down { color: var(--down); }
@media (max-width: 760px) { .c-7d, .c-spark, .c-cap, .c-vol, .c-rank { display: none; } }

.fng { margin: 0 0 1.5rem; text-align: center; }
.fng svg { width: 100%; max-width: 13rem; height: auto; color: var(--ink); }
.fng figcaption b { font-size: var(--step-2); margin-right: .25rem; }
.fng figcaption span { display: block; color: var(--ink-2); font-size: var(--step--1); }
.movers { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.movers h3 { font-size: .875rem; color: var(--ink-2); font-weight: 500; margin-bottom: .25rem; }
.movers ul { list-style: none; margin: 0; padding: 0; }
.movers li { display: flex; justify-content: space-between; padding: .375rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.movers a { font-weight: 600; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem; }
@media (max-width: 960px) { .trio { grid-template-columns: 1fr; } }
.popular { margin: 0; padding: 0; list-style: none; counter-reset: pop; }
.popular li { counter-increment: pop; display: grid; grid-template-columns: 2rem 1fr; padding: .75rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; font-weight: 500; }
.popular li::before { content: counter(pop); font-size: var(--step-1); font-weight: 700; color: var(--brand-bright); line-height: 1.1; }
.tool-links { margin-top: 1rem; }
.tool-links a { color: var(--brand); font-weight: 500; }

.converter { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1rem; margin-top: .75rem; }
.conv-row { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: .5rem; }
.converter input, .converter select, .calc input, .calc select {
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 4px; padding: .5rem .625rem; min-width: 0;
}
.conv-result { margin-top: .875rem; }
.conv-main { display: block; font-size: var(--step-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.conv-sub { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.tool { max-width: 36rem; }

.forecast-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1rem; }
.forecast-cards a { display: flex; flex-direction: column; gap: .625rem; height: 100%; padding: 1rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.forecast-cards a:hover { border-color: var(--brand-bright); color: inherit; }
.fc-coin { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.fc-coin img { border-radius: 50%; }
.forecast-cards .spark { width: 100%; height: 3rem; }
.fc-title { font-weight: 600; line-height: 1.35; flex: 1; }
.forecast-cards time { color: var(--ink-2); font-size: var(--step--1); }

.article-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1.5rem; }
.article-row img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; margin-bottom: .75rem; }
.article-title { display: block; font-weight: 600; font-size: 1.125rem; line-height: 1.3; }
.article-row time { color: var(--ink-2); font-size: var(--step--1); }

.outro { display: grid; grid-template-columns: minmax(0, 1fr) 22rem; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .outro { grid-template-columns: 1fr; } }
.story-tags a span { color: var(--ink-2); font-size: .75rem; margin-left: .25rem; }
.tg { background: var(--brand-bright); color: #fff; border-radius: 6px; padding: 1.5rem; }
.tg h2 { font-size: var(--step-1); }
.tg p { margin: .5rem 0 1rem; opacity: .9; }
.button { display: inline-block; font: inherit; font-weight: 600; padding: .625rem 1.125rem; border-radius: 4px; border: 0; cursor: pointer; background: var(--ink); color: var(--bg); }
.button:hover { color: var(--bg); opacity: .9; }
.tg .button { background: #fff; color: #0b4a70; }
.tg .button:hover { color: #0b4a70; }

/* ---------- страница монеты ---------- */
.coin-head { padding: 2.25rem 0 1rem; }
.coin-head h1 { display: flex; align-items: center; gap: .75rem; font-size: var(--step-3); letter-spacing: -.01em; }
.coin-head h1 img { border-radius: 50%; }
.coin-head h1 small { color: var(--ink-2); font-weight: 500; font-size: .55em; }
.coin-price { font-size: var(--step-3); font-weight: 700; font-variant-numeric: tabular-nums; margin-top: .5rem; }
.coin-price .chg { font-size: var(--step-1); margin-left: .5rem; }
.coin-price-rub { color: var(--ink-2); font-size: var(--step-1); font-variant-numeric: tabular-nums; }
.coin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 2.5rem; align-items: start; }
@media (max-width: 960px) { .coin-grid { grid-template-columns: 1fr; } }
.coin-stats { margin: 0 0 2rem; }
.coin-stats div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.coin-stats dt { color: var(--ink-2); }
.coin-stats dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }

.chart-tabs { display: flex; flex-wrap: wrap; gap: .25rem; }
.chart-tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.chart-tabs > label { padding: .375rem .875rem; border-radius: 4px; cursor: pointer; color: var(--ink-2); font-weight: 500; font-size: .9375rem; }
.chart-tabs > input:checked + label { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.chart-tabs > input:focus-visible + label { outline: 2px solid var(--brand-bright); }
.chart-tabs .tab { display: none; flex-basis: 100%; margin-top: .75rem; }
#p7:checked ~ .tab-7, #p30:checked ~ .tab-30, #p365:checked ~ .tab-365 { display: block; }
.chart { margin: 0; }
.chart svg { display: block; width: 100%; height: 15rem; }
/* живой график: курсор, точка и подсказка поверх SVG */
.chart-area { position: relative; touch-action: pan-y; cursor: crosshair; }
.chart:focus-visible { outline: 2px solid var(--brand-bright); outline-offset: 4px; border-radius: 4px; }
.chart-cursor { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-2); opacity: .5; pointer-events: none; }
.chart-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: currentColor;
  box-shadow: 0 0 0 3px var(--bg); pointer-events: none; }
.chart-tip { position: absolute; top: .5rem; margin-left: 12px; display: flex; flex-direction: column; gap: 2px;
  min-width: 9.5rem; padding: .5rem .625rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface);
  color: var(--ink); font-size: .8125rem; line-height: 1.35; font-variant-numeric: tabular-nums; pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); white-space: nowrap; }
.chart-tip.tip-left { transform: translateX(-100%); margin-left: -12px; }
.chart-tip[hidden], .chart-cursor[hidden], .chart-dot[hidden] { display: none; }
.tip-date { color: var(--ink-2); }
.tip-price { font-size: 1rem; }
.tip-rub, .tip-row { color: var(--ink-2); }
.chart-fill { fill: currentColor; opacity: .1; }
.chart figcaption { display: flex; justify-content: space-between; color: var(--ink-2); font-size: var(--step--1); margin-top: .375rem; font-variant-numeric: tabular-nums; }
.chart-inline { margin-top: 1.5rem; }
.chart-empty { color: var(--ink-2); padding: 1.5rem 0; }

/* ---------- калькулятор ---------- */
.calc { display: grid; gap: 1rem; margin-top: 1rem; }
.calc > label { display: grid; gap: .375rem; font-weight: 500; }
.calc-amount { display: grid; grid-template-columns: minmax(0, 1fr) 4.5rem; gap: .5rem; }
.calc fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.calc legend { font-weight: 500; margin-bottom: .375rem; }
.chip input { position: absolute; opacity: 0; }
.chip span { display: inline-block; padding: .375rem .875rem; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--brand-bright); outline-offset: 2px; }
.calc .button { justify-self: start; }
.calc-result { margin-top: 2rem; padding: 1.5rem; border-left: 3px solid var(--brand-bright); background: var(--surface); max-width: 36rem; }
.calc-value { font-size: var(--step-4); font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; margin: .5rem 0; }
.prose .disclaimer { font-size: .9375rem; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 1rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
