/* Основные стили для секции отзывов */
.reviews-section {
    background: #F5F5F5;
    padding: 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
}

/* Заголовок секции */
.reviews-header {
    text-align: center;
    margin-bottom: 50px;
}

.reviews-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.rating-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star {
    color: #FF8412;
    font-size: 20px;
    line-height: 1;
}

.rating-number {
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.rating-text {
    color: #666;
    font-size: 14px;
    max-width: 400px;
    text-align: center;
}

.reviews-subtitle {
    color: #666;
    font-size: 16px;
    margin: 0;
    font-weight: 400;
}

/* Слайдер */
.reviews-slider {
    position: relative;
}

.slider-viewport {
    overflow: hidden;
}

.reviews-container {
    display: flex;
    gap: 20px;
    padding: 10px;
    transition: transform 0.5s ease;
}

/* Карточка отзыва */
.review-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex-shrink: 0;
    width: 360px;
    height: 240px;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Текстовые карточки */
.review-card--text {
    display: flex;
    flex-direction: column;
    padding: 20px;
}

.review-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.review-text {
    color: #333;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: auto;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #f0f0f0;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

.author-stars {
    color: #FF8412;
    font-size: 14px;
    margin-top: 2px;
}

/* Видео карточки */
.review-card--video {
    position: relative;
    overflow: hidden;
}

.video-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.review-card:hover .video-preview {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    right: 15px;
    bottom: 15px;
    width: 50px;
    height: 50px;
    background: rgba(255, 132, 18, 0.9);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(5px);
}

.play-button:hover {
    background: rgba(255, 132, 18, 1);
    transform: scale(1.1);
}

.video-author {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Навигация слайдера */
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #E0E0E0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    color: #333;
    backdrop-filter: blur(10px);
}

.slider-nav:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #FF8412;
    transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
    left: -25px;
}

.slider-nav.next {
    right: -25px;
}

.slider-nav:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: translateY(-50%) scale(0.95);
}

/* Кнопка "Все отзывы" */
.reviews-footer {
    text-align: center;
    margin-top: 40px;
}

.all-reviews-btn {
    background-color: #FF8412;
    color: #fff;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.all-reviews-btn:hover {
    background-color: #E67300;
    transform: translateY(-2px);
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.review-card {
    animation: fadeIn 0.6s ease-out;
}

.review-card:nth-child(1) { animation-delay: 0.1s; }
.review-card:nth-child(2) { animation-delay: 0.2s; }
.review-card:nth-child(3) { animation-delay: 0.3s; }

/* Стили для видео-попапа */
.video-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-popup__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent;
    cursor: pointer;
}

.video-popup.is-visible {
    display: flex;
    opacity: 1;
}

.video-popup__content {
    position: relative;
    width: 80%;
    max-width: 800px;
    background: #000;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-height: 80vh;
    overflow: hidden;
    padding: 5px;
}

.video-popup__player {
    position: relative;
    height: 0;
    overflow: hidden;
}

.video-popup__player--horizontal {
    padding-bottom: 56.25%;
}

.video-popup__player--vertical {
    padding-bottom: 177.78%;
    max-width: 300px;
    margin: 0 auto;
    overflow: hidden;
}

.video-popup__player--vertical iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    transform: scale(1.3);
    transform-origin: center center;
}

.video-popup__player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-popup__close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 30px;
    height: 30px;
    border: none;
    background: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    font-weight: 300;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1001;
}

.video-popup__close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 15px;
    }
    
    .reviews-header h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .rating-line {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .rating-text {
        font-size: 13px;
        max-width: 300px;
    }
    
    .reviews-subtitle {
        font-size: 14px;
    }
    
    .review-card {
        width: 300px;
        height: 280px;
    }
    
    .review-card--text {
        padding: 15px;
    }
    
    .review-text {
        font-size: 14px;
        line-height: 1.5;
        -webkit-line-clamp: 8;
        margin-bottom: 15px;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-stars {
        font-size: 13px;
    }
    
    .slider-nav {
        width: 40px;
        height: 40px;
    }
    
    .slider-nav.prev {
        left: -20px;
    }
    
    .slider-nav.next {
        right: -20px;
    }
    
    .play-button {
        width: 40px;
        height: 40px;
        right: 10px;
        bottom: 10px;
    }
    
    .video-author {
        font-size: 12px;
        padding: 4px 10px;
        bottom: 10px;
        left: 10px;
    }
    
    .all-reviews-btn {
        padding: 12px 25px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .reviews-section {
        padding: 30px 10px;
    }
    
    .reviews-header h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }
    
    .rating-line {
        flex-direction: column;
        gap: 6px;
        margin-bottom: 10px;
    }
    
    .rating-stars {
        gap: 3px;
    }
    
    .star {
        font-size: 18px;
    }
    
    .rating-number {
        font-size: 16px;
    }
    
    .rating-text {
        font-size: 12px;
        max-width: 250px;
    }
    
    .reviews-subtitle {
        font-size: 13px;
    }
    
    .review-card {
        width: 280px;
        height: 320px;
    }
    
    .review-card--text {
        padding: 12px;
    }
    
    .review-text {
        font-size: 13px;
        line-height: 1.4;
        -webkit-line-clamp: 10;
        margin-bottom: 12px;
    }
    
    .author-avatar {
        width: 30px;
        height: 30px;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .author-stars {
        font-size: 12px;
    }
    
    .slider-nav {
        width: 35px;
        height: 35px;
    }
    
    .slider-nav.prev {
        left: -17px;
    }
    
    .slider-nav.next {
        right: -17px;
    }
    
    .play-button {
        width: 35px;
        height: 35px;
        right: 8px;
        bottom: 8px;
    }
    
    .video-author {
        font-size: 11px;
        padding: 3px 8px;
        bottom: 8px;
        left: 8px;
    }
    
    .all-reviews-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* Адаптивность для видео поп-апа */
@media (max-width: 768px) {
    .video-popup__content {
        width: 90%;
        max-width: 500px;
        max-height: 70vh;
    }
    
    .video-popup__player--vertical {
        max-width: 250px;
    }
    
    .video-popup__player--vertical iframe {
        transform: scale(1.2);
    }
}

@media (max-width: 480px) {
    .video-popup__content {
        width: 95%;
        max-width: 350px;
        max-height: 60vh;
    }
    
    .video-popup__player--vertical {
        max-width: 200px;
    }
    
    .video-popup__player--vertical iframe {
        transform: scale(1.1);
    }
} 