:root {
  --blue: #3f5ea6;
  --blue-dark: #2d4680;
  --blue-soft: #eef2fa;
  --ink: #16181d;
  --muted: #5d6470;
  --line: #e3e6eb;
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --warn: #9a5b00;
  --warn-bg: #fff5e3;
  --ok: #1f7a4a;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0.2em 0 0.4em; }
h2 { font-size: 1.45rem; margin: 1.8em 0 0.8em; }
h3, .h3 { font-size: 1.05rem; }
[hidden] { display: none !important; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.section { padding-top: 24px; padding-bottom: 48px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 46em; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.78rem; font-weight: 600; color: var(--blue); margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

.btn { display: inline-block; background: var(--blue); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; font: 600 1rem var(--font); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--blue-dark); }
.btn.done { background: var(--ok); }
.btn:disabled { opacity: 0.6; cursor: default; }
button.link { background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; padding: 4px 8px; }

/* header */
.top { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 5; }
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 1.05rem; margin-right: auto; }
.brand img { border-radius: 0; }
.brand b { color: var(--blue); }
.langs { display: flex; gap: 2px; }
.langs a { color: var(--muted); text-decoration: none; font-size: 0.82rem; font-weight: 600; padding: 6px 7px; border-radius: 6px; }
.langs a[aria-current] { color: var(--blue); background: var(--blue-soft); }
.cart { display: flex; align-items: center; gap: 6px; text-decoration: none; color: var(--ink); font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 14px; }
.cart b { background: var(--line); color: var(--ink); border-radius: 999px; min-width: 24px; height: 24px; display: grid; place-items: center; font-size: 0.8rem; }
.cart.has b { background: var(--blue); color: #fff; }
.mainnav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; height: 44px; align-items: center; }
.mainnav a { color: var(--muted); text-decoration: none; white-space: nowrap; font-size: 0.95rem; }
.mainnav a[aria-current], .mainnav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .brand span { display: none; }
  .cart span { display: none; }
  .cart { padding: 6px; }
}

