.testimonials {
    padding: 3rem 5%;
    position: relative;
}

.testimonials-carousel {
    position: relative;
    margin-top: 2rem;
    padding: 0 20px;
    height: auto;
}

.testimonial-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
}

.testimonial-track:active {
    cursor: grabbing;
}

.testimonial-track::-webkit-scrollbar {
    height: 6px;
}

.testimonial-track::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}

.testimonial-track::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 6px;
}

.testimonial-card {
    min-width: 280px;
    scroll-snap-align: center;
    flex: 0 0 auto;
}

.card-inner {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%;
    transition: all 0.3s ease;
}

.testimonial-card:hover .card-inner {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 173, 216, 0.15);
}

.testimonial-text {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.5;
    position: relative;
}

.testimonial-text:before,
.testimonial-text:after {
    content: '"';
    color: var(--primary);
    opacity: 0.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h5 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.author-info p {
    opacity: 0.8;
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}

.rating {
    color: #FFD700;
    font-size: 0.9rem;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 1rem;
}

.carousel-prev,
.carousel-next {
    background: var(--primary);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dots {
    display: flex;
    gap: 8px;
}

.carousel-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.2s ease;
}

.carousel-dots .dot.active {
    background: var(--primary);
    transform: scale(1.1);
}

/* Мобильная версия */
@media (max-width: 768px) {
    .testimonials {
        padding: 2rem 5%;
    }
    
    .testimonial-track {
        gap: 1rem;
        padding: 15px 0;
    }
    
    .testimonial-card {
        min-width: calc(100vw - 60px);
    }
    
    .card-inner {
        padding: 1.2rem;
    }
    
    .author-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .testimonial-card {
        min-width: calc(100vw - 40px);
    }
    
    .carousel-controls {
        gap: 10px;
    }
}