/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0e1a;
  --bg-card:   #111827;
  --accent:    #2563eb;
  --accent-lt: #60a5fa;
  --text:      #f8fafc;
  --text-muted:#94a3b8;
  --border:    #1e3a5f;
  --radius:    12px;
  --max-w:     1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-lt); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { display: block; max-width: 100%; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 800; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.2rem; font-weight: 600; }

.accent { color: var(--accent-lt); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; border-radius: var(--radius);
  font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: all .2s; border: 2px solid transparent;
}
.btn-primary {
  background: var(--accent); color: #fff; border-color: var(--accent);
}
.btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; text-decoration: none; }
.btn-ghost {
  background: transparent; color: var(--text); border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent-lt); color: var(--accent-lt); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(37,99,235,.15); border: 1px solid rgba(37,99,235,.4);
  color: var(--accent-lt); padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.chip-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent-lt);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background .3s, backdrop-filter .3s;
}
.navbar.scrolled {
  background: rgba(10,14,26,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.navbar__inner { display: flex; align-items: center; gap: 32px; }
.navbar__logo {
  display: flex; align-items: baseline; gap: 8px;
  color: var(--text); font-weight: 800; font-size: 1.1rem; white-space: nowrap;
}
.navbar__logo:hover { text-decoration: none; }
.navbar__logo-icon { color: var(--accent-lt); font-size: 1.3rem; }
.navbar__logo-sub { color: var(--text-muted); font-size: .75rem; font-weight: 400; }
.navbar__links { display: flex; list-style: none; gap: 28px; flex: 1; }
.navbar__links a { color: var(--text-muted); font-size: .95rem; }
.navbar__links a:hover { color: var(--text); text-decoration: none; }
.navbar__actions { display: flex; gap: 10px; margin-left: auto; }
@media (max-width: 768px) { .navbar__links { display: none; } }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; padding-top: 100px;
  background-image: none;
  background-attachment: fixed; background-size: cover; background-position: center;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,14,26,.97) 0%, rgba(10,14,26,.8) 100%);
  z-index: 0;
}
.hero__inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 55fr 45fr;
  gap: 60px; align-items: center;
}
.hero__content { display: flex; flex-direction: column; gap: 28px; }
.hero__sub { font-size: 1.15rem; color: var(--text-muted); line-height: 1.7; }
.hero__sub strong { color: var(--text); }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; }

.phone-frame {
  width: 280px; margin: 0 auto;
  background: #1a1f2e; border-radius: 36px;
  border: 2px solid var(--border); padding: 20px 16px;
  box-shadow: 0 40px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.05);
}
.phone-screen { display: flex; flex-direction: column; gap: 12px; }
.chat-bubble { border-radius: 16px; padding: 10px 14px; font-size: .82rem; line-height: 1.5; }
.chat-bubble.bot {
  background: var(--bg-card); color: var(--text);
  border-bottom-left-radius: 4px; align-self: flex-start; max-width: 90%;
}
.chat-bubble.user {
  background: var(--accent); color: #fff;
  border-bottom-right-radius: 4px; align-self: flex-end; max-width: 80%;
}
.chat-btn {
  display: inline-block; margin-top: 8px;
  background: var(--accent); color: #fff;
  padding: 5px 14px; border-radius: 8px; font-size: .8rem;
}
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mock { display: none; }
}

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 32px 0;
}
.stats-bar__inner {
  display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat__num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent-lt); }
.stat__label { color: var(--text-muted); font-size: .9rem; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== MARQUEE ===== */
.marquee-section {
  padding: 40px 0; border-bottom: 1px solid var(--border); overflow: hidden;
}
.marquee-label {
  text-align: center; color: var(--text-muted);
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 24px;
}
.marquee-track { overflow: hidden; }
.marquee-inner {
  display: flex; align-items: center; gap: 60px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}
.marquee-logo {
  color: var(--text-muted); font-size: 1.1rem; font-weight: 700;
  white-space: nowrap; opacity: .45; transition: opacity .2s;
}
.marquee-logo:hover { opacity: 1; }
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== HOW ===== */
.how { background: var(--bg); }
.steps { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; justify-content: center; }
.step {
  flex: 1; min-width: 200px; max-width: 230px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px;
}
.step__num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: .95rem;
}
.step__icon { color: var(--accent-lt); width: 28px; height: 28px; }
.step p { color: var(--text-muted); font-size: .9rem; }
.step-arrow { align-self: center; color: var(--border); flex-shrink: 0; }
.step-arrow i { width: 24px; height: 24px; }
@media (max-width: 768px) { .step-arrow { display: none; } }

/* ===== WHY RELIABLE ===== */
.why-reliable { background: var(--bg-card); }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.why-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 12px; transition: border-color .2s;
}
.why-card:hover { border-color: var(--accent); }
.why-icon { color: var(--accent-lt); width: 32px; height: 32px; }
.why-card p { color: var(--text-muted); font-size: .9rem; }
.why-card code {
  background: rgba(37,99,235,.15); color: var(--accent-lt);
  padding: 1px 6px; border-radius: 4px; font-size: .85em;
}

