/* Страница всех экспертов */
.experts-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 53px 16px;
}

.experts-grid p, .experts-grid h2 {
    margin: 0;
    padding: 0;
}

.expert-card {
    display: flex;
    flex-direction: column;
    width: 18.85%;
}

.expert-card__image {
    width: 100%;
    height: 221px;
    background-size: cover;
    margin-bottom: 12px;
    border-radius: 10px;
    object-fit: cover;
}

.expert-card__title, .expert-card__description, .expert-card__link {
    font-family: Rubik, serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: 24px;
    color: #333;
}

.experts-grid .expert-card__description {
    font-weight: 400;
    margin-top: 6px;

    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.experts-grid .expert-card__link {
    font-family: Raleway, serif;
    line-height: 18px;
    color: #0562D0;
    margin-top: 8px;
    text-decoration: none;
}

.expert-card__link:hover {
    color: #333;
}

@media screen and (max-width: 1199px) {
    .expert-card {
        width: 23%;
    }
}

@media screen and (max-width: 991px) {
    .expert-card {
        width: 31.5%;
    }
}

@media screen and (max-width: 768px) {
    .expert-card {
        width: 48%;
    }
}

@media screen and (max-width: 443px) {
    .expert-card {
        width: 100%;
    }

    .expert-card__group {
        display: flex;
        align-items: center;
    }

    .expert-card__image {
        width: 64px;
        height: 64px;
        margin-bottom: 0;
    }

    .expert-card .expert-card__title {
        margin-left: 12px;
    }

    .experts-page-title {
        margin-bottom: 30px;
        font-size: 24px;
        line-height: 26px;
    }

    .expert-card__description {
        font-size: 14px;
    }

    .experts-grid .expert-card__link {
        font-size: 14px;
        line-height: 16px;
    }
}

.page-content .profile {
    font-family: 'Rubik', sans-serif;
}

/* Профиль */
.profile {
    display: flex;
    flex-direction: column;
    margin-bottom: 50px;
}

.profile ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 10px;
}

/* Шапка профиля */
.profile__header {
    display: flex;
    margin-bottom: 30px;
}

.profile__avatar {
    width: 160px;
    height: 160px;
    background-color: #E6E9EF;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 24px;
    flex-shrink: 0;
}

.profile__avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile__info {
    padding-top: 8px;
}

.profile__name {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 32px;
    margin-bottom: 6px;
    color: #333333;
}

.profile__position {
    font-size: 16px;
    color: #9499AC;
    margin-bottom: 6px;
    font-weight: 400;
}

.profile__contacts {
    margin-bottom: 12px;
    display: flex;
    gap: 16px;
}

.profile__contacts .profile__contact {
    color: #0562D0;
    font-size: 16px;
}

.profile__social {
    display: flex;
    gap: 16px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Описание профиля */
.profile__description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 640px;
}

/* Основной контент */
.profile__content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 30px;
}

/* Карьера */
.career {
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 16px;
    color: #333333;
}

.career__item {
    display: flex;
    margin-bottom: 15px;
    align-items: center;
}

.career__period {
    width: 100px;
    background-color: #F3F3F4;
    padding: 6px 12px;
    border-radius: 100px;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    margin-right: 12px;
    white-space: nowrap;
}

.career__description {
    font-size: 16px;
}

.career__more {
    color: #9499AC;
    font-size: 14px;
    margin-top: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.career__more::before {
    content: "";
    width: 74px;
    height: 1px;
    background-color: #E5E7EB;
    margin-right: 10px;
}

/* Конференции */
.conferences {
    margin-bottom: 30px;
}

.conferences__list {
    list-style: none;
}

.conferences__item {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.conferences__item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
    font-size: 16px;
}

/* Боковая панель */
.profile__sidebar {
    background-color: #F3F3F4;
    border-radius: 12px;
    padding: 16px;
    height: fit-content;
}

/* Образование */
.education {
    margin-bottom: 24px;
}

.education__list {
    list-style: none;
}

.education__item {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.education__item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
    font-size: 16px;
}

/* Сертификаты */
.certificates__list {
    list-style: none;
}

.certificates__item {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.5;
    position: relative;
    padding-left: 15px;
}

.certificates__item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #333333;
    font-size: 16px;
}

