/* Основные стили для страницы эксперта */
.expert-hero {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.expert-profile {
    display: flex;
    gap: 40px;
    align-items: center;
}

.expert-photo {
    flex: 0 0 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.expert-photo img {
    width: 100%;
    height: auto;
    display: block;
}

.expert-info {
    flex: 1;
}

.expert-info h1 {
    font-size: 36px;
    margin-bottom: 15px;
    color: #333;
}

.expert-subtitle {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
}

.expert-contacts {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 18px;
}

.contact-item i {
    margin-right: 15px;
    color: #e74c3c;
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.btn-consult {
    background-color: #e74c3c;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-consult:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Стили для блока "Обо мне" */
.expert-about {
    padding: 80px 0;
}

.about-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
}

.about-text {
    flex: 1;
    font-size: 18px;
    line-height: 1.6;
}

.about-text p {
    margin-bottom: 20px;
}

.experience-list {
    list-style-type: none;
    padding-left: 0;
}

.experience-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.experience-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.about-skills {
    flex: 0 0 400px;
}

.skill-item {
    margin-bottom: 25px;
}

.skill-progress {
    position: relative;
    height: 40px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: calc(var(--progress-width, 0) * 1%);
    background-color: #e74c3c;
    transition: width 1.5s ease;
}

.skill-name {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    z-index: 1;
}

.skill-percent {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-weight: bold;
    z-index: 1;
}

/* Стили для блока услуг */
.expert-services {
    padding: 80px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.service-card {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.service-icon {
    width: 60px;
    height: 60px;
    background-color: #f8e0df;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #e74c3c;
    font-size: 24px;
}

.service-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
}

.service-card ul {
    list-style-type: none;
    padding-left: 0;
}

.service-card ul li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.service-card ul li:before {
    content: "\f054";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-size: 12px;
}

/* Стили для области экспертизы */
.expertise {
    padding: 80px 0;
}

.expertise-content {
    display: flex;
    gap: 50px;
    margin-top: 40px;
    align-items: center;
}

.expertise-text {
    flex: 1;
}

.expertise-list {
    list-style-type: none;
    padding-left: 0;
    font-size: 18px;
    line-height: 1.6;
}

.expertise-list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 15px;
}

.expertise-list li:before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #e74c3c;
}

.expertise-image {
    flex: 0 0 50%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.expertise-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Стили для ключевых проектов */
.projects {
    padding: 80px 0;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.project-image {
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #333;
}

.project-content p {
    color: #666;
    line-height: 1.5;
}

/* Стили для отзывов */
.testimonials {
    padding: 80px 0;
}

.testimonials-slider {
    margin-top: 40px;
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 20px;
    scrollbar-width: none;
}

.testimonials-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    flex: 0 0 400px;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.testimonial-content {
    font-size: 16px;
    line-height: 1.6;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: #333;
}

.author-info p {
    font-size: 14px;
    color: #777;
}

/* Стили для контактов */
.expert-contact {
    padding: 80px 0;
    background-color: #e74c3c;
    color: white;
}

.contact-wrapper {
    display: flex;
    gap: 50px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.contact-details {
    margin-top: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.detail-item i {
    margin-right: 15px;
    font-size: 20px;
    width: 25px;
    text-align: center;
}

.contact-form {
    flex: 0 0 50%;
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.contact-form textarea {
    height: 150px;
    resize: vertical;
}

.btn-submit {
    background-color: #e74c3c;
    color: white;
    border: none;
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #c0392b;
}

/* Адаптивные стили */
@media (max-width: 992px) {
    .expert-profile {
        flex-direction: column;
    }
    
    .expert-photo {
        flex: 0 0 auto;
        width: 100%;
        max-width: 400px;
        margin-bottom: 30px;
    }
    
    .about-content,
    .expertise-content,
    .contact-wrapper {
        flex-direction: column;
    }
    
    .about-skills {
        flex: 0 0 auto;
        width: 100%;
        margin-top: 40px;
    }
    
    .expertise-image {
        flex: 0 0 auto;
        width: 100%;
        margin-top: 40px;
    }
    
    .contact-form {
        flex: 0 0 auto;
        width: 100%;
        margin-top: 40px;
    }
}

@media (max-width: 768px) {
    .expert-info h1 {
        font-size: 28px;
    }
    
    .expert-subtitle {
        font-size: 18px;
    }
    
    .contact-item,
    .detail-item {
        font-size: 16px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-card {
        flex: 0 0 300px;
    }
}