:root {
  --ink: #0F0F10;
  --ink-2: #2A2B2D;
  --steel: #5A5B5C;
  --alu: #B9BAB8;
  --line: #E1E1DE;
  --paper: #F2F2F0;
  --white: #FFFFFF;
  --red: #D7263D;
  --red-ink: #B01E31;
  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gut: 16px;
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gut: 28px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 196px; }
@media (min-width: 720px) { html { scroll-padding-top: 130px; } }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.005em; text-wrap: balance; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
input, select, textarea, button { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.mark { width: 26px; height: 26px; stroke: none; }
.mark path { fill: currentColor; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--white); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
html { scrollbar-color: var(--alu) var(--paper); }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: var(--ink); color: var(--paper); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 10px var(--gut); display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); }
.brand .mark { color: var(--alu); }
.brand span { font: 700 21px/1 var(--display); letter-spacing: .3em; margin-right: -.3em; }
.search { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; gap: 8px; background: var(--ink-2); border: 1px solid #3A3B3E; border-radius: 2px; padding: 0 12px; height: 44px; transition: border-color .2s; }
.search:focus-within { border-color: var(--alu); }
.search svg { color: var(--alu); width: 18px; height: 18px; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--paper); font-size: 16px; }
.search input::placeholder { color: #A3A4A6; }
.search input::-webkit-search-cancel-button { filter: invert(1) opacity(.6); }
@media (min-width: 720px) {
  .top-in { grid-template-columns: auto minmax(0, 560px) auto; justify-content: space-between; }
  .search { grid-column: auto; grid-row: auto; }
}
.quote-btn { grid-column: 3; justify-self: end; position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; text-decoration: none; color: var(--ink); background: var(--paper); border-radius: 2px; font-weight: 600; font-size: 15px; transition: background .2s; }
.quote-btn:hover { background: var(--white); }
.quote-btn .lbl { display: none; }
@media (min-width: 420px) { .quote-btn .lbl { display: inline; } }
.count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--red); color: var(--white); font: 600 12px/22px var(--mono); text-align: center; }

.secnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; max-width: 1240px; margin: 0 auto; padding: 0 var(--gut) 0; border-top: 1px solid #242527; }
.secnav::-webkit-scrollbar { display: none; }
.secnav a { flex: none; padding: 11px 12px 10px; font-size: 14px; font-weight: 500; color: #A9AAA8; text-decoration: none; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.secnav a:hover { color: var(--paper); }
.secnav a.on { color: var(--paper); border-bottom-color: var(--red); }

/* ---------- catalog ---------- */
main { min-height: 70vh; outline: none; }
.intro { padding-top: 36px; padding-bottom: 8px; }
.intro h1 { font-size: clamp(30px, 6vw, 52px); max-width: 16ch; }
.intro p { color: var(--steel); max-width: 52ch; margin: 12px 0 0; font-size: 17px; }
.intro .pdf-link { margin-top: 18px; height: 46px; font-size: 15px; }
.result-line { padding-top: 24px; color: var(--steel); font-size: 15px; }
.group { padding-top: 34px; }
.group h2 { font-size: 26px; display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 16px; }
.group h2 span { font: 400 13px var(--mono); color: var(--steel); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* photo frames hold their own ratio; the image is laid over the frame so its pixel size can never stretch the card */
.ph { position: relative; background: var(--white); margin: 0; overflow: hidden; --inset: 12px; }
.ph img { position: absolute; inset: var(--inset); width: calc(100% - 2 * var(--inset)); height: calc(100% - 2 * var(--inset)); max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.tile { display: flex; flex-direction: column; background: var(--white); text-decoration: none; border: 1px solid var(--line); transition: border-color .25s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease); }
.tile .ph { aspect-ratio: 1 / 1; --inset: 16px; border-bottom: 1px solid var(--line); }
.tile .ph img { transition: transform .5s var(--ease); }
.tile:hover { border-color: var(--ink); box-shadow: 0 10px 24px -14px rgba(15, 15, 16, .35); transform: translateY(-2px); }
.tile:hover .ph img { transform: scale(1.04); }
.t-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.t-body h3 { font-size: 17px; line-height: 1.15; }
.t-meta { margin-top: auto; padding-top: 4px; font-size: 13px; color: var(--steel); }
.code { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font: 600 11.5px/1 var(--mono); background: var(--ink); color: var(--white); padding: 5px 7px 4px; letter-spacing: .01em; overflow-wrap: anywhere; }
.code::before { content: ""; width: 5px; height: 5px; background: var(--red); flex: none; }
@media (max-width: 420px) { .t-body h3 { font-size: 15.5px; } .code { font-size: 10.5px; } .tile .ph { --inset: 10px; } }

/* ---------- product ---------- */
.product { padding-top: 18px; padding-bottom: 20px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--steel); text-decoration: none; font-size: 15px; padding: 6px 0; }
.back:hover { color: var(--ink); }
.back svg { width: 18px; height: 18px; }
.p-grid { display: grid; gap: 22px; margin-top: 8px; }
@media (min-width: 900px) { .p-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: start; } .p-info { position: sticky; top: 140px; } }
.main-ph { aspect-ratio: 4 / 3; --inset: 24px; border: 1px solid var(--line); overflow: visible; }
.main-ph::before, .main-ph::after { content: ""; position: absolute; width: 14px; height: 14px; border: 0 solid var(--ink); }
.main-ph::before { top: -1px; left: -1px; border-top-width: 2px; border-left-width: 2px; }
.main-ph::after { bottom: -1px; right: -1px; border-bottom-width: 2px; border-right-width: 2px; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumb { flex: none; width: 72px; height: 72px; padding: 6px; background: var(--white); border: 1px solid var(--line); cursor: pointer; transition: border-color .2s; }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumb.on { border-color: var(--ink); outline: 1px solid var(--ink); outline-offset: -2px; }
.p-head { display: flex; align-items: center; gap: 10px; }
.badge { height: 30px; width: auto; }
.p-info h1 { font-size: clamp(28px, 4.4vw, 40px); margin-top: 10px; }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font-size: 14px; font-weight: 600; border: 1px solid var(--alu); background: var(--white); padding: 5px 9px 4px; display: inline-flex; gap: 7px; align-items: baseline; }
.chips i { font-style: normal; font-size: 12px; font-weight: 500; color: var(--steel); text-transform: uppercase; letter-spacing: .06em; }
.desc { color: var(--ink-2); margin: 14px 0 0; max-width: 60ch; }
.note { margin: 12px 0 0; padding: 10px 12px; background: var(--white); border: 1px solid var(--line); font-size: 14px; color: var(--ink-2); max-width: 60ch; }

