@font-face {
  font-family: Archivo; font-display: swap; src: url("./fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900; unicode-range: U+0000-00FF,U+2000-206F;
}
@font-face {
  font-family: Archivo; font-display: swap; src: url("./fonts/archivo-latin-ext.woff2") format("woff2");
  font-weight: 100 900; unicode-range: U+0100-024F,U+1E00-1EFF;
}
:root {
  color-scheme: dark; --bg:#220f0b; --panel:#301811; --cream:#f6e8d1; --gold:#edc879;
  --muted:#d0b6a0; --line:#795440; --ink:#27150a;
  font: 16px/1.5 Archivo, system-ui, sans-serif; color:var(--cream); background:var(--bg);
}
*, *::before, *::after { box-sizing:border-box; }
body { margin:0; }
[hidden] { display:none !important; }
.shell { width:min(1250px,100%); margin:auto; padding-inline:clamp(16px,4vw,64px); }
.masthead { border-bottom:1px solid var(--line); background:#1b0c08; }
.masthead-inner { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.brand { display:block; width:clamp(100px,14vw,142px); height:auto; }
nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:clamp(4px,2vw,24px); }
a { color:var(--gold); text-underline-offset:.22em; }
nav a { display:inline-flex; min-height:44px; align-items:center; padding:6px; color:var(--muted); text-decoration:none; border-bottom:2px solid transparent; }
nav a[aria-current="page"] { color:var(--cream); border-color:var(--gold); }
button, input { font:inherit; }
button { min-height:44px; padding:8px 18px; border:1px solid var(--gold); border-radius:4px; background:var(--gold); color:var(--ink); font-weight:650; cursor:pointer; }
button:disabled { opacity:.56; cursor:default; }
button:not(:disabled):hover { filter:brightness(1.13); }
button.secondary { background:transparent; color:var(--gold); }
button.quiet { display:inline-block; padding:6px 0; background:none; border:0; color:var(--gold); text-decoration:underline; text-underline-offset:.22em; font-weight:500; text-align:left; }
:focus-visible { outline:3px solid #fff0ab; outline-offset:3px; }
h1:focus { outline:none; }
.skip { position:absolute; inset:6px auto auto 6px; transform:translateY(-160%); padding:.5rem 1rem; background:var(--bg); z-index:2; }
.skip:focus { transform:none; }
.heading { padding:clamp(28px,5vw,62px) 0 clamp(20px,3vw,38px); }
h1,h2,h3,p { margin:0; }
h1,h2,h3 { line-height:1.13; }
h1,h2 { font-family:Georgia,"Times New Roman",serif; font-weight:400; }
h1 { margin:.12em 0; font-size:clamp(2.4rem,5.5vw,4.7rem); letter-spacing:-.043em; }
h2 { font-size:clamp(1.45rem,2.4vw,2rem); }
h3 { font-size:1.23rem; overflow-wrap:anywhere; }
.heading > p:last-child { max-width:76ch; color:var(--muted); }
.eyebrow, .section-name { color:var(--gold); font-size:.77rem; font-weight:650; letter-spacing:.09em; text-transform:uppercase; }
.view { padding-bottom:clamp(32px,7vw,80px); }
.toolbar,.sum,.cart-line-head,.actions { display:flex; justify-content:space-between; align-items:center; gap:12px; }
.toolbar { padding:0 0 15px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.count,.muted,.downloads { color:var(--muted); font-size:.9rem; }
.catalog-layout { display:grid; grid-template-columns:minmax(0,2fr) minmax(255px,.86fr); gap:clamp(16px,2.5vw,32px); align-items:start; }
.cards { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.card,.panel,.basket { background:var(--panel); border:1px solid var(--line); border-radius:7px; }
.card { display:flex; flex-direction:column; overflow:hidden; min-width:0; }
.photo { width:100%; aspect-ratio:1.85; object-fit:cover; background:#3a261c; }
.card-body { display:flex; flex-direction:column; align-items:stretch; gap:10px; padding:clamp(14px,1.8vw,22px); flex:1; }
.price { margin-top:auto; color:var(--cream); font-size:1.04rem; font-weight:650; }
.quantity { display:grid; grid-template-columns:repeat(auto-fit,minmax(60px,1fr)); gap:12px; }
label { display:block; color:var(--cream); }
.quantity label { font-size:.84rem; color:var(--muted); }
input[type="number"],input[type="file"] { display:block; width:100%; min-width:0; margin-top:5px; background:#21100c; color:var(--cream); border:1px solid var(--line); border-radius:4px; }
input[type="number"] { min-height:42px; padding:6px 9px; }
input[type="file"] { padding:7px; }
input::file-selector-button { background:var(--cream); color:var(--ink); padding:7px; border:none; border-radius:3px; margin-right:8px; }
.card button { margin-top:4px; }
.basket, .panel { padding:clamp(17px,2.3vw,30px); }
.basket { position:sticky; top:12px; }
.cart-group { margin:14px 0; }
.cart-line { padding:.65rem 0; color:var(--muted); overflow-wrap:anywhere; }
.cart-line-head { align-items:flex-start; color:var(--cream); }
.cart-line-head strong { text-align:right; }
.subtotal { border-top:1px dotted var(--line); padding-top:7px; font-size:.88rem; color:var(--muted); }
.sum { border-top:1px solid var(--line); padding:16px 0; font-family:Georgia,serif; font-size:1.25rem; }
.sum strong { color:var(--gold); font-size:1.5rem; }
.notice:not(:empty) { margin:12px 0; padding:10px 12px; border-left:3px solid var(--gold); color:var(--cream); }
.error { color:#ffd1be; }
#booking-demo { margin:16px 0; padding-block:16px; border-block:1px solid var(--line); display:grid; gap:9px; }
#booking-demo select { font:inherit; width:100%; min-width:0; color:var(--cream); min-height:44px; padding:6px; background:var(--bg); border:1px solid var(--line); border-radius:4px; }
#booking-status { overflow-wrap:anywhere; }
.workspace { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(0,1fr); gap:18px; }
.panel h2,.panel label,.panel p,.panel .actions { margin-bottom:12px; }
.panel > input { margin-bottom:16px; }
.panel > label { margin-bottom:0; }
.actions { justify-content:flex-start; flex-wrap:wrap; }
.download { display:block; margin-top:12px; }
.downloads { margin-top:8px; }
#check-results { overflow:auto; }
table { width:100%; border-collapse:collapse; text-align:left; }
th,td { padding:10px 8px; border-bottom:1px solid var(--line); }
th { font-size:.9rem; color:var(--muted); }
td { overflow-wrap:anywhere; }
td:last-child { font-weight:600; }
@media (max-width:820px) {
  .catalog-layout,.workspace { grid-template-columns:minmax(0,1fr); }
  .basket { position:static; }
}
@media (max-width:560px) {
  .cards { grid-template-columns:minmax(0,1fr); }
  .masthead-inner { flex-wrap:wrap; justify-content:center; padding-bottom:5px; }
  nav { flex:1 0 auto; justify-content:center; }
  th,td { padding:7px 4px; font-size:.83rem; }
}
