/**
 * Стили для блока "Мнение эксперта"
 */

.home-expert-opinion {
    margin: 3rem 0;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    border-radius: 20px;
    border: 1px solid #e1f5fe;
    position: relative;
    overflow: hidden;
}

.home-expert-opinion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #2196f3, #21cbf3, #00bcd4);
}

.expert-opinion-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.expert-photo {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #fff;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.expert-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.expert-photo:hover img {
    transform: scale(1.1);
}

.expert-text {
    flex: 1;
}

.expert-opinion-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 1.5rem;
    font-style: italic;
    position: relative;
    padding-left: 2rem;
}

.expert-opinion-text::before {
    content: '"';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: #2196f3;
    font-family: serif;
    line-height: 1;
    opacity: 0.7;
}

.expert-opinion-text::after {
    content: '"';
    position: absolute;
    bottom: -1rem;
    right: 0;
    font-size: 3rem;
    color: #2196f3;
    font-family: serif;
    line-height: 1;
    opacity: 0.7;
}

.expert-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.expert-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2196f3;
    margin: 0;
}

.expert-title {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

/* Анимация появления */
.home-expert-opinion {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .home-expert-opinion {
        margin: 2rem 0;
        padding: 1.5rem;
    }
    
    .expert-opinion-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .expert-photo {
        width: 100px;
        height: 100px;
        align-self: center;
    }
    
    .expert-opinion-text {
        font-size: 1rem;
        padding-left: 1.5rem;
    }
    
    .expert-opinion-text::before {
        font-size: 2.5rem;
        top: -0.3rem;
    }
    
    .expert-opinion-text::after {
        font-size: 2.5rem;
        bottom: -0.8rem;
    }
    
    .expert-name {
        font-size: 1.1rem;
    }
    
    .expert-title {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .home-expert-opinion {
        padding: 1rem;
    }
    
    .expert-photo {
        width: 80px;
        height: 80px;
    }
    
    .expert-opinion-text {
        font-size: 0.95rem;
        padding-left: 1rem;
    }
    
    .expert-opinion-text::before,
    .expert-opinion-text::after {
        font-size: 2rem;
    }
}
