/* Стили для отзывов и анимаций */

/* Основной контейнер для слайдера отзывов */
.testimonial-slider {
    position: relative;
    padding: 2rem;
    margin: 2rem 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    min-height: 250px;
}

/* Карточка отзыва */
.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 2rem;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

/* Аватар клиента */
.testimonial-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    object-fit: cover;
    border: 3px solid var(--color-primary);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
}

/* Цитата отзыва */
.testimonial-quote {
    position: relative;
    font-style: italic;
    margin-bottom: 1.5rem;
    color: var(--color-gray);
    line-height: 1.6;
}

.testimonial-quote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    font-family: serif;
}

/* Информация о клиенте */
.testimonial-author {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 0.25rem;
}

.testimonial-position {
    font-size: 0.9rem;
    color: var(--color-gray);
}

/* Рейтинг в звездах */
.testimonial-rating {
    margin-top: 1rem;
    color: #FFD700;
    font-size: 1.2rem;
}

/* Элементы управления */
.testimonial-controls {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    z-index: 10;
}

/* Индикаторы */
.testimonial-indicators {
    display: flex;
    gap: 0.5rem;
}

.testimonial-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(47, 198, 246, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-indicator.active {
    width: 24px;
    border-radius: 4px;
    background-color: var(--color-primary);
}

/* Кнопки навигации */
.testimonial-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(47, 198, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(47, 198, 246, 0.4);
}

.testimonial-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(47, 198, 246, 0.2);
}

/* Декоративные элементы */
.testimonial-section {
    position: relative;
    overflow: hidden;
}

.testimonial-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: -1;
    animation: float-around 20s infinite linear;
    pointer-events: none;
}

.testimonial-decoration.circle {
    border-radius: 50%;
    background: var(--color-primary);
}

.testimonial-decoration.square {
    background: var(--color-secondary);
}

.testimonial-decoration.triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 34px solid var(--color-primary);
}

@keyframes float-around {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(50px, 20px) rotate(90deg);
    }
    50% {
        transform: translate(0, 50px) rotate(180deg);
    }
    75% {
        transform: translate(-50px, 20px) rotate(270deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .testimonial-slider {
        padding: 1.5rem;
        min-height: 300px;
    }
    
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-avatar {
        width: 60px;
        height: 60px;
    }
    
    .testimonial-quote {
        font-size: 0.95rem;
    }
    
    .testimonial-controls {
        bottom: 0.5rem;
    }
}

/* Анимированный фон секции отзывов */
.testimonial-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(47, 198, 246, 0.05) 0%, rgba(0, 162, 232, 0.05) 100%);
    z-index: -2;
    animation: gradient-shift 10s ease infinite alternate;
}

@keyframes gradient-shift {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
} 