.home-product-groups {
    --hpg-navy: var(--sanitech-navy, #071b4a);
    --hpg-teal: #157a7d;
    --hpg-green: var(--sanitech-accent, #008f63);
    --hpg-muted: #5f6e7e;
    padding: clamp(48px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
    background: #fff;
}

.home-product-groups__head {
    margin-bottom: clamp(22px, 2.5vw, 32px);
    max-width: 40rem;
}

.home-product-groups__head h2 {
    margin: 0;
    color: var(--hpg-navy);
    font-size: clamp(26px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

.home-product-groups__head h2::after {
    content: "";
    display: block;
    width: 44px;
    height: 3px;
    margin-top: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--hpg-teal), var(--hpg-green));
}

.home-product-groups__head p {
    margin: 12px 0 0;
    color: var(--hpg-muted);
    font-size: 16px;
    line-height: 1.6;
}

.home-product-groups__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.home-product-groups__card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #e2eceb;
    box-shadow: 0 12px 28px rgba(7, 40, 55, 0.07);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-product-groups__card:hover {
    border-color: rgba(21, 122, 125, 0.35);
    box-shadow: 0 18px 36px rgba(7, 90, 95, 0.14);
}

.home-product-groups__media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #eef4f4;
}

.home-product-groups__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-product-groups__card:hover .home-product-groups__media img {
    transform: scale(1.12);
}

.home-product-groups__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 18px;
}

.home-product-groups__body h3 {
    margin: 0;
    color: var(--hpg-navy);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}

.home-product-groups__arrow {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(145deg, #176064, var(--hpg-green));
    font-size: 18px;
}

@media (max-width: 991.98px) {
    .home-product-groups__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .home-product-groups {
        padding-top: 40px;
        padding-bottom: 28px;
    }

    .home-product-groups__grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
