/* CryptoAlert — monochrome terminal design system.
   Fonts: local-first (no network requests, no FOIT/CLS). If Inter/Geist/JetBrains Mono
   are installed they are used; otherwise metric-close system fallbacks. */
@font-face {
  font-family: 'Inter';
  src: local('Inter Variable'), local('Inter'), local('Geist'), local('Segoe UI Variable Text'), local('Segoe UI'), local('Helvetica Neue');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap
}

@font-face {
  font-family: 'Geist Mono';
  src: local('Geist Mono'), local('JetBrains Mono'), local('SFMono-Regular'), local('SF Mono'), local('Consolas'), local('Liberation Mono');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap
}

:root {
  color-scheme: dark;
  --bg: #08090A;
  --bg-elevated: #0E0F11;
  --surface: #131416;
  --surface-hover: #1A1B1E;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #F7F8F8;
  --text-muted: #9A9FA8;
  --text-subtle: #7C818A;
  --text-faint: #62666D;
  --accent: #5E8BFF;
  --accent-soft: rgba(94, 139, 255, .14);
  --up: #26D07C;
  --down: #FF5C5C;
  --warn: #F5B94A;
  --scrim: rgba(4, 5, 6, .72);
  --r-card: 16px;
  --r-control: 10px;
  --r-chip: 999px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 150ms;
  --t-base: 220ms;
  --header-h: 64px;
  --inset-top: inset 0 1px 0 rgba(255, 255, 255, .04);
  --mono: 'Geist Mono', 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px)
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin: 0
}

ul {
  padding: 0;
  list-style: none
}

a {
  color: inherit;
  text-decoration: none
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer
}

img,
svg {
  display: block;
  max-width: 100%
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px
}

::selection {
  background: rgba(94, 139, 255, .28);
  color: #fff
}

/* Scrollbar in the artifact's own language */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .16) transparent
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px
}

::-webkit-scrollbar-track {
  background: var(--bg)
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .14);
  border: 3px solid var(--bg);
  border-radius: var(--r-chip)
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, .26)
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden
}

.icon {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round
}

.icon-sm {
  width: 16px;
  height: 16px
}

.icon-lg {
  width: 24px;
  height: 24px
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: #000;
  border-radius: var(--r-control);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--t-fast) var(--ease)
}

.skip-link:focus-visible {
  transform: none
}

.container {
  width: min(1200px, 100% - 40px);
  margin-inline: auto
}

.section {
  padding-block: 64px;
  position: relative
}

section[id] {
  scroll-margin-top: calc(var(--header-h) + 16px)
}

section[id],
#cta,
footer[id] {
  scroll-margin-top: calc(var(--header-h) + 16px)
}

.section-head {
  max-width: 760px;
  margin-bottom: 40px
}

.section-head.is-center {
  margin-inline: auto;
  text-align: center
}

.section-label {
  display: block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 14px
}

.section-title {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.02em
}

.section-subtitle {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: clamp(15px, 1.4vw, 17px)
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  height: var(--header-h);
  transition: background var(--t-base) var(--ease), border-color var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease);
  border-bottom: 1px solid transparent
}

.header.is-scrolled {
  background: rgba(8, 9, 10, .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border)
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -.01em;
  flex: none
}

.logo-mark {
  width: 26px;
  height: 26px;
  color: var(--text)
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color var(--t-fast) var(--ease)
}

.nav a:hover {
  color: var(--text)
}

.nav a.active {
  color: var(--text)
}

.nav a.active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -2px;
  height: 1px;
  background: var(--accent)
}

.nav-extra {
  display: none
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 36px;
  padding: 0 10px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease)
}

.lang-switch:hover {
  color: var(--text);
  border-color: var(--border-strong)
}

.header-cabinet {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease)
}

.header-cabinet:hover {
  color: var(--text);
  border-color: var(--border-strong);
  background: var(--surface)
}

.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 16px;
  font-size: 14px;
  font-weight: 600;
  background: var(--text);
  color: #08090A;
  border-radius: var(--r-control);
  transition: opacity var(--t-fast) var(--ease)
}

