/* =========================================================
   Meta AI — Demo Trading Landing
   ========================================================= */
:root {
  --bg: #050a1c;
  --bg-2: #0b0d26;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(70, 160, 255, .4);
  --text: #eceefe;
  --text-dim: #9a9ec4;
  --text-mute: #6a6f99;
  --blue: #4f7cff;
  --violet: #6c7bff;
  --cyan: #22d3ee;
  --green: #22e39a;
  --red: #ff5c7a;
  --grad: linear-gradient(135deg, #3a5cff 0%, #2f8cff 50%, #22d3ee 100%);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border) inset;
  --ease: cubic-bezier(.22, .9, .32, 1);
  --font: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.text-green {
  color: var(--green);
}

.text-red {
  color: var(--red);
}

.ta-r {
  text-align: right;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 820px;
}

/* ---------- Background ---------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: .45;
  animation: float 22s var(--ease) infinite alternate;
}

.blob-1 {
  width: 620px;
  height: 620px;
  background: #2446ff;
  top: -200px;
  left: -160px;
}

.blob-2 {
  width: 520px;
  height: 520px;
  background: #0e7cd6;
  top: 20%;
  right: -180px;
  animation-delay: -6s;
}

.blob-3 {
  width: 480px;
  height: 480px;
  background: #5a4dff;
  bottom: -220px;
  left: 30%;
  opacity: .25;
  animation-delay: -12s;
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 70%);
}

@keyframes float {
  to {
    transform: translate(60px, 40px) scale(1.12);
  }
}

/* ---------- Glass ---------- */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow);
}

.glass-inner {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(6, 7, 26, .6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 18px;
}

.logo b {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 2px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  box-shadow: 0 0 24px rgba(47, 140, 255, .6);
  position: relative;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-right-color: transparent;
  transform: rotate(45deg);
}

.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-dim);
}

.nav-links a {
  position: relative;
  transition: color .2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transition: transform .3s var(--ease);
  border-radius: 2px;
}

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

.nav-links a:hover::after {
  transform: scaleX(1);
}

.demo-badge {
  font: 600 11px var(--mono);
  letter-spacing: .08em;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: #9fd4ff;
  background: rgba(47, 140, 255, .12);
}

.burger {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

.burger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.is-open span:nth-child(2) {
  opacity: 0;
}

.burger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s, opacity .25s;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: scale(.97);
}

.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(40, 130, 255, .7);
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg);
  transition: left .6s var(--ease);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -8px rgba(40, 130, 255, .9);
}

.btn-primary:hover::before {
  left: 140%;
}

.btn-primary.is-running {
  background: linear-gradient(135deg, #ff5c7a, #c0389a);
  box-shadow: 0 10px 30px -8px rgba(255, 92, 122, .6);
}

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

.btn-ghost:hover:not(:disabled) {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-icon {
  font-size: 11px;
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .25s var(--ease);
}

.icon-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  transform: scale(1.06);
}

/* ---------- Common ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #93c5fd;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(79, 124, 255, .1);
  border: 1px solid rgba(79, 124, 255, .25);
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(34, 227, 154, .6);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(34, 227, 154, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 227, 154, 0);
  }
}

.section {
  padding: 96px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  margin: 16px 0 12px;
}

.section-head p {
  color: var(--text-dim);
  margin: 0;
}

.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}

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

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 22px 0 20px;
  font-weight: 700;
}

.lead {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 24px;
}

.hero-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: border-color .25s, color .25s, transform .25s var(--ease);
}

.hero-features li:hover {
  border-color: var(--border-strong);
  color: var(--text);
  transform: translateY(-2px);
}

.hf-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(58, 92, 255, .22), rgba(34, 211, 238, .14));
  border: 1px solid rgba(70, 160, 255, .3);
}

.hf-icon .ico {
  width: 14px;
  height: 14px;
}

/* SVG-иконки */
.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.ico {
  fill: none;
  stroke: url(style.css%3Fv=20261017-2.css);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Dashboard ---------- */
.dashboard {
  padding: 22px;
  position: relative;
}

.dashboard::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(79, 124, 255, .6), transparent 35%, transparent 65%, rgba(34, 211, 238, .5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dash-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-title strong {
  display: block;
  font-size: 15px;
}

.dash-title small {
  color: var(--text-mute);
  font-size: 12px;
}

.dash-logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  opacity: .9;
  box-shadow: 0 0 20px rgba(47, 140, 255, .5);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font: 500 12px var(--mono);
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all .4s var(--ease);
}

.status-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.status-pill.is-idle {
  color: var(--text-dim);
  background: rgba(255, 255, 255, .04);
}

.status-pill.is-idle i {
  background: #f5b84b;
}

.status-pill.is-active {
  color: var(--green);
  background: rgba(34, 227, 154, .1);
  border-color: rgba(34, 227, 154, .35);
}

.status-pill.is-active i {
  background: var(--green);
  animation: pulse 1.6s infinite;
}

.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.kpi {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}

.kpi:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .05);
}

.kpi small {
  display: block;
  color: var(--text-mute);
  font-size: 11px;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi strong {
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

.kpi strong.flash {
  animation: flash .6s var(--ease);
}

@keyframes flash {
  0% {
    text-shadow: 0 0 18px rgba(34, 227, 154, .9);
  }

  100% {
    text-shadow: none;
  }
}

.dash-chart,
.dash-log {
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .18);
  border: 1px solid var(--border);
  padding: 14px;
  margin-bottom: 14px;
}

.chart-head,
.log-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.chart-change {
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .05);
}

.chart-change.up {
  color: var(--green);
  background: rgba(34, 227, 154, .1);
}

.chart-change.down {
  color: var(--red);
  background: rgba(255, 92, 122, .1);
}

.chart-wrap {
  height: 180px;
  position: relative;
}

.log-count {
  color: var(--text-mute);
}

.log-cols,
.log-row {
  display: grid;
  grid-template-columns: 74px 1fr 46px 1fr 78px 66px;
  gap: 8px;
  align-items: center;
}

.log-cols {
  font-size: 10px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 0 8px 6px;
  border-bottom: 1px solid var(--border);
}

.log-list {
  list-style: none;
  margin: 0;
  padding: 0;
  height: 168px;
  overflow: hidden;
  position: relative;
}

.log-list::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: linear-gradient(transparent, rgba(8, 9, 30, .95));
  pointer-events: none;
}

.log-empty {
  color: var(--text-mute);
  font-size: 13px;
  text-align: center;
  padding: 60px 10px;
}

.log-row {
  font: 12px var(--mono);
  padding: 7px 8px;
  border-bottom: 1px dashed rgba(255, 255, 255, .05);
  animation: rowIn .5s var(--ease);
}

.log-row:first-child {
  background: linear-gradient(90deg, rgba(79, 124, 255, .12), transparent);
}

.log-row .t {
  color: var(--text-mute);
}

.log-row .side-buy {
  color: var(--cyan);
}

.log-row .side-sell {
  color: #f5a5ff;
}

.log-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  font: 600 10px var(--mono);
  padding: 3px 7px;
  border-radius: 6px;
  text-align: center;
}

.badge-profit {
  color: var(--green);
  background: rgba(34, 227, 154, .12);
}

.badge-loss {
  color: var(--red);
  background: rgba(255, 92, 122, .12);
}

@keyframes rowIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.dash-actions {
  display: flex;
  gap: 10px;
}

.dash-actions .btn-primary {
  flex: 1;
}

.dash-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: var(--text-mute);
  text-align: center;
}

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s;
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -80px;
  top: -80px;
  border-radius: 50%;
  background: var(--grad);
  filter: blur(60px);
  opacity: .18;
  transition: opacity .35s;
}

