/* Отзывы пациентов - Стили */

.otzyvy-intro {
    background: linear-gradient(135deg, #e8f4fd 0%, #d1ecf1 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border-left: 4px solid #17a2b8;
}

.otzyvy-intro .lead {
    font-size: 1.2rem;
    line-height: 1.6;
    margin: 0;
    color: #2c3e50;
}

.disclaimer {
    background: linear-gradient(135deg, #fff3cd 0%, #fef7e0 100%);
    border: 2px solid #ffc107;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.disclaimer p {
    color: #856404;
    margin: 0;
    font-weight: 500;
    line-height: 1.5;
}

/* Статистика */
.statistics-overview {
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.stat-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #28a745;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
}

/* Распределение рейтингов */
.rating-breakdown {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
}

.rating-breakdown h2 {
    color: #2c5aa0;
    margin-bottom: 1.5rem;
}

.rating-bars {
    max-width: 500px;
}

.rating-row {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.stars {
    color: #ffc107;
    font-size: 1.2rem;
    width: 120px;
    flex-shrink: 0;
}

.bar-container {
    flex: 1;
    height: 20px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.bar {
    height: 100%;
    background: linear-gradient(90deg, #ffc107, #ffb300);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.percentage {
    width: 40px;
    text-align: right;
    font-weight: 600;
    color: #495057;
    flex-shrink: 0;
}

/* Карточки отзывов */
.reviews-section {
    margin-bottom: 3rem;
}

.review-card {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.review-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.review-card.featured {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #ffffff 100%);
}



.review-header {
    padding: 1.5rem;
    border-bottom: 1px solid #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2c5aa0, #3498db);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.reviewer-name {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.reviewer-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.reviewer-meta span {
    color: #6c757d;
    font-size: 0.9rem;
    background: #f8f9fa;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
}

.review-rating {
    text-align: right;
}

.review-rating .stars {
    color: #ffc107;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.review-rating .date {
    color: #6c757d;
    font-size: 0.9rem;
}

.review-content {
    padding: 1.5rem;
}

.review-content h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.review-content p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.review-content p:last-of-type {
    margin-bottom: 1.5rem;
}

.review-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.tag {
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.tag.positive {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.tag.negative {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.tag.neutral {
    background: rgba(255, 193, 7, 0.1);
    color: #e0a800;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.review-footer {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.helpful {
    display: flex;
    gap: 0.5rem;
}

.helpful-btn {
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.helpful-btn:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.verified {
    color: #28a745;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Инсайты и выводы */
.summary-insights {
    margin-bottom: 3rem;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.insight-item {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.insight-item.positive::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
}

.insight-item.negative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #dc3545, #c82333);
}

.insight-item.neutral::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #17a2b8, #138496);
}

.insight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.insight-item h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.insight-item.positive h3 {
    color: #28a745;
}

.insight-item.negative h3 {
    color: #dc3545;
}

.insight-item.neutral h3 {
    color: #17a2b8;
}

.insight-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.insight-item li {
    padding: 0.5rem 0;
    color: #495057;
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.5;
}

.insight-item.positive li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.insight-item.negative li::before {
    content: '⚠';
    position: absolute;
    left: 0;
    color: #dc3545;
    font-weight: bold;
}

.insight-item.neutral li::before {
    content: '💡';
    position: absolute;
    left: 0;
    font-size: 0.9rem;
}

/* Форма добавления отзыва */
.add-review {
    background: #fff;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

.add-review h2 {
    color: #2c5aa0;
    margin-bottom: 1rem;
}

.add-review-content p {
    color: #6c757d;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.review-form-info {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: left;
}

.review-form-info h3 {
    color: #2c5aa0;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.review-form-info ol {
    color: #495057;
    line-height: 1.6;
    padding-left: 1.5rem;
}

.review-form-info li {
    margin-bottom: 0.5rem;
}

.review-form-info .note {
    color: #6c757d;
    font-style: italic;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #dee2e6;
}

.add-review .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: #2c5aa0;
    color: white;
    border: 2px solid #2c5aa0;
}

.btn-primary:hover {
    background: #1e3f73;
    border-color: #1e3f73;
    transform: translateY(-2px);
}

/* Медицинский дисклеймер */
.medical-disclaimer {
    background: linear-gradient(135deg, #e2e3e5 0%, #f8f9fa 100%);
    border: 2px solid #6c757d;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.medical-disclaimer h3 {
    color: #495057;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.medical-disclaimer p {
    color: #495057;
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

/* CTA секция */
.cta-section {
    background: linear-gradient(135deg, #2c5aa0 0%, #3498db 100%);
    color: white;
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.05); opacity: 0.3; }
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.cta-buttons .btn {
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.cta-buttons .btn-primary {
    background: #fff;
    color: #2c5aa0;
    border: 2px solid #fff;
}

.cta-buttons .btn-primary:hover {
    background: transparent;
    color: #fff;
    transform: translateY(-2px);
}

.cta-buttons .btn-secondary {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
}

.cta-buttons .btn-secondary:hover {
    background: #fff;
    color: #2c5aa0;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .review-header {
        flex-direction: column;
        text-align: center;
    }
    
    .reviewer-info {
        flex-direction: column;
        text-align: center;
    }
    
    .reviewer-meta {
        justify-content: center;
    }
    
    .review-rating {
        text-align: center;
    }
    
    .insights-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .cta-buttons .btn {
        width: 200px;
    }
    
    .review-footer {
        flex-direction: column;
        text-align: center;
    }
    
    .helpful {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .otzyvy-intro,
    .disclaimer,
    .rating-breakdown,
    .add-review {
        padding: 1.5rem;
    }
    
    .review-card {
        margin-bottom: 1.5rem;
    }
    
    .review-header,
    .review-content {
        padding: 1rem;
    }
    
    .reviewer-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-tags {
        justify-content: center;
    }
    
    .cta-section {
        padding: 2rem 1rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
}

/* Дополнительные эффекты */
.review-card {
    position: relative;
}

.review-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(44, 90, 160, 0.02) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.review-card:hover::before {
    opacity: 1;
}

.rating-row:hover .bar {
    filter: brightness(1.1);
}

.stat-item {
    cursor: default;
}

.stat-item:hover .stat-number {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}