.header-cta:hover {
  opacity: .86
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  color: var(--text)
}

.mobile-menu-toggle .icon-close {
  display: none
}

.mobile-menu-toggle[aria-expanded="true"] .icon-menu {
  display: none
}

.mobile-menu-toggle[aria-expanded="true"] .icon-close {
  display: block
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -.01em;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease)
}

.btn:active {
  transform: translateY(1px)
}

.btn-primary {
  background: var(--text);
  color: #08090A
}

.btn-primary:hover {
  opacity: .88
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, .26)
}

.btn-link {
  min-height: 44px;
  padding: 0 4px;
  color: var(--text-muted);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .24);
  text-underline-offset: 4px
}

.btn-link:hover {
  color: var(--text);
  text-decoration-color: currentColor
}

.btn-block {
  width: 100%
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 64px;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(120% 80% at 50% 0%, #000 0%, transparent 72%)
}

.hero-bg::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -280px;
  width: 1100px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .08), transparent 70%)
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  background: var(--surface);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted)
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-soft);
  animation: pulse 2.4s var(--ease) infinite
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(94, 139, 255, .5)
  }

  70% {
    box-shadow: 0 0 0 7px rgba(94, 139, 255, 0)
  }

  100% {
    box-shadow: 0 0 0 0 rgba(94, 139, 255, 0)
  }
}

.hero-title {
  margin-top: 22px;
  font-size: clamp(34px, 4.4vw, 58px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.03em;
  text-wrap: balance;
  background: linear-gradient(180deg, #F7F8F8 40%, #8A8F98 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent
}

.hero-title-muted {
  display: block;
  background: none;
  color: var(--text-muted);
  -webkit-text-fill-color: var(--text-muted)
}

.hero-subtitle {
  margin-top: 22px;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: clamp(15px, 1.5vw, 18px)
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 32px
}

.hero-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint)
}

.hero-note a {
  color: var(--text-muted);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .2);
  text-underline-offset: 3px
}

.hero-note a:hover {
  color: var(--text)
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border)
}

.hero-fact {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: var(--text-muted)
}

.hero-fact .icon {
  color: var(--text-faint)
}

.hero-fact b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
  font-variant-numeric: tabular-nums
}

/* ---------- Telegram mock ---------- */
.hero-visual {
  display: flex;
  justify-content: center
}

.tg {
  width: min(100%, 440px);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top);
  overflow: hidden
}

.tg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface)
}

.tg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #1F2126;
  color: var(--text);
  flex: none
}

.tg-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3
}

.tg-sub {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: .04em
}

.tg-status {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent)
}

.tg-body {
  padding: 16px
}

.tg-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--text-faint);
  text-transform: uppercase
}

.carousel {
  position: relative
}

.carousel-dots {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin-bottom: 14px
}

.carousel-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--r-chip)
}

.carousel-dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .2);
  transition: background var(--t-fast) var(--ease), width var(--t-fast) var(--ease)
}

.carousel-dot:hover::before {
  background: rgba(255, 255, 255, .4)
}

.carousel-dot.active::before {
  width: 16px;
  border-radius: var(--r-chip);
  background: var(--text)
}

.carousel-track {
  position: relative;
  display: grid
}

.carousel-track .carousel-slide {
  grid-area: 1 / 1;
  visibility: hidden;
  opacity: 0
}

.carousel-track .carousel-slide.active {
  visibility: visible;
  opacity: 1
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-base) var(--ease);
  pointer-events: none
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto
}

.alert-bubble {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 214px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--inset-top)
}

.alert-top {
  display: flex;
  align-items: center;
  gap: 8px
}

.alert-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #1F2126;
  flex: none
}

.alert-icon .icon {
  width: 14px;
  height: 14px
}

.alert-pair {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -.01em
}

.alert-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-chip);
  border: 1px solid var(--border-strong);
  color: var(--text-muted)
}