/* Статьи автора */
.articles {
    font-family: 'Rubik', sans-serif;
    margin-top: 40px;
}

.articles__title {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 32px;
    margin-bottom: 25px;
}

.articles__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.article {
    background-color: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
}

.article__image {
    height: 220px;
    overflow: hidden;
}

.article__image-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article__meta {
    display: flex;
    justify-content: space-between;
    color: #666666;
    font-size: 16px;
    margin-bottom: 12px;
    margin-top: 16px;
}

.article__date {
    font-size: 16px;
}

.article__views {
    display: flex;
    align-items: center;
    font-size: 16px;
}

.article__views-icon {
    width: 24px;
    height: 14px;
    margin-right: 4px;
    display: inline-flex;
    align-items: center;
    position: relative;
}

.article__content {
    padding: 0 0 20px 0;
}

.article__title {
    font-family: 'Rubik', sans-serif;
    font-weight: 600;
    font-size: 20px;
    margin-bottom: 12px;
    color: #333333;
}

.article__text {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .profile__contacts {
        flex-direction: column;
        gap: 1px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
        width: 100%;
    }

    .profile__header {
        flex-direction: column;
        margin-bottom: 20px;
    }

    .profile__avatar {
        width: 100px;
        height: 100px;
        margin: 0 0 15px 0;
    }

    .profile__name {
        font-weight: bold;
        font-size: 18px;
        margin-bottom: 6px;
    }

    .profile__position {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .profile__contacts {
        flex-direction: column;
        gap: 6px;
    }

    .profile__contacts .profile__contact {
        font-size: 14px;
    }

    .profile__content {
        grid-template-columns: 1fr;
    }

    .profile__description {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .profile__sidebar {
        order: -1;
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .career__period {
        width: 80px;
        font-size: 12px;
        padding: 6px 10px;
    }

    .career__description {
        font-size: 14px;
    }

    .conferences {
        margin-bottom: 0;
    }

    .education__item,
    .certificates__item,
    .conferences__item {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .articles__title {
        font-size: 24px;
        margin-bottom: 15px;
    }

    .articles__grid {
        grid-template-columns: 1fr;
        gap: 50px;
        width: 100%;
    }

    .article__meta {
        margin-top: 16px;
    }

    .article__title {
        font-size: 20px;
    }

    .article__text {
        font-size: 16px;
    }

    /* Специфический порядок элементов для мобильной версии */
    .profile {
        display: flex;
        flex-direction: column;
    }

    .career__item {
        flex-direction: column;
        align-items: flex-start;
    }

    .career__period {
        margin-bottom: 6px;
        margin-right: 0;
    }

    /* Добавляем заголовки "Статьи автора" для каждой карточки в мобильной версии */
    .article__wrapper {
        position: relative;
    }

    .article__category {
        font-family: 'Raleway', sans-serif;
        font-weight: 700;
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* Стили страницы "О нас" */
.show-author-info-shortcode-container {
    font-family: Rubik, serif;
    font-size: 16px;
    font-style: normal;
    line-height: 24px;
    font-weight: 400;
}

.show-author-info-shortcode-container .edvisor-blog-post__author {
    color: #333;
    margin-bottom: 32px;
}

.show-author-info-shortcode-container .edvisor-blog-post__author_shortcode {
    display: flex;
    margin-bottom: 10px;
}

.show-author-info-shortcode-container .edvisor-blog-post__author-avatar {
    max-height: 64px;
    max-width: 64px;
    border-radius: 5px;
    margin-bottom: 4px;
}

.show-author-info-shortcode-container .edvisor-blog-post__author-name {
    font-weight: 600;
}

.show-author-info-shortcode-container .edvisor-blog-post__author-name_shortcode {
    margin-bottom: 0;
}

.show-author-info-shortcode-container .edvisor-blog-post__author-description {
    margin-top: 10px;
}

.show-author-info-shortcode-container .edvisor-blog-post__author-meta {
    color: #9499AC;
}
