/* ============================================================
   Zonarex — дизайн-система
   ============================================================ */

:root {
  --bg:        #0e1016;
  --bg-soft:   #151823;
  --surface:   #1b1f2c;
  --surface-2: #222738;
  --line:      #2b3145;
  --text:      #e8ebf3;
  --text-dim:  #9aa3ba;
  --text-mute: #6b7490;

  --accent:    #7c5cff;
  --accent-2:  #37d6a4;
  --danger:    #ff5d73;
  --warn:      #ffb84d;
  --gold:      #ffcf5c;

  --radius:    14px;
  --radius-sm: 9px;
  --shadow:    0 12px 34px rgba(0, 0, 0, .35);

  --menu-bg:    #151823;
  --menu-hover: rgba(255, 255, 255, .05);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f4f6fb;
    --bg-soft:   #ffffff;
    --surface:   #ffffff;
    --surface-2: #f0f3fa;
    --line:      #dde3ef;
    --text:      #161a25;
    --text-dim:  #566080;
    --text-mute: #8792ad;
    --shadow:    0 10px 28px rgba(22, 26, 37, .08);
    --menu-bg:    #f4f7fd;
    --menu-hover: rgba(22, 26, 37, .05);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3 {
  margin: 0 0 .5em;
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: 1.9rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 1em; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

main.wrap { flex: 1 0 auto; padding-top: 28px; padding-bottom: 48px; }

.muted { color: var(--text-dim); }
.small { font-size: .85rem; }
.right { text-align: right; }
.plus  { color: var(--accent-2); font-weight: 600; }
.minus { color: var(--danger); font-weight: 600; }

/* ============================ ШАПКА ============================ */

.top {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: .3px;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  color: var(--accent);
  font-size: 1.3rem;
}
.brand-name { font-size: 1.1rem; }

.nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav > a { color: var(--text-dim); font-weight: 500; }
.nav > a:hover { color: var(--text); text-decoration: none; }

.inline { display: inline; margin: 0; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
}
.chip-token {
  color: var(--gold);
  border-color: rgba(255, 207, 92, .35);
  background: rgba(255, 207, 92, .10);
}

.badge {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .3px;
  color: var(--accent-2);
  background: rgba(55, 214, 164, .12);
  border: 1px solid rgba(55, 214, 164, .3);
}

/* ============================ КНОПКИ ============================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #5a8bff);
  color: #fff;
}
.btn-ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn-sm  { padding: 6px 13px; font-size: .87rem; }
.btn-block { width: 100%; }

/* ============================ ФОРМЫ ============================ */

.auth {
  display: flex;
  justify-content: center;
  padding: 26px 0;
}

.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
}
.auth-box h1 { margin-bottom: .2em; }
.auth-alt { margin: 18px 0 0; text-align: center; font-size: .9rem; color: var(--text-dim); }

.field {
  display: block;
  margin: 16px 0;
}
.field > span {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}

/* ============================ АЛЕРТЫ ============================ */

.alert {
  margin: 16px 0;
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: .92rem;
}
.alert-success { color: var(--accent-2); border-color: rgba(55, 214, 164, .35); background: rgba(55, 214, 164, .10); }
.alert-error   { color: var(--danger);    border-color: rgba(255, 93, 115, .35); background: rgba(255, 93, 115, .10); }
.alert-warning { color: var(--warn);     border-color: rgba(255, 184, 77, .35); background: rgba(255, 184, 77, .10); }

/* ============================ ГЛАВНАЯ ============================ */

.hero {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 34px;
  align-items: center;
  padding: 34px 0 46px;
}
.hero h1 { font-size: 2.35rem; letter-spacing: -.5px; }
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--text-dim); font-size: 1.03rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0; }
.hero-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  font-size: .9rem;
  color: var(--text-dim);
}
.hero-facts b { color: var(--text); }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.hc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.hc-label { font-weight: 700; font-size: .95rem; }
.hc-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: .92rem;
  color: var(--text-dim);
}
.hc-row b { color: var(--accent-2); }
.hc-total {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.hc-note { margin: 12px 0 0; font-size: .8rem; color: var(--text-mute); }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 34px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.card-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: rgba(124, 92, 255, .14);
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 12px;
}
.card p { color: var(--text-dim); font-size: .92rem; margin: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 22px;
}