.alert-time {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  font-variant-numeric: tabular-nums
}

.alert-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums
}

.alert-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap
}

.alert-label {
  color: var(--text-faint)
}

.alert-body b {
  font-weight: 500;
  color: var(--text)
}

.alert-oi .alert-pair,
.alert-oi .alert-icon {
  color: var(--text)
}

.alert-pd .alert-pair,
.alert-pd .alert-icon {
  color: var(--down)
}

.alert-price .alert-pair,
.alert-price .alert-icon {
  color: var(--down)
}

.alert-close .alert-pair,
.alert-close .alert-icon {
  color: var(--down)
}

.alert-liq .alert-pair,
.alert-liq .alert-icon {
  color: var(--up)
}

.v-up {
  color: var(--up)
}

.v-down {
  color: var(--down)
}

.v-warn {
  color: var(--warn)
}

/* ---------- Exchanges + stats ---------- */
.proof {
  padding-block: 24px 0
}

.exchanges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-bottom: 28px
}

.exchanges-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint)
}

.exchanges-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px
}

.exchange-word {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: var(--text-faint);
  transition: color var(--t-fast) var(--ease)
}

.exchange-word:hover {
  color: var(--text-muted)
}

.stats-card {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top);
  overflow: hidden
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr)
}

.stat {
  padding: 24px 20px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border)
}

.stat:nth-child(-n+2) {
  border-top: 0
}

.stat:nth-child(odd) {
  border-left: 0
}

.stat-number {
  display: flex;
  align-items: baseline;
  gap: 1px;
  font-family: var(--mono);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 500;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1
}

.stat-number .stat-unit {
  font-size: .62em;
  color: var(--text-muted)
}

.stat-label {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-muted)
}

.stat.is-key .stat-number {
  color: var(--accent)
}

/* ---------- Cards / spotlight ---------- */
.card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top);
  transition: border-color var(--t-base) var(--ease), background var(--t-base) var(--ease)
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--t-base) var(--ease);
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .055), transparent 62%)
}

.spotlight:hover {
  border-color: var(--border-strong)
}

.spotlight:hover::before {
  opacity: 1
}

.card-body {
  position: relative;
  padding: 24px
}

/* ---------- Bots ---------- */
.bots-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr
}

.bot-card {
  display: flex;
  flex-direction: column
}

.bot-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%
}

.bot-head {
  display: flex;
  align-items: center;
  gap: 12px
}

.bot-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  flex: none
}

.bot-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em
}

.bot-desc {
  font-size: 14px;
  color: var(--text-muted)
}

.bot-alert-figure {
  display: flex;
  flex-direction: column;
  gap: 8px
}

.bot-alert-figure .alert-bubble {
  min-height: 0;
  background: var(--surface)
}

.bot-alert-figure figcaption {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint)
}

.bot-features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--text-muted)
}

.bot-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px
}

.bot-features .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--accent)
}

.bot-link {
  margin-top: auto
}

/* ---------- Screener ---------- */
.screener-banner {
  display: grid;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top)
}

.screener-title {
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -.02em;
  line-height: 1.2
}

.screener-text {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 14.5px
}

.screener-inline {
  margin-top: 14px;
  font-size: 14px;
  color: var(--text-muted)
}

.screener-inline a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .28);
  text-underline-offset: 3px
}

.screener-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  background: var(--surface);
  font-size: 12.5px;
  color: var(--text-muted)
}

.chip .icon {
  width: 14px;
  height: 14px;
  color: var(--text-faint)
}

.screener-cta {
  margin-top: 24px
}

.book {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 12px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-variant-numeric: tabular-nums
}

.book-head {
  display: flex;
  justify-content: space-between;
  padding: 0 4px 8px;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint)
}

.book-side {
  display: flex;
  flex-direction: column;
  gap: 3px
}

.book-row {
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr 62px;
  align-items: center;
  gap: 8px;
  height: 22px;
  padding: 0 6px;
  border-radius: 5px;
  overflow: hidden
}

.book-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w, 20%);
  border-radius: 5px
}

