/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.testimonials .section-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 60px;
    line-height: 1.2;
    color: var(--primary-color);
}

.testimonial-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: stretch;
}

.testimonial-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 90%;
}

.testimonial-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.client-avatars {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(11, 11, 59, 0.1);
}

.avatar-group {
    display: flex;
    margin-bottom: 20px;
}

.client-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 5px solid #FFFFFF;
    margin-right: -40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    object-fit: cover;
}

.clients-count {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
    font-weight: 500;
    max-width: 300px;
    line-height: 1.4;
}

.testimonial-text {
    position: relative;
    height: 100%;
    padding-bottom: 140px; /* Место для блока автора */
}

.testimonial-text blockquote {
    font-size: 1.2rem;
    line-height: 1.6;
    color: rgba(11, 11, 59, 0.8);
    margin: 0;
    padding: 0;
    height: 100%;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 11, 59, 0.2) transparent;
}

/* Стилизация скроллбара для WebKit (Chrome, Safari) */
.testimonial-text blockquote::-webkit-scrollbar {
    width: 4px;
}

.testimonial-text blockquote::-webkit-scrollbar-track {
    background: transparent;
}

.testimonial-text blockquote::-webkit-scrollbar-thumb {
    background-color: rgba(11, 11, 59, 0.2);
    border-radius: 2px;
}



.testimonial-author {
    display: flex;
    align-items: center;
    gap: 20px;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    padding-top: 20px;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #F0F4F8;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.author-info h4 {
    font-size: 1.2rem;
    font-weight: 500;
    margin: 0 0 5px 0;
    color: var(--primary-color);
}

.author-info p {
    font-size: 1rem;
    color: rgba(11, 11, 59, 0.6);
    margin: 0;
}

.testimonial-slide {
    display: none;
    position: relative;
    height: 400px; /* Фиксированная высота слайда */
}

.testimonial-slide.active {
    display: block;
    animation: fadeIn 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes fadeIn {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

.navigation-arrows {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 40px;
}

.testimonials .nav-arrow {
    background-color: rgba(11, 11, 59, 0.05);
    color: var(--primary-color);
}

.testimonials .nav-arrow:hover {
    background-color: rgba(11, 11, 59, 0.1);
}

@media (max-width: 1199.98px) {
    .testimonials .section-title {
        font-size: 3.5rem;
    }

    .testimonial-content {
        gap: 40px;
    }

    .clients-count {
        font-size: 1.3rem;
    }

    .testimonial-text blockquote {
        font-size: 1.1rem;
    }
}

@media (max-width: 991.98px) {
    .testimonials .section-title {
        font-size: 3rem;
    }

    .testimonial-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .client-avatar,
    .author-avatar {
        width: 80px;
        height: 80px;
    }

    .clients-count {
        font-size: 1.2rem;
    }

    .testimonial-slide {
        height: 350px;
    }
}

@media (max-width: 767.98px) {
    .testimonials .section-title {
        font-size: 2.5rem;
    }

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

    .author-info h4 {
        font-size: 1.1rem;
    }

    .testimonial-slide {
        height: 300px;
    }
}

@media (max-width: 575.98px) {
    .testimonials .section-title {
        font-size: 2rem;
    }

    .client-avatars {
        margin-bottom: 20px;
    }

    .clients-count {
        font-size: 1.1rem;
    }

    .testimonial-author {
        gap: 15px;
    }

    .testimonial-slide {
        height: 280px;
    }
} 