* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background-color: #fff;
    overflow: hidden;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.slider-container {
    width: 100vw;
    /* height: 100vh; */
    /* height: 92vh; */
    flex-grow: 1;
    background: #fff;
    position: relative;
    display: flex;
    flex-direction: column;
}

.footer-custom {

    padding: 40px clamp(3.125rem, 1.786rem + 3.571vw, 5rem);
    display: flex;
    justify-content: space-between;
    gap: 40px;
    align-items: center;
}

.footer-custom__copyright {
    color: #21417E;


}

.footer-custom__copyright a {
    color: #21417E;
    font-size: 17px;
}

.footer-custom__links {
    display: flex;
    align-items: center;
    gap: 34px;
}

.footer-custom__link {
    color: #21417E;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-custom__link span {
    position: relative;

}

.footer-custom__link span::before {
    content: '';
    display: block;
    height: 1px;
    width: 100%;
    background-color: #21417E;
    position: absolute;
    bottom: 0;
    left: 0;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px clamp(3.125rem, 1.786rem + 3.571vw, 5rem);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 10;
    flex-shrink: 0;
    /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
}

.nav-btn {
    background: transparent;
    /* color: #333; */
    border: none;
    /* padding: 12px 16px;
    border-radius: 8px; */
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);

}

.nav-btn.prev-btn {
    transform: rotate(180deg);
}

.nav-btn:hover {
    /* background: rgba(0, 0, 0, 0.2);
    transform: scale(1.05); */
}

.nav-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
    opacity: 0.5;
}

.page-info {
    font-size: 24px;
    /* font-weight: bold; */
    color: #21417E;
}

.slider-content {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    flex: 1;
    padding: 0 clamp(3.125rem, 1.786rem + 3.571vw, 5rem);
    position: relative;

}

.slide {
    flex: 1;
    max-width: 50%;
    transition: all 0.3s ease;
    position: relative;
}

.slide.single {
    max-width: fit-content;
}

.slide img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.slide.single img {
    width: auto;
    max-width: 100%;
}

.slide img:hover {
    /* transform: scale(1.02);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4); */
}

.slide.has-video img {
    cursor: pointer;
}



/* Попап для видео */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-popup.active {
    display: flex;
}

.popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80%;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    z-index: 1001;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.popup-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #ff4444;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: background 0.3s ease;
}

.popup-close:hover {
    background: #cc0000;
}

.video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

/* Мобильные элементы управления (скрыты на десктопе) */
.mobile-controls {
    display: none;
}

/* Боковая навигация */
.side-nav-btn {
    position: absolute;
    top: calc(50% - 30px);
    /* transform: translateY(-50%); */
    background: transparent;
    color: #333;
    border: none;
    /* width: 60px;
    height: 60px; */
    height: clamp(2.5rem, 1.607rem + 2.381vw, 3.75rem);
    width: clamp(2.5rem, 1.607rem + 2.381vw, 3.75rem);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;

    z-index: 10;
}

.side-nav-btn:hover {
    /* background: rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1); */
}

.side-nav-btn:disabled {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
    opacity: 0.3;
}

.left-nav {
    left: 10px;
    border-radius: 0 8px 8px 0;
    transform: rotate(180deg);
}

.right-nav {
    right: 10px;
    border-radius: 8px 0 0 8px;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .slider-container {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        /* min-height: 100vh; */
    }

    .slider-header {
        display: none;
    }

    .slider-content {
        flex: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 20px;
        padding: 20px;
        margin-bottom: 20px;
    }

    .slide {
        max-width: 100%;
    }

    .mobile-controls {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        max-width: 400px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    }

    .mobile-controls .mobile-nav-left,
    .mobile-controls .mobile-nav-right {
        height: clamp(2.5rem, 1.607rem + 2.381vw, 3.75rem);
        width: clamp(2.5rem, 1.607rem + 2.381vw, 3.75rem);

    }

    .mobile-controls .mobile-nav-left svg,
    .mobile-controls .mobile-nav-right svg {
        height: 100%;
        width: 100%;
    }

    .mobile-nav-left,
    .mobile-nav-right {
        display: flex;
        align-items: center;
        gap: 10px;

    }


    .mobile-nav-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .mobile-page-info {
        font-size: 18px;

        color: #21417E;
    }

    .mobile-first-btn,
    .mobile-last-btn {
        background: transparent;

        border: none;

        cursor: pointer;
        font-size: 12px;
        transition: all 0.3s;
        width: 25px;
        height: 13px;
    }

    .mobile-first-btn svg,
    .mobile-last-btn svg {
        height: 100%;
        width: 100%;
    }

    .mobile-first-btn {
        transform: rotate(180deg);
    }

    .mobile-first-btn:hover,
    .mobile-last-btn:hover {
        background: rgba(0, 0, 0, 0.2);
    }

    .side-nav-btn {
        display: none;
    }

    .footer-custom {
        flex-direction: column;
        align-items: center;
        gap: 28px;
    }

    .footer-custom__copyright {
        text-align: center;
    }

    .footer-custom__links {
        gap: 20px;
    }

    .footer-custom__link span {
        font-size: 14px;
    }

    .footer-custom__link svg {
        transform: scale(0.8);
    }

    .footer-custom__link {
        gap: 10px;
    }
}

/* Анимации загрузки */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#prevBtn {
    transform: rotate(180deg);
}