.reviews-container {
    padding-bottom: 60px;
}

.reviews-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 36px;
    font-weight: 700;
    color: #222;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.video-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid #eee;
}

.video-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.video-preview {
    position: relative;
    width: 100%;
    padding-bottom: 75%;
    background: #222;
    overflow: hidden;
}

.video-preview video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid #fff;
}

.play-btn::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 18px solid #fff;
    margin-left: 5px;
}

.video-card:hover .play-btn {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card:hover .play-btn::after {
    border-left-color: #333;
}

.card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.card-title {
    font-size: 20px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 15px;
    flex-grow: 1;
}

.card-text p {
    margin: 0;
}

.card-footer {
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
    font-size: 13px;
    font-weight: 600;
    color: #007bff;
}

/* --- Модальное окно --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    padding: 20px;
    text-align: center;
}

.modal-container video {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: rotate(90deg);
    color: #ff4d4d;
}

@media (max-width: 768px) {
    .reviews-title {
        font-size: 26px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}