/* ============================================================
   Продажа Шайб — таблица стилей
   Палитра: тёплая бумага + медь/латунь + чёрная типографика
   ============================================================ */

:root {
  --bg: #f1ece1;
  --bg-2: #e8e1d1;
  --bg-3: #dfd5bf;
  --paper: #f8f4ea;
  --ink: #181410;
  --ink-2: #4a443c;
  --ink-3: #7a7165;
  --line: #1814101a;
  --line-2: #1814102e;
  --copper: #b87333;
  --copper-deep: #8b4f1f;
  --copper-light: #d99654;
  --brass: #c8a85a;
  --aluminum: #a8aaae;
  --paronite: #3b4438;
  --fiber: #8a3a26;
  --accent: #c4452e;
  --ok: #2f6b3c;

  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Menlo", monospace;

  --r-sm: 4px;
  --r: 8px;
  --r-lg: 14px;
  --r-xl: 22px;

  --pad: clamp(20px, 4vw, 64px);
  --maxw: 1440px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ----- Typography ----- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.96;
}
.mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* ----- Layout ----- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ============================================================
   Top utility bar
   ============================================================ */
.topbar {
  background: var(--ink);
  color: #d9d3c5;
  font-family: var(--font-mono);
  font-size: 12px;
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.topbar .tb-left, .topbar .tb-right {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar .dot {
  width: 6px; height: 6px; background: #6fbf7f; border-radius: 50%;
  display: inline-block; margin-right: 6px; vertical-align: middle;
}
.topbar a:hover { color: var(--copper-light); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(241, 236, 225, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
}
.logo-mark {
  width: 44px; height: 44px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #f0c69b, #b87333 55%, #6b3e1a);
  position: relative;
  box-shadow: inset 0 0 0 1px #00000022, inset 0 -4px 8px #0000003a;
}
.logo-mark::after {
  content: "";
  position: absolute;
  inset: 33%;
  background: var(--bg);
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #00000022;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text .name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.logo-text .url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  gap: 4px;
  justify-content: center;
}
.nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: 0.15s;
}
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a.active { background: var(--ink); color: var(--bg); }

.header-actions { display: flex; gap: 10px; align-items: center; }

.icon-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line-2);
  background: transparent;
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink);
  transition: 0.15s;
  position: relative;
}
.icon-btn:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 18px; height: 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  display: grid; place-items: center;
  padding: 0 5px;
  font-family: var(--font-mono);
}
.cart-count[data-empty="true"] { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  font-weight: 500;
  font-size: 14px;
  transition: 0.15s;
}
.btn:hover { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.copper { background: var(--copper); border-color: var(--copper); color: #fff; }
.btn.copper:hover { background: var(--copper-deep); border-color: var(--copper-deep); }
.btn.big { padding: 16px 28px; font-size: 15px; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding-top: 56px;
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: end;
  min-height: 620px;
}
.hero-left { padding-bottom: 48px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 28px;
}
.hero-eyebrow .pill {
  background: var(--ink); color: var(--bg);
  padding: 3px 10px; border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 7.2vw, 108px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.92;
  margin-bottom: 28px;
}
.hero h1 em {
  font-style: normal;
  color: var(--copper);
  font-weight: 400;
  font-family: "Spectral", "EB Garamond", Georgia, serif;
  font-style: italic;
  letter-spacing: -0.02em;
}
.hero h1 .stamp {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 0 14px 4px;
  border-radius: 999px;
  font-size: 0.55em;
  vertical-align: middle;
  margin: 0 0.1em 0.18em 0;
  font-family: var(--font-display);
  letter-spacing: 0;
}

.hero p.lead {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.55;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-2);
  max-width: 540px;
}
.hero-meta .num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero-meta .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
  line-height: 1.3;
}

