/* components/testimonials/testimonials.css */
.testimonials {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.testimonials__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 80px;
}

.testimonials__title {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--color-white);
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

.testimonials__wrapper {
    position: relative;
    margin-bottom: 30px;
    overflow: visible; /* Важно! */
}

.testimonials__carousel {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
}

.testimonials__track {
    display: flex;
    transition: transform 0.3s ease;
    will-change: transform;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.testimonials__track:active {
    cursor: grabbing;
}

.testimonials__slide {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.testimonial {
    background: rgba(44, 44, 44, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(90, 108, 120, 0.2);
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(44, 44, 44, 0.3);
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.testimonial__quote {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: 15px;
    font-family: Georgia, serif;
    pointer-events: none;
}

.testimonial__text {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 400;
    pointer-events: none;
}

.testimonial__author {
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.testimonial__name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-accent);
}

.testimonials__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(44, 44, 44, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(90, 108, 120, 0.3);
    color: var(--color-accent);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.testimonials__btn:hover {
    background: rgba(90, 108, 120, 0.2);
    border-color: var(--color-accent);
    transform: translateY(-50%) scale(1.05);
}

.testimonials__btn--prev {
    left: -60px;
}

.testimonials__btn--next {
    right: -60px;
}

.testimonials__dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.testimonials__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(90, 108, 120, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonials__dot.active {
    background: var(--color-accent);
    transform: scale(1.2);
}

.testimonials__dot:hover {
    background: var(--color-accent);
}

/* Скрываем кнопки на мобильных и планшетах */
@media (max-width: 991px) {
    .testimonials__btn {
        display: none;
    }
    
    .testimonials__container {
        padding: 0 20px;
    }
}

/* Планшеты */
@media (max-width: 768px) {
    .testimonials {
        padding: 60px 0;
    }
    
    .testimonials__container {
        padding: 0 15px;
    }
    
    .testimonials__title {
        margin-bottom: 30px;
    }
    
    .testimonial {
        padding: 25px 15px;
        border-radius: 12px;
    }
    
    .testimonial__quote {
        font-size: 2.5rem;
        margin-bottom: 12px;
    }
    
    .testimonial__text {
        font-size: 15px;
        margin-bottom: 15px;
    }
}

/* Мобильные устройства */
@media (max-width: 480px) {
    .testimonials {
        padding: 40px 0;
    }
    
    .testimonials__container {
        padding: 0 10px;
    }
    
    .testimonials__title {
        margin-bottom: 25px;
    }
    
    .testimonial {
        padding: 20px 12px;
        border-radius: 10px;
        margin: 0 5px;
    }
    
    .testimonial__quote {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .testimonial__text {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 12px;
    }
    
    .testimonial__name {
        font-size: 13px;
    }
    
    .testimonials__dots {
        gap: 6px;
        margin-top: 15px;
    }
    
    .testimonials__dot {
        width: 8px;
        height: 8px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
    .testimonials__container {
        padding: 0 8px;
    }
    
    .testimonial {
        padding: 18px 10px;
        margin: 0 3px;
    }
    
    .testimonial__quote {
        font-size: 1.8rem;
        margin-bottom: 8px;
    }
    
    .testimonial__text {
        font-size: 13px;
        margin-bottom: 10px;
    }
    
    .testimonial__name {
        font-size: 12px;
    }
}

/* Десктоп - стрелки показываются */
@media (min-width: 992px) {
    .testimonial {
        padding: 40px 30px;
        max-width: 700px;
    }
    
    .testimonial__quote {
        font-size: 4rem;
        margin-bottom: 20px;
    }
    
    .testimonial__text {
        font-size: 18px;
        margin-bottom: 25px;
    }
    
    .testimonial__name {
        font-size: 16px;
    }
}