/* ALLCUT — site design system.
   White paper, ink type, one red. Hairlines, zero radius. One font (Roboto).
   Reading rules: no text under 15px (before the --fs multiplier), body text 17px. Words use only
   --ink or --ink-2 on light backgrounds (at least #d6d2cb on dark ones). --ink-3 / --ink-4 are for
   lines, borders and icons only. Importance comes from weight (700 important, 400 helper), size steps,
   the red bar/dot and space, never from small or pale text.
   Page-specific styles live in /static/css/pages/<page>.css. */

/* ───────────── tokens ───────────── */
:root {
  --paper: #fafaf8;
  --white: #ffffff;
  --tint: #f3f2ee;
  --ink: #15130f;
  --ink-2: #3b3732;        /* secondary text: 11.9:1 on white */
  --ink-3: #5f5a52;        /* lines and icons only, never words (still 6.9:1 as a safety net) */
  --ink-4: #a6a198;        /* hairlines, dots, placeholder marks only */
  --dark-1: #f6f4ef;       /* main text on dark backgrounds */
  --dark-2: #d6d2cb;       /* secondary text on dark backgrounds (at least this light) */
  --dark-line: #3a3630;    /* lines on dark backgrounds */
  --rule: #e5e3de;
  --rule-2: #d3d0c9;
  --red: #e1251b;
  --red-ink: #c41d13;      /* red for small text on white: 5.7:1 */
  --red-deep: #9e160e;
  --red-tint: #fcebe9;

  --f-sans: "Roboto", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs: 1.05;              /* text size: every font size is multiplied by this */
  --f-mono: var(--f-sans); /* no mono font any more; numbers line up with tabular-nums */

  --wrap: 1440px;
  --gutter: clamp(20px, 3.2vw, 44px);
  --header-h: 81px;
  --section: clamp(72px, 9vw, 136px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --arrival-bg: radial-gradient(ellipse 70% 60% at 50% 45%, var(--ink-2) 0%, var(--ink) 74%);   /* "New arrival": a spotlight on ink */
}

/* ───────────── base ───────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 calc(17px * var(--fs))/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.015em; line-height: 1.08; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
::selection { background: color-mix(in srgb, var(--red) 22%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
hr { border: 0; height: 1px; background: var(--rule); margin: 0; }

.sr-only {
  position: absolute !important; 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: -48px; z-index: 100; background: var(--ink); color: var(--white);
  padding: 10px 14px; font-weight: 600; font-size: calc(16px * var(--fs)); transition: top .15s;
}
.skip-link:focus { top: 12px; }

/* ───────────── layout ───────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 6vw, 88px); }
.section--rule { border-top: 1px solid var(--rule); }
.section--white { background: var(--white); }
.section--tint { background: var(--tint); }
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(16px, 2vw, 28px); }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ───────────── type ───────────── */
.label {
  font: 500 calc(15.3px * var(--fs))/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2);
}
.label--red { color: var(--red-ink); font-weight: 700; font-size: calc(15px * var(--fs)); }
.label--ink { color: var(--ink); font-weight: 700; font-size: calc(15px * var(--fs)); }
/* section label: bold, with a short red bar in front (the bar takes the range colour inside .rc-<range>) */
.label-rule { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: calc(15px * var(--fs)); color: var(--ink); }
.label-rule::before { content: ""; width: 28px; height: 3px; background: var(--rc, var(--red)); flex: none; }

/* ───────────── range colour codes ─────────────
   Each range has --rc (swatch/bar), --rc-ink (text on white), --rc-lite (text on dark), --rc-tint
   (quiet background), set by .rc-<range-slug> (generated in base.html from scripts/palette.py). */
.swatch { display: inline-block; flex: none; width: 10px; height: 10px; margin-right: 9px; background: var(--rc, var(--ink-4)); vertical-align: 0.05em; }
.rc-text { color: var(--rc-ink, var(--red-ink)); font-weight: 700; }
.label.rc-text { font-size: calc(15px * var(--fs)); }
.rc-top { position: relative; }
.rc-top::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px; background: var(--rc); pointer-events: none; }