.stat-card:hover::after {
  opacity: .35;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  position: relative;
  background: linear-gradient(145deg, rgba(58, 92, 255, .2), rgba(34, 211, 238, .08));
  border: 1px solid rgba(70, 160, 255, .35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 10px 26px -12px rgba(34, 160, 255, .7);
  transition: transform .35s var(--ease), box-shadow .35s;
}

.stat-icon .ico {
  width: 26px;
  height: 26px;
}

.stat-card:hover .stat-icon {
  transform: translateY(-2px) rotate(-4deg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 14px 30px -10px rgba(34, 200, 255, .9);
}

.stat-value {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.stat-label {
  font-weight: 600;
  margin: 4px 0 6px;
}

.stat-hint {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0;
}

.stat-bar {
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .06);
  margin-top: 20px;
  overflow: hidden;
}

.stat-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  border-radius: 4px;
  transition: width 1.6s var(--ease);
}

/* ---------- Heatmap ---------- */
.heatmap-card {
  padding: 28px;
}

.heatmap-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.hm-sum {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
}

.hm-sum small {
  display: block;
  color: var(--text-mute);
  font-size: 12px;
}

.hm-sum strong {
  font: 500 20px var(--mono);
}

.heatmap-scroll {
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.heatmap {
  --cell: 18px;
  --gap: 5px;
  display: inline-block;
  min-width: 100%;
}

.hm-months {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  gap: var(--gap);
  margin-left: 34px;
  height: 18px;
  font-size: 11px;
  color: var(--text-mute);
}

.hm-months span {
  white-space: nowrap;
}

.hm-body {
  display: flex;
  gap: 8px;
}

.hm-days {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  gap: var(--gap);
  font-size: 10px;
  color: var(--text-mute);
  width: 26px;
}

.hm-days span {
  line-height: var(--cell);
}

.hm-grid {
  display: grid;
  grid-template-rows: repeat(7, var(--cell));
  grid-auto-flow: column;
  grid-auto-columns: var(--cell);
  gap: var(--gap);
}

.hm-cell {
  width: var(--cell);
  height: var(--cell);
  border-radius: 5px;
  transition: transform .2s var(--ease), box-shadow .2s;
  cursor: pointer;
  opacity: 0;
  animation: cellIn .5s var(--ease) forwards;
}

.hm-cell.is-empty {
  visibility: hidden;
}

.hm-cell:hover {
  transform: scale(1.35);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .6);
  position: relative;
  z-index: 2;
}

@keyframes cellIn {
  from {
    opacity: 0;
    transform: scale(.4);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.lvl-0 {
  background: #161b33;
}

.lvl-1 {
  background: #1d3a7a;
}

.lvl-2 {
  background: #1b8fb0;
}

.lvl-3 {
  background: #1aa874;
}

.lvl-4 {
  background: #22e39a;
  box-shadow: 0 0 12px rgba(34, 227, 154, .45);
}

.hm-legend {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
  margin-top: 18px;
  font-size: 12px;
  color: var(--text-mute);
}

.hm-legend i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.hm-legend span {
  margin: 0 6px;
}

.hm-tooltip {
  position: fixed;
  z-index: 200;
  pointer-events: none;
  min-width: 190px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 12px;
  background: rgba(14, 15, 40, .92);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translate(-50%, calc(-100% - 6px));
  transition: opacity .15s;
}

.hm-tooltip.is-visible {
  opacity: 1;
}

.hm-tooltip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 6px;
}

.hm-tooltip .row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
}

.hm-tooltip .row b {
  font-family: var(--mono);
  font-weight: 500;
  color: var(--text);
}

/* ---------- Segmented control ---------- */
.seg {
  position: relative;
  display: inline-flex;
  padding: 4px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid var(--border);
}

.seg button {
  position: relative;
  z-index: 1;
  background: none;
  border: 0;
  padding: 8px 16px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dim);
  transition: color .25s;
  white-space: nowrap;
}

.seg button.is-active {
  color: #fff;
}

.seg-indicator {
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  border-radius: 9px;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(40, 130, 255, .8);
  transition: transform .35s var(--ease), width .35s var(--ease);
}

/* ---------- Leaderboard ---------- */
.lb-card {
  padding: 24px;
}

.lb-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lb-meta {
  font-size: 12px;
  color: var(--text-mute);
  font-family: var(--mono);
}

.table-wrap {
  overflow-x: auto;
}

.lb-table {
  width: 100%;
  border-collapse: collapse;
}

.lb-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
}

.lb-table th.ta-r {
  text-align: right;
}

.lb-table td {
  padding: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  font-size: 14px;
}

.lb-table tbody tr {
  transition: background .25s;
  animation: rowIn .45s var(--ease) both;
}

.lb-table tbody tr:hover {
  background: rgba(47, 140, 255, .07);
}

.rank {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: inline-grid;
  place-items: center;
  font: 600 13px var(--mono);
  background: rgba(255, 255, 255, .05);
}

.rank-1 {
  background: linear-gradient(135deg, #ffd66b, #f59e0b);
  color: #2a1a00;
  box-shadow: 0 0 18px rgba(245, 158, 11, .45);
}

.rank-2 {
  background: linear-gradient(135deg, #e5e7eb, #9ca3af);
  color: #111;
}

.rank-3 {
  background: linear-gradient(135deg, #f0a875, #b45309);
  color: #1d0e00;
}

.user-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
}

.user-cell small {
  display: block;
  color: var(--text-mute);
  font: 11px var(--mono);
}

.strategy-tag {
  font: 12px var(--mono);
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(79, 124, 255, .12);
  color: #93c5fd;
  border: 1px solid rgba(79, 124, 255, .2);
  white-space: nowrap;
}

.pnl {
  font: 600 14px var(--mono);
  color: var(--green);
  text-align: right;
  white-space: nowrap;
}

.pnl small {
  display: block;
  font-weight: 400;
  color: var(--text-mute);
  font-size: 11px;
}

/* ---------- Regions ---------- */
.regions-card {
  padding: 24px;
}

.tab-pane {
  display: none;
  margin-top: 24px;
}

.tab-pane.is-active {
  display: block;
  animation: fadeUp .5s var(--ease);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.regions-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.chart-box {
  height: 320px;
  position: relative;
}

.region-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.region-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: border-color .25s, transform .25s var(--ease);
}

.region-item:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.region-top {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.region-top span:last-child {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 12px;
}

.region-bar {
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .06);
  overflow: hidden;
}

.region-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  width: 0;
  transition: width 1.2s var(--ease);
}

.il-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.il-head h3 {
  font-size: 20px;
}

.il-head small {
  color: var(--text-mute);
  font-size: 13px;
}

.il-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.il-metric {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s var(--ease);
}

.il-metric:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.il-metric small {
  color: var(--text-mute);
  font-size: 12px;
  display: block;
}

.il-metric strong {
  font: 600 28px var(--mono);
  display: block;
  margin: 6px 0 2px;
}

.il-metric span {
  font-size: 12px;
  color: var(--green);
  font-family: var(--mono);
}

.il-bottom {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
}

.spark-wrap {
  height: 150px;
  position: relative;
}

.il-cities ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.il-cities li .region-top {
  font-size: 13px;
  margin-bottom: 6px;
}

/* ---------- Testimonials ---------- */
.slider-viewport {
  overflow: hidden;
  margin: 0 -10px;
  padding: 10px 0;
}

.slider-track {
  display: flex;
  transition: transform .7s var(--ease);
}

.slide {
  flex: 0 0 calc(100% / 3);
  padding: 0 10px;
}

.t-card {
  padding: 26px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s;
}

.t-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.t-stars {
  color: #fbbf24;
  letter-spacing: 2px;
  font-size: 14px;
}

.t-text {
  color: var(--text-dim);
  font-size: 15px;
  margin: 14px 0 22px;
  flex: 1;
}

.t-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.t-user strong {
  display: block;
  font-size: 14px;
}

.t-user small {
  color: var(--text-mute);
  font-size: 12px;
}

.t-result {
  margin-left: auto;
  font: 600 13px var(--mono);
  color: var(--green);
  padding: 4px 9px;
  border-radius: 7px;
  background: rgba(34, 227, 154, .1);
}

.slider-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}

.slider-dots {
  display: flex;
  gap: 8px;
}

.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 8px;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .2);
  transition: width .35s var(--ease), background .35s;
}

.slider-dots button.is-active {
  width: 26px;
  background: var(--grad);
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: border-color .3s, background .3s;
}

.faq-item:hover,
.faq-item.is-open {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, .05);
}

.faq-q {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
  padding: 20px 22px;
  background: none;
  border: 0;
  font-size: 16px;
  font-weight: 500;
}

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
  position: relative;
  background: rgba(47, 140, 255, .15);
  transition: transform .35s var(--ease), background .35s;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  background: #9fd4ff;
  border-radius: 2px;
  transform: translate(-50%, -50%);
}

.faq-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform .35s var(--ease);
}

.faq-item.is-open .faq-icon {
  background: var(--grad);
}

.faq-item.is-open .faq-icon::before,
.faq-item.is-open .faq-icon::after {
  background: #fff;
}

.faq-item.is-open .faq-icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.faq-a {
  display: none;
  padding: 0 22px 20px;
  color: var(--text-dim);
  font-size: 15px;
}

.faq-a p {
  margin: 0;
}

