:root {
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --blue-dark: #1e3a8a;
  --navy: #0b1b32;
  --navy-2: #0a1628;
  --ink: #111827;
  --muted: #5b6b80;
  --line: #e6edf5;
  --bg: #f5f8fd;
  --card: #ffffff;
  --green: #16a34a;
  --orange: #f97316;
  --shadow: 0 18px 50px rgba(15, 37, 80, 0.10);
  --shadow-soft: 0 10px 28px rgba(15, 37, 80, 0.08);
  --radius: 18px;
  --max: 1180px;
  --font: "Inter", "Segoe UI", sans-serif;
  --display: "Plus Jakarta Sans", "Inter", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .28);
}
.btn-outline {
  background: #fff;
  color: var(--blue);
  border-color: #c9d7f2;
}
.btn-ghost { color: var(--blue); font-weight: 700; padding: 0 8px; min-height: auto; }
.btn-white { background: #fff; color: var(--navy); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #eef2f7;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.03em;
  color: #0f2744;
  flex: 0 0 auto;
}
.brand img,
.brand-seal {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(15,37,80,.06);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.nav-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  padding: 6px 0;
  position: relative;
}
.nav-links a.active,
.nav-links a:hover { color: var(--blue); }
.nav-links a.active:after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--blue);
  border-radius: 99px;
}
.nav-cta { flex: 0 0 auto; }
.menu-btn {
  display: none;
  border: 0;
  background: #f1f5f9;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 20px;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  padding: 54px 0 36px;
  background:
    radial-gradient(900px 420px at 80% 10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(700px 360px at 8% 90%, rgba(14,165,233,.08), transparent 55%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  overflow: hidden;
}
.hero:before {
  content: "";
  position: absolute;
  inset: auto -10% -80px -10%;
  height: 180px;
  background: radial-gradient(ellipse at center, rgba(29,78,216,.06), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #e8f0ff;
  color: var(--blue);
  border-radius: 99px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
}
.hero h1 {
  margin: 16px 0 12px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: -.04em;
  color: #0b1220;
}
.hero h1 em {
  font-style: normal;
  color: var(--blue);
}
.hero p.lead {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 540px;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 26px;
  color: #334155;
  font-size: 13.5px;
  font-weight: 600;
}
.hero-tags span { display: inline-flex; align-items: center; gap: 8px; }
.tag-ico {
  width: 28px; height: 28px; border-radius: 8px;
  display: inline-grid; place-items: center;
  background: #eaf1ff; color: var(--blue); font-size: 14px;
}

.hero-visual { position: relative; min-height: 460px; }
.pay-card, .float-card {
  background: #fff;
  border: 1px solid #edf2f7;
  box-shadow: var(--shadow);
}
.pay-card {
  width: min(340px, 100%);
  margin: 30px auto 0;
  border-radius: 22px;
  padding: 18px 18px 20px;
  position: relative;
  z-index: 2;
}
.pay-card h4 { margin: 0 0 12px; font-size: 15px; }
.qr-box {
  border: 1px dashed #d7e0ee;
  border-radius: 16px;
  padding: 16px;
  text-align: center;
  background: #fcfdff;
}
.qr-box img, .qr-box svg { width: 168px; height: 168px; margin: 0 auto 10px; }
.qr-box small { color: var(--muted); font-weight: 600; }
.amount { font-size: 28px; font-weight: 800; margin: 6px 0 12px; }
.pay-row { display: flex; justify-content: center; gap: 10px; }
.pay-chip {
  min-width: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 7px 8px;
  font-size: 11px;
  font-weight: 800;
  color: #334155;
  background: #fff;
}
.float-card {
  position: absolute;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  z-index: 3;
}
.float-card small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; }
.ok { top: 18px; left: 0; }
.ok .dot { width: 28px; height: 28px; border-radius: 50%; background: #dcfce7; color: var(--green); display: grid; place-items: center; }
.api { top: 86px; right: 0; }
.api .dot { width: 32px; height: 32px; border-radius: 10px; background: #e8f0ff; color: var(--blue); display: grid; place-items: center; }
.live { bottom: 28px; right: 8px; width: 180px; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; display: inline-block; margin-right: 6px; }
.spark { width: 70px; height: 28px; }

/* Feature strip */
.feature-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: #fff;
}
.feature-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.feature-strip strong { font-size: 14px; color: #1f2937; }
.strip-items { display: flex; flex-wrap: wrap; gap: 18px 22px; }
.strip-items span {
  display: inline-flex; align-items: center; gap: 8px;
  color: #475569; font-size: 13px; font-weight: 600;
}
.strip-items i { color: var(--blue); }

/* Sections */
.section { padding: 78px 0; }
.section.alt { background: var(--bg); }
.center { text-align: center; }
.kicker { color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.section h2 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -.03em;
}
.sub { color: var(--muted); max-width: 640px; margin: 0 auto; line-height: 1.7; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 42px;
}
.card {
  background: var(--card);
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.card .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center; color: #fff; font-size: 20px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0 0 14px; color: var(--muted); line-height: 1.65; font-size: 14.5px; }
.more { color: var(--blue); font-weight: 700; font-size: 14px; }

/* QR split */
.qr-split {
  display: grid;
  grid-template-columns: 1fr .85fr .85fr;
  gap: 28px;
  align-items: center;
}
.checks { list-style: none; padding: 0; margin: 18px 0 24px; }
.checks li {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 0; font-weight: 600;
}
.checks i { color: var(--blue); }
.phone {
  width: 250px;
  margin: 0 auto;
  background: #111827;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 30px 60px rgba(15,23,42,.25);
  position: relative;
}
.phone-screen {
  background: #fff;
  border-radius: 26px;
  padding: 18px 14px 20px;
  min-height: 430px;
}
.workflow {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.workflow h4 { margin: 0 0 16px; }
.step {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  padding: 10px 0;
  position: relative;
}
.step:not(:last-child):before {
  content: "";
  position: absolute;
  left: 13px; top: 34px; bottom: -4px;
  width: 2px; background: #e2e8f0;
}
.step b { display: block; font-size: 14px; }
.step small { color: var(--muted); }
.badge {
  width: 28px; height: 28px; border-radius: 50%;
  background: #e8f0ff; color: var(--blue);
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}

/* Stats */
.stats {
  background: linear-gradient(180deg, #0b1b32, #0a1628);
  color: #fff;
  padding: 46px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  text-align: center;
  padding: 8px 12px;
  border-right: 1px solid rgba(255,255,255,.12);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: clamp(28px, 4vw, 40px);
  font-family: var(--display);
  letter-spacing: -.03em;
}
.stat span { color: #cbd5e1; font-size: 14px; }

/* Developers */
.dev-grid {
  display: grid;
  grid-template-columns: .9fr 1.2fr .7fr;
  gap: 28px;
  align-items: center;
}
.code {
  background: #0b1220;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  color: #e2e8f0;
}
.code-tabs { display: flex; background: #111827; }
.code-tabs button {
  flex: 1; border: 0; background: transparent; color: #94a3b8;
  padding: 12px; font-weight: 700; cursor: pointer;
}
.code-tabs button.active { color: #fff; background: #1e293b; }
.code pre {
  margin: 0; padding: 18px 20px 22px;
  font-size: 12.5px; line-height: 1.7; overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.key { color: #93c5fd; }
.str { color: #86efac; }
.num { color: #fbbf24; }
.dev-list { display: grid; gap: 14px; }
.dev-item { display: flex; gap: 10px; align-items: flex-start; }
.dev-item i { color: var(--blue); margin-top: 3px; }
.dev-item b { display: block; }
.dev-item small { color: var(--muted); }

/* Pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.price {
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
}
.price.featured {
  border-color: var(--blue);
  box-shadow: 0 18px 40px rgba(29,78,216,.16);
  transform: translateY(-6px);
}
.price h3 { margin: 0 0 8px; }
.price .amt { font-size: 36px; font-weight: 800; margin: 8px 0 16px; }
.price .amt small { font-size: 14px; color: var(--muted); font-weight: 600; }
.price ul { padding: 0; margin: 0 0 20px; list-style: none; }
.price li { margin: 8px 0; color: #475569; }

/* Telegram */
.telegram {
  background: #eaf2ff;
  padding: 28px 0;
}
.telegram .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.telegram h3 { margin: 0 0 6px; }
.telegram p { margin: 0; color: var(--muted); }
.tg-actions { display: flex; align-items: center; gap: 12px; }
.tg-ico {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 22px;
}

/* Footer */
.site-footer {
  background: var(--navy-2);
  color: #dbe4f0;
  padding: 56px 0 20px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(4, 1fr);
  gap: 28px;
}
.site-footer h4 { color: #fff; margin: 0 0 14px; font-size: 15px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #c5d0df; }
.site-footer a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: #fff;
}
.copy {
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 28px;
  padding-top: 16px;
  text-align: center;
  color: #94a3b8;
  font-size: 13px;
}

@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 22px 22px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }
  .menu-btn { display: grid; place-items: center; }
  .hero-grid, .qr-split, .dev-grid, .cards, .price-grid, .stats-grid, .foot-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid { gap: 22px; }
  .stat { border-right: 0; }
  .price.featured { transform: none; }
  .float-card.api, .float-card.live { right: 0; }
}
