/* Стили для секции отзывов */

.reviews-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.review-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stars {
    font-size: 16px;
    line-height: 1;
}

.rating-text {
    font-weight: 600;
    color: #2E8B57;
    font-size: 14px;
}

.review-date {
    font-size: 12px;
    color: #6c757d;
}

.review-text {
    font-size: 15px;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding-left: 20px;
}

.review-text:before {
    content: '"';
    position: absolute;
    left: 0;
    top: -5px;
    font-size: 24px;
    color: #2E8B57;
    font-weight: bold;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2E8B57, #007BFF);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    color: #212529;
    font-size: 14px;
    margin-bottom: 2px;
}

.author-location {
    font-size: 12px;
    color: #6c757d;
}

.review-verified {
    font-size: 11px;
    color: #28a745;
    font-weight: 500;
    background: #d4edda;
    padding: 4px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.reviews-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.stats-item {
    text-align: center;
}

.stats-number {
    font-size: 36px;
    font-weight: 700;
    color: #2E8B57;
    margin-bottom: 5px;
    line-height: 1;
}

.stats-label {
    font-size: 14px;
    color: #6c757d;
    font-weight: 500;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .reviews-section {
        padding: 40px 0;
    }
    
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 30px;
    }
    
    .review-card {
        padding: 20px;
        margin: 0 -15px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .review-text {
        font-size: 14px;
        padding-left: 15px;
    }
    
    .reviews-stats {
        flex-direction: column;
        gap: 20px;
        margin: 20px -15px 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .stats-item {
        padding: 0 20px;
    }
    
    .stats-number {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-author {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .review-verified {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .reviews-stats {
        padding: 15px;
    }
    
    .stats-number {
        font-size: 18px;
    }
    
    .stats-label {
        font-size: 10px;
    }
}

/* Очень узкие экраны - исправление отзывов */
@media (max-width: 348px) {
    /* Секция отзывов */
    .reviews-section {
        padding: 30px 0;
    }
    
    /* Сетка отзывов */
    .reviews-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    /* Карточка отзыва */
    .review-card {
        background: white;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .review-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    }
    
    /* Заголовок отзыва */
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        margin-bottom: 12px;
    }
    
    /* Рейтинг */
    .review-rating {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    
    .stars {
        font-size: 14px;
        line-height: 1;
    }
    
    .rating-text {
        font-weight: 600;
        color: #2E8B57;
        font-size: 12px;
    }
    
    .review-date {
        font-size: 10px;
        color: #6c757d;
    }
    
    /* Текст отзыва */
    .review-text {
        font-size: 13px;
        line-height: 1.4;
        color: #495057;
        margin-bottom: 15px;
        font-style: italic;
        position: relative;
        padding-left: 15px;
    }
    
    .review-text:before {
        content: '"';
        position: absolute;
        left: 0;
        top: -3px;
        font-size: 18px;
        color: #2E8B57;
        font-weight: bold;
    }
    
    /* Автор отзыва */
    .review-author {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }
    
    .author-avatar {
        width: 35px;
        height: 35px;
        border-radius: 50%;
        background: linear-gradient(135deg, #2E8B57, #007BFF);
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 12px;
        flex-shrink: 0;
    }
    
    .author-info {
        flex: 1;
        text-align: center;
    }
    
    .author-name {
        font-weight: 600;
        color: #2E8B57;
        font-size: 12px;
        margin-bottom: 2px;
    }
    
    .author-location {
        font-size: 10px;
        color: #6c757d;
    }
    
    .review-verified {
        background: #28a745;
        color: white;
        padding: 3px 6px;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 600;
        display: inline-block;
        margin-top: 4px;
    }
    
    /* Статистика отзывов */
    .reviews-stats {
        background: white;
        border-radius: 8px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        margin-bottom: 20px;
        text-align: center;
    }
    
    .stats-item {
        margin-bottom: 12px;
    }
    
    .stats-number {
        font-size: 16px;
        font-weight: 700;
        color: #2E8B57;
        display: block;
    }
    
    .stats-label {
        font-size: 9px;
        color: #6c757d;
        margin-top: 2px;
    }
    
    /* Общие исправления */
    * {
        box-sizing: border-box;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
        font-size: 12px;
    }
    
    .float-left, .float-right {
        float: none;
        width: 100%;
    }
} 