/* 
ДЕТАЛЬНАЯ КАРТОЧКА СПЕЦИАЛИСТА
 */

.spec-neo-section {
    width: 90vw;
    margin: auto;
}

.spec-neo-container {
    margin: 0 auto;
}

/* 
   Карточка "О специалисте"
 */
.spec-neo-card_about {
    display: flex;
    align-items: stretch;
    gap: 32px;
    border-radius: 16px;
    min-height: 0;
    max-height: none;
    overflow: visible;
}

.spec-neo-legend-wrapper {
    flex: 0 0 356px;
    max-width: 356px;
    background-color: #fff;
    padding: 12px;
    border-radius: 40px;
    gap: 12px;
    justify-content: flex-start;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    position: sticky;
    top: 20px;
    height: fit-content;
    box-sizing: border-box;
}

.spec-neo-photo-wrapper {
    flex: 0 0 auto;
    width: 100%;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-neo-photo-inner {
    width: 100%;
    min-width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 36px;
    overflow: hidden;
    background: #e6ecf7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-neo__photo {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.spec-neo-about-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    border: none;
    padding: 0;
    gap: 0;
    overflow: visible;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.spec-neo-about-title-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    border-radius: 40px;
    padding: 12px 20px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.spec-neo-about-title-container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
}

.spec-neo__title {
    margin: 0 0 6px;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--main-blue);
}

.spec-neo-schedule-container {
    flex: 0 0 220px;
    font-size: 13px;
}


.spec-neo-about-desc-wrapper {
    margin-top: 12px;
}

.spec-neo-cta {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spec-neo__btn {
    border: none;
}

.border-bs_50 {
    border: 1px solid var(--main-blue-secondary__50);
}

/* 
   Списки
 */
.spec-neo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.spec-neo-list .spec-neo-list__item {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 260px);
    column-gap: 16px;
    align-items: start;
    min-width: 0;
    max-width: 100%;
    padding: 6px 0;
}

.spec-neo-list__item:last-child {
    border-bottom: none;
}

.spec-neo-list .spec-neo-list__left,
.spec-neo-list .spec-neo-list__right {
    margin: 0;
    line-height: 1.25;
}

.spec-neo-list .spec-neo-list__left {
    overflow-wrap: anywhere;
    word-break: break-word;
    min-width: 0;
}

.spec-neo-list .spec-neo-list__right {
    min-width: 0;
    justify-self: end;
    text-align: right;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.spec-neo-list__item>.subtitle-3,
.spec-neo-list__text {
    min-width: 0;
}

.spec-neo-list__item>.subtitle-3 {
    overflow-wrap: anywhere;
    min-width: 290px;
}

.spec-neo-list__item>.text {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
}

.spec-neo-list__item>.text,
.spec-neo-list__year {
    justify-self: end;
    text-align: right;
    white-space: nowrap;
    opacity: .85;
}

/* 
   Специализации
 */
.spec-neo-spec-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 12px;
}



.spec-neo-empty {
    padding: 10px 0;
    font-size: 14px;
    color: var(--text-light, #777);
}

/* 
   Образование / Достижения
 */
.spec-neo-edu-grid,
.spec-neo-achieve-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spec-neo-edu-col,
.spec-neo-achieve-grid>.spec-neo-edu-col {
    width: 100%;
    min-width: 0;
}

.spec-neo-footer {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 
   Почта
 */
.spec-neo__mail--card {
    margin: 12px 0 0;
    display: inline-flex;
    color: var(--main-blue-dark__80);
    text-decoration: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.spec-neo__mail--card::before {
    margin-left: 20px;
    margin-right: 5px;
    content: '';
    display: inline-block;
    background-image: url('./images/ico/mail.svg');
    background-repeat: no-repeat;
    width: 18px;
    height: 18px;
    background-size: contain;
    filter: brightness(0) saturate(100%) invert(16%) sepia(57%) saturate(1225%) hue-rotate(188deg) brightness(95%) contrast(91%);
}

/* 
   Табы
 */
.spec-neo-tab_container {
    margin-top: 16px;
    min-width: 0;
    overflow: hidden;
}

.spec-neo-body {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.spec-neo-tabs__body {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.spec-neo-tabs__content {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.spec-neo-tabs__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.dept-neo-hours {
    max-width: 100%;
}

/* ==============================
   АДАПТИВ
============================== */

@media (max-width: 1200px) {
    .spec-neo-card_about {
        gap: 24px;
    }

    .spec-neo-legend-wrapper {
        flex: 0 0 300px;
        max-width: 300px;
        padding: 10px;
        border-radius: 32px;
        position: sticky;
        top: 150px;
    }

    .spec-neo-about-wrapper {
        min-width: 0;
    }

    .spec-neo-photo-inner {
        border-radius: 28px;
        min-height: 100%;
        min-width: 100%;
    }

    .spec-neo-about-title-wrapper {
        padding: 10px 16px;
        border-radius: 32px;
    }
}

@media (max-width: 768px) {
    .spec-neo-card_about {
        flex-direction: column;
        gap: 16px;
    }

    .spec-neo-legend-wrapper {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        position: static;
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
        border-radius: 28px;
        background: none !important;
    }

    .spec-neo-photo-wrapper {
        display: block;
        width: 100%;
    }

    .spec-neo-photo-inner {
        border-radius: 24px;
        min-height: 350px;
        min-width: 100%;
    }

    .spec-neo-cta {
        padding: 0;
    }

    .spec-neo-about-wrapper {
        width: 100%;
        min-width: 0;
    }

    .spec-neo-about-title-wrapper {
        padding: 16px 12px;
        border-radius: 24px;
    }

    .spec-neo-tab_container {
        margin-top: 12px;
    }

    .spec-neo-list .spec-neo-list__item {
        grid-template-columns: 1fr;
        row-gap: 6px;
    }

    .spec-neo-list .spec-neo-list__right {
        justify-self: start;
        text-align: left;
    }

    .spec-neo__mail--card {
        margin: 8px 0 0;
        font-size: 14px;
    }

    .spec-neo__mail--card::before {
        margin-left: 16px;
        margin-right: 4px;
        width: 16px;
        height: 16px;
    }

    .spec-neo-tabs__nav {
        gap: 2px;
    }

    .spec-neo-tabs__btn {
        font-size: 14px;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .spec-neo-legend-wrapper {
        border-radius: 24px;
        gap: 12px;
    }

    .spec-neo-photo-inner {
        border-radius: 20px;
        min-height: 280px;
    }

    .spec-neo-about-title-wrapper {
        padding: 12px 10px;
        border-radius: 20px;
    }

    .spec-neo-tab_container {
        margin-top: 10px;
    }

    .spec-neo-list .spec-neo-list__item {
        padding: 4px 0;
    }

    .spec-neo-list .spec-neo-list__left,
    .spec-neo-list .spec-neo-list__right {
        font-size: 14px;
    }
}