.book-asks .book-bar {
  background: rgba(255, 92, 92, .16)
}

.book-bids .book-bar {
  background: rgba(38, 208, 124, .16)
}

.book-price,
.book-size {
  position: relative
}

.book-asks .book-price {
  color: var(--down)
}

.book-bids .book-price {
  color: var(--up)
}

.book-size {
  text-align: right;
  color: var(--text-muted)
}

.book-row.is-wall {
  outline: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, .03)
}

.book-row.is-wall .book-size {
  color: var(--text)
}

.book-wall-tag {
  position: relative;
  justify-self: end;
  font-size: 9px;
  letter-spacing: .1em;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--text)
}

.book-mid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0;
  padding: 7px 6px;
  border-block: 1px solid var(--border);
  color: var(--text)
}

.book-mid span:last-child {
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--text-faint)
}

/* ---------- How it works ---------- */
.how-grid {
  position: relative;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr
}

.how-step {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top)
}

.how-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--surface)
}

.how-step-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em
}

.how-step-desc {
  font-size: 14px;
  color: var(--text-muted)
}

.how-figure {
  margin-top: auto;
  padding-top: 8px
}

.how-art {
  width: 100%;
  height: auto;
  aspect-ratio: 16/7;
  color: var(--text-faint)
}

.how-figure figcaption {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint)
}

.how-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px
}

.how-badge {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--text-muted)
}

/* ---------- Advantages ---------- */
.advantages-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr
}

.advantage-item .card-body {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.advantage-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text)
}

.advantage-item h3 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-muted)
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--accent)
}

/* ---------- Pricing ---------- */
.pricing-plans {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin-inline: auto
}

.pricing-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  height: 100%;
  padding: 28px 24px
}

.pricing-card.popular {
  border-color: var(--border-strong);
  background: var(--surface)
}

.pricing-card.popular::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .04), 0 24px 80px -40px rgba(255, 255, 255, .16)
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  height: 26px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted)
}

.pricing-card.popular .pricing-badge {
  border-color: var(--border-strong);
  color: var(--text)
}

.pricing-card h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 46px);
  letter-spacing: -.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums
}

.pricing-currency {
  font-size: .6em;
  color: var(--text-muted)
}

.pricing-period {
  font-size: .34em;
  letter-spacing: 0;
  color: var(--text-muted);
  white-space: nowrap
}

.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted)
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px
}

.pricing-features .icon {
  width: 15px;
  height: 15px;
  margin-top: 3px;
  color: var(--accent)
}

.pricing-card .btn {
  margin-top: auto
}

.pricing-note {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  max-width: 720px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-faint);
  text-align: left
}

.pricing-note .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  color: var(--text-muted)
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 880px;
  margin-inline: auto;
  border-top: 1px solid var(--border)
}

.faq-item {
  border-bottom: 1px solid var(--border)
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 60px;
  padding: 18px 4px;
  text-align: left;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -.01em;
  color: var(--text);
  transition: color var(--t-fast) var(--ease)
}

.faq-question:hover {
  color: var(--text-muted)
}

.faq-icon {
  font-family: var(--mono);
  font-size: 18px;
  line-height: 1;
  color: var(--text-faint);
  flex: none;
  width: 20px;
  text-align: center
}

.faq-question[aria-expanded="true"] .faq-icon {
  color: var(--accent)
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-base) var(--ease)
}

.faq-answer-inner {
  padding: 0 44px 20px 4px;
  font-size: 14.5px;
  color: var(--text-muted)
}

.faq-answer-inner a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, .28);
  text-underline-offset: 3px
}

/* ---------- Cabinet ---------- */
.cabinet-block {
  display: grid;
  gap: 28px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top)
}

.cabinet-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted)
}

.cabinet-features li {
  display: flex;
  align-items: flex-start;
  gap: 11px
}

.cabinet-features .icon {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--text-faint)
}

.cabinet-cta {
  margin-top: 24px
}

.cabinet-visual {
  display: grid;
  gap: 12px
}

