:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #ece8de;
  --ink: #171717;
  --muted: #66615a;
  --line: #d8d2c6;
  --accent: #9b7a36;
  --accent-dark: #5f4b24;
  --ok: #146c43;
  --warn: #8a5a00;
  --shadow: 0 10px 28px rgba(22, 20, 17, 0.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto auto minmax(260px, 420px);
  gap: 24px;
  align-items: center;
  padding: 12px clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.96);
  backdrop-filter: blur(12px);
}
.brand-link { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 210px; }
.brand-logo { width: 124px; height: auto; display: block; }
.brand-link small { display: block; color: var(--muted); font-size: 12px; margin-left: 2px; }
.top-nav { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.top-nav a:hover { color: var(--ink); }
.header-search { position: relative; }
input[type="search"], select {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink);
  font: inherit;
}
select { min-width: 230px; }
.global-results {
  position: absolute;
  top: 48px;
  right: 0;
  width: min(520px, 90vw);
  max-height: 420px;
  overflow: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 8px;
}
.global-results a {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 10px;
  padding: 8px;
  border-radius: 6px;
}
.global-results a:hover { background: var(--surface-2); }
.global-results img { width: 54px; height: 54px; object-fit: contain; background: #fff; border-radius: 4px; }
main { padding-bottom: 56px; }
.catalog-hero, .page-head, .content-band, .section-head, .catalog-tools, .summary-strip, .system-grid, .product-grid, .group-nav, .pagination {
  width: min(1500px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}
.catalog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding: 38px 0 24px;
}
.catalog-hero h1, .page-head h1, .product-info h1 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: 0;
}
.catalog-hero h1 { font-size: clamp(34px, 5vw, 64px); }
.page-head h1 { font-size: clamp(30px, 4vw, 52px); }
.product-info h1 { font-size: clamp(28px, 4vw, 46px); }
.catalog-hero p, .page-head p, .content-band p { color: var(--muted); max-width: 860px; }
.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 1px;
  min-width: 320px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}
.stats div { padding: 14px; background: var(--surface); }
.stats dt { color: var(--muted); font-size: 12px; }
.stats dd { margin: 4px 0 0; font-size: 22px; font-weight: 700; }
.summary-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 22px;
}
.summary-link, .group-tile {
  display: block;
  min-height: 102px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.summary-link:hover, .group-tile:hover, .product-card:hover, .system-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}