/* ---------- CTA / Footer ---------- */
.cta {
  text-align: center;
  padding: 64px 24px;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(47, 140, 255, .45), transparent 60%);
  pointer-events: none;
}

.cta h2 {
  font-size: clamp(26px, 4vw, 40px);
  position: relative;
}

.cta p {
  color: var(--text-dim);
  margin: 12px 0 28px;
  position: relative;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
}

.footer-inner {
  display: grid;
  gap: 16px;
  justify-items: start;
}

.disclaimer {
  color: var(--text-mute);
  font-size: 12px;
  max-width: 820px;
  margin: 0;
}

.footer small {
  color: var(--text-mute);
  font-size: 12px;
}

/* ---------- Toasts ---------- */
.toast-stack {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  max-width: 360px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(16, 18, 46, .88);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  transform: translateY(16px) scale(.96);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
  position: relative;
  overflow: hidden;
}

.toast.is-visible {
  opacity: 1;
  transform: none;
}

.toast.is-leaving {
  opacity: 0;
  transform: translateX(-24px);
}

.toast .avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.toast-body {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.45;
}

.toast-body b {
  color: var(--text);
  font-weight: 600;
}

.toast-body .amt {
  color: var(--green);
  font-family: var(--mono);
  font-weight: 600;
}

.toast-body small {
  display: block;
  color: var(--text-mute);
  font-size: 11px;
  margin-top: 3px;
}

.toast-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: 0;
  color: var(--text-mute);
  font-size: 14px;
  padding: 2px 4px;
}

.toast-close:hover {
  color: var(--text);
}

.toast-timer {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  width: 100%;
  transform-origin: left;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-copy {
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-features,
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    background: rgba(6, 7, 26, .96);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s var(--ease);
  }

  .nav-links.is-open {
    max-height: 400px;
  }

  .nav-links a {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .demo-badge {
    margin-left: auto;
  }

  .burger {
    display: flex;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .regions-grid,
  .il-bottom {
    grid-template-columns: 1fr;
  }

  .slide {
    flex-basis: 50%;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .dashboard {
    padding: 16px;
  }

  .dash-head {
    flex-wrap: wrap;
  }

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

  .log-cols,
  .log-row {
    grid-template-columns: 62px 1fr 64px 58px;
  }

  .log-cols span:nth-child(3),
  .log-cols span:nth-child(4),
  .log-row .c-side,
  .log-row .c-price {
    display: none;
  }

  .chart-wrap {
    height: 150px;
  }

  .dash-actions {
    flex-direction: column;
  }

  .il-metrics {
    grid-template-columns: 1fr;
  }

  .slide {
    flex-basis: 100%;
  }

  .heatmap-card,
  .lb-card,
  .regions-card {
    padding: 16px;
  }

  .heatmap {
    --cell: 14px;
    --gap: 4px;
  }

  .chart-box {
    height: 260px;
  }

  .seg {
    display: flex;
    width: 100%;
  }

  .seg button {
    flex: 1;
    padding: 8px 10px;
  }

  .toast-stack {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .hero-cta .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* =========================================================
   v2: видео, формы, модалка, звук, футер
   ========================================================= */
.btn-sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 11px;
}

.nav-cta {
  margin-left: 4px;
}

.icon-btn-sm {
  width: 34px;
  height: 34px;
  font-size: 14px;
}

.sound-toggle {
  display: grid;
  place-items: center;
  font-size: 15px;
  flex-shrink: 0;
}

.sound-toggle.is-muted {
  opacity: .55;
}

.dash-head-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-tight {
  padding: 40px 0;
}

/* ---------- Зачисление (+$ всплывает над балансом) ---------- */
.kpi-balance {
  position: relative;
}

.credit-pop {
  position: absolute;
  right: 12px;
  top: 8px;
  pointer-events: none;
  font: 600 12px var(--mono);
  color: var(--green);
  animation: creditUp 1.3s var(--ease) forwards;
}

.credit-pop.is-loss {
  color: var(--red);
}

@keyframes creditUp {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }

  20% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translateY(-22px);
  }
}

/* ---------- Video ---------- */
.video-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 28px;
  align-items: center;
}

.video-card {
  padding: 10px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #040816;
}

.video-frame video,
.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-poster {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background-size: cover;
  background-position: center;
  background-image: radial-gradient(circle at 30% 30%, rgba(58, 92, 255, .45), transparent 55%), radial-gradient(circle at 75% 70%, rgba(34, 211, 238, .35), transparent 55%), linear-gradient(160deg, #0a1433, #050a1c);
}

.video-poster.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 28, .35);
}

.vp-bars {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  opacity: .5;
  background: repeating-linear-gradient(90deg, rgba(47, 140, 255, .5) 0 6px, transparent 6px 14px);
  -webkit-mask: linear-gradient(transparent, #000);
  mask: linear-gradient(transparent, #000);
  animation: bars 3s ease-in-out infinite alternate;
  transform-origin: bottom;
}

@keyframes bars {
  from {
    transform: scaleY(.6);
  }

  to {
    transform: scaleY(1);
  }
}

.play-btn {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  font-size: 26px;
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 0 rgba(34, 180, 255, .5), 0 18px 40px -10px rgba(34, 140, 255, .8);
  animation: ring 2.2s infinite;
  transition: transform .3s var(--ease);
}

.play-btn span {
  margin-left: 5px;
}

.play-btn:hover {
  transform: scale(1.08);
}

@keyframes ring {
  70% {
    box-shadow: 0 0 0 22px rgba(34, 180, 255, 0), 0 18px 40px -10px rgba(34, 140, 255, .8);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(34, 180, 255, 0), 0 18px 40px -10px rgba(34, 140, 255, .8);
  }
}

.vp-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  z-index: 1;
}

.vp-tag {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(5, 10, 28, .6);
  color: #9fd4ff;
}

.vp-dur {
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(5, 10, 28, .6);
}

.video-note {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--text-dim);
  font-size: 14px;
  background: rgba(5, 10, 28, .85);
}

.video-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.video-points li {
  display: flex;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  transition: border-color .3s, transform .3s var(--ease);
}

.video-points li:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.video-points .vp-time {
  font: 500 12px var(--mono);
  color: #7cc8ff;
  padding-top: 2px;
  white-space: nowrap;
}

.video-points strong {
  display: block;
  font-size: 15px;
}

.video-points small {
  color: var(--text-dim);
  font-size: 13px;
}

/* ---------- Lead block ---------- */
.lead-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px;
  align-items: center;
}

.lead-copy h2 {
  font-size: clamp(26px, 3.2vw, 36px);
  margin: 16px 0 12px;
}

.lead-copy p {
  color: var(--text-dim);
  margin: 0 0 20px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.check-list li {
  padding-left: 30px;
  position: relative;
  color: var(--text-dim);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
  background: var(--grad);
}

.inline-form {
  padding: 28px 32px;
}

.inline-form-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.inline-form-head h3 {
  font-size: 22px;
}

.inline-form-head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.cta {
  text-align: left;
  padding: 48px;
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
}

.cta-copy h2 {
  margin-top: 16px;
}

/* ---------- Form ---------- */
.lead-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  position: relative;
}

.lead-form .f-full {
  grid-column: 1 / -1;
}

.lead-form.is-inline {
  grid-template-columns: repeat(4, 1fr) auto;
  align-items: start;
}

.lead-form.is-inline .f-consent {
  grid-column: 1 / -1;
  order: 10;
}

.lead-form.is-inline .f-submit {
  grid-column: auto;
  margin-top: 25px;
}

/* выравнивание по полям (высота подписи) */
.field label {
  display: block;
  font-size: 12px;
  color: var(--text-mute);
  margin-bottom: 6px;
}

.field input,
.field select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  font: 15px var(--font);
  color: var(--text);
  background: rgba(5, 10, 28, .55);
  border: 1px solid var(--border);
  outline: none;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.field input::placeholder {
  color: #5a6488;
}

.field input:focus,
.field select:focus {
  border-color: #2f8cff;
  box-shadow: 0 0 0 4px rgba(47, 140, 255, .18);
  background: rgba(5, 10, 28, .8);
}

.field input.invalid,
.field.has-error input,
.field.has-error select {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 92, 122, .12);
}

.field .err {
  display: block;
  min-height: 0;
  font-size: 12px;
  color: var(--red);
  margin-top: 5px;
}

.field .err:empty {
  display: none;
}

.phone-wrap {
  display: flex;
  gap: 8px;
}

