/* ============================================================
   NUMMO — стили сайта.
   Главные цвета — в :root ниже. Поменяй --accent, и весь сайт
   перекрасится (кнопки, логотип, заголовки, галочки).
   Варианты из дизайна: #B8F24A (лайм), #5CF2B0 (мята),
   #F2C94A (золото), #F2F2EC (белый).
   ============================================================ */

:root {
  --accent: #B8F24A;      /* фирменный цвет */
  --on-accent: #0A120C;   /* текст на кнопках цвета accent */
  --bg: #080D0B;          /* фон страницы */
  --panel: #0D1411;       /* фон карточек */
  --panel-2: #111916;     /* фон блока с ценой */
  --cta-bg: #0E1A14;      /* фон блока "Orders are open" */
  --text: #E9F2EC;        /* основной текст */
  --muted: #A9B8AF;       /* второстепенный текст */
  --faint: #8C9C92;       /* мелкие подписи */
  --line: #18221D;        /* линии между секциями */
  --line-2: #2B3A32;      /* линии в списках */

  --font-display: 'Unbounded', sans-serif;
  --font-body: 'Onest', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); }
a:hover { color: #FFFFFF; }
h1, h2, h3, p { margin: 0; }

.logo-mark { fill: var(--accent); flex: none; }

/* ---------- общие кусочки ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 104px 24px; }
.wrap.narrow { max-width: 1100px; }
.section { border-top: 1px solid var(--line); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
}
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }

.btn {
  text-decoration: none;
  min-height: 56px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: filter .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--on-accent); font-weight: 500; }
.btn-primary:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn-ghost { border: 1px solid #5A6A61; }
.btn-ghost:hover { border-color: var(--text); }
.btn-small { min-height: 48px; padding: 0 24px; font-size: 13px; }

.link {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--muted);
}
.link-plain { text-decoration: none; }

/* ---------- шапка ---------- */
.header { border-bottom: 1px solid var(--line); }
.header-in {
  max-width: 1200px; margin: 0 auto; padding: 16px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 16px;
}
.brand { min-height: 44px; display: flex; align-items: center; text-decoration: none; }
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 4px 44px; font-size: 16px;
}
.nav a { text-decoration: none; min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.nav a:hover { color: var(--text); }

/* ---------- первый экран ---------- */
.hero {
  max-width: 1200px; margin: 0 auto; padding: 88px 24px 112px;
  display: flex; flex-direction: column; align-items: center; gap: 64px;
}
.hero-text {
  max-width: 920px; display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 28px;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.hero-lead { max-width: 640px; font-size: 19px; color: var(--muted); }
.hero-lead strong { color: var(--text); }
.hero-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero-buttons .btn-primary { padding: 0 36px; }
.hero-buttons .btn-ghost { padding: 0 28px; }
.hero-note { font-size: 14px; color: var(--faint); }

/* карта на первом экране */
.card-holder { width: 100%; display: flex; justify-content: center; }
.card {
  width: 100%; max-width: 560px; aspect-ratio: 1.586;
  padding: clamp(22px, 5vw, 40px);
  border-radius: 26px;
  background: #121614;
  border: 1px solid #2E3833;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
}
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-chip { width: 56px; height: 42px; border-radius: 8px; background: #C9A94F; }
.card-bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px;
  font-family: var(--font-mono);
}
.card-number { font-size: clamp(14px, 2vw, 19px); letter-spacing: 0.08em; }
.card-brand { width: clamp(48px, 9vw, 64px); height: auto; flex: none; }

/* ---------- возможности ---------- */
.features { display: flex; flex-direction: column; gap: 56px; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 24px 48px;
}
.section-head .stack { flex: 1 1 480px; min-width: 0; }
.section-head > p { flex: 0 1 340px; color: var(--muted); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1px;
  background: #24312A;
  border: 1px solid #24312A;
}
.tile { padding: 36px; background: var(--panel); display: flex; flex-direction: column; gap: 14px; }
.tile .h3 { margin-top: 12px; }
.tile p { color: var(--muted); }
.icon { stroke: var(--accent); fill: none; }

/* ---------- как это работает ---------- */
.steps { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.steps-intro { flex: 1 1 340px; min-width: 0; }
.steps-intro .h2 { font-size: clamp(28px, 3.8vw, 46px); }
.steps-list { flex: 2 1 480px; min-width: 0; display: flex; flex-direction: column; }
.step {
  padding: 36px 0; border-top: 1px solid var(--line-2);
  display: flex; flex-wrap: wrap; gap: 12px 32px;
}
.step:last-of-type { border-bottom: 1px solid var(--line-2); }
.step-num {
  flex: 0 0 150px; padding-top: 4px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--accent);
}
.step-body { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.step-body p { color: var(--muted); }
.step-links { padding-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 32px; }

/* ---------- цена ---------- */
.price { display: flex; flex-direction: column; gap: 48px; }
.center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; }
.price-row { display: flex; flex-wrap: wrap; }
.price-big {
  flex: 1 1 340px; min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--accent); color: var(--on-accent);
  display: flex; flex-direction: column; gap: 20px;
}
.price-amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(64px, 10vw, 120px); line-height: 1;
}
.price-big div:last-child { font-weight: 500; }
.price-list {
  flex: 1.3 1 380px; min-width: 0;
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel-2);
  display: flex; flex-direction: column; gap: 32px;
}
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 18px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks svg { flex: none; margin-top: 4px; stroke: var(--accent); fill: none; }
.price-list .link { justify-content: center; }

