* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #05070f;
  --bg-2: #0a0f1e;
  --card: rgba(15, 21, 40, .72);
  --card-solid: #0f1528;
  --border: rgba(148, 163, 184, .14);
  --text: #e6ecf7;
  --muted: #94a3b8;
  --dim: #64748b;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --orange: #fbbf24;
  --green: #34d399;
  --radius: 18px;
  --shadow: 0 20px 60px -25px rgba(34, 211, 238, .35);
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1150px; margin: 0 auto; padding: 0 24px; }

/* ---------- фон ---------- */
.bg-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(148,163,184,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 55%, transparent 100%);
}
.orb { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .5; animation: drift 16s ease-in-out infinite; }
.orb-1 { width: 620px; height: 620px; top: -220px; left: -180px; background: rgba(34, 211, 238, .28); }
.orb-2 { width: 520px; height: 520px; top: -140px; right: -220px; background: rgba(167, 139, 250, .26); animation-delay: -6s; }
.orb-3 { width: 480px; height: 480px; top: 55%; left: 32%; background: rgba(59, 130, 246, .18); animation-delay: -11s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.08); }
  66% { transform: translate(-50px, 30px) scale(.95); }
}

/* ---------- шапка ---------- */
.header { position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 15, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.scrolled { border-color: var(--border); background: rgba(5, 7, 15, .85); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 20px; }

.logo { font-size: 21px; font-weight: 800; letter-spacing: 1.5px; text-decoration: none; color: var(--text); }
.logo span { color: var(--cyan); }
.logo em { font-style: normal; color: var(--orange); font-size: 15px; letter-spacing: 2px; }
.logo img { display: block; height: 76px; width: auto; }
.logo-footer img { height: 42px; }

.nav { display: flex; gap: 6px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(148, 163, 184, .1); }

/* ---------- кнопки ---------- */
.btn { display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: 12px;
  transition: transform .18s, box-shadow .18s, filter .18s, background .18s;
  font-family: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 15px 32px; font-size: 16px; border-radius: 14px; }
.btn-primary { background: linear-gradient(135deg, #22d3ee, #818cf8); color: #05070f;
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55); }
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .75); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, .6); background: rgba(34, 211, 238, .06); }
.btn-block { width: 100%; text-align: center; }

/* ---------- hero ---------- */
.hero { padding: 110px 0 90px; text-align: center; position: relative; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px;
  border: 1px solid rgba(251, 191, 36, .35); border-radius: 999px;
  color: var(--orange); font-size: 13px; font-weight: 600; letter-spacing: 1.5px;
  background: rgba(251, 191, 36, .07); margin-bottom: 26px; text-transform: uppercase; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); animation: ping 2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .6); }
  70% { box-shadow: 0 0 0 9px rgba(251, 191, 36, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); }
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.12; font-weight: 800;
  letter-spacing: -.5px; margin-bottom: 22px; }
