:root {
  --bg: #111316;
  --bg-2: #15181c;
  --panel: #1a1d22;
  --panel-2: #22262c;
  --line: #2c3139;
  --text: #e8eaed;
  --muted: #8b939e;
  --accent: #f5b53d;
  --buy: #82b62a;
  --sell: #3a93f0;
  --good: #7cc56a;
  --bad: #e0584f;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 780px; }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.hidden { display: none !important; }

/* Навигация */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(17, 19, 22, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 60px; }
.brand { font-weight: 700; font-size: 18px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.coin { color: var(--accent); }
.links { display: flex; gap: 18px; flex: 1; }
.links a { color: var(--muted); font-size: 14px; }
.links a:hover { color: var(--text); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.langs { display: flex; gap: 4px; }
.langs button { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 4px 8px; font: inherit; font-size: 12px; cursor: pointer; }
.langs button.on { color: var(--accent); border-color: var(--accent); }

@media (max-width: 760px) {
  .links { display: none; }
  .nav .btn.small { display: none; }
}

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; padding: 12px 20px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font-size: 15px; }
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn.accent { background: var(--accent); color: #1a1406; }
.btn.ghost { background: transparent; border-color: var(--line); color: var(--text); }
button.btn { font-family: inherit; }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.buy { background: var(--buy); color: #0e1a02; }

/* Первый экран */
.hero { padding: 72px 0 48px; background: radial-gradient(ellipse at 70% -10%, rgba(245, 181, 61, .13), transparent 60%); }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 1.2px; font-size: 13px; font-weight: 600; margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; max-width: 820px; letter-spacing: -.5px; }
.lead { font-size: 19px; color: #c5cad1; max-width: 720px; margin: 0 0 28px; }
.small-lead { font-size: 17px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 44px; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.kpi b { display: block; font-size: 24px; }
.kpi span { color: var(--muted); font-size: 13px; }
@media (max-width: 700px) { .kpis { grid-template-columns: repeat(2, 1fr); } }

/* Секции */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: 30px; margin: 0 0 16px; letter-spacing: -.3px; }
h3 { font-size: 16px; margin: 32px 0 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .6px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 460px; font-size: 14px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; gap: 32px; } }

.ticks { list-style: none; padding: 0; margin: 0 0 20px; }
.ticks li { position: relative; padding: 6px 0 6px 28px; }
.ticks li::before { content: '◈'; position: absolute; left: 0; color: var(--accent); }

/* Рынок */
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table.servers th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
table.servers td { padding: 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.servers tbody tr { cursor: pointer; }
table.servers tbody tr:hover td { background: var(--panel-2); }
table.servers tbody tr.on td { background: rgba(245, 181, 61, .07); }
table.servers tbody tr:last-child td { border-bottom: 0; }
table.servers .name b { display: block; }
table.servers .name span { font-size: 12px; color: var(--muted); }
td.empty { text-align: center; color: var(--muted); padding: 28px; cursor: default; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--bad); }
.dot.on { background: var(--good); }
.ask { color: var(--bad); }
.bid { color: var(--good); }
@media (max-width: 700px) { .hide-sm { display: none; } }

.book-panel { margin-top: 16px; padding: 18px; }
.book-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.book-head h4 { margin: 0; font-size: 20px; }
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .book { grid-template-columns: 1fr; } }
.side h5 { margin: 0 0 8px; font-weight: 500; font-size: 14px; color: var(--muted); }
.side h5 b { color: var(--text); }
table.levels { font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
table.levels th { background: var(--panel-2); color: var(--muted); font-size: 12px; font-weight: 600; padding: 8px; text-align: center; }
table.levels td { text-align: center; padding: 7px 8px; border-top: 1px solid var(--line); }
table.levels .net { color: var(--muted); }

.list .row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.list .row:first-child { border-top: 0; }
.list p { margin: 0; padding: 16px; }

/* Шаги */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.step i { display: inline-flex; width: 30px; height: 30px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(245, 181, 61, .15); color: var(--accent); font-style: normal; font-weight: 700; }
.step h4 { margin: 14px 0 8px; font-size: 17px; }
.step p { margin: 0; color: #b7bdc5; font-size: 15px; }

.code-card { padding: 18px; }
.code-card p { margin: 0 0 8px; }
pre { margin: 0; overflow-x: auto; }
code { font: 14px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #cfd6de; }

.shots { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.shots img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 16px 18px; font-weight: 600; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; float: right; color: var(--accent); font-weight: 400; }
details[open] summary::after { content: '−'; }
details p { margin: 0; padding: 0 18px 16px; color: #b7bdc5; }

.foot { border-top: 1px solid var(--line); padding: 28px 0 36px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 6px 0 0; max-width: 520px; }
