.popup-slider-widget .swiper-wrapper {
    height: 200px;
}

/* ===== ВИДЖЕТ-КАРТОЧКА СПРАВА ВНИЗУ ===== */
.popup-slider-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 460px;
    max-width: calc(100vw - 40px);
    background: #e8f0f8;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.popup-slider-widget.popup-visible {
    opacity: 1;
    transform: translateY(0);
}

.popup-slider-close {
    position: absolute;
    top: 8px;
    right: 12px;
    z-index: 10;
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    font-size: 22px;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.popup-slider-close:hover {
    color: #333;
}

/* Слайд */
.popup-slider-slide {
    width: 100%;
}

.slide-layout {
    display: flex;
    flex-direction: row;
    min-height: 200px;
}

.slide-image-wrap {
    flex: 0 0 160px;
    max-width: 160px;
    position: relative;
    overflow: hidden;
}

.slide-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slide-text-wrap {
    flex: 1;
    padding: 20px 20px 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.slide-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a3a5c;
    margin: 0 0 10px 0;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.slide-description {
    font-size: 13px;
    line-height: 1.5;
    color: #444;
    margin: 0 0 16px 0;
}

.slide-cta-button {
    display: inline-block;
    padding: 10px 20px;
    background: #1a3a5c;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.slide-cta-button:hover {
    background: #0d2440;
}

/* Футер слайдера */
.slide-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #fff;
    border-top: 1px solid #e0e0e0;
}

.swiper-pagination {
    position: static !important;
    display: flex;
    justify-content: center;
    gap: 6px;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: #ccc;
    opacity: 1;
    margin: 0 !important;
    transition: background 0.3s;
}

.swiper-pagination-bullet-active {
    background: #1a3a5c;
}

.swiper-button-next-custom {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a5c;
    cursor: pointer;
    transition: transform 0.2s;
}

.swiper-button-next-custom:hover {
    transform: translateX(3px);
}

.swiper-button-prev-custom {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a5c;
    cursor: pointer;
    transition: transform 0.2s;
}

.swiper-button-prev-custom:hover {
    transform: translateX(-3px);
}

.swiper-button-next-custom {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a3a5c;
    cursor: pointer;
    transition: transform 0.2s;
}

.swiper-button-next-custom:hover {
    transform: translateX(3px);
}

/* ===== МОДАЛЬНОЕ ОКНО ПОДРОБНОСТЕЙ ===== */
.detail-modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.detail-modal-container {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 90%;
    max-height: 85vh;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    overflow-y: auto;
}

.detail-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: background 0.3s;
}

.detail-modal-close:hover {
    background: #fff;
}

.detail-inner {
    display: flex;
    flex-direction: row;
}

.detail-image {
    flex: 0 0 40%;
    max-width: 40%;
}

.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.detail-text {
    flex: 1;
    padding: 30px;
}

.detail-text h2 {
    font-size: 24px;
    margin: 0 0 16px 0;
    color: #1a3a5c;
}

.detail-description {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.detail-description p {
    margin: 0 0 12px 0;
}

.detail-description img {
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 6px;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 480px) {
    .popup-slider-widget {
        bottom: 10px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: none;
    }

    .slide-layout {
        flex-direction: column;
    }

    .slide-image-wrap {
        flex: none;
        max-width: 100%;
        height: 150px;
    }

    .slide-text-wrap {
        padding: 16px;
    }

    .slide-title {
        font-size: 14px;
    }

    .detail-inner {
        flex-direction: column;
    }

    .detail-image {
        max-width: 100%;
        height: 200px;
    }

    .detail-text {
        padding: 20px;
    }
}