:root {
  --red: #e30613;
  --red-dark: #b9000a;
  --charcoal: #555555;
  --charcoal-deep: #2b2b2b;
  --ink: #222222;
  --muted: #6b6b6b;
  --line: #d7d7d7;
  --row: #f2f2f2;
  --paper: #ffffff;
  --soft-red: #f8e9ea;
  --shadow: 0 16px 42px rgba(0, 0, 0, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--ink);
  background: #eeeeee;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.shell { width: min(1180px, calc(100% - 36px)); margin-inline: auto; }

.access-locked { overflow: hidden; }
.access-locked > :not(.access-gate) { visibility: hidden; }
.access-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 28px 18px;
  background: linear-gradient(145deg, #2b2b2b 0%, #555 58%, #3b3b3b 100%);
}
.access-gate[hidden] { display: none; }
.access-card {
  width: min(460px, 100%);
  padding: 32px 34px 30px;
  border-top: 8px solid var(--red);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, .32);
  text-align: center;
}
.access-logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  object-fit: cover;
}
.access-kicker {
  margin-bottom: 7px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.access-card h1 {
  margin-bottom: 12px;
  font-size: clamp(31px, 7vw, 42px);
  line-height: 1.05;
}
.access-intro {
  margin-bottom: 22px;
  color: #555;
}
.access-form {
  display: grid;
  gap: 10px;
  text-align: left;
}
.access-form label {
  color: #444;
  font-size: 14px;
  font-weight: 800;
}
.access-form input {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  color: var(--ink);
  border: 1px solid #aaa;
  border-radius: 4px;
  background: #fff;
}
.access-form .button {
  width: 100%;
  margin-top: 4px;
}
.access-error {
  margin: 2px 0 0;
  color: #a40008;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}
.access-note {
  margin: 18px 0 0;
  color: #777;
  font-size: 12px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 10px 14px;
  color: #fff;
  background: var(--red);
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px max(18px, calc((100vw - 1180px) / 2));
  border-top: 6px solid var(--red);
  border-bottom: 1px solid #d4d4d4;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(14px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  width: 50px;
  height: 50px;
  object-fit: cover;
}
.brand span { display: grid; line-height: 1.25; }
.brand strong {
  font-size: 15px;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.brand small { color: var(--muted); font-size: 13px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.connection {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}
.connection span { width: 8px; height: 8px; border-radius: 50%; background: #2a9d57; }
.connection.offline span { background: #c88718; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible,
input:focus-visible,
select:focus-visible,
.brand-chip:focus-visible,
.advanced-button:focus-visible {
  outline: 3px solid rgba(227, 6, 19, .26);
  outline-offset: 2px;
}
.button-primary { color: #fff; background: var(--red); }
.button-primary:hover { background: var(--red-dark); }
.button-quiet { color: var(--ink); border-color: #cfcfcf; background: #fff; }
.button-light { color: #fff; background: var(--red); }

.cover {
  color: #fff;
  background: var(--charcoal);
  border-bottom: 8px solid var(--charcoal-deep);
}
.cover-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 50px;
  min-height: 446px;
  padding-block: 30px 38px;
}
.cover-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.cover-logo {
  width: 142px;
  height: 142px;
  margin-bottom: 22px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, .12);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cover .eyebrow { color: #fff; }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 620px;
  margin-bottom: 10px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -.045em;
}
h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.lead {
  margin-bottom: 18px;
  color: #f0f0f0;
  font-size: 17px;
}
.facts { display: flex; flex-wrap: wrap; gap: 8px; }
.facts span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 4px;
  color: #efefef;
  font-size: 13px;
}
.facts strong { color: #fff; }
.cover-claim {
  margin: 26px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.cover-collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.35fr .82fr;
  gap: 10px;
  min-height: 374px;
}
.cover-product {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
}
.cover-product-main { grid-column: 1 / -1; }
.cover-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cover-product-main img {
  padding: 8px 20px;
  object-fit: contain;
}
.cover-product:nth-child(3) img { object-position: center 43%; }
.cover-product-contain {
  background: linear-gradient(145deg, #f8f8f8, #dedede);
}
.cover-product-contain img {
  padding: 10px 18px;
  object-fit: contain;
}
.cover-product figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 8px;
  border-radius: 3px;
  color: #fff;
  background: rgba(43, 43, 43, .86);
  font-size: 12px;
  font-weight: 700;
}

.catalog-section {
  position: relative;
  z-index: 3;
  margin-top: -24px;
  padding-bottom: 72px;
}
.filter-panel {
  display: grid;
  grid-template-columns: 1.7fr repeat(3, 1fr);
  gap: 12px;
  padding: 17px 18px 19px;
  border: 1px solid #cfcfcf;
  border-top: 6px solid var(--red);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.filter-panel label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #555;
  font-size: 13px;
  font-weight: 700;
}
.advanced-button { display: none; }
.filter-panel input,
.filter-panel select {
  width: 100%;
  height: 44px;
  padding: 0 11px;
  color: var(--ink);
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
}
.search-wrap { position: relative; display: block; }
.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 19px;
  height: 19px;
  transform: translateY(-50%);
  fill: none;
  stroke: #777;
  stroke-width: 2;
}
.search-wrap input { padding-left: 40px; }

.brand-filter {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  padding: 14px 0 12px;
  scrollbar-width: thin;
}
.brand-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 12px;
  color: #3b3b3b;
  border: 1px solid #c8c8c8;
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
}
.brand-chip span {
  min-width: 23px;
  padding: 1px 5px;
  color: #666;
  border-radius: 3px;
  background: #eeeeee;
  font-size: 12px;
  text-align: center;
}
.brand-chip.active { color: #fff; border-color: var(--red); background: var(--red); }
.brand-chip.active span { color: var(--red); background: #fff; }

.brand-chapter {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  margin: 4px 0 28px;
  border: 1px solid #cfcfcf;
  background: #fff;
}
.brand-chapter[hidden] { display: none; }
.chapter-copy { padding: 22px 26px 24px; }
.chapter-copy .eyebrow { margin-bottom: 3px; }
.chapter-copy h2 { margin-bottom: 2px; font-size: 36px; }
.chapter-subtitle { margin-bottom: 14px; color: #4f4f4f; }
.chapter-stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr;
  margin-bottom: 15px;
  border: 1px solid #d9cfd0;
  background: var(--soft-red);
}
.chapter-stats span {
  display: grid;
  min-height: 62px;
  padding: 10px;
  border-right: 1px solid #d9cfd0;
  color: #555;
  font-size: 12px;
}
.chapter-stats span:last-child { border-right: 0; }
.chapter-stats strong { color: var(--ink); font-size: 17px; }
.chapter-copy-text { margin-bottom: 10px; font-size: 15px; line-height: 1.42; }
.chapter-link {
  color: var(--red);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.chapter-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.chapter-visual {
  display: grid;
  min-height: 300px;
  padding: 12px;
  border-left: 5px solid var(--red);
}
.chapter-visual img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  object-fit: contain;
  background: #fff;
}
.chapter-placeholder {
  display: grid;
  place-items: center;
  min-height: 270px;
  color: #777;
  background: #f5f5f5;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.chapter-caption {
  margin-top: 6px;
  color: #888;
  font-size: 12px;
  text-align: center;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: 14px 0 0;
  padding: 0 0 10px;
  border-bottom: 3px solid var(--red);
}
.catalog-heading h2 { margin-bottom: 0; }
.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 54px;
}
.result-toolbar p { margin: 0; color: #444; font-size: 14px; font-weight: 700; }
.reset-button {
  padding: 8px 0;
  color: var(--red);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.price-guide {
  margin-bottom: 18px;
  padding: 9px 12px;
  color: #555;
  border-left: 4px solid var(--red);
  background: #e7e7e7;
  font-size: 13px;
}
.price-guide span { color: var(--ink); font-weight: 800; }

.results { display: grid; gap: 26px; }
.price-sheet { min-width: 0; }
.sheet-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 7px;
}
.sheet-heading-main { display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.sheet-brand {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.sheet-heading h3 { margin: 0; color: #333; font-size: 24px; }
.sheet-count { color: #777; font-size: 12px; }
.table-wrap {
  overflow-x: auto;
  border: 1px solid #cfcfcf;
  background: #fff;
}
.price-table {
  width: 100%;
  min-width: 830px;
  border-collapse: collapse;
  table-layout: fixed;
}
.price-table th {
  padding: 8px 9px;
  color: #fff;
  background: var(--red);
  font-size: 12px;
  line-height: 1.15;
  text-align: left;
  vertical-align: bottom;
}
.price-table th:nth-child(n+3),
.price-table td:nth-child(n+3) { text-align: right; }
.price-table th:first-child { width: 34%; }
.price-table th:nth-child(2) { width: 20%; }
.price-table td {
  padding: 7px 9px;
  border-bottom: 1px solid #d2d2d2;
  color: #333;
  font-size: 14px;
  line-height: 1.3;
  vertical-align: middle;
}
.price-table tbody tr:nth-child(even) { background: var(--row); }
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--soft-red); }
.price-table td:first-child { font-weight: 600; }
.price-table .copay-cell { color: #9b0008; font-weight: 700; }
.empty-state {
  padding: 52px 20px;
  text-align: center;
  border: 1px dashed #bdbdbd;
  background: #fff;
}
.empty-state strong { font-size: 21px; }
.empty-state p { color: var(--muted); }

.products {
  padding-block: 58px 66px;
  border-top: 8px solid var(--charcoal-deep);
  background: #fff;
}
.products .section-heading { max-width: 820px; margin-bottom: 24px; }
.section-heading h2 { margin-bottom: 0; }
.product-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: 12px;
  overflow-x: auto;
  padding: 3px 3px 16px;
  scroll-snap-type: x proximity;
}
.product-tile {
  display: grid;
  grid-template-rows: 200px auto;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #cccccc;
  border-radius: 5px;
  background: #fff;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.product-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-tile img {
  width: 100%;
  height: 200px;
  padding: 9px;
  object-fit: contain;
  background: #f1f1f1;
}
.product-tile:nth-child(2) img,
.product-tile:nth-child(3) img,
.product-tile:nth-child(4) img { padding: 0; object-fit: cover; }
.product-tile.product-tile-contain img {
  padding: 14px;
  object-fit: contain;
  background: linear-gradient(145deg, #f8f8f8, #dedede);
}
.product-tile span {
  display: grid;
  padding: 12px 14px 14px;
  border-top: 4px solid var(--red);
}
.product-tile small { color: var(--muted); font-size: 13px; }
.image-note { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.consultation {
  color: #fff;
  border-top: 6px solid var(--red);
  background: var(--charcoal);
}
.consultation-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-block: 42px;
}
.consultation .eyebrow { color: #fff; }
.consultation h2 { margin-bottom: 6px; }
.consultation p:not(.eyebrow) { margin: 0; color: #f0f0f0; }

footer {
  padding-block: 34px 20px;
  color: #dddddd;
  background: var(--charcoal-deep);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1.2fr .6fr;
  gap: 34px;
  align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { width: 62px; height: 62px; }
.footer-brand p,
.footer-inner p { margin: 0; }
.footer-links { display: grid; gap: 7px; justify-items: start; }
.footer-links a { color: #fff; text-underline-offset: 3px; }
.legal {
  margin-top: 26px;
  padding-top: 16px;
  color: #aaaaaa;
  border-top: 1px solid #4a4a4a;
  font-size: 12px;
}
.legal p { margin: 0; }

dialog {
  width: min(470px, calc(100% - 32px));
  padding: 30px;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .25);
}
dialog::backdrop { background: rgba(0, 0, 0, .5); }
.dialog-close {
  position: absolute;
  right: 14px;
  top: 12px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 27px;
}
dialog h2 { font-size: 28px; }
dialog p:last-child { margin-bottom: 0; }
noscript { display: block; padding: 15px; color: #fff; text-align: center; background: #7d0006; }

@media (max-width: 980px) {
  .cover-grid { grid-template-columns: .92fr 1.08fr; gap: 24px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .brand-chapter { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 18px; }
}

@media (max-width: 760px) {
  .access-card { padding: 26px 22px 24px; }
  .access-logo { width: 92px; height: 92px; margin-bottom: 16px; }

  html { scroll-padding-top: 76px; }
  .shell { width: min(100% - 24px, 680px); }
  .site-header { height: 68px; padding: 6px 12px; border-top-width: 5px; }
  .brand img { width: 46px; height: 46px; }
  .brand small,
  .connection { display: none; }
  .brand strong { font-size: 12px; }
  .install-button { min-height: 38px; padding: 8px 12px; font-size: 13px; }

  .cover-grid {
    grid-template-columns: 1fr 1.12fr;
    gap: 14px;
    min-height: 330px;
    padding-block: 22px 28px;
  }
  .cover-logo { width: 86px; height: 86px; margin-bottom: 14px; }
  .cover .eyebrow { margin-bottom: 5px; font-size: 12px; }
  h1 { font-size: clamp(33px, 8.8vw, 45px); }
  .lead { margin-bottom: 12px; font-size: 14px; }
  .facts span { padding: 5px 7px; font-size: 12px; }
  .cover-claim { margin-top: 14px; font-size: 12px; }
  .cover-collage { grid-template-rows: 1.15fr .85fr; min-height: 282px; gap: 6px; }
  .cover-product { border-radius: 6px; }
  .cover-product figcaption { display: none; }

  .catalog-section { margin-top: -18px; }
  .filter-panel { grid-template-columns: 1fr; padding: 12px; border-top-width: 5px; }
  .filter-panel > label:not(.search-field) { display: none; }
  .filter-panel.expanded > label { display: grid; }
  .advanced-button {
    display: inline-flex;
    justify-content: center;
    padding: 8px 10px;
    color: var(--red);
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 800;
  }
  .brand-filter { padding-block: 10px; }
  .brand-chip { min-height: 36px; padding: 6px 9px; font-size: 13px; }

  .brand-chapter { grid-template-columns: 1fr; }
  .chapter-copy { padding: 18px; }
  .chapter-copy h2 { font-size: 32px; }
  .chapter-stats { grid-template-columns: 1fr 1fr; }
  .chapter-stats span:nth-child(2) { border-right: 0; }
  .chapter-stats span:last-child { grid-column: 1 / -1; border-top: 1px solid #d9cfd0; }
  .chapter-visual { min-height: 220px; border-top: 5px solid var(--red); border-left: 0; }
  .chapter-visual img { max-height: 220px; }

  .catalog-heading { align-items: flex-start; }
  .catalog-heading .button { display: none; }
  .result-toolbar { min-height: 50px; }
  .price-guide { font-size: 12px; }

  .results { gap: 22px; }
  .sheet-heading { align-items: flex-start; }
  .sheet-heading-main { display: grid; gap: 0; }
  .sheet-heading h3 { font-size: 22px; }
  .table-wrap { overflow: visible; border: 0; background: transparent; }
  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td { display: block; width: 100%; min-width: 0; }
  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .price-table tbody { display: grid; gap: 8px; }
  .price-table tr {
    padding: 12px 14px;
    border: 1px solid #cfcfcf;
    border-left: 5px solid var(--red);
    background: #fff !important;
  }
  .price-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    border: 0;
    font-size: 14px;
    text-align: right !important;
  }
  .price-table td::before {
    content: attr(data-label);
    flex: 0 0 42%;
    color: #777;
    font-size: 12px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
  }
  .price-table td:first-child {
    display: block;
    padding: 0 0 9px;
    border-bottom: 1px solid #dedede;
    font-size: 16px;
    text-align: left !important;
  }
  .price-table td:first-child::before { display: none; }

  .product-strip { grid-auto-columns: 78%; }
  .consultation-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-column: auto; }
}

@media (max-width: 500px) {
  .cover-grid {
    grid-template-columns: 1fr;
    padding-top: 18px;
  }
  .cover-copy { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
  .cover-logo { grid-row: 1 / 4; width: 82px; height: 82px; margin: 0; }
  .cover .eyebrow { align-self: end; margin: 0; }
  .cover h1 { margin: 0; font-size: 34px; }
  .cover .lead { grid-column: 1 / -1; margin: 12px 0 10px; }
  .cover .facts { grid-column: 1 / -1; }
  .cover-claim { display: none; }
  .cover-collage { min-height: 185px; }
  .cover-product-main img { padding: 4px 12px; }
  .result-toolbar { display: grid; }
  .product-strip { grid-auto-columns: 88%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body { background: #fff; }
  .site-header,
  .cover,
  .filter-panel,
  .brand-filter,
  .brand-chapter,
  .price-guide,
  .products,
  .consultation,
  footer,
  dialog { display: none !important; }
  .catalog-section { width: 100%; margin: 0; padding: 0; }
  .catalog-heading { margin: 0 0 8px; }
  .catalog-heading .button,
  .reset-button { display: none; }
  .results { gap: 18px; }
  .price-sheet { break-inside: avoid; }
  .price-table { min-width: 0; }
  .price-table th { color: #fff !important; background: var(--red) !important; print-color-adjust: exact; }
  .price-table tbody tr:nth-child(even) { background: var(--row) !important; print-color-adjust: exact; }
}
