@font-face {
  font-family: "Orbitron Digits";
  src: url("fonts/orbitron-digits-700.woff2?v=6") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #05060a;
  --bg-soft: #0a0c12;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef1f5;
  --muted: #8b93a3;
  --accent: #c6ff4a;
  --accent-2: #ff7a45;
  --blue: #6ea8fe;
  --yellow: #ffd166;
  --radius: 20px;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  line-height: 1.55;
  background:
    radial-gradient(1100px 620px at 82% -8%, rgba(198, 255, 74, 0.10), transparent 60%),
    radial-gradient(900px 560px at -12% 26%, rgba(255, 122, 69, 0.08), transparent 62%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%);
  mask-image: radial-gradient(circle at 50% 0%, #000, transparent 78%);
}

/* медленные световые пятна: страница «дышит», но не отвлекает */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.aurora i {
  position: absolute;
  display: block;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: aurora-drift 28s ease-in-out infinite alternate;
}

.aurora i:nth-child(1) {
  top: -18%;
  right: -10%;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.55), transparent 62%);
}

.aurora i:nth-child(2) {
  top: 8%;
  left: -18%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.45), transparent 62%);
  animation-duration: 36s;
  animation-delay: -7s;
}

.aurora i:nth-child(3) {
  bottom: -26%;
  left: 22%;
  background: radial-gradient(circle, rgba(110, 168, 254, 0.38), transparent 62%);
  animation-duration: 44s;
  animation-delay: -16s;
}

@keyframes aurora-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4vw, 3vh, 0) scale(1.12); }
  100% { transform: translate3d(-3vw, -2vh, 0) scale(0.96); }
}

img, canvas { max-width: 100%; }

.container {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

a { color: var(--accent); }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  padding: 10px 16px;
  background: var(--accent);
  color: #0a0c12;
  border-radius: 10px;
  z-index: 200;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { left: 12px; }

/* ---------- header ---------- */
.noscript {
  padding: 10px 16px;
  background: var(--accent-2);
  color: #140800;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 6, 10, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #8fce1f);
  color: #0a0c12;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand__name { font-size: 1.02rem; }
.brand__dot { color: var(--accent); }

.nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header__debt {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: 10px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
}
.header__debt span:last-child { color: var(--text); }

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), #8fd31b 45%, var(--blue));
  box-shadow: 0 0 14px rgba(198, 255, 74, 0.45);
  transform: scaleX(0);
  transform-origin: 0 50%;
  pointer-events: none;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(198, 255, 74, 0.55);
  animation: pulse 2s infinite;
  flex: none;
}
.pulse-dot--sm { width: 5px; height: 5px; }

@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(198, 255, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 255, 74, 0); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(48px, 7vw, 84px) 0 0; }

/* Счётчик — сразу на первом экране: слева заголовок, справа цифры. */
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 30px 44px;
  align-items: start;
}

.hero__copy { grid-column: 1; }
.hero .counter-card { grid-column: 2; grid-row: 1; margin-top: 6px; }
.hero .disclaimer { grid-column: 1 / -1; }

.hero__copy > * { animation: fade-up 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: 0.05s; }
.hero__copy > :nth-child(3) { animation-delay: 0.1s; }
.hero__copy > :nth-child(4) { animation-delay: 0.16s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
}

h1 {
  margin: 0.4em 0 0.32em;
  font-size: clamp(2.5rem, 7.4vw, 5.4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 800;
}

.grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--yellow) 46%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  max-width: 64ch;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}
.btn--primary {
  background: var(--accent);
  color: #0a0c12;
  box-shadow: 0 12px 44px rgba(198, 255, 74, 0.18);
}
.btn--primary:hover { transform: translateY(-2px); background: #d4ff6b; }
.btn--ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: rgba(255, 255, 255, 0.26); background: rgba(255, 255, 255, 0.04); }

/* ---------- counter card ---------- */
.counter-card {
  position: relative;
  margin-top: 40px;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  overflow: hidden;
  animation: fade-up 0.8s 0.12s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.counter-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(620px circle at var(--mx, 50%) var(--my, 0%), rgba(198, 255, 74, 0.12), transparent 46%);
  opacity: 0;
  transition: opacity 0.3s;
}
.counter-card:hover::before { opacity: 1; }

