﻿/* ===== ИСПРАВЛЕННЫЕ СТИЛИ ДЛЯ ВИДЕО-ОТЗЫВОВ ===== */

.video-reviews-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    overflow: visible !important;
}

/* УБИРАЕМ video-reviews-grid и используем стандартную Bootstrap сетку */
/* .video-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
} */

.video-review-item {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    height: 100%; /* Чтобы все карточки были одинаковой высоты */
    display: flex;
    flex-direction: column;
}

    .video-review-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    }

.video-preview {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    flex-shrink: 0; /* Не позволяет сжиматься */
}

.video-thumbnail {
    display: none;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-preview:hover .video-overlay {
    opacity: 1;
}

.play-button {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.video-preview:hover .play-button {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.video-info {
    padding: 1.5rem;
    flex-grow: 1; /* Занимает оставшееся пространство */
    display: flex;
    flex-direction: column;
}

.video-client {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.client-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-right: 1rem;
    flex-shrink: 0;
}

.client-details h5 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: var(--text-color);
}

.client-details p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

.video-description {
    color: var(--text-color);
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Остальные стили остаются без изменений */

/* Модальное окно для видео */
.video-modal {
    display: none; /* Добавляем это */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 4000;
    align-items: center;
    justify-content: center;
}