:root {
  --bg: #070a0d;
  --panel: #0d1117;
  --panel-2: #111821;
  --ink: #edf7ef;
  --muted: #9aa8a0;
  --dim: #627067;
  --line: rgba(159, 255, 190, 0.18);
  --line-strong: rgba(159, 255, 190, 0.34);
  --accent: #5fe89a;
  --warn: #f06a72;
  --amber: #f5c86a;
  --blue: #78a6ff;
  --max: 1180px;
  color-scheme: dark;
  font-family: Inter, "Inter Tight", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(95, 232, 154, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(95, 232, 154, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 56px 56px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
p, h1, h2, h3, h4 { margin: 0; }
p { color: var(--muted); }
ul, ol { margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  left: 14px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: #031008;
  font-weight: 800;
}
.skip-link:focus { top: 14px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 4px rgba(95, 232, 154, 0.2); }
:focus:not(:focus-visible) { outline: none; }

.wrap { width: min(100% - 32px, var(--max)); margin: 0 auto; }
.mono { font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace; }
.kicker {
  color: var(--accent);
  font: 700 0.72rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.dim { color: var(--dim); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 13, 0.92);
  backdrop-filter: blur(14px);
}
.header-grid {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; letter-spacing: 0.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-strong);
  background: #06120c;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
}
.nav { display: flex; justify-content: center; gap: 4px; }
.nav a, .menu-toggle, .btn {
  min-height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
}
.nav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 13px;
  font: 700 0.72rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a:hover, .nav a.is-active, .nav a[aria-current="page"] { color: var(--accent); background: rgba(95, 232, 154, 0.08); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 44px; color: var(--accent); font-size: 22px; cursor: pointer; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  font-weight: 800;
  white-space: nowrap;
}
.btn-primary { border-color: var(--accent); background: var(--accent); color: #031008; }
.btn:hover { transform: translateY(-1px); }
/* Тактильный feedback на нажатие (ui-ux: :active-правил было 0) */
.btn:active {
  transform: translateY(1px);
  background: rgba(95, 232, 154, 0.14);
}
.btn-primary:active {
  transform: translateY(1px);
  background: #4fd488;
}
.btn-cta:active {
  transform: translateY(1px);
  filter: brightness(0.95);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  border-bottom: 1px solid var(--line);
}
.hero-copy { padding: 58px 34px 44px max(16px, calc((100vw - var(--max)) / 2)); }
.hero h1 { max-width: 760px; margin-top: 18px; font-size: clamp(2.4rem, 6vw, 5.65rem); line-height: 0.94; letter-spacing: 0; }
.lead { max-width: 680px; margin-top: 18px; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.page-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.terminal-panel {
  min-width: 0;
  border-left: 1px solid var(--line);
  background: #06120c;
  padding: 30px;
}
.bonus-picker {
  min-height: 390px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 50% 34%, rgba(245, 200, 106, 0.22), transparent 24%),
    radial-gradient(circle at 50% 55%, rgba(95, 232, 154, 0.24), transparent 32%),
    linear-gradient(rgba(95, 232, 154, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 166, 255, 0.08) 1px, transparent 1px),
    #041008;
  background-size: 42px 42px;
  position: relative;
  overflow: hidden;
  padding: 24px;
  display: grid;
  place-items: center;
  gap: 18px;
}
.bonus-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  filter: saturate(1.05) contrast(1.08);
}
.bonus-picker::before {
  content: "";
  position: absolute;
  inset: 12px;
  z-index: 1;
  border: 1px solid rgba(95, 232, 154, 0.13);
  pointer-events: none;
}
.bonus-picker::after {
  content: "BONUS";
  position: absolute;
  left: 50%;
  top: 28px;
  z-index: 1;
  transform: translateX(-50%);
  color: rgba(95, 232, 154, 0.12);
  font: 900 clamp(3.4rem, 9vw, 7.2rem)/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
  pointer-events: none;
}
.bonus-button {
  position: relative;
  z-index: 2;
  width: min(100%, 360px);
  min-height: 86px;
  border: 2px solid #d8ffe5;
  background: linear-gradient(135deg, var(--accent), #f5c86a);
  color: #031008;
  cursor: pointer;
  font: 900 clamp(1rem, 2vw, 1.36rem) "IBM Plex Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 0 0 9px rgba(95, 232, 154, 0.09), 0 22px 70px rgba(95, 232, 154, 0.34);
  animation: bonus-pulse 1.7s ease-in-out infinite;
  display: grid;
  align-content: center;
  gap: 4px;
}
.bonus-button span,
.bonus-button small { display: block; }
.bonus-button small {
  font-size: 0.62em;
  font-weight: 900;
  letter-spacing: 0.14em;
}
.bonus-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 11px rgba(245, 200, 106, 0.11), 0 28px 86px rgba(245, 200, 106, 0.35);
}
.bonus-button:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 0 0 7px rgba(95, 232, 154, 0.12), 0 10px 34px rgba(95, 232, 154, 0.3);
}
.bonus-result {
  z-index: 2;
  position: relative;
  width: min(100%, 430px);
  min-height: 178px;
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(7, 10, 13, 0.78);
}
.bonus-result[hidden] { display: none; }
.bonus-result.is-spinning { animation: bonus-pop 260ms ease-out; }
.bonus-platform {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--blue);
  font: 800 0.72rem "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.bonus-result strong {
  display: block;
  color: var(--ink);
  font-size: 1.55rem;
  line-height: 1.1;
}
.bonus-result p { margin: 8px 0 14px; }
.bonus-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.bonus-actions .btn-primary {
  min-width: 170px;
}

