.catalog-page .cat-hero { padding-block: 44px 20px; }
.catalog-page .cat-tools { margin-top: 12px; }
.catalog-page [hidden] { display: none !important; }
.catalog-page .cat-search { min-width: 0; width: 100%; flex-basis: 280px; min-height: 48px; }
.catalog-page .seg { flex-wrap: wrap; border-radius: 18px; }
.catalog-page .seg button { min-height: 44px; }
.matching-tests { margin: 24px 0 40px; padding-block: 20px; border-block: 1px solid var(--line); }
.matching-tests h2, .estimates-heading { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.3; letter-spacing: -.02em; }
.matching-tests > p, .matching-tests li p { color: var(--muted-strong); font-size: .95rem; }
.matching-tests ul { padding: 0; list-style: none; display: grid; gap: 18px; margin: 22px 0; }
.matching-tests li { padding-left: 16px; border-left: 2px solid var(--buy-a); }
.matching-tests li a { font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.matching-tests li p { margin: 5px 0 0; max-width: 760px; }
.catalog-page .estimate-legend .legend { justify-content: flex-start; margin-inline: 0; }
.catalog-page .estimate-legend .cat-note { margin: 12px 0; text-align: left; }
.catalog-page .estimates-note { text-align: left; margin: 8px 0; }
.catalog-page .cat-list { padding: 0; margin: 20px 0; }
.catalog-page details.g-row { display: block; padding: 0; }
.catalog-page .g-row summary { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; list-style: none; border-radius: 14px; }
.g-row summary::-webkit-details-marker { display: none; }
.g-name::after { content: ' +'; color: var(--muted); }
.g-row[open] .g-name::after { content: ' −'; }
.catalog-page details.g-row .g-reason { display: block; padding: 0 18px 18px 42px; }
.catalog-page .g-reason p { margin: 8px 0 0; }
.catalog-page .g-reason a { text-decoration: underline; text-underline-offset: 4px; }
.catalog-page :is(summary, button, a):focus-visible { outline: 3px solid var(--buy-a); outline-offset: 4px; }
.catalog-empty { padding: 20px 0; }
.catalog-empty a { display: inline-block; margin: 16px; text-decoration: underline; }
@media (max-width: 760px) {
  .catalog-page .cat-hero { padding-top: 32px; }
  .catalog-page .cat-tools { position: static; }
  .catalog-page .cat-hero > .wrap > h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .catalog-page .g-row summary { grid-template-columns: 10px minmax(0, 1fr); }
  .catalog-page .g-meta { grid-column: 2; justify-content: flex-start; flex-wrap: wrap; white-space: normal; }
  .catalog-page .g-details { display: none; }
}
