.test-product-hero, .category-hero, .test-closing {
  width: min(calc(100% - 24px), 1780px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 24px;
}
.test-product-hero {
  padding: clamp(22px, 4vw, 62px) 18px;
  background: radial-gradient(ellipse at 12% 16%, #d7ecef, #eff7fc 60%, #f6fafc);
  border: 1px solid var(--line);
}
.test-product-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  align-items: start;
  gap: clamp(24px, 3.5vw, 55px);
  max-width: 1200px;
  width: 100%;
}
.test-product-visual { position: relative; margin: 0; }
.test-product-image {
  display: block;
  width: 100%;
  aspect-ratio: 1.02;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 14px 35px #12324317;
}
.test-product-visual figcaption {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  color: var(--text-muted);
  font-size: .8125rem;
  font-weight: 600;
}
.test-product-visual figcaption .icon { width: 15px; height: 15px; color: var(--accent); }
.purchase-card {
  min-width: 0;
  padding: clamp(19px, 3vw, 34px);
  border: 1px solid #cbdfe9;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px #283a6411;
}
.purchase-type, .category-test-type {
  display: inline-block;
  width: fit-content;
  margin: 0 0 9px;
  color: var(--accent);
  font-size: .75rem;
  font-weight: 700;
}
.purchase-type { padding: 5px 9px; border-radius: 999px; background: var(--mint-pale); }
.purchase-card h1, .category-hero h1 {
  font: 650 clamp(2.15rem, 4.05vw, 3.55rem)/1.02 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -.065em;
  text-wrap: balance;
  margin: 0;
}
.purchase-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 12px; }
.purchase-price strong { font: 700 clamp(1.95rem, 3.4vw, 2.8rem)/1.04 'Space Grotesk', Inter, sans-serif; letter-spacing: -.055em; }
.purchase-price span { color: var(--text-muted); font-size: .8125rem; }
.purchase-summary, .purchase-overview > p {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: .94rem;
  line-height: 1.56;
}
.purchase-overview { margin: 7px 0 15px; }
.purchase-overview summary, .purchase-all-markers > summary, .category-test-measures summary {
  display: flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  min-height: 34px;
  color: var(--accent);
  font-size: .8125rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.purchase-overview summary::-webkit-details-marker,
.purchase-all-markers > summary::-webkit-details-marker,
.category-test-measures summary::-webkit-details-marker { display: none; }
.purchase-overview summary:focus-visible, .purchase-all-markers > summary:focus-visible,
.category-test-measures summary:focus-visible, .category-table-wrap:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.purchase-overview summary .icon, .purchase-all-markers > summary .icon, .category-test-measures summary .icon { width: 15px; height: 15px; }
.purchase-overview[open] summary .icon { transform: rotate(45deg); }
.purchase-all-markers[open] > summary .icon, .category-test-measures details[open] > summary .icon { transform: rotate(180deg); }
.purchase-overview > p { margin: 1px 0 0; }
.purchase-markers {
  padding: 14px;
  border: 1px solid #d8e7ee;
  border-radius: 13px;
  background: #f3f8fb;
  scroll-margin-top: 15px;
}
.purchase-markers-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 3px 10px; margin-bottom: 9px; }
.purchase-markers-title h2 { margin: 0; font: 650 1.08rem/1.2 'Space Grotesk', Inter, sans-serif; letter-spacing: -.02em; }
.purchase-markers-title span { color: var(--text-muted); font-size: .75rem; }
.marker-buttons, .purchase-facts, .category-hero-facts, .category-marker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.marker-chip, .purchase-facts li, .category-marker-tags li, .category-hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 .75rem/1.27 Inter, sans-serif;
  overflow-wrap: anywhere;
}
.marker-chip { text-align: left; }
.marker-chip:hover, .marker-chip[aria-expanded="true"] { border-color: var(--line-teal); background: var(--mint-pale); color: var(--accent); }
.marker-chip .icon, .purchase-facts .icon, .category-hero-facts .icon { width: 13px; height: 13px; color: var(--accent); }
.marker-description { margin-top: 9px; padding: 8px 10px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: #fff; font-size: .82rem; }
.marker-description p { margin: 4px 0 0; color: var(--text-muted); line-height: 1.45; }
.purchase-all-markers { margin-top: 3px; }
.purchase-all-markers .marker-groups { margin: 4px 0 3px; }
.purchase-all-markers .marker-group summary { padding: 8px 10px; }
.purchase-all-markers .marker-group summary strong { font-size: .83rem; }
.purchase-all-markers .marker-group ul { padding: 9px 10px; grid-template-columns: minmax(0, 1fr); }
.purchase-all-markers .marker-group li { font-size: .81rem; overflow-wrap: anywhere; }
.purchase-facts { margin-top: 13px; }
.purchase-facts li { color: var(--text-muted); }
.purchase-plan {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 3px 12px;
  margin-top: 13px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f9fcfd;
}
.purchase-plan strong, .purchase-plan small { display: block; }
.purchase-plan strong { font-size: .86rem; }
.purchase-plan small { margin-top: 3px; color: var(--text-muted); font-size: .75rem; }
.purchase-plan .section-link { min-height: 30px; }
.purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 3px 8px;
  margin-top: 12px;
}
.purchase-actions .page-button { min-width: 0; padding-inline: 9px; }
.purchase-actions .section-link { grid-column: 1/-1; width: fit-content; min-height: 31px; font-size: .8125rem; }
.product-save-status { margin: 0; color: var(--accent); font-size: .81rem; }
.product-save-status .section-link { min-height: 26px; }
.test-jump { gap: 8px 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }

