/* =========================
   ОТЗЫВЫ СЕКЦИЯ
   testimonials.css
========================= */

.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.testimonials-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
    pointer-events: none;
}

.testimonials-content {
    position: relative;
    z-index: 1;
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.testimonials-section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), rgba(255, 255, 255, 0.8));
    border-radius: 2px;
}

.testimonials-section p {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease forwards;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.15);
}

.testimonial-quote {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    opacity: 0.7;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

.author-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.author-role {
    font-size: 0.9rem;
    opacity: 0.8;
    color: var(--accent-color);
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 5px;
}

.testimonial-rating i {
    color: var(--accent-color);
    font-size: 1.2rem;
}

/* Адаптивность */
@media (max-width: 768px) {
    .testimonials-section {
        padding: 60px 0;
    }

    .testimonials-section h2 {
        font-size: 2rem;
    }

    .testimonials-section p {
        font-size: 1.1rem;
    }

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

    .testimonial-card {
        padding: 30px 20px;
    }

    .testimonial-quote {
        font-size: 2rem;
    }

    .testimonial-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .testimonials-section {
        padding: 40px 0;
    }

    .testimonials-content {
        margin-bottom: 40px;
    }

    .testimonials-section h2 {
        font-size: 1.8rem;
    }

    .testimonials-section p {
        font-size: 1rem;
    }

    .testimonial-card {
        padding: 20px 15px;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .testimonials-section {
        background: linear-gradient(135deg, var(--primary-color-dark) 0%, var(--dark-bg) 100%);
    }

    .testimonial-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .testimonial-card::before {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    }

    .testimonial-card:hover {
        background: rgba(255, 255, 255, 0.1);
    }

    .author-role {
        color: var(--septenary-color);
    }
}

/* Доступность */
@media (prefers-reduced-motion: reduce) {
    .testimonial-card {
        animation: none;
        transition: none;
    }

    .testimonial-card:hover {
        transform: none;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }
}

/* Печать */
@media print {
    .testimonials-section {
        background: none;
        color: #000;
    }

    .testimonials-section::before {
        display: none;
    }

    .testimonial-card {
        border: 1px solid #ddd;
        background: none;
        backdrop-filter: none;
    }

    .testimonial-card::before {
        display: none;
    }
}

/* Анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
