/* Testimonials Section */
.testimonials {
    /* УБРАЛИ старый background: url(...) */
    position: relative; 
    color: white;
    overflow: hidden;
    padding: 100px 0;
    z-index: 1; /* Чтобы контент был выше */
}

/* 1. Стили для фонового видео */
.testimonials .background-video {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -3; /* Самый нижний слой */
    object-fit: cover;
}

/* 2. Слой-оверлей для затемнения */
.testimonials .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; 
    
    /* ✨ ПРОЗРАЧНОСТЬ: Было 0.9, стало 0.6 */
    background: rgba(42, 54, 59, 0.6); 
    background: linear-gradient(rgba(42, 54, 59, 0.6), rgba(42, 54, 59, 0.6));
}

/* КОНТЕНТ (текст и карточки) */
.testimonials .container {
    position: relative;
    z-index: 5; /* Контент должен быть над всем */
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.testimonial-card {
    background:     rgb(128,128,128, 0.8);
    /* backdrop-filter убираем, так как он плохо сочетается с фоновым видео */
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.6);
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.15);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    color: #f0f8ff; 
}

.testimonial-text:before {
    content: "”";
    font-size: 4rem;
    color: rgba(255,255,255,0.3);
    position: absolute;
    top: -20px;
    left: -10px;
    font-family: Georgia, serif;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #FF6B35; /* Оранжевый акцент */
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
}

.testimonial-author h4 {
    color: white;
}
.testimonial-author p {
    color: #ccc;
}


/* АДАПТИВНОСТЬ */
@media (max-width: 992px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
}