/* MotorsportsMiniatures.com — main stylesheet
   Palette from their own identity: logo gold + black, banner red, store button red, store menu navy. */

:root {
  /* REPLACEABLE IMAGES
     Every picture on this site is an <img> tag listed in assets/manifest.json
     (swap a file there to change it). No image is set from CSS. */

  /* Brand — logo */
  --gold: #F0C950;
  --gold-hi: #F4CF5C;
  --gold-lo: #E8C557;
  --gold-tint: #FBF3D6;
  --gold-deep: #8A6A12;      /* gold darkened for text on white (6.0:1) */
  --ink: #141414;
  --ink-2: #202020;
  --ink-3: #2E2E2E;
  /* Brand — their banners and store */
  --red: #E81B09;            /* maker name on their banners */
  --red-btn: #BB3737;        /* store primary button */
  --red-btn-dark: #9A2B2B;
  --navy: #3C599F;           /* store menu bar */
  --navy-dark: #354F8C;
  --navy-deep: #22335C;
  /* Neutrals */
  --paper: #FFFFFF;
  --mist: #F5F5F3;
  --line: #E2E2DE;
  --text: #1B1B1B;
  --muted: #555555;

  --font: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --wrap: 1200px;
  --gap: clamp(1rem, 0.6rem + 1.6vw, 2rem);
  --section: clamp(3rem, 2rem + 4vw, 5.5rem);
  --radius: 6px;
  --shadow: 0 1px 2px rgba(20,20,20,.06), 0 6px 20px rgba(20,20,20,.07);
}

/* Fonts: Barlow, SIL Open Font License (assets/fonts/OFL.txt) */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 700; font-display: swap; src: url("fonts/barlow-latin-700-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 800; font-display: swap; src: url("fonts/barlow-latin-800-italic.woff2") format("woff2"); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.6; color: var(--text); background: var(--paper); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { color: var(--navy-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); border-radius: 2px; }
h1, h2, h3, h4 { font-weight: 800; font-style: italic; line-height: 1.12; letter-spacing: -.005em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 1.35rem + 2.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gap); }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: .5rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }

