#kits {
  --bg: #fff;
  --panel: #f5f6f1;
  --accent: #e8ede0;
  --text: #171d15;
  --muted: #4e5b44;
  --line: #d5ddce;
  --kit-label-width: 23%;
  padding: var(--section-space, 65px) var(--gutter);
  background: var(--bg);
  color: var(--text);
  scroll-margin-top: 76px;
}
#kits :is(h2, h3, h4, p, figure) { margin: 0; }
#kits img { display: block; width: 100%; height: auto; }
#kits button { font: inherit; color: inherit; cursor: pointer; }
#kits :is(button, summary):focus-visible { outline: 2px solid #355c34; outline-offset: 3px; }
#kits .heading { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, .9fr); gap: 15px 36px; align-items: end; margin-bottom: 32px; }
#kits .heading h2 { font-size: clamp(35px, 5.2vw, 72px); line-height: .99; letter-spacing: -.065em; font-weight: 650; text-wrap: balance; }
#kits .kit-model { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
#kits .heading > p { color: var(--muted); line-height: 1.5; max-width: 380px; padding-bottom: 2px; }
#kits .kit-photo { overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; text-align: center; }
#kits .photo-frame { position: relative; background: #d1d8c3; }
#kits .photo-frame img { aspect-ratio: 4 / 3; object-fit: cover; }
#kits .kit-photo figcaption { font-size: clamp(17px, 2.3vw, 32px); font-weight: 650; letter-spacing: -.045em; padding: 11px 6px; }
#kits .extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
#kits .kit-gallery {
  display: grid;
  grid-template-columns: var(--kit-label-width) repeat(3, minmax(0, 1fr));
  margin-bottom: 12px;
}
#kits .kit-gallery > :first-child { grid-column: 2; }
#kits .compare, #kits .kit-addon-table, #kits .stock-table { width: 100%; border-collapse: collapse; table-layout: fixed; background: var(--panel); font-size: clamp(13px, 1.2vw, 16px); }
#kits .kit-compare { margin: 0 0 20px; }
#kits :is(.compare, .kit-addon-table, .stock-table) :is(td, th) { padding: 12px clamp(5px, 1vw, 14px); border-bottom: 1px solid var(--line); }
#kits .compare :is(td, th) { text-align: center; }
#kits .compare th:first-child { width: var(--kit-label-width); text-align: left; }
#kits .compare :is(thead, tfoot), #kits .group-row, #kits .kit-addon-table thead, #kits .stock-table thead { background: var(--accent); }
#kits .compare .kit-column-headings th { padding: 0; border: 0; }
#kits .kit-column-headings span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
#kits .compare .group-row th { width: auto; }
#kits .compare .price { font-size: clamp(17px, 2.55vw, 33px); letter-spacing: -.045em; font-weight: 700; white-space: nowrap; }
#kits .compare .price span { font-size: .63em; }
#kits .part-name { display: block; font-size: .85em; font-weight: 450; color: var(--muted); }
#kits .absent { color: var(--muted); font-size: .86em; }
#kits .part-button { border: 0; background: transparent; text-align: left; padding: 0; font-weight: inherit; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
#kits .part-button:is(:hover, .is-active) { text-decoration-color: currentColor; }
#kits tr:has(.part-button.is-active) { background: var(--accent); }
#kits .extras { padding-top: 24px; border-top: 1px solid var(--line); }
#kits .extras-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 15px; }
#kits .extras-head h3 { font-size: clamp(24px, 3.4vw, 42px); letter-spacing: -.05em; }
#kits .extras-head > span { color: var(--muted); font-size: 13px; }
#kits .extra { min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); overflow: hidden; }
#kits .extra-copy { padding: 16px; }
#kits .extra h4 { font-size: clamp(17px, 2vw, 25px); letter-spacing: -.04em; }
#kits .extra p { margin: 8px 0 12px; font-size: 13px; color: var(--muted); line-height: 1.45; }
#kits .kit-addon-table :is(th, td), #kits .stock-table :is(th, td) { text-align: left; }
#kits .kit-addon-table :is(th, td):last-child, #kits .stock-table :is(th, td):last-child { text-align: right; width: 34%; }
#kits .kit-addon-price { white-space: nowrap; }
#kits .shared { margin-top: 24px; border-block: 1px solid var(--line); }
#kits .shared summary { padding-block: 13px; cursor: pointer; font-weight: 650; }
#kits .stock-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-bottom: 14px; }
#kits .detail-photo { background: #e0e6d6; }
#kits .detail-photo img { width: 100%; aspect-ratio: 1.35; object-fit: contain; }
#kits .detail-caption { padding: 12px 14px; display: grid; gap: 3px; font-size: 13px; }
#kits .detail-caption strong { font-size: 19px; letter-spacing: -.025em; }
#kits .detail-caption small { color: var(--muted); }
#kits #photo-popup { pointer-events: none; position: absolute; z-index: 9; width: min(245px, 65vw); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 8px 28px #151f1729; }
#kits #photo-popup .detail-photo img { max-height: 165px; }
#kits .inline-detail { display: none; }

#kits .markers { position: absolute; inset: 0; pointer-events: none; }
#kits .macro-label {
  position: absolute;
  inset: auto 8px 8px;
  padding: 7px 9px;
  border-radius: 5px;
  background: #19261e;
  color: #f4f7ef;
  text-align: left;
  font-size: clamp(10px, 1.05vw, 14px);
}
#kits .macro-label small { display: block; color: #ccd7c7; }
#kits .kit-photo figcaption { min-height: 2.45em; display: grid; place-items: center; }
#kits #photo-popup { z-index: 45; }
#kits #photo-popup[hidden] { display: none; }
#kits .part-button { font-weight: inherit; }
#kits :is(.compare, .kit-addon-table) button { scroll-margin-block-start: 76px; }
@media (min-width: 881px) and (min-height: 760px) {
  #kits .kit-gallery {
    position: sticky;
    top: 66px;
    z-index: 2;
    background: var(--bg);
    padding-block: 8px;
  }
  #kits .kit-gallery img { max-height: 28vh; object-fit: contain; }
  #kits .kit-gallery img.is-macro { object-fit: cover; }
  #kits .kit-compare button { scroll-margin-block-start: calc(28vh + 156px); }
}
@media (max-width: 880px) {
  #kits .extras-grid { grid-template-columns: 1fr; }
  #kits .inline-detail { display: block; background: var(--accent); }
  #kits tr.inline-detail { display: table-row; }
  #kits .inline-detail img { max-height: 200px; }
  #kits .macro-label { display: none; }
}
@media (max-width: 620px) {
  #kits .heading, #kits .stock-grid { grid-template-columns: 1fr; }
  #kits .heading { margin-bottom: 23px; }
  #kits .heading > p { font-size: 14px; }
  #kits { --kit-label-width: 27%; }
  #kits .compare { font-size: clamp(11px, 3.1vw, 14px); }
  #kits .compare :is(tbody, tfoot) :is(td, th) { padding-inline: 4px; overflow-wrap: anywhere; }
  #kits .compare .price { font-size: clamp(13px, 4vw, 20px); }
  #kits .kit-photo { border-radius: 7px; }
  #kits .kit-photo figcaption { font-size: clamp(11px, 3.5vw, 16px); padding: 7px 2px; }
}
