:root {
  --bg: #14161A;
  --bg-soft: #1B1E24;
  --bg-panel: #171A1F;
  --bg-elevated: #20242B;
  --border: #2A2F38;
  --accent: #E8A33D;
  --accent-strong: #F0B255;
  --accent-ink: #14161A;
  --blue: #3F7FBF;
  --blue-soft: #7FB3E0;
  --ink: #EDEEF0;
  --ink-muted: #B8BCC4;
  --ink-faint: #8B909A;
  --danger: #E88A8A;
  --success: #7CC88A;
  --redline: #C9604A;
  --dragonlore: #5E92C8;
  --fade-a: #E8A33D;
  --fade-b: #C9604A;
  --radius: 0.5rem;
  --font-display: 'Russo One', 'Arial Black', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-soft); text-decoration: none; }
a:hover { color: var(--accent-strong); text-decoration: underline; }

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  display: inline-block;
}
.brand-cs { color: var(--accent); }
.site-nav { display: flex; gap: 20px; margin-left: auto; }
.site-nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: 14px 24px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn-sm { padding: 10px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }

.btn-accent {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
  color: var(--accent-ink);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(232, 163, 61, 0.35);
}
.btn-accent:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink-muted);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 64px;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(63, 127, 191, 0.14), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(232, 163, 61, 0.08), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin: 0 0 16px;
}
.badge-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5.5vw, 3.9rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
  font-weight: 400;
  color: var(--ink);
}
.hero-accent {
  display: block;
  color: var(--accent);
  font-size: 0.82em;
  margin-top: 6px;
  text-shadow: none;
}
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--ink);
  max-width: 34em;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 28px; }
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.hero-facts li {
  color: var(--ink-muted);
  font-size: 0.92rem;
  padding-left: 20px;
  position: relative;
}
.hero-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--blue);
  transform: rotate(45deg);
}

/* Hero visual — inventory frame */
.hero-visual { display: flex; justify-content: center; }
.hero-frame {
  width: 100%;
  max-width: 380px;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.hero-frame-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.hero-slot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-height: 76px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border-radius: 8px;
  font-family: var(--font-display);
  color: var(--ink);
  border: 1px solid var(--border);
  border-left-width: 4px;
  background: var(--bg-elevated);
}
.hero-slot:last-child { margin-bottom: 0; }
.hero-slot-1 { border-left-color: var(--redline); }
.hero-slot-2 { border-left-color: var(--dragonlore); }
.hero-slot-3 { border-left-color: var(--accent); }
.slot-name { font-size: 1.05rem; line-height: 1.2; }
.slot-skin {
  font-family: var(--font-text);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section:nth-of-type(even) { background: var(--bg-soft); }
.section-kicker {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  line-height: 1.15;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 16px;
}
.section-lead {
  color: var(--ink-muted);
  max-width: 44em;
  margin: 0 0 36px;
}

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.feature-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  color: var(--blue-soft);
  background: rgba(63, 127, 191, 0.14);
  border-radius: 8px;
  margin-bottom: 14px;
}
.feature-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.feature-text { font-size: 0.94rem; color: var(--ink-muted); margin: 0; }

.safety-plate {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 14px 18px;
  margin: 0;
  font-weight: 600;
  color: var(--ink);
}
.safety-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Catalog ---------- */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.catalog-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.catalog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5), 0 0 30px rgba(232,163,61,0.12);
}
.rarity-redline { border-top: 3px solid var(--redline); }
.rarity-dragonlore { border-top: 3px solid var(--dragonlore); }
.rarity-fade { border-top: 3px solid var(--accent); }

.card-media { position: relative; background: #0d0e11; }
.card-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-scale {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(20, 22, 26, 0.82);
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
}
.card-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin: 0; color: var(--ink); }
.card-specs { display: grid; gap: 8px; margin: 0; }
.spec { display: flex; gap: 10px; font-size: 0.9rem; }
.spec dt { color: var(--ink-faint); flex-shrink: 0; width: 88px; }
.spec dd { color: var(--ink-muted); margin: 0; }
.card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  white-space: nowrap;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}
.steps-grid::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  opacity: 0.4;
  z-index: 0;
}
.step { position: relative; z-index: 1; padding: 0 8px; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  background: var(--bg-panel);
  border: 1px solid var(--border);
  margin-bottom: 16px;
  position: relative;
}
.step-title { font-size: 1.05rem; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.step-text { font-size: 0.94rem; color: var(--ink-muted); margin: 0; }
.step-text a {
  color: var(--blue-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.step-text a:hover { color: var(--accent-strong); }

/* ---------- Delivery ---------- */
.delivery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}
.delivery-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
}
.delivery-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 400; margin: 0 0 10px; color: var(--ink); }
.delivery-text { color: var(--ink-muted); margin: 0 0 16px; }
.delivery-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
}
.badge-blue { background: var(--bg-elevated); color: var(--blue-soft); border: 1px solid rgba(63, 127, 191, 0.5); }