.test-article-section { padding-block: var(--space-article-section); scroll-margin-top: 16px; }
.test-article-section h2, .test-closing h2 {
  margin: 0;
  font: 600 clamp(1.85rem, 3.5vw, 3.05rem)/1.09 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -.049em;
  text-wrap: balance;
}
.test-article-section p, .test-closing p { color: var(--text-muted); line-height: 1.6; }
.test-article-section .page-kicker { margin: 0 0 8px; color: var(--accent); }
.test-section-intro { max-width: 720px; margin: 0 auto clamp(18px, 3vw, 32px); text-align: center; }
.test-section-intro p:not(.page-kicker) { margin: 9px 0 0; }
.test-report, .test-media, .category-chooser, .test-faq {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4.6vw, 66px);
}
.test-report-copy > p:not(.page-kicker), .test-faq > div > p, .test-media > div > p:not(.page-kicker), .category-chooser p:not(.page-kicker) { margin: 12px 0 0; }
.test-report-features { display: grid; gap: 10px; margin: 19px 0; padding: 0; list-style: none; }
.test-report-features li { display: flex; gap: 8px; color: var(--text-muted); font-size: .88rem; line-height: 1.45; }
.test-report-features strong { display: block; margin-bottom: 2px; color: var(--ink); }
.test-report-features .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--accent); }
.test-report-copy .sample-report-caption { font-size: .75rem; }
.sample-report-sheet {
  min-width: 0;
  padding: clamp(14px, 2.75vw, 29px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 32px #26327614;
}
.sample-report-head { display: flex; justify-content: space-between; gap: 5px 9px; padding-bottom: 9px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.sample-report-head strong { display: flex; align-items: center; gap: 6px; }
.sample-report-head .icon, .sample-report-note .icon { width: 16px; height: 16px; color: var(--accent); }
.sample-report-head small, .sample-report-sheet > p { color: var(--text-muted); font-size: .77rem; }
.sample-report-sheet > p { margin: 12px 0 8px; font-weight: 650; }
.sample-report-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.sample-report-sheet th, .sample-report-sheet td { padding: 8px 6px; border-bottom: 1px solid var(--line); color: var(--text-muted); font-size: .79rem; line-height: 1.38; overflow-wrap: anywhere; }
.sample-report-sheet th { color: var(--ink); font-weight: 650; }
.sample-report-sheet thead th { background: var(--sky-pale); }
.sample-report-sheet thead th:first-child { width: 49%; }
.sample-report-sheet thead th:nth-child(2) { width: 14%; }
.sample-report-note { display: flex; align-items: start; gap: 6px; margin-top: 12px; padding: 8px; border-radius: 8px; background: var(--mint-pale); color: var(--text-muted); font-size: .77rem; line-height: 1.4; }
.sample-report-dialog {
  width: min(94%, 680px);
  max-height: min(84dvh, 760px);
  overflow-y: auto;
  padding: clamp(13px, 2.4vw, 24px);
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink);
}
.sample-report-dialog::backdrop { background: #182340a0; }
.sample-report-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.sample-report-dialog-head h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.sample-report-close { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 50%; background: var(--sky-pale); color: var(--ink); }
.sample-report-close .icon { width: 19px; height: 19px; }
.sample-report-dialog .sample-report-sheet { box-shadow: none; }

.test-value-section, .category-options, .category-lab { background: #f4f8fb; }
.test-benefits-grid, .category-test-grid, .category-quick-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.8vw, 21px);
}
.test-benefits-grid article, .category-quick-steps article {
  min-width: 0;
  padding: clamp(15px, 2.4vw, 26px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
}
.test-benefits-grid h3, .test-journey-list h3, .category-quick-steps h2, .category-test-card h3, .category-plan-banner h3, .category-test-group > h3 {
  margin: 8px 0 0;
  font: 650 clamp(1.13rem, 1.8vw, 1.43rem)/1.16 'Space Grotesk', Inter, sans-serif;
  letter-spacing: -.027em;
}
.test-benefits-grid p, .test-journey-list p, .category-quick-steps article p:not(.page-kicker) { margin: 7px 0 0; color: var(--text-muted); font-size: .88rem; line-height: 1.55; }
.test-value-section .page-tags { justify-content: center; }
.test-journey-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: clamp(20px, 4.7vw, 66px);
  align-items: center;
}
.test-journey-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.test-journey-list li { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--sky-pale); }
.test-journey-list h3 { margin: 2px 0 0; }
.test-journey-list .section-link { min-height: 29px; }
.test-step-number { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--accent); font-weight: 700; }
.test-journey-photo { margin: 0; }
.test-journey-photo img { width: 100%; min-height: 250px; aspect-ratio: 1.16; object-fit: cover; }
.test-journey-photo figcaption { display: flex; align-items: center; gap: 6px; margin-top: 8px; color: var(--text-muted); font-size: .82rem; }
.test-journey-photo figcaption .icon { width: 16px; height: 16px; color: var(--accent); }
.test-media { padding-top: clamp(24px, 3.5vw, 48px); border-top: 1px solid var(--line); }
.test-media video { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--line); border-radius: 17px; background: var(--sky-pale); object-fit: contain; }
.test-media .section-link { margin-top: 6px; }
.test-trust {
  display: grid;
  margin-block-end: var(--space-clinic-panel);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, .8fr);
  align-items: center;
  gap: 12px 28px;
  padding: clamp(20px, 3.7vw, 42px);
  border: 1px solid #cbe4e2;
  border-radius: 19px;
  background: linear-gradient(120deg, #edf9f6, #f3f8fc);
}
.test-trust h2 { font-size: clamp(1.58rem, 2.85vw, 2.45rem); }
.test-trust p:not(.page-kicker) { margin: 7px 0 0; }
.test-trust-links { display: grid; gap: 4px; }
.test-trust-links .section-link { min-height: 33px; }
.test-faq { grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); align-items: start; }
.test-faq + .test-faq { padding-top: 0; }
.test-faq h2 { font-size: clamp(1.65rem, 2.9vw, 2.45rem); }
.test-closing { background: linear-gradient(112deg, #192550, #155850); color: #fff; }
.test-closing-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px 28px; padding-block: clamp(25px, 4.2vw, 52px); }
.test-closing h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.6rem); }
.test-closing p { margin: 7px 0 0; color: #d9edf3; }
.test-closing .page-button-primary { background: #fff; color: var(--ink-strong); }
.test-closing .page-button-primary:hover { background: var(--mint); }
.test-closing .section-link { color: #cef9ec; }
.test-booking-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 25;
  border-top: 1px solid var(--line);
  background: #fffffff5;
  box-shadow: 0 -5px 20px #26327616;
  backdrop-filter: blur(12px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.test-booking-bar-inner { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-block: 8px; }
.test-booking-bar-inner > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; font-size: .93rem; }
.test-booking-bar-inner strong { overflow-wrap: anywhere; }
.test-booking-bar-inner span { color: var(--accent); font-weight: 700; white-space: nowrap; }
.test-booking-bar .page-button { flex-shrink: 0; }

.category-hero { position: relative; display: grid; min-height: clamp(400px, 38vw, 590px); place-items: center; isolation: isolate; color: #fff; background: #193658; }
.category-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.category-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(106deg, #121b41ed, #16465acb 57%, #15395bdf); }
.category-hero-inner { display: grid; justify-items: center; padding: clamp(40px, 6vw, 83px) 0; text-align: center; }
.category-hero .page-kicker { color: #b9f6e6; }
.category-hero h1 { max-width: 18ch; color: #fff; font-size: clamp(2.5rem, 5vw, 4.6rem); }
.category-hero-description { max-width: 57ch; margin: 13px auto 0; color: #e7f3f9; font-size: clamp(.94rem, 1.7vw, 1.14rem); line-height: 1.61; }
.category-hero-facts { justify-content: center; margin: 17px 0 19px; }
.category-hero-facts li { min-height: 32px; border-color: #ffffff53; background: #ffffff14; color: #fff; }
.category-hero-facts .icon { color: #b9f6e6; }
.category-hero .page-actions { justify-content: center; }
.category-hero .page-button-primary { background: #b7eee4; color: #173353; }
.category-hero .page-button-primary:hover { background: #e5f8f3; }
.category-hero .page-button-outline { border-color: #ffffff82; background: #ffffff18; color: #fff; }
.category-hero .page-button-outline:hover { background: #ffffff42; }
.category-clinic-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px 22px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.category-clinic-strip .section-link { min-height: 30px; }
.category-quick-steps { padding-block: clamp(22px, 4.2vw, 49px); }
.category-quick-steps article { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 10px; padding: 14px; }
.category-quick-steps .page-kicker { margin: 1px 0 3px; }
.category-quick-steps h2 { margin: 0; font-size: 1.19rem; }
.category-options { scroll-margin-top: 12px; }
.category-test-grid { align-items: stretch; }
.category-test-card { display: flex; min-width: 0; flex-direction: column; padding: clamp(14px, 2.2vw, 25px); border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.category-test-card-featured { border-color: #82cfc0; box-shadow: 0 8px 25px #173c5320; }
.category-test-card-featured:nth-child(2) { background: linear-gradient(155deg, #f0fcf9, #fff 55%); }
.category-test-type { margin-bottom: 4px; }
.category-test-card h3 { margin: 0; }
.category-test-card h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.category-test-card > p:not(.category-test-type), .category-plan-banner p { margin: 8px 0 0; color: var(--text-muted); font-size: .88rem; line-height: 1.52; }
.category-test-measures { margin-top: 13px; padding-block: 10px; border-top: 1px solid var(--line); }
.category-test-measures > strong { display: block; margin-bottom: 7px; color: var(--text-muted); font-size: .77rem; }
.category-marker-tags li { min-height: 26px; padding: 4px 7px; background: var(--sky-pale); font-size: .72rem; }
.category-test-measures details > ul { max-height: 160px; overflow: auto; }
.category-test-footer { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.category-test-footer > div:first-child { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 7px; }
.category-test-footer strong { font: 700 1.75rem/1.1 'Space Grotesk', Inter, sans-serif; letter-spacing: -.047em; white-space: nowrap; }
.category-test-footer small { color: var(--text-muted); font-size: .75rem; }
.category-test-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 6px; margin-top: 10px; }
.category-test-actions .page-button { min-height: 40px; padding-inline: 6px; font-size: .79rem; }
.category-test-actions .icon { display: none; }
.category-test-group { margin-top: 22px; }
.category-test-group > h3 { margin: 0 0 11px; }
.category-plan-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 20px; margin-top: 20px; padding: clamp(14px, 2.2vw, 24px); border: 1px solid var(--line-teal); border-radius: 15px; background: var(--mint-pale); }
.category-plan-banner h3 { margin: 0; }
.test-layout-category .test-trust { margin-top: var(--space-clinic-panel); }
.category-chooser { padding-top: 0; }
.category-chooser-photo { width: 100%; min-height: 220px; max-height: 355px; aspect-ratio: 1.55; border-radius: 18px; object-fit: cover; }
.category-chooser .page-actions { margin-top: 15px; }
.category-lab .test-benefits-grid article { background: #fff; }
.category-compare { background: #f2faf9; }
.category-table-wrap { max-width: 1050px; margin-inline: auto; overflow: auto; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.category-table-wrap table { width: 100%; border-collapse: collapse; text-align: left; }
.category-table-wrap th, .category-table-wrap td { padding: clamp(10px, 1.6vw, 16px); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: .875rem; line-height: 1.48; }
.category-table-wrap thead th { background: var(--sky-pale); }
.category-table-wrap thead th:last-child { background: var(--ink); color: #fff; }
.category-table-wrap tbody td { color: var(--text-muted); }
.category-table-wrap tbody td:last-child { background: var(--mint-pale); }
.category-table-wrap tr:last-child :is(th,td) { border-bottom: 0; }
.category-feedback { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding-block: 14px 0; }

@media (max-width: 980px) {
  .test-product-hero, .category-hero, .test-closing { width: calc(100% - 18px); }
  .category-test-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-product-grid { gap: 18px; }
  .purchase-actions { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .test-product-grid, .test-report, .test-media, .category-chooser, .test-faq, .test-journey-layout, .test-trust { grid-template-columns: minmax(0, 1fr); }
  .test-product-image { aspect-ratio: 1.3; max-height: 390px; }
  .test-product-hero { padding-inline: 12px; }
  .purchase-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .test-benefits-grid, .category-quick-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .category-table-wrap table { min-width: 475px; }
  .test-journey-photo img { min-height: 160px; aspect-ratio: 1.5; }
}
@media (max-width: 540px) {
  .test-product-hero, .category-hero, .test-closing { width: calc(100% - 16px); border-radius: 17px; }
  .purchase-card { padding: 14px; border-radius: 15px; }
  .purchase-actions { grid-template-columns: minmax(0, 1fr); }
  .purchase-plan .section-link { min-height: 27px; }
  .purchase-markers { padding: 9px; }
  .marker-chip, .purchase-facts li { font-size: .7rem; }
  .product-save-status { font-size: .76rem; }
  .test-booking-bar-inner > div { font-size: .78rem; }
  .test-booking-bar-inner .page-button { min-height: 38px; padding: 7px 10px; font-size: .81rem; }
  .test-booking-bar-inner .icon { display: none; }
  .test-benefits-grid, .category-test-grid, .category-quick-steps { grid-template-columns: minmax(0, 1fr); }
  .category-hero-facts li { font-size: .71rem; }
  .sample-report-sheet th, .sample-report-sheet td { padding-inline: 4px; font-size: .72rem; }
  .category-clinic-strip { justify-content: flex-start; }
}