.phone-wrap select {
  width: 108px;
  flex-shrink: 0;
  padding: 0 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, #7c8bb5 50%), linear-gradient(135deg, #7c8bb5 50%, transparent 50%);
  background-position: calc(100% - 16px) 21px, calc(100% - 11px) 21px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}

.phone-wrap select option {
  background: #0b1230;
}

.f-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-mute);
  line-height: 1.5;
  cursor: pointer;
}

.f-consent input {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin: 0;
  border-radius: 5px;
  border: 1px solid var(--border-strong);
  background: rgba(5, 10, 28, .55);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s;
}

.f-consent input:checked {
  background: var(--grad);
  border-color: transparent;
}

.f-consent input:checked::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
}

.f-consent a {
  color: #7cc8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.f-consent.has-error {
  color: var(--red);
}

.f-consent.has-error input {
  border-color: var(--red);
}

.f-submit {
  height: 48px;
}

.f-submit .spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  animation: spin .7s linear infinite;
  display: none;
}

.lead-form.is-loading .f-submit .spinner {
  display: inline-block;
}

.lead-form.is-loading .f-submit {
  pointer-events: none;
  opacity: .8;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.form-success {
  text-align: center;
  padding: 28px 16px;
  border-radius: var(--radius-sm);
  background: rgba(34, 227, 154, .06);
  border: 1px solid rgba(34, 227, 154, .3);
  animation: fadeUp .5s var(--ease);
}

.form-success .ok {
  width: 52px;
  height: 52px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #fff;
  background: linear-gradient(135deg, #22e39a, #22b8e6);
}

.form-success h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.form-success p {
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}

.shake {
  animation: shake .4s;
}

@keyframes shake {

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 5, 16, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .35s;
}

.modal-dialog {
  position: relative;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 30px;
  background: linear-gradient(160deg, rgba(20, 32, 70, .95), rgba(8, 14, 36, .97));
  opacity: 0;
  transform: translateY(24px) scale(.97);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}

.modal.is-open .modal-backdrop {
  opacity: 1;
}

.modal.is-open .modal-dialog {
  opacity: 1;
  transform: none;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  font-size: 20px;
  line-height: 1;
  color: var(--text-dim);
  transition: all .2s;
}

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

.modal-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.modal-head h3 {
  font-size: 22px;
}

.modal-head small {
  color: var(--text-mute);
}

.modal-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  color: #fff;
  box-shadow: 0 10px 30px -8px rgba(34, 140, 255, .8);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.result-item {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--border);
}

.result-item small {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
}

.result-item strong {
  font: 600 18px var(--mono);
}

.result-item.is-main {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(58, 92, 255, .18), rgba(34, 211, 238, .1));
  border-color: var(--border-strong);
}

.result-item.is-main strong {
  font-size: 28px;
}

.modal-form-title {
  margin: 0 0 14px;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

/* ---------- Footer links ---------- */
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 13px;
  color: var(--text-dim);
}

.footer-links a {
  transition: color .2s;
}

.footer-links a:hover {
  color: #7cc8ff;
}

@media (max-width: 1080px) {
  .lead-form.is-inline {
    grid-template-columns: 1fr 1fr;
  }

  .lead-form.is-inline .f-submit {
    grid-column: 1 / -1;
    margin-top: 0;
  }
}

@media (max-width: 900px) {
  .nav-cta {
    display: none;
  }

  .video-grid,
  .lead-block,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .lead-block,
  .cta {
    padding: 28px;
  }
}

@media (max-width: 640px) {

  .lead-form,
  .lead-form.is-inline {
    grid-template-columns: 1fr;
  }

  .lead-block,
  .cta,
  .inline-form {
    padding: 20px;
  }

  .result-grid {
    grid-template-columns: 1fr 1fr;
  }

  .modal-dialog {
    padding: 22px 18px;
  }

  .play-btn {
    width: 68px;
    height: 68px;
    font-size: 20px;
  }

  .demo-badge {
    display: none;
  }

  .sound-toggle:not(.icon-btn-sm) {
    margin-left: auto;
  }
}

/* ---------- Счётчик мест ---------- */
.seats {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(47, 140, 255, .08);
  border: 1px solid rgba(70, 160, 255, .25);
}

.seats-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--text-dim);
}

.seats-top span:first-child {
  margin-right: auto;
}

.seats-num {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  display: inline-block;
}

.seats-of {
  font-size: 12px;
  color: var(--text-mute);
}

.seats-bar {
  height: 5px;
  margin-top: 8px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .07);
  overflow: hidden;
}

.seats-bar i {
  display: block;
  height: 100%;
  border-radius: 5px;
  background: var(--grad);
  transition: width .8s var(--ease);
}

.seats.is-low {
  background: rgba(245, 184, 75, .08);
  border-color: rgba(245, 184, 75, .35);
}

.seats.is-low .seats-num {
  color: #f5b84b;
}

.seats.is-low .seats-bar i {
  background: linear-gradient(90deg, #f5b84b, #ff8a5c);
}

.seats.is-out {
  background: rgba(255, 255, 255, .04);
  border-color: var(--border);
}

.seats.is-tick .seats-num {
  animation: seatTick .7s var(--ease);
}

@keyframes seatTick {
  0% {
    transform: translateY(-8px);
    opacity: 0;
    color: var(--green);
  }

  100% {
    transform: none;
    opacity: 1;
  }
}

.lead-form.is-inline .seats {
  grid-column: 1 / -1;
}

/* ---------- Видео внутри hero (мобильные) ---------- */
#video.is-in-hero {
  padding: 0;
  min-width: 0;
}

#video.is-in-hero>.container {
  padding: 0;
}

#video.is-in-hero .section-head {
  margin-bottom: 24px;
}

#video.is-in-hero .section-head h2 {
  font-size: clamp(24px, 6vw, 32px);
}

/* грид-элементы не должны распирать колонку своим содержимым */
.hero-grid>*,
.video-grid>*,
.lead-block>*,
.cta-grid>*,
.regions-grid>*,
.il-bottom>* {
  min-width: 0;
}

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Лидер по доходу за 24 часа ---------- */
.top-leader {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(120deg, rgba(34, 227, 154, .12), rgba(47, 140, 255, .1) 45%, rgba(255, 255, 255, .02));
  border-color: rgba(34, 227, 154, .3);
}

.top-leader::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 227, 154, .35), transparent 70%);
  pointer-events: none;
}

.tl-avatar {
  position: relative;
  flex-shrink: 0;
}

.tl-photo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  border: 2px solid transparent;
  box-shadow: 0 0 0 2px #22e39a, 0 10px 28px -8px rgba(34, 227, 154, .7);
}

.tl-crown {
  position: absolute;
  top: -10px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ffd66b, #f59e0b);
  box-shadow: 0 4px 12px rgba(245, 158, 11, .5);
}

.tl-crown svg {
  width: 14px;
  height: 14px;
  fill: #3a2400;
}

.tl-info {
  min-width: 0;
  flex: 1;
}

.tl-label {
  display: inline-block;
  font: 500 11px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6ff0bf;
  margin-bottom: 4px;
}

.tl-name {
  display: block;
  font-size: 20px;
}

.tl-info small {
  color: var(--text-mute);
  font-size: 13px;
}

.tl-profit {
  text-align: right;
  position: relative;
  z-index: 1;
}

.tl-profit small {
  display: block;
  font-size: 11px;
  color: var(--text-mute);
}

.tl-profit strong {
  display: block;
  font-size: 30px;
  font-weight: 600;
  color: var(--green);
  text-shadow: 0 0 24px rgba(34, 227, 154, .35);
  line-height: 1.2;
}

.tl-profit span {
  font-size: 12px;
  color: var(--text-dim);
}

.m-only {
  display: none;
}

@media (max-width: 640px) {
  .video-points {
    display: none;
  }

  /* главы видео скрыты на мобильных */
  .col-region,
  .col-strategy {
    display: none;
  }

  /* таблица лидеров без горизонтального скролла */
  .m-only {
    display: inline;
  }

  .lb-table th,
  .lb-table td {
    padding: 12px 8px;
  }

  .lb-table .avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .user-cell {
    gap: 10px;
  }

  .top-leader {
    flex-wrap: wrap;
    gap: 14px;
    padding: 18px;
  }

  .tl-photo {
    width: 56px;
    height: 56px;
  }

  .tl-name {
    font-size: 18px;
  }

  .tl-profit {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    padding-top: 12px;
    border-top: 1px solid var(--border);
  }

  .tl-profit small {
    width: 100%;
  }

  .tl-profit strong {
    font-size: 26px;
  }
}