/* ---------- Buttons: gold = talk to us, red = the store (their store's own button colour) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.35em; border-radius: var(--radius); border: 2px solid transparent; font: italic 800 1.02rem/1.1 var(--font); text-decoration: none; letter-spacing: .01em; cursor: pointer; transition: background-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-ask { background: var(--gold); color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-ask:hover { background: var(--gold-hi); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.btn-store { background: var(--red-btn); color: #fff; }
.btn-store:hover { background: var(--red-btn-dark); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); color: #fff; }
.on-dark .btn-line { color: #fff; border-color: #fff; }
.on-dark .btn-line:hover { background: #fff; color: var(--ink); }
.btn-small { min-height: 40px; padding: .5em 1em; font-size: .95rem; }
.ext::after { content: "\2197"; font-style: normal; font-weight: 600; margin-left: .15em; }
.actions { display: flex; flex-wrap: wrap; gap: .85rem 1rem; align-items: center; }

/* ---------- Top bar ---------- */
.topbar { background: var(--ink); color: #eee; font-size: .9rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--gold); text-decoration: underline; }
.topbar .since { color: var(--gold); font-style: italic; font-weight: 700; }
.topbar .topbar-info { display: none; }
@media (min-width: 900px) { .topbar .topbar-info { display: flex; } }
@media (max-width: 899px) { .topbar { display: none; } }

/* ---------- Masthead ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); }
.masthead .wrap { display: flex; align-items: center; gap: 1rem 1.5rem; min-height: 72px; }
.logo { flex: 0 0 auto; display: block; line-height: 0; }
.logo img { width: 150px; height: auto; }
.search { display: none; flex: 1 1 auto; max-width: 440px; margin-left: auto; position: relative; }
.search input { width: 100%; height: 44px; border: 1px solid #BDBDB8; border-radius: 22px; padding: 0 3.2rem 0 1.1rem; font: inherit; font-size: 1rem; background: var(--mist); }
.search input:focus { background: #fff; border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px var(--gold); }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--ink); color: var(--gold); cursor: pointer; display: grid; place-items: center; }
.search svg { width: 18px; height: 18px; }
.mast-contact { display: none; text-align: right; line-height: 1.25; }
.mast-contact a { font-weight: 800; font-style: italic; font-size: 1.25rem; color: var(--ink); text-decoration: none; }
.mast-contact a:hover { color: var(--red-btn); }
.mast-contact span { display: block; font-size: .85rem; color: var(--muted); }
.mast-buttons { display: flex; gap: .5rem; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: 0 .8rem; border: 2px solid var(--ink); border-radius: var(--radius); background: #fff; color: var(--ink); font: 700 .95rem var(--font); text-decoration: none; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--gold); color: var(--ink); }
.nav-toggle { display: none; }
.js .nav-toggle { display: inline-flex; }

@media (min-width: 900px) {
  .masthead .wrap { min-height: 112px; }
  .logo img { width: 230px; }
  .search { display: block; }
  .mast-contact { display: block; }
  .mast-buttons { margin-left: 0; }
  .mast-buttons .call-btn, .js .nav-toggle { display: none; }
}
@media (max-width: 899px) {
  .masthead { position: sticky; top: 0; z-index: 40; }
}

/* ---------- Main navigation (their navy menu bar, in collector order) ---------- */
.site-nav { background: var(--navy); color: #fff; z-index: 39; }
.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { display: block; color: #fff; text-decoration: none; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .92rem; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--navy-deep); color: var(--gold); }
.site-nav .nav-group-label { display: none; }
@media (max-width: 899px) {
  .site-nav .wrap { padding: 0; }
  .site-nav ul { display: grid; grid-template-columns: 1fr 1fr; }
  .site-nav a { padding: .85rem var(--gap); border-bottom: 1px solid rgba(255,255,255,.12); }
  .site-nav .nav-cta { grid-column: 1 / -1; padding: 1rem var(--gap); }
  .site-nav .nav-cta a { text-transform: none; letter-spacing: 0; }
  .js .site-nav { display: none; position: fixed; inset: var(--mast-h, 72px) 0 0 0; overflow-y: auto; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
  .js .site-nav.open { display: block; }
  .js .site-nav ul { grid-template-columns: 1fr; }
  .site-nav .nav-group-label { display: block; padding: 1rem var(--gap) .35rem; color: var(--gold); font-style: italic; font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em; }
}
@media (min-width: 900px) {
  .site-nav { position: sticky; top: 0; box-shadow: 0 2px 0 var(--gold); }
  .site-nav ul { display: flex; align-items: stretch; }
  .site-nav a { padding: .95rem .8rem; font-size: .88rem; height: 100%; display: flex; align-items: center; }
  .site-nav .sep { width: 2px; margin: .7rem .5rem; background: rgba(255,255,255,.3); transform: skewX(-14deg); }
  .site-nav .nav-cta { margin-left: auto; display: flex; align-items: center; }
  .site-nav .nav-cta a.btn { padding: .45em 1em; min-height: 38px; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--ink); height: auto; }
  .site-nav .nav-cta a.btn:hover { background: var(--gold-hi); color: var(--ink); }
}
@media (min-width: 900px) and (max-width: 1120px) {
  .site-nav a { padding: .9rem .5rem; font-size: .8rem; }
  .site-nav .sep { margin: .7rem .2rem; }
}

/* ---------- Section rhythm ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-mist { background: var(--mist); }
.bg-ink { background: var(--ink); color: #ECECEC; }
.bg-ink h2, .bg-ink h3 { color: #fff; }
.bg-ink a:not(.btn) { color: var(--gold); }
.bg-navy { background: var(--navy-deep); color: #fff; }
.bg-navy h2 { color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; max-width: 60ch; }
/* Their logo's speed: a slanted gold stripe before section titles */
.stripe { display: inline-flex; align-items: center; gap: .55em; }
.stripe::before { content: ""; flex: 0 0 auto; width: .5em; height: 1.05em; background: var(--gold); border: 2px solid var(--ink); transform: skewX(-18deg); }
.bg-ink .stripe::before, .bg-navy .stripe::before { border-color: var(--gold); }
.more-link { font-weight: 700; white-space: nowrap; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; }

/* ---------- Hero ---------- */
.hero { padding: clamp(1.75rem, 1rem + 3vw, 4rem) 0 clamp(2.5rem, 1.5rem + 3vw, 4.5rem); background: linear-gradient(180deg, #fff 0%, #fff 70%, var(--mist) 100%); }
.hero-grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3rem; } }
.badge-since { display: inline-block; margin-bottom: 1rem; padding: .25em .9em .3em; background: var(--gold); color: var(--ink); border: 2px solid var(--ink); font-style: italic; font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; transform: skewX(-10deg); }
.badge-since span { display: inline-block; transform: skewX(10deg); }
.hero h1 { margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--red); }
.hero .lead { color: #333; max-width: 36em; }
.hero-call { margin: 1.1rem 0 0; color: var(--muted); font-size: .98rem; }
.hero-call a { color: var(--ink); font-weight: 700; }
.hero-figure { margin: 0; }
@media (max-width: 899px) {
  .hero .lead-more, .hero .plate-code, .hero .plate-scale { display: none; }
  .hero .actions .btn { padding: .7em 1em; font-size: .98rem; }
  .hero .actions { gap: .75rem; }
  .hero .badge-since { font-size: .9rem; margin-bottom: .75rem; }
  .hero .plate-maker { font-size: 1.5rem; }
  .hero .plate-car { font-size: .95rem; }
  .hero-grid { gap: 1.25rem; }
}
.hero-figure img { width: 100%; height: auto; }

/* Their banner layout: red italic maker, code, car, scale — rebuilt as live text */
.plate { text-align: center; color: var(--ink-2); }
.plate-maker { margin: 0; color: var(--red); font-style: italic; font-weight: 800; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); line-height: 1; text-shadow: 2px 2px 0 rgba(0,0,0,.18); }
.plate-code { margin: .35rem 0 .2rem; font-weight: 700; letter-spacing: .04em; }
.plate-car { margin: 0 auto; font-weight: 700; max-width: 30em; line-height: 1.35; }
.plate-scale { margin: .35rem 0 0; font-weight: 600; color: var(--muted); }
.hero .plate { margin-top: .5rem; }

/* ---------- Trust strip ---------- */
.trust { background: var(--ink); color: #E8E8E8; padding: 2rem 0; }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .trust ul { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .trust ul { grid-template-columns: repeat(4, 1fr); } }
.trust li { display: grid; grid-template-columns: 40px 1fr; gap: .2rem .85rem; align-items: start; }
.trust svg { grid-row: span 2; width: 40px; height: 40px; color: var(--gold); }
.trust strong { color: var(--gold); font-style: italic; font-weight: 800; font-size: 1.15rem; line-height: 1.2; }
.trust span { font-size: .95rem; line-height: 1.45; }
.trust a { color: #fff; }

/* ---------- Browse the way collectors do ---------- */
.browse-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .browse-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .browse-grid { grid-template-columns: repeat(4, 1fr); } }
.browse-card { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: var(--radius); padding: 1.4rem 1.4rem 1.2rem; display: flex; flex-direction: column; }
.browse-card h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: .35em; text-transform: uppercase; }
.browse-card h3 a { color: var(--ink); text-decoration: none; }
.browse-card h3 a:hover { color: var(--navy); }
.browse-card p { color: var(--muted); font-size: .97rem; }
.chips { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.chips a { display: inline-block; padding: .3rem .7rem; border: 1px solid #C9C9C4; border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .93rem; font-weight: 600; background: #fff; }
.chips a:hover { background: var(--gold); border-color: var(--ink); }
.browse-card .more-link { margin-top: auto; }

/* ---------- Product cards (catalogue) ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s, transform .15s; }
.card:hover, .card:focus-within { box-shadow: var(--shadow); border-color: #C8C8C2; transform: translateY(-2px); }
.card-media { aspect-ratio: 3 / 2; background: #fff; display: grid; place-items: center; padding: .5rem; border-bottom: 1px solid var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-body { padding: .9rem 1rem 1rem; display: flex; flex-direction: column; flex: 1; }
.card-sku { margin: 0 0 .25rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.card-name { margin: 0 0 .75rem; font-size: 1rem; font-weight: 700; font-style: normal; line-height: 1.35; color: var(--ink); }
.card-foot { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; }
.card-price { margin: 0; font-size: 1.2rem; font-weight: 800; font-style: italic; color: var(--ink); }
.card-link { font-weight: 700; font-size: .92rem; color: var(--navy); text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-link { text-decoration: underline; }
.price-note { font-size: .9rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Spotlight: their own banners ---------- */
.spotlight-grid { display: grid; gap: 1.25rem; }
@media (min-width: 900px) { .spotlight-grid { grid-template-columns: 1fr 1fr; } }
.spot { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.spot:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.spot img { width: 100%; height: auto; }
.spot span { display: block; padding: .8rem 1rem; font-weight: 700; border-top: 1px solid var(--line); }
.spot span::after { content: " \2192"; }

/* ---------- Feature split (Marsh, heritage) ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 3.5rem; } .split.flip > :first-child { order: 2; } }
.split figure { margin: 0; }
.split figure img { width: 100%; height: auto; border-radius: var(--radius); }
.facts { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .6rem; }
.facts li { padding-left: 1.6rem; position: relative; }
.facts li::before { content: ""; position: absolute; left: 0; top: .45em; width: .7rem; height: .7rem; background: var(--gold); border: 2px solid var(--ink); transform: skewX(-18deg); }
.bg-ink .facts li::before { border-color: var(--gold); }

/* ---------- Welcome quote (About wording) ---------- */
.welcome { background: var(--gold-tint); border-left: 6px solid var(--gold); padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: 0 var(--radius) var(--radius) 0; }
.welcome blockquote { margin: 0; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); line-height: 1.55; color: var(--ink); }
.welcome blockquote p:last-child { margin-bottom: 0; }
.welcome .sign { margin: 1rem 0 0; font-style: italic; font-weight: 800; font-size: 1.15rem; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #EDEDED; padding: clamp(2.5rem, 2rem + 2vw, 3.5rem) 0; border-top: 6px solid var(--gold); }
.cta-band .wrap { display: grid; gap: 1.5rem; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1.4fr 1fr; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; }
.cta-band .contact-lines { margin-top: .75rem; font-size: 1.05rem; }
.cta-band .contact-lines a { color: var(--gold); font-weight: 700; }
.cta-band .actions { justify-content: flex-start; }
@media (min-width: 900px) { .cta-band .actions { justify-content: flex-end; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 0 clamp(1.5rem, 1rem + 2vw, 2.5rem); }
.page-head h1 { margin-bottom: .3em; }
.page-head .lead { margin: 0; max-width: 46em; color: #333; }
.crumbs { font-size: .9rem; margin-bottom: .75rem; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: "\203A"; margin: 0 .4rem 0 .15rem; color: #999; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

/* ---------- Prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 1.75em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose li { margin-bottom: .4em; }
.callout { background: #fff; border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.25rem 1.4rem; box-shadow: 4px 4px 0 var(--gold); margin: 1.75rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout strong.big { display: block; font-size: 1.3rem; font-style: italic; font-weight: 800; margin-bottom: .25rem; }
.layout-aside { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; } }
.aside-card { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.aside-card h2 { font-size: 1.35rem; }
.aside-card + .aside-card { margin-top: 1.25rem; }
@media (min-width: 960px) { .aside-sticky { position: sticky; top: 72px; } }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 1.25rem 0; display: grid; gap: 1rem; }
.steps li { counter-increment: s; position: relative; padding: .2rem 0 0 3.2rem; min-height: 2.4rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; display: grid; place-items: center; background: var(--gold); border: 2px solid var(--ink); font-weight: 800; font-style: italic; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1.25fr; gap: 3.5rem; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1rem; }
.contact-list li { display: grid; grid-template-columns: 44px 1fr; gap: .1rem .9rem; align-items: center; }
.contact-list svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; background: var(--gold); border: 2px solid var(--ink); border-radius: 50%; color: var(--ink); }
.contact-list .label { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.contact-list .value { font-weight: 700; font-size: 1.1rem; word-break: break-word; }
.contact-list a { color: var(--ink); }
.form-card { background: #fff; border: 1px solid var(--line); border-top: 6px solid var(--gold); border-radius: var(--radius); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.6rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: .75rem .85rem; border: 1px solid #A9A9A3; border-radius: var(--radius); background: #fff; color: var(--text); }
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--gold); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status.ok { background: #E7F4EA; color: #1C5B2C; border: 1px solid #A9D4B3; }
.form-status.err { background: #FBEAEA; color: #7E1F1F; border: 1px solid #E5B1B1; }
.cf-turnstile { margin: .5rem 0 1rem; min-height: 65px; }

/* ---------- Product page ---------- */
.product { display: grid; gap: 2rem; }
@media (min-width: 960px) { .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3rem; align-items: start; } }
.gallery-main { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .5rem; }
.gallery-main a { display: block; }
.gallery-main img { width: 100%; height: auto; }
.thumbs { list-style: none; padding: 0; margin: .75rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .5rem; }
.thumbs a { display: block; border: 2px solid var(--line); border-radius: 4px; background: #fff; padding: 2px; aspect-ratio: 3 / 2; }
.thumbs a:hover, .thumbs a[aria-current="true"] { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.product-title { margin: 0 0 1rem; }
.product-title .maker { display: block; color: var(--red); font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.3rem); text-shadow: 2px 2px 0 rgba(0,0,0,.15); }
.product-title .code { display: block; font-style: normal; font-weight: 700; font-size: 1.05rem; letter-spacing: .05em; color: var(--muted); margin: .3rem 0 .45rem; }
.product-title .car { display: block; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); line-height: 1.25; }
.buy-box { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem 1.4rem; margin: 1.25rem 0; }
.buy-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; margin-bottom: .35rem; }
.buy-price strong { font-size: 2rem; font-style: italic; font-weight: 800; }
.stock { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; font-size: .95rem; }
.stock::before { content: ""; width: .65rem; height: .65rem; border-radius: 50%; background: #2E7D32; }
.stock.order::before { background: var(--gold-lo); border: 1px solid var(--gold-deep); }
.notice { background: var(--gold-tint); border-left: 5px solid var(--gold); padding: .75rem 1rem; margin: 1rem 0; font-weight: 600; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.25rem; margin: 0 0 1.25rem; font-size: .98rem; }
.spec dt { color: var(--muted); font-weight: 600; }
.spec dd { margin: 0; font-weight: 600; }
.product-desc { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); }
.product-desc .spec { background: var(--mist); padding: 1.1rem 1.25rem; border-radius: var(--radius); border: 1px solid var(--line); }
@media (max-width: 560px) { .spec { grid-template-columns: 1fr; gap: .1rem; } .spec dd { margin-bottom: .5rem; } }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-top: 2.5rem; list-style: none; padding: 0; }
.pager a, .pager span { display: grid; place-items: center; min-width: 46px; height: 46px; padding: 0 .9rem; border: 2px solid var(--ink); border-radius: var(--radius); font-weight: 800; font-style: italic; text-decoration: none; color: var(--ink); }
.pager a:hover { background: var(--gold); }
.pager [aria-current="page"] { background: var(--ink); color: var(--gold); }

/* ---------- Category index pages ---------- */
.cat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.cat-list a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 58px; padding: .75rem 1rem; background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: var(--radius); color: var(--ink); font-weight: 700; text-decoration: none; }
.cat-list a::after { content: "\2197"; color: var(--navy); font-weight: 600; }
.cat-list a:hover { border-left-color: var(--gold); box-shadow: var(--shadow); }
.scale-list a { font-size: 1.5rem; font-style: italic; font-weight: 800; min-height: 84px; }

/* ---------- Figures (AI/atmosphere images shown whole) ---------- */
.band-figure { margin: 0 auto; max-width: 900px; }
.band-figure img { width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: #D6D6D6; font-size: .97rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; gap: 2rem; padding: 3rem var(--gap) 2rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .footer-grid { grid-template-columns: 1.4fr 1.1fr 1fr 1fr 1fr; } }
.footer-logo { display: inline-block; background: #fff; padding: .5rem .75rem; border-radius: var(--radius); line-height: 0; margin-bottom: 1rem; }
.footer-logo img { width: 180px; }
.footer-title { color: var(--gold); font-style: italic; font-weight: 800; font-size: 1.1rem; margin: 0 0 .75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-contact li span { display: block; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: #A8A8A8; }
.social { display: flex; gap: .6rem; margin-top: .75rem; }
.social a { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid #555; border-radius: 50%; }
.social a:hover { border-color: var(--gold); background: var(--gold); color: var(--ink); }
.social svg { width: 20px; height: 20px; }
.footer-base { border-top: 1px solid #3A3A3A; padding: 1.25rem var(--gap) 1.5rem; font-size: .85rem; color: #ABABAB; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; }
.footer-base p { margin: 0; }
.footer-base a { color: #D6D6D6; text-decoration: underline; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: var(--section) 0; }
.notfound .num { font-size: clamp(4rem, 3rem + 6vw, 8rem); font-style: italic; font-weight: 800; color: var(--gold); -webkit-text-stroke: 3px var(--ink); line-height: 1; margin: 0 0 .5rem; }
.notfound .actions { justify-content: center; margin-top: 1.5rem; }
@media (min-width: 900px) { .site-nav .mobile-only { display: none; } }
