:root {
  --blue: #0f2d6b;
  --blue-dark: #0a1f4a;
  --blue-soft: #e4ebf8;
  --cream: #f7f1ec;
  --ink: #101828;
  --muted: #5b6475;
  --line: #e3dcd5;
  --radius: 4px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: "DM Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--ink); background: #fff; line-height: 1.5; -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--blue); line-height: 1.1; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 40px); }
h3 { font-size: 20px; letter-spacing: -0.01em; }
p { margin: 0; }

/* Buttons */
.btn {
  display: inline-block; background: var(--blue); color: #fff; border: 1.5px solid var(--blue);
  padding: 15px 28px; border-radius: var(--radius); font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--blue); }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-light { background: #fff; color: var(--blue); border-color: #fff; }
.btn-light:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn-block { width: 100%; }
:focus-visible { outline: 3px solid #3b82f6; outline-offset: 2px; }

/* Top bar + header */
.topbar {
  background: var(--cream); font-size: 13px; padding: 9px var(--gutter);
  display: flex; justify-content: space-between; gap: 16px;
}
.topbar a { font-weight: 600; text-decoration: none; color: var(--blue); white-space: nowrap; }
.header {
  position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 32px; padding: 14px var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--blue); text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.nav { display: flex; gap: 28px; margin-left: auto; font-weight: 500; font-size: 15px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 6px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.hero-copy { background: var(--cream); display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: 64px var(--gutter); }
.hero-copy h1 { font-size: clamp(44px, 6vw, 72px); }
.hero-copy p { max-width: 460px; font-size: 18px; color: #3a4252; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; background: var(--blue-soft); }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 72px var(--gutter); }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; max-width: 720px; }
.section-head p { color: var(--muted); font-size: 17px; }
.band { max-width: none; background: var(--cream); }
.band > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }

/* Showcase */
.showcase { padding-bottom: 0; }
.showcase-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.show-tile {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius);
  background: var(--blue-soft); text-decoration: none; color: #fff; border: 0; padding: 0; cursor: pointer; font: inherit;
}
.show-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.show-tile:hover img { transform: scale(1.04); }
.show-tile span {
  position: absolute; inset: auto 0 0 0; padding: 48px 20px 18px; text-align: left; font-weight: 600; font-size: 18px;
  background: linear-gradient(transparent, rgba(10, 31, 74, .75));
}

/* Toolbar */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px;
  padding: 9px 16px; font-family: inherit; font-weight: 500; font-size: 14px; cursor: pointer;
}
.chip:hover { border-color: var(--blue); }
.chip[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.sort { white-space: nowrap; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.sort select { font-family: inherit; font-weight: 500; font-size: 14px; padding: 8px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); }
.count { margin: 16px 0 20px; font-size: 14px; color: var(--muted); }

/* Product grid */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card { display: flex; flex-direction: column; }
.card-img {
  position: relative; aspect-ratio: 1; background: var(--cream); border-radius: var(--radius); overflow: hidden; border: 0; padding: 0; cursor: pointer; width: 100%;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-img:hover img { transform: scale(1.04); }
.card-img .soon { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; }
.badge {
  position: absolute; top: 10px; right: 10px; background: #fff; color: var(--blue); font-size: 11px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--radius);
}
.card-body { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; flex: 1; }
.meta { font-size: 13px; color: var(--muted); }
.meta strong { color: var(--ink); font-weight: 600; }
.card h3 { font-size: 18px; }
.price { font-size: 15px; color: var(--ink); }
.price.ask { color: var(--muted); }
.card .btn { margin-top: auto; align-self: flex-start; }
.card-actions { margin-top: auto; padding-top: 10px; }
.card .btn-ghost { padding: 10px 16px; font-size: 14px; }
.empty { grid-column: 1 / -1; color: var(--muted); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { display: grid; gap: 10px; align-content: start; }
.steps p { color: var(--muted); }
.step-n { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }

/* Options */
.options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.options article { border: 1.5px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 8px; align-content: start; }
.options p { color: var(--muted); font-size: 15px; }
.options-custom { background: var(--blue-soft); border-color: var(--blue-soft) !important; }
.options-custom a { color: var(--blue); font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 0; max-width: 800px !important; margin-left: 0 !important; }
.band .section-head { margin-left: auto; }
details { border-top: 1px solid #d9d0c8; padding: 20px 0; }
details:last-child { border-bottom: 1px solid #d9d0c8; }
summary { cursor: pointer; font-weight: 600; font-size: 18px; color: var(--blue); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { margin-top: 12px; color: #3a4252; max-width: 640px; }

/* CTA */
.cta {
  max-width: none; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-left: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  padding-right: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.cta h2 { color: #fff; margin-bottom: 12px; }
.cta p { max-width: 520px; color: #cfd9ef; font-size: 17px; }
.cta .cta-contact { margin-top: 12px; font-weight: 600; color: #fff; }

.footer { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 28px var(--gutter); font-size: 14px; color: var(--muted); }
.footer .brand { font-size: 18px; flex-wrap: wrap; gap: 6px; }
.footer .brand a { text-decoration: none; }
.footer .brand a + a { font-size: 14px; font-weight: 500; color: var(--muted); }
.footer .brand a + a:hover { color: var(--blue); text-decoration: underline; }

/* Dialog */
dialog { border: 0; border-radius: 8px; padding: 0; width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 24px 80px rgba(10, 31, 74, .35); }
dialog::backdrop { background: rgba(10, 31, 74, .55); }
#quoteForm { position: relative; padding: 36px clamp(20px, 4vw, 40px) 32px; display: grid; gap: 0; }
#quoteForm h2 { font-size: 30px; }
.dialog-sub { color: var(--muted); margin: 8px 0 22px; }
.close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 32px; line-height: 1; cursor: pointer; color: var(--muted); padding: 6px 10px; }
.close:hover { color: var(--blue); }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  font-family: inherit; font-weight: 400; font-size: 16px; color: var(--ink); width: 100%;
  padding: 12px 12px; border: 1.5px solid #cfc7bf; border-radius: var(--radius); background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.invalid { border-color: #c0392b !important; }
.hint { font-size: 13px; color: var(--muted); min-height: 18px; }
.hint.warn { color: #9a5b00; }
.form-error { color: #c0392b; font-size: 14px; margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#formDone { display: grid; gap: 14px; justify-items: start; padding: 16px 0 8px; }
#formDone[hidden], #formBody[hidden] { display: none; }

@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .options { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .brand { font-size: 19px; white-space: nowrap; }
  .brand svg { width: 24px; height: 24px; }
  .header { gap: 12px; }
  .btn-sm { white-space: nowrap; padding: 10px 14px; }
  .nav { display: none; }
  .header { justify-content: space-between; }
  .header .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { padding: 48px var(--gutter); }
  .hero-img { height: 340px; }
  .section { padding: 52px var(--gutter); }
  .showcase-grid { grid-template-columns: repeat(3, 70%); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); }
  .show-tile { scroll-snap-align: start; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .steps { grid-template-columns: 1fr; }
  .options { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 0; }
  .card h3 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
