/* ═══════════════════════════════════════════════════════════════════════
   Brendiranje 011 — public site

   Approved design (2026-11-18): direction A, "Radionica". Warm paper page,
   near-black ink, black buttons; orange and the logo red only as accents.
   Reference: mockups/a-radionica.html (removed before launch; the tokens
   are recorded in CLAUDE.md → Design). --page is the paper; --bg is the
   lighter sheet that cards, fields and the calculator sit on.

   Section map:
     1. Tokens          7. Home
     2. Reset           8. Products & product page
     3. Typography      9. Calculator
     4. Layout         10. Cart & checkout, quote form
     5. Strip & header 11. Legal, FAQ
     6. Components     12. Footer, toast, responsive, print
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Tokens ────────────────────────────────────────────────────────── */

:root {
  --page:       #F2EFE7;
  --bg:         #FBFAF6;
  --surface:    #EAE6DC;
  --surface-2:  #DFD9CC;
  --sheet:      #FBFAF6;
  --ink:        #16181B;
  --ink-2:      #474B51;
  --ink-3:      #5F636A;
  --line:       #D6CFBF;
  --field-line: #8C8679;
  --soft:       #E6E0D2;
  --accent-text:#16181B;

  /* Buttons are ink with white text; orange is kept for small accents
     (the cart count, underlines) and always carries ink text. */
  --cta:        #16181B;
  --cta-ink:    #FFFFFF;
  --cta-hover:  #000000;
  --orange:     #FFA800;
  --red:        #D42A2F;

  --hero:       var(--page);
  --grid:       transparent;
  --pv-grid:    rgba(22,24,27,.05);
  --crop:       #6B6F75;
  --cut:        #E6007E;   /* contour cut lines: the prepress convention */
  --metal:      #A7AFBA;
  --focus:      #16181B;

  --foot-bg:    #16181B;
  --foot-ink:   #EEEBE4;
  --foot-ink-2: #A9A79F;
  --foot-line:  #2E3034;

  --ok:     #2F7D54;  --ok-bg:   #EEF7F1;
  --warn:   #8A5A00;  --warn-bg: #FFF6E0;
  --bad:    #A83232;  --bad-bg:  #FCEFEF;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;

  --r:    3px;
  --r-lg: 4px;

  --w-page: 1200px;
  --gutter: 16px;
  --header-h: 68px;

  --t-fast: 140ms cubic-bezier(.2,0,.2,1);
  --t:      240ms cubic-bezier(.2,0,.2,1);
}
@media (min-width: 640px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ── 2. Reset ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, picture, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* [hidden] only sets display:none at the user-agent level, so any class
   with its own display rule silently defeats it. This makes it mean what
   everyone assumes it means. */
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r);
  text-decoration: none; transition: top var(--t-fast);
}
.skip-link:focus { top: 12px; }

/* ── 3. Typography ────────────────────────────────────────────────────── */

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 1.4rem + 3.3vw, 3.7rem); line-height: 1.02; font-weight: 700; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3.1rem); line-height: 1.04; font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; line-height: 1.3; font-weight: 700; letter-spacing: 0; }
h4 { font-size: 1rem; }
p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.lead { font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 36em; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 .9em;
  font-family: var(--mono); font-size: .75rem; font-weight: 500; line-height: 1.3;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow::before { content: ""; flex: none; width: 26px; height: 2px; background: var(--red); }
.muted { color: var(--ink-2); }
.small { font-size: .875rem; }
.tnum  { font-variant-numeric: tabular-nums; }
.mono  { font-family: var(--mono); font-size: .9em; }
.nw    { white-space: nowrap; }

/* ── 4. Layout ────────────────────────────────────────────────────────── */

.wrap { width: 100%; max-width: var(--w-page); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 64px; scroll-margin-top: calc(var(--header-h) + 8px); }
.section--tight { padding-block: 40px 64px; }
.section.alt { background: var(--surface); }
@media (min-width: 1024px) { .section { padding-block: 96px; } .section--tight { padding-block: 48px 96px; } }

.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.page-head { padding-block: 40px 8px; }
.page-head h1 { margin-bottom: .3em; }
@media (min-width: 1024px) { .page-head { padding-block: 56px 8px; } }

.sec-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; max-width: 46rem; margin-bottom: 40px; }
.sec-head .eyebrow, .sec-head h2 { margin: 0; }
.sec-lead { max-width: 30em; font-size: 1.0625rem; color: var(--ink-2); margin: 0; }
/* A full-width section heading: title left, its lead to the right. */
@media (min-width: 1024px) {
  .wrap > .sec-head { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); column-gap: 64px; row-gap: 14px; max-width: none; margin-bottom: 44px; align-items: end; }
  .wrap > .sec-head > .eyebrow, .wrap > .sec-head > h2 { grid-column: 1; }
  .wrap > .sec-head > .sec-lead { grid-column: 2; grid-row: 1 / span 2; }
  .faq-teaser > .sec-head { display: flex; flex-direction: column; margin-bottom: 0; }
}

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: .875rem; color: var(--ink-3); }
.crumbs a { color: var(--ink); text-underline-offset: 3px; }