/* ===== WHAT SIGN ===== */
.what-sign { background: var(--bg); }
.sign-table-wrap {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 800px; margin: 0 auto;
}
.sign-col { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sign-col-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 20px; font-weight: 700;
}
.sign-col-header.can { background: rgba(37,99,235,.12); color: var(--accent-lt); }
.sign-col-header.cannot { background: rgba(239,68,68,.08); color: #f87171; }
.sign-list { list-style: none; padding: 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.sign-list li { color: var(--text-muted); font-size: .9rem; padding-left: 12px; position: relative; }
.sign-list li::before { content: '—'; position: absolute; left: 0; color: var(--border); }

/* ===== MIGRATE ===== */
.migrate {
  background: linear-gradient(135deg, #0d1530 0%, #0a0e1a 100%);
  border-top: 1px solid var(--accent); border-bottom: 1px solid var(--border);
  text-align: center;
}
.migrate__eyebrow {
  font-size: .75rem; letter-spacing: .12em; color: var(--accent-lt);
  text-transform: uppercase; margin-bottom: 20px;
}
.migrate__title { margin-bottom: 20px; }
.migrate__sub { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 48px; line-height: 1.7; }

.migrate__steps {
  display: flex; align-items: center; justify-content: center;
  gap: 20px; margin-bottom: 48px; flex-wrap: wrap;
}
.migrate__step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px 28px;
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 160px;
}
.migrate__step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; margin-bottom: 4px;
}
.migrate__step strong { font-size: 1rem; }
.migrate__step small { color: var(--text-muted); font-size: .85rem; }
.migrate__arrow { font-size: 1.5rem; color: var(--border); }

.migrate__form { max-width: 700px; margin: 0 auto; }
.migrate__provider-tabs {
  display: flex; gap: 8px; justify-content: center; margin-bottom: 16px; flex-wrap: wrap;
}
.provider-tab {
  padding: 8px 20px; border-radius: 999px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer; font-size: .9rem;
  transition: all .2s; font-family: inherit;
}
.provider-tab.active {
  background: rgba(37,99,235,.2); border-color: var(--accent); color: var(--accent-lt);
}
.migrate__input-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.migrate__input-row input {
  flex: 1; min-width: 200px; padding: 14px 18px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text);
  font-size: 1rem; font-family: inherit; transition: border-color .2s;
}
.migrate__input-row input:focus { outline: none; border-color: var(--accent); }
.migrate__input-row input::placeholder { color: var(--text-muted); }
.migrate__disclaimer { color: var(--text-muted); font-size: .82rem; }
.migrate__success {
  background: rgba(37,99,235,.15); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 16px 24px; color: var(--accent-lt); margin-top: 16px;
}
@media (max-width: 600px) { .sign-table-wrap { grid-template-columns: 1fr; } }

/* ===== INDIVIDUALS ===== */
.individuals { background: var(--bg-card); }
.individuals__card {
  background: linear-gradient(135deg, rgba(37,99,235,.12) 0%, transparent 60%);
  border: 1px solid var(--accent); border-radius: 20px; padding: 56px 48px;
  max-width: 700px; display: flex; flex-direction: column; gap: 20px;
}
.individuals p { color: var(--text-muted); font-size: 1.05rem; line-height: 1.7; }
.individuals__cta { display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== API ===== */
.api-section { background: var(--bg); }
.api-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; margin: 40px 0 48px; }
.api-features { display: flex; flex-direction: column; gap: 16px; }
.api-feat { display: flex; align-items: center; gap: 14px; color: var(--text-muted); font-size: .95rem; }
.api-feat i { color: var(--accent-lt); width: 20px; height: 20px; flex-shrink: 0; }
.api-feat code {
  background: rgba(37,99,235,.15); color: var(--accent-lt);
  padding: 1px 6px; border-radius: 4px; font-size: .85em;
}
.api-code { background: #060a14; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.code-header {
  display: flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: #0d1525; border-bottom: 1px solid var(--border);
}
.code-dot { width: 12px; height: 12px; border-radius: 50%; }
.code-dot.red { background: #ef4444; } .code-dot.yellow { background: #eab308; } .code-dot.green { background: #22c55e; }
pre { padding: 20px; overflow-x: auto; }
pre code { font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: .85rem; color: #7dd3fc; }

.api-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.api-form-row { display: flex; gap: 12px; flex-wrap: wrap; }
.api-form-row input {
  flex: 1; min-width: 180px; padding: 12px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--bg); color: var(--text);
  font-size: .95rem; font-family: inherit;
}
.api-form-row input:focus { outline: none; border-color: var(--accent); }
.api-form-row input::placeholder { color: var(--text-muted); }
@media (max-width: 768px) { .api-grid { grid-template-columns: 1fr; } }

/* ===== PRICING ===== */
.pricing { background: var(--bg-card); }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px 28px;
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(160deg, rgba(37,99,235,.08) 0%, var(--bg) 60%);
  transform: scale(1.03);
}
.pricing-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 4px 18px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap;
}
.pricing-name { font-size: 1rem; font-weight: 700; color: var(--text-muted); }
.pricing-price { font-size: 2.4rem; font-weight: 800; color: var(--accent-lt); }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.pricing-desc { color: var(--text-muted); font-size: .9rem; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.pricing-features li i { width: 16px; height: 16px; flex-shrink: 0; color: var(--accent-lt); }
.pricing-features li.dim { color: var(--text-muted); }
.pricing-features li.dim i { color: var(--border); }
@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: none; }
}

