:root {
  --bg: #090c10;
  --bg-card: #0d1117;
  --bg-subtle: #161b22;
  --bg-hover: #1f242c;
  --border: #21262d;
  --border-strong: #30363d;
  --text-main: #f0f6fc;
  --text-muted: #8b949e;
  --text-dim: #6e7681;
  --blue: #2f81f7;
  --blue-dim: rgba(47, 129, 247, 0.14);
  --blue-border: rgba(47, 129, 247, 0.35);
  --green: #3fb950;
  --green-dim: rgba(63, 185, 80, 0.12);
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --maxw: 1080px;
  --nav-h: 60px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text-main);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* ── Layout ── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════
   NAVBAR
═══════════════════════════════════════ */
header.top {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(9, 12, 16, 0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0;
  color: var(--text-main);
  text-decoration: none !important;
  flex-shrink: 0;
}
.brand:hover { opacity: 0.82; }
.brand-logo-img {
  height: 34px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.brand-initials {
  height: 32px;
  width: 32px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  display: none;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: -0.5px;
  margin-right: 8px;
}
.brand-initials.sm { width: 22px; height: 22px; font-size: 12px; border-radius: 5px; }
.brand-logo-img.sm { height: 22px; }
.brand-wordmark {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-left: 4px;
}
/* logo loaded → JS hides initials+wordmark via onload */

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  font-weight: 500;
}
.nav-links a:not(.nav-cta) {
  color: var(--text-muted);
  transition: color .15s;
}
.nav-links a:not(.nav-cta):hover { color: var(--text-main); text-decoration: none; }
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main) !important;
  background: var(--blue);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  transition: opacity .15s;
  white-space: nowrap;
}
.nav-cta:hover { opacity: 0.88; text-decoration: none !important; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  padding: 64px 0 52px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.8px;
  margin-bottom: 16px;
}
.hero-accent { color: var(--blue); }
.hero-sub {
  font-size: clamp(14px, 2.2vw, 16px);
  color: var(--text-muted);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 20px;
}
.chip svg { color: var(--blue); flex-shrink: 0; }
.btn-hero {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 24px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: opacity .15s;
}
.btn-hero:hover { opacity: 0.88; }

/* ═══════════════════════════════════════
   PAYMENT STRIP
═══════════════════════════════════════ */
.pay-strip {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.pay-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.pay-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-dim);
  white-space: nowrap;
}
.pay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.pay-badges span {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-sm);
  color: var(--text-muted);
}

/* ═══════════════════════════════════════
   CATALOG
═══════════════════════════════════════ */
.catalog { padding: 48px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 6px;
}
.section-head p { color: var(--text-muted); font-size: 14px; }
.section-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 800;
  letter-spacing: -0.4px;
  margin-bottom: 28px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s;
}
.card:hover { border-color: var(--border-strong); }
.card-head { display: flex; gap: 6px; flex-wrap: wrap; }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.badge.green { background: var(--green-dim); border-color: rgba(63,185,80,.3); color: var(--green); }
.card h3 {
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.3;
}
.card-sub { color: var(--text-muted); font-size: 13.5px; }
.card-price {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text-main);
}
.card-price span { font-size: 13px; font-weight: 400; color: var(--text-dim); }
.card-specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}
.card-specs li {
  font-size: 13px;
  color: var(--text-muted);
  padding-left: 14px;
  position: relative;
}
.card-specs li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: var(--text-dim);
}
.card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: auto;
}
.btn-primary {
  flex: 1;
  min-width: 120px;
  text-align: center;
  background: var(--blue);
  color: #fff !important;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: opacity .15s;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  flex: 1;
  min-width: 100px;
  text-align: center;
  background: transparent;
  color: var(--text-muted) !important;
  border: 1px solid var(--border-strong);
  font-size: 13px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--text-dim); color: var(--text-main) !important; }

.info-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: 14px 18px;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.info-box strong { color: var(--text-main); }

/* ═══════════════════════════════════════
   STEPS
═══════════════════════════════════════ */
.steps {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}
.step {
  flex: 1;
  min-width: 180px;
  display: flex;
  gap: 12px;
  padding: 0 16px;
}
.step:first-child { padding-left: 0; }
.step:last-child { padding-right: 0; }
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
}
.step-body strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
}
.step-body p { font-size: 13px; color: var(--text-muted); }
.step-divider {
  flex-shrink: 0;
  width: 1px;
  align-self: stretch;
  background: var(--border);
  margin: 4px 0;
}