/* ── 5. Strip & header ────────────────────────────────────────────────── */

.strip { background: var(--page); color: var(--ink-2); border-bottom: 1px solid var(--line); font-size: .8125rem; line-height: 1.4; }
.strip a { color: inherit; }
.strip-row { display: flex; align-items: center; justify-content: space-between; gap: 6px 24px; min-height: 36px; padding-block: 3px; }
.strip-list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.strip-list li:not(:first-child) { display: none; }
.strip-right { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.strip-contact { display: none; gap: 18px; }
.lang { display: flex; gap: 2px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; min-height: 30px; padding: 0 6px; border-radius: 4px;
  color: var(--ink-2); font: 600 .75rem/1 var(--mono); letter-spacing: .06em; text-decoration: none;
}
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: var(--ink); color: #fff; }
@media (min-width: 720px)  { .strip-list li:not(:first-child) { display: block; } }
@media (min-width: 1024px) { .strip-contact { display: flex; } }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 100;
  background: var(--page); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-right: auto; text-decoration: none; }
.brand-car  { width: auto; height: 28px; }
.brand-word { width: auto; height: 13px; }
@media (min-width: 640px) { .brand-car { height: 36px; } .brand-word { height: 17px; } }

.main-nav { display: none; }
.nav-link {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r);
  font-size: .9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.nav-link:hover { color: var(--ink); background: var(--surface); }
.nav-link[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-link--quote { display: none; }

.header-tools { display: flex; align-items: center; gap: 8px; }
.header-tools .header-quote { display: none; }
.icon-btn {
  position: relative; display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); color: var(--ink);
  text-decoration: none;
}
.icon-btn:hover { border-color: var(--ink); }
.ico-ui { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: -7px; right: -7px;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--orange); color: var(--ink);
  font: 600 .6875rem/20px var(--mono); text-align: center;
}

@media (min-width: 640px) { .header-tools .header-quote { display: inline-flex; } }
@media (max-width: 1099px) {
  /* Slide-down panel on phones and tablets. */
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 36px) 0 auto 0; z-index: 99;
    display: flex; flex-direction: column; align-items: stretch;
    background: var(--page); border-bottom: 1px solid var(--line);
    padding: 6px var(--gutter) 14px;
    box-shadow: 0 18px 32px -24px rgba(15,30,51,.45);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: transform var(--t), opacity var(--t), visibility var(--t);
    max-height: calc(100dvh - var(--header-h) - 36px); overflow-y: auto;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav-link { min-height: 48px; padding: 0 2px; font-weight: 600; color: var(--ink); border-radius: 0; }
  .nav-link + .nav-link { border-top: 1px solid var(--line); }
  .nav-link--quote { display: flex; }
}
@media (min-width: 1100px) {
  .main-nav { display: flex; gap: 2px; }
  .nav-toggle { display: none; }
}

/* ── 6. Components ────────────────────────────────────────────────────── */

/* Buttons. .btn is the orange call to action; .btn--ghost the navy outline
   for the secondary action next to it. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid transparent; border-radius: var(--r);
  background: var(--cta); color: var(--cta-ink);
  font: 600 1rem/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--cta-hover); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink); padding-inline: 12px; }
.btn--quiet:hover { background: var(--surface); }
.btn--block { width: 100%; }
.btn--lg { min-height: 52px; padding: 0 26px; }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: .9375rem; }

.textlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-weight: 600; color: var(--ink);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.link-arrow { font-weight: 600; text-underline-offset: 4px; }

/* Forms */
.field { margin-bottom: 18px; }
.field > label, .label { display: block; margin-bottom: 6px; font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.opt { font-weight: 400; color: var(--ink-3); }
.input, .select, .textarea {
  width: 100%; min-height: 46px; padding: 10px 13px;
  background: var(--bg); border: 1px solid var(--field-line); border-radius: var(--r);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46,90,138,.18);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.55; }