@keyframes bonus-pop {
  from { transform: translateY(8px); opacity: 0.72; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes bonus-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.16); }
}

.ticker {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: #080d11;
}
.ticker-track {
  display: flex;
  gap: 28px;
  width: max-content;
  padding: 10px 0;
  animation: ticker 30s linear infinite;
}
.ticker span { color: var(--muted); font: 700 0.72rem "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.ticker b { color: var(--accent); font-weight: 700; }

.markets-strip {
  border-bottom: 1px solid var(--line);
  background: #05080a;
}
.strip-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: end;
  gap: 14px;
  padding: 22px max(16px, calc((100vw - var(--max)) / 2)) 12px;
}
.strip-head h2 {
  font-size: 1.05rem;
  line-height: 1.1;
}
.strip-note {
  color: var(--dim);
  font: 700 0.62rem "IBM Plex Mono", monospace;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.market-tape {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(180px, 1fr);
  overflow-x: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.market-tile {
  min-height: 220px;
  position: relative;
  isolation: isolate;
  padding: 12px 14px 14px;
  border-right: 1px solid rgba(7, 10, 13, 0.68);
  overflow: hidden;
  /* WCAG AA: тёмный текст на ярких плитках (#06120c) даёт ≥4.5:1
     на всех 4 тонах (amber 9.1:1, green 10.9:1, red 5.7:1, blue 4.6:1).
     Раньше white на amber/green давал 1.86–2.16:1 (FAIL). */
  color: #06120c;
}
.market-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.16) 1px, transparent 1px),
    var(--tile);
  background-size: 8px 8px, 8px 8px, auto;
}
/* Фоны плиток подобраны под тёмный текст #06120c (≥4.5:1).
   green/red/amber достаточно светлые; blue затемнён с #496df2
   (давал лишь 4.31:1) до #6f8dff для запаса контраста. */
