.detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 20px 64px;
}
.crumb {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
}
.crumb a { color: var(--title); }
.kit-heading {
  grid-area: heading;
  margin: 0 0 14px;
  text-align: center;
}
.kit-heading h1 {
  margin: 0;
  color: var(--title);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.detail-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  grid-template-areas:
    "gallery heading"
    "gallery summary";
  column-gap: 28px;
  row-gap: 0;
  align-items: start;
}
.gallery { grid-area: gallery; min-width: 0; }
.summary { grid-area: summary; }
.stage {
  background: #e6eef6;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.stage img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e6eef6;
}
.stage [hidden] { display: none; }
.stage video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  background: var(--navy-deep);
}
.stage figcaption, .thumbs figcaption {
  margin: 0;
  padding: 8px 12px 10px;
  font-size: 13px;
  color: var(--muted);
  background: #fff;
}
.thumbs {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
}
.thumbs button {
  flex: 0 0 112px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
}
.thumbs button[aria-current="true"] { border-color: var(--navy); }
.thumbs button.is-video { position: relative; }
.thumbs .play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: rgba(16, 37, 68, 0.85);
  box-shadow: 0 0 0 2px #fff;
}
.thumbs .play::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 13px;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent #fff;
}
.thumbs img {
  width: 100%;
  height: 72px;
  object-fit: cover;
}
.thumbs span {
  display: block;
  padding: 6px 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.3;
}
.facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}
.facts li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.facts dt {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.facts dd {
  margin: 4px 0 0;
  color: var(--navy);
  font-weight: 700;
}
.facts .fine {
  display: block;
  margin-top: 4px;
  font-weight: 400;
  font-size: 12px;
  color: var(--muted);
}
.price {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.price-label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-value {
  margin: 2px 0 0;
  font-family: Roboto, "Open Sans", sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
.price-note {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.summary .btn { width: 100%; }
.property-note {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
}
.block {
  margin-top: 36px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 20px 8px;
}
.block h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 24px;
}
.block p, .block li { line-height: 1.5; }
.block ul { margin: 8px 0 16px; padding-left: 18px; }
.forward-cta {
  display: flex;
  justify-content: center;
  margin: 16px 0 20px;
}
.forward-cta .btn { min-width: min(100%, 420px); }
.block h3 {
  margin: 12px 0 0;
  color: var(--navy);
  font-size: 18px;
}
.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}
.related a {
  display: block;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--navy);
  background: var(--paper);
}
.related strong { display: block; margin-bottom: 4px; }
.related span { color: var(--muted); font-size: 14px; }
.quote-dialog {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 37, 68, 0.5);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}
.quote-dialog[hidden] { display: none; }
.quote-panel {
  background: #fff;
  width: min(480px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 16px;
  padding: 16px;
}
.quote-panel h2 { margin: 0 0 8px; color: var(--navy); font-size: 20px; }
.quote-note { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
#quote-body .form_page { margin-bottom: 8px; }
#quote-body .hidden { display: none; }
#quote-body label { display: block; font-weight: 700; margin: 10px 0 4px; color: var(--navy); }
#quote-body select,
#quote-body textarea,
#quote-body input:not([type="checkbox"]) {
  width: 100%;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  padding: 10px 12px;
}
#quote-body input[type="checkbox"] {
  width: auto;
  margin-right: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
}
#quote-body .helpful-now-options label { font-weight: 500; }
#quote-body .form-image { margin: 0 0 12px; text-align: center; }
#quote-body .form-image img.kit-consult-thumb {
  width: 160px;
  max-width: 100%;
  max-height: 120px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
}
.kit-details {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid #c5d0dc;
  border-radius: 10px;
  background: #f4f7fb;
}
.kit-details p { margin: 0; }
.kit-details-label { font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--navy); }
.kit-details-name { margin-top: 4px; color: var(--navy); line-height: 1.35; }
.kit-details-page { margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; word-break: break-all; }
.quote-actions { display: flex; gap: 8px; margin-top: 8px; }
.quote-nav { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 16px; }
.quote-dialog .quote-nav .btn[hidden] { display: none; }

@media (max-width: 860px) {
  .detail { padding: 12px 16px 40px; }
  .detail-top {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "gallery"
      "summary";
    row-gap: 0;
  }
  .related, .facts { grid-template-columns: 1fr; }
  .kit-heading { margin-bottom: 16px; }
  .gallery { margin-bottom: 28px; }
  .kit-heading h1 { font-size: 26px; }
  .price-value { font-size: 23px; }
  .thumbs.has-video button { flex: 0 0 calc((100% - 24px) / 4); }
  .thumbs.has-video img { height: 60px; }
  .block { margin-top: 20px; padding: 16px 14px 4px; }
  .quote-dialog { align-items: flex-end; padding: 0; }
  .quote-panel { border-radius: 16px 16px 0 0; max-height: 88vh; }
}
