/* Стили для карусели отзывов */

.testimonials-slider-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
}

.testimonials-slider {
    overflow: hidden;
    border-radius: 1rem;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonials-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 1rem;
}

/* Стили для карточек отзывов */
.testimonial-document {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-document:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.testimonial-image {
    max-height: 600px;
    object-fit: contain;
    cursor: pointer;
}

.testimonial-image:hover {
    transform: scale(1.02);
    transition: transform 0.3s ease;
}

.testimonial-image-container {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
}

/* Навигационные кнопки */
.testimonials-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #475569;
}

.testimonials-nav-btn:hover {
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    color: #dc2626;
}

.testimonials-prev {
    left: -24px;
}

.testimonials-next {
    right: -24px;
}

/* Индикаторы */
.testimonials-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.testimonials-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(71, 85, 105, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials-indicator.active {
    background: #dc2626;
    transform: scale(1.2);
}

.testimonials-indicator:hover {
    background: rgba(220, 38, 38, 0.7);
}

/* Адаптивность */
@media (max-width: 768px) {
    .testimonials-prev {
        left: -16px;
    }
    
    .testimonials-next {
        right: -16px;
    }
    
    .testimonials-nav-btn {
        width: 40px;
        height: 40px;
    }
    
    .testimonials-slide {
        padding: 0 0.5rem;
    }
}

/* Lightbox модал для увеличения изображений */
.testimonial-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.testimonial-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.testimonial-lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.testimonial-lightbox .close:hover {
    opacity: 0.7;
}