.tile-green { --tile: #25d978; }
.tile-blue { --tile: #6f8dff; }
.tile-red { --tile: #e75462; }
.tile-amber { --tile: #e0a72f; }
.event-art {
  position: absolute;
  inset: 30px 8px 12px;
  z-index: -1;
  overflow: hidden;
  opacity: 0.9;
}
.event-art i,
.event-art::before,
.event-art::after {
  content: "";
  position: absolute;
  display: block;
  background: #030506;
}
.event-politics i {
  width: 88px;
  height: 136px;
  top: 26px;
  border-radius: 48% 44% 42% 48%;
  clip-path: polygon(30% 6%, 72% 11%, 86% 30%, 76% 46%, 88% 56%, 70% 62%, 62% 82%, 30% 94%, 18% 76%, 24% 55%, 10% 44%, 24% 35%);
}
.event-politics i:first-child { left: 4px; transform: scaleX(-1); }
.event-politics i:last-child { right: 4px; }
.event-politics::before {
  left: calc(50% - 18px);
  top: 70px;
  width: 36px;
  height: 48px;
  border-radius: 50%;
  opacity: 0.45;
}
.event-fed i:first-child {
  left: 18px;
  bottom: 4px;
  width: 126px;
  height: 126px;
  border-radius: 50%;
}
.event-fed i:last-child {
  left: 76px;
  bottom: 18px;
  width: 88px;
  height: 148px;
  clip-path: polygon(20% 0, 80% 0, 78% 23%, 100% 36%, 77% 48%, 69% 100%, 31% 100%, 23% 48%, 0 36%, 22% 23%);
}
.event-stage i:first-child {
  left: 16px;
  top: 36px;
  width: 138px;
  height: 120px;
  clip-path: polygon(0 42%, 48% 8%, 100% 42%, 86% 100%, 14% 100%);
}
.event-stage i:last-child {
  right: 18px;
  top: 28px;
  width: 58px;
  height: 116px;
  border: 10px solid #030506;
  border-top-width: 16px;
  background: transparent;
  border-radius: 50% 50% 42% 42%;
}
.event-bitcoin i:first-child {
  left: 28px;
  top: 18px;
  width: 144px;
  height: 144px;
  border-radius: 50%;
}
.event-bitcoin i:first-child::before {
  content: "B";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--tile);
  font: 900 72px/1 "IBM Plex Mono", monospace;
}
.event-bitcoin i:last-child {
  right: 8px;
  bottom: 30px;
  width: 92px;
  height: 62px;
  clip-path: polygon(0 70%, 22% 52%, 42% 58%, 66% 20%, 100% 0, 100% 100%, 0 100%);
}
.event-trophy i:first-child {
  left: 74px;
  top: 18px;
  width: 82px;
  height: 124px;
  clip-path: polygon(18% 0, 82% 0, 75% 48%, 62% 56%, 58% 78%, 78% 78%, 78% 100%, 22% 100%, 22% 78%, 42% 78%, 38% 56%, 25% 48%);
}
.event-trophy i:last-child {
  left: 48px;
  top: 30px;
  width: 132px;
  height: 70px;
  background: transparent;
  border: 16px solid #030506;
  border-bottom: 0;
  border-radius: 0 0 50px 50px;
}
.event-market i:first-child {
  left: 18px;
  bottom: 18px;
  width: 154px;
  height: 122px;
  clip-path: polygon(0 82%, 18% 68%, 34% 72%, 50% 38%, 66% 48%, 86% 12%, 100% 24%, 100% 100%, 0 100%);
}
.event-market i:last-child {
  right: 18px;
  top: 28px;
  width: 72px;
  height: 122px;
  clip-path: polygon(50% 0, 66% 34%, 100% 40%, 74% 62%, 82% 100%, 50% 78%, 18% 100%, 26% 62%, 0 40%, 34% 34%);
}
.book {
  display: block;
  position: relative;
  z-index: 1;
  /* тёмный мелкий текст на ярких плитках → ≥4.5:1 даже на blue (~4.6:1),
     раньше #f9fff9 на blue ≈4.36:1 (FAIL для ~9px) */
  color: #06120c;
  font: 900 0.58rem/1 "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: none;
}
.market-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 26px;
  font-size: clamp(1.02rem, 1.35vw, 1.52rem);
  line-height: 0.94;
  letter-spacing: 0;
  position: relative;
  z-index: 1;
}
.market-split strong {
  color: #06120c;
  text-shadow: none;
  opacity: 1;
}
.market-sides {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
  color: #021008;
  font: 900 0.58rem "IBM Plex Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
.market-tile h3 {
  margin-top: 58px;
  /* было white (amber 2.16:1, green 1.86:1 — FAIL) → тёмный ≥4.6:1 */
  color: #06120c;
  font-size: 0.8rem;
  line-height: 1.2;
  text-shadow: none;
  position: relative;
  z-index: 1;
}
.market-tile p {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  /* было rgba(255,255,255,.72) на amber ≈1.03:1 (критич. FAIL) →
     сплошной тёмный (без opacity, чтобы не терять контраст на blue);
     без opacity (она смешивала текст с ярким фоном и роняла ratio);
     ≥4.5:1 на всех 4 плитках, иерархия — за счёт меньшего кегля */
  color: #06120c;
  font: 700 0.58rem/1.2 "IBM Plex Mono", monospace;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
h2 { font-size: clamp(1.7rem, 3vw, 3rem); line-height: 1.05; letter-spacing: 0; }
h3 { font-size: 1.08rem; line-height: 1.25; }

.rank-list { display: grid; gap: 10px; }
.rank-card {
  display: grid;
  grid-template-columns: 54px 1.1fr 0.8fr 110px 190px;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.92);
  padding: 16px;
}
.rank-card:first-child { border-color: var(--accent); background: rgba(95, 232, 154, 0.07); }
.rank-num, .score { color: var(--accent); font: 800 1.7rem/1 "IBM Plex Mono", monospace; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag { border: 1px solid var(--line); padding: 3px 7px; color: var(--muted); font: 700 0.66rem "IBM Plex Mono", monospace; text-transform: uppercase; }
.mini-bars { display: grid; gap: 7px; }
.bar { height: 7px; border: 1px solid var(--line); background: rgba(255,255,255,0.04); }
.bar i { display: block; height: 100%; background: var(--accent); }
.rank-actions {
  display: grid;
  gap: 8px;
}
.rank-actions .btn {
  width: 100%;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card, .review-block, .fact-card {
  border: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.92);
  padding: 22px;
}
.card h3, .review-block h3 { margin-top: 10px; }
.card p, .review-block p { margin-top: 10px; }
.media-card,
.story-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: rgba(5, 8, 10, 0.94);
}
.media-card > :not(.card-bg),
.story-block > :not(.story-bg) {
  position: relative;
  z-index: 2;
}
.card-bg,
.story-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.76;
  filter: saturate(0.98) contrast(1.08);
}
.story-bg { opacity: 0.62; }
.media-card::before,
.story-block::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(5, 8, 10, 0.92), rgba(5, 8, 10, 0.58) 50%, rgba(5, 8, 10, 0.08)),
    linear-gradient(0deg, rgba(5, 8, 10, 0.3), transparent 48%);
}
.review-hub-grid .media-card {
  min-height: 340px;
}
.story-block {
  min-height: 330px;
}
.review-hub-section { padding-top: 24px; }
.review-hub-grid { gap: 12px; align-items: stretch; }
.review-hub-grid .card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 320px;
  padding: 18px;
}