.select, select.inp {
  appearance: none; -webkit-appearance: none; padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235E6A7E' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 12px 8px;
}
.input--file { padding: 9px 10px; font-size: .9rem; }
.hint { margin-top: 5px; font-size: .8rem; color: var(--ink-3); }
.field-row { display: grid; gap: 0 16px; grid-template-columns: 1fr 1fr; }

/* Alerts */
.alert { margin-bottom: 18px; padding: 13px 16px; border: 1px solid; border-radius: var(--r-lg); font-size: .92rem; }
.alert--ok   { background: var(--ok-bg);   border-color: #CDE5D6; color: #1F5C3D; }
.alert--warn { background: var(--warn-bg); border-color: #F3DCA6; color: var(--warn); }
.alert--bad  { background: var(--bad-bg);  border-color: #EDCBCB; color: #7D2626; }
.alert--info { background: var(--soft);    border-color: var(--line); color: var(--ink); }

/* Panels */
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(18px, 3vw, 28px);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font: 600 .72rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.empty-state { padding: 48px 0; text-align: center; }
.empty-state .btn { margin-top: 14px; }

.ico-box { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--r); background: var(--soft); }
.ico { width: 28px; height: 28px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Crop marks around the "printed" panels: the calculator, the order sample. */
.crop { --cm-len: 8px; --cm-gap: 4px; position: relative; }
@media (min-width: 640px) { .crop { --cm-len: 12px; --cm-gap: 6px; } }
.cm { position: absolute; width: 0; height: 0; pointer-events: none; }
.cm::before, .cm::after { content: ""; position: absolute; background: var(--crop); }
.cm::before { width: var(--cm-len); height: 1px; }
.cm::after  { width: 1px; height: var(--cm-len); }
.cm.tl { top: 0; left: 0 }    .cm.tl::before { top: -1px; right: var(--cm-gap) }    .cm.tl::after { left: -1px; bottom: var(--cm-gap) }
.cm.tr { top: 0; right: 0 }   .cm.tr::before { top: -1px; left: var(--cm-gap) }     .cm.tr::after { right: -1px; bottom: var(--cm-gap) }
.cm.bl { bottom: 0; left: 0 } .cm.bl::before { bottom: -1px; right: var(--cm-gap) } .cm.bl::after { left: -1px; top: var(--cm-gap) }
.cm.br { bottom: 0; right: 0 }.cm.br::before { bottom: -1px; left: var(--cm-gap) }  .cm.br::after { right: -1px; top: var(--cm-gap) }

/* ── 7. Home ──────────────────────────────────────────────────────────── */

.hero { background: var(--page); border-bottom: 1px solid var(--line); overflow-x: clip; }
.hero-in { display: grid; gap: 44px; padding-block: 44px 56px; }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero-copy .eyebrow, .hero-copy h1, .hero-copy .lead { margin: 0; }
.hero h1 { font-size: clamp(2.6rem, 1.1rem + 4.6vw, 4.75rem); line-height: .98; }
.hero h1 span { display: block; color: var(--ink-3); }
.hero .lead { font-size: 1.1875rem; max-width: 30em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 6px; }
.underlink { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--orange); padding-bottom: 2px; }
.underlink:hover { border-bottom-color: var(--ink); }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-self: stretch; margin: 26px 0 0; border-top: 1px solid var(--line); }
.hero-facts > div { padding: 18px 12px 0 0; }
.hero-facts dt { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.hero-facts dd { margin: 4px 0 0; font-size: .875rem; color: var(--ink-2); }

/* The hero picture: a 3D render on a sheet, with crop marks. */
.plate { margin: 0; min-width: 0; }
.plate-sheet { position: relative; display: block; padding: 12px; background: var(--bg); }
.plate-sheet img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 40%; }
.plate-sheet i { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); }
.plate-sheet .tl { top: -9px; left: -9px; border-top-width: 1px; border-left-width: 1px; }
.plate-sheet .tr { top: -9px; right: -9px; border-top-width: 1px; border-right-width: 1px; }
.plate-sheet .bl { bottom: -9px; left: -9px; border-bottom-width: 1px; border-left-width: 1px; }
.plate-sheet .br { bottom: -9px; right: -9px; border-bottom-width: 1px; border-right-width: 1px; }
.plate figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 14px 2px 0; font: 500 .8125rem/1.4 var(--mono); color: var(--ink-2); }
.plate figcaption a { color: var(--ink); font-weight: 600; }
.assure { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 6px 0 0; padding: 0; font-size: .9375rem; font-weight: 500; color: var(--ink-2); }
.assure li { display: flex; align-items: center; gap: 8px; }
.assure .ico-ui { width: 18px; height: 18px; stroke-width: 2.2; color: var(--ink); }
.hero-calc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); align-items: center; gap: 72px; padding-block: 64px 88px; }
}

