#primary section.case-phones {
    position: relative;
}

.case-phones__paragraph p {
    font-weight: 500;
    font-size: 18px;
    line-height: 120%;
    letter-spacing: 0;
    text-transform: uppercase;
}

.case-phones__stack {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    position: relative;
    z-index: 1;
}

.case-phones__item {
    display: flex;
    align-items: flex-start;
}

.case-phones__item img {
    width: 100%;
    height: auto;
}

.case-phones-swiper {
    display: none;
}

@media screen and (max-width: 1024px) {
    .case-phones__stack {
        display: none;
    }

    .case-phones-swiper {
        display: block;
        margin-top: 40px;
    }

    /* No :has() here — WP Rocket RUCSS strips it because bullets are JS-injected. */
    .case-phones-pagination-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        margin-top: 24px;
        min-height: 8px;
    }
}

@media screen and (min-width: 1025px) {
    .case-phones-pagination-wrapper {
        display: none !important;
    }

    .case-phones__stack .case-phones__item--1 {
        margin-top: 157px;
    }

    .case-phones__stack .case-phones__item--2 {
        margin-top: 314px;
    }

    .case-phones__item {
        max-width: 475px;
    }
}

.case-phones-pagination-wrapper {
    display: none;
    margin-top: 0;
    min-height: 0;
}

.case-phones-pagination {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    position: relative !important;
    top: unset !important;
    left: unset !important;
    bottom: unset !important;
    right: unset !important;
    width: auto !important;
    height: auto !important;
    min-height: 8px;
    z-index: 100 !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-width: 72px;
    justify-content: flex-start;
    align-items: center;
}

.case-phones-pagination::-webkit-scrollbar {
    display: none;
}

.case-phones-pagination {
    scrollbar-width: none;
}

.case-phones-pagination .swiper-pagination-bullet {
    min-width: 8px !important;
    min-height: 8px !important;
    max-width: 8px !important;
    max-height: 8px !important;
    opacity: 1 !important;
    background: var(--grey-300, #cfcfcf) !important;
    margin: 0 4px !important;
    outline: none !important;
    flex-shrink: 0;
}

.case-phones-pagination .swiper-pagination-bullet:first-child {
    margin-left: auto !important;
}

.case-phones-pagination .swiper-pagination-bullet:last-child {
    margin-right: auto !important;
}

.case-phones-pagination .swiper-pagination-bullet-active {
    background: var(--active-bullet-color, var(--primary-color, #1629d6)) !important;
}