.review-hub-grid .card[data-platform-url] {
  cursor: pointer;
}

.review-hub-grid .card[data-platform-url]:hover {
  border-color: var(--accent);
  background: rgba(95, 232, 154, 0.06);
}

.review-hub-grid .card[data-platform-url]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* :active для интерактивных карточек — тактильный feedback */
.review-hub-grid .card[data-platform-url]:active {
  transform: translateY(1px);
  border-color: var(--accent);
  background: rgba(95, 232, 154, 0.1);
}

.review-hub-grid .card h2 {
  font-size: clamp(1.8rem, 2.45vw, 2.45rem);
  line-height: 1.04;
}
.review-hub-grid .card p {
  font-size: 0.96rem;
  line-height: 1.55;
}
.review-hub-grid .card .btn {
  width: max-content;
  min-height: 44px;
  padding: 8px 13px;
  font-size: 0.86rem;
  align-self: end;
}
.fact-card strong { display: block; color: var(--ink); font-size: 1.35rem; line-height: 1.1; }
.source-note {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}
.source-note a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.toc, .side-panel {
  border: 1px solid var(--line);
  background: rgba(13, 17, 23, 0.95);
  padding: 18px;
}
.toc { position: sticky; top: 88px; }
.toc a { display: block; padding: 9px 0; color: var(--muted); border-bottom: 1px solid var(--line); }
.toc a:hover { color: var(--accent); }
.review-cta {
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(95, 232, 154, 0.055);
}
.review-cta .kicker {
  margin-bottom: 10px;
}
.review-cta .btn {
  width: auto;
  min-height: 44px;
  margin-top: 0;
  padding: 8px 14px;
  border-color: var(--accent);
  background: transparent;
  color: var(--accent);
}
.review-cta .btn:hover {
  background: var(--accent);
  color: #031008;
}
.review-block { margin-bottom: 14px; }
.review-block h3 { color: var(--ink); }
.review-meta { margin-top: 18px; align-items: stretch; }
.review-meta .fact-card { padding: 16px; }
.review-meta .fact-card strong { font-size: 1rem; line-height: 1.25; }
.review-faq { margin-top: 14px; }
.review-faq h2 { margin-bottom: 14px; }
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.plain-list { padding-left: 18px; color: var(--muted); }
.plain-list li { margin: 7px 0; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); }
table { width: 100%; min-width: 1080px; border-collapse: collapse; background: rgba(13, 17, 23, 0.92); }
caption { text-align: left; padding: 14px 16px; color: var(--accent); font: 700 0.75rem "IBM Plex Mono", monospace; letter-spacing: 0.14em; text-transform: uppercase; }
th, td { padding: 13px 16px; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--ink); font: 700 0.76rem "IBM Plex Mono", monospace; letter-spacing: 0.08em; text-transform: uppercase; }
td { color: var(--muted); }
.table-actions {
  display: grid;
  gap: 8px;
  min-width: 150px;
}
.table-actions .btn {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
}