/* ============================ ТАБЛИЦА ============================ */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .92rem;
}
.table th, .table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.table th {
  color: var(--text-mute);
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
}
.table tbody tr:last-child td { border-bottom: none; }

/* ============================ КАБИНЕТ ============================ */

.cab-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cab-head h1 { margin-bottom: .15em; }

.balance {
  text-align: right;
}
.bal-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--text-mute);
}
.bal-value {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
}
.bal-value small { font-size: .8rem; color: var(--text-mute); font-weight: 600; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.stat-label {
  display: block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--text-mute);
  margin-bottom: 4px;
}
.stat-value { font-size: 1.15rem; }

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

.reflink {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.reflink-input {
  flex: 1 1 320px;
  min-width: 0;
  padding: 10px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  font: inherit;
  font-size: .9rem;
}
.reflink-input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ============================ ПОДВАЛ ============================ */

.foot {
  flex-shrink: 0;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  padding: 18px 0;
  font-size: .85rem;
  color: var(--text-mute);
}
.foot-in {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ==================== ОБОЛОЧКА: МЕНЮ + РАБОЧАЯ ОБЛАСТЬ ==================== */

/* Шапка и подвал — по той же ширине, что и оболочка */
.top-in { max-width: 1360px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }
.foot-in { max-width: 1360px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* Оболочка приложения: две отдельные области — меню и рабочая зона */
.app-shell {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: calc(100% - 40px);
  max-width: 1360px;
  margin: 18px auto 26px;
  flex: 1 0 auto;
}

.sidebar {
  width: 248px;
  flex-shrink: 0;
  background: var(--menu-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px;
  position: sticky;
  top: 78px;
}

main.content {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 26px 28px 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-height: calc(100vh - 210px);
}

/* Гостям (лендинг, вход, регистрация) — без рамки и меню */
.content-plain { flex: 1 0 auto; }
.content-plain main.content {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  min-height: 0;
}

.wrap-content { max-width: 1040px; }
.app-shell .wrap-content { max-width: 100%; }

.menu { display: grid; gap: 2px; }

.menu-group { padding-bottom: 4px; }

/* Заголовок группы — мелкий, тусклый, не кликается */
.menu-title {
  display: block;
  padding: 12px 12px 5px;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-mute);
  user-select: none;
}

/* Пункт меню — яркий, кликабельный */
.menu-item {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .96rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 2px solid transparent;
}
.menu-item:hover {
  color: var(--accent);
  background: var(--menu-hover);
  text-decoration: none;
}
.menu-item.is-active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: var(--menu-hover);
}

/* Пункт без подпунктов («Личный кабинет») */
.menu-item-solo { margin-top: 4px; }

.menu-sub {
  display: grid;
  gap: 2px;
  padding: 0 0 4px;
}

/* Заголовки внутренних страниц */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
h1.h1 { font-size: 1.6rem; }
.page-head p { margin: 4px 0 0; max-width: 62ch; }
.page-note {
  font-size: .85rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-dim);
  white-space: nowrap;
}

/* Задания исполнителя */
.tasks { display: grid; gap: 12px; }
.task {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.task-main { flex: 1 1 220px; min-width: 0; }
.task-title {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.task-meta { font-size: .82rem; color: var(--text-mute); }

/* Пустое состояние */
.empty {
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 34px 24px;
  text-align: center;
}
.empty-ico { font-size: 2rem; color: var(--text-mute); margin-bottom: 6px; }
.empty p { max-width: 52ch; margin: 8px auto 16px; }

/* Форма задания */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.field select {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font: inherit;
}
.field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, .18);
}
.field-wide { grid-column: 1 / -1; }
.hint {
  display: block;
  margin-top: 5px;
  font-size: .78rem;
  color: var(--text-mute);
  text-transform: none;
  letter-spacing: 0;
}
.field > span:not(.hint) {
  display: block;
  margin-bottom: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-dim);
}
.field input,
.field select {
  margin-top: 0;
}

.calc {
  margin: 14px 0 18px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(55, 214, 164, .08);
  border: 1px solid rgba(55, 214, 164, .25);
  color: var(--text-dim);
  font-size: .9rem;
}

/* ============================ ЛЕНДИНГ v2 ============================ */

/* Хиро: два столбца, справа мокап плеера */
.hero-new { align-items: start; }

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 0;
}