.counter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.022) 0 1px,
    transparent 1px 3px
  );
  mix-blend-mode: screen;
}

.counter-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.label {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.live-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.counter-tools {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 2px 0 12px;
}

.mode-switch {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 2px;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}

.mode-switch__btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 7px 14px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}

.mode-switch__btn:hover { color: var(--text); }

.mode-switch__btn[aria-pressed="true"] {
  background: var(--accent);
  color: #0b0d07;
  font-weight: 700;
}

.mode-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* «Табло»: полноэкранный режим для стрима или второго монитора */
.board-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.board-btn:hover {
  color: var(--text);
  border-color: rgba(198, 255, 74, 0.4);
  background: rgba(198, 255, 74, 0.07);
}

.board-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.board-btn svg { flex: none; }

.board-title,
.board-exit { display: none; }

.tick-ring {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
}

.tick-ring.is-on { animation: tick-ring 0.85s ease-out; }

@keyframes tick-ring {
  0% {
    opacity: 0.9;
    box-shadow:
      inset 0 0 0 1px rgba(198, 255, 74, 0.5),
      inset 0 0 70px rgba(198, 255, 74, 0.13);
  }
  100% {
    opacity: 0;
    box-shadow:
      inset 0 0 0 1px rgba(198, 255, 74, 0),
      inset 0 0 70px rgba(198, 255, 74, 0);
  }
}

.counter {
  position: relative;
  z-index: 1;
  margin: 12px 0 6px;
  font-family: var(--mono);
  font-weight: 700;
}

.seg-wrap {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 6px 18px;
}

.seg-display {
  display: flex;
  align-items: center;
  gap: 0.42em;
  font-family: "Orbitron Digits", var(--mono);
  font-weight: 700;
  font-size: clamp(1.15rem, 5.4vw, 4.4rem);
  line-height: 1;
  letter-spacing: 0;
}

.seg-group { display: flex; gap: 0.1em; }

/* цифровое колесо: в ячейке лежит вертикальная лента 0…9 */
.digit {
  position: relative;
  display: inline-block;
  height: 1.16em;
  overflow: hidden;
  flex: none;
  color: var(--accent);
  text-shadow: 0 0 0.18em rgba(198, 255, 74, 0.35);
}

.digit__strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.09s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.digit__strip b {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.16em;
  line-height: 1;
  font-weight: 700;
}