details { border: 1px solid var(--line); background: rgba(13, 17, 23, 0.92); padding: 14px 16px; }
details + details { margin-top: 8px; }
summary { cursor: pointer; color: var(--ink); font-weight: 800; }
details p { margin-top: 10px; }
.pillar-link {
  width: min(100% - 32px, var(--max));
  margin: 0 auto 34px;
}
.pillar-link a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer { padding: 34px 0; background: #05080a; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 24px; }
.footer a { display: block; color: var(--muted); margin-top: 7px; }
.badge-18 { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--warn); color: var(--warn); font-weight: 900; margin-bottom: 10px; }

@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 900px) {
  .header-grid { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: inline-grid; place-items: center; }
  .nav { display: none; grid-column: 1 / -1; justify-content: start; flex-direction: column; padding-bottom: 14px; }
  .nav.is-open { display: flex; }
  .nav a { width: 100%; }
  .header-actions .btn:not(.btn-primary) { display: none; }
  .hero, .review-layout, .footer-grid { grid-template-columns: 1fr; }
  .terminal-panel { border-left: 0; border-top: 1px solid var(--line); }
  .rank-card { grid-template-columns: 46px 1fr; }
  .rank-card > *:nth-child(n+3) { grid-column: 2; }
  .toc { position: static; }
}
@media (max-width: 640px) {
  .hero-copy { padding-top: 38px; }
  .grid-3, .grid-2, .pros-cons { grid-template-columns: 1fr; }
  .section-head { display: block; }
  .strip-head { grid-template-columns: 1fr; align-items: start; }
  .market-tape { grid-auto-columns: 78%; }
  h1 { font-size: 2.35rem; line-height: 1; overflow-wrap: anywhere; }
  .bonus-picker { min-height: 320px; padding: 18px; }
  .bonus-picker h2 { font-size: 2rem; }
}

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