/* ---------- Анимация, привлекающая к CTA-кнопкам ---------- */
.btn-attention {
  animation: ctaPulse 2.6s ease-in-out infinite;
}

.btn-attention::before {
  animation: ctaShine 3.4s var(--ease) infinite;
}

.btn-attention .btn-icon {
  display: inline-block;
  animation: ctaNudgeIcon 2.6s ease-in-out infinite;
}

.btn-attention .btn-arrow {
  display: inline-block;
  animation: ctaNudge 1.6s ease-in-out infinite;
}

/* при наведении — обычный hover, без «дыхания» */
.btn-attention:hover,
.btn-attention.is-running,
.btn-attention:disabled {
  animation: none;
}

.btn-attention:hover::before {
  animation: none;
}

.btn-attention.is-running::before,
.btn-attention.is-running .btn-icon {
  animation: none;
}

@keyframes ctaPulse {

  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 10px 30px -8px rgba(40, 130, 255, .7), 0 0 0 0 rgba(34, 200, 255, .55);
  }

  50% {
    transform: scale(1.03);
    box-shadow: 0 14px 36px -8px rgba(40, 150, 255, .95), 0 0 0 12px rgba(34, 200, 255, 0);
  }
}

@keyframes ctaShine {
  0% {
    left: -120%;
  }

  35% {
    left: 140%;
  }

  100% {
    left: 140%;
  }
}

@keyframes ctaNudgeIcon {

  0%,
  60%,
  100% {
    transform: none;
  }

  70% {
    transform: translateX(3px) scale(1.15);
  }

  80% {
    transform: none;
  }
}

@keyframes ctaNudge {

  0%,
  100% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(5px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .btn-attention,
  .btn-attention::before,
  .btn-attention .btn-icon,
  .btn-attention .btn-arrow {
    animation: none !important;
  }
}

/* =========================================================
   Компактный масштаб (≈ −10–15 %)
   ========================================================= */
body {
  font-size: 15px;
}

.nav-inner {
  height: 62px;
}

.nav-links {
  gap: 20px;
  font-size: 13.5px;
}

.logo {
  font-size: 17px;
}

.logo-mark {
  width: 26px;
  height: 26px;
}

.section {
  padding: 72px 0;
}

.section-tight {
  padding: 32px 0;
}

.section-head {
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin: 12px 0 10px;
}

.section-head p {
  font-size: 15px;
}

.eyebrow {
  font-size: 11px;
  padding: 5px 10px;
}

.hero {
  padding: 48px 0 32px;
}

.hero-grid {
  gap: 44px;
}

.hero h1 {
  font-size: clamp(30px, 4.2vw, 48px);
  margin: 18px 0 16px;
}

.lead {
  font-size: 15.5px;
  margin-bottom: 20px;
}

.hero-features {
  margin-bottom: 26px;
}

.hero-features li {
  font-size: 12.5px;
}

.btn {
  padding: 12px 20px;
  font-size: 14px;
  border-radius: 12px;
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12.5px;
}

.dashboard {
  padding: 18px;
}

.dash-head {
  margin-bottom: 14px;
}

.dash-logo {
  width: 32px;
  height: 32px;
}

.kpi {
  padding: 10px 12px;
}

.kpi strong {
  font-size: 15px;
}

.chart-wrap {
  height: 160px;
}

.log-list {
  height: 150px;
}

.stat-card {
  padding: 24px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  margin-bottom: 14px;
}

.stat-icon .ico {
  width: 22px;
  height: 22px;
}

.stat-value {
  font-size: 36px;
}

.stat-hint {
  font-size: 13.5px;
}

.heatmap-card {
  padding: 22px;
}

.heatmap-summary {
  margin-bottom: 18px;
}

.hm-sum {
  padding: 11px 14px;
}

.hm-sum strong {
  font-size: 17px;
}

.top-leader {
  padding: 16px 20px;
  gap: 16px;
}

.tl-photo {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.tl-name {
  font-size: 18px;
}

.tl-profit strong {
  font-size: 26px;
}

.lb-card,
.regions-card {
  padding: 20px;
}

.lb-table td {
  padding: 11px 12px;
  font-size: 13.5px;
}

.avatar {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.rank {
  width: 27px;
  height: 27px;
  font-size: 12px;
}

.chart-box {
  height: 280px;
}

.il-metric {
  padding: 16px;
}

.il-metric strong {
  font-size: 24px;
}

.spark-wrap {
  height: 130px;
}

.video-grid {
  gap: 22px;
}

.play-btn {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.video-points {
  gap: 10px;
}

.video-points li {
  padding: 13px 14px;
}

.video-points strong {
  font-size: 14px;
}

.lead-block {
  padding: 32px;
  gap: 32px;
}

.lead-copy h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  margin: 12px 0 10px;
}

.inline-form {
  padding: 22px 26px;
}

.inline-form-head h3 {
  font-size: 19px;
}

.cta {
  padding: 36px;
}

.cta h2 {
  font-size: clamp(22px, 3vw, 32px);
}

.cta p {
  margin: 10px 0 22px;
}

.lead-form {
  gap: 12px;
}

.field input,
.field select {
  height: 44px;
  font-size: 14px;
  border-radius: 11px;
}

.phone-wrap select {
  background-position: calc(100% - 16px) 19px, calc(100% - 11px) 19px;
}

.f-submit {
  height: 44px;
}

.lead-form.is-inline .f-submit {
  margin-top: 24px;
}

.seats {
  padding: 10px 12px;
}

.seats-num {
  font-size: 18px;
}

.t-card {
  padding: 22px;
}

.t-text {
  font-size: 14px;
  margin: 12px 0 18px;
}

.faq-q {
  padding: 16px 18px;
  font-size: 15px;
}

.faq-a {
  padding: 0 18px 16px;
  font-size: 14px;
}

.modal-dialog {
  padding: 24px;
  max-width: 580px;
}

.modal-head h3 {
  font-size: 20px;
}

.modal-icon {
  width: 40px;
  height: 40px;
  font-size: 19px;
}

.result-item {
  padding: 11px 12px;
}

.result-item strong {
  font-size: 16px;
}

.result-item.is-main strong {
  font-size: 24px;
}

.toast {
  padding: 12px 14px;
}

.toast-body {
  font-size: 12.5px;
}

@media (max-width: 900px) {

  .lead-block,
  .cta {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 52px 0;
  }

  .section-tight {
    padding: 24px 0;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero h1 {
    font-size: 29px;
  }

  .lead {
    font-size: 15px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-value {
    font-size: 32px;
  }

  .chart-wrap {
    height: 140px;
  }

  .tl-profit strong {
    font-size: 23px;
  }

  .lead-block,
  .cta,
  .inline-form {
    padding: 18px;
  }

  .play-btn {
    width: 60px;
    height: 60px;
    font-size: 18px;
  }

  .chart-box {
    height: 240px;
  }
}

/* ---------- Калькулятор прогноза ---------- */
.calc {
  padding: 24px;
}

.calc-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 20px;
}

.calc-group {
  display: grid;
  gap: 8px;
}

.calc-label {
  font-size: 12px;
  color: var(--text-mute);
}

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.calc-chart-wrap {
  height: 280px;
  position: relative;
}

.calc-legend {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--text-mute);
}

.calc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.calc-legend i,
.calc-card-label i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.calc-results {
  display: grid;
  gap: 10px;
  align-content: start;
}

.calc-card {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  display: grid;
  gap: 2px;
  transition: border-color .3s, transform .3s var(--ease);
}

.calc-card:hover {
  border-color: var(--border-strong);
  transform: translateX(3px);
}

.calc-card.is-base {
  background: linear-gradient(135deg, rgba(58, 92, 255, .18), rgba(34, 211, 238, .08));
  border-color: var(--border-strong);
}

.calc-card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-dim);
}

.calc-end {
  font-size: 22px;
  font-weight: 600;
}

.calc-card.is-base .calc-end {
  font-size: 26px;
}

.calc-diff {
  font-size: 12.5px;
}

.calc-card small {
  font-size: 11px;
  color: var(--text-mute);
}

.calc-matrix {
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, .15);
  border: 1px solid var(--border);
  padding: 14px;
}

.calc-hint {
  font-size: 11px;
  color: var(--text-mute);
}

.calc-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px;
}

.calc-table th {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-mute);
  text-align: center;
  padding: 6px;
  text-transform: uppercase;
  letter-spacing: .05em;
  transition: color .25s;
}

.calc-table tbody th {
  font: 600 13px var(--mono);
  color: var(--text-dim);
  text-transform: none;
  letter-spacing: 0;
  text-align: left;
  white-space: nowrap;
}