/* объёмная заливка бегущих цифр */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .digit__strip b {
    background: linear-gradient(180deg, #f6ffd6 0%, #d8ff7d 36%, #b3ea35 70%, #86c414 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.seg-exp {
  display: flex;
  align-items: baseline;
  gap: 0.45em;
  padding-bottom: 0.08em;
  font-size: clamp(0.95rem, 2.4vw, 1.85rem);
  color: var(--muted);
  white-space: nowrap;
}

.seg-times sup {
  color: var(--accent);
  font-size: 0.66em;
  margin-left: 0.05em;
}

.counter__cur {
  font-size: 1.8em;
  color: var(--accent);
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s;
  text-shadow: 0 0 0.4em rgba(198, 255, 74, 0.35);
}
.counter__cur:hover { transform: scale(1.12) rotate(-6deg); }

.full-debt {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
}

.full-debt__label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.full-debt__label b { color: var(--accent); font-weight: 500; }
.full-debt__rate { opacity: 0.72; }

.full-debt__digits {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  font-family: var(--mono);
  font-size: clamp(0.72rem, 1.5vw, 1.12rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: rgba(238, 241, 245, 0.5);
  line-height: 1.45;
}

/* полная запись — те же цифровые колёса, что и в коротком табло */
.full-group {
  display: inline-flex;
  white-space: nowrap;
  letter-spacing: 0;
}
.full-group[hidden] { display: none; }

.fd {
  position: relative;
  display: inline-block;
  width: 1ch;
  height: 1.16em;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}
.fd[hidden] { display: none; }

.fd__strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.72s cubic-bezier(0.19, 0.9, 0.22, 1);
}
.fd__strip--snap { transition: none !important; }

.fd__strip b {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.16em;
  line-height: 1;
  font-weight: inherit;
}

.full-group { white-space: nowrap; }
.full-group.is-live {
  color: var(--accent);
  animation: digit-glow 2.4s ease-in-out infinite;
}
.full-group.is-last::after { content: " ₽"; color: var(--accent); }

@keyframes digit-glow {
  0%, 100% { text-shadow: 0 0 6px rgba(198, 255, 74, 0.25); }
  50% { text-shadow: 0 0 16px rgba(198, 255, 74, 0.7); }
}

/* ---------- режим «Все цифры» ---------- */
/* Табло не прячем: оно остаётся живым акцентом, а полная запись — главной. */
body[data-mode="full"] .counter {
  margin: 4px 0 8px;
}

body[data-mode="full"] .counter-card .seg-display {
  font-size: clamp(1.05rem, 3.4vw, 2.05rem);
  gap: 0.34em;
}

body[data-mode="full"] .counter-card .seg-group { gap: 0.08em; }

body[data-mode="full"] .counter-card .seg-exp {
  font-size: clamp(0.82rem, 1.6vw, 1.1rem);
}

body[data-mode="full"] .full-debt {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

body[data-mode="full"] .full-debt__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

body[data-mode="full"] .full-debt__digits {
  gap: 5px 13px;
  font-size: clamp(1.02rem, 2.6vw, 1.95rem);
  line-height: 1.28;
  letter-spacing: 0.03em;
  color: rgba(238, 241, 245, 0.82);
}

.debt-scale {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 18px;
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 0.79rem;
  color: var(--muted);
}
.debt-scale b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.debt-scale span:last-child b { color: var(--accent); }
.debt-scale[hidden] { display: none; }

.counter-sub {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 18px;
  color: var(--muted);
  font-size: 0.86rem;
}
.counter-sub__date { font-family: var(--mono); font-size: 0.78rem; }
#debtUsd { color: var(--text); font-family: var(--mono); }

.stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--line);
}

.stat { background: var(--bg-soft); padding: 14px 16px; min-width: 0; }

.stat__k {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stat__v {
  display: block;
  margin-top: 5px;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.session {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: rgba(198, 255, 74, 0.035);
}

.session__k {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.session__v { font-family: var(--mono); font-size: 0.92rem; }
.session__v b { color: var(--accent); font-weight: 600; }
.session__v em { font-style: normal; color: var(--muted); font-size: 0.78rem; }

.disclaimer {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  max-width: 90ch;
  animation: fade-up 0.8s 0.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.disclaimer a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted currentColor; }
.disclaimer sup { font-size: 0.7em; }

/* ---------- ticker ---------- */
.ticker {
  margin-top: 40px;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
  overflow: hidden;
}

.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__group {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 12px 26px;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
}
.ticker__group span { display: inline-flex; align-items: center; gap: 26px; }
.ticker__group i { color: var(--accent); font-style: normal; }

@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section {
  padding-block: clamp(58px, 8.5vw, 104px) 0;
  scroll-margin-top: 78px;
}

.section__head { max-width: 780px; margin-bottom: 34px; }
.section__head h2 {
  margin: 0.18em 0 0.35em;
  font-size: clamp(1.8rem, 3.7vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.section__head p { margin: 0; color: var(--muted); max-width: 70ch; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}

.caption {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
  max-width: 80ch;
}

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- how ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(198, 255, 74, 0.10), transparent 70%);
}

.card__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.card__big {
  margin: 18px 0 6px;
  font-family: var(--mono);
  font-size: clamp(1.55rem, 2.9vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.card h3 { margin: 0 0 8px; font-size: 1rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.note {
  display: flex;
  gap: 16px;
  margin-top: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(198, 255, 74, 0.18);
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(198, 255, 74, 0.06), transparent 70%);
}
.note__icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(198, 255, 74, 0.14);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
}
.note h3 { margin: 0 0 6px; font-size: 1rem; }
.note p { margin: 0; color: var(--muted); font-size: 0.92rem; max-width: 94ch; }

/* ---------- chart ---------- */
.chart-card {
  position: relative;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.chart-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(700px 320px at 18% 0%, rgba(198, 255, 74, 0.07), transparent 70%);
}

.chart-card__top {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.readout__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--muted);
}

.badge {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.badge--now { color: var(--accent); border-color: rgba(198, 255, 74, 0.35); background: rgba(198, 255, 74, 0.08); }
.badge--future { color: var(--accent-2); border-color: rgba(255, 122, 69, 0.35); background: rgba(255, 122, 69, 0.08); }
.badge--past { color: var(--blue); border-color: rgba(110, 168, 254, 0.3); background: rgba(110, 168, 254, 0.08); }

.readout__value {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.readout__times { color: var(--muted); font-size: 0.62em; white-space: nowrap; }
.readout__times sup { color: var(--accent-2); }

.legend {
  display: flex;
  gap: 16px;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--muted);
  padding-top: 4px;
}
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 18px; border-top: 2px solid var(--accent); }
.legend .dashed i { border-top-style: dashed; border-color: var(--accent-2); }

.chart-wrap {
  position: relative;
  height: clamp(280px, 38vw, 420px);
  margin-top: 6px;
}

#debtChart {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: crosshair;
}

.chart-tip {
  position: absolute;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(10, 12, 18, 0.95);
  backdrop-filter: blur(8px);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--muted);
  pointer-events: none;
  transform: translate(-50%, -120%);
  white-space: nowrap;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);
}
.chart-tip b { display: block; color: var(--accent); font-weight: 600; }

