:root {
  --primary: #00d294;
  --primary-dark: #00b483;
  --accent: #00c2ff;
  --dark: #0b1831;
  --dark-2: #030818;
  --tint: #f5f8ff;
  --tint-2: #eaf6ff;
  --text: #09090b;
  --muted: #52525c;
  --soft: #71717b;
  --border: #e4e4e7;
  --radius: 16px;
  --shadow: 0 12px 32px rgba(9, 9, 11, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { font-weight: 800; margin: 0 0 12px; line-height: 1.2; }
h2 { font-size: clamp(26px, 4vw, 36px); text-align: center; }
p { margin: 0 0 12px; }

a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(0, 210, 148, .35); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { background: #fff; color: var(--primary-dark); border-color: var(--primary); }
.btn-telegram { background: #0088cc; color: #fff; }
.btn-large { padding: 16px 32px; font-size: 17px; }
.btn-small { padding: 10px 18px; font-size: 14px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 24px;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.logo span { color: var(--primary); }
.nav { display: flex; gap: 20px; margin-right: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.nav a:hover { color: var(--primary-dark); }
.header-phone { font-weight: 700; color: var(--text); font-size: 14px; }

/* ===== Hero ===== */
.hero { background: linear-gradient(180deg, var(--tint-2) 0%, var(--tint) 55%, #fff 100%); padding: 56px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block;
  background: rgba(0, 210, 148, .12);
  color: #00885f;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 18px;
  border: 1px solid rgba(0, 210, 148, .25);
}
.hero h1 { font-size: clamp(36px, 6vw, 56px); }
.grad {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--soft); font-size: 17px; max-width: 520px; margin-bottom: 20px; }
.hero-features { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; font-weight: 600; margin-bottom: 24px; }
.hero-price-row { margin-bottom: 24px; }
.price-block { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.price-old { text-decoration: line-through; color: var(--soft); font-size: 18px; }
.price-new { font-size: 34px; font-weight: 800; color: var(--primary-dark); }
.price-installment { font-size: 14px; color: var(--muted); }
.price-installment b { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }

.hero-media-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-media-card img { width: 100%; max-width: 380px; height: auto; }

/* ===== Hero gallery ===== */
.hero-media-card { padding: 20px; width: 100%; max-width: 420px; }
.hero-gallery { position: relative; width: 100%; overflow: hidden; border-radius: 16px; }
.hero-gallery-track {
  display: flex;
  transition: transform .35s ease;
}
.hero-gallery-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: var(--tint);
  border-radius: 16px;
}
.hero-gallery-slide img { width: 100%; height: 100%; object-fit: contain; }
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 2px 10px rgba(9, 9, 11, .15);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-arrow:hover { background: #fff; }
.gallery-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.gallery-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  padding: 0;
}
.gallery-dots button.is-active { background: var(--primary); width: 20px; border-radius: 4px; }

/* ===== Connector select (hero) ===== */
.connector-select { margin-bottom: 20px; }
.connector-select-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.connector-options { display: flex; flex-wrap: wrap; gap: 8px; }
.connector-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s ease;
}
.connector-chip:hover { border-color: var(--primary); color: var(--text); }
.connector-chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ===== Pain points ===== */
.pain { padding: 72px 0; background: #fff; }
.section-sub { text-align: center; color: var(--soft); max-width: 560px; margin: 0 auto 40px; }
.pain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pain-card {
  background: var(--tint);
  border-radius: var(--radius);
  padding: 24px;
}
.pain-card h3 { font-size: 16px; margin-bottom: 8px; }
.pain-card p { color: var(--muted); font-size: 14px; margin: 0; }

/* ===== Specs ===== */
.specs { padding: 72px 0; background: var(--tint); }
.specs-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 24px; margin-top: 32px; align-items: start; }
.specs-table { background: #fff; border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: none; }
.spec-row span { color: var(--soft); }
.spec-row b { text-align: right; }
.specs-cta-card {
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.specs-cta-eyebrow { font-weight: 700; margin: 0; }
.specs-cta-text { color: #d4d4d8; font-size: 14px; margin: 0 0 8px; }
.specs-cta-card .btn-outline { background: transparent; border-color: #fff; color: #fff; }

/* ===== App section ===== */
.app-section { padding: 72px 0; background: #fff; }
.app-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.app-media { position: relative; display: flex; justify-content: center; }
.app-media img {
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 240px;
  max-width: 100%;
}
.app-media-secondary {
  position: absolute;
  bottom: -24px;
  right: 0;
  width: 160px !important;
  border: 4px solid #fff;
}
.app-title { font-size: clamp(24px, 3.4vw, 32px); text-align: left; }
.app-features { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.app-features li { font-size: 15px; color: var(--text); }

/* ===== Why ===== */
.why { padding: 72px 0; background: var(--dark); color: #fff; }
.why h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 36px; text-align: center; }
.why-card b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
}
.why-card span { color: #a1a1aa; font-size: 14px; }

/* ===== FAQ ===== */
.faq { padding: 72px 0; background: #fff; }
.faq-list { max-width: 720px; margin: 32px auto 0; display: flex; flex-direction: column; gap: 12px; }
details {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
summary { font-weight: 700; cursor: pointer; }
details p { margin: 12px 0 0; color: var(--muted); }

/* ===== Final CTA ===== */
.final-cta { padding: 64px 0; background: linear-gradient(90deg, var(--primary), var(--accent)); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255, 255, 255, .9); margin-bottom: 24px; }
.final-cta .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; }

/* ===== Footer ===== */
.site-footer { background: var(--dark-2); color: #a1a1aa; padding: 40px 0; font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; }
.site-footer a:hover { color: var(--primary); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 9, 11, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-overlay.is-open { display: flex; }
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: none;
  background: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--soft);
  line-height: 1;
}
.modal-price { font-size: 20px; font-weight: 800; color: var(--primary-dark); margin-bottom: 20px; }
.modal-price span { font-size: 13px; color: var(--muted); font-weight: 500; display: block; }
.order-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .form-row { grid-template-columns: 1fr; } }
.order-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.order-form input, .order-form select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
}
.order-form input:focus, .order-form select:focus { outline: 2px solid var(--primary); }
.payment-choice { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.payment-choice legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 4px; }
.radio { flex-direction: row !important; align-items: center; gap: 8px !important; font-weight: 500 !important; }
.radio input { width: auto; }
.installments-months-field { animation: fadeIn .15s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.order-note { font-size: 12px; color: var(--soft); text-align: center; margin: 0; }
.order-status { margin-top: 16px; padding: 14px; border-radius: 10px; font-size: 14px; }
.order-status.success { background: rgba(0, 210, 148, .12); color: #00885f; }
.order-status.error { background: rgba(255, 90, 114, .12); color: #b3273f; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .specs-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .app-grid { grid-template-columns: 1fr; text-align: center; }
  .app-title { text-align: center; }
  .app-media { margin-bottom: 24px; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .pain-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-cta .btn, .final-cta .btn { width: 100%; }
  .footer-inner { flex-direction: column; }
  .hero-media-card { padding: 12px; }
}
