/* ============== Базовое ============== */
:root {
  --bg: #0f1117;
  --bg-alt: #161922;
  --card: #1c2030;
  --line: #2a2f42;
  --text: #e8eaf2;
  --muted: #9aa0b8;
  --accent: #ffd84d;      /* жёлтый — CTA */
  --accent-d: #f2c200;
  --tg: #2aabee;          /* Telegram-синий */
  --danger: #ff6b6b;
  --ok: #4ade80;
  --radius: 14px;
  --maxw: 1080px;
  --pad: 24px;
  --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; line-height: 1.55; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .85; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(28px, 4.5vw, 48px); }
h2 { font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 24px; }
h3 { font-size: 20px; }
p { margin: 0 0 12px; color: var(--text); }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ============== Header ============== */
.hdr { position: sticky; top: 0; background: rgba(15,17,23,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 50; }
.hdr__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.hdr__logo { display: inline-flex; align-items: center; height: 56px; line-height: 1; color: var(--text); }
.hdr__logo img { display: block; height: 48px; width: auto; }
.hdr__nav { display: flex; gap: 24px; align-items: center; }
.hdr__nav a { color: var(--muted); font-size: 15px; font-weight: 500; }
.hdr__nav a:hover { color: var(--text); opacity: 1; }
.hdr__cta { background: var(--accent); color: #1a1a1a !important; padding: 8px 16px; border-radius: 999px; font-weight: 700; }
@media (max-width: 720px) {
  .hdr__nav a:not(.hdr__cta) { display: none; }
}

/* ============== Hero ============== */
.hero { padding: 80px 0 60px; background: radial-gradient(1200px 600px at 50% -10%, rgba(255,216,77,.08), transparent), var(--bg); }
.hero__h1 { max-width: 880px; }
.hero__accent { color: var(--accent); }
.hero__sub { font-size: 18px; color: var(--muted); max-width: 720px; margin: 24px 0 32px; }
.hero__ctaRow { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero__small { margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ============== Buttons ============== */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px; border: 0; cursor: pointer; transition: transform .12s, opacity .15s; }
.btn--primary { background: var(--accent); color: #1a1a1a; }
.btn--primary:hover { background: var(--accent-d); opacity: 1; }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--muted); opacity: 1; }
.btn--lg { padding: 18px 32px; font-size: 17px; width: 100%; }
.btn:active { transform: translateY(1px); }

/* ============== Market stats ============== */
.market { padding: 32px 0 8px; background: var(--bg); border-bottom: 1px solid var(--line); }
.market__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.market__stat { padding: 20px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.market__num { font-size: 30px; font-weight: 800; color: var(--accent); line-height: 1.1; margin-bottom: 6px; letter-spacing: -.02em; }
.market__lbl { color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ============== Features ============== */
.how { padding: 80px 0; background: var(--bg-alt); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature__ico { font-size: 28px; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 15px; margin: 0; }

/* ============== Preview ============== */
.preview { padding: 80px 0; }
.preview__lead { color: var(--muted); margin: -8px 0 32px; font-size: 16px; }
.screen { max-width: 720px; margin: 0 auto; background: #0a0d14; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.4); }
.screen__head { display: flex; align-items: center; gap: 8px; padding: 12px 16px; background: #15182087; border-bottom: 1px solid var(--line); }
.screen__dot { width: 12px; height: 12px; border-radius: 50%; }
.screen__dot--r { background: #ff5f57; }
.screen__dot--y { background: #febc2e; }
.screen__dot--g { background: #28c840; }
.screen__title { margin-left: 12px; color: var(--muted); font-size: 13px; font-family: ui-monospace, SFMono-Regular, monospace; }
.screen__body { margin: 0; padding: 20px 24px; color: #cfd5e8; font-family: ui-monospace, SFMono-Regular, 'Menlo', monospace; font-size: 14px; line-height: 1.65; white-space: pre-wrap; }

/* ============== Diff ============== */
.diff { padding: 80px 0; background: var(--bg-alt); }
.diff__lead { font-size: 17px; color: var(--muted); max-width: 800px; margin-bottom: 32px; }
.diff__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.diff__card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.diff__card h4 { margin: 0 0 8px; }
.diff__card p { color: var(--muted); font-size: 15px; margin: 0; }

/* ============== Plans ============== */
.price { padding: 80px 0; }
.price__lead { color: var(--muted); margin-bottom: 32px; font-size: 16px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.plan--popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 16px 40px rgba(255,216,77,.08); }
.plan__badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #1a1a1a; padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.plan h3 { margin: 0 0 12px; }
.plan__price { font-size: 18px; color: var(--muted); margin-bottom: 16px; }
.plan__price strong { color: var(--text); font-size: 32px; font-weight: 800; }
.plan__price s { color: var(--muted); opacity: .6; font-size: 16px; margin-right: 4px; }
.plan ul { padding: 0; margin: 0 0 24px; list-style: none; flex: 1; }
.plan li { padding: 8px 0 8px 24px; position: relative; color: var(--text); font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 800; }

/* ============== FAQ ============== */
.faq { padding: 80px 0; background: var(--bg-alt); }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; padding: 4px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '＋'; float: right; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ============== CTA Form ============== */
.cta { padding: 80px 0; }
.cta h2 { text-align: center; }
.cta > .container > p { text-align: center; color: var(--muted); max-width: 600px; margin: 0 auto 32px; font-size: 16px; }
.form { max-width: 480px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.form__row { margin-bottom: 16px; }
.form__row--two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 540px) { .form__row--two { grid-template-columns: 1fr; } }
.form label { display: block; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.form label span { color: var(--danger); }
.form input, .form select { width: 100%; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font-size: 15px; font-family: inherit; outline: none; transition: border-color .15s; }
.form input:focus, .form select:focus { border-color: var(--accent); }
.form input::placeholder { color: #565b75; }
.form__hint { font-size: 12px; color: var(--muted); margin-top: 16px; text-align: center; }
.form__status { margin-top: 16px; text-align: center; font-weight: 600; font-size: 15px; min-height: 22px; }
.form__status.ok { color: var(--ok); }
.form__status.err { color: var(--danger); }

/* ============== Footer ============== */
.ftr { padding: 40px 0; border-top: 1px solid var(--line); background: var(--bg-alt); }
.ftr__inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted); font-size: 14px; }
.ftr a { color: var(--muted); }