.tm { position: relative; z-index: 1; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 16px; }

.tm__labels {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.tm__hint { color: var(--accent); }

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 32px;
  margin: 10px 0 0;
  background: transparent;
  cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%) 100%);
}
input[type="range"]::-moz-range-track {
  height: 6px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill, 50%), rgba(255, 255, 255, 0.12) var(--fill, 50%) 100%);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin-top: -7px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(198, 255, 74, 0.12);
}
input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--accent);
  box-shadow: 0 0 0 6px rgba(198, 255, 74, 0.12);
}
input[type="range"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 99px; }

.tm__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: 0.2s;
}
.chip:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.26); }
.chip.is-active { color: #0a0c12; background: var(--accent); border-color: var(--accent); }

/* ---------- compare ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.cc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.01));
  position: relative;
  overflow: hidden;
}

.cc__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cc__icon { font-size: 1.5rem; line-height: 1; }
.cc__price { font-family: var(--mono); font-size: 0.68rem; color: var(--muted); white-space: nowrap; }
.cc__name { margin: 0; font-size: 0.98rem; font-weight: 600; }

.cc__ratio {
  font-family: var(--mono);
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--accent);
  line-height: 1.15;
}
.cc__ratio sup { font-size: 0.6em; }
.cc__note { margin: 0; font-size: 0.74rem; color: var(--muted); }

.cc__bar {
  height: 6px;
  margin-top: auto;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 99px;
  overflow: hidden;
}
.cc__bar span {
  display: block;
  height: 6px;
  width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #6a8f1f, var(--accent));
  transition: width 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.pay-panel {
  margin-top: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
}
.pay-panel h3 { margin: 0 0 4px; font-size: 1.12rem; }
.pay-panel__sub { margin: 0 0 6px; color: var(--muted); font-size: 0.86rem; }

.pay-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3px 18px;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.pay-row__label { color: var(--muted); font-size: 0.88rem; }
.pay-row__value {
  font-family: var(--mono);
  font-size: clamp(0.92rem, 1.6vw, 1.12rem);
  color: var(--accent);
  text-align: right;
}
.pay-row__note { grid-column: 1 / -1; font-size: 0.75rem; color: var(--muted); opacity: 0.85; }

/* ---------- timeline ---------- */
.timeline { position: relative; margin-top: 8px; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--accent), rgba(198, 255, 74, 0.08));
}