.display { font-size: calc(clamp(44px, 6.6vw, 104px) * var(--fs)); line-height: .98; letter-spacing: -0.02em; font-weight: 800; }
.h1 { font-size: calc(clamp(36px, 4.6vw, 68px) * var(--fs)); line-height: 1.02; letter-spacing: -0.02em; }
.h2 { font-size: calc(clamp(30px, 3vw, 46px) * var(--fs)); line-height: 1.06; letter-spacing: -0.015em; }
.h3 { font-size: calc(clamp(21px, 1.6vw, 25px) * var(--fs)); line-height: 1.2; letter-spacing: -0.005em; font-weight: 700; }
.lede { font-size: calc(clamp(18px, 1.4vw, 21px) * var(--fs)); line-height: 1.55; color: var(--ink-2); max-width: 58ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--f-mono); }
.num { font-variant-numeric: tabular-nums; }
.red { color: var(--red-ink); }

.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .label { margin-bottom: 18px; }
.section-head__aside { max-width: 44ch; color: var(--ink-2); }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* ───────────── series logos (used instead of the series name where it is a title) ─────────────
   The macro ui.range_logo sets --logo-h; phones get a smaller logo so a long one never passes the screen edge. */
.range-logo { display: block; width: auto; height: calc(var(--logo-h, 64px) * var(--logo-k, 1)); max-width: 100%; object-fit: contain; object-position: left center; }
@media (max-width: 600px) { :root { --logo-k: .62; } }
/* logo + model number side by side; wraps onto two lines when there is no room */
.model-title { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; max-width: 100%; vertical-align: middle; }
.model-title--lg { gap: 8px 22px; }
.model-title__model { line-height: 1; }