.grad { background: linear-gradient(100deg, #22d3ee 10%, #a78bfa 55%, #fbbf24 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { max-width: 620px; margin: 0 auto 36px; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-bottom: 64px; flex-wrap: wrap; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; max-width: 860px; margin: 0 auto; }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px 16px; backdrop-filter: blur(8px); }
.stat b { display: block; font-size: 26px; font-weight: 800; color: var(--text);
  background: linear-gradient(120deg, #22d3ee, #a78bfa);
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: 13px; color: var(--dim); }

/* ---------- секции ---------- */
section { padding: 84px 0; }
.sec-title { text-align: center; font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.sec-sub { text-align: center; color: var(--muted); font-size: 16.5px; margin-bottom: 52px; }

/* ---------- features ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-6px); border-color: rgba(34, 211, 238, .45); box-shadow: var(--shadow); }
.icon { width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center; color: var(--cyan);
  background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(167, 139, 250, .14));
  border: 1px solid rgba(34, 211, 238, .25); }
.icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 18px; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; }

/* ---------- тарифы ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.plan { position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 34px 28px 28px; backdrop-filter: blur(8px);
  transition: transform .25s, border-color .25s, box-shadow .25s; }
.plan:hover { transform: translateY(-7px); border-color: rgba(34, 211, 238, .5); box-shadow: var(--shadow); }
.plan.popular { border-color: rgba(34, 211, 238, .65);
  background: linear-gradient(180deg, rgba(34, 211, 238, .09), var(--card) 55%);
  box-shadow: 0 24px 70px -30px rgba(34, 211, 238, .5); }
.badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #fbbf24, #f59e0b); color: #221a02;
  font-weight: 800; font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; box-shadow: 0 6px 18px -6px rgba(251, 191, 36, .7); }
.plan h3 { font-size: 16px; color: var(--muted); font-weight: 600; margin-bottom: 14px; }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -1px; margin-bottom: 6px; }
.plan .price span { font-size: 19px; font-weight: 600; color: var(--muted); }
.plan .per { color: var(--dim); font-size: 13px; margin-bottom: 24px; }
.plan ul { list-style: none; margin-bottom: 28px; flex: 1; }
.plan li { font-size: 14.5px; color: var(--muted); padding: 6px 0 6px 26px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 12px;
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(34, 211, 238, .15); border: 1px solid rgba(34, 211, 238, .5);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322d3ee' stroke-width='3'%3E%3Cpath d='m5 13 4 4 10-10'/%3E%3C/svg%3E");
  background-size: 10px; background-position: center; background-repeat: no-repeat; }

/* ---------- шаги ---------- */
.steps { max-width: 640px; margin: 0 auto 34px; }
.step { display: flex; gap: 22px; padding: 22px 0; border-bottom: 1px dashed var(--border); }
.step:last-child { border-bottom: 0; }
.step-num { font-size: 26px; font-weight: 800; min-width: 52px; text-align: center;
  color: transparent; -webkit-text-stroke: 1.2px rgba(34, 211, 238, .85); }
.step h3 { font-size: 17.5px; margin-bottom: 5px; }
.step p { color: var(--muted); font-size: 15px; }
.how-tip { max-width: 640px; margin: 0 auto; text-align: center;
  background: rgba(34, 211, 238, .06); border: 1px dashed rgba(34, 211, 238, .4);
  border-radius: var(--radius); padding: 18px 24px; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 24px; transition: border-color .25s; }
details[open] { border-color: rgba(34, 211, 238, .5); }
summary { cursor: pointer; font-size: 16.5px; font-weight: 600; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--cyan); transition: transform .25s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 14px; font-size: 15px; }

/* ---------- подвал ---------- */
.footer { border-top: 1px solid var(--border); padding: 38px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--dim); font-size: 13.5px; }

/* ---------- модалка ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(3, 5, 12, .72); backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px); animation: fadein .2s; }
.modal.hidden { display: none; }
@keyframes fadein { from { opacity: 0; } }
.modal-body { position: relative; width: 100%; max-width: 430px;
  background: var(--card-solid); border: 1px solid var(--border); border-radius: 22px;
  padding: 36px 32px 30px; box-shadow: 0 40px 120px -30px rgba(34, 211, 238, .35);
  animation: pop .25s cubic-bezier(.2, 1.2, .3, 1); }
@keyframes pop { from { transform: translateY(16px) scale(.97); opacity: 0; } }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: 0;
  color: var(--dim); font-size: 28px; cursor: pointer; line-height: 1; transition: color .2s; }
.modal-close:hover { color: var(--text); }
.modal-body h3 { font-size: 21px; margin-bottom: 22px; }
label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 7px; font-weight: 600; }
input, select { width: 100%; padding: 13px 15px; margin-bottom: 18px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 15px; font-family: inherit;
  transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 211, 238, .14); }
.order-sum { background: var(--bg-2); border: 1px dashed rgba(34, 211, 238, .35); border-radius: 12px;
  padding: 14px 16px; margin-bottom: 20px; font-size: 14.5px; color: var(--text); }
.hint { color: var(--dim); font-size: 12.5px; margin-top: 12px; text-align: center; }

/* ---------- страницы статуса ---------- */
.status-page { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 20px; }
.status-card { text-align: center; max-width: 500px; }
.status-icon { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 30px;
  border: 4px solid var(--cyan); border-top-color: transparent; }
.status-icon.spin { animation: rotate 1s linear infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
.status-icon.ok { border-color: var(--green); background: var(--green); border-style: solid; }
.status-icon.ok::after { content: "✓"; color: #03130c; font-weight: 900; font-size: 30px;
  display: flex; height: 100%; align-items: center; justify-content: center; }
.status-icon.fail { border-color: #f87171; background: #f87171; }
.status-icon.fail::after { content: "!"; color: #2a0a0a; font-weight: 900; font-size: 26px;
  display: flex; height: 100%; align-items: center; justify-content: center; }
.status-card h1 { font-size: 26px; margin-bottom: 12px; }
.status-card p { color: var(--muted); margin-bottom: 22px; }
.status-card .btn { margin-top: 6px; }

/* ---------- адаптив ---------- */
@media (max-width: 920px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { flex-direction: column; text-align: center; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .hero { padding: 76px 0 64px; }
  .hero-sub { font-size: 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  section { padding: 60px 0; }
}