.tl { position: relative; padding: 0 0 26px 8px; }
.tl::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 5px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 12px rgba(198, 255, 74, 0.5);
}
.tl__date {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.tl h3 { margin: 3px 0 4px; font-size: 1rem; }
.tl p { margin: 0; color: var(--muted); font-size: 0.9rem; max-width: 72ch; }

/* ---------- footer ---------- */
.site-footer {
  margin-top: clamp(64px, 9vw, 110px);
  padding: 36px 0 26px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.014);
}

.footer__inner { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.brand--sm .brand__mark { width: 26px; height: 26px; font-size: 0.9rem; }
.footer__inner p { margin: 12px 0 0; color: var(--muted); font-size: 0.82rem; max-width: 48ch; }
.footer__links { display: flex; gap: 20px; flex-wrap: wrap; align-content: flex-start; }
.footer__links a { color: var(--muted); text-decoration: none; font-size: 0.86rem; }
.footer__links a:hover { color: var(--text); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--muted);
}

/* ---------- toast + easter egg ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 100;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #0a0c12;
  font-weight: 600;
  font-size: 0.88rem;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.rub {
  position: absolute;
  bottom: 26%;
  z-index: 5;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 700;
  color: var(--accent);
  pointer-events: none;
  animation: rub-fly 1.4s ease-out forwards;
}

@keyframes rub-fly {
  from { opacity: 1; transform: translate(0, 0) rotate(0); }
  to { opacity: 0; transform: translate(var(--dx), -190px) rotate(var(--rot)); }
}

/* ---------- liquid glass puddle on click ---------- */
.puddle {
  position: fixed;
  z-index: 999;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.06) 40%, rgba(198, 255, 74, 0.1) 72%, transparent 78%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 0 26px rgba(255, 255, 255, 0.18),
    inset 0 -10px 30px rgba(0, 0, 0, 0.25),
    0 12px 48px rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(6px) saturate(1.35) brightness(1.15);
  backdrop-filter: blur(6px) saturate(1.35) brightness(1.15);
  transform: scale(0.08);
  opacity: 0;
  animation: puddle 0.95s cubic-bezier(0.22, 0.7, 0.3, 1) forwards;
  will-change: transform, opacity, border-radius;
}

.puddle::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 18px rgba(255, 255, 255, 0.12);
}