.cabinet-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden
}

.cabinet-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-faint)
}

.cabinet-panel-head .icon {
  width: 14px;
  height: 14px
}

.cabinet-panel figcaption {
  padding: 8px 12px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  border-top: 1px solid var(--border)
}

.feed {
  display: flex;
  flex-direction: column
}

.feed-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums
}

.feed-row:last-child {
  border-bottom: 0
}

.feed-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none
}

.feed-pair {
  color: var(--text);
  min-width: 74px
}

.feed-val {
  margin-left: auto
}

.settings-mock {
  display: flex;
  flex-direction: column;
  gap: 0
}

.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-muted)
}

.settings-row:last-child {
  border-bottom: 0
}

.settings-val {
  color: var(--text)
}

.switch {
  width: 28px;
  height: 16px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, .14);
  position: relative;
  flex: none
}

.switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-faint);
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease)
}

.switch.on {
  background: var(--accent-soft)
}

.switch.on::after {
  transform: translateX(12px);
  background: var(--accent)
}

/* ---------- Final CTA ---------- */
.cta-wrapper {
  position: relative;
  overflow: hidden;
  padding: 56px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top);
  text-align: center
}

.cta-wrapper::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -160px;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 255, 255, .06), transparent 70%);
  pointer-events: none
}

.cta-title {
  position: relative;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em
}

.cta-title-accent {
  color: var(--text-muted)
}

.cta-subtitle {
  position: relative;
  margin: 16px auto 0;
  max-width: 56ch;
  color: var(--text-muted);
  font-size: 15.5px
}

.cta-actions {
  position: relative;
  margin-top: 28px;
  display: flex;
  justify-content: center
}

.cta-note {
  position: relative;
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text-faint)
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 48px 32px;
  background: var(--bg)
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr
}

.footer-brand {
  max-width: 34ch
}

.footer-tagline {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint)
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 500;
  margin-bottom: 14px
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.footer-links a {
  font-size: 13.5px;
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
  width: fit-content
}

.footer-links a:hover {
  color: var(--text)
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between
}

.footer-copy {
  font-size: 12.5px;
  color: var(--text-faint)
}

.footer-disclaimer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .05em;
  color: var(--text-faint)
}

.footer-disclaimer .icon {
  width: 14px;
  height: 14px
}

/* ---------- Pay modal ---------- */
.pay-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
  background: var(--scrim);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px)
}

.pay-modal-overlay[hidden] {
  display: none
}

.pay-modal {
  position: relative;
  width: min(620px, 100%);
  max-height: min(86vh, 760px);
  overflow-y: auto;
  padding: 28px 24px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-card);
  background: var(--bg-elevated);
  box-shadow: var(--inset-top), 0 40px 120px -40px rgba(0, 0, 0, .9)
}

.pay-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease)
}

.pay-modal-close:hover {
  color: var(--text);
  border-color: var(--border-strong)
}

.pay-modal-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  padding-right: 44px
}

.pay-modal-text {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--text-muted)
}

.pay-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px
}

.pay-method {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--r-control);
  background: var(--surface);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease)
}

.pay-method:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover)
}

.pay-method.active {
  border-color: var(--accent);
  background: var(--accent-soft)
}

.pay-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  flex: none;
  display: grid;
  place-items: center
}

.pay-method.active .pay-radio {
  border-color: var(--accent)
}

.pay-method.active .pay-radio::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent)
}

.pay-method-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px
}

.pay-method-name {
  font-size: 13.5px;
  font-weight: 600
}

.pay-method-addr {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  overflow-wrap: anywhere
}

.pay-details {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border)
}

.pay-details[hidden] {
  display: none
}

.pay-details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 12px
}

.pay-details-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-faint);
  min-width: 104px
}

.pay-details-value {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text)
}

.pay-details-addr {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow-wrap: anywhere
}

.pay-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-control);
  font-size: 13px;
  color: var(--text);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), background var(--t-fast) var(--ease)
}

