:root {
  --navy: #0b1624;
  --navy-2: #122033;
  --navy-3: #1a2d45;
  --ink: #e8eef6;
  --muted: #9aa8b8;
  --flame: #f05a28;
  --flame-2: #ff7a3d;
  --gold: #e8b84a;
  --line: rgba(255,255,255,.08);
  --ok: #3dcf8a;
  --warn: #ff5d5d;
  --radius: 16px;
  --shadow: 0 20px 50px rgba(0,0,0,.35);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--navy);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(11,22,36,.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .02em; }
.brand img { height: 46px; width: auto; display: block; }
.mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: radial-gradient(circle at 40% 35%, #ff8a4a, #c43a12 62%, #2a1208);
  display: grid; place-items: center; font-size: 20px;
  box-shadow: 0 0 0 1px rgba(255,140,70,.35), 0 8px 20px rgba(240,90,40,.25);
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
nav a {
  padding: 8px 12px; border-radius: 999px; color: var(--muted); font-size: 14px; font-weight: 600;
}
nav a:hover, nav a.active { color: #fff; background: rgba(255,255,255,.06); }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, var(--flame-2), var(--flame));
  color: #fff !important; font-weight: 800; border: 0;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 10px 24px rgba(240,90,40,.28);
}
.cta.ghost { background: transparent; border: 1px solid var(--line); box-shadow: none; color: #fff !important; }
.phone { color: var(--gold); font-weight: 700; font-size: 14px; white-space: nowrap; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: #fff; padding: 8px 10px; border-radius: 10px; }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  padding: 72px 0 56px;
}
.kicker { color: var(--gold); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: 12px; margin-bottom: 14px; }
h1 { font-size: clamp(36px, 5vw, 62px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 18px; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.stat { background: var(--navy-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.stat b { display: block; font-size: 22px; }
.stat span { color: var(--muted); font-size: 13px; }
.hero-card {
  background: linear-gradient(180deg, var(--navy-2), #0d1a2a);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow);
}
.hero-photo {
  height: 280px;
  background:
    linear-gradient(180deg, transparent 40%, rgba(11,22,36,.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='800' height='400'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop stop-color='%231a2d45'/%3E%3Cstop offset='1' stop-color='%230b1624'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect fill='url(%23g)' width='800' height='400'/%3E%3C/svg%3E");
  background-size: cover; display: grid; place-items: end start; padding: 20px;
}
.chip { background: rgba(0,0,0,.45); border: 1px solid var(--line); padding: 6px 10px; border-radius: 999px; font-size: 12px; }
.hero-card .body { padding: 22px; }
.hero-card h3 { margin-bottom: 8px; }
.checklist { color: var(--muted); font-size: 14px; list-style: none; }
.checklist li { padding: 6px 0 6px 22px; position: relative; }
.checklist li:before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Sections */
section { padding: 64px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
h2 { font-size: clamp(26px, 3vw, 38px); letter-spacing: -.02em; }
.sub { color: var(--muted); max-width: 620px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card {
  background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.product {
  overflow: hidden; padding: 0;
}
.product .thumb {
  height: 170px; background: #1b2a3d; display: grid; place-items: center; font-size: 42px;
}
.product .meta { padding: 16px; }
.product .meta span { color: var(--muted); font-size: 13px; }
.product .meta b { display: block; margin: 4px 0 8px; }

.band { background: linear-gradient(90deg, #1a120c, var(--navy-2) 40%, var(--navy)); border-block: 1px solid var(--line); }
.band-inner { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 36px 0; }

form { display: grid; gap: 12px; }
label { font-size: 13px; color: var(--muted); font-weight: 600; }
input, select, textarea {
  width: 100%; background: #0c1828; color: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 14px; font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.note { color: var(--muted); font-size: 13px; }

footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 28px; }
footer h4 { color: #fff; margin-bottom: 10px; }
footer a { display: block; padding: 4px 0; color: var(--muted); }
footer a:hover { color: #fff; }
.copy { border-top: 1px solid var(--line); padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Calculator */
.calc-wrap { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.canvas-box {
  background: #08121e; border: 1px solid var(--line); border-radius: 18px; min-height: 520px;
  position: relative; overflow: hidden;
}
#grid {
  width: 100%; height: 560px; display: block; cursor: crosshair; touch-action: none;
}
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 13px; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.result { margin-top: 14px; background: #0c1828; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.result b { color: var(--gold); }
.warn-text { color: var(--warn); font-size: 13px; margin-top: 8px; }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; background: #0d1a2a; padding: 12px; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; }
  nav.open { display: flex; }
  .hero, .grid-3, .grid-4, .calc-wrap, .foot-grid, .form-row { grid-template-columns: 1fr; }
  .phone { display: none; }
  .stats { grid-template-columns: 1fr; }
}

.calc-board { background: #1a2238; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
#builderCanvas { width: 100%; height: clamp(380px, 60vh, 720px); display: block; touch-action: none; background: #1b2744; }
.block-counts { text-align: center; font-weight: 700; margin: 14px 0 8px; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }
.controls button { min-height: 44px; padding: 12px 16px; border: none; border-radius: 10px; color: #fff; font-weight: 700; cursor: pointer; }
.controls button[data-type="seat"]{background:#3498db;}
.controls button[data-type="recliner"]{background:#1abc9c;}
.controls button[data-type="armback"]{background:#c0392b;}
.controls button[data-type="deepseatback"]{background:#e67e22;}
#deleteBtn{background:#e74c3c;}
#resetBtn{background:#4b5563;}
#fixBtn{background:#8e44ad;}
.rules { color: #f1c40f; font-weight: 700; font-size: 13px; margin: 8px 0 16px; }
.form-status { min-height: 1.4em; color: var(--gold); font-size: 14px; }

.product .thumb { height: 190px; padding: 0; overflow: hidden; background: #0c1828; }
.product .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo {
  height: 280px;
  background-size: cover !important;
  background-position: center !important;
}
