/* JINCON factory store — bright storefront theme. */

@font-face {
  font-family: 'Archivo';
  src: url('/assets/fonts/Archivo-400800.woff2') format('woff2');
  font-weight: 400 800;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --tint: #f5f8ff;
  --tint-2: #eef4ff;
  --ink: #0b1a33;
  --body: #4b5565;
  --muted: #6b7484;
  --line: #e4e9f2;
  --line-strong: #cfd8e6;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #e6edff;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #fff0e8;
  --mint: #e4f8ef;
  --mint-ink: #0a6b4a;
  --lilac: #efeaff;
  --lilac-ink: #6644d6;
  --peach: #fff0e4;
  --peach-ink: #9a4516;
  --sky: #e4f0ff;
  --sky-ink: #1b63c7;
  --rose: #ffe8ec;
  --rose-ink: #b93b58;
  --error: #c0392b;
  --ok: #0f8a5f;

  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1280px;
  --gutter: clamp(18px, 3vw, 40px);
  --section: clamp(56px, 7vw, 96px);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 8px rgba(11, 26, 51, 0.05);
  --shadow: 0 12px 32px rgba(11, 26, 51, 0.09);
  --shadow-lg: 0 26px 60px rgba(11, 26, 51, 0.14);

  --fs-h1: clamp(2.5rem, 4.8vw, 4.1rem);
  --fs-h2: clamp(1.8rem, 3.1vw, 2.6rem);
  --fs-body: 1.0625rem;
  --fs-sm: 0.875rem;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

::selection {
  background: #cddcff;
  color: var(--ink);
}

:focus-visible {
  outline: 3px solid rgba(29, 78, 216, 0.45);
  outline-offset: 2px;
}

.visually-hidden {
  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 {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
}

.skip:focus {
  top: 12px;
}

.i {
  display: inline-flex;
  width: 1.05em;
  height: 1.05em;
  flex: none;
}

.i svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.narrow {
  max-width: 860px;
}

.kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.code {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: var(--fs-sm);
  color: var(--muted);
  line-height: 1.55;
}

.note {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--body);
  background: var(--tint);
  border-left: 3px solid var(--primary);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin-top: 24px;
}

/* ---------- announcement + header ---------- */

.announce {
  background: linear-gradient(90deg, #1e40af, #1d4ed8 55%, #2563eb);
  color: #fff;
  font-size: 0.8125rem;
}

.announce-in {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 40px;
  flex-wrap: wrap;
}

.announce-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.92);
}

.announce-item .i {
  font-size: 0.95em;
  color: #ffd9c7;
}

.announce-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 1px;
}

.announce-link:hover {
  border-color: #fff;
}

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 160ms ease;
}

.site-head[data-scrolled='true'] {
  box-shadow: 0 6px 24px rgba(11, 26, 51, 0.08);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-linecap: round;
}

.brand-mark rect {
  fill: var(--primary-soft);
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.nav ul {
  display: flex;
  gap: 26px;
}

.nav a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--primary);
  border-color: var(--primary);
}

.head-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tool {
  background: none;
  border: 0;
  padding: 10px;
  border-radius: 999px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
}

.tool:hover {
  background: var(--tint);
  color: var(--primary);
}

.head-cta {
  display: inline-flex;
}

.cart-btn {
  position: relative;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
}

.cart-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.cart-count[hidden] {
  display: none;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 10px 4px;
  cursor: pointer;
  font-weight: 600;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 12px 22px;
  font-size: 0.9375rem;
  font-weight: 650;
  cursor: pointer;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease,
    transform 140ms ease, box-shadow 140ms ease;
  background: var(--primary);
  color: #fff;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 10px 24px rgba(29, 78, 216, 0.25);
}

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  box-shadow: 0 12px 26px rgba(255, 106, 43, 0.3);
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn-ghost:hover {
  border-color: var(--ink);
  background: #fff;
}

.btn-light {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.btn-light:hover {
  background: #f2f6ff;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.btn-wide {
  width: 100%;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.link-arrow:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: var(--primary);
  font-size: var(--fs-sm);
  font-weight: 600;
  cursor: pointer;
}

.link-btn:hover {
  text-decoration: underline;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 82% 16%, #dbeafe 0%, rgba(219, 234, 254, 0) 62%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 52%, #ffffff 100%);
  padding-top: clamp(36px, 5vw, 64px);
  padding-bottom: clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
  box-shadow: var(--shadow-sm);
  margin-bottom: 22px;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-ink);
  box-shadow: 0 0 0 4px rgba(15, 138, 95, 0.12);
}

.hero-h1 {
  font-size: clamp(2.7rem, 5.2vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 15ch;
}

.hero-h1 .hl {
  color: var(--primary);
}

.hero-lede {
  margin-top: 20px;
  max-width: 54ch;
  font-size: 1.125rem;
  line-height: 1.62;
  color: var(--body);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 26px;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.875rem;
  color: var(--body);
}

.hero-trust .i {
  color: var(--mint-ink);
  font-size: 1rem;
}

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero-blob {
  position: absolute;
  inset: 8% 6% 6% 8%;
  background: linear-gradient(140deg, #bfdbfe, #e0e7ff 55%, #ffe4d6);
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  filter: blur(2px);
  opacity: 0.9;
}

.hero-card {
  position: relative;
  width: min(100%, 520px);
  background: #fff;
  border-radius: 30px;
  padding: 14px;
  box-shadow: var(--shadow-lg);
  margin: 0;
}

.hero-card picture,
.hero-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 22px;
  display: block;
}

.hero-badge {
  position: absolute;
  top: 26px;
  left: 26px;
  z-index: 2;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
}

.float-chip {
  position: absolute;
  z-index: 2;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--ink);
  box-shadow: var(--shadow);
  animation: floaty 6s ease-in-out infinite;
}

