.catalog-page { background: white; }
@media (prefers-reduced-motion: no-preference) {
    html:has(.catalog-page) { scroll-behavior: smooth; }
}
.catalog-guide-link:hover { text-decoration: underline; text-underline-offset: .2em; }

.material-hero { background: #262e34; color: white; }
.material-hero__inner {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: center;
    column-gap: clamp(1rem, 5vw, 5rem); padding-block: clamp(1.5rem, 3.5vw, 3.25rem);
}
.material-hero__back { grid-column: 1; width: fit-content; color: #a9e2da; font-size: .85rem; font-weight: 700; }
.material-hero__back:hover { text-decoration: underline; text-underline-offset: .2em; }
.material-hero__back span { margin-right: .25em; }
.material-hero h1 { grid-column: 1; margin-block: .65rem .35rem; font-size: clamp(2rem, 4.2vw, 3.8rem); }
.material-hero p { grid-column: 1; max-width: 54ch; color: #e1eae8; font-size: clamp(.95rem, 1.2vw, 1.1rem); line-height: 1.5; }
.material-hero img {
    grid-column: 2; grid-row: 1 / 4; align-self: center; width: clamp(5rem, 10vw, 8rem); height: auto;
    border-radius: 50%; border: 3px solid #f4faf7; box-shadow: 0 0 0 4px #506361;
}

.catalog-materials { background: #eff7f5; border-bottom: 1px solid #cfdfdb; }
.catalog-materials__inner { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1.4rem; padding-block: 1rem; }
.catalog-materials h2 { font-size: 1.2rem; color: #173a35; }
.catalog-materials ul { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.catalog-materials li a {
    display: block; padding: .45rem .85rem; border: 1px solid #b9d1ca; border-radius: 2rem;
    background: white; color: #145d54; font-size: .83rem; font-weight: 700;
}
.catalog-materials li a:hover { background: #dbefea; border-color: #118078; }
.catalog-materials li a[aria-current="page"] { background: #145d54; border-color: #145d54; color: white; }
.catalog-guide-link { margin-left: auto; padding-block: .45rem; color: #00675e; font-size: .83rem; font-weight: 700; }

.catalog-products { scroll-margin-top: 4.25rem; padding-block: clamp(1.7rem, 3vw, 3rem); }
.catalog-products:focus { outline: none; }
.catalog-products:focus-visible > .home-wrap > h2 { width: fit-content; outline: 2px solid #118078; outline-offset: .2em; }
.catalog-products > .home-wrap > h2 { font-size: clamp(1.65rem, 2.4vw, 2.15rem); }
.catalog-products .order-guide { margin-top: clamp(1.75rem, 3vw, 3rem); }
.catalog-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
    margin-top: 1.2rem;
}
.catalog-card {
    display: grid; grid-template-columns: 42% minmax(0, 1fr); height: 100%; overflow: hidden;
    border: 1px solid #d2dbd7; border-radius: .85rem; background: #fbfcfa;
}
.catalog-card:is(:hover, :focus-visible) { border-color: #118078; background: #eff7f5; }
.catalog-card > img { width: 100%; height: 100%; object-fit: cover; background: #e6e8e5; }
.catalog-card__copy { display: flex; flex-direction: column; align-items: start; padding: clamp(.85rem, 1.4vw, 1.25rem); }
.catalog-card h3 { font: 700 clamp(1rem, 1.25vw, 1.18rem)/1.22 Montserrat, Arial, sans-serif; }
.catalog-card p { margin: .45rem 0 .8rem; font-size: .84rem; line-height: 1.45; color: #42534e; }
.catalog-card__arrow {
    display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin-top: auto;
    border-radius: 50%; background: #e3eeea; color: #085e54; line-height: 1;
}
.catalog-card:is(:hover, :focus-visible) .catalog-card__arrow { background: #12655b; color: white; }

.catalog-details {
    padding-block: clamp(1.75rem, 3vw, 3rem);
    border-top: 1px solid #d6dfda;
}
.catalog-details .product-benefits { margin-top: 0; }
.catalog-details + .home-brands { margin-top: 0; }
.catalog-products .product-gallery { max-width: none; margin-block: 1.75rem; padding: 0; }
.catalog-products .product-gallery > div { overflow: hidden; padding: .8rem; border: 1px solid #d2dbd7; border-radius: .85rem; background: white; }

@media (max-width: 1050px) {
    .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
    .catalog-materials__inner { display: grid; grid-template-columns: 1fr auto; gap: .55rem; }
    .catalog-materials ul { grid-column: 1 / -1; grid-row: 2; }
    .catalog-grid { gap: .75rem; }
}
@media (max-width: 620px) {
    .material-hero__inner { column-gap: .9rem; }
    .material-hero h1 { align-self: end; }
    .material-hero img { grid-row: 1 / 3; width: 3.75rem; }
    .material-hero p { grid-column: 1 / -1; margin-top: .45rem; }
    .catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .catalog-card { grid-template-columns: clamp(6.5rem, 31vw, 9rem) minmax(0, 1fr); }
    .catalog-card__copy { padding: .9rem 1rem; }
    .catalog-card__arrow { width: 1.6rem; height: 1.6rem; }
    .catalog-materials li a { padding: .4rem .65rem; font-size: .78rem; }
}

@media (max-width: 379px) {
    .material-hero__back { align-self: center; }
    .material-hero img { grid-row: 1; width: 2.75rem; }
    .material-hero h1 { grid-column: 1 / -1; }
}
