:root {
  --bg: #0a0f1a;
  --bg-2: #0f1626;
  --surface: #131c2e;
  --surface-2: #1a2540;
  --line: #24304a;
  --line-2: #2f3d5c;
  --text: #e8edf6;
  --muted: #94a0b8;
  --dim: #6b7790;
  --accent: #5be38f;
  --accent-ink: #052a14;
  --accent-soft: rgba(91, 227, 143, .12);
  --blue: #66b3ff;
  --warn: #ffcc66;
  --danger: #ff7a7a;
  --radius: 16px;
  --radius-sm: 10px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 5;
  background: rgba(10, 15, 26, .85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.logo:hover { text-decoration: none; }
.logo svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }
.header .btn { padding: 8px 16px; font-size: 15px; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 12px;
  padding: 12px 20px; font-weight: 600; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
  text-decoration: none !important;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #79efa6; }
.btn-primary:disabled { opacity: .7; cursor: progress; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 22px; font-size: 17px; border-radius: 14px; }

/* ---------- первый экран ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 48px 0 64px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(102, 179, 255, .16), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(91, 227, 143, .10), transparent 60%);
}
.hero .wrap {
  display: grid; grid-template-columns: 1fr 440px; column-gap: 56px; row-gap: 0;
  grid-template-areas: "text card" "facts card"; align-items: start;
}
.hero-text { grid-area: text; padding-top: 24px; }
.hero .card { grid-area: card; }
.hero .facts { grid-area: facts; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 14px; font-weight: 600;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(91, 227, 143, .2); }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 18px 0 16px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: 18px; color: var(--muted); max-width: 540px; }
.facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 560px; }
.facts li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px; border-radius: var(--radius-sm);
  background: rgba(19, 28, 46, .6); border: 1px solid var(--line);
}
.facts svg { flex: none; width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.facts b { display: block; font-size: 15px; }
.facts span { display: block; font-size: 14px; color: var(--muted); line-height: 1.4; }

/* ---------- карточка формы ---------- */
.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .6);
}
.card-frame { padding: 0; overflow: hidden; }
.kk-frame { display: block; width: 100%; height: 500px; border: 0; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.card-title { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.2; }
.card-head a { font-size: 14px; }
.field { margin-bottom: 16px; }
.label { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.label small { font-size: 13px; color: var(--dim); }
.input-wrap { position: relative; }
.input {
  width: 100%; height: 52px; padding: 0 16px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  font-size: 18px; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--dim); }
.input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(102, 179, 255, .18); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input-suffix { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.input-amount { padding-right: 40px; font-weight: 600; }
.presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.chip {
  height: 38px; border-radius: 10px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  font-size: 15px; font-weight: 600; transition: all .15s;
}
.chip:hover { border-color: var(--line-2); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.hint { font-size: 13px; color: var(--dim); margin-top: 8px; }
.err { font-size: 13px; color: var(--danger); margin-top: 6px; min-height: 0; }
.err:empty { display: none; }
.alert {
  padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px;
  background: rgba(255, 122, 122, .1); border: 1px solid rgba(255, 122, 122, .35); color: #ffc2c2;
}

.summary { border-top: 1px dashed var(--line-2); margin: 20px 0 18px; padding-top: 16px; }
.summary-row { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); padding: 3px 0; }
.summary-row span:last-child { color: var(--text); font-variant-numeric: tabular-nums; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 8px; font-weight: 700; font-size: 18px; }
.summary-total span:last-child { font-size: 24px; font-variant-numeric: tabular-nums; }

.pay-btn .spinner { display: none; }
.pay-btn.is-busy .spinner { display: inline-block; }
.pay-btn.is-busy [data-total] { display: none; }
.spinner { width: 18px; height: 18px; border: 2px solid rgba(5, 42, 20, .3); border-top-color: var(--accent-ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.card-foot { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; font-size: 13px; color: var(--dim); text-align: center; }
.sbp { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.sbp svg { width: 18px; height: 18px; }

/* статус заказа */
.status-badge { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.status-badge::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--warn); }
.status-wait::before { background: var(--warn); animation: pulse 1.4s ease-in-out infinite; }
.status-work::before { background: var(--blue); animation: pulse 1.4s ease-in-out infinite; }
.status-ok::before { background: var(--accent); }
.status-fail::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }
.status-text { color: var(--muted); margin: 10px 0 18px; font-size: 15px; }
.order { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; margin-bottom: 16px; }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; font-size: 15px; }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-row span:first-child { color: var(--muted); }
.copy { background: none; border: 0; padding: 0 0 0 6px; color: var(--blue); cursor: pointer; font-size: 13px; }
.status-actions { display: grid; gap: 10px; }

/* ---------- секции ---------- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 17px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 14px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 700;
}
.steps h3 { font-size: 17px; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.prose p + p { margin-top: 14px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose ul { padding-left: 20px; margin: 14px 0 0; }
.prose li + li { margin-top: 6px; }

.mock {
  border-radius: var(--radius); border: 1px solid var(--line-2); overflow: hidden;
  background: #1b2838; font-size: 14px; box-shadow: 0 20px 60px -30px rgba(0, 0, 0, .7);
}
.mock-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #171d25; color: #8f98a0; font-size: 13px; }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4350; }
.mock-url { margin-left: 8px; padding: 3px 10px; border-radius: 6px; background: #0e1217; flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mock-body { padding: 24px; color: #c7d5e0; }
.mock-title { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 22px; line-height: 1.3; color: #fff; padding-bottom: 18px; border-bottom: 1px solid #2a3f5a; }
.mock-title mark {
  display: inline-block; padding: 2px 10px;
  background: rgba(91, 227, 143, .14); color: var(--accent);
  border: 2px dashed var(--accent); border-radius: 8px;
}
.mock-rows { display: grid; gap: 14px; padding: 18px 0; }
.mock-row { display: grid; grid-template-columns: 72px 1fr; align-items: center; gap: 14px; font-size: 13px; color: #8f98a0; }
.mock-row i { height: 10px; border-radius: 5px; background: #2a3f5a; }
.mock-row i.short { width: 70%; }
.mock-row i.shorter { width: 45%; }
.mock-note { display: flex; align-items: center; gap: 8px; padding-top: 16px; border-top: 1px solid #2a3f5a; font-size: 13px; color: #8f98a0; }
.mock-dot { flex: none; width: 10px; height: 10px; border-radius: 3px; border: 2px dashed var(--accent); }

.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: left; white-space: nowrap; }
thead th { background: var(--surface-2); color: var(--muted); font-size: 14px; font-weight: 600; }
tbody tr { border-top: 1px solid var(--line); }
tbody tr:hover { background: var(--surface); }
td:last-child, th:last-child { text-align: right; }
.fill { background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 4px 10px; color: var(--accent); cursor: pointer; font-size: 13px; font-weight: 600; }
.fill:hover { background: var(--accent-soft); border-color: var(--accent); }
.note { margin-top: 16px; font-size: 14px; color: var(--dim); }

.banks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.banks span { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }

.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.tile { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.tile h3 { font-size: 17px; margin-bottom: 8px; }
.tile p { color: var(--muted); font-size: 15px; }
.tile svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 14px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 17px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--accent); font-size: 24px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }

.cta { text-align: center; }
.cta-title { font-size: clamp(26px, 3.4vw, 36px); font-weight: 700; line-height: 1.2; margin-bottom: 12px !important; color: var(--text) !important; }
.cta p { color: var(--muted); margin-bottom: 24px; }

/* подвал */
.footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--dim); font-size: 14px; }
.footer .wrap { display: grid; gap: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--muted); }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .hero .wrap { grid-template-columns: 1fr; grid-template-areas: "text" "card" "facts"; row-gap: 24px; }
  .hero .facts { margin-top: 4px; }
  .hero-text { padding-top: 0; }
  .card { max-width: 560px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .nav { display: none; }
  .header .btn { margin-left: auto; }
  .hero { padding: 20px 0 40px; }
  .hero .wrap { row-gap: 18px; }
  .hero .eyebrow { display: none; }
  .hero h1 { font-size: 30px; margin: 0 0 10px; }
  .lead { font-size: 15px; line-height: 1.5; }
  .card-head { margin-bottom: 14px; }
  .card-title { font-size: 18px; }
  .summary { margin: 14px 0 14px; padding-top: 12px; }
  .hint { display: none; }
  .facts { grid-template-columns: 1fr; margin-top: 20px; }
  .card { padding: 18px; border-radius: 18px; }
  .section { padding: 52px 0; }
  .steps { grid-template-columns: 1fr; }
  th, td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