.chip-a {
  top: 22%;
  right: -14px;
  color: var(--primary);
}

.chip-b {
  bottom: 26%;
  left: -22px;
  color: var(--accent-dark);
  animation-delay: -2s;
}

.chip-c {
  bottom: 10%;
  right: 6%;
  animation-delay: -4s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(28px, 4vw, 48px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.stat {
  padding: 20px 24px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column-reverse;
  gap: 2px;
}

.stat:last-child {
  border-right: 0;
}

.stat dd {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--primary);
}

.stat dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- sections ---------- */

.section {
  padding-block: var(--section);
}

.section-tint {
  background: var(--tint);
}

.s-head {
  margin-bottom: clamp(26px, 3.4vw, 42px);
}

.s-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.s-title {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 24ch;
}

.s-lede {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.s-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--primary);
  white-space: nowrap;
}

.s-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- construction cards ---------- */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 250px;
  border-radius: 20px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.cat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.cat-chip {
  background: linear-gradient(160deg, #e8f0ff, #dbeafe);
}

.cat-radial {
  background: linear-gradient(160deg, #e6f8ef, #d9f2e5);
}

.cat-snapin {
  background: linear-gradient(160deg, #fff0e6, #ffe3d1);
}

.cat-lug {
  background: linear-gradient(160deg, #f0ebff, #e6ddff);
}

.cat-screw {
  background: linear-gradient(160deg, #e8f6ff, #d8edfb);
}

.cat-art {
  position: absolute;
  right: -18px;
  bottom: 34px;
  width: 62%;
  height: 140px;
  pointer-events: none;
}

.cat-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(11, 26, 51, 0.16));
}

.cat-diagram {
  display: block;
  width: 100%;
  height: 100%;
  color: var(--ink);
  opacity: 0.75;
}

.cat-diagram .diagram {
  width: 100%;
  height: 100%;
}

.cat-body {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 3px;
}

.cat-name {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.cat-meta {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
}

.cat-go {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink);
}

/* ---------- product cards ---------- */

.p-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.p-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 170ms ease, transform 170ms ease, border-color 170ms ease;
}

.p-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}

.p-media {
  position: relative;
  background: linear-gradient(180deg, #f8faff, #eef3fb);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.p-media-link {
  display: block;
  width: 100%;
  height: 100%;
  padding: 18px;
}

.p-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.p-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  transition: transform 220ms ease;
}

.p-card:hover .p-art img {
  transform: scale(1.04);
}

.p-art-spec {
  color: var(--primary);
  background:
    radial-gradient(circle at 50% 45%, #fff 0 38%, transparent 39%),
    repeating-linear-gradient(0deg, rgba(29, 78, 216, 0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(29, 78, 216, 0.06) 0 1px, transparent 1px 22px);
  border-radius: 12px;
  position: relative;
}

.p-art-spec .diagram {
  width: 34%;
  height: 34%;
  stroke: var(--primary);
}

.p-art-label {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: #fff;
  border-radius: 999px;
  padding: 3px 9px;
}

.p-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.p-badge-105 {
  background: var(--rose);
  color: var(--rose-ink);
}

.p-badge-85 {
  background: var(--sky);
  color: var(--sky-ink);
}

.p-compare {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--body);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.p-compare:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.p-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
  flex: 1;
}

.p-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.p-code {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.p-title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.p-title a:hover {
  color: var(--primary);
}

.p-sum {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--body);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.p-chips span {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--body);
  background: var(--tint);
  border-radius: 999px;
  padding: 3px 8px;
}

.p-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 10px;
}

.p-quote {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.p-foot .btn {
  min-width: 74px;
}

/* ---------- match band ---------- */

.match-band {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr);
  gap: clamp(26px, 4vw, 56px);
  align-items: start;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 44px);
}

.match-copy .s-title {
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
}

.match-copy .link-arrow {
  margin-top: 18px;
}

.matcher {
  display: grid;
  gap: 22px;
}

.matcher-form {
  display: grid;
  gap: 14px;
}

.matcher-compact .matcher-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.m-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.select-wrap {
  position: relative;
}

.select-wrap select {
  appearance: none;
  width: 100%;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 38px 12px 13px;
  font-size: 0.9375rem;
  cursor: pointer;
}

.select-wrap select:hover {
  border-color: var(--primary);
}

.select-wrap .i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--muted);
}

.matcher-out {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.matcher-count {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.matcher-count strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
  line-height: 1;
}

.matcher-results {
  display: grid;
}

.m-result {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.m-result:hover .m-result-name {
  color: var(--primary);
}

.m-result .code {
  color: var(--primary);
}

.m-result-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: right;
}

.matcher-more {
  margin-top: 12px;
  font-size: 0.875rem;
}

.matcher-more a {
  color: var(--primary);
  font-weight: 600;
}

.m-help {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ---------- promo ---------- */

.promo {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: 28px;
  align-items: center;
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(120deg, #1e40af, #1d4ed8 50%, #2563eb);
  color: #fff;
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 24px 50px rgba(29, 78, 216, 0.22);
}

.promo .kicker {
  color: #bfdbfe;
}

.promo-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 22ch;
}

.promo p {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.86);
  max-width: 56ch;
}

.promo-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

/* ---------- applications ---------- */

.app-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.app-tile {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}

.app-tile-art,
.app-tile-art picture,
.app-tile-art img {
  width: 100%;
  height: 100%;
  display: block;
}

.app-tile-art img {
  object-fit: cover;
  transition: transform 380ms ease;
}

.app-tile:hover .app-tile-art img {
  transform: scale(1.05);
}

.app-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 26, 51, 0.05) 30%, rgba(11, 26, 51, 0.72) 100%);
}