/* Hero washer visual */
.hero-right {
  position: relative;
  height: 620px;
  display: grid;
  place-items: center;
}
.hero-washer {
  width: 520px;
  height: 520px;
  max-width: 92%;
  position: relative;
  filter: drop-shadow(0 30px 50px #1814101f);
}
.hero-washer svg { width: 100%; height: 100%; }

.hero-callout {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 12px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}
.hero-callout .key { color: var(--ink-3); }
.hero-callout .val { color: var(--ink); font-weight: 600; }
.hero-callout::before {
  content: "";
  position: absolute;
  background: var(--ink);
  border-radius: 50%;
  width: 6px; height: 6px;
}
.hero-callout.c1 { top: 8%; left: -6%; }
.hero-callout.c1::before { right: -36px; top: 50%; transform: translateY(-50%); box-shadow: 0 0 0 1px var(--paper), 8px 0 0 -2px var(--ink), 16px 0 0 -2px var(--ink), 24px 0 0 -2px var(--ink); }
.hero-callout.c2 { top: 36%; right: -2%; }
.hero-callout.c3 { bottom: 18%; left: 4%; }

.hero-ticker {
  margin-top: 0;
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
  overflow: hidden;
  white-space: nowrap;
}
.hero-ticker-track {
  display: inline-flex;
  gap: 56px;
  padding: 16px 0;
  animation: ticker 50s linear infinite;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-2);
}
.hero-ticker-track span { display: inline-flex; align-items: center; gap: 56px; }
.hero-ticker-track .sep {
  width: 5px; height: 5px; background: var(--copper); border-radius: 50%;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Categories
   ============================================================ */
.section {
  padding-top: 96px;
  padding-bottom: 96px;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 48px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
}
.section-head .eyebrow { margin-bottom: 16px; display: block; }
.section-head .sub {
  max-width: 360px;
  color: var(--ink-2);
  font-size: 15px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  overflow: hidden;
  transition: 0.2s;
  cursor: pointer;
  min-height: 280px;
}
.cat-card:hover {
  border-color: var(--ink);
  transform: translateY(-3px);
}
.cat-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}
.cat-card h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cat-card .items {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  display: flex; flex-wrap: wrap; gap: 4px 12px;
}
.cat-card .items span::before { content: "·"; margin-right: 6px; color: var(--ink-3); }
.cat-card .items span:first-child::before { content: none; }
.cat-card .viz {
  margin-top: auto;
  margin-right: -28px;
  margin-bottom: -28px;
  width: 200px;
  height: 200px;
  align-self: flex-end;
}
.cat-card .arrow {
  position: absolute;
  top: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  transition: 0.2s;
}
.cat-card:hover .arrow { background: var(--copper); transform: rotate(-45deg); }

/* ============================================================
   Catalog (filterable products)
   ============================================================ */
.catalog-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}
.chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.15s;
}
.chip:hover { color: var(--ink); border-color: var(--ink); }
.chip.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip .count {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.6;
}
.catalog-bar .spacer { flex: 1; }
.sort-select {
  font: inherit;
  font-size: 14px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.product {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  transition: 0.2s;
  position: relative;
}
.product:hover { border-color: var(--ink); }
.product[data-hidden="true"] { display: none; }

.product-viz {
  aspect-ratio: 1;
  background: var(--bg);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
}
.product-viz svg { width: 75%; height: 75%; }
.product-tag {
  position: absolute;
  top: 10px; left: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 4px 8px;
  border-radius: 999px;
}
.product-tag.sale { background: var(--accent); }
.product-tag.new { background: var(--ok); }
.product-fav {
  position: absolute;
  top: 10px; right: 10px;
  width: 28px; height: 28px;
  background: var(--paper);
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  color: var(--ink-3);
}
.product-fav:hover { color: var(--accent); }

.product .mat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.product .mat .swatch {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  border: 1px solid #0000001a;
}
.product h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  min-height: 38px;
}
.product .specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 14px;
  padding: 10px;
  background: var(--bg);
  border-radius: var(--r);
}
.product .specs div { display: flex; flex-direction: column; gap: 2px; }
.product .specs .k { color: var(--ink-3); font-size: 9px; letter-spacing: 0.06em; text-transform: uppercase; }
.product .specs .v { color: var(--ink); font-weight: 600; }