@keyframes puddle {
  0% { transform: scale(0.08); opacity: 0; border-radius: 50%; }
  12% { opacity: 0.95; }
  40% { border-radius: 46% 54% 50% 50% / 50% 46% 54% 50%; }
  70% { border-radius: 54% 46% 48% 52% / 46% 54% 50% 50%; }
  100% { transform: scale(1); opacity: 0; border-radius: 50%; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .compare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* В двух колонках карточка уже, поэтому табло внутри неё чуть компактнее. */
@media (min-width: 1100px) {
  .hero .counter-card .seg-display {
    font-size: clamp(1.4rem, 2.7vw, 2.4rem);
  }
  .hero .counter-card .seg-exp {
    font-size: clamp(0.9rem, 1.5vw, 1.25rem);
  }
  .hero .counter-card .seg-wrap {
    gap: 4px 8px;
  }
  /* В узкой правой колонке четыре статистики в ряд не помещаются. */
  .hero .counter-card .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* На узких экранах цифры идут сразу после заголовка, до длинного текста. */
@media (max-width: 1099px) {
  .hero .container {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .hero__copy { display: contents; }
  .hero__copy > .pill { order: 1; align-self: flex-start; }
  .hero__copy > h1 { order: 2; }
  .hero .counter-card { order: 3; margin-top: 20px; }
  .hero__copy > .lede { order: 4; margin-top: 22px; }
  .hero__copy > .hero__actions { order: 5; }
  .hero .disclaimer { order: 6; }
}

@media (max-width: 760px) {
  .container { width: min(1180px, 100% - 32px); }
  .aurora i { opacity: 0.34; filter: blur(56px); }
  .seg-wrap { gap: 6px 10px; }
  .nav { display: none; }
  .header__debt { margin-left: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat__v { font-size: 0.82rem; }
  .section { scroll-margin-top: 70px; }
  .chart-card__top { gap: 10px; }
  .legend { font-size: 0.64rem; }
  .tm__hint { display: none; }
  .pay-row { grid-template-columns: 1fr; }
  .pay-row__value { text-align: left; }
}

@media (max-width: 560px) {
  .compare-grid { grid-template-columns: 1fr; }
  .header__debt {
    display: inline-flex;
    margin-left: auto;
    padding: 5px 9px;
    gap: 6px;
    font-size: 0.6rem;
  }
  .brand__name { font-size: 0.94rem; }
  .board-btn { padding: 8px 10px; }
  .board-btn span { display: none; }
  .counter-card { border-radius: 20px; }
  .session { align-items: flex-start; }
  .section__head { margin-bottom: 26px; }
  .note { flex-direction: column; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }

  /* На телефоне 12 цифр и степень должны помещаться в одну строку. */
  .seg-display { font-size: clamp(1.05rem, 4.7vw, 2.6rem); }
  .seg-wrap { gap: 4px 6px; }
  .seg-exp { font-size: clamp(0.82rem, 3.4vw, 1.3rem); }
}

/* ---------- режим «Табло» ---------- */
body.is-board { overflow: hidden; }

body.is-board .site-header,
body.is-board .aurora,
body.is-board .hero__copy,
body.is-board .disclaimer,
body.is-board .ticker,
body.is-board main > .section,
body.is-board .site-footer { display: none; }

body.is-board main { min-height: 100vh; }

body.is-board .counter-card {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: clamp(16px, 5vh, 64px) clamp(16px, 5vw, 80px);
  border: 0;
  border-radius: 0;
  background: #05060a;
  overflow: auto;
  animation: none;
}

body.is-board .counter-card::before,
body.is-board .counter-card::after { display: none; }

body.is-board .counter-card__head,
body.is-board .counter-sub,
body.is-board .stats,
body.is-board .session { display: none; }

body.is-board .counter-tools {
  justify-content: center;
  margin: 0 0 clamp(10px, 2.5vh, 24px);
}
body.is-board .board-btn { display: none; }

body.is-board .board-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: clamp(14px, 4vh, 40px);
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  color: var(--muted);
}
body.is-board .board-title b {
  color: var(--text);
  font-size: 1.2em;
  letter-spacing: -0.02em;
}
body.is-board .board-title span {
  font-family: var(--mono);
  font-size: 0.66em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

body.is-board .board-title__mode {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

body.is-board .board-exit {
  display: inline-flex;
  position: fixed;
  top: clamp(14px, 2.4vw, 28px);
  right: clamp(14px, 2.4vw, 28px);
  z-index: 2;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  cursor: pointer;
}
body.is-board .board-exit:hover { color: var(--text); border-color: rgba(198, 255, 74, 0.45); }
body.is-board .board-exit:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body.is-board .board-exit kbd {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--mono);
  font-size: 0.9em;
}

body.is-board .counter-card .counter { margin: 0 0 clamp(10px, 2.5vh, 28px); }
body.is-board .counter-card .seg-wrap {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

body.is-board .counter-card .seg-display {
  font-size: clamp(1.4rem, 7vw, 9rem);
  gap: 0.3em;
}
body.is-board .counter-card .seg-group { gap: 0.06em; }
body.is-board .counter-card .seg-exp { font-size: clamp(0.95rem, 2.5vw, 2.6rem); }

body.is-board .counter-card .full-debt {
  margin-top: 0;
  padding-top: clamp(12px, 2.5vh, 26px);
  border-top-color: rgba(255, 255, 255, 0.1);
}
body.is-board .counter-card .full-debt__label {
  text-align: center;
  font-size: clamp(0.6rem, 0.85vw, 0.8rem);
}
body.is-board .counter-card .full-debt__digits {
  justify-content: center;
  gap: 6px 18px;
  font-size: clamp(0.82rem, 1.7vw, 1.6rem);
  line-height: 1.34;
}

body.is-board .counter-card .debt-scale {
  justify-content: center;
  gap: 4px 36px;
  font-size: 0.8rem;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
  .aurora i { animation: none; }
  .tick-ring.is-on { animation: none; }
  /* Счётчик — суть страницы, ему оставляем плавный ход. */
  .digit__strip { transition-duration: 0.09s !important; }
  .fd__strip { transition-duration: 0.42s !important; }
}