.app-tile-body {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  color: #fff;
}

.app-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
}

/* ---------- why ---------- */

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
}

.why-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.why-icon .i {
  width: 24px;
  height: 24px;
}

.why-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.why-card p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}

/* ---------- library ---------- */

.lib-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.lib-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  min-height: 200px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.lib-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.lib-no {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--primary);
}

.lib-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lib-body {
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--body);
}

.lib-go {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- newsletter ---------- */

.newsletter-band {
  background:
    radial-gradient(700px 340px at 12% 0%, rgba(255, 255, 255, 0.14), transparent 60%),
    linear-gradient(120deg, #0b1a33, #122a5c 55%, #1d4ed8);
  color: #fff;
  padding-block: clamp(44px, 6vw, 72px);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.newsletter-band .kicker {
  color: #bfdbfe;
}

.news-title {
  font-size: clamp(1.6rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 800;
  max-width: 24ch;
}

.news-body {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 52ch;
}

.newsletter-row {
  display: flex;
  gap: 10px;
  background: #fff;
  padding: 8px;
  border-radius: 999px;
}

.newsletter-row input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 10px 18px;
  font-size: 0.9375rem;
  color: var(--ink);
  min-width: 0;
}

.newsletter-row input:focus {
  outline: none;
}

.newsletter-note {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 10px;
}

.newsletter .form-status {
  color: #fff;
}

.newsletter .form-status[data-state='error'] {
  color: #ffd2c4;
}

/* ---------- page heads, breadcrumbs ---------- */

.page-head {
  padding-top: clamp(34px, 4.6vw, 56px);
  padding-bottom: clamp(22px, 3vw, 34px);
}

.page-h1 {
  font-size: var(--fs-h1);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 26ch;
}

.page-lede {
  margin-top: 16px;
  max-width: 66ch;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--body);
}

.crumbs-wrap {
  padding-top: 22px;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--muted);
}

.crumbs a:hover {
  color: var(--primary);
}

.crumbs .sep {
  color: var(--line-strong);
}

/* ---------- collection ---------- */

.collection-head {
  padding-top: clamp(22px, 3vw, 34px);
}

.collection-head .crumbs {
  margin-bottom: 22px;
}

.collection-head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}

.collection-head-badge {
  text-align: right;
  white-space: nowrap;
}

.collection-head-badge strong {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
}

.collection-head-badge span {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
}

.shop-layout {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  padding-top: 28px;
  padding-bottom: var(--section);
  align-items: start;
}

.filters {
  position: sticky;
  top: 96px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  align-self: start;
}

.filters-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.filters-head h2 {
  font-size: 1rem;
  font-weight: 700;
}

.filter {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 14px 0 4px;
}

.filter legend {
  padding: 0;
  margin-bottom: 9px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.chip span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  line-height: 1.3;
}

.chip span:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.chip input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.chip-count {
  font-family: var(--mono);
  font-size: 0.5625rem;
  opacity: 0.7;
}

.collection-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.result-count {
  font-size: 0.875rem;
  color: var(--muted);
  font-weight: 600;
}

.result-count strong {
  color: var(--ink);
  font-weight: 800;
}

.p-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.no-results {
  padding: 40px 0;
  color: var(--body);
}

.table-note {
  margin-top: 22px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- product page ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(28px, 5vw, 64px);
  padding-top: 26px;
  padding-bottom: clamp(32px, 4vw, 56px);
  align-items: start;
}

.product-media {
  position: relative;
  background: linear-gradient(180deg, #f7faff, #edf3fc);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(18px, 3vw, 34px);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
}

.product-media .p-art img {
  object-fit: cover;
  mix-blend-mode: multiply;
  border-radius: 14px;
}

.product-media-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.product-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.product-h1 {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.product-lede {
  margin-top: 14px;
  color: var(--body);
  max-width: 56ch;
}

.product-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.product-chips span {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--body);
}

.buy-box {
  margin-top: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.buy-price {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 12px;
}

.buy-price span {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

.buy-form {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.qty-stepper button {
  width: 36px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 1.125rem;
  color: var(--body);
}

.qty-stepper button:hover {
  color: var(--primary);
}

.qty-stepper input {
  width: 66px;
  height: 44px;
  border: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.875rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.buy-form .btn {
  flex: 1;
}

.buy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 14px;
}

.buy-links .link-arrow {
  font-size: 0.8125rem;
  color: var(--body);
}

.buy-links .link-arrow:hover {
  color: var(--primary);
}

.buy-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
}

.buy-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--body);
}

.buy-trust .i {
  color: var(--mint-ink);
}

.product-body {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(28px, 4vw, 56px);
  padding-top: 34px;
  padding-bottom: var(--section);
  border-top: 1px solid var(--line);
}

.block {
  margin-bottom: 40px;
}

.block-title {
  font-size: 1.25rem;
  font-weight: 750;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.block-lede {
  color: var(--body);
  margin-bottom: 14px;
  max-width: 64ch;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  font-weight: 500;
  color: var(--muted);
  width: 38%;
  background: var(--tint);
}

.spec-table td {
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.feature-list {
  display: grid;
  gap: 8px;
  max-width: 66ch;
}

.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--mint-ink);
  border-bottom: 2px solid var(--mint-ink);
  transform: rotate(-45deg);
}

.app-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.app-pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.app-pill:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.product-aside,
.series-aside {
  display: grid;
  gap: 16px;
  align-content: start;
  position: sticky;
  top: 96px;
}

.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.aside-quiet {
  background: var(--tint);
}

.aside-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.aside-card .btn {
  margin-top: 12px;
}

.rel-list {
  display: grid;
  gap: 12px;
}

.rel-list a {
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
  font-weight: 600;
}

.rel-list .code {
  color: var(--primary);
  font-size: 0.75rem;
}

.rel-list a:hover {
  color: var(--primary);
}

.rel-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- quote ---------- */

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: var(--section);
  align-items: start;
}