.product-foot {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-top: auto;
  gap: 12px;
}
.price { display: flex; flex-direction: column; gap: 2px; }
.price .v {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price .v small { font-size: 13px; color: var(--ink-3); margin-left: 2px; }
.price .pack {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.add-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  display: grid; place-items: center;
  transition: 0.15s;
  flex: 0 0 auto;
}
.add-btn:hover { background: var(--copper); transform: rotate(90deg); }
.add-btn.added { background: var(--ok); }

.catalog-foot {
  display: flex; justify-content: center; margin-top: 32px;
}

/* ============================================================
   Size matrix (Размерный ряд)
   ============================================================ */
.matrix-section { background: var(--bg-2); }
.matrix-section .wrap { padding-top: 96px; padding-bottom: 96px; }

.matrix-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line-2);
}
.matrix-tab {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.matrix-tab:hover { color: var(--ink); border-color: var(--ink); }
.matrix-tab.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.matrix-tab .sw {
  width: 10px; height: 10px; border-radius: 50%; border: 1px solid #0002;
}

.matrix-controls {
  display: grid;
  grid-template-columns: 2fr 2fr 1.4fr 1.6fr auto;
  gap: 12px;
  margin-bottom: 20px;
  align-items: end;
}
.mc-field { display: flex; flex-direction: column; gap: 6px; }
.mc-field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.mc-pills { display: flex; gap: 4px; flex-wrap: wrap; }
.mc-pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  min-width: 38px;
  text-align: center;
}
.mc-pill:hover { color: var(--ink); border-color: var(--ink); }
.mc-pill.active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.matrix-search {
  font: inherit;
  font-size: 14px;
  padding: 11px 14px;
  background: var(--paper);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  width: 100%;
}
.matrix-search:focus { outline: none; border-color: var(--ink); }
.mc-reset {
  font: inherit;
  font-size: 12px;
  font-family: var(--font-mono);
  background: transparent;
  border: 0;
  color: var(--ink-3);
  padding: 11px 8px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mc-reset:hover { color: var(--ink); }

.matrix-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  margin-bottom: 12px;
}
.matrix-info b { color: var(--ink); font-weight: 600; }

.matrix-table {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.matrix-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1fr 1fr 1fr 1fr 1.1fr 110px;
  align-items: center;
  padding: 0 18px;
  font-size: 14px;
  border-bottom: 1px solid var(--line);
  min-height: 56px;
  gap: 12px;
}
.matrix-row:last-child { border-bottom: 0; }
.matrix-row.head {
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  min-height: 42px;
  font-weight: 500;
}
.matrix-row .preview {
  display: grid; place-items: center;
}
.matrix-row .preview svg { width: 32px; height: 32px; }
.matrix-row .sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 2px;
}
.matrix-row .nm {
  font-weight: 500;
}
.matrix-row .nm .sku { display: block; }
.matrix-row .num {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1;
  font-weight: 500;
}
.matrix-row .num .unit { color: var(--ink-3); font-weight: 400; margin-left: 2px; font-size: 11px; }
.matrix-row .pr {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.matrix-row .pr .unit { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-left: 2px; font-weight: 400; letter-spacing: 0; }
.matrix-row .stock {
  font-family: var(--font-mono);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.matrix-row .stock::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ok);
}
.matrix-row .stock[data-stock="low"]::before { background: var(--copper); }
.matrix-row .stock[data-stock="order"]::before { background: var(--ink-3); }
.matrix-row .stock[data-stock="low"] { color: var(--copper-deep); }
.matrix-row .stock[data-stock="order"] { color: var(--ink-3); }
.matrix-row .add {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  border: 0;
  display: grid; place-items: center;
  justify-self: end;
  transition: 0.15s;
}
.matrix-row .add:hover { background: var(--copper); transform: rotate(90deg); }
.matrix-row .add.added { background: var(--ok); }
.matrix-row:hover:not(.head) { background: var(--bg); }
.matrix-row[data-hidden="true"] { display: none; }