/* hero */
.hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.hero-in { padding-top: 56px; padding-bottom: 64px; }
.hero .eyebrow { color: #c9d5f0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16em; }
.hero .lead { color: #dfe6f6; }
.hero-search { display: flex; gap: 8px; max-width: 640px; margin-top: 24px; flex-wrap: wrap; }
.hero-search input { flex: 1 1 260px; border: 0; border-radius: 999px; padding: 13px 20px; font: 1rem var(--font); }
.hero-search .btn { background: #fff; color: var(--blue-dark); }

/* categories */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.cat { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.cat:hover { border-color: var(--blue); }
.cat-img { aspect-ratio: 4 / 3; background: var(--bg-alt); display: grid; place-items: center; padding: 16px; }
.cat-img img { max-height: 100%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.cat h3 { margin: 12px 16px 2px; }
.cat p { margin: 0 16px 14px; color: var(--muted); font-size: 0.9rem; }

.band { background: var(--bg-alt); }
.steps { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px; counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.steps h3 { margin: 12px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.why { padding-left: 1.2em; columns: 2 280px; margin-bottom: 32px; }
.why li { margin-bottom: 6px; }

/* catalogue */
.crumbs { font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.searchbar input { width: 100%; max-width: 560px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 18px; font: 1rem var(--font); }
.searchbar input:focus, .hero-search input:focus { outline: 2px solid var(--blue); outline-offset: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 0.88rem var(--font); color: var(--ink); cursor: pointer; text-decoration: none; }
.chip span { color: var(--muted); font-size: 0.8em; }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] span { color: #c7cbd2; }
.cat-chips .chip { background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); }
.sec-chips .chip { background: var(--blue-soft); border-color: transparent; color: var(--blue-dark); font-weight: 600; }
.sec-chips .chip:hover { background: var(--blue); color: #fff; }
.sec-chips .chip:hover span { color: #dfe6f5; }
.sec { scroll-margin-top: 124px; margin-top: 40px; }
.sec h2 { margin: 0 0 16px; padding-top: 20px; border-top: 2px solid var(--ink); font-size: 1.5rem; display: flex; align-items: baseline; gap: 10px; }
.sec h2 a { color: inherit; text-decoration: none; }
.sec h2 a:hover { color: var(--blue); }
.sec h2 span { font-size: 0.9rem; font-weight: 500; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 16px; }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; }
.card:hover { border-color: #b8c3da; }
.card-link { color: var(--ink); text-decoration: none; flex: 1; }
.card-img { aspect-ratio: 1; padding: 14px; display: grid; place-items: center; background: #fff; border-radius: var(--radius) var(--radius) 0 0; }
.card-img img { max-height: 100%; width: auto; object-fit: contain; }
.card h3 { font-size: 0.95rem; font-weight: 600; margin: 0 14px 6px; }
.card .price { margin: 0 52px 14px 14px; font-size: 0.9rem; color: var(--muted); }
.card.na .card-img { opacity: 0.6; }
.badge { background: var(--warn-bg); color: var(--warn); border-radius: 6px; padding: 2px 8px; font-size: 0.8rem; font-weight: 600; }
.btn-add { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--blue-soft); color: var(--blue-dark); font: 700 1.2rem var(--font); cursor: pointer; }
.btn-add:hover { background: var(--blue); color: #fff; }
.btn-add.done { background: var(--ok); color: #fff; }
.noimg { aspect-ratio: 1; width: 100%; background: var(--bg-alt); border-radius: 8px; }
.empty { padding: 24px; background: var(--bg-alt); border-radius: var(--radius); }

/* product */
.product { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; margin-top: 16px; }
@media (max-width: 800px) { .product { grid-template-columns: 1fr; gap: 16px; } }
.gallery-main { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; place-items: center; aspect-ratio: 1; }
.gallery-main img { max-height: 100%; width: auto; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 4px; cursor: pointer; }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.big-price { font-size: 1.5rem; font-weight: 700; margin: 8px 0 20px; }
.na-note { background: var(--warn-bg); color: var(--warn); padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.add-row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 24px; }
.add-row label { display: flex; flex-direction: column; font-size: 0.85rem; color: var(--muted); }
.add-row input { width: 72px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; font: 1rem var(--font); }

/* quote */
.qlist { list-style: none; padding: 0; margin: 0 0 24px; border-top: 1px solid var(--line); }
.qlist li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qlist img, .qlist .noimg { width: 56px; height: 56px; object-fit: contain; flex: none; }
.qlist div { flex: 1; min-width: 0; }
.qlist a { color: var(--ink); text-decoration: none; font-weight: 600; display: block; }
.qlist small { color: var(--muted); }
.qlist input { width: 64px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; font: 1rem var(--font); }
.quote-form label { display: flex; flex-direction: column; gap: 4px; font-size: 0.9rem; font-weight: 600; margin-bottom: 14px; }
.quote-form input:not([type="radio"]):not([type="checkbox"]), .quote-form textarea { font: 1rem var(--font); padding: 11px 12px; border: 1px solid #cfd4dc; border-radius: 8px; font-weight: 400; width: 100%; }
.quote-form fieldset { border: 0; padding: 0; margin: 0 0 8px; }
.quote-form legend { font-weight: 600; font-size: 0.9rem; margin-bottom: 6px; }
.quote-form label.inline { flex-direction: row; align-items: flex-start; gap: 8px; font-weight: 400; }
.quote-form label.inline input { margin-top: 4px; }
.dates { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
@media (max-width: 560px) { .dates { grid-template-columns: 1fr 1fr; } }
.days { margin: 0 0 22px; font-weight: 600; color: var(--blue); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); column-gap: 16px; }
.estimate { background: var(--blue-soft); border-radius: var(--radius); padding: 14px 18px; margin: 4px 0 8px; }
.estimate p { margin: 0 0 4px; display: flex; justify-content: space-between; gap: 12px; font-size: 1.1rem; }
.estimate small { color: var(--muted); }
.hp { position: absolute !important; left: -5000px; }
.form-msg.err { color: #b42318; }
.sent { background: #eaf6ef; border-radius: var(--radius); padding: 20px; font-size: 1.1rem; }

.prose p { max-width: 70ch; }
.contact { padding-left: 1.2em; }

/* footer */
.foot { background: #111827; color: #c9ced8; margin-top: 48px; font-size: 0.92rem; }
.foot a { color: #fff; text-decoration: none; }
.foot-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 24px; padding-top: 36px; padding-bottom: 36px; }
.foot p { margin: 0 0 6px; }
.foot-brand { color: #fff; font-weight: 700; }
.foot-langs { display: flex; flex-direction: column; gap: 6px; }