.quote-empty {
  display: grid;
  gap: 18px;
  justify-items: start;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  color: var(--body);
}

.quote-empty p {
  max-width: 52ch;
}

.quote-empty-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.quick-add {
  width: 100%;
}

.quick-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
}

.quick-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.quick-btn .code {
  color: var(--primary);
}

.quote-how {
  display: grid;
  gap: 7px;
  width: 100%;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.quote-how li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--body);
  line-height: 1.5;
}

.quote-how span {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--primary);
  padding-top: 2px;
}

.quote-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.quote-table {
  width: 100%;
  border-collapse: collapse;
}

.quote-table th,
.quote-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.quote-table thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--tint);
}

.quote-table tr:last-child td {
  border-bottom: 0;
}

.quote-table .code {
  display: block;
  color: var(--primary);
  margin-bottom: 2px;
}

.quote-table .small {
  display: block;
}

.qty-input {
  width: 96px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: var(--mono);
}

.row-remove {
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--muted);
  font-size: 1rem;
}

.row-remove:hover {
  color: var(--error);
}

.quote-sum {
  padding: 12px 16px;
  font-size: 0.8125rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.quote-confirm {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.quote-confirm h2 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.quote-ref {
  font-family: var(--mono);
  font-size: 1.125rem;
  color: var(--primary);
  margin: 10px 0 14px;
}

/* ---------- forms ---------- */

.form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 28px);
  box-shadow: var(--shadow-sm);
}

.form-title {
  font-size: 1.25rem;
  font-weight: 750;
  margin-bottom: 16px;
}

.field {
  margin-bottom: 14px;
}

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 5px;
}

.field .opt {
  color: var(--muted);
  font-weight: 400;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.9375rem;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(29, 78, 216, 0.14);
  outline-offset: 0;
}

.field textarea {
  resize: vertical;
}

.field[data-invalid='true'] input,
.field[data-invalid='true'] textarea {
  border-color: var(--error);
}

.field-error {
  color: var(--error);
  font-size: 0.75rem;
  margin-top: 4px;
}

.field-error:empty {
  display: none;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-status {
  font-size: 0.875rem;
  margin-top: 12px;
}

.form-status[data-state='ok'] {
  color: var(--ok);
}

.form-status[data-state='error'] {
  color: var(--error);
}

/* ---------- support / about / contact ---------- */

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: var(--section);
}

.support-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.support-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.support-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.support-card p {
  color: var(--body);
  font-size: 0.9375rem;
  flex: 1;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.6fr);
  gap: clamp(24px, 4vw, 56px);
  padding-bottom: var(--section);
}

.about-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.fact-list {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 20px;
}

.fact-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.fact-list > div:last-child {
  border-bottom: 0;
}

.fact-list dt {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.fact-list dd {
  text-align: right;
  font-weight: 700;
  font-size: 0.9375rem;
}

.fact-list dd span {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 400;
}

.photo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plant-photo {
  margin: 0;
}

.plant-photo picture {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.plant-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.plant-photo figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 7px;
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.quality-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
}

.quality-item dt {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.quality-item dd {
  font-size: 1.25rem;
  font-weight: 750;
  margin: 6px 0;
  color: var(--ink);
}

.quality-item p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.55;
}

.limit-box {
  background: var(--accent-soft);
  border: 1px solid #ffd6c2;
  border-radius: 18px;
  padding: 26px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: var(--section);
  align-items: start;
}

.channels {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 20px;
}

.channels > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.channels > div:last-child {
  border-bottom: 0;
}

.channels dt {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 3px;
}

.channels dd a:hover {
  color: var(--primary);
}

.samples-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: var(--section);
  align-items: start;
}

.steps {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.step-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 3px;
}

.step p {
  font-size: 0.875rem;
  color: var(--body);
  line-height: 1.55;
}

.warranty-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: 24px;
}

.check-list li::before {
  border-color: var(--mint-ink);
}

.cross-list li::before {
  border-color: var(--error);
}

.warranty-grid + .note {
  margin-inline: auto;
  max-width: var(--wrap);
  margin-bottom: var(--section);
}

.legal {
  padding-bottom: var(--section);
}

.legal .block p {
  max-width: 72ch;
  color: var(--body);
  line-height: 1.68;
}

/* ---------- library article ---------- */

.article-head {
  padding-block: 26px 30px;
  max-width: 800px;
}

.article-h1 {
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 800;
}

.article-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: clamp(26px, 4vw, 56px);
  padding-top: 30px;
  padding-bottom: var(--section);
  border-top: 1px solid var(--line);
  align-items: start;
}

.prose {
  max-width: 72ch;
}

.prose h2 {
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  margin: 38px 0 12px;
  scroll-margin-top: 100px;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose p {
  margin-bottom: 14px;
  line-height: 1.68;
  color: var(--body);
}

.prose ul {
  margin-bottom: 16px;
}

.prose li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 7px;
  line-height: 1.6;
  color: var(--body);
}