.pay-copy:hover {
  background: var(--surface);
  border-color: rgba(255, 255, 255, .26)
}

.pay-copy.is-copied {
  color: var(--accent);
  border-color: var(--accent)
}

.pay-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-muted);
  counter-reset: step
}

.pay-steps li {
  display: flex;
  gap: 10px
}

.pay-steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-faint);
  width: 18px;
  height: 18px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 2px
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px
}

.pay-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--text-faint)
}

/* ---------- Floating CTA ---------- */
.floating-cta {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--r-chip);
  background: var(--text);
  color: #08090A;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 12px 40px -12px rgba(0, 0, 0, .9);
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility var(--t-base)
}

.floating-cta:hover {
  opacity: .9
}

.floating-cta.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  pointer-events: none
}

/* ---------- Reveal ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--ease), transform 420ms var(--ease)
}

.js .reveal.visible {
  opacity: 1;
  transform: none
}

/* ---------- Responsive ---------- */
@media (min-width:768px) {
  .container {
    width: min(1200px, 100% - 64px)
  }

  .section {
    padding-block: 96px
  }

  .hero {
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 88px
  }

  .stats-grid {
    grid-template-columns: repeat(5, 1fr)
  }

  .stat {
    border-top: 0;
    border-left: 1px solid var(--border);
    padding: 28px 22px
  }

  .stat:first-child {
    border-left: 0
  }

  .stat:nth-child(odd) {
    border-left: 1px solid var(--border)
  }

  .stat:first-child {
    border-left: 0
  }

  .bots-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .advantages-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .how-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .pricing-plans {
    grid-template-columns: repeat(2, 1fr)
  }

  .screener-banner {
    grid-template-columns: 1.15fr .85fr;
    align-items: center;
    padding: 32px
  }

  .cabinet-block {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    padding: 32px
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr
  }

  .cta-wrapper {
    padding: 72px 40px
  }
}

@media (min-width:1024px) {
  .section {
    padding-block: 112px
  }

  .hero-grid {
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px
  }

  .hero-visual {
    justify-content: flex-end
  }

  .bots-grid {
    grid-template-columns: repeat(6, 1fr)
  }

  .bot-card:nth-child(1),
  .bot-card:nth-child(2),
  .bot-card:nth-child(3) {
    grid-column: span 2
  }

  .bot-card:nth-child(4),
  .bot-card:nth-child(5) {
    grid-column: span 3
  }

  .advantages-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .how-grid {
    gap: 0
  }

  .how-step {
    border-radius: 0;
    border-right-width: 0
  }

  .how-step:first-child {
    border-radius: var(--r-card) 0 0 var(--r-card)
  }

  .how-step:last-child {
    border-radius: 0 var(--r-card) var(--r-card) 0;
    border-right-width: 1px
  }
}

@media (max-width:1023px) {
  .nav {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    margin: 0;
    padding: calc(var(--header-h) + 24px) 24px 32px;
    background: var(--bg);
    overflow-y: auto
  }

  .nav.open {
    display: flex
  }

  .nav a {
    min-height: 52px;
    padding: 0 4px;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -.02em;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    border-radius: 0
  }

  .nav a.active::after {
    left: 4px;
    right: auto;
    width: 24px;
    bottom: 10px
  }

  .nav-extra {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px
  }

  .nav-extra .btn,
  .nav-extra .lang-switch {
    width: 100%;
    min-height: 48px
  }

  .header-actions .lang-switch,
  .header-actions .header-cabinet,
  .header-actions .header-cta {
    display: none
  }

  .mobile-menu-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 95
  }

  .logo {
    position: relative;
    z-index: 95
  }

  body.nav-open {
    overflow: hidden
  }
}