/* Product tiles: a hairline grid of sheets, each with its 3D render. */
.pcards {
  display: grid; grid-template-columns: 1fr; gap: 1px; list-style: none; margin: 0; padding: 0;
  background: var(--line); border: 1px solid var(--line);
}
.pcard { display: flex; flex-direction: column; background: var(--bg); }
.pcard-link { display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.pcard-img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; object-position: 50% 35%; background: var(--surface); }
.pcard-link:hover .pcard-img { opacity: .94; }
.pcard-top { display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 0; }
.pcard-top h3 { margin: 0; font-size: 1.25rem; letter-spacing: -.01em; }
.pcard-link:hover h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pcard > p { margin: 6px 0 0; padding: 0 20px; font-size: .9375rem; color: var(--ink-2); }
.pcard-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
  margin: auto 20px 0; padding: 14px 0 6px; border-top: 1px dashed var(--line); margin-top: 18px;
}
.pcard-price { font: 600 .9375rem/1.3 var(--mono); }
.pcard-foot a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pcard-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
.model-tag { color: var(--ink-3); font: 500 .6875rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.group-title { margin: 48px 0 18px; font-size: 1.5rem; }
.group-title:first-child { margin-top: 0; }
@media (min-width: 640px)  { .pcards { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .pcards { grid-template-columns: repeat(4, minmax(0,1fr)); } }
/* Fewer than four tiles: as many columns as tiles, so no empty grey cell
   is left in the grid (productList() adds the class). Three tiles stay in one
   row from tablet width up. */
@media (min-width: 640px) {
  .pcards--n3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (min-width: 1024px) {
  .pcards--n1 { grid-template-columns: minmax(0,1fr); }
  .pcards--n2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

/* Products priced by quote: plain rows under the tiles. */
.prows { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.pcards + .prows { margin-top: 28px; }
.prow { display: grid; grid-template-columns: 1fr; gap: 4px 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prow h3 { margin: 0; font-size: 1.25rem; }
.prow h3 a { color: var(--ink); text-decoration: none; }
.prow h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.prow p { margin: 0; font-size: .9375rem; color: var(--ink-2); }
.prow-go { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.prow-go:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (min-width: 900px) { .prow { grid-template-columns: minmax(0,1fr) minmax(0,1.4fr) auto; } }

.more { margin-top: 20px; }
.mount {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px;
  margin-top: 20px; padding: 20px 24px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.mount-copy { display: flex; flex: 1 1 260px; flex-direction: column; gap: 4px; }
.mount-copy h3, .mount-copy p { margin: 0; }
.mount-copy p { font-size: .9375rem; color: var(--ink-2); }

.steps { display: grid; grid-template-columns: 1fr; gap: 28px 24px; list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 2px solid var(--ink); }
.step h3, .step p { margin: 0; }
.step h3 { font-size: 1.0625rem; }
.step p { font-size: .9375rem; color: var(--ink-2); }
.step-no { display: block; margin-bottom: 4px; font: 500 .8125rem/1 var(--mono); color: var(--ink-3); }
@media (min-width: 640px)  { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 900px)  { .steps { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1200px) { .steps { grid-template-columns: repeat(6, minmax(0,1fr)); gap: 20px; } }

.formats { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 44px; padding: 16px 18px; border: 1px dashed var(--field-line); border-radius: var(--r-lg); }
.formats-label { font-size: .9375rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chips li { padding: 7px 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font: 500 .8125rem/1 var(--mono); }

.biz { display: grid; gap: 48px; }
.biz .sec-head { margin-bottom: 32px; }
.feats { display: grid; grid-template-columns: 1fr; gap: 20px 28px; margin: 0; }
.feats > div { padding-top: 14px; border-top: 1px solid var(--ink); }
.feats dt { margin-bottom: 4px; font-weight: 700; }
.feats dd { margin: 0; font-size: .9375rem; color: var(--ink-2); }
@media (min-width: 640px)  { .feats { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .biz { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: center; } }

.doc { margin: 0; padding: 22px; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); font-size: .875rem; }
.doc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.doc-title { font-size: 1.375rem; font-weight: 600; line-height: 1; letter-spacing: .01em; text-transform: uppercase; }
.doc-no { font-family: var(--mono); color: var(--ink-2); }
.doc-meta { display: grid; gap: 6px; margin: 14px 0 18px; }
.doc-meta > div { display: grid; grid-template-columns: 6.5rem minmax(0,1fr); gap: 12px; }
.doc-meta dt { color: var(--ink-3); }
.doc-meta dd { margin: 0; }
.doc-scroll { overflow-x: auto; }
.doc table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.doc th { padding: 0 0 8px; border-bottom: 1px solid var(--ink); text-align: left; font: 500 .6875rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.doc td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th + th, .doc td + td { padding-left: 14px; text-align: right; white-space: nowrap; font-family: var(--mono); }
.doc figcaption { margin-top: 14px; font-size: .8125rem; color: var(--ink-3); }
@media (min-width: 640px) { .doc { padding: 28px; } }

.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.gallery figure { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.gallery .shot { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); border: 1px solid var(--line); }
.gallery figcaption { font-size: .875rem; font-weight: 600; }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; } }

.faq-teaser { display: grid; gap: 28px; }
.faq-teaser .sec-head { margin-bottom: 0; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-list .faq-item:first-of-type { border-top: 0; }
@media (min-width: 1024px) { .faq-teaser { grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); gap: 72px; align-items: start; } }

.quote-band { background: var(--ink); color: #fff; }
.quote-band-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-block: 48px; }
.quote-band h2 { margin: 0 0 6px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.quote-band p { margin: 0; max-width: 40em; color: var(--foot-ink-2); }
.quote-band .btn { background: var(--orange); color: var(--ink); }
.quote-band .btn:hover { background: #fff; }

/* ── 8. Product page ──────────────────────────────────────────────────── */

.product-layout { display: grid; gap: 40px; }
.product-cfg { min-width: 0; }
.product-info { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.product-photos { display: grid; gap: 12px; }
.product-photos img { width: 100%; border-radius: var(--r-lg); border: 1px solid var(--line); }
.prose p { max-width: 62ch; color: var(--ink-2); }
.facts { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: grid; grid-template-columns: 9.5rem minmax(0,1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .875rem; color: var(--ink-3); }
.facts dd { margin: 0; font-size: .9375rem; }
.quote-card { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.quote-card .cfg-title { margin: 0; }
@media (min-width: 1024px) {
  .product-layout { grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); gap: 64px; align-items: start; }
  .product-cfg { order: 2; position: sticky; top: calc(var(--header-h) + 20px); }
  .product-info { order: 1; }
}

/* ── 9. Calculator ────────────────────────────────────────────────────── */

.cfg {
  display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 18px;
  background: var(--sheet); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -26px rgba(22,24,27,.35);
}
@media (min-width: 480px) { .cfg { padding: 24px; } }
.cfg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cfg-title { margin: 0; font-size: 1.375rem; line-height: 1.2; }
.cfg-kicker { font: 500 .6875rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.seg button {
  min-height: 42px; padding: 4px 8px; border: 0; border-radius: 4px; background: transparent;
  color: var(--ink-2); font-size: .875rem; font-weight: 600; line-height: 1.2;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink); color: #fff; }

.pv-box {
  padding: 6px; border: 1px solid var(--line); border-radius: var(--r);
  background-color: var(--surface);
  background-image: linear-gradient(var(--pv-grid) 1px, transparent 1px), linear-gradient(90deg, var(--pv-grid) 1px, transparent 1px);
  background-size: 16px 16px;
}
.pv { display: block; width: 100%; height: auto; }
.pv .s-sheet   { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.5; }
.pv .s-back    { fill: var(--surface-2); }
.pv .s-hem     { fill: none; stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 4 3; }
.pv .s-band    { fill: var(--ink); fill-opacity: .16; stroke: var(--ink); stroke-width: 1; }
.pv .s-eyelet  { fill: var(--surface); stroke: var(--ink); stroke-width: 1.4; }
.pv .s-dim     { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.pv .s-label   { fill: var(--ink-2); font-family: var(--mono); font-size: 13px; font-weight: 500; }
.pv .s-note    { fill: var(--ink-3); font-family: var(--mono); font-size: 11px; }
.pv .s-metal   { fill: var(--metal); stroke: var(--ink); stroke-width: 1; }
.pv .s-sticker { fill: var(--soft); stroke: var(--ink); stroke-width: 1.2; }
.pv .s-cut     { fill: none; stroke: var(--cut); stroke-width: 1.3; stroke-dasharray: 5 3; }
.pv .s-edge    { fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; }

.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.fields .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; }
.fields .full, .fields .field.full { grid-column: 1 / -1; }
.fields .hint { margin: -4px 0 0; }
.lbl { font-size: .8125rem; font-weight: 600; color: var(--ink-2); }
.inp {
  width: 100%; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--field-line); border-radius: var(--r); background: var(--bg); color: var(--ink);
  font: inherit; font-size: 1rem;
}
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(46,90,138,.18); }
.unit { position: relative; display: block; }
.unit .inp { padding-right: 46px; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.unit::after { content: attr(data-unit); position: absolute; top: 50%; right: 12px; transform: translateY(-50%); font: 500 .8125rem/1 var(--mono); color: var(--ink-3); pointer-events: none; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill-opt, .pill { position: relative; }
.pills .pill { padding: 0; border: 0; background: none; text-transform: none; letter-spacing: 0; font: inherit; border-radius: 0; }
.pills .pill input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pills .pill span {
  display: flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--field-line); border-radius: var(--r);
  font: 500 .9375rem/1 var(--mono); font-variant-numeric: tabular-nums; color: var(--ink);
}
.pills .pill input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills .pill input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: .9375rem; font-weight: 500; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }

.cfg-file { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); }
.cfg-file legend { padding: 0 6px; }
.file-modes { display: grid; gap: 6px; margin-bottom: 12px; }
.mode { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; font-size: .9375rem; }
.mode input { flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.mode small { color: var(--ink-3); font-family: var(--mono); }
.drop { position: relative; border: 1.5px dashed var(--field-line); border-radius: var(--r); background: var(--surface); }
.drop.is-over { border-color: var(--ink); background: var(--soft); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-label { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; }
.drop-label strong { display: block; font-size: .9375rem; }
.drop-label small { display: block; font-size: .8rem; color: var(--ink-3); }
.drop input:focus-visible + .drop-label { outline: 2px solid var(--focus); outline-offset: 2px; }
.file-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.file-name { flex: 1; min-width: 0; overflow-wrap: anywhere; font-family: var(--mono); font-size: .85rem; }
.progress { height: 4px; margin: 0 14px 12px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--cta); transition: width 120ms linear; }

.sum { display: grid; gap: 6px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .9375rem; }
.sum:empty { display: none; }
.sum > div { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.sum dt { color: var(--ink-2); }
.sum dd { margin: 0; text-align: right; font-family: var(--mono); font-size: .875rem; font-variant-numeric: tabular-nums; }
.sum .total { margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--field-line); }
.sum .total dt { color: var(--ink); font-weight: 700; }
.sum .total dd { font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.cfg-note { margin: 0; font-size: .8125rem; color: var(--ink-3); }
.cfg-note:empty { display: none; }
.cfg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
.cfg-actions .btn { flex: 1 1 auto; white-space: nowrap; }   /* the link drops below rather than the label breaking */
.status { margin: 0; font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.status:empty { display: none; }

/* ── 10. Cart & checkout, quote form ──────────────────────────────────── */

.checkout-layout { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(300px,.75fr); gap: clamp(24px,4vw,56px); align-items: start; }
.cart-line { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 16px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); }
.cart-line:first-child { padding-top: 0; }
.cart-line-title { margin: 0 0 4px; font-size: 1.02rem; }
.cart-line-meta { font-size: .86rem; color: var(--ink-2); }
.cart-line-right { text-align: right; font-variant-numeric: tabular-nums; }
.btn-remove { background: none; border: 0; padding: 2px 0; font-size: .82rem; color: var(--ink-3); text-decoration: underline; text-underline-offset: 2px; min-height: 32px; }
.btn-remove:hover { color: var(--bad); }
.cart-line.is-gone .cart-line-title, .cart-line.is-gone .cart-line-meta, .cart-line.is-gone .tnum { color: var(--ink-3); text-decoration: line-through; }
.cart-line-warn { margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--bad); }

.summary { position: sticky; top: calc(var(--header-h) + 24px); }
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: .93rem; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--line); }
.summary-total strong { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.free-hint { margin-top: 12px; padding: 10px 12px; border-radius: var(--r); background: var(--surface); font-size: .82rem; color: var(--ink-2); }

.ty-ref { display: inline-block; margin: 6px 0 22px; padding: 12px 22px; border: 1px dashed var(--field-line); border-radius: var(--r-lg); background: var(--bg); font: 600 1.6rem/1.2 var(--mono); letter-spacing: .06em; }
.ty-steps { display: grid; gap: 18px; margin-top: 10px; }
.ty-step { display: flex; gap: 14px; align-items: flex-start; }
.ty-step-num { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: .78rem; font-weight: 700; }
.spec-list { display: grid; gap: 12px; margin: 0; }
.spec-list dt { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.spec-list dd { margin: 2px 0 0; }

.buyer-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 22px; }
.buyer-opt { position: relative; display: block; cursor: pointer; }
.buyer-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.buyer-opt > span { display: block; padding: 14px 16px 14px 42px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); transition: border-color var(--t-fast), background var(--t-fast); }
.buyer-opt > span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 15px; height: 15px; border: 1.5px solid var(--field-line); border-radius: 50%; background: #fff; }
.buyer-opt strong { display: block; font-size: .93rem; font-weight: 600; }
.buyer-opt small { display: block; margin-top: 3px; font-size: .8rem; line-height: 1.5; color: var(--ink-2); }
.buyer-opt:hover > span { border-color: var(--ink); }
.buyer-opt input:checked + span { border-color: var(--ink); background: var(--surface); box-shadow: inset 0 0 0 1px var(--ink); }
.buyer-opt input:checked + span::before { border-color: var(--ink); box-shadow: inset 0 0 0 3.5px var(--ink); }
.buyer-opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

.qform { padding: clamp(18px, 3vw, 28px); }
.q-product { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.q-product-title { font-weight: 700; }

/* ── 11. Legal, FAQ ───────────────────────────────────────────────────── */

.legal-body > section { margin-top: 38px; }
.legal-body > section:first-child { margin-top: 0; }
.legal-body h2 { margin-bottom: 12px; font-size: 1.12rem; line-height: 1.35; }
.legal-body p, .legal-body li { font-size: .95rem; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.legal-body p { margin: 0 0 12px; }
.legal-body ul { display: grid; gap: 7px; margin: 0 0 14px; padding-inline-start: 20px; }

.faq-group { margin-top: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.faq-group h2 { margin-bottom: 14px; font-size: 1.3rem; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; }
.spec { padding: 16px 18px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.spec dt { margin-bottom: 6px; font: 500 .72rem/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.spec dd { margin: 0; font-size: .95rem; line-height: 1.5; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-group .faq-item:first-of-type { border-top: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 14px 0; list-style: none; cursor: pointer;
  font-size: 1.0625rem; font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; flex: none; width: 24px; text-align: center; font: 500 1.25rem/1 var(--mono); color: var(--ink-2); }
.faq-item[open] summary::after { content: "\2212"; }
.faq-a { padding: 0 0 18px; }
.faq-a p, .faq-a li { max-width: 62ch; margin: 0 0 10px; color: var(--ink-2); }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a a { color: var(--accent-text); }
.faq-more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 48px; padding: 22px 24px; background: var(--surface); border-radius: var(--r-lg); }
.faq-more p { margin: 0; }

/* ── 12. Footer, toast, responsive, print ─────────────────────────────── */

.site-footer { background: var(--foot-bg); color: var(--foot-ink); padding-block: 56px 28px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-grid h4 { margin-bottom: 14px; font: 500 .75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--foot-ink-2); }
.foot-logo { display: inline-block; }
.foot-logo img { width: auto; height: 88px; }
.foot-tag { margin: 8px 0 0; color: var(--foot-ink-2); }
.company { display: grid; justify-items: start; gap: 4px; margin-top: 16px; color: var(--foot-ink-2); }
.company a { color: var(--foot-ink); text-decoration: none; }
.company a:hover { text-decoration: underline; }
.footer-links { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--foot-ink); text-decoration: none; }
.footer-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--foot-line); font-size: .8125rem; color: var(--foot-ink-2); }
.site-footer :focus-visible { outline-color: #FFC24D; }
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 300;
  transform: translate(-50%, 140%); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 13px 20px; border-radius: var(--r-lg);
  background: var(--ink); color: #fff; font-size: .9rem; font-weight: 500;
  box-shadow: 0 16px 36px -16px rgba(15,30,51,.6);
  transition: transform 340ms cubic-bezier(.2,.8,.2,1), opacity var(--t);
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* Footer "Cookie settings": a button that looks like the links beside it. */
.linkbtn { appearance: none; background: none; border: 0; padding: 0; font: inherit; color: var(--foot-ink); cursor: pointer; text-align: left; }
.linkbtn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Cookie banner (assets/js/consent.js): a sheet at the bottom, never a wall.
   Both answers are the same size, so declining is as easy as accepting. */
.consent {
  position: fixed; z-index: 250; left: 16px; right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  max-width: 720px; margin: 0 auto; padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px;
  background: var(--sheet); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: 0 18px 40px -18px rgba(22,24,27,.45);
}
.consent p { flex: 1 1 320px; margin: 0; font-size: .875rem; line-height: 1.5; color: var(--ink-2); }
.consent strong { color: var(--ink); }
.consent a { color: var(--ink); }
.consent-btns { display: flex; gap: 10px; flex: 0 0 auto; }
.consent-btns .btn { min-width: 112px; justify-content: center; }
@media (max-width: 460px) { .consent-btns { flex: 1 1 100%; } .consent-btns .btn { flex: 1; min-width: 0; } }

@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: minmax(0,1fr); }
  .summary { position: static; }
}
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .facts > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 460px) {
  .btn--lg { width: 100%; }
  .cta-row .btn { flex: 1 1 100%; }
}

@media print {
  .strip, .site-header, .site-footer, .btn, .toast, .consent { display: none !important; }
  body { background: #fff; }
}

/* ── 3D preview (assets/js/preview3d.module.js) ──────────────────────── */

.pv-box--3d { position: relative; overflow: hidden; }
.pv-box--3d .pv { padding-top: 30px; }
.pv-box--3d .pv[hidden] { display: none; }
.pv3d { position: relative; margin: -6px; aspect-ratio: 4 / 3; background: #e7e9ec; }
.pv3d[hidden] { display: none; }
.pv3d-canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.pv3d-canvas:active { cursor: grabbing; }
.pv3d-size, .pv3d-hint {
  position: absolute; padding: 4px 7px; border-radius: 2px; pointer-events: none;
  background: rgba(255,255,255,.82); color: var(--ink-2);
  font: 500 .6875rem/1.2 var(--mono); letter-spacing: .02em;
}
.pv3d-size { top: 8px; left: 8px; color: var(--ink); font-weight: 600; }
.pv3d-size:empty { display: none; }
.pv3d-hint { bottom: 8px; right: 8px; }
.pv3d-hint[hidden] { display: none; }
.pv-views {
  position: absolute; top: 8px; right: 8px; display: flex; gap: 2px; padding: 2px;
  border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.9);
}
.pv-views[hidden] { display: none; }
.pv-views button {
  padding: 5px 9px; border: 0; border-radius: 3px; background: transparent; color: var(--ink-2);
  font: 600 .6875rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
}
.pv-views button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pv3d-note { margin: -8px 0 0; font-size: .75rem; color: var(--ink-3); }
.pv3d-note[hidden] { display: none; }

/* The large stage beside the calculator (product.php). Without 3D the
   script drops the --stage class and the page keeps its usual layout. */
.product-stage { display: none; }
.product-layout--stage .product-stage { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product-stage .pv3d-note { margin: 0; }
.product-stage .pv-views { top: 12px; right: 12px; }
.product-stage .pv3d-size { top: 12px; left: 12px; font-size: .8125rem; padding: 5px 9px; }
.product-stage .pv3d-hint { bottom: 12px; right: 12px; }
@media (min-width: 1024px) {
  .product-layout--stage { grid-template-columns: minmax(0,1.6fr) minmax(340px,1fr); gap: 40px; }
  .product-layout--stage .product-stage {
    grid-column: 1; grid-row: 1; position: sticky; top: calc(var(--header-h) + 20px);
  }
  .product-layout--stage .product-stage .pv3d {
    aspect-ratio: auto; height: clamp(380px, calc(100vh - var(--header-h) - 90px), 640px);
  }
  /* A tarpaulin is wide: a squat frame keeps it from floating in empty wall. */
  .product-layout--stage .product-stage[data-kind="banner"] .pv3d,
  .product-layout--stage .product-stage[data-kind="sticker"] .pv3d { height: clamp(340px, calc(100vh - var(--header-h) - 90px), 500px); }
  .product-layout--stage .product-cfg { grid-column: 2; grid-row: 1; position: static; }
  .product-layout--stage .product-info { grid-column: 1 / -1; grid-row: 2; max-width: 860px; }
}