.prose li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.data-table caption {
  text-align: left;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0 0 8px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--tint);
  border-bottom-color: var(--line);
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody th {
  font-weight: 600;
}

.doc-figure {
  margin: 24px 0;
}

.doc-figure img {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  width: 100%;
  height: auto;
}

.doc-figure figcaption {
  font-size: 0.75rem;
  color: var(--muted);
  padding-top: 7px;
}

.article-aside {
  position: sticky;
  top: 100px;
  align-self: start;
  display: grid;
  gap: 16px;
}

.toc {
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.toc-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
}

.toc a {
  display: block;
  padding: 6px 0;
  font-size: 0.875rem;
  border-bottom: 1px solid var(--line);
}

.toc li:last-child a {
  border-bottom: 0;
}

.toc a:hover {
  color: var(--primary);
}

.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.article-nav a {
  display: grid;
  gap: 3px;
  font-weight: 700;
  max-width: 45%;
}

.article-nav a span {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.article-nav a:hover {
  color: var(--primary);
}

.article-nav .art-next {
  text-align: right;
  margin-left: auto;
}

/* ---------- calculator ---------- */

.calc-page {
  padding-bottom: var(--section);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.calc-form {
  padding: 26px;
  display: grid;
  gap: 18px;
  align-content: start;
  border-right: 1px solid var(--line);
}

.calc-field label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.calc-field output {
  font-family: var(--mono);
  color: var(--primary);
}

.calc-field input[type='range'] {
  width: 100%;
  accent-color: var(--primary);
}

.range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 4px;
}

.calc-out {
  padding: 28px;
  background: linear-gradient(150deg, #1e40af, #1d4ed8);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.calc-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
}

.calc-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: clamp(3rem, 5vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 10px 0;
  font-variant-numeric: tabular-nums;
}

.calc-unit {
  font-size: 0.35em;
  color: #bfdbfe;
}

.calc-sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem;
}

.calc-mult {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: #bfdbfe;
  margin-top: 6px;
}

.calc-mult span {
  color: #fff;
}

.calc-warn {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 12px;
  margin-top: 16px;
}

.calc-table-wrap {
  margin-top: 32px;
}

/* ---------- datasheets ---------- */

.datasheet-page {
  padding-bottom: var(--section);
}

.series-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.series-table th,
.series-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.series-table thead th {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--tint);
}

.series-table tbody tr:hover {
  background: #fafcff;
}

.dl {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
}

/* ---------- footer ---------- */

.site-foot {
  background: var(--tint);
  border-top: 1px solid var(--line);
  padding-block: clamp(40px, 5vw, 64px) 24px;
}

.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: clamp(28px, 5vw, 64px);
}

.brand-foot {
  margin-bottom: 12px;
}

.brand-foot .brand-name {
  font-size: 1.125rem;
}

.foot-line {
  color: var(--body);
  font-size: 0.875rem;
  max-width: 36ch;
}

.foot-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
}

.foot-contact a {
  color: var(--primary);
}

.foot-cols {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.f-title {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  margin-bottom: 10px;
}

.f-col li a {
  display: block;
  padding: 4px 0;
  font-size: 0.875rem;
  color: var(--ink);
}

.f-col li a:hover {
  color: var(--primary);
}

.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  margin-top: 36px;
  padding-top: 18px;
  font-size: 0.75rem;
  color: var(--muted);
}

.foot-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.foot-legal a:hover {
  color: var(--primary);
}

/* ---------- dialogs, tray, toast ---------- */

dialog {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  max-width: none;
  max-height: none;
}

dialog::backdrop {
  background: rgba(11, 26, 51, 0.45);
  backdrop-filter: blur(3px);
}

.search-dialog {
  margin: 0;
  width: 100%;
  height: 100%;
}

.search-panel {
  background: #fff;
  width: min(720px, calc(100% - 28px));
  margin: 9vh auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.search-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 18px;
  border-bottom: 1px solid var(--line);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--muted);
}

.search-field input {
  flex: 1;
  border: 0;
  background: none;
  font-size: 1.0625rem;
  padding: 8px 0;
  outline: none;
  color: var(--ink);
}

.icon-btn {
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  border-radius: 8px;
}

.icon-btn:hover {
  background: var(--tint);
  color: var(--ink);
}

.search-results {
  overflow-y: auto;
  padding: 6px;
}

.search-hint {
  padding: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.search-result {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
}

.search-result:hover,
.search-result[aria-selected='true'] {
  background: var(--tint);
}

.search-type {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding-top: 3px;
}

.search-title {
  font-size: 0.9375rem;
  font-weight: 600;
}

.search-text {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 18px;
  font-size: 0.6875rem;
  color: var(--muted);
}

kbd {
  font-family: var(--mono);
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: 4px;
  padding: 0 4px;
  font-size: 0.625rem;
}

/* cart drawer */

.cart-drawer {
  margin: 0 0 0 auto;
  height: 100%;
  width: min(440px, 100%);
}

.cart-panel {
  background: #fff;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow: -20px 0 50px rgba(11, 26, 51, 0.18);
}

.cart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.cart-head h2 {
  font-size: 1.375rem;
  font-weight: 800;
}

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 8px 22px;
}

.cart-empty {
  display: grid;
  gap: 14px;
  padding: 28px 0;
  color: var(--body);
}

.cart-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 24px;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.cart-thumb {
  width: 64px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--tint);
  display: grid;
  place-items: center;
}