.add { margin-top: 20px; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 16px; display: grid; gap: 14px; }
.add .pack { margin: -4px 0 0; padding-left: 10px; border-left: 3px solid var(--ink); font-size: 14px; color: var(--ink-2); }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span { font-size: 13px; font-weight: 600; color: var(--steel); }
.fld em { font-style: normal; font-weight: 400; color: #8A8B8C; }
.fld.one b { font: 600 15px var(--mono); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea {
  width: 100%; height: 46px; padding: 0 12px; background: var(--white); border: 1px solid var(--alu); border-radius: 2px; font-size: 16px; transition: border-color .2s, box-shadow .2s; }
textarea { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
select { font-family: var(--mono); font-size: 15px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230F0F10' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(15, 15, 16, .12); }
input::placeholder, textarea::placeholder { color: #8A8B8C; }
input[aria-invalid=true] { border-color: var(--red); box-shadow: 0 0 0 3px rgba(215, 38, 61, .14); }
.stepper { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; height: 46px; border: 1px solid var(--alu); border-radius: 2px; background: var(--white); }
.stepper button { border: 0; background: none; display: grid; place-items: center; cursor: pointer; color: var(--ink); transition: background .15s; }
.stepper button:hover { background: var(--paper); }
.stepper input { height: 100%; border: 0; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 0; text-align: center; font: 600 16px var(--mono); padding: 0; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper input:focus { box-shadow: none; }
.stepper.sm { grid-template-columns: 38px 56px 38px; height: 38px; }
.stepper.sm input { font-size: 15px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 50px; padding: 0 20px; border-radius: 2px; border: 1px solid var(--ink); font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: var(--white); }
.btn.primary:hover { background: #26272A; }
.btn.primary svg { color: var(--red); stroke-width: 2.4; }
.btn.ghost { background: var(--white); color: var(--ink); }
.btn.ghost:hover { background: var(--paper); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn.busy svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.specs { margin-top: 36px; }
.specs h2 { font-size: 22px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.hint { font-size: 14px; color: var(--steel); margin: 10px 0 0; }
.tscroll { overflow-x: auto; margin-top: 10px; background: var(--white); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; }
th { text-align: left; font: 600 12px/1.2 var(--mono); padding: 10px 12px; background: var(--paper); border-bottom: 2px solid var(--ink); white-space: nowrap; vertical-align: bottom; }
th .hicon { height: 30px; width: auto; margin-bottom: 4px; mix-blend-mode: multiply; }
td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.k { font: 600 13px var(--mono); position: sticky; left: 0; background: inherit; }
tbody tr { background: var(--white); }
tr.pick { cursor: pointer; transition: background .15s; }
tr.pick:hover { background: #F7F7F5; }
tr.pick td.k::before { content: ""; display: inline-block; width: 10px; height: 10px; border: 1.5px solid var(--alu); border-radius: 50%; margin-right: 8px; vertical-align: -1px; transition: all .2s; }
tr.pick.sel { background: #FBF3F4; }
tr.pick.sel td.k::before { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 2px var(--white); }

/* ---------- quote ---------- */
.quote { padding-top: 28px; padding-bottom: 20px; }
.quote h1 { font-size: clamp(30px, 5vw, 44px); }
.q-grid { display: grid; gap: 26px; margin-top: 20px; }
@media (min-width: 900px) { .q-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: start; } .qform { position: sticky; top: 140px; } }
.qlist { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.qi { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.qi-ph { width: 76px; height: 76px; --inset: 6px; border: 1px solid var(--line); }
.qi-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qi-title { font: 700 17px/1.15 var(--display); text-decoration: none; }
.qi-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.qi-ctl { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.qi-len { font-size: 14px; color: var(--steel); }
.rm { margin-left: auto; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid transparent; background: none; color: var(--steel); cursor: pointer; border-radius: 2px; transition: color .2s, border-color .2s; }
.rm:hover { color: var(--red-ink); border-color: var(--line); }
.more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-weight: 600; text-decoration: none; padding: 8px 0; }
.more:hover { text-decoration: underline; text-underline-offset: 3px; }
.qform { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--ink); padding: 18px; display: grid; gap: 14px; }
.qform h2 { font-size: 22px; }
.err { color: var(--red-ink); font-size: 13px; min-height: 0; }
.err:empty { display: none; }
.fine { font-size: 13.5px; color: var(--steel); margin: 0; }
.form-err { color: var(--red-ink); font-size: 14px; margin: 0; }
.form-err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; font-weight: 600; }

/* ---------- empty / done ---------- */
.empty { padding-top: 64px; padding-bottom: 40px; max-width: 640px; }
.empty h1 { font-size: clamp(28px, 5vw, 40px); }
.empty p { color: var(--steel); margin: 12px 0 22px; }
.done .ok { width: 52px; height: 52px; display: grid; place-items: center; background: var(--ink); color: var(--white); margin-bottom: 18px; }
.done .ok svg { width: 28px; height: 28px; stroke-width: 2.4; color: var(--white); }
.code-inline { font: 600 15px var(--mono); }

/* ---------- toast ---------- */
.toast { position: fixed; left: 16px; right: 16px; margin: 0 auto; width: fit-content; max-width: 460px; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateY(180%); display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 12px 14px 12px 16px; border-radius: 2px; box-shadow: 0 16px 36px -12px rgba(0, 0, 0, .5); transition: transform .45s var(--ease); z-index: 40; font-size: 15px; }
.toast.on { transform: translateY(0); }
.toast span { flex: 1; }
.toast svg { color: var(--red); stroke-width: 2.4; }
.toast b { font-family: var(--mono); font-weight: 600; }
.toast a { flex: none; color: var(--white); font-weight: 600; text-underline-offset: 3px; padding: 4px 0 4px 8px; border-left: 1px solid #3A3B3E; }

/* ---------- footer ---------- */
.site-foot { margin-top: 64px; background: var(--ink); color: var(--paper); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 28px var(--gut) calc(28px + env(safe-area-inset-bottom)); display: grid; gap: 22px; }
@media (min-width: 720px) { .foot-in { grid-template-columns: 1fr auto; align-items: center; } }
.foot-brand { display: flex; gap: 12px; align-items: center; }
.foot-brand .mark { color: var(--alu); width: 34px; height: 34px; }
.foot-brand b { display: block; font: 700 20px var(--display); letter-spacing: .3em; }
.foot-brand span { font-size: 14px; color: var(--alu); }
.foot-contact { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.foot-contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--paper); font-weight: 600; overflow-wrap: anywhere; }
.foot-contact a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.foot-contact svg { color: var(--red); }
.foot-contact i { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: var(--alu); text-transform: uppercase; letter-spacing: .08em; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
