/* Блок видео отзывов */
.video-reviews {
    padding: 15px 20px 40px; 
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    min-height: 500px; 
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 2.8rem;
    color: #1e293b;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 5px;
    background: #ff3333;
    border-radius: 3px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 100%;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; 
    gap: 40px;
}

.carousel-dots-container {
    display: flex;
    gap: 12px;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: #ff3333;
    transform: scale(1.2);
}

.carousel-control-btn {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border: 2px solid #ff3333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ff3333;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255,51,51,0.2);
}

.carousel-control-btn:hover {
    background: #ff3333;
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(255,51,51,0.3);
}

.carousel-container {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
    max-width: 1100px;
    height: 550px; 
}

.video-carousel {
    display: flex;
    transition: transform 1.5s ease;
    align-items: center; 
    height: 100%; 
}

.video-card {
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: all 1.5s ease;
    position: relative;
    flex: 0 0 calc(33.333% - 20px); 
    margin: 0 10px; 
    min-width: 0;
    height: 450px; 
    display: flex;
    flex-direction: column;
    z-index: 10;
}

/* Стили для активной карточки */
.video-card.active {
    transform: scale(1.1); 
    box-shadow: 0 20px 40px rgba(255, 51, 51, 0.2);
    z-index: 2;
}

.video-card.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; 
    background: #ff3333;
    z-index: 3;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.video-card.active:hover {
    transform: scale(1.1) translateY(-8px); 
}

.video-thumbnail {
    position: relative;
    height: 220px; 
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 51, 51, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.8s ease;
    backdrop-filter: blur(4px);
    border: 3px solid white;
    z-index: 5;
}

.play-button:hover {
    background: #ff3333;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.video-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.video-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.client-info {
    display: flex;
    align-items: center;
}

.auto-name {
    font-weight: 600;
    color: #ff3333;
}

.video-description {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-top: 5px; 
    border-top: 1px solid #f1f5f9;
    padding-top: 15px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 4; 
    -webkit-box-orient: vertical;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.video-card {
    animation: fadeIn 1.5s ease forwards;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .video-card {
        flex: 0 0 calc(50% - 20px);
        margin: 0 10px 70px;
    }
    
    .controls-container {
        gap: 25px;
    }
    
    .carousel-container {
        height: auto;
        max-width: 1100px;
    }
}

@media (max-width: 768px) {
    .video-reviews {
        padding: 30px 15px 60px;
        min-height: 550px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        white-space: normal;
        text-align: center;
    }
    
    .video-card {
        flex: 0 0 calc(100% - 20px);
        margin: 0 10px 70px;
        height: 400px;
    }
    
    .carousel-container {
        height: 600px;
        max-width: 600px;
    }
    
    .controls-container {
        gap: 20px;
        margin-bottom: 15px;
    }
    
    .carousel-control-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }
    
    .video-thumbnail {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .video-reviews {
        padding: 25px 10px 50px;
        min-height: 500px;
    }
    
    .carousel-container {
        height: 600px;
    }
    
    .video-card {
        height: 400px;
        margin: 0 7.5px 70px;
        flex: 0 0 calc(100% - 15px);
    }
    
    .carousel-control-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .carousel-dot {
        width: 10px;
        height: 10px;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

@media (max-width: 360px) {
    .section-title {
        font-size: 1.6rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    .video-reviews {
        min-height: 480px;
    }
    
    .carousel-container {
        height: 470px;
    }
    
    .video-card {
        height: 400px;
    }
    
    .carousel-control-btn {
        width: 35px;
        height: 35px;
        font-size: 12px;
    }
    
    .video-thumbnail {
        height: 140px;
    }
}