.matrix-empty {
  padding: 60px 24px;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
}
.matrix-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 24px;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.matrix-legend {
  display: flex; gap: 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
}
.matrix-legend span { display: inline-flex; align-items: center; gap: 6px; }
.matrix-legend i {
  width: 6px; height: 6px; border-radius: 50%; display: inline-block; background: var(--ok);
}
.matrix-legend .low i { background: var(--copper); }
.matrix-legend .order i { background: var(--ink-3); }

@media (max-width: 900px) {
  .matrix-controls { grid-template-columns: 1fr 1fr; }
  .matrix-row {
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
    min-height: auto;
    gap: 6px;
  }
  .matrix-row.head { display: none; }
  .matrix-row .preview { display: none; }
  .matrix-row .nm { grid-column: 1 / 2; }
  .matrix-row .num,
  .matrix-row .stock { grid-column: 1 / 2; font-size: 12px; }
  .matrix-row .pr { grid-column: 1 / 2; }
  .matrix-row .add { grid-column: 2; grid-row: 1 / 5; align-self: center; }
}

/* ============================================================
   Standards section
   ============================================================ */
.standards {
  background: var(--ink);
  color: var(--bg);
}
.standards .wrap { padding-top: 96px; padding-bottom: 96px; }
.standards .section-head h2 { color: var(--bg); }
.standards .section-head .sub { color: #d9d3c5cc; }
.standards .eyebrow { color: var(--copper-light); }

.std-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 1px;
  background: #ffffff14;
  border: 1px solid #ffffff14;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.std-cell {
  padding: 32px;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
}
.std-cell .big {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 0.9;
  color: var(--copper-light);
}
.std-cell .big sup { font-size: 0.4em; vertical-align: 0.6em; color: #d9d3c5; margin-left: 4px; }
.std-cell h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
}
.std-cell p { font-size: 14px; color: #d9d3c5cc; line-height: 1.5; }
.std-cell.wide { grid-row: span 2; }
.std-cell.wide .big { font-size: 96px; }
.std-cell .badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; }
.std-cell .badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 5px 10px;
  border: 1px solid #ffffff33;
  border-radius: 999px;
  color: #d9d3c5;
}

/* ============================================================
   Process / Order steps
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 240px;
}
.step .n {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 500;
  color: var(--copper);
  letter-spacing: -0.04em;
  line-height: 1;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.step p { color: var(--ink-2); font-size: 14px; line-height: 1.5; }

/* ============================================================
   Bulk order CTA
   ============================================================ */
.order-block {
  background: var(--bg-3);
  border-radius: var(--r-xl);
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.order-block::before {
  content: "";
  position: absolute;
  width: 480px; height: 480px;
  right: -180px; top: -180px;
  background: radial-gradient(circle, #b8733344 0%, transparent 65%);
  pointer-events: none;
}
.order-block h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 16px;
}
.order-block p {
  color: var(--ink-2);
  max-width: 380px;
  margin-bottom: 24px;
}
.order-features { display: flex; flex-direction: column; gap: 10px; }
.order-features li {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px;
}
.order-features li svg { color: var(--copper); flex-shrink: 0; }

form.order-form {
  background: var(--paper);
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  z-index: 1;
}
form.order-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--ink);
  width: 100%;
  font-family: inherit;
}
.field textarea { min-height: 80px; resize: vertical; font-family: inherit; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--ink); background: var(--paper);
}
form.order-form .btn { justify-content: center; padding: 16px; }
form.order-form .terms {
  font-size: 11px; color: var(--ink-3); line-height: 1.5;
}
form.order-form .terms a { text-decoration: underline; }
form.order-form.sent .form-fields { display: none; }
form.order-form.sent .form-success { display: flex; }
.form-success {
  display: none;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  text-align: center;
  padding: 24px 0;
}
.form-success .check {
  width: 64px; height: 64px;
  background: var(--ok); color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
}
.form-success h3 { font-family: var(--font-display); font-weight: 500; font-size: 22px; }

