:root {
  --bg: #0f1024;
  --bg-alt: #15173a;
  --card: #1b1e47;
  --line: #2c3070;
  --text: #eef0ff;
  --muted: #a5a9d6;
  --accent: #8b5cf6;
  --accent-2: #ec4899;
  --ok: #34d399;
  --err: #f87171;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: #c4b5fd; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(32px, 5vw, 54px); letter-spacing: -.02em; }
h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -.01em; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.grad { background: linear-gradient(90deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* кнопки */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff; font: 600 16px/1.2 inherit;
  text-decoration: none; transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 24px rgba(139, 92, 246, .35);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(236, 72, 153, .35); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); box-shadow: none; color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); box-shadow: none; }
.btn--small { padding: 9px 18px; font-size: 14px; }
.btn--wide { width: 100%; }

/* шапка */
.top { position: sticky; top: 0; z-index: 10; background: rgba(15, 16, 36, .85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(44, 48, 112, .6); }
.top__in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.logo__mark { display: inline-block; }
.nav { display: flex; gap: 26px; align-items: center; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--text); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* первый экран */
.hero { padding: 72px 0 56px; background: radial-gradient(900px 400px at 80% 0%, rgba(139, 92, 246, .25), transparent 70%), radial-gradient(700px 400px at 0% 100%, rgba(236, 72, 153, .14), transparent 70%); }
.hero__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { color: #c4b5fd; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.lead { font-size: 19px; color: var(--muted); max-width: 580px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.hero__facts { display: flex; gap: 28px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted); font-size: 14px; }
.hero__facts b { display: block; color: var(--text); font-size: 20px; }

.phone { background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 18px; max-width: 340px; margin-left: auto; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.phone__bar { font-weight: 700; padding: 4px 6px 14px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.msg { padding: 10px 14px; border-radius: 16px; margin: 8px 0; max-width: 85%; font-size: 15px; }
.msg--in { background: #262a63; border-bottom-left-radius: 4px; }
.msg--out { background: linear-gradient(90deg, var(--accent), var(--accent-2)); margin-left: auto; border-bottom-right-radius: 4px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { border: 1px solid var(--accent); color: #c4b5fd; border-radius: 10px; padding: 6px 10px; font-size: 13px; }

/* секции */
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.sub { color: var(--muted); font-size: 18px; margin-bottom: 36px; max-width: 640px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card h3 { font-size: 22px; }
.card p { color: var(--muted); }
.card ul { padding: 0; margin: 0 0 22px; list-style: none; flex: 1; }
.card li { padding-left: 24px; position: relative; margin: 6px 0; font-size: 15px; }
.card li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.card__more { color: var(--muted); font-size: 14px; }
.card__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.card__price { font-weight: 700; margin-bottom: 16px; }

.custom-cta { margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px; border-radius: var(--radius); border: 1px dashed var(--accent); background: rgba(139, 92, 246, .08); }
.custom-cta p { color: var(--muted); margin: 0; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.steps span { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; margin-bottom: 14px; }
.steps p { color: var(--muted); margin: 0; }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; position: relative; }
.plan > p { color: var(--muted); }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--main { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(139, 92, 246, .2); }
.plan__tag { position: absolute; top: -13px; left: 30px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #fff !important; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0; }
.plan__price { font-size: 20px; font-weight: 700; color: var(--text) !important; }
.tiers { width: 100%; border-collapse: collapse; margin: 6px 0 24px; }
.tiers td { padding: 11px 0; border-bottom: 1px solid var(--line); }
.tiers td:last-child { text-align: right; white-space: nowrap; }
.ticks { padding: 0; list-style: none; margin: 0 0 18px; }
.ticks li { padding-left: 24px; position: relative; margin: 6px 0; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

/* форма */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: #11132f; color: var(--text);
  font: 400 16px/1.4 inherit;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(139, 92, 246, .25); }
.form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; display: grid; gap: 8px; }
.form legend { font-weight: 600; font-size: 14px; padding: 0 6px; }
.form .radio { display: flex; align-items: center; gap: 10px; font-weight: 400; font-size: 15px; cursor: pointer; }
.form .radio input { width: auto; accent-color: var(--accent); }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: var(--err); margin: 0; min-height: 0; font-weight: 600; }
.form__err:empty { display: none; }
.done { text-align: center; background: var(--card); border: 1px solid var(--ok); border-radius: var(--radius); padding: 40px 24px; }
.done__icon { font-size: 44px; margin: 0; }

details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; margin-bottom: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 12px 0 0; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.foot p { margin: 0; }

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .phone { margin: 0 auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .burger { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 18px; }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 12px 0; width: 100%; }
  .nav .btn { margin-top: 8px; }
  .hero { padding: 44px 0 40px; }
  .section { padding: 56px 0; }
  .steps, .row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
}