.summary-link strong, .summary-link span, .summary-link small, .group-tile strong, .group-tile span, .group-tile small { display: block; }
.summary-link span, .group-tile span { margin-top: 6px; color: var(--accent-dark); font-weight: 700; }
.summary-link small, .group-tile small { margin-top: 8px; color: var(--muted); }
.catalog-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 18px;
}
.catalog-tools.compact { grid-template-columns: minmax(240px, 520px); margin-top: 4px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  padding: 0 13px;
  color: var(--muted);
  cursor: pointer;
}
.chip.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.system-card, .product-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.system-card-image {
  display: block;
  aspect-ratio: 4 / 3;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.system-image { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.system-card-body { padding: 16px; }
.system-card h2, .product-card h3 { margin: 0; line-height: 1.22; letter-spacing: 0; }
.system-card h2 { font-size: 22px; }
.system-card p { color: var(--muted); margin: 8px 0 12px; }
.group-counts { display: flex; flex-wrap: wrap; gap: 6px; }
.group-counts span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12px;
}
.page-head { padding-top: 28px; }
.page-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--accent-dark); }
.group-nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.product-grid-small { grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; }
.product-card { display: flex; flex-direction: column; min-height: 100%; }
.product-card-image {
  display: block;
  aspect-ratio: 1 / 1;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.product-image { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.product-card-body { display: flex; flex: 1; flex-direction: column; padding: 13px; }
.product-meta-line {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  color: var(--accent-dark);
  font-size: 12px;
  margin-bottom: 8px;
}
.product-card h3 { font-size: 15px; min-height: 56px; }
.article, .compact-spec { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}
.status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 12px;
  background: #f3efe3;
  color: var(--warn);
  white-space: nowrap;
}
.status.in-stock { background: #e8f3ed; color: var(--ok); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.pagination a {
  min-width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.pagination a.active { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-top: 34px;
  margin-bottom: 12px;
}
.section-head h2, .content-band h2 { margin: 0; font-size: 24px; }
.section-head a { color: var(--accent-dark); font-weight: 700; }
.product-page { width: min(1500px, calc(100% - 32px)); margin: 0 auto; padding-top: 28px; }
.product-detail {
  display: grid;
  grid-template-columns: minmax(320px, 680px) minmax(300px, 1fr);
  gap: 30px;
  align-items: start;
}
.gallery {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #fff;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 1px; background: var(--line); }
.thumbs button { border: 0; background: #fff; padding: 6px; cursor: pointer; min-height: 72px; }
.thumbs img { width: 100%; height: 60px; object-fit: contain; }
.product-info {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(18px, 3vw, 30px);
}
.product-article { color: var(--muted); }
.buy-panel {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf7;
  padding: 0 18px 18px;
  margin: 20px 0;
}
.buy-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.price { font-size: 28px; }
.sales-contact {
  display: grid;
  gap: 7px;
  padding-top: 16px;
  color: var(--muted);
}
.sales-contact span {
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}
.sales-contact a {
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.sales-contact p { margin: 4px 0 0; max-width: 620px; }
.key-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  margin: 0;
}
.key-facts div { background: var(--surface); padding: 12px; }
.key-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.key-facts dt { color: var(--muted); font-size: 12px; }
.key-facts dd { margin: 4px 0 0; font-weight: 700; }
.key-facts a { color: var(--accent-dark); }
.content-band { margin-top: 22px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.spec-table th, .spec-table td { text-align: left; vertical-align: top; border-top: 1px solid var(--line); padding: 10px 0; }
.spec-table th { width: min(360px, 42%); color: var(--muted); font-weight: 400; padding-right: 18px; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.25fr) minmax(230px, .8fr) minmax(260px, .9fr);
  gap: 34px;
  padding: 34px clamp(18px, 4vw, 52px);
  color: rgba(255,255,255,.72);
  background: #202830;
  border-top: 1px solid #202830;
}
.footer-logo { width: 136px; height: auto; filter: brightness(0) invert(1); }
.footer-brand p,
.footer-service p { max-width: 660px; margin: 16px 0 0; line-height: 1.55; }
.footer-brand a,
.footer-contact a {
  width: fit-content;
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-contact,
.footer-service { display: grid; align-content: start; gap: 8px; }
.footer-contact span,
.footer-service span { color: #fff; font-weight: 700; }
.footer-contact small { color: rgba(255,255,255,.58); line-height: 1.45; }
[hidden], .is-hidden { display: none !important; }
.empty-state {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
}
@media (max-width: 1180px) {
  .site-header { grid-template-columns: 1fr; gap: 12px; }
  .site-footer { grid-template-columns: 1fr; }
  .summary-strip, .group-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .system-grid, .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid-small { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .catalog-hero, .page-title-row, .product-detail, .catalog-tools { grid-template-columns: 1fr; }
  .stats { min-width: 0; grid-template-columns: repeat(3, 1fr); }
  .system-grid, .product-grid, .product-grid-small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .summary-strip, .group-nav { grid-template-columns: 1fr; }
  .top-nav { gap: 12px; }
  .product-card h3 { min-height: auto; font-size: 14px; }
  .key-facts { grid-template-columns: 1fr; }
  .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 460px) {
  .system-grid, .product-grid, .product-grid-small { grid-template-columns: 1fr; }
  .catalog-hero h1 { font-size: 32px; }
  .page-head h1, .product-info h1 { font-size: 28px; }
  .stats { grid-template-columns: 1fr; }
  .buy-line { align-items: flex-start; flex-direction: column; }
}