/* ============================================================
   News teaser
   ============================================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.news-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  min-height: 220px;
  transition: 0.2s;
}
.news-card:hover { border-color: var(--ink); }
.news-card .date {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.news-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.news-card p {
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.5;
}
.news-card .more {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--copper);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--ink);
  color: #d9d3c5;
  padding-top: 72px;
  padding-bottom: 28px;
  margin-top: 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.footer .logo-text .name { color: var(--bg); }
.footer .logo-text .url { color: var(--copper-light); }
.footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-light);
  margin-bottom: 18px;
}
.footer-col p, .footer-col a {
  font-size: 14px;
  color: #d9d3c5cc;
  display: block;
  line-height: 1.7;
}
.footer-col a:hover { color: var(--copper-light); }
.footer-bottom {
  border-top: 1px solid #ffffff14;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d9d3c599;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================================
   Cart drawer
   ============================================================ */
.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: 440px;
  max-width: 100%;
  background: var(--paper);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(.22,.61,.36,1);
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 40px #0000001a;
}
.cart-drawer.open { transform: translateX(0); }
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: #00000055;
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
}
.cart-backdrop.open { opacity: 1; pointer-events: auto; }

.cart-head {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-head h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cart-head .close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: transparent;
  display: grid; place-items: center;
}
.cart-head .close:hover { background: var(--ink); color: var(--bg); }

.cart-list { flex: 1; overflow-y: auto; padding: 16px 28px; }
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-viz {
  width: 56px; height: 56px;
  background: var(--bg);
  border-radius: var(--r);
  display: grid; place-items: center;
}
.cart-item-viz svg { width: 80%; height: 80%; }
.cart-item .nm {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.cart-item .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  margin-top: 3px;
}
.qty {
  display: flex; align-items: center;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--bg);
  margin-top: 6px;
  width: max-content;
}
.qty button {
  width: 24px; height: 24px;
  border: 0; background: transparent;
  display: grid; place-items: center;
  color: var(--ink-2);
}
.qty button:hover { color: var(--ink); }
.qty input {
  width: 32px; border: 0; background: transparent;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink);
}
.cart-item .right { display: flex; flex-direction: column; align-items: end; gap: 6px; }
.cart-item .pr { font-family: var(--font-display); font-weight: 500; font-size: 15px; }
.cart-item .rm {
  font-size: 11px; color: var(--ink-3); background: transparent; border: 0;
  text-decoration: underline; padding: 0;
}

.cart-empty {
  padding: 60px 28px;
  text-align: center;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 13px;
}