.cart-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-thumb-spec {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--primary);
}

.cart-item-main {
  display: grid;
  gap: 3px;
}

.cart-code {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
}

.cart-title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 6px;
  width: fit-content;
}

.cart-qty button {
  width: 28px;
  height: 30px;
  border: 0;
  background: none;
  cursor: pointer;
  color: var(--body);
}

.cart-qty input {
  width: 54px;
  height: 30px;
  border: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  -moz-appearance: textfield;
  appearance: textfield;
}

.cart-qty input::-webkit-outer-spin-button,
.cart-qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.cart-remove {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 1.125rem;
  cursor: pointer;
  line-height: 1;
}

.cart-remove:hover {
  color: var(--error);
}

.cart-foot {
  border-top: 1px solid var(--line);
  padding: 16px 22px 20px;
  display: grid;
  gap: 8px;
}

.cart-note {
  font-size: 0.75rem;
  color: var(--muted);
}

/* compare */

.compare-dialog {
  width: min(1080px, calc(100% - 28px));
  margin: 6vh auto;
}

.compare-panel {
  background: #fff;
  border-radius: 20px;
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.compare-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.compare-top h2 {
  font-size: 1.125rem;
  font-weight: 800;
}

.compare-body {
  overflow: auto;
  padding: 0 20px 22px;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  min-width: 620px;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.compare-table thead th {
  font-family: var(--mono);
  font-size: 0.8125rem;
  border-bottom-color: var(--line-strong);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--muted);
  width: 120px;
  font-size: 0.75rem;
}

/* tray */

.tray {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 70;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 -10px 30px rgba(11, 26, 51, 0.2);
}

.tray-in {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 10px var(--gutter);
  display: flex;
  align-items: center;
  gap: 14px;
}

.tray-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #93c5fd;
}

.tray-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.tray-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 3px 9px;
  font-family: var(--mono);
  font-size: 0.6875rem;
}

.tray-item button {
  background: none;
  border: 0;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  padding: 0;
}

.tray-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tray .btn {
  background: #fff;
  color: var(--ink);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: var(--ink);
  color: #fff;
  padding: 11px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
  max-width: 340px;
}

.toast[data-show='true'] {
  opacity: 1;
  transform: none;
}

/* ---------- search page ---------- */

.search-page {
  padding-bottom: var(--section);
  max-width: 900px;
}

.search-field-lg {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 8px 16px;
  margin-bottom: 22px;
}

.search-field-lg input {
  font-size: 1.25rem;
}

.search-page-results .search-result {
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 6px;
  grid-template-columns: 96px minmax(0, 1fr);
}