.calc-table th.is-row,
.calc-table th.is-col {
  color: #7cc8ff;
}

.calc-table td {
  text-align: center;
  padding: 9px 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .2s var(--ease);
}

.calc-table td:hover {
  background: rgba(47, 140, 255, .1);
  transform: translateY(-1px);
}

.calc-table td.is-row,
.calc-table td.is-col {
  background: rgba(47, 140, 255, .07);
}

.calc-table td.is-sel {
  background: linear-gradient(135deg, rgba(58, 92, 255, .35), rgba(34, 211, 238, .2));
  border-color: rgba(70, 160, 255, .6);
  box-shadow: 0 6px 18px -8px rgba(34, 160, 255, .8);
}

.calc-table td b {
  display: block;
  font-size: 13px;
  font-weight: 500;
}

.calc-table td small {
  font-size: 11px;
}

.calc-note {
  margin: 14px 0 0;
  font-size: 12px;
  color: var(--text-mute);
  padding-left: 12px;
  border-left: 2px solid rgba(245, 184, 75, .5);
}

@media (max-width: 900px) {
  .calc-body {
    grid-template-columns: 1fr;
  }

  .calc-results {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calc-card.is-base .calc-end,
  .calc-end {
    font-size: 19px;
  }
}

@media (max-width: 640px) {
  .calc {
    padding: 16px;
  }

  .calc-controls {
    gap: 14px;
  }

  .calc-group {
    width: 100%;
  }

  .calc-chart-wrap {
    height: 220px;
  }

  .calc-results {
    grid-template-columns: 1fr;
  }

  .calc-card {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    column-gap: 10px;
  }

  .calc-card-label,
  .calc-card small {
    grid-column: 1 / -1;
  }

  .calc-card .calc-diff {
    text-align: right;
  }

  .calc-matrix {
    padding: 10px 6px;
  }

  .calc-table {
    border-spacing: 3px;
  }

  .calc-table th {
    font-size: 9.5px;
    padding: 4px 2px;
    letter-spacing: 0;
  }

  .calc-table tbody th {
    font-size: 11px;
  }

  .calc-table td {
    padding: 7px 2px;
  }

  .calc-table td b {
    font-size: 10.5px;
  }

  .calc-table td small {
    font-size: 9.5px;
  }

  .calc-legend {
    display: none;
  }
}

.calc-table .c-short {
  display: none;
}

@media (max-width: 900px) {
  .calc-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .calc-results {
    grid-template-columns: minmax(0, 1fr);
  }

  /* .calc-card { grid-template-columns: minmax(0, 1fr) auto; } */
  .calc-table .c-full {
    display: none;
  }

  .calc-table .c-short {
    display: block;
  }

  .calc-table td b {
    font-size: 11px;
  }
}

/* =========================================================
   v3 палитра: синий/голубой + акценты фиолетового и чёрного
   ========================================================= */
:root {
  --bg: #03050e;
  --black: #010208;
  --violet: #8b5cf6;
  --violet-soft: rgba(139, 92, 246, .16);
  --violet-line: rgba(139, 92, 246, .38);
  --grad: linear-gradient(135deg, #7c5cff 0%, #3a6bff 45%, #22d3ee 100%);
  --grad-violet: linear-gradient(135deg, #a78bfa 0%, #7c5cff 50%, #4f46e5 100%);
}

body {
  background: var(--bg);
}

/* фон: глубже чёрный, одно фиолетовое пятно */
.blob-1 {
  background: #1f3dff;
  opacity: .38;
}

.blob-2 {
  background: #0b6fd0;
  opacity: .35;
}

.blob-3 {
  background: #7c3aed;
  opacity: .3;
  bottom: -160px;
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(1, 2, 8, .9), transparent 60%), radial-gradient(ellipse at 100% 50%, rgba(1, 2, 8, .6), transparent 50%);
}

/* чёрные полосы-секции */
.band-dark {
  position: relative;
}

.band-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(1, 2, 8, .82) 14%, rgba(1, 2, 8, .82) 86%, transparent);
  border-top: 1px solid rgba(139, 92, 246, .08);
  border-bottom: 1px solid rgba(139, 92, 246, .08);
}

/* шапка и футер — чёрные */
.nav {
  background: rgba(1, 2, 8, .78);
  border-bottom-color: rgba(139, 92, 246, .14);
}

.footer {
  background: var(--black);
  border-top-color: rgba(139, 92, 246, .18);
}

@media (max-width: 900px) {
  .nav-links {
    background: rgba(1, 2, 8, .97);
  }
}

/* стекло — чуть темнее */
.glass {
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015) 60%, rgba(1, 2, 8, .35));
}

.dash-chart,
.dash-log,
.calc-matrix {
  background: rgba(1, 2, 8, .5);
}

.field input,
.field select {
  background: rgba(1, 2, 8, .6);
}

.field input.invalid:focus {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 4px rgba(255, 92, 122, .12) !important;
}

.field input:focus,
.field select:focus {
  background: rgba(1, 2, 8, .85);
}

.modal-dialog {
  background: linear-gradient(160deg, rgba(22, 20, 58, .96), rgba(3, 4, 14, .98));
}

.hm-tooltip,
.toast {
  background: rgba(6, 6, 20, .92);
}

/* фиолетовые акценты */
.eyebrow {
  color: #c4b5fd;
  background: var(--violet-soft);
  border-color: var(--violet-line);
}

.demo-badge {
  color: #c4b5fd;
  background: var(--violet-soft);
  border-color: var(--violet-line);
}

.logo-mark {
  box-shadow: 0 0 24px rgba(139, 92, 246, .55);
}

.dashboard::before {
  background: linear-gradient(140deg, rgba(139, 92, 246, .7), transparent 35%, transparent 65%, rgba(34, 211, 238, .5));
}

.dash-logo {
  box-shadow: 0 0 20px rgba(139, 92, 246, .5);
}

.stat-card::after {
  background: var(--grad-violet);
  opacity: .16;
}

.stat-card:nth-child(2)::after {
  background: var(--grad);
}

.check-list li::before {
  background: var(--grad-violet);
}

.f-consent input:checked {
  background: var(--grad-violet);
}

.slider-dots button.is-active {
  background: var(--grad-violet);
}

.faq-item.is-open .faq-icon {
  background: var(--grad-violet);
}

.faq-icon {
  background: var(--violet-soft);
}

.faq-icon::before,
.faq-icon::after {
  background: #c4b5fd;
}

.strategy-tag {
  color: #c4b5fd;
  background: var(--violet-soft);
  border-color: rgba(139, 92, 246, .25);
}

.cta::before {
  background: radial-gradient(circle at 50% 120%, rgba(139, 92, 246, .45), transparent 60%);
}

.lb-table tbody tr:hover {
  background: rgba(139, 92, 246, .07);
}

.region-item:hover,
.faq-item:hover,
.faq-item.is-open,
.video-points li:hover {
  border-color: var(--violet-line);
}

.vp-tag {
  color: #c4b5fd;
}

.video-poster {
  background-image: radial-gradient(circle at 25% 30%, rgba(124, 92, 255, .45), transparent 55%), radial-gradient(circle at 75% 70%, rgba(34, 211, 238, .3), transparent 55%), linear-gradient(160deg, #0a0c26, #010208);
}

.seg {
  background: rgba(1, 2, 8, .55);
}

.calc-card.is-base {
  background: linear-gradient(135deg, rgba(124, 92, 255, .18), rgba(34, 211, 238, .07));
}

.lvl-1 {
  background: #2a1f5c;
}

.lvl-0 {
  background: #10121f;
}

.hm-sum,
.kpi,
.il-metric,
.result-item,
.calc-card,
.region-item {
  background-color: rgba(1, 2, 8, .25);
}

::selection {
  background: rgba(139, 92, 246, .45);
  color: #fff;
}

/* =========================================================
   FAQ → AI-ассистент
   ========================================================= */
.ai-section-head {
  text-align: left;
  max-width: none;
  margin-left: 0;
}

.ai-section-head h2 {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.ai-chat {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(20, 20, 34, .75), rgba(3, 4, 12, .85));
}

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

.ai-head strong {
  display: block;
  font-size: 14.5px;
}

.ai-head small {
  font-size: 12px;
  color: var(--text-mute);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.ai-online {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  display: inline-block;
}

.ai-orb,
.ai-msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;

  animation: orbSpin 6s linear infinite;
  box-shadow: 0 0 18px rgba(124, 92, 255, .55);
}

.ai-orb::after,
.ai-msg-avatar::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2a2f6a, #070818 70%);
}

