/* Sekcja polecamy (departments-recommended) – przeniesione z inline <style> dla walidacji HTML5 */
#recommendedTopMarquee {
    position: relative;
    overflow: visible;
    --recommended-gap: 1.3rem;
}

.recommended-top-track {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: var(--recommended-gap);
    justify-content: center;
}

.recommended-swiper {
    display: none;
}

.recommended-swiper .swiper-wrapper {
    display: flex;
    align-items: center;
}

.recommended-swiper .swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.recommended-swiper .swiper-slide .recommended-top-card {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    flex-shrink: 0;
}

.recommended-swiper .swiper-button-next,
.recommended-swiper .swiper-button-prev {
    background: rgba(255, 255, 255, 0.95);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(21, 55, 104, 0.2);
    background-size: 16px 16px;
    background-position: center;
    background-repeat: no-repeat;
}

.recommended-swiper .swiper-button-next:after,
.recommended-swiper .swiper-button-prev:after {
    display: none;
}

.recommended-swiper .swiper-button-prev {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%23153768' stroke='%23153768' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.recommended-swiper .swiper-button-next {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%23153768' stroke='%23153768' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.recommended-swiper .swiper-button-next:hover,
.recommended-swiper .swiper-button-prev:hover {
    background-color: #ffffff;
    border-color: rgba(15, 75, 154, 0.4);
}

.recommended-swiper .swiper-button-prev:hover {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z' fill='%230f4b9a' stroke='%230f4b9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.recommended-swiper .swiper-button-next:hover {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z' fill='%230f4b9a' stroke='%230f4b9a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.recommended-swiper .swiper-pagination {
    position: relative;
    margin-top: 1rem;
}

.recommended-swiper .swiper-pagination-bullet {
    background: #153768;
    opacity: 0.3;
}

.recommended-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.recommended-top-card {
    flex: 0 0 auto;
    width: calc((100% - 4 * var(--recommended-gap)) / 5);
    max-width: 220px;
    min-width: 160px;
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    box-shadow: inset 0 0 0 1px rgba(21, 55, 104, 0.10);
    transition: transform 0.32s ease, box-shadow 0.32s ease;
    text-align: center;
    gap: 0.7rem;
    position: relative;
    z-index: 0;
}

@media (min-width: 1400px) {
    .recommended-top-card {
        max-width: 220px;
    }
}

.recommended-top-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 28px rgba(15, 44, 95, 0.20);
    z-index: 2;
}

.recommended-top-card img {
    max-width: min(100px, 100%);
    max-height: 65px;
    object-fit: contain;
    transition: transform 0.32s ease;
}

.recommended-top-card:hover img {
    transform: scale(1.06);
}

.recommended-top-card__title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #153768;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.3;
}

@media (max-width: 1400px) {
    .recommended-top-card {
        width: calc((100% - 3 * var(--recommended-gap)) / 4);
    }
    #recommendedTopMarquee {
        --recommended-gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .recommended-top-card {
        width: calc((100% - 3 * var(--recommended-gap)) / 4);
    }
    #recommendedTopMarquee {
        --recommended-gap: 1.3rem;
    }
}

@media (max-width: 992px) {
    .recommended-top-track {
        display: none;
    }
    .recommended-swiper {
        display: block;
    }
}

@media (min-width: 993px) {
    .recommended-swiper {
        display: none;
    }
    .recommended-top-track {
        display: flex;
    }
    .recommended-top-card {
        width: 100%;
        min-height: 160px;
        padding: 1.4rem 1.2rem;
    }
    .recommended-top-card img {
        max-width: 90px;
        max-height: 60px;
    }
}

@media (max-width: 768px) {
    .recommended-top-card {
        min-height: 150px;
        padding: 1.25rem 1rem;
    }
    .recommended-top-card img {
        max-width: 85px;
        max-height: 55px;
    }
}

@media (max-width: 480px) {
    .recommended-top-card {
        min-height: 140px;
        padding: 1.1rem 0.9rem;
    }
    .recommended-top-card img {
        max-width: 75px;
        max-height: 50px;
    }
    .recommended-top-card__title {
        font-size: 0.8rem;
    }
}