.not-found {
  padding-block: clamp(60px, 10vw, 140px);
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .p-grid,
  .p-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-grid,
  .why-grid,
  .lib-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quote-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .announce-item:nth-child(3) {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px;
    box-shadow: var(--shadow);
  }

  .nav[data-open='true'] {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    gap: 0;
  }

  .nav li a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .head-cta {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-h1 {
    max-width: 18ch;
  }

  .hero-card {
    max-width: 480px;
  }

  .match-band,
  .promo,
  .newsletter-grid,
  .product,
  .product-body,
  .about-grid,
  .contact-grid,
  .samples-grid,
  .foot-top,
  .app-head,
  .app-body-grid,
  .article-grid,
  .calc-grid {
    grid-template-columns: 1fr;
  }

  .shop-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }

  .series-aside,
  .product-aside,
  .article-aside {
    position: static;
  }

  .promo-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .app-grid,
  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-form {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .search-panel {
    margin-top: 0;
    height: 100%;
    max-height: none;
    width: 100%;
    border-radius: 0;
  }

  .search-dialog {
    margin: 0;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }

  .contact-grid,
  .about-grid,
  .photo-row {
    grid-template-columns: 1fr;
  }

  .quality-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --section: clamp(44px, 11vw, 64px);
    --gutter: 18px;
  }

  .announce-in {
    justify-content: center;
    min-height: 36px;
    gap: 0 14px;
  }

  .announce-item:nth-child(2) {
    display: none;
  }

  .announce-link {
    margin-left: 0;
    display: none;
  }

  .head-in {
    min-height: 64px;
    gap: 12px;
  }

  .brand-name {
    font-size: 1.0625rem;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
  }

  .hero {
    padding-top: 26px;
  }

  .hero-h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-trust {
    gap: 6px 14px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat {
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
  }

  .stat:nth-child(2n) {
    border-right: 0;
  }

  .stat:nth-child(n + 3) {
    border-bottom: 0;
  }

  .cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cat-card {
    min-height: 190px;
    padding: 16px;
  }

  .cat-art {
    height: 100px;
    bottom: 44px;
  }

  .p-grid,
  .p-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .p-media {
    aspect-ratio: 4 / 5;
  }

  .p-media-link {
    padding: 10px;
  }

  .p-body {
    padding: 12px 12px 14px;
    gap: 6px;
  }

  .p-title {
    font-size: 0.9375rem;
  }

  .p-sum {
    display: none;
  }

  .p-chips {
    display: none;
  }

  .p-foot {
    padding-top: 4px;
  }

  .p-quote {
    display: none;
  }

  .p-foot .btn {
    width: 100%;
    min-width: 0;
    padding: 7px 10px;
  }

  .p-kicker {
    font-size: 0.6875rem;
  }

  .p-badge {
    top: 8px;
    left: 8px;
    font-size: 0.625rem;
    padding: 3px 7px;
  }

  .p-compare {
    top: 6px;
    right: 6px;
    width: 28px;
    height: 28px;
  }

  .why-grid,
  .lib-cards,
  .quality-grid,
  .support-grid,
  .warranty-grid,
  .photo-row {
    grid-template-columns: 1fr;
  }

  .app-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .m-result-meta {
    display: none;
  }

  .app-tile {
    aspect-ratio: 16 / 10;
  }

  .newsletter-row {
    flex-direction: column;
    border-radius: 16px;
    padding: 10px;
  }

  .newsletter-row input {
    padding: 10px 8px;
  }

  .newsletter-row .btn {
    width: 100%;
  }

  .promo-actions .btn {
    width: 100%;
  }

  .promo {
    border-radius: 20px;
  }

  .collection-head-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .collection-head-badge {
    text-align: left;
  }

  .shop-layout {
    padding-top: 20px;
  }

  .filters {
    display: none;
  }

  .shop-main .p-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-media {
    aspect-ratio: 1;
  }

  .buy-form {
    flex-direction: column;
  }

  .buy-form .btn {
    width: 100%;
  }

  .qty-stepper {
    justify-content: space-between;
  }

  .buy-links {
    gap: 12px;
  }

  .quote-table th:nth-child(2),
  .quote-table td:nth-child(2) {
    width: 110px;
  }

  .qty-input {
    width: 76px;
  }

  .cart-drawer {
    width: 100%;
  }

  .foot-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .foot-bottom {
    flex-direction: column;
  }

  .article-nav a {
    max-width: 48%;
  }

  .tray-in {
    flex-wrap: wrap;
  }

  .tray-items {
    order: 3;
    flex-basis: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .float-chip {
    animation: none;
  }
}

@media print {
  .announce,
  .site-head,
  .site-foot,
  .tray,
  .toast,
  .buy-form,
  .filters,
  .promo,
  .newsletter-band {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .wrap {
    max-width: none;
    padding: 0;
  }
}

/* ---------- shared page layouts still used by inner pages ---------- */

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.series-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(26px, 4vw, 56px);
  border-top: 1px solid var(--line);
  padding-top: 30px;
  padding-bottom: var(--section);
  align-items: start;
}

.series-main {
  min-width: 0;
}

.data-plate {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.data-plate dt {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.data-plate dd {
  font-size: 0.875rem;
  font-weight: 600;
  margin-top: 2px;
}

.lib-index {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: var(--section);
  align-items: start;
}

.lib-index-list {
  display: grid;
  gap: 10px;
}

.lib-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 64px;
  gap: 14px;
  align-items: baseline;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 20px;
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.lib-row:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.lib-row-name {
  display: block;
  font-size: 1.125rem;
  font-weight: 700;
}

.lib-row-lede {
  display: block;
  font-size: 0.875rem;
  color: var(--body);
  margin-top: 3px;
}

.lib-row-meta {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}

.lib-tools {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tool-card {
  display: grid;
  gap: 4px;
  background: var(--tint);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
}

.tool-card:hover {
  border-color: var(--primary);
}

.tool-name {
  font-weight: 700;
}

.tool-body {
  font-size: 0.8125rem;
  color: var(--body);
  line-height: 1.5;
}

.app-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: var(--section);
}

.app-head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: end;
}

.app-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: var(--section);
}

.series-mini li a {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.series-mini li a .code {
  color: var(--primary);
  font-size: 0.75rem;
}

.series-mini-meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
}

.link-list li a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
}

.link-list li a:hover {
  color: var(--primary);
}

.diagram-cell {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  vertical-align: middle;
  color: var(--primary);
}

.diagram-cell .diagram {
  width: 100%;
  height: 100%;
}

.diagram {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.diagram .dim {
  stroke: var(--line-strong);
}

.diagram .mark {
  fill: var(--primary);
  stroke: none;
}

.catalog-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.quote-main {
  min-width: 0;
}

@media (max-width: 900px) {
  .series-grid,
  .lib-index,
  .app-head,
  .app-body-grid {
    grid-template-columns: 1fr;
  }

  .app-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-page-grid {
    grid-template-columns: 1fr;
  }

  .series-aside {
    position: static;
  }
}

/* category art: a photo tile for constructions we photographed, a quiet
   line drawing for the ones we did not */
.cat-art-photo {
  width: 46%;
  height: 104px;
  right: 14px;
  bottom: 44px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(11, 26, 51, 0.14);
}

.cat-art-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.cat-art-diagram {
  width: 84px;
  height: 84px;
  right: 18px;
  bottom: 48px;
  opacity: 0.4;
}

.cat-art-diagram .cat-diagram {
  width: 84px;
  height: 84px;
}

.p-badge-70 {
  background: var(--peach);
  color: var(--peach-ink);
}

@media (max-width: 640px) {
  .cat-art-photo {
    width: 58%;
    height: 74px;
    right: 10px;
    bottom: 36px;
  }

  .cat-art-diagram {
    width: 64px;
    height: 64px;
    right: 12px;
    bottom: 40px;
  }

  .cat-art-diagram .cat-diagram {
    width: 64px;
    height: 64px;
  }
}

.p-card[hidden] {
  display: none;
}

/* mobile filter panel */
.filter-toggle {
  display: none;
}

@media (max-width: 640px) {
  .filter-toggle {
    display: inline-flex;
  }

  .filters {
    display: none;
  }

  .filters[data-open='true'] {
    display: block;
    margin-bottom: 18px;
  }
}

@media (max-width: 640px) {
  .app-tile {
    aspect-ratio: 1;
  }

  .app-tile-body {
    left: 12px;
    right: 12px;
    bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .app-name {
    font-size: 0.9375rem;
    line-height: 1.2;
  }

  .app-meta {
    display: none;
  }

  .chip-a {
    right: 6px;
  }

  .chip-b {
    left: 6px;
  }

  .chip-c {
    right: 10px;
    bottom: 7%;
  }
}

/* product FAQ + documents */
.faq {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-weight: 650;
  font-size: 0.9375rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
  line-height: 1;
}

.faq[open] summary::after {
  content: '−';
}

.faq p {
  margin: 8px 0 4px;
  color: var(--body);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 70ch;
}

.doc-list {
  display: grid;
  gap: 8px;
}

.doc-list a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
}

.doc-list a:hover {
  color: var(--primary);
}

.collection-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sort-select select {
  width: auto;
  padding: 8px 34px 8px 14px;
  border-radius: 999px;
  font-size: 0.8125rem;
  background: #fff;
}

@media (max-width: 640px) {
  .collection-actions {
    width: 100%;
  }

  .sort-select {
    flex: 1;
  }

  .sort-select select {
    width: 100%;
  }
}

/* ---------- priced variants ---------- */

.p-from {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}

.p-from strong {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 800;
}

.p-from span {
  margin-left: 2px;
}

.buy-form {
  display: grid;
  gap: 10px;
}

.variant-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.variant-field select {
  width: 100%;
  font-family: var(--mono);
  font-size: 0.8125rem;
}

.buy-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.buy-row .btn {
  flex: 1;
}

.sku-table {
  font-size: 0.8125rem;
}

.sku-table th,
.sku-table td {
  padding: 8px 12px;
  white-space: nowrap;
}

.sku-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.sku-table td:last-child {
  text-align: right;
  padding-right: 0;
}

.sku-table .btn {
  padding: 5px 12px;
  font-size: 0.75rem;
}

.cart-variant {
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.cart-item-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.cart-line-total {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.cart-sum {
  font-size: 0.8125rem;
  color: var(--body);
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.cart-sum strong {
  color: var(--ink);
  font-family: var(--mono);
}

.quote-table .num {
  font-family: var(--mono);
  font-size: 0.8125rem;
  white-space: nowrap;
}

.quote-table td:nth-child(3) {
  width: 96px;
}

@media (max-width: 640px) {
  .buy-row {
    flex-direction: column;
  }

  .buy-row .btn {
    width: 100%;
  }

  .qty-stepper {
    justify-content: space-between;
  }

  .sku-table th,
  .sku-table td {
    padding: 7px 9px;
  }
}

.quote-empty[hidden] {
  display: none;
}

.cart-thumb img {
  object-position: 50% 58%;
  transform: scale(1.35);
}

/* ---------- price list ---------- */

.price-list {
  display: grid;
  gap: 34px;
  padding-bottom: var(--section);
}

.price-group {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.price-group-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 14px;
}

.price-group-title {
  font-size: 1.375rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}

.price-table th,
.price-table td {
  padding: 9px 12px;
  white-space: nowrap;
}

.price-table td:last-child {
  text-align: right;
}

.price-cta {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .price-group-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

.p-price {
  display: grid;
  gap: 1px;
}

.p-per {
  font-size: 0.625rem;
  color: var(--muted);
  line-height: 1.3;
}

.p-from {
  font-size: 0.6875rem;
  color: var(--muted);
  font-weight: 600;
}

.p-from strong {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 800;
}

@media (max-width: 640px) {
  .p-foot {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .p-per {
    display: none;
  }

  .p-from strong {
    font-size: 0.9375rem;
  }
}

.p-card-more {
  justify-content: center;
  background:
    radial-gradient(420px 240px at 85% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(140deg, #1e40af, #1d4ed8 55%, #2563eb);
  border-color: transparent;
  color: #fff;
  padding: 26px;
  min-height: 420px;
}

.p-card-more:hover {
  color: #fff;
  box-shadow: 0 18px 40px rgba(29, 78, 216, 0.28);
}

.p-more-body {
  display: grid;
  gap: 8px;
  align-content: center;
  height: 100%;
}

.p-more-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.p-more-title {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 14ch;
}

.p-more-text {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 30ch;
}

.p-more-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  margin-top: 6px;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding-bottom: 2px;
  width: fit-content;
}

@media (max-width: 640px) {
  .p-card-more {
    min-height: 190px;
    padding: 16px;
  }

  .p-more-title {
    font-size: 1.125rem;
  }

  .p-more-text {
    display: none;
  }
}

/* ---------- product gallery + sticky buy ---------- */

.product-media.has-gallery {
  aspect-ratio: auto;
}

.gallery {
  display: grid;
  gap: 12px;
  width: 100%;
}

.gallery-main {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.gallery-main:hover img {
  transform: scale(1.04);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
}

.gallery-thumb {
  width: 72px;
  height: 90px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  cursor: pointer;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb[aria-pressed='true'] {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}

.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 30px rgba(11, 26, 51, 0.1);
}

.sticky-buy[hidden] {
  display: none;
}

.sticky-buy-info {
  display: grid;
  gap: 1px;
}

.sticky-code {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--primary);
}

.sticky-price {
  font-size: 1rem;
  font-weight: 800;
}

.sticky-buy .btn {
  min-width: 160px;
}

@media (max-width: 640px) {
  .sticky-buy {
    padding: 8px 12px;
  }

  .sticky-buy .btn {
    min-width: 0;
    flex: 1;
    max-width: 220px;
  }

  .gallery-thumb {
    width: 58px;
    height: 72px;
  }
}