/* ---------- вопросы ---------- */
.faq { display: flex; flex-direction: column; gap: 40px; }
.faq .section-head { gap: 16px 32px; }
.faq .section-head .stack { flex: initial; }
.faq-list { display: flex; flex-direction: column; }
details { padding: 20px 0; border-top: 1px solid var(--line-2); }
details:last-child { border-bottom: 1px solid var(--line-2); }
summary {
  list-style: none; cursor: pointer;
  min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
summary::-webkit-details-marker { display: none; }
summary svg { flex: none; transition: transform .2s; }
details[open] summary svg { transform: rotate(180deg); }
details p { margin-top: 12px; max-width: 820px; color: var(--muted); }

/* ---------- призыв перед подвалом ---------- */
.cta { border-top: 1px solid var(--line); background: var(--cta-bg); }
.cta .wrap {
  padding: 112px 24px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 40px 64px;
}
.cta-text { flex: 1 1 440px; min-width: 0; }
.cta-text .h2 { font-weight: 700; }
.cta-buttons { flex: 0 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.cta-buttons .btn { padding: 0 28px; }
.cta-buttons .btn-ghost { border-color: #3A4A41; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--line); }
.footer .wrap { padding: 72px 24px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-col { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.footer-col .title { font-weight: 600; margin-bottom: 8px; }
.footer-col a { text-decoration: none; min-height: 44px; display: flex; align-items: center; color: var(--muted); }
.footer-col a:hover { color: var(--text); }
.legal { padding-top: 28px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }

/* ---------- страницы Privacy / Terms ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 104px; }
.doc h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); margin-bottom: 24px; }
.doc h2 { font-family: var(--font-display); font-size: 20px; margin: 40px 0 12px; }
.doc p { color: var(--muted); margin-bottom: 14px; }

/* ============================================================
   АДАПТАЦИЯ ПОД ПК И ТЕЛЕФОНЫ
   ============================================================ */

/* шапка прилипает к верху при прокрутке */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 13, 11, 0.86);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header-right { display: flex; align-items: center; gap: 10px; }
section[id], footer[id] { scroll-margin-top: 80px; }
.nw { white-space: nowrap; }

.burger {
  display: none;
  width: 48px; height: 48px; padding: 0;
  border: 1px solid #2E3833; border-radius: 6px; background: transparent;
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.burger span { display: block; width: 20px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* карта: лёгкий наклон и блик */
.card { position: relative; overflow: hidden; transition: transform .4s ease; }
.card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.06) 50%, transparent 65%);
}

/* ---------- ПК: широкие экраны (от 1024px) ---------- */
@media (min-width: 1024px) {
  /* первый экран в две колонки: текст слева, карта справа */
  .hero {
    flex-direction: row; justify-content: space-between; align-items: center;
    gap: 64px; padding: 104px 24px 128px; min-height: calc(100vh - 81px); max-height: 980px;
  }
  .hero-text { flex: 1 1 560px; align-items: flex-start; text-align: left; }
  .hero h1 { font-size: clamp(48px, 5vw, 76px); }
  .hero-buttons { justify-content: flex-start; }
  .card-holder { flex: 1 1 480px; }
  .card { transform: perspective(1200px) rotateY(-12deg) rotateX(4deg); }
  .card:hover { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
}

/* очень широкие мониторы (от 1600px) — чуть крупнее */
@media (min-width: 1600px) {
  .wrap, .hero, .header-in { max-width: 1360px; }
  .wrap.narrow { max-width: 1200px; }
  body { font-size: 18px; }
}

/* ---------- планшеты и телефоны (до 860px) ---------- */
@media (max-width: 860px) {
  .burger { display: flex; }
  .header-in { flex-wrap: nowrap; padding: 12px 16px; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 16px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav a { min-height: 52px; font-size: 18px; border-bottom: 1px solid var(--line); color: var(--text); }
  .menu-open .nav { display: flex; }
}

/* ---------- телефоны (до 640px) ---------- */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 64px 16px; }
  .hero { padding: 48px 16px 72px; gap: 48px; }
  .hero-text { gap: 22px; }
  .hero-lead { font-size: 18px; }
  .hero-buttons { width: 100%; flex-direction: column; }
  .hero-buttons .btn { width: 100%; }
  .header-right .btn-small { padding: 0 16px; font-size: 12px; }

  .features, .price { gap: 36px; }
  .faq { gap: 28px; }
  .tile { padding: 28px 22px; }
  .step { padding: 26px 0; }
  .step-num { flex-basis: 100%; padding-top: 0; }
  summary { font-size: 16px; }

  .cta .wrap { padding: 72px 16px; gap: 28px; }
  .cta-buttons { flex-basis: 100%; }

  .footer .wrap { padding: 56px 16px 32px; gap: 36px; }
  .footer-cols { gap: 28px 24px; }
  .footer-cols > div:first-child { flex-basis: 100%; }
  .footer-col { flex: 1 1 140px; }
  .doc { padding: 48px 16px 72px; }
}

/* без анимаций, если человек их отключил в системе */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .burger span, summary svg { transition: none; }
}

/* ---------- страница FAQ ---------- */
.faq-page { padding-top: 72px; }
.faq-page section { scroll-margin-top: 96px; }
.faq-group {
  margin: 24px 0 8px;
  font-family: var(--font-mono); font-weight: 500; font-size: 13px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.faq-page details p + p { margin-top: 10px; }
.faq-page details a, .faq-page .muted a { color: var(--text); }
.faq-end { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 24px; }
.legal a { color: var(--faint); }
.legal a:hover { color: var(--text); }
@media (max-width: 640px) {
  .faq-page { padding-top: 40px; }
  .faq-end .btn { width: 100%; }
}

/* ---------- сравнение карт ---------- */
.compare { display: flex; flex-direction: column; gap: 40px; }
.cmp { border: 1px solid #24312A; background: var(--panel); }
.cmp-row {
  display: grid; grid-template-columns: 1.1fr 1fr 1fr;
  border-top: 1px solid #1C2722;
}
.cmp-row:first-child { border-top: 0; }
.cmp-row > div { padding: 20px 28px; }
.cmp-row > div + div { border-left: 1px solid #1C2722; }
.cmp-row [role="rowheader"] { color: var(--muted); }
.cmp-row [role="cell"] { font-weight: 500; }
.cmp-head { background: var(--panel-2); }
.cmp-head > div {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
}
.cmp-note { font-size: 14px; color: var(--faint); }

/* на телефоне: название строки сверху, две карты рядом под ним */
@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 1fr 1fr; }
  .cmp-row > div { padding: 14px 16px; }
  .cmp-row [role="rowheader"] {
    grid-column: 1 / -1; padding-bottom: 0;
    font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  }
  .cmp-row [role="rowheader"] + div { border-left: 0; }
  .cmp-row [role="cell"]::before {
    content: attr(data-card); display: block; margin-bottom: 2px;
    font-size: 12px; font-weight: 400; color: var(--faint);
  }
  .cmp-head { display: none; }
}

/* ---------- пополнение и доставка ---------- */
.stats { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.stats .tile { gap: 10px; }
.stat-label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.stat-value {
  font-family: var(--font-display); font-weight: 700; line-height: 1.05;
  font-size: clamp(34px, 3.6vw, 48px); color: var(--accent);
}
.stats .tile p { font-size: 15px; }
.assets { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.coins { display: flex; flex-wrap: wrap; gap: 10px; }
.coin {
  min-height: 40px; padding: 0 18px; display: inline-flex; align-items: center;
  border: 1px solid #2E3833; border-radius: 999px; background: var(--panel);
  font-family: var(--font-mono); font-size: 14px; font-weight: 500; letter-spacing: 0.08em;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .tile { padding: 22px 16px; }
  .stat-value { font-size: 28px; }
  .stats .tile p { font-size: 14px; }
}

/* ---------- срок жизни карты ---------- */
.life { gap: 28px; }
.life .stats { grid-template-columns: 1fr 1fr; }
.life-notes li { color: var(--muted); }

/* ---------- страница заказа ---------- */
.order-top { display: flex; flex-direction: column; gap: 48px; padding-top: 72px; }
.step-body p a { color: var(--text); }
.notice {
  padding: 28px 32px; border: 1px solid #2E3833; border-left: 3px solid var(--accent);
  background: var(--panel); display: flex; flex-direction: column; gap: 10px;
}
.notice p { color: var(--muted); }
@media (max-width: 640px) {
  .order-top { padding-top: 40px; gap: 32px; }
  .notice { padding: 22px 18px; }
}


/* ---------- форма заказа (order.html) ---------- */
[hidden] { display: none !important; }
.order-form {
  margin-top: 48px; max-width: 640px;
  background: var(--panel); border: 1px solid var(--line-2);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 20px;
  scroll-margin-top: 96px;
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-row .field { flex: 1 1 220px; }
.field-row { display: flex; flex-wrap: wrap; gap: 20px; }
.field label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--faint);
}
.field input, .field select {
  width: 100%; min-height: 54px; padding: 0 16px;
  font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--line-2); border-radius: 0; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--faint) 50%), linear-gradient(135deg, var(--faint) 50%, transparent 50%);
  background-position: calc(100% - 22px) 24px, calc(100% - 16px) 24px;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.field input::placeholder { color: #5E6E64; }
.field input:focus-visible, .field select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.field .bad { border-color: #F2C94A; }
.form-line { width: 100%; border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.order-sum { background: var(--bg); border: 1px solid var(--line-2); padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; color: var(--muted); }
.sum-row b { font-family: var(--font-mono); font-weight: 500; color: var(--text); font-variant-numeric: tabular-nums; }
.sum-total { border-top: 1px solid var(--line-2); padding-top: 14px; color: var(--text); font-weight: 600; }
.sum-total b { color: var(--accent); font-size: 20px; }
.form-error { color: #F2C94A; font-size: 15px; }
.form-error:empty { display: none; }
.form-note { color: var(--faint); font-size: 14px; text-align: center; }
.order-form .btn { width: 100%; cursor: pointer; }
.order-form button.btn-primary { border: 0; }
.order-form button.btn-ghost { background: none; color: var(--text); }
.order-form a.btn-primary:hover { color: var(--on-accent); }
.order-text {
  margin: 0; padding: 18px 20px; background: var(--bg); border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 14px; line-height: 1.6; color: var(--text);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; align-self: center; text-decoration: underline; }
@media (max-width: 520px) { .order-form { padding: 24px 18px; } }
