/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */

.staff-detail {
    font-family: "Open Sans", Arial, sans-serif;
}

.staff-detail__card {
    display: flex;
    justify-content: space-between;
    background: #f7f8fa;
    border: 1px solid #e3e6ea;
    border-radius: 6px;
    overflow: hidden;
}

/* ===== ЛЕВАЯ КОЛОНКА ===== */

.staff-detail__card-info {
    flex: 1;
    padding: 40px 50px;
}

.staff-detail__card-row--border-bottom {
    border-bottom: 1px solid #e3e6ea;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

/* ===== СТРОКА СВЕРХУ ===== */

.staff-detail__line--between {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.staff-detail__name-wrapper {
    max-width: 400px;
}

.staff-detail__label {
    font-size: 14px;
    color: #9aa3ad;
    margin-bottom: 6px;
}

.staff-detail__post {
    
    font-weight: 400;
    color: #2a2f36;
    line-height: 1.4;
}

/* ===== КНОПКА ===== */

.btn.btn-default {
    background: #2aa7df;
    color: #fff;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
	height:auto;
}

.btn.btn-default:hover {
    background: #1d94ca;
}

/* ===== СТАЖ ===== */

.staff-detail__properties-wrapper {
    margin-top: 20px;
}

.staff-detail__property-label {
    font-size: 14px;
    color: #9aa3ad;
}

.staff-detail__property-value {
    font-size: 16px;
    font-weight: 600;
    color: #2a2f36;
    margin-top: 4px;
}

/* ===== НИЖНИЙ БЛОК ===== */

.staff-detail__bottom-wrapper {
    padding-top: 20px;
}

.staff-detail__top-properties {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
}

.staff-detail__top-property-label {
    font-size: 14px;
    color: #9aa3ad;
    margin-bottom: 6px;
}

.staff-detail__top-property-value {
   
    font-weight: 600;
    color: #2a2f36;
}

.staff-detail__top-property--address {
    flex: 1;
}

.staff-detail__top-property__addresses {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.staff-detail__top-property__address-coord {
    margin-top: 6px;
    font-size: 14px;
    cursor: pointer;
}

.staff-detail__top-property__address-coord .text {
    border-bottom: 1px dotted #2aa7df;
    color: #2aa7df;
}

/* ===== ФОТО ===== */

.staff-detail__card-image {
    width: 360px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staff-detail__image-wrapper {
    width: 100%;
    padding: 30px;
}

.staff-detail__image {
    width: 100%;
    padding-top: 100%;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
}

.staff-detail__image-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 1024px) {
    .staff-detail__card {
        flex-direction: column;
    }

    .staff-detail__card-image {
        width: 100%;
    }

    .staff-detail__card-info {
        padding: 30px;
    }

    .staff-detail__line--between {
        flex-direction: column;
        gap: 20px;
    }

    .staff-detail__top-properties {
        flex-direction: column;
        gap: 20px;
    }
}

/* ===== ОБЩИЙ БЛОК ТАБОВ ===== */

.staff-epilog {
    margin-top: 50px;
}

/* убираем мусор bootstrap */
.staff-epilog .nav-tabs {
    border: none;
    display: flex;
    gap: 10px;
}

/* каждый li */
.staff-epilog .nav-tabs > li {
    margin: 0;
}

/* ссылка таба */
.staff-epilog .nav-tabs > li > a {
    display: block;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #2a2f36;
    background: #f1f3f6;
    border-radius: 6px 6px 0 0;
    border: 1px solid #e3e6ea;
    border-bottom: none;
    transition: 0.2s ease;
}

/* hover */
.staff-epilog .nav-tabs > li > a:hover {
    background: #e8edf3;
    text-decoration: none;
}

/* активный таб */
.staff-epilog .nav-tabs > li.active > a {
    background: #fff;
    color: #2aa7df;
    border: 1px solid #e3e6ea;
    border-bottom: 1px solid #fff;
    position: relative;
}

/* синяя полоска сверху */
.staff-epilog .nav-tabs > li.active > a::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 3px;
    background: #2aa7df;
    border-radius: 6px 6px 0 0;
}

/* контейнер контента */
.staff-epilog .tab-content {
    border: 1px solid #e3e6ea;
    border-top: none;
    background: #fff;
    padding: 40px;
}

/* скрытые табы */
.staff-epilog .tab-pane {
    display: none;
}

.staff-epilog .tab-pane.active {
    display: block;
}

.staff-epilog .ordered-block__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #2a2f36;
}

.staff-epilog ol {
    padding-left: 20px;
    margin-bottom: 20px;
}

.staff-epilog ol li {
    margin-bottom: 8px;
    font-size: 16px;
    color: #2a2f36;
}

.staff-epilog ul {
    padding-left: 20px;
}

.staff-epilog ul li {
    margin-bottom: 6px;
    font-size: 16px;
    color: #2a2f36;
}

.staff-detail__ex-property {
    margin-bottom: 40px;
}

.staff-detail__ex-property-value {
    font-size: 15px;
    line-height: 1.7;
    color: #555;
}

.staff-detail__ex-property-value b {
    color: #2a2f36;
}

@media (max-width: 768px) {

    .staff-epilog .nav-tabs {
        flex-wrap: wrap;
    }

    .staff-epilog .tab-content {
        padding: 25px;
    }

    .staff-epilog .nav-tabs > li > a {
        padding: 10px 16px;
        font-size: 13px;
    }

}