/* Карточка преподавателя. Общие стили для главной страницы и страниц направлений.
   Вынесено из saikt-home-tz.css, чтобы вёрстка карточки была одна на весь сайт. */

html body .lecturer-portal .global-portal__container.lecturer-profile-portal,
html body .global-portal__container.lecturer-profile-portal {
    width: min(1160px, calc(100vw - 32px)) !important;
    max-width: min(1160px, calc(100vw - 32px)) !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

html body .lecturer-portal {
    z-index: 2147483647 !important;
}

html body.lecturer-profile-open .cookieNotify,
html body.lecturer-profile-open jdiv,
html body.lecturer-profile-open [id^="jivo"],
html body.lecturer-profile-open [class*="jivo"] {
    z-index: 10 !important;
}

html body.lecturer-profile-open .header,
html body.lecturer-profile-open header.header,
html body.lecturer-profile-open .navbar,
html body.lecturer-profile-open .navbar.mth {
    z-index: 2147482000 !important;
}

html body.lecturer-profile-open iframe[src*="jivo"],
html body.lecturer-profile-open iframe[id*="jivo"],
html body.lecturer-profile-open iframe[class*="jivo"],
html body.lecturer-profile-open jdiv,
html body.lecturer-profile-open [id^="jivo"],
html body.lecturer-profile-open [class*="jivo"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

html body .lecturer-profile.lecturer-profile_v2 {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    gap: 34px !important;
    width: min(1160px, calc(100vw - 32px)) !important;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 30px 42px 28px 30px !important;
    border-radius: 10px !important;
    background: #fff !important;
    color: #10213f;
    box-shadow: 0 18px 50px rgba(11, 46, 87, .18) !important;
}

html body .lecturer-profile_v2 .lecturer-profile__close {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 18px !important;
    right: 18px !important;
    width: 42px !important;
    height: 42px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #eef6ff !important;
    color: #6c86b2 !important;
    line-height: 1 !important;
    transition: background .18s ease, color .18s ease;
}

html body .lecturer-profile_v2 .lecturer-profile__close:hover {
    background: #dff0ff !important;
    color: #008bd2 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__close i {
    display: block !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    font-size: 28px !important;
    line-height: 1 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__photo-side {
    align-items: center !important;
    padding: 0 30px 0 0 !important;
    border-right: 1px solid #d9ecfb !important;
    border-bottom: 0 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__photo-wrap {
    width: 210px !important;
    height: 210px !important;
    padding: 8px !important;
    border-radius: 50% !important;
    background: #f5fbff !important;
    box-shadow: inset 0 0 0 1px #cce8fb !important;
}

html body .lecturer-profile_v2 .lecturer-profile__photo {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

html body .lecturer-profile_v2 .lecturer-profile__photo-caption {
    width: 100%;
    margin-top: 22px !important;
    color: #10213f !important;
    font-family: "Montserrat", sans-serif !important;
    text-align: center !important;
}

html body .lecturer-profile_v2 .lecturer-profile__caption-title {
    margin: 0 0 12px;
    color: #10213f;
    font-size: 18px;
    line-height: 25px;
    font-weight: 700;
}

html body .lecturer-profile_v2 .lecturer-profile__side-courses {
    display: grid;
    gap: 12px;
    justify-items: center;
}

html body .lecturer-profile_v2 .lecturer-profile__side-courses .lecturer-course {
    display: block !important;
    width: auto !important;
    max-width: 240px;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #10213f !important;
    font-size: 17px !important;
    line-height: 25px !important;
    font-weight: 500 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: break-word;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    width: 100%;
    margin-top: auto;
    padding: 18px 22px;
    border: 1px solid #d2e9fb;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7fbff 0%, #eff8ff 100%);
    color: #10213f;
    text-decoration: none;
    box-sizing: border-box;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-card:hover {
    border-color: #008bd2;
    text-decoration: none;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #e9f5ff;
    color: #008bd2;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-icon i {
    font-size: 28px;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-text {
    display: grid;
    gap: 4px;
    min-width: 0;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-label {
    color: #3b4a66;
    font-size: 16px;
    line-height: 20px;
    font-weight: 500;
}

html body .lecturer-profile_v2 .lecturer-profile__vk-url {
    min-width: 0;
    color: #008bd2;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html body .lecturer-profile_v2 .lecturer-profile__content {
    min-width: 0;
    padding-right: 28px;
}

html body .lecturer-profile_v2 .lecturer-profile__name {
    margin: 0 52px 14px 0 !important;
    color: #10213f !important;
    font-size: 44px !important;
    line-height: 52px !important;
    font-weight: 800 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__facts {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
    margin: 0 0 22px !important;
}

html body .lecturer-profile_v2.lecturer-profile_v2_facts-stacked .lecturer-profile__facts {
    display: grid !important;
    grid-template-columns: max-content !important;
    justify-items: start;
}

html body .lecturer-profile_v2 .lecturer-profile__fact {
    display: inline-flex !important;
    align-items: center !important;
    max-width: 100% !important;
    gap: 10px !important;
    min-height: 38px;
    padding: 8px 16px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: #2e3d58 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 500 !important;
    box-sizing: border-box;
}

html body .lecturer-profile_v2 .lecturer-profile__fact i {
    flex: 0 0 auto;
    color: #008bd2 !important;
    font-size: 20px !important;
}

html body .lecturer-profile_v2 .lecturer-profile__fact span {
    min-width: 0;
    overflow-wrap: anywhere;
}

html body .lecturer-profile_v2 .lecturer-profile__section {
    margin-top: 20px !important;
}

html body .lecturer-profile_v2 .lecturer-profile__section h4 {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin: 0 0 10px !important;
    color: #10213f !important;
    font-size: 22px !important;
    line-height: 28px !important;
    font-weight: 800 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__section h4 i {
    color: #008bd2 !important;
    font-size: 28px !important;
}

html body .lecturer-profile_v2 .lecturer-profile__section p {
    margin: 0 0 14px !important;
    color: #33435d !important;
    font-size: 16px !important;
    line-height: 26px !important;
    font-weight: 500 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__section p:last-child {
    margin-bottom: 0 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__list {
    display: grid !important;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

html body .lecturer-profile_v2 .lecturer-profile__list li {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 12px;
    align-items: start;
    min-height: 22px;
    padding-left: 0 !important;
    color: #33435d !important;
    font-size: 15px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
}

html body .lecturer-profile_v2 .lecturer-profile__list li:before {
    content: none !important;
}

html body .lecturer-profile_v2 .lecturer-profile__list:not(.lecturer-profile__list_check) li:before {
    content: "" !important;
    display: block;
    grid-column: 1;
    width: 5px;
    height: 5px;
    margin-top: 10px;
    border-radius: 50%;
    background: #008bd2;
}

html body .lecturer-profile_v2 .lecturer-profile__list:not(.lecturer-profile__list_check) li span {
    grid-column: 2;
}

html body .lecturer-profile_v2 .lecturer-profile__check-icon {
    margin-top: 2px;
    color: #008bd2 !important;
    font-size: 20px !important;
}

html body .lecturer-profile_v2 .lecturer-profile__courses {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px 12px !important;
    margin-top: 20px !important;
}

html body .lecturer-profile_v2 .lecturer-profile__courses .lecturer-course {
    width: auto !important;
    max-width: 100%;
    margin: 0 !important;
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: #eef6ff !important;
    color: #008bd2 !important;
    font-size: 15px !important;
    line-height: 20px !important;
    font-weight: 700 !important;
    text-align: center !important;
    word-break: normal !important;
    overflow-wrap: anywhere;
}

html body .lecturer-profile_v2 .lecturer-course__label {
    color: #008bd2;
    font-weight: 800;
}

html body .lecturer-profile_v2 .lecturer-profile__button {
    width: min(380px, 100%);
    min-height: 54px;
    margin-top: 22px !important;
    padding: 0 26px !important;
    border-radius: 28px !important;
    background: #ff3f46 !important;
    color: #fff !important;
    font-size: 19px !important;
    line-height: 24px !important;
    font-weight: 500 !important;
    white-space: normal;
}

html body.lecturer-signup-open .direction-teacher-modal,
html body.lecturer-signup-open .lecturer-portal,
html body.lecturer-signup-open .global-portal:has(.lecturer-profile_v2) {
    z-index: 2147483000 !important;
}

html body.lecturer-signup-open .global-portal.one,
html body.lecturer-signup-open .global-portal.two,
html body.lecturer-signup-open .global-portal:not(.lecturer-portal):not(:has(.lecturer-profile_v2)) {
    z-index: 2147483647 !important;
}

@media screen and (max-width: 980px) {
    html body .lecturer-profile.lecturer-profile_v2 {
        grid-template-columns: 250px minmax(0, 1fr) !important;
        gap: 26px !important;
        padding: 28px 34px 26px 26px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__photo-side {
        padding-right: 24px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__photo-wrap {
        width: 178px !important;
        height: 178px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__name {
        font-size: 36px !important;
        line-height: 44px !important;
    }
}

@media screen and (max-width: 760px) {
    html body .lecturer-profile.lecturer-profile_v2 {
        grid-template-columns: 1fr !important;
        width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 24px);
        padding: 24px 18px 24px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__photo-side {
        padding: 0 0 22px !important;
        border-right: 0 !important;
        border-bottom: 1px solid #d9ecfb !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__content {
        padding-right: 0;
    }

    html body .lecturer-profile_v2 .lecturer-profile__photo-wrap {
        width: 172px !important;
        height: 172px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__vk-card {
        width: min(320px, 100%);
        margin-top: 20px;
    }

    html body .lecturer-profile_v2 .lecturer-profile__name {
        margin-right: 46px !important;
        font-size: 30px !important;
        line-height: 37px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__facts {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }

    html body .lecturer-profile_v2.lecturer-profile_v2_facts-stacked .lecturer-profile__facts {
        grid-template-columns: 1fr !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__fact {
        justify-content: flex-start !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__section h4 {
        font-size: 20px !important;
        line-height: 26px !important;
    }
}

@media screen and (max-width: 430px) {
    html body .lecturer-profile_v2 .lecturer-profile__name {
        font-size: 27px !important;
        line-height: 33px !important;
    }

    html body .lecturer-profile_v2 .lecturer-profile__section p,
    html body .lecturer-profile_v2 .lecturer-profile__list li {
        font-size: 14px !important;
        line-height: 22px !important;
    }
}
