:root {
  --bg: #0a0d12;
  --bg-soft: #10151d;
  --card: #141a24;
  --line: #222b38;
  --text: #e7edf5;
  --muted: #8b98a9;
  --accent: #ffb020;
  --accent-soft: #2a2114;
  --good: #38d39f;
  --bad: #ff6b6b;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #17202c 0%, var(--bg) 55%);
  color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; }
h1 { font-size: clamp(30px, 5vw, 52px); }
h2 { font-size: clamp(22px, 3vw, 30px); }
h3 { font-size: 17px; }

p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* ── шапка ── */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 24px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(10, 13, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.logo .dot {
  width: 10px; height: 10px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 4px rgba(255, 176, 32, 0.15);
}
.top nav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; color: var(--muted); }
.top nav a:hover { color: var(--text); }
.top-actions { display: flex; gap: 8px; }

/* ── кнопки ── */
button, .ghost, .primary {
  font: inherit; cursor: pointer; border-radius: 10px; padding: 9px 16px;
  border: 1px solid transparent; transition: transform .08s ease, background .15s ease;
}
button:active { transform: translateY(1px); }
.primary { background: var(--accent); color: #1a1204; font-weight: 650; }
.primary:hover { background: #ffc043; }
.ghost { background: transparent; border-color: var(--line); color: var(--text); }
.ghost:hover { border-color: #33415a; background: var(--bg-soft); }
.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; display: inline-block; }
.wide { width: 100%; }

/* ── секции ── */
main { max-width: 1080px; margin: 0 auto; padding: 0 clamp(16px, 4vw, 32px) 64px; }

.hero { padding: clamp(48px, 9vw, 96px) 0 40px; }
.eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 5px 10px;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft); border-radius: 999px;
}
.lead { max-width: 720px; color: #b9c4d2; font-size: clamp(15px, 1.6vw, 18px); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.block { padding: 40px 0 8px; border-top: 1px solid var(--line); margin-top: 40px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.block-head .muted { font-size: 13px; }

/* ── таблицы ── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #10161f; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ── сетки ── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.grid article {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.grid p { color: #aab6c5; font-size: 14px; margin: 0; }

/* ── тарифы ── */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
}
.plan.pro { border-color: #4a3a12; background: linear-gradient(180deg, #1a1710 0%, var(--card) 60%); }
.plan .price { font-size: 34px; font-weight: 700; margin: 0; letter-spacing: -0.03em; }
.plan .per { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan ul { margin: 4px 0 12px; padding-left: 18px; color: #b6c1cf; font-size: 14px; }
.plan li { margin-bottom: 6px; }
.plan li.off { color: #5d6775; text-decoration: line-through; }
.badge {
  font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent); color: #1a1204; border-radius: 999px; padding: 2px 8px; vertical-align: middle;
}

/* ── faq ── */
.faq details {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 10px;
}
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: #aab6c5; font-size: 14px; margin: 10px 0 0; }

/* ── подвал ── */
.foot {
  display: flex; flex-direction: column; gap: 4px;
  padding: 28px clamp(16px, 4vw, 48px); border-top: 1px solid var(--line);
  font-size: 13px; color: #7b8798;
}

/* ── модальные окна ── */
.modal {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center; padding: 16px;
  background: rgba(4, 6, 9, 0.72); backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.sheet {
  position: relative; width: min(420px, 100%);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  max-height: 90vh; overflow-y: auto;
}
.wide-sheet { width: min(760px, 100%); }
.close {
  position: absolute; top: 10px; right: 10px; width: 32px; height: 32px;
  background: transparent; border: 0; color: var(--muted); font-size: 22px; line-height: 1;
}
.close:hover { color: var(--text); }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; }
.tab {
  background: transparent; border: 1px solid var(--line); color: var(--muted);
  font-size: 14px; padding: 7px 14px;
}
.tab.active { color: var(--text); border-color: #3a475c; background: #18202b; }

form label { display: block; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  background: #0c1118; border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font: inherit; font-size: 15px;
}
input:focus { outline: 2px solid rgba(255, 176, 32, .35); border-color: var(--accent); }
.err { color: var(--bad); font-size: 13px; min-height: 18px; margin: 0 0 8px; }

.row-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 8px; margin-bottom: 6px; }
.row-form input { margin: 0; }

.cab-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.cab-head h2 { font-size: 20px; margin-bottom: 2px; }

.pro-box {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  background: var(--accent-soft); border: 1px solid #4a3a12; border-radius: var(--radius);
  padding: 14px 16px; margin: 16px 0 22px;
}
.pro-box h3 { margin-bottom: 2px; }
.pro-box.active { background: #0f2019; border-color: #1d5744; }

.alerts { list-style: none; padding: 0; margin: 0; }
.alerts li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.alerts li:last-child { border-bottom: 0; }
.alerts .hit { color: var(--good); font-variant-numeric: tabular-nums; }

@media (max-width: 640px) {
  .top nav { display: none; }
  .row-form { grid-template-columns: 1fr; }
  .pro-box { flex-direction: column; align-items: stretch; }
  .lead { font-size: 15px; }
}