/* Утилиты ширины .w-0….w-100 (целые %) — замена inline style="width:N%"
   на .bar i и подобных, под будущее снятие CSP unsafe-inline (Стадия security). */
.w-0{width:0%}
.w-1{width:1%}
.w-2{width:2%}
.w-3{width:3%}
.w-4{width:4%}
.w-5{width:5%}
.w-6{width:6%}
.w-7{width:7%}
.w-8{width:8%}
.w-9{width:9%}
.w-10{width:10%}
.w-11{width:11%}
.w-12{width:12%}
.w-13{width:13%}
.w-14{width:14%}
.w-15{width:15%}
.w-16{width:16%}
.w-17{width:17%}
.w-18{width:18%}
.w-19{width:19%}
.w-20{width:20%}
.w-21{width:21%}
.w-22{width:22%}
.w-23{width:23%}
.w-24{width:24%}
.w-25{width:25%}
.w-26{width:26%}
.w-27{width:27%}
.w-28{width:28%}
.w-29{width:29%}
.w-30{width:30%}
.w-31{width:31%}
.w-32{width:32%}
.w-33{width:33%}
.w-34{width:34%}
.w-35{width:35%}
.w-36{width:36%}
.w-37{width:37%}
.w-38{width:38%}
.w-39{width:39%}
.w-40{width:40%}
.w-41{width:41%}
.w-42{width:42%}
.w-43{width:43%}
.w-44{width:44%}
.w-45{width:45%}
.w-46{width:46%}
.w-47{width:47%}
.w-48{width:48%}
.w-49{width:49%}
.w-50{width:50%}
.w-51{width:51%}
.w-52{width:52%}
.w-53{width:53%}
.w-54{width:54%}
.w-55{width:55%}
.w-56{width:56%}
.w-57{width:57%}
.w-58{width:58%}
.w-59{width:59%}
.w-60{width:60%}
.w-61{width:61%}
.w-62{width:62%}
.w-63{width:63%}
.w-64{width:64%}
.w-65{width:65%}
.w-66{width:66%}
.w-67{width:67%}
.w-68{width:68%}
.w-69{width:69%}
.w-70{width:70%}
.w-71{width:71%}
.w-72{width:72%}
.w-73{width:73%}
.w-74{width:74%}
.w-75{width:75%}
.w-76{width:76%}
.w-77{width:77%}
.w-78{width:78%}
.w-79{width:79%}
.w-80{width:80%}
.w-81{width:81%}
.w-82{width:82%}
.w-83{width:83%}
.w-84{width:84%}
.w-85{width:85%}
.w-86{width:86%}
.w-87{width:87%}
.w-88{width:88%}
.w-89{width:89%}
.w-90{width:90%}
.w-91{width:91%}
.w-92{width:92%}
.w-93{width:93%}
.w-94{width:94%}
.w-95{width:95%}
.w-96{width:96%}
.w-97{width:97%}
.w-98{width:98%}
.w-99{width:99%}
.w-100{width:100%}


.card-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:12px}

/* 404 page (no inline styles — strict CSP style-src self) */
.nf-wrap{min-height:72vh;display:flex;align-items:center;justify-content:center;padding:48px 24px}
.nf-card{max-width:560px;text-align:center}
.nf-code{font-size:clamp(56px,12vw,88px);font-weight:800;line-height:1;color:#25d978;margin:0 0 8px}
.nf-card h1{font-size:24px;margin:0 0 12px}
.nf-card p{color:#c2c9d6;margin:0 0 24px;line-height:1.5}
.nf-links{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.nf-links a{display:inline-block;padding:10px 16px;min-height:44px;border:1px solid #2a3340;border-radius:10px;color:#e8ecf1;text-decoration:none;font-weight:600;line-height:24px}
.nf-links a:hover{background:#11161d}
.nf-rg{margin-top:32px;font-size:13px;color:#8b94a8}
.nf-rg a{color:#6f8dff}