@media (max-width:767px) {
  .floating-cta {
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 56px;
    border-radius: 0;
    justify-content: center;
    padding: 0 20px calc(env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -1px 0 var(--border), 0 -12px 40px -12px rgba(0, 0, 0, .9)
  }

  .floating-cta.is-hidden {
    transform: translateY(100%)
  }

  .footer {
    padding-bottom: calc(32px + 64px)
  }

  .carousel-track {
    min-height: 0
  }

  .alert-body {
    font-size: 12px
  }

  .book-row {
    grid-template-columns: 68px 1fr 56px
  }

  .pay-modal {
    padding: 24px 18px
  }

  .pay-details-label {
    min-width: 100%
  }
}

@media (max-width:359px) {
  .container {
    width: calc(100% - 24px)
  }
}

@media (hover:none) {
  .spotlight::before {
    display: none
  }
}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important
  }

  .js .reveal {
    opacity: 1;
    transform: none
  }

  .live-dot {
    animation: none
  }
}


/* ==== ALERT FORMAT: точное воспроизведение сообщений ботов (блок должен остаться последним) ==== */
.alert-bubble {
  position: relative;
  padding: 10px 12px 24px;
  border-radius: 12px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: none;
  min-height: 0;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.6;
  color: #e9edf1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  display: block;
}

.alert-line {
  display: block
}

.alert-line b {
  font-weight: 600;
  color: #fff
}

.alert-head {
  font-weight: 700;
  color: #fff
}

.alert-pair,
.alert-ex {
  color: var(--text);
  font-weight: 600
}

.alert-sep {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  color: #e9edf1;
  opacity: .7
}

.alert-time {
  position: absolute;
  right: 12px;
  bottom: 7px;
  font-family: var(--mono);
  font-size: 10px;
  color: #7f91a3;
  font-variant-numeric: tabular-nums
}

.carousel-track {
  min-height: 0
}

.bot-alert-figure .alert-bubble {
  background: #182533
}

@media (max-width:767px) {
  .carousel-track {
    min-height: 0
  }

  .alert-bubble {
    font-size: 11.5px
  }
}

/* ==== END ALERT FORMAT ==== */

/* ============================================================
   HERO CAROUSEL — auto-height, no clipping. Append LAST in
   landing/css/styles.css. All slides share one grid cell, so the
   track sizes itself to the tallest alert and never jumps or cuts.
   ============================================================ */

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: auto;
  min-height: 0;
}

.tg {
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: flex-start;
  overflow: hidden;
}

.tg-body {
  height: auto;
  min-height: 0;
  overflow: visible;
}

.carousel {
  height: auto;
  min-height: 0;
}