.ai-msg-avatar {
  width: 28px;
  height: 28px;
  margin-top: 2px;
}

.ai-chat.is-busy .ai-orb {
  animation-duration: 1.4s;
}

@keyframes orbSpin {
  to {
    transform: rotate(360deg);
  }
}

.ai-messages {
  min-height: 200px;
  max-height: 440px;
  overflow-y: auto;
  padding: 22px 20px 8px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
  scrollbar-width: thin;
}

.ai-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  animation: fadeUp .35s var(--ease);
}

.ai-user {
  justify-content: flex-end;
}

.ai-bubble {
  max-width: 82%;
  font-size: 15px;
  line-height: 1.6;
}

.ai-bot .ai-bubble {
  color: var(--text);
  padding-top: 3px;
}

.ai-user .ai-bubble {
  padding: 10px 16px;
  border-radius: 20px 20px 6px 20px;
  background: #2b2d3a;
  color: #fff;
}

.ai-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  margin-left: 2px;
  vertical-align: -2px;
  border-radius: 2px;
  background: var(--grad);
  animation: caretBlink .8s steps(2) infinite;
}

@keyframes caretBlink {
  50% {
    opacity: 0;
  }
}

.ai-thinking {
  display: inline-flex;
  gap: 5px;
  padding: 8px 0;
}

.ai-thinking i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9a9ec4;
  animation: think 1.2s ease-in-out infinite;
}

.ai-thinking i:nth-child(2) {
  animation-delay: .15s;
}

.ai-thinking i:nth-child(3) {
  animation-delay: .3s;
}

@keyframes think {

  0%,
  60%,
  100% {
    opacity: .3;
    transform: translateY(0);
  }

  30% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

.ai-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 20px 14px;
  max-height: 300px;
  overflow: hidden;
  transition: max-height .4s var(--ease), padding .4s var(--ease), opacity .3s;
}

.ai-suggest.is-collapsed {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.ai-chip {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 999px;
  text-align: left;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .1);
  color: var(--text-dim);
  transition: border-color .25s, color .25s, background .25s, transform .2s var(--ease);
}

.ai-chip:hover {
  border-color: var(--violet-line);
  color: var(--text);
  background: rgba(139, 92, 246, .1);
  transform: translateY(-2px);
}

.ai-chip.is-asked {
  opacity: .5;
}

.ai-chip.is-asked span::before {
  content: "✓ ";
  color: var(--green);
}

.ai-chat.is-busy .ai-chip {
  pointer-events: none;
  opacity: .45;
}

.ai-input {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 14px 14px;
  padding: 10px 10px 10px 10px;
  border-radius: 28px;
  background: #2a2a2e;
  border: 1px solid rgba(255, 255, 255, .06);
  box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7);
  transition: border-color .25s, box-shadow .25s;
}

.ai-input:focus-within {
  border-color: var(--violet-line);
  box-shadow: 0 0 0 4px rgba(139, 92, 246, .12), 0 12px 30px -12px rgba(0, 0, 0, .7);
}

.ai-input input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font: 16px var(--font);
  padding: 8px 4px;
}

.ai-input input::placeholder {
  color: #7d7d86;
}

.ai-plus,
.ai-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease), background .25s, opacity .25s;
}

.ai-plus {
  background: none;
  border: 1px solid rgba(255, 255, 255, .22);
}

.ai-plus:hover {
  background: rgba(255, 255, 255, .06);
}

.ai-plus.is-open svg {
  transform: rotate(45deg);
}

.ai-plus svg,
.ai-send svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s var(--ease);
}

.ai-send {
  border: 0;
  background: var(--grad);
  box-shadow: 0 6px 18px -6px rgba(124, 92, 255, .8);
}

.ai-send:disabled {
  opacity: .45;
  cursor: default;
  box-shadow: none;
}

.ai-send:not(:disabled):hover {
  transform: scale(1.08);
}

@media (max-width: 640px) {
  .ai-section-head h2 {
    font-size: 27px;
  }

  .ai-messages {
    max-height: 380px;
    padding: 18px 14px 6px;
  }

  .ai-bubble {
    max-width: 88%;
    font-size: 14.5px;
  }

  .ai-suggest {
    padding: 8px 14px 12px;
  }

  .ai-chip {
    font-size: 12.5px;
  }

  .ai-input {
    margin: 0 10px 10px;
    gap: 8px;
  }

  .ai-plus,
  .ai-send {
    width: 38px;
    height: 38px;
  }
}

/* ---------- Кнопка «Подключить алгоритм» в терминале ---------- */
.btn-connect {
  border-color: var(--violet-line);
  background: rgba(139, 92, 246, .1);
}

.btn-connect:hover {
  background: rgba(139, 92, 246, .2);
  border-color: rgba(167, 139, 250, .7);
}

.btn-connect .btn-arrow {
  display: inline-block;
  transition: transform .3s var(--ease);
}

.btn-connect:hover .btn-arrow {
  transform: translateX(4px);
}

/* ---------- Модалка итогов: компактная, всегда помещается в экран ---------- */
.modal {
  align-items: center;
  overflow-y: auto;
}

.modal-dialog {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  max-width: 540px;
}

.result-grid {
  margin-bottom: 18px;
}

.modal-cta-text {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-dim);
}

.modal-actions {
  display: flex;
  gap: 10px;
}

.modal-actions .btn-primary {
  flex: 1.3;
}

.modal-actions .btn-ghost {
  flex: 1;
}

@media (max-width: 640px) {
  .modal {
    padding: 12px;
  }

  .modal-dialog {
    padding: 18px 16px;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
  }

  .modal-head {
    margin-bottom: 14px;
    padding-right: 36px;
  }

  .modal-head h3 {
    font-size: 18px;
  }

  .result-grid {
    gap: 8px;
    margin-bottom: 14px;
  }

  .result-item {
    padding: 9px 10px;
  }

  .result-item strong {
    font-size: 15px;
  }

  .result-item.is-main strong {
    font-size: 21px;
  }

  .modal-cta-text {
    font-size: 13px;
  }

  .modal-actions {
    flex-direction: column;
  }
}

/* =========================================================
   How it works — 3 шага с SVG-иллюстрациями
   ========================================================= */
.how {
  --how-a: var(--accent, #3b82f6);
  --how-v: #8b5cf6;
  --how-g: var(--green, #22c55e);
}

.how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  align-items: start;
}

.how-step {
  text-align: center;
  padding: 0 8px;
}

.how-art {
  height: 170px;
  margin-bottom: 22px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(59, 130, 246, .10), transparent 70%);
}

.how-step:nth-child(3) .how-art {
  background: radial-gradient(circle at 50% 60%, rgba(139, 92, 246, .12), transparent 70%);
}

.how-step:nth-child(5) .how-art {
  background: radial-gradient(circle at 50% 60%, rgba(34, 197, 94, .10), transparent 70%);
}

.how-art svg {
  width: 100%;
  max-width: 240px;
  height: auto;
  overflow: visible;
}

.how-num {
  display: inline-block;
  font: 600 12px var(--mono);
  letter-spacing: .1em;
  color: #a78bfa;
  margin-bottom: 6px;
}

.how-step h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

