/* ==========================================================
   PRODUKTY
   ========================================================== */

.products-page {
    background: #fff;
}

.products-hero {
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(25, 148, 155, 0.08),
            transparent 35%
        ),
        #fff;
}

.products-hero__eyebrow,
.products-section-heading__eyebrow {
    margin: 0 0 0.75rem;
    color: #16858d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.products-hero__title {
    max-width: 850px;
    margin: 0;
    color: #074b52;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    line-height: 1.04;
}

.products-hero__lead {
    max-width: 760px;
    margin: 1.5rem 0 0;
    color: #5c6668;
    font-size: clamp(1rem, 2vw, 1.16rem);
    line-height: 1.75;
}


/* ==========================================================
   KATEGORIE
   ========================================================== */

.products-categories {
    padding: 0 0 clamp(5rem, 8vw, 7rem);
}

.products-section-heading {
    margin-bottom: 2rem;
}

.products-section-heading h2 {
    margin: 0;
    color: #074b52;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.products-category-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.product-category-card {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    min-height: 330px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    background: #fff;
    border: 1px solid rgba(7, 75, 82, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(7, 75, 82, 0.07);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.product-category-card:hover {
    transform: translateY(-4px);
    border-color: rgba(22, 133, 141, 0.35);
    box-shadow: 0 24px 55px rgba(7, 75, 82, 0.12);
}

.product-category-card__media {
    min-height: 330px;
    overflow: hidden;
    background: #f3f6f5;
}

.product-category-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-category-card__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
}

.product-category-card__content h3 {
    margin: 0;
    color: #074b52;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.5vw, 2.15rem);
    line-height: 1.15;
}

.product-category-card__content p {
    margin: 1rem 0 1.5rem;
    color: #667174;
    line-height: 1.65;
}

.product-category-card__link {
    margin-top: auto;
    color: #087e87;
    font-size: 0.94rem;
    font-weight: 700;
}


/* ==========================================================
   KATALOG
   ========================================================== */

.products-catalog {
    border-top: 1px solid rgba(7, 75, 82, 0.1);
}

.products-group {
    padding: clamp(4rem, 7vw, 6rem) 0;
    scroll-margin-top: 140px;
}

.products-group + .products-group {
    border-top: 1px solid rgba(7, 75, 82, 0.1);
}

.products-group__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.products-group__heading h2 {
    margin: 0;
    color: #074b52;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 4vw, 3rem);
}

.products-group__count {
    flex: 0 0 auto;
    padding: 0.55rem 0.85rem;
    color: #076c74;
    font-size: 0.8rem;
    font-weight: 700;
    background: #e9f6f6;
    border-radius: 999px;
}

.products-group__empty {
    padding: 1.5rem 1.75rem;
    color: #657174;
    background: #f7fafa;
    border: 1px solid rgba(7, 75, 82, 0.1);
    border-radius: 16px;
}

.products-group__empty p {
    margin: 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.product-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(7, 75, 82, 0.12);
    border-radius: 20px;
}

.product-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3f6f5;
}

.product-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__content {
    padding: 1.35rem;
}

.product-card__title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
}

.product-card__title a,
.product-card__link {
    color: #074b52;
    text-decoration: none;
}

.product-card__excerpt {
    margin: 0.8rem 0 1rem;
    color: #667174;
    line-height: 1.6;
}

.product-card__link {
    font-size: 0.9rem;
    font-weight: 700;
}


/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 64rem) {

    .product-category-card {
        grid-template-columns: 1fr;
    }

    .product-category-card__media {
        min-height: 260px;
        aspect-ratio: 16 / 10;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 47.999rem) {

    .products-hero {
        padding-top: 3rem;
    }

    .products-category-grid,
    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-category-card {
        min-height: 0;
        border-radius: 18px;
    }

    .product-category-card__media {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .products-group__heading {
        align-items: flex-start;
    }
}