/* ═══════════════════════════════════════
   FAQ
═══════════════════════════════════════ */
.faq { padding: 48px 0; }
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 14px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.faq-item strong { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.faq-item p { font-size: 13.5px; color: var(--text-muted); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: #010409;
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: auto;
  font-size: 13px;
  color: var(--text-muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); line-height: 1.5; }
.footer-col { display: flex; flex-direction: column; gap: 4px; }
.footer-col strong { font-size: 13px; color: var(--text-main); margin-bottom: 4px; }
.footer-col a { color: var(--text-muted); font-size: 13px; }
.footer-col a:hover { color: var(--text-main); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  font-size: 11.5px;
  color: var(--text-dim);
}

/* ═══════════════════════════════════════
   LEGAL PAGES
═══════════════════════════════════════ */
.legal { max-width: 800px; padding: 40px 20px 60px; }
.legal h1 { font-size: 26px; font-weight: 800; margin-bottom: 6px; }
.legal .muted { color: var(--text-dim); font-size: 13px; margin-bottom: 28px; }
.legal h2 {
  font-size: 15px; font-weight: 700; margin: 28px 0 8px;
  padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.legal p { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.legal ul { padding-left: 20px; color: var(--text-muted); font-size: 14px; margin-bottom: 12px; }
.legal a { color: var(--blue); }

/* ═══════════════════════════════════════
   CHECKOUT PANEL
═══════════════════════════════════════ */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  max-width: 520px;
  margin: 40px auto 60px;
}
.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.field span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.field input, .field select {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-main);
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
}
.field input:focus, .field select:focus { border-color: var(--blue); }
.spec-list { padding-left: 18px; color: var(--text-muted); font-size: 13.5px; margin: 10px 0; }
.card-badge {
  font-size: 11px; font-weight: 700; background: var(--bg-subtle);
  border: 1px solid var(--border-strong); color: var(--text-muted);
  padding: 2px 8px; border-radius: 20px; text-transform: uppercase;
}
.btn.primary, .btn.block {
  display: block; width: 100%; background: var(--blue); color: #fff !important;
  font-size: 14px; font-weight: 700; padding: 11px; border-radius: var(--r-sm);
  border: none; cursor: pointer; text-align: center; font-family: inherit;
  text-decoration: none !important; transition: opacity .15s;
}
.btn.primary:hover { opacity: 0.88; }
.btn.secondary {
  display: block; text-align: center;
  border: 1px solid var(--border-strong); color: var(--text-muted) !important;
  padding: 9px; border-radius: var(--r-sm); font-size: 13px; margin-top: 8px;
  text-decoration: none !important;
}
.alert-box {
  background: var(--bg-subtle); border: 1px solid var(--border-strong);
  border-radius: var(--r-md); padding: 12px 16px; font-size: 13.5px;
  color: var(--text-muted); margin-top: 16px;
}

/* ═══════════════════════════════════════
   KONTAK PAGE
═══════════════════════════════════════ */
.kontak-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.kontak-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 20px;
}
.kontak-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.kontak-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 12px; }
.kontak-card a.btn-kontak {
  display: inline-block;
  background: var(--blue);
  color: #fff !important;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  text-decoration: none !important;
}

/* ═══════════════════════════════════════
   SUCCESS PAGE
═══════════════════════════════════════ */
.success-box {
  text-align: center;
  padding: 60px 20px;
  max-width: 480px;
  margin: 0 auto;
}
.success-box h2 { font-size: 24px; font-weight: 800; margin-bottom: 10px; }
.success-box p { color: var(--text-muted); font-size: 14px; }

/* ═══════════════════════════════════════
   RESPONSIVE — Tablet (< 768px)
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
  .steps-row {
    flex-direction: column;
    gap: 20px;
  }
  .step {
    padding: 0;
    min-width: 0;
    width: 100%;
  }
  .step-divider { display: none; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Mobile (< 480px)
═══════════════════════════════════════ */
@media (max-width: 480px) {
  :root { --nav-h: 54px; }
  .wrap { padding: 0 14px; }
  .hero { padding: 36px 0 32px; }
  .catalog, .steps, .faq { padding: 32px 0; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-cta { padding: 5px 11px; font-size: 12.5px; }
  .brand-wordmark { font-size: 15px; }
  .footer-grid { grid-template-columns: 1fr; }
  .card-actions { flex-direction: column; }
  .btn-primary, .btn-ghost { min-width: 0; }
  .panel { padding: 20px 16px; margin: 24px auto 40px; }
}

/* ═══════════════════════════════════════
   RESPONSIVE — Large (> 1280px)
═══════════════════════════════════════ */
@media (min-width: 1280px) {
  :root { --maxw: 1200px; }
  .hero h1 { font-size: 52px; }
}