/* ───────────── buttons & links ───────────── */
.btn {
  --b: var(--ink); --f: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border: 1px solid var(--b); background: var(--b); color: var(--f);
  font: 600 calc(16px * var(--fs))/1 var(--f-sans); letter-spacing: 0; white-space: nowrap; border-radius: 0;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.btn:hover { --b: #000; }
.btn--red { --b: var(--red); }
.btn--red:hover { --b: var(--red-ink); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--white); }
.btn--sm { min-height: 42px; padding: 0 16px; font-size: calc(15px * var(--fs)); }
.btn--block { width: 100%; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--rule-2); padding-bottom: 3px; transition: border-color .15s, color .15s;
}
.link-arrow::after { content: "→"; transition: transform .15s var(--ease); }
.link-arrow:hover { border-color: var(--red); color: var(--red-ink); }
.link-arrow:hover::after { transform: translateX(3px); }
.link { color: var(--red-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link:hover { color: var(--red-deep); }

/* ───────────── chips ───────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--rule-2);
  font: 500 calc(15px * var(--fs))/1.25 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: var(--white);
}
.chip::before { content: ""; width: 6px; height: 6px; background: var(--red); flex: none; }
.chip--plain::before { display: none; }

/* ───────────── key figures ───────────── */
.kf { display: grid; grid-template-columns: repeat(var(--kf-cols, 2), minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.kf__item { padding: 14px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.kf__item:nth-child(n) { border-right: 0; }
.kf__value { display: block; font-size: calc(clamp(24px, 2vw, 32px) * var(--fs)); font-weight: 700; letter-spacing: -0.015em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kf__label { display: block; margin-top: 6px; }

/* ───────────── spec table ───────────── */
.specs { border-top: 1px solid var(--ink); }
.specs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, auto); align-items: baseline; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.specs__k { font: 500 calc(16.3px * var(--fs))/1.4 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); }
.specs__v { font-weight: 700; font-size: calc(17px * var(--fs)); line-height: 1.4; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.specs__group { padding: 26px 0 10px; border-bottom: 1px solid var(--rule); }
.specs__group:first-child { padding-top: 14px; }

/* ───────────── data table ───────────── */
/* position:relative keeps absolutely positioned children (e.g. .sr-only labels) inside the scroll box;
   without it they escape and widen the whole page on phones. */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-top: 1px solid var(--ink); }
.table th, .table td { padding: 13px 16px 13px 0; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: baseline; }
.table th { font: 600 calc(15.3px * var(--fs))/1.3 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink-2); white-space: nowrap; }
.table td { font-size: calc(16px * var(--fs)); font-variant-numeric: tabular-nums; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover { background: var(--white); }
.table .is-current td { background: var(--red-tint); }

/* ───────────── figures & drawing motifs ───────────── */
.plate { mix-blend-mode: multiply; }               /* legacy white-plate photos melt into the paper */
.fig { position: relative; margin: 0; }
.crop { position: relative; }
.crop::before, .crop::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--ink-4); border-style: solid;
}
.crop::before { left: 0; top: 0; border-width: 1px 0 0 1px; }
.crop::after { right: 0; bottom: 0; border-width: 0 1px 1px 0; }
.fig-caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; }

/* vertical dimension line: place inside a position:relative box that hugs the object */
.dim {
  position: absolute; top: 0; bottom: 0; right: -30px; width: 1px; background: var(--ink-4);
  pointer-events: none;
}
.dim::before, .dim::after { content: ""; position: absolute; left: -5px; width: 11px; height: 1px; background: var(--ink-4); }
.dim::before { top: 0; }
.dim::after { bottom: 0; }
.dim__label {
  position: absolute; top: 50%; left: 8px; transform: translateY(-50%) rotate(-90deg) translateX(50%);
  transform-origin: left center; white-space: nowrap; background: var(--paper); padding: 2px 6px;
  font: 600 calc(15.3px * var(--fs))/1 var(--f-sans); letter-spacing: 0; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.ground { height: 1px; background: var(--rule-2); position: relative; }

/* ───────────── product card ───────────── */
.cards { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.card {
  position: relative; display: flex; flex-direction: column; background: var(--white);
  border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 18px 18px 20px;
  transition: background-color .15s;
}
.card:hover { background: #fff; }
.card__media { aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 8% 10%; }
.card__media img { max-height: 100%; width: auto; object-fit: contain; transition: transform .3s var(--ease); }
.card:hover .card__media img { transform: translateY(-4px); }
.card__range { margin-top: 14px; }
.card__range { font-weight: 700; }
.card__name { margin-top: 6px; font-size: calc(21px * var(--fs)); font-weight: 700; letter-spacing: -0.005em; line-height: 1.15; }
.card__meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 2px 14px; font: 600 calc(15.3px * var(--fs))/1.45 var(--f-sans); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card__link::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 1100px) { .cards { --cols: 3; } }
@media (max-width: 760px) { .cards { --cols: 2; } .card { padding: 12px 12px 16px; } .card__name { font-size: calc(18px * var(--fs)); } }
/* ───────────── New arrival ───────────── */
/* the badge: red field, white text, a small white square (the same square motif as .chip::before), no radius */
.badge-new {
  display: inline-flex; align-items: center; gap: 8px; min-height: 28px; padding: 0 11px;
  background: var(--red); color: var(--white); white-space: nowrap;
  font: 700 calc(15px * var(--fs))/1 var(--f-sans); letter-spacing: .01em;
}
.badge-new::before { content: ""; width: 6px; height: 6px; background: var(--white); flex: none; }
.badge-new--sm { min-height: 24px; padding: 0 8px; gap: 6px; }
/* the card: ink with a spotlight behind the machine and a red bar on top */
.card--new { background: var(--arrival-bg); border-color: var(--ink); color: var(--dark-1); }
.card--new:hover { background: var(--arrival-bg); }
.card--new .card__bar { position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--red); transform-origin: left center; }
.card--new .card__name { color: var(--white); }
.card--new .card__meta { color: var(--dark-2); }
.card--new .card__media:has(.plate) { background: var(--white); }      /* an old white-background photo keeps a light panel */

/* ───────────── breadcrumb ───────────── */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.crumbs { color: var(--ink); font-weight: 600; font-size: calc(15px * var(--fs)); }
.crumbs a { color: var(--ink-2); font-weight: 500; font-size: calc(15.3px * var(--fs)); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }
.crumbs a:hover { color: var(--red-ink); text-decoration-color: currentColor; }
.crumbs li + li::before { content: ""; display: inline-block; width: 1px; height: 14px; margin-right: 10px; background: var(--ink-4); transform: translateY(2px) rotate(20deg); }

/* ───────────── page header block (inner pages) ───────────── */
.page-head { padding: clamp(40px, 6vw, 88px) 0 clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--rule); }
.page-head .crumbs { margin-bottom: clamp(28px, 4vw, 48px); }
.page-head .h1 { max-width: 16ch; }
.page-head .lede { margin-top: 20px; }

/* ───────────── forms ───────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .field__label { font: 600 calc(15px * var(--fs))/1.3 var(--f-sans); letter-spacing: 0; text-transform: none; color: var(--ink); }
.field .req { color: var(--red-ink); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: var(--white); border: 1px solid var(--rule-2); border-radius: 0;
  font-size: calc(17px * var(--fs)); transition: border-color .15s, box-shadow .15s; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-4); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); outline: none; }
.input::placeholder, .textarea::placeholder { color: var(--ink-2); opacity: .85; }
.field__hint { font-size: calc(15.3px * var(--fs)); font-weight: 500; line-height: 1.5; color: var(--ink-2); }

/* ───────────── header ─────────────
   Dark strip (40px) + white row (81px). The whole header is sticky at top:-40px, so the strip scrolls away and the white row stays.
   Under 1020px the phone layout is used: strip 44px, white row 65px, and the menu opens as a panel under the header. */
.site-header {
  --hp: max(44px, calc((100vw - var(--wrap)) / 2 + 44px));   /* side space: 44px, growing on screens wider than the page */
  position: sticky; top: -40px; z-index: 50; background: #fff;
}
.site-header.is-stuck { box-shadow: 0 6px 18px rgba(21, 19, 15, .08); }
.hdr-strip { height: 40px; background: #15130f; display: flex; align-items: center; padding-right: var(--hp); color: #f6f4ef; font-size: 15px; font-weight: 500; white-space: nowrap; }
.hdr-tag { margin: 0; height: 40px; display: flex; align-items: center; padding: 0 34px 0 var(--hp); background: var(--red); color: #fff; font-weight: 700; clip-path: polygon(0 0, 100% 0, calc(100% - 18px) 100%, 0 100%); }
.hdr-contact { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.hdr-contact a { display: flex; align-items: center; gap: 7px; transition: color .15s; }
.hdr-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hdr-contact a svg { flex: none; stroke: var(--red); }
.hdr-contact .hdr-tel { font-weight: 700; font-variant-numeric: tabular-nums; }
.hdr-contact > a, .hdr-links > a { min-width: 0; }
.hdr-links { display: flex; align-items: center; gap: 24px; }
.hdr-links a { position: relative; display: flex; align-items: center; height: 40px; }
.hdr-links a:hover { text-decoration: none; }
.hdr-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 9px; height: 1px; background: #fff; opacity: 0; }
.hdr-links a:hover::after { opacity: 1; }
.hdr-links a[aria-current="page"] { color: #fff; font-weight: 700; }
.hdr-links a[aria-current="page"]::after { height: 2px; bottom: 6px; background: var(--red); opacity: 1; }
.hdr-div { width: 1px; height: 16px; background: #3a3630; flex: none; }
.nav__list > a.nav-s, .nav__list > .nav-more { display: none; }

.hdr-row { height: 81px; box-sizing: border-box; background: #fff; border-bottom: 1px solid var(--rule); display: flex; align-items: center; gap: 32px; padding: 0 var(--hp); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; display: block; }
.nav { display: flex; align-self: stretch; gap: 18px; font-size: calc(clamp(15px, 0.5vw + 8px, 19px) * var(--fs)); font-weight: 700; color: #3b3732; white-space: nowrap; }
.nav__list { display: contents; }
.nav__list > a { position: relative; display: flex; align-items: center; transition: color .15s; }
.nav__list > a:hover { color: var(--red-ink); }
.nav__list > a[aria-current="page"] { color: #15130f; font-weight: 700; }
.nav__list > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--red); }
.nav__extra { display: none; }
.hdr-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; flex: none; }
.hdr-search-btn, .menu-btn { width: 44px; height: 44px; box-sizing: border-box; padding: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--rule-2); background: #fff; color: #15130f; border-radius: 0; transition: border-color .15s; }
.hdr-search-btn:hover { border-color: #15130f; }
.hdr-search-btn .i-close { display: none; }
.hdr-search-btn[aria-expanded="true"] { background: #15130f; border-color: #15130f; color: #fff; }
.hdr-search-btn[aria-expanded="true"] .i-open { display: none; }
.hdr-search-btn[aria-expanded="true"] .i-close { display: block; }
.hdr-quote { height: 44px; display: flex; align-items: center; padding: 0 20px; background: var(--red); color: #fff; font-size: 16.3px; font-weight: 700; white-space: nowrap; transition: background .15s; }
.hdr-quote:hover { background: var(--red-ink); }
.menu-btn { display: none; width: auto; gap: 10px; padding: 0 14px; background: #15130f; border-color: #15130f; color: #fff; font: 700 16px/1 var(--f-sans); }
.menu-btn .i-x { display: none; }
.nav-open .menu-btn .i-x { display: block; }
.nav-open .menu-btn .i-bars { display: none; }

/* search band under the header */
.hdr-search { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); box-shadow: 0 10px 24px rgba(21, 19, 15, .10); padding: 22px var(--hp) 18px; }
.hdr-search [hidden], .hdr-search[hidden] { display: none !important; }
.hdr-search__input::-webkit-search-cancel-button, .hdr-search__input::-webkit-search-decoration { -webkit-appearance: none; display: none; }
.hdr-search__in { max-width: 900px; display: flex; flex-direction: column; gap: 12px; }
.hdr-search__form { display: flex; margin: 0; }
.hdr-search__input { flex: 1; min-width: 0; height: 52px; box-sizing: border-box; border: 2px solid #15130f; border-right: 0; background: #fff; padding: 0 18px; font: 500 18px var(--f-sans); color: #15130f; border-radius: 0; -webkit-appearance: none; appearance: none; }
.hdr-search__input::placeholder { color: #5f5a52; opacity: 1; }
.hdr-search__input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.hdr-search__input.has-text { font-weight: 600; }
.hdr-search__go { flex: none; height: 52px; padding: 0 26px; border: 0; background: #15130f; color: #fff; display: flex; align-items: center; gap: 10px; font: 700 17px var(--f-sans); border-radius: 0; }
.hdr-search__go:hover { background: #000; }
.hdr-quick { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; font-weight: 500; color: #3b3732; }
.hdr-quick b { color: #15130f; font-weight: 700; }
.hdr-quick a { text-decoration: underline; text-underline-offset: 3px; }
.hdr-quick a:hover { color: var(--red-ink); }
.hdr-search.has-query { padding-bottom: 28px; }
.hdr-search.has-query .hdr-quick { display: none; }
.hdr-res { margin-top: -12px; border: 1px solid var(--rule-2); border-top: 0; background: #fff; }
.hdr-res[hidden] { display: none; }
.hdr-res__head { margin: 0; height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; border-bottom: 1px solid var(--rule); font-size: 15px; font-weight: 600; color: #3b3732; }
.hdr-res__head b { color: #15130f; font-weight: 700; }
.hdr-res__head span:last-child { font-weight: 500; }
.hdr-res__list { margin: 0; padding: 0; list-style: none; }
.hdr-res__list a { height: 60px; box-sizing: border-box; display: flex; align-items: center; gap: 14px; padding: 0 16px; background: #fff; border-bottom: 1px solid var(--rule); }
.hdr-res__list li[aria-selected="true"] a { background: var(--red-tint); }
.hdr-res__pic { width: 44px; height: 44px; flex: none; box-sizing: border-box; border: 1px solid var(--rule); background: #fff; object-fit: contain; display: block; }
.hdr-res__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hdr-res__name { font-size: 16.5px; font-weight: 700; color: #15130f; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-res__sub { font-size: 15px; font-weight: 500; color: #3b3732; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-res__fit { margin-left: auto; flex: none; font-size: 15px; font-weight: 600; color: #15130f; background: #f3f2ee; padding: 3px 9px; white-space: nowrap; }
.hdr-res__foot { margin: 0; min-height: 44px; display: flex; align-items: center; padding: 0 16px; font-size: 15px; font-weight: 500; color: #3b3732; }
.hdr-none { padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #3b3732; line-height: 1.5; }
.hdr-none p { margin: 0; }
.hdr-none__t { font-size: 16.5px; font-weight: 700; color: #15130f; }
.hdr-none__call { display: flex; flex-wrap: wrap; gap: 6px 16px; font-weight: 700; color: #15130f; }
.hdr-none__call a { text-decoration: underline; text-underline-offset: 3px; font-variant-numeric: tabular-nums; }
.hdr-none__call a:hover { color: var(--red-ink); }

@media (max-width: 1439px) {
  .hdr-row { gap: 24px; }
  .brand img { height: 42px; }
  .nav { gap: 14px; }
}
@media (max-width: 1359px) {
  .hdr-row { gap: 20px; }
  .brand img { height: 40px; }
  .nav { gap: 12px; }
}

/* tight strip (up to 1179px, since the strip has Spare parts too): WhatsApp and email become icon-only buttons (44px hit area). There is room for both icons at every desktop width, so the email icon never needs hiding. */
@media (min-width: 1020px) and (max-width: 1179px) {
  .hdr-row { gap: 12px; }
  .nav { gap: 10px; }
  .hdr-quote { padding: 0 16px; }
  .hdr-contact { gap: 20px; }
  .hdr-contact .hdr-wa { margin-left: -8px; }
  .hdr-contact .lbl { display: none; }
  .hdr-contact .hdr-wa, .hdr-contact .hdr-mail { width: 44px; height: 40px; justify-content: center; }
}

/* phone and tablet layout */
@media (max-width: 1019px) {
  :root { --header-h: 65px; }
  .site-header { --hp: 20px; top: -44px; }
  .hdr-strip { height: 44px; padding: 0 4px 0 20px; }
  .hdr-tag, .hdr-links, .hdr-div, .hdr-contact .lbl { display: none; }
  .hdr-contact { display: contents; }
  .hdr-contact > a { height: 44px; }
  .hdr-contact .hdr-tel { gap: 8px; }
  .hdr-contact .hdr-wa { margin-left: auto; }
  .hdr-contact .hdr-wa, .hdr-contact .hdr-mail { width: 44px; justify-content: center; }
  .hdr-contact .hdr-wa svg, .hdr-contact .hdr-mail svg { width: 19px; height: 19px; }
  .hdr-row { height: 65px; gap: 8px; }
  .brand { margin-right: auto; }
  .brand img { height: 38px; }
  .hdr-tools { margin-left: 0; gap: 8px; }
  .hdr-tools .hdr-search-btn { display: flex; }
  .hdr-tools .hdr-quote { display: none; }
  .menu-btn { display: flex; }
  .hdr-search { padding-top: 16px; }
  .hdr-search__go span { display: none; }
  .hdr-search__go { padding: 0 18px; }
  .hdr-res__head span:last-child { display: none; }
  .hdr-res__list a { height: auto; min-height: 60px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; row-gap: 6px; }
  .hdr-res__txt { flex: 1 1 calc(100% - 58px); }
  .hdr-res__fit { flex-basis: auto; margin: 0 0 0 58px; }
  .nav {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: -1; flex-direction: column; gap: 0; align-self: auto; white-space: normal;
    padding: 6px 20px 24px; background: #fafaf8; overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; opacity: 0; transition: opacity .2s var(--ease), visibility 0s .2s;
  }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .2s var(--ease); }
  .nav__list { display: flex; flex-direction: column; font-size: 22px; font-weight: 700; letter-spacing: -.01em; color: #15130f; }
  .nav__list > a.nav-s { display: flex; }
  .nav__list > .nav-more { display: flex; margin: 0; padding: 16px 0 6px; color: var(--ink-2); flex: none; }
  .nav__list > a { height: 52px; flex: none; gap: 12px; border-bottom: 1px solid var(--rule); }
  .nav__list > a[aria-current="page"] { color: var(--red-ink); }
  .nav__list > a[aria-current="page"]::before { content: ""; width: 10px; height: 10px; background: var(--red); flex: none; }
  .nav__list > a[aria-current="page"]::after { display: none; }
  .nav__extra { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 16px; }
  .nav__extra .hdr-quote { display: flex; height: 52px; justify-content: center; font-size: 17px; }
  .nav__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .nav__pair a { height: 48px; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--rule-2); background: #fff; font-size: 16px; font-weight: 700; }
  .nav__pair svg { stroke: var(--red); }
  .nav-open { overflow: hidden; }
}

/* ───────────── footer ───────────── */
.site-footer { background: var(--ink); color: var(--dark-2); padding: clamp(56px, 7vw, 96px) 0 28px; }
.site-footer a { color: var(--dark-2); transition: color .15s; }
.site-footer a:hover { color: var(--white); }
/* footer column headings: white, bold, red bar in front */
.site-footer .label { display: flex; align-items: center; gap: 12px; color: var(--white); font-weight: 700; font-size: calc(16px * var(--fs)); }
.site-footer .label::before { content: ""; width: 20px; height: 3px; background: var(--red); flex: none; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-brand img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-origin { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.footer-origin svg { flex: none; }
.footer-gstin { white-space: nowrap; }
.footer-brand p { margin-top: 20px; max-width: 36ch; color: var(--dark-2); font-size: calc(16.3px * var(--fs)); font-weight: 500; line-height: 1.55; }
.footer-col .label { margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col li { font-size: calc(16.3px * var(--fs)); font-weight: 500; line-height: 1.45; }
.footer-sub { margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--dark-line); }
.footer-sub li { font-size: calc(15.3px * var(--fs)); }
.footer-contact .big { display: block; font-size: calc(22px * var(--fs)); font-weight: 700; color: var(--white); letter-spacing: 0; }
.footer-bottom { margin-top: clamp(48px, 6vw, 80px); padding-top: 22px; border-top: 1px solid var(--dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font: 500 calc(15.3px * var(--fs))/1.5 var(--f-sans); letter-spacing: 0; color: var(--dark-2); }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ───────────── enquiry band (shared CTA) ───────────── */
.cta-band { background: var(--white); border-top: 1px solid var(--rule); }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.cta-band__contacts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); }
.cta-band__contacts a { display: block; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); transition: color .15s; }
.cta-band__contacts a:hover { color: var(--red-ink); }
.cta-band__contacts strong { display: block; font-size: calc(clamp(19px, 1.5vw, 23px) * var(--fs)); letter-spacing: 0; margin-top: 6px; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .cta-band__contacts { grid-template-columns: 1fr; } }

/* ───────────── motion helpers (JS adds .js to <html>) ───────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Existing series marks in roomy titles and navigation; compact marks retain readable mobile size. */
.range-logo--compact { display: inline-block; vertical-align: middle; --logo-k: 1; max-width: min(100%, 160px); }
.range-logo-pair { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dl-seg[aria-pressed="true"] .range-logo, .card--new .range-logo, .pc-card--new .range-logo, .xr-info__name .range-logo { filter: brightness(0) invert(1); }

/* Product-led navigation, with support links retained in the upper strip. */
.nav-products { display: flex; align-content: center; }
.nav-products > summary { display: flex; align-items: center; gap: 8px; height: 100%; cursor: pointer; list-style: none; }
.nav-products > summary::-webkit-details-marker { display: none; }
.nav-products[open] > summary { color: var(--red-ink); }
.nav-products[open] > summary svg { transform: rotate(180deg); }
.nav-products__panel { position: absolute; top: 100%; left: var(--hp); right: var(--hp); background: #fff; border: 1px solid var(--rule); box-shadow: 0 16px 30px #0002; padding: 24px; white-space: normal; }
.nav-products__all { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--rule); font-size: 20px; color: var(--red-ink); }
.nav-products__groups { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 24px; padding: 20px 0; }
.nav-products__groups a { display: block; padding: 7px 0; }
.nav-products__group { font-weight: 800; color: var(--ink); }
.nav-products__tools { display: flex; flex-wrap: wrap; gap: 24px; border-top: 1px solid var(--rule); padding-top: 16px; }
.nav__list > .nav-arrival { color: var(--red-ink); }
.hdr-links a.hdr-red { color: #ff5a4d; font-weight: 700; }
.hdr-links a.hdr-red:hover, .hdr-links a.hdr-red:focus-visible { color: #ff8a80; }
.hdr-links a.hdr-red::after { background: #ff8a80; }
.nav__list > a.nav-arrival:hover, .nav__list > a.nav-arrival:focus-visible { color: var(--red-deep); }
@media (max-width: 1019px) {
  .nav-products { display: block; flex: none; border-bottom: 1px solid var(--rule); }
  .nav-products > summary { height: 52px; min-height: 52px; justify-content: space-between; }
  .nav-products__panel { position: static; border: 0; box-shadow: none; padding: 8px 0 20px; font-size: 16px; }
  .nav-products__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
  .nav-products__tools { gap: 12px 20px; }
}