.cart-foot {
  padding: 20px 28px 24px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.cart-totals {
  display: flex; justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}
.cart-totals .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.cart-totals .v {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.cart-foot .btn { width: 100%; justify-content: center; padding: 16px; }

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 14px;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { color: var(--copper-light); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 1100px) {
  :root { --pad: clamp(20px, 4vw, 40px); }
  .header .wrap { grid-template-columns: auto 1fr auto; gap: 20px; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-bottom: 40px; }
  .hero-left { padding-bottom: 0; }
  .hero-right { height: 460px; order: -1; margin-bottom: 32px; }
  .hero-washer { width: 400px; height: 400px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .std-grid { grid-template-columns: 1fr 1fr; }
  .std-cell.wide { grid-row: auto; grid-column: span 2; }
  .std-cell.wide .big { font-size: 72px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .order-block { grid-template-columns: 1fr; padding: 36px; gap: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .matrix-controls { grid-template-columns: 1fr 1fr; }
  .matrix-row { grid-template-columns: 50px 1.4fr 60px 60px 60px 70px 1fr 90px; padding: 0 14px; }
}

@media (max-width: 820px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .matrix-row {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 14px 16px;
    min-height: auto;
    gap: 4px 12px;
    align-items: start;
  }
  .matrix-row.head { display: none; }
  .matrix-row .preview { display: none; }
  .matrix-row .nm { grid-column: 1 / 2; grid-row: 1; }
  .matrix-row .nm .sku { color: var(--ink-3); }
  .matrix-row .num { display: none; }
  .matrix-row .stock { grid-column: 1 / 2; grid-row: 2; font-size: 11px; }
  .matrix-row > div[style*="display:flex"] { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .matrix-row .pr { font-size: 16px; }
}

@media (max-width: 720px) {
  :root { --pad: 18px; }
  .topbar .tb-right { display: none; }
  .topbar .tb-left { font-size: 11px; }
  .header .wrap { grid-template-columns: auto 1fr; padding-top: 14px; padding-bottom: 14px; gap: 12px; }
  .logo-text .url { display: none; }
  .header-actions .btn { display: none; }
  .header-actions { gap: 6px; }
  .icon-btn { width: 38px; height: 38px; }
  .section { padding-top: 64px; padding-bottom: 64px; }
  .section-head {
    grid-template-columns: 1fr;
    margin-bottom: 32px;
    gap: 14px;
  }
  .section-head .sub { max-width: none; }
  .section-head h2 { font-size: 36px; }
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 48px; }
  .hero h1 .stamp { font-size: 0.5em; padding: 0 10px 2px; }
  .hero p.lead { font-size: 15px; margin-bottom: 24px; }
  .hero-right { height: 320px; margin-bottom: 24px; }
  .hero-washer { width: 280px; height: 280px; }
  .hero-callout.c1, .hero-callout.c2, .hero-callout.c3 { display: none; }
  .hero-meta { grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 24px; }
  .hero-meta .num { font-size: 26px; }
  .hero-eyebrow { font-size: 11px; margin-bottom: 22px; }
  .hero-ticker-track { gap: 32px; font-size: 12px; }
  .hero-ticker-track span { gap: 32px; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product { padding: 12px; }
  .product h4 { font-size: 14px; min-height: 34px; }
  .product .specs { padding: 8px; font-size: 10px; gap: 4px; }
  .product .specs .k { font-size: 8px; }
  .product .specs .v { font-size: 11px; }
  .price .v { font-size: 18px; }
  .add-btn { width: 36px; height: 36px; }
  .cat-grid { grid-template-columns: 1fr; gap: 10px; }
  .cat-card { min-height: 200px; padding: 22px; }
  .cat-card .viz { width: 140px; height: 140px; margin-right: -22px; margin-bottom: -22px; }
  .cat-card h3 { font-size: 22px; }
  .std-grid { grid-template-columns: 1fr; }
  .std-cell.wide { grid-column: auto; }
  .std-cell { padding: 24px; min-height: 0; }
  .std-cell .big, .std-cell.wide .big { font-size: 56px; }
  .process-grid { grid-template-columns: 1fr; gap: 10px; }
  .step { padding: 22px; min-height: 0; }
  .step .n { font-size: 44px; }
  .order-block { padding: 24px; border-radius: var(--r-lg); }
  .order-block h2 { font-size: 28px; }
  form.order-form { padding: 20px; }
  form.order-form .row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
  .footer { padding-top: 48px; }
  .footer-bottom { font-size: 11px; flex-direction: column; gap: 8px; }
  .cart-drawer { width: 100%; }
  .catalog-bar { gap: 6px; }
  .chip { padding: 7px 12px; font-size: 13px; }
  .sort-select { font-size: 13px; padding: 7px 12px; }
  .matrix-tabs { gap: 4px; padding-bottom: 18px; margin-bottom: 18px; }
  .matrix-tab { padding: 8px 12px; font-size: 12px; }
  .matrix-controls { grid-template-columns: 1fr; gap: 14px; }
  .matrix-controls .mc-reset { justify-self: start; padding: 6px 0; }
  .mc-pill { padding: 6px 9px; font-size: 11px; min-width: 32px; }
  .matrix-foot { flex-direction: column; align-items: stretch; }
  .matrix-foot .btn { justify-content: center; }
  .matrix-legend { flex-wrap: wrap; gap: 10px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 40px; }
  .section-head h2 { font-size: 30px; }
  .product-grid { grid-template-columns: 1fr; }
  .hero-meta { grid-template-columns: 1fr; gap: 14px; }
}
