/* Основные стили страницы отзывов */
.testimonials-page {
    padding: 40px 0;
}

.testimonials-hero {
    text-align: center;
    margin-bottom: 60px;
}

.testimonials-hero h1 {
    font-size: 2.5em;
    color: var(--dark-text);
    margin-bottom: 20px;
}

.testimonials-hero .subtitle {
    font-size: 1.2em;
    color: var(--light-text);
    max-width: 800px;
    margin: 0 auto;
}

/* Статистика */
.testimonials-stats {
    background-color: var(--light-bg);
    padding: 40px 0;
    margin-bottom: 60px;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: var(--light-text);
    font-size: 1.1em;
}

/* Карточки отзывов */
.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.testimonial-card {
    background: white;
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.testimonial-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.testimonial-image {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
}

.testimonial-info h3 {
    margin: 0;
    color: var(--dark-text);
    font-size: 1.2em;
}

.rating {
    color: #ffd700;
    margin-top: 5px;
}

.testimonial-content {
    margin-top: 20px;
}

.work-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.work-image:hover {
    transform: scale(1.02);
}

/* Структура для отзыва с текстом сбоку от галереи */
.testimonial-content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.testimonial-content-wrapper .testimonial-text {
    flex: 1;
    margin: 0;
}

.testimonial-content-wrapper .testimonial-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Галерея работ в карточке */
.testimonial-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 20px;
}

.gallery-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-image:hover {
    transform: scale(1.05);
}

/* Дополнительные отзывы */
.more-reviews {
    margin-top: 60px;
}

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

.review-image {
    width: 100%;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.review-image:hover {
    transform: scale(1.02);
}

/* CTA секция */
.testimonials-cta {
    background-color: var(--primary-color);
    padding: 80px 0;
    text-align: center;
    color: var(--white);
    margin-top: 60px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    margin-bottom: 20px;
    color: var(--white);
}

.cta-content p {
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0.9;
}

.cta-button {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #d66215;
}

/* Адаптивность */
@media (max-width: 768px) {
    .testimonials-hero h1 {
        font-size: 2em;
    }

    .stat-item {
        flex: 0 0 100%;
        margin-bottom: 20px;
    }

    .testimonials-container {
        grid-template-columns: 1fr;
    }

    .testimonial-gallery {
        grid-template-columns: 1fr;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-content-wrapper {
        flex-direction: column;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.testimonial-card {
    animation: fadeIn 0.6s ease-out;
}

.testimonial-card:nth-child(2) {
    animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
    animation-delay: 0.4s;
}

.testimonial-card:nth-child(4) {
    animation-delay: 0.6s;
}

/* Стили для текста отзыва */
.testimonial-text {
    margin: 15px 0;
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.95em;
}

.testimonial-text p {
    margin-bottom: 10px;
}
.testimonials-cta .cta-button {
    background-color: var(--white);
    color: var(--primary-color);
    font-size: 1.1rem;
    padding: 12px 25px;
}

.cta-section .cta-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
}