.how-step p {
  margin: 0 auto;
  max-width: 260px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.how-arrow {
  display: grid;
  place-items: center;
  height: 170px;
}

.how-arrow svg {
  width: 40px;
  height: 16px;
  fill: none;
  stroke: var(--border-strong, #3a4150);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* элементы иллюстраций */
.how-art .a-fill {
  fill: rgba(59, 130, 246, .08);
}

.how-art .a-line {
  fill: none;
  stroke: var(--how-a);
  stroke-width: 2;
  stroke-linecap: round;
}

.how-art .a-soft {
  fill: rgba(59, 130, 246, .35);
}

.how-art .v-fill {
  fill: rgba(139, 92, 246, .10);
}

.how-art .v-line {
  fill: none;
  stroke: var(--how-v);
  stroke-width: 2;
  stroke-linecap: round;
}

.how-art .link {
  fill: none;
  stroke: #a78bfa;
  stroke-width: 2;
  stroke-dasharray: 5 5;
  animation: howDash 1.6s linear infinite;
}

.how-art .dot-a {
  fill: var(--how-a);
}

.how-art .dot-v {
  fill: var(--how-v);
}

.how-art .ok {
  fill: var(--how-g);
}

.how-art .ok-mark {
  fill: none;
  stroke: #fff;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-art .grid {
  stroke: rgba(255, 255, 255, .06);
  stroke-width: 1;
}

.how-art .wick {
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.how-art .c-up {
  fill: var(--how-g);
}

.how-art .c-down {
  fill: #ef4444;
  opacity: .85;
}

.how-art .scan-ring {
  fill: rgba(139, 92, 246, .10);
  stroke: var(--how-v);
  stroke-width: 2.5;
}

.how-art .scan-handle {
  stroke: var(--how-v);
  stroke-width: 5;
  stroke-linecap: round;
}

.how-art .pulse {
  fill: #a78bfa;
  transform-origin: 140px 60px;
  animation: howPulse 2s ease-in-out infinite;
}

.how-art .g-soft {
  fill: rgba(34, 197, 94, .25);
}

.how-art .area {
  fill: rgba(34, 197, 94, .12);
}

.how-art .trend {
  fill: none;
  stroke: var(--how-g);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.how-art .trend-dot {
  fill: var(--how-g);
}

@keyframes howDash {
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes howPulse {

  0%,
  100% {
    opacity: .5;
    transform: scale(.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

@media (max-width: 900px) {
  .how-steps {
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
  }

  .how-arrow {
    height: 36px;
  }

  .how-arrow svg {
    transform: rotate(90deg);
  }

  .how-art {
    height: 150px;
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .how-art .link,
  .how-art .pulse {
    animation: none;
  }
}

/* ---------- Таблица лидеров: первые 5 строк + «Show all» ---------- */
.lb-table tr.lb-extra {
  display: none;
}

.lb-card.is-expanded .lb-table tr.lb-extra {
  display: table-row;
}

.lb-more {
  display: flex;
  margin: 16px auto 0;
  padding: 10px 22px;
  font-size: 13.5px;
}

.lb-more[hidden] {
  display: none;
}

.lb-more-count {
  color: var(--text-mute);
  font-weight: 500;
}

/* =========================================================
   Product banner — макет ноутбука и телефона
   ========================================================= */
.promo-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: center;
  padding: 48px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #131a2e 0%, #17142b 55%, #0f1218 100%);
  border: 1px solid var(--border);
}

.promo-card::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, .22), transparent 65%);
  pointer-events: none;
}

.promo-copy {
  position: relative;
  z-index: 1;
}

.promo-copy h2 {
  font-size: clamp(26px, 3.2vw, 38px);
  margin: 12px 0;
  letter-spacing: -0.02em;
}

.promo-copy p {
  color: var(--text-dim);
  margin: 0 0 18px;
  max-width: 440px;
}

.promo-points {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 8px;
}

.promo-points li {
  position: relative;
  padding-left: 26px;
  color: var(--text-dim);
  font-size: 14.5px;
}

.promo-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  color: #fff;
  background: #8b5cf6;
}

.promo-copy .btn-arrow {
  display: inline-block;
  transition: transform .3s;
}

.promo-copy .btn:hover .btn-arrow {
  transform: translateX(4px);
}

.promo-visual {
  position: relative;
  height: 340px;
}

.up {
  color: var(--green, #22c55e);
}

/* ноутбук */
.mock-laptop {
  position: absolute;
  left: 0;
  right: 70px;
  top: 10px;
}

.mock-screen {
  aspect-ratio: 16 / 10.2;
  border-radius: 12px 12px 0 0;
  padding: 12px;
  overflow: hidden;
  background: #0d1015;
  border: 8px solid #252a33;
  border-bottom-width: 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
}

.mock-base {
  height: 12px;
  margin: 0 -26px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#2c323c, #1b1f26);
  position: relative;
}

.mock-base::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 70px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: #15181d;
}

.ms-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--text-mute);
  font-size: 9.5px;
}

.ms-bar i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a404b;
}

.ms-bar span {
  margin-left: 6px;
}

.ms-bar b {
  margin-left: auto;
  color: var(--green, #22c55e);
  font-weight: 500;
}

.ms-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.ms-kpis div {
  background: #161a21;
  border: 1px solid #222731;
  border-radius: 6px;
  padding: 6px 8px;
}

.ms-kpis small {
  display: block;
  color: var(--text-mute);
  font-size: 8.5px;
}

.ms-kpis strong {
  font: 600 11.5px var(--mono);
}

.ms-chart {
  flex: 1;
  width: 100%;
  min-height: 40px;
  background: #12151b;
  border-radius: 6px;
}

.ms-log {
  display: grid;
  gap: 3px;
  font-family: var(--mono);
  font-size: 8.5px;
}

.ms-log div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 3px 6px;
  border-radius: 4px;
  background: #131720;
}

.ms-log em {
  font-style: normal;
  color: var(--green, #22c55e);
  background: rgba(34, 197, 94, .12);
  border-radius: 3px;
  padding: 1px 4px;
  font-size: 7.5px;
}

/* телефон */
.mock-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 150px;
  height: 290px;
  border-radius: 26px;
  padding: 8px;
  background: #252a33;
  box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8), 0 0 0 1px #343a45;
}

.mp-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 46px;
  height: 12px;
  transform: translateX(-50%);
  border-radius: 8px;
  background: #0b0d11;
  z-index: 1;
}

.mp-screen {
  height: 100%;
  border-radius: 19px;
  background: #0d1015;
  padding: 30px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}

.mp-screen>small {
  color: var(--text-mute);
  font-size: 9px;
}

.mp-screen>strong {
  font: 600 18px var(--mono);
}

.mp-screen>.up {
  font-size: 9.5px;
  font-family: var(--mono);
}

.mp-screen svg {
  width: 100%;
  height: 44px;
  margin: 6px 0 8px;
}

.mp-alert {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border-radius: 8px;
  background: #161a21;
  border: 1px solid #222731;
  margin-bottom: 5px;
}

.mp-alert i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
  color: #fff;
  background: var(--green, #22c55e);
  flex-shrink: 0;
}

.mp-alert b {
  display: block;
  font-size: 9px;
  font-weight: 600;
}

.mp-alert small {
  color: var(--text-mute);
  font-size: 8px;
  font-family: var(--mono);
}

@media (max-width: 900px) {
  .promo-card {
    grid-template-columns: minmax(0, 1fr);
    padding: 32px 24px;
    gap: 28px;
  }

  .promo-visual {
    height: 300px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .promo-card {
    padding: 24px 18px;
  }

  .promo-visual {
    height: 250px;
  }

  .mock-laptop {
    right: 50px;
  }

  .mock-phone {
    width: 112px;
    height: 220px;
    border-radius: 20px;
    padding: 6px;
  }

  .mp-screen {
    border-radius: 15px;
    padding: 24px 9px 9px;
  }

  .mp-screen>strong {
    font-size: 14px;
  }

  .mp-alert:last-child {
    display: none;
  }

  .mock-screen {
    padding: 8px;
    border-width: 6px;
    border-bottom-width: 8px;
    gap: 5px;
  }

  .ms-log div:nth-child(n+3) {
    display: none;
  }
}

.mp-alert>div {
  min-width: 0;
}

.mp-alert b,
.mp-alert small {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 640px) {
  .mp-alert {
    gap: 4px;
    padding: 5px;
  }

  .mp-alert i {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }

  .mp-alert b {
    font-size: 8px;
  }

  .mp-alert small {
    font-size: 7px;
  }
}

/* аватар с реальным фото (поле photo) */
.avatar.avatar-photo {
  padding: 0;
  overflow: hidden;
  background: transparent !important;
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ---------- Лого терминала: вращается, пока идёт симуляция ---------- */
.dash-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
}

.dash-logo>* {
  --r0: 0deg;
  transform: rotate(var(--r0));
}

.dash-logo-mark {
  --r0: 45deg;
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 2px solid rgba(255, 255, 255, .92);
  border-right-color: transparent;
}

.dash-logo img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

.dashboard.is-running .dash-logo>* {
  animation: dashLogoSpin 1.6s linear infinite;
}

@keyframes dashLogoSpin {
  from {
    transform: rotate(var(--r0));
  }

  to {
    transform: rotate(calc(var(--r0) + 360deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .dashboard.is-running .dash-logo>* {
    animation-duration: 6s !important;
  }
}

/* кнопка регистрации под «How it works» */
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.how-cta .btn {
  min-width: 220px;
}

@media (max-width: 640px) {
  .how-cta {
    margin-top: 28px;
  }

  .how-cta .btn {
    width: 100%;
  }
}

/* секция, выключенная атрибутом hidden */
section[hidden] {
  display: none !important;
}