.payment-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border: 1px solid rgba(232, 163, 61, 0.4);
  border-radius: 10px;
  padding: 18px 22px;
  background: var(--bg-panel);
}
.payment-flag {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 6px 12px;
  flex-shrink: 0;
}
.payment-text { margin: 0; color: var(--ink-muted); }
.payment-text strong { color: var(--ink); }

/* ---------- Lead form ---------- */
.lead-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: 48px;
  align-items: start;
}
.lead-notes { list-style: none; padding: 0; margin: 0; }
.lead-notes li {
  color: var(--ink-muted);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.lead-notes li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.lead-form-wrap {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}
.lead-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 6px; }
.form-label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.req { color: var(--accent); }
.opt { color: var(--ink-faint); font-weight: 400; }

.text-input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1rem;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.text-input::placeholder { color: var(--ink-faint); }
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(232, 163, 61, 0.25);
}
.text-input[aria-invalid="true"] { border-color: var(--danger); }
textarea.text-input { resize: vertical; min-height: 80px; }

.model-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.model-option { position: relative; }
.model-option input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.model-option-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: var(--bg-soft);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.model-option-body img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  background: #0d0e11;
}
.model-option-name { font-size: 0.86rem; font-weight: 600; color: var(--ink); line-height: 1.3; }
.model-option-badge { font-size: 0.76rem; color: var(--ink-faint); }
.model-option input:checked + .model-option-body {
  border-color: var(--accent);
  background: rgba(232, 163, 61, 0.08);
  box-shadow: 0 0 0 1px var(--accent);
}
.model-option input:focus-visible + .model-option-body {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}
.model-option input:checked + .model-option-body .model-option-name { color: var(--accent-strong); }

.field-error { font-size: 0.85rem; color: var(--danger); margin: 0; }
.form-error-banner {
  background: rgba(232, 138, 138, 0.12);
  border: 1px solid rgba(232, 138, 138, 0.4);
  color: var(--danger);
  border-radius: 8px;
  padding: 10px 14px;
  margin: 0;
}
.form-consent { font-size: 0.8rem; color: var(--ink-faint); margin: 0; text-align: center; }
.honeypot { position: absolute; left: -9999px; top: -9999px; height: 1px; width: 1px; overflow: hidden; }

/* Success */
.lead-success { text-align: center; padding: 30px 10px; }
.success-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(124, 200, 138, 0.16);
  border: 2px solid var(--success);
  color: var(--success);
  font-size: 1.6rem;
  margin-bottom: 16px;
}
.success-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; margin: 0 0 8px; }
.success-text { color: var(--ink-muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 48px 0 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.3fr;
  gap: 32px;
}
.footer-brand .brand-name { font-family: var(--font-display); font-size: 1.3rem; }
.footer-tagline { color: var(--ink-muted); margin: 10px 0 0; font-size: 0.92rem; }
.footer-label { font-weight: 700; color: var(--ink); margin: 0 0 10px; font-size: 0.9rem; }
.footer-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-link { color: var(--ink-muted); }
.footer-city { color: var(--ink-faint); font-size: 0.88rem; margin: 8px 0 0; }
.footer-legal p { margin: 0 0 10px; font-size: 0.9rem; color: var(--ink-muted); }
.disclaimer strong { color: var(--ink); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 28px; padding-top: 18px; }
.attribution { color: var(--ink-faint); font-size: 0.82rem; margin: 0 0 10px; }
.credits-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.credits-list li { color: var(--ink-faint); font-size: 0.82rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 16px; }
  .steps-grid::before { display: none; }
  .lead-layout { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 48px 0; }
  .hero-visual { order: -1; }
  .hero-frame { max-width: 100%; }
  .catalog-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .form-row { grid-template-columns: 1fr; }
  .model-options { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .section { padding: 56px 0; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .header-inner { min-height: 56px; gap: 12px; }
  .nav-cta { padding: 9px 14px; font-size: 0.85rem; }
  .brand-name { font-size: 1.1rem; }
  .lead-form-wrap { padding: 20px; }
  .card-foot { flex-direction: column; align-items: stretch; gap: 12px; }
  .card-price { font-size: 1.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
