/* На сайте есть глобальный .specialists со светлым фоном (new_style.css),
   поэтому фон и переполнение сбрасываем явно */
.specialists {
    padding-top: 100px;
    background: transparent;
    height: auto;
    overflow: visible;
}

.specialists__description:nth-of-type(1) {
    margin-bottom: 20px;
}

.specialists__team {
    padding-top: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center;
}

.specialists__item {
    width: 49%;
    min-height: 305px;
    display: flex;
    justify-content: space-between;
    gap: 30px;
    outline: 1px solid var(--white);
    background-color: rgba(255, 255, 255, .2);
    border-radius: 30px;
    cursor: pointer;
    transition: outline-width .2s ease-in-out, box-shadow .3s ease-in-out;
}

.specialists__item:hover {
    outline-width: 3px;
    box-shadow: 0px 5px 15px 0px var(--white);
}

.specialists__left {
    width: 65%;
    padding: 20px;
}

.specialists__experience,
.specialists__specialization {
    font-size: 18px;
}

.specialists__specialization {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    line-clamp: 4;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
}

.specialists__right {
    width: 35%;
    background-position: right bottom;
    background-size: 100% 90%;
    background-repeat: no-repeat;
    border-top-right-radius: 30px;
    border-bottom-right-radius: 30px;
}

.modal__header {
    background-color: rgba(109, 61, 61, .7);
    padding: 30px 20px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.modal__title {
    margin: 0;
}

.modal__header .modal-overlay__text {
    color: var(--white);
}

.scrollbar {
    float: left;
    overflow-y: scroll;
}

.scrollbar::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.7);
    background-color: #ffffff;
}

.scrollbar::-webkit-scrollbar {
    width: 5px;
    background-color: #828282;
}

.scrollbar::-webkit-scrollbar-thumb {
    background-color: #828282;
    border: 1px solid #828282;
    border-radius: 20px;
}

.modal__block-title {
    color: var(--black);
    margin: 0;
    margin-bottom: 10px;
    padding-top: 20px;
}

.modal-overlay__text:nth-last-of-type(1) {
    padding-top: 20px;
}