.hero-primary {
    position: relative;
}

.hero-primary .hero-social {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 64px;
    z-index: 9;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    max-width: 1510px;
    width: 100%;
}

.hero-primary .hero-social a {
    border: 1px solid #FFF;
    width: 50px;
    height: auto;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .3s ease;
}

.hero-primary .hero-social a svg path {
    transition: fill .3s ease, stroke .3s ease;
}

.hero-primary .hero-social a:hover {
    background-color: #fff;
}

.hero-primary .hero-social a:hover svg.hvr-fill path {
    fill: var(--brick);
}

.hero-primary .hero-social a:hover svg.hvr-stroke path {
    stroke: var(--brick);
}

.hero-primary .hero-title {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 100%;
    background: rgba(29, 29, 29, 0.50);
    width: 100%;
    max-width: 150px;
    color: #fff;
    text-align: center;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.87;
    letter-spacing: 1.6px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-transform: capitalize;
    font-family: 'Playfair Display';
}

.hero-primary .hero-title div {
    transform: rotateZ(-90deg);
    width: 100%;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 400%;
    max-width: 850px;
    gap: 12px;
}

.hero-primary .hero-title div svg {
    transform: rotateZ(90deg);
}

.hero-primary .container {
    height: auto;
}

.hero-primary .hero-slide::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url(../../assets/images/hero-primary-mask.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
}

.hero-primary .hero-wrapper {
    margin: 0 42px;
    /* WCAG 1.4.3: 55% czerni gwarantuje min. 4,5:1 dla białego tekstu na każdym zdjęciu (było 35%) */
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    max-width: 1130px;
    padding: 40px;
    height: 50%;
    justify-content: center;
    display: flex;
    flex-direction: column;
    position: relative;
}

.hero-primary .hero-wrapper::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
    clip-path: polygon(0 25%, 100% 0%, 100% 75%, 0 100%);
    background-color: var(--brick);
    width: 298px;
    height: calc(100% - 80px);
    z-index: 0;
    pointer-events: none;
}

.hero-primary .hero-wrapper-content {
    padding: 100px;
    z-index: 4;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-primary .hero-wrapper h1,
.hero-primary .hero-wrapper h2.h1 {
    color: #fff;
    font-weight: 700;
}

.hero-primary .swiper {
    width: 100%;
}

.hero-primary .hero-slide {
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-size: cover;
    position: relative;
    width: 100%;
    background-size: cover;
    min-height: 850px;
    display: flex;
    overflow: hidden;
}

.hero-primary .hero-slide .container {
    display: flex;
    align-items: center;
}

.hero-primary .hero-description {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 646px;
    width: 100%;
    font-size: 24px;
}

/* Strzałka przy opisie - stały rozmiar 21x18, nie ściska się przy dłuższym opisie */
.hero-primary .hero-description svg {
    flex: 0 0 21px;
    min-width: 21px;
    width: 21px;
    height: 18px;
}

.hero-primary .swiper-pagination {
    max-width: 1510px;
    width: 100%;
    left: 50% !important;
    bottom: 56px !important;
    transform: translateX(-50%);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-primary .swiper-pagination-bullet {
    border-radius: 999px;
    opacity: 0.5;
    /* WCAG 2.5.8: pole kliknięcia 24 px, widoczna kropka nadal 12 px */
    box-sizing: content-box;
    padding: 6px;
    background-clip: content-box;
    width: 12px;
    height: auto;
    aspect-ratio: 1;
    margin: 0 !important;
    background: #fff;
    position: relative;
    transition: background .3s ease, opacity .3s ease;
}

.hero-primary .swiper-pagination-bullet::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translateY(-50%) translateX(-50%);
    border-radius: 2px;
    width: 16px;
    height: auto;
    aspect-ratio: 1;
    border: 1px solid #fff;
    transition: background .3s ease, opacity .3s ease, border .3s ease;
    opacity: 0.1;
}

.hero-primary .swiper-pagination-bullet-active {
    background-color: var(--brick);
    opacity: 1;
}

.hero-primary .swiper-pagination-bullet-active::before {
    border-color: var(--brick);
    opacity: 1;
}

@media (max-width:1800px) {
    .hero-primary .hero-title {
        max-width: 71px;
    }

}

@media (max-width:1600px) {

    .hero-primary .swiper-pagination,
    .hero-primary .hero-social {
        left: 70px;
        transform: translateX(0);
        width: auto !important;
    }

    .hero-primary .swiper-pagination {
        left: 110px !important;
    }
}

@media (max-width:1440px) {
    .hero-primary {
        min-height: 360px;
    }

    .hero-primary .hero-wrapper-content {
        padding: 48px;
    }

    .hero-primary .hero-wrapper {
        margin-right: 0;
    }

    .hero-primary .hero-wrapper::before {
        width: 200px;
    }

    .hero-primary .hero-description {
        font-size: 18px;
    }
}

@media (max-width:991px) {
    .hero-primary .hero-title {
        display: none;
    }

    .hero-primary .hero-social {
        left: 16px;
        top: 32px;
    }

    .hero-primary .hero-social a {
        width: 40px;
    }

    .hero-primary .hero-wrapper {
        margin: 0;
        padding: 0;
    }

    .hero-primary .hero-slide {
        min-height: 500px;
    }

    .hero-primary .hero-wrapper h1,
    .hero-primary .hero-wrapper h2.h1 {
        font-size: 36px;
    }

    .hero-primary .hero-description {
        font-size: 16px;
    }

    .hero-primary .hero-wrapper-content {
        padding: 32px 24px;
    }

    .hero-primary .btn {
        padding: 16px 24px;
    }

    .hero-primary .hero-wrapper::before {
        left: 20px;
        width: 130px;
    }

    .hero-primary .swiper-pagination {
        left: 32px !important;
    }
}
/* Przycisk pauzy slidera (WCAG 2.2.2) */
.hero-primary .hero-pause {
    position: absolute;
    right: 42px;
    bottom: 48px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 999px;
    cursor: pointer;
}

.hero-primary .hero-pause:hover {
    background: var(--brick);
}

.hero-primary .hero-pause:focus-visible {
    outline-color: #fff !important;
}

.hero-primary .hero-pause__ico--play,
.hero-primary .hero-pause[aria-pressed="true"] .hero-pause__ico--pause {
    display: none;
}

.hero-primary .hero-pause[aria-pressed="true"] .hero-pause__ico--play {
    display: block;
}
