.offer {
    padding: 80px 0;
}

.offer.ios-fixed-offer {
    position: relative;
    isolation: isolate; /* чтобы псевдоэлементы были позади контента */
    display: grid;
    place-items: center;
    padding: clamp(3rem, 8vw, 6rem) 1rem;
    clip-path: inset(0); /* обрезаем фиксированный фон границами секции */
}

.offer.ios-fixed-offer::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image: var(--bg-offer);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateZ(0);
    will-change: transform;
    /* filter: blur(5px); */
    /* -webkit-filter: blur(5px); */
}

/* затемняющая вуаль для читаемости текста, если нужна */
.offer.ios-fixed-offer::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.offer__head {
    text-align: center;
    margin-bottom: 40px;
}

.offer__title {
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 800;
    margin: 0 0 10px;
}

.offer__subtitle {
    max-width: 640px;
    margin: 0 auto;
    font-size: 18px;
    color: #555;
}

/* ==== СЛАЙДЕР ==== */
.offer-plans-slide {
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swiper-slide.offer-plans-slide {
    height: 100%;
}

.offer-slide-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    width: 100%;
    height: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

/* Левая колонка */
.offer-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    gap: 20px;
}

.offer-left .offer-text {
    color: #fff;
    font-size: 1.1rem;
    line-height: 1.5;
    margin-bottom: 15px;
}

.offer-left-images {
    display: flex;
    gap: 15px;
    flex: 1;
}

.offer-left-images .offer-img {
    flex: 1;
}

.offer-left-images img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}

/* Правая колонка */
.offer-right {
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

/* Адаптив */
@media (max-width: 992px) {
    .offer-slide-inner {
        grid-template-columns: 1fr;
        height: auto;
    }
    .offer-plans-slide {
        height: auto;
    }
    .offer-right {
        margin-top: 20px;
        display: none;
    }
    .offer-left-images {
        flex-direction: row;
        gap: 10px;
    }
    .offer-left-images img {
        height: 200px;
    }
}

/* Навигация */

.offer-plans-button {
    position: absolute;
    top: 50%;
    z-index: 5;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.offer-plans-button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.offer-plans-button--prev {
    left: 24px;
}

.offer-plans-button--next {
    right: 24px;
}

.offer-plans-button::before {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 12px;
    height: 12px;
    border-top: 2px solid #333;
    border-right: 2px solid #333;
}

.offer-plans-button--prev::before {
    transform: rotate(-135deg);
    margin-left: 14px;
}

.offer-plans-button--next::before {
    transform: rotate(45deg);
    margin-right: 14px;
}

/* Пагинация */

.offer-plans-pagination {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.offer-plans-pagination .swiper-pagination-bullet {
    background: #d1d5ff;
    opacity: 0.6;
    width: 9px;
    height: 9px;
    margin: 0 4px !important;
    transition:
        opacity 0.3s,
        transform 0.3s,
        background 0.3s;
}

.offer-plans-pagination .swiper-pagination-bullet-active {
    background: #7b8bff;
    opacity: 1;
    transform: scale(1.3);
}

.controls-offer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--controls-gap);
    padding: 14px 16px 24px;
    margin-top: -8px; /* чуть ближе к слайдеру */
}
.swiper-pagination {
    position: static; /* убираем абсолют */
    display: flex;
    gap: 10px;
}
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #fff;
    opacity: 1;
    transform: scale(1);
    transition:
        transform 0.2s ease,
        background 0.2s ease;
}
.swiper-pagination-bullet-active {
    background: green;
    transform: scale(1.15);
}
.nav-buttons-offer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
}
.nav-btn-offer {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #008000;
    color: #c9d2e3;
    border: 0;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.15s ease;
}
.nav-btn-offer:hover {
    background: #232a39;
    transform: translateY(-1px);
}
.nav-btn-offer svg {
    width: 20px;
    height: 20px;
    display: block;
}

/* Адаптив */

@media (max-width: 992px) {
    .offer-plans-swiper {
        height: 380px;
        width: 750px;
    }
}

@media (max-width: 600px) {
    .offer-plans-swiper {
        height: 380px;
        width: 350px;
    }

    .offer-plans-button {
        width: 38px;
        height: 38px;
    }

    .offer-plans-button--prev {
        left: 12px;
    }

    .offer-plans-button--next {
        right: 12px;
    }
}