/* ===== REVIEWS ===== */
.reviews { background: var(--bg); }
.reviews-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.review-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.review-stars { color: #facc15; font-size: 1.1rem; }
.review-text { color: var(--text-muted); font-size: .95rem; line-height: 1.6; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; flex-shrink: 0;
}
.review-author strong { display: block; font-size: .95rem; }
.review-author small { color: var(--text-muted); font-size: .8rem; display: block; }
@media (max-width: 768px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ===== FAQ ===== */
.faq { background: var(--bg-card); }
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; transition: color .2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent-lt); }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--accent-lt); flex-shrink: 0; }
.faq-item[open] summary::after { content: '\00d7'; }
.faq-item p { padding: 0 24px 20px; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }
.faq-item p code {
  background: rgba(37,99,235,.15); color: var(--accent-lt);
  padding: 1px 6px; border-radius: 4px; font-size: .85em;
}

/* ===== CTA FINAL ===== */
.cta-final {
  position: relative; text-align: center; padding: 120px 0;
  background-image: none;
  background-attachment: fixed; background-size: cover; background-position: center;
  background-color: #060b18;
}
.cta-final__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(10,14,26,.85), rgba(10,14,26,.95));
}
.cta-final__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}
.cta-final p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== FOOTER ===== */
.footer { background: #060a14; border-top: 1px solid var(--border); }
.footer__inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding: 60px 24px 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 8px; }
.footer__brand-desc { color: var(--text-muted); font-size: .9rem; margin-top: 4px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col-title { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.footer__col a { color: var(--text-muted); font-size: .9rem; }
.footer__col a:hover { color: var(--accent-lt); }
.footer__bottom {
  border-top: 1px solid var(--border); padding: 20px 24px;
  color: var(--text-muted); font-size: .82rem;
}
@media (max-width: 768px) { .footer__inner { grid-template-columns: 1fr; } }

/* ==== Dev banner (сервис в разработке) ==== */
.dev-banner {
  margin-top: calc(64px + 20px); /* navbar height + 20px отступ */
  background: linear-gradient(90deg, rgba(37,99,235,.12), rgba(96,165,250,.08));
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.dev-banner__inner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 24px;
}
.dev-banner__icon {
  flex-shrink: 0;
  color: var(--accent-lt);
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
}
.dev-banner__text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: var(--text-muted);
}
.dev-banner__text strong { color: var(--text); }

/* ==== Legal section ==== */
.legal-section {
  padding: 100px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
}
.legal-card__ref {
  color: var(--accent-lt);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .02em;
  margin-bottom: 10px;
  text-transform: uppercase;
}
.legal-card__text {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0;
}
.legal-card__text strong { color: var(--text); }
.legal-prose {
  max-width: 820px;
  color: var(--text-muted);
  font-size: .98rem;
  line-height: 1.75;
}
.legal-prose p { margin-bottom: 14px; }
.legal-prose strong { color: var(--text); }
.legal-prose code {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; font-size: .85em;
}

/* ==== Demo section ==== */
.demo-section {
  padding: 100px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.demo-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 32px;
}
.demo-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 8px;
}
.demo-card__meta {
  color: var(--text-muted);
  font-size: .88rem;
  margin: 0;
}
.demo-card__meta code {
  background: var(--bg-card); border: 1px solid var(--border);
  padding: 1px 6px; border-radius: 4px; font-size: .85em;
  color: var(--accent-lt);
}
.demo-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}
.demo-card__actions .btn { justify-content: center; }
@media (max-width: 768px) {
  .demo-card { grid-template-columns: 1fr; }
  .demo-card__actions { min-width: 0; }
}

/* ==== Legal info (реквизиты перед футером) ==== */
.legal-info {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
}
.legal-info__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.legal-info__title {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--accent-lt);
  text-transform: uppercase;
  margin: 0 0 12px;
}
.legal-info__col p {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.6;
  margin: 0 0 6px;
}
.legal-info__col p strong { color: var(--text); }
.legal-info__col a { color: var(--text-muted); }
.legal-info__col a:hover { color: var(--accent-lt); }
.legal-info__muted { opacity: .85; font-size: .85rem !important; }