.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.hp-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.hp-label { font-weight: 700; font-size: .9rem; }

.hp-player {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-soft);
}
.hp-video {
  position: relative;
  height: 132px;
  background: linear-gradient(135deg, rgba(124,92,255,.22), rgba(55,214,164,.14));
  display: flex;
  align-items: flex-end;
  padding: 12px 14px;
}
.hp-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -58%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(232,235,243,.85);
  color: #161a25;
  font-size: 1.05rem;
  padding-left: 3px;
}
.hp-title {
  font-size: .82rem;
  color: var(--text-dim);
  background: rgba(0,0,0,.25);
  padding: 3px 9px;
  border-radius: 999px;
}
.hp-bar {
  height: 6px;
  background: var(--line);
  border-radius: 999px;
  margin: 12px 14px 4px;
  overflow: hidden;
}
.hp-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px;
}
.hp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 14px;
  font-size: .88rem;
  color: var(--text-dim);
}
.hp-row:first-of-type { padding-top: 10px; }
.hp-row b { color: var(--text); font-weight: 600; }
.hp-run  { color: var(--accent-2) !important; }
.hp-gain { color: var(--gold) !important; font-weight: 700 !important; }

.hp-note {
  margin: 14px 0 0;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  background: rgba(255, 184, 77, .08);
  border: 1px solid rgba(255, 184, 77, .25);
  color: var(--text-dim);
  font-size: .83rem;
  line-height: 1.5;
}

/* «Как это работает»: две колонки */
.how  { margin: 34px 0 26px; }
.how h2,
.economy h2,
.faq h2 { margin-bottom: 18px; }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.side-viewer { border-top: 3px solid var(--accent-2); }
.side-advert { border-top: 3px solid var(--accent); }
.side h3 { margin: 4px 0 14px; }

.side-tag {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.side-viewer .side-tag { color: var(--accent-2); background: rgba(55,214,164,.12); }
.side-advert .side-tag { color: var(--accent); background: rgba(124,92,255,.14); }

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 14px 40px;
  font-size: .92rem;
  color: var(--text-dim);
}
.steps li:last-child { padding-bottom: 0; }
.steps li b { color: var(--text); }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 0;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: .8rem;
  color: var(--text);
}
.side-viewer .steps li::before { color: var(--accent-2); }
.side-advert .steps li::before { color: var(--accent); }

/* Экономика: крупные числа */
.economy { margin: 26px 0; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.stat-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-num {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.1;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label { font-size: .8rem; color: var(--text-dim); line-height: 1.4; }
.stat-box .stat-label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

/* Что такое TKN */
.about-tkn { margin: 26px 0; }

/* FAQ */
.faq { margin: 26px 0; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 0 18px;
}
.faq details[open] {
  border-color: rgba(124, 92, 255, .45);
}
.faq summary {
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  float: right;
  color: var(--text-mute);
  font-weight: 700;
}
.faq details[open] summary::after { content: '–'; }
.faq details p {
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: .93rem;
}

/* Финальный CTA */
.cta-final {
  margin: 30px 0 8px;
  padding: 34px 24px;
  text-align: center;
  border-radius: var(--radius);
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(124,92,255,.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
}
.cta-final .hero-actions { justify-content: center; margin: 18px 0 0; }

@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hp-video { height: 110px; }
  .cta-final { padding: 26px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .page-head { flex-direction: column; }
  .page-note { white-space: normal; align-self: flex-start; }
  .task { align-items: flex-start; }
}

@media (max-width: 920px) {
  .app-shell {
    flex-direction: column;
    width: calc(100% - 24px);
    margin: 12px auto 18px;
    min-height: 0;
  }
  .sidebar {
    width: 100%;
    position: static;
    padding: 10px 12px;
  }
  .menu {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    align-items: flex-start;
  }
  .menu-title { padding: 6px 8px 2px; }
  .menu-sub { padding: 0 0 2px; }
  .menu-item { padding: 7px 10px; border-left: none; }
  main.content { padding: 18px 16px 32px; min-height: 0; }
}

/* ============================ АДАПТИВ ============================ */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  h1 { font-size: 1.55rem; }
  .hero h1 { font-size: 1.7rem; }
  .stats-row { grid-template-columns: 1fr; }
  .cab-head { flex-direction: column; align-items: flex-start; }
  .balance { text-align: left; }
}