.carousel-track {
  display: grid;
  grid-template-columns: 1fr;
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.carousel-slide {
  grid-area: 1 / 1;
  position: static;
  inset: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(.2, .8, .2, 1);
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.carousel-slide .alert-bubble {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
  padding: 12px 14px 26px;
}

.carousel-slide .alert-line {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.carousel-slide .alert-sep {
  margin-top: auto;
  padding-top: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}

.carousel-slide .alert-time {
  position: absolute;
  right: 14px;
  bottom: 8px;
}

.carousel-dots {
  flex-shrink: 0;
}

@media (max-width:767px) {
  .carousel-track {
    min-height: 0
  }

  .carousel-slide .alert-bubble {
    padding: 12px 12px 26px
  }

  .carousel-slide .alert-time {
    right: 12px
  }
}

@media (prefers-reduced-motion:reduce) {
  .carousel-slide {
    transition: none
  }
}

/* ==================== END HERO CAROUSEL ==================== */


/* ============================================================
   ALERT BUBBLES → MONOCHROME
   Блок должен остаться последним: перекрывает и базовый
   .alert-bubble, и .carousel-slide .alert-bubble из блока карусели.
   ============================================================ */

.alert-bubble,
.bot-alert-figure .alert-bubble,
.carousel-slide .alert-bubble {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--inset-top);
  color: var(--text-muted);
  /* гасит цветные эмодзи, если они остались в разметке */
  filter: grayscale(1);
}

/* Метки строк — приглушённые, значения — белые: иерархия без цвета */
.alert-bubble .alert-line,
.carousel-slide .alert-line {
  color: var(--text-muted);
}

.alert-bubble .alert-line b,
.alert-bubble b,
.carousel-slide .alert-line b {
  color: var(--text);
  font-weight: 600;
}

.alert-bubble .alert-head,
.carousel-slide .alert-head {
  color: var(--text);
  font-weight: 700;
}

/* Тикер и биржа больше не «ссылочно-синие» */
.alert-bubble .alert-pair,
.alert-bubble .alert-ex,
.carousel-slide .alert-pair,
.carousel-slide .alert-ex {
  color: var(--text);
  font-weight: 600;
}

/* Остатки цветовых вариантов из прежней версии карточек */
.alert-bubble .alert-icon,
.alert-oi .alert-icon,
.alert-pd .alert-icon,
.alert-price .alert-icon,
.alert-close .alert-icon,
.alert-liq .alert-icon {
  color: var(--text-muted);
  background: var(--surface-hover);
}

.alert-oi .alert-pair,
.alert-pd .alert-pair,
.alert-price .alert-pair,
.alert-close .alert-pair,
.alert-liq .alert-pair {
  color: var(--text);
}

/* Семантические классы внутри пузыря не красят текст */
.alert-bubble .v-up,
.alert-bubble .v-down,
.alert-bubble .v-warn {
  color: var(--text);
}

/* Разделитель — тихая линейка, время — читаемое, но второстепенное */
.alert-bubble .alert-sep,
.carousel-slide .alert-sep {
  color: var(--text-faint);
  opacity: .65;
  letter-spacing: -.02em;
}

.alert-bubble .alert-time,
.carousel-slide .alert-time {
  color: #7A7F87;
}

/* Шапка Telegram-макета stays в токенах дизайн-системы */
.tg {
  background: var(--bg-elevated);
  border-color: var(--border)
}

.tg-head {
  background: var(--surface);
  border-bottom-color: var(--border)
}

.tg-avatar {
  background: var(--surface-hover);
  color: var(--text)
}

.tg-title {
  color: var(--text)
}

.tg-sub,
.tg-foot {
  color: var(--text-faint)
}

@media (prefers-reduced-motion:reduce) {
  .alert-bubble {
    filter: grayscale(1)
  }
}

/* ==================== END ALERT BUBBLES → MONOCHROME ==================== */



/* ============================================================
   MOBILE MENU: <a class="btn"> ДОЛЖНЫ ВЫГЛЯДЕТЬ КАК КНОПКИ
   В @media (max-width:1023px) правило `.nav a` (specificity
   0,1,1) перебивает `.btn-primary` (0,1,0): кнопка получает
   белый фон + белый текст и острые углы → «белый прямоугольник».
   Правила ниже возвращают кнопкам их нормальный вид.
   ============================================================ */
@media (max-width: 1023px) {
  .nav .btn,
  .nav-extra .btn {
    min-height: 48px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 600;
    border-bottom: 0;
    border-radius: var(--r-control);
    color: var(--text);
    text-align: center;
    justify-content: center;
  }

  .nav .btn-primary,
  .nav-extra .btn-primary {
    background: var(--text);
    color: #08090A;
  }

  .nav .btn-primary:hover,
  .nav-extra .btn-primary:hover {
    opacity: 0.88;
    color: #08090A;
  }

  .nav .btn-ghost,
  .nav-extra .btn-ghost {
    background: transparent;
    border: 1px solid var(--border-strong);
    color: var(--text);
  }

  .nav .btn-ghost:hover,
  .nav-extra .btn-ghost:hover {
    background: var(--surface);
    border-color: rgba(255, 255, 255, 0.26);
  }

  .nav .btn-link,
  .nav-extra .btn-link {
    background: transparent;
    color: var(--text-muted);
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.24);
    text-underline-offset: 4px;
  }

  /* У кнопок-CTA не должно быть нижнего активного подчёркивания */
  .nav .btn.active::after,
  .nav-extra .btn.active::after {
    display: none;
  }

  .nav-extra .lang-switch {
    width: 100%;
    min-height: 48px;
    justify-content: center;
    font-size: 14px;
  }
}