.cases-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
}

.cases-modal.active {
    display: block;
}

.cases-modal__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
}

.cases-modal__content {
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52vw;
    height: 92vh;
    max-width: 90vw;
    background: white;
    padding: 1vw;
    border-radius: 0.8vw;
    z-index: 1001;
    display: flex;
    flex-direction: column;
}

.cases-modal__close {
    position: absolute;
    top: 1.5vw;
    right: 1.5vw;
    background: none;
    border: none;
    font-size: 2.5vw;
    cursor: pointer;
    z-index: 1002;
    width: 3vw;
    height: 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
}

.cases-modal__slider {
    flex: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.slider-main {
    flex: 1;
    height: 100%;
}

.slider-item {
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.slider-item img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    margin: 0 auto;
}

/* Стили для стрелок навигации */
.slick-prev,
.slick-next {
    width: 3vw;
    height: 3vw;
    z-index: 1003;
}

.slick-prev {
    left: -1vw;
}

.slick-next {
    right: -1vw;
}

.slick-prev:before,
.slick-next:before {
    font-size: 2vw;
    color: #9c1a1d;
    opacity: 0.8;
}

.slick-prev:hover:before,
.slick-next:hover:before {
    opacity: 1;
}

/* Стили для точек навигации */
.slick-dots {
    position: relative;
    bottom: 0;
    margin-top: 1vw;
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
}

.slick-dots li {
    margin: 0 0.5vw;
}

.slick-dots li button {
    width: 1vw;
    height: 1vw;
    border-radius: 50%;
    border: none;
    background: #ccc;
    cursor: pointer;
    font-size: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.slick-dots li.slick-active button {
    background: #9c1a1d;
    transform: scale(1.2);
}

body.no-scroll {
    overflow: hidden;
}

.slick-dots li button:before {
    display: none;
}

/* Стили для функционала "Показать еще" */
.hidden-case {
    display: none !important;
}

.load-more-container {
    text-align: center;
    margin-top: 3vw;
    margin-bottom: 2vw;
}

.load-more-btn {
    background: #fff;
    color: #ccc;
    border: 1px solid #ccc;
    padding: 1.5vw 3vw;
    font-size: 1.2vw;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.load-more-btn:hover {
    background: #7a1517;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .cases-modal__content {
        width: 95vw;
        height: 80vh;
        max-width: 95vw;
        padding: 3vw;
        border-radius: 2vw;
    }
    
    .cases-modal__close {
        top: 2vw;
        right: 2vw;
        font-size: 5vw;
        width: 6vw;
        height: 6vw;
    }
    
    .slider-item img {
        max-height: 60vh;
    }
    
    .slick-dots {
        margin-top: 3vw;
    }
    
    .slick-dots li {
        margin: 0 1vw;
    }
    
    .slick-dots li button {
        width: 2vw;
        height: 2vw;
    }
    
    .slick-prev,
    .slick-next {
        width: 15vw;
        height: 10vw;
    }
    
    .slick-prev {
        left: -8vw;
    }
    
    .slick-next {
        right: -8vw;
    }
    
    .slick-prev:before,
    .slick-next:before {
        font-size: 6vw;
    }
    
    .load-more-btn {
        padding: 3vw 33vw;
        font-size: 2.5vw;
    }
    
    .load-more-container {
        margin-top: 5vw;
        margin-bottom: 4vw;
    }
}

@media (max-width: 480px) {
    .cases-modal__content {
        width: 98vw;
        height: 75vh;
        max-width: 98vw;
        padding: 4vw;
        border-radius: 3vw;
    }
    
    .cases-modal__close {
        top: 3vw;
        right: 3vw;
        font-size: 6vw;
        width: 8vw;
        height: 8vw;
    }
    
    .slider-item img {
        max-height: 55vh;
    }
    
    .slick-dots {
        margin-top: 4vw;
    }
    
    .slick-dots li {
        margin: 0 1.5vw;
    }
    
    .slick-dots li button {
        width: 3vw;
        height: 3vw;
    }
    
    .slick-prev,
    .slick-next {
        width: 10vw;
        height: 10vw;
    }
    
    .slick-prev {
        left: -10vw;
    }
    
    .slick-next {
        right: -10vw;
    }
    
    .slick-prev:before,
    .slick-next:before {
        font-size: 8vw;
    }
    
    .load-more-btn {
        padding: 4vw 8vw;
        font-size: 3.5vw;
        
    }
    
    .load-more-container {
        margin-top: 6vw;
        margin-bottom: 5vw;
    }
}

@media (max-width: 425px) {
    .load-more-btn {
        padding: 5vw;
        font-size: 4vw;
    }
}