.courses-header {
    text-align: center;
    margin-top: 100px;
    position: relative;
}

.courses-header::after {
    content: '';
    position: absolute;
    width: 1px;
    height: 66px;
    background: #D3D6D7;
    bottom: -85px;
    left: 49%;
}

.courses-header__title {
    font-size: 52px;
    font-weight: bold;
}

.courses-header__subtitle {
    padding-top: 20px;
}

.courses-header__loc, .courses-header__date {
    padding-top: 20px;
    color: #656C6F;
    font-weight: bold;
    font-size: 12px;
}

.courses-header__city, .courses-header__date-info {
    font-size: 24px;
    font-weight: bold;
    padding-top: 10px;
}

.courses-header__loc-more {
    padding-top: 10px;
}

.courses-header__expert {
    width: 395px;
    height: 100%;
    position: absolute;
    top: 40px;
    left: 0;
    
}

.courses-header__bg {
    width: 130px;
    height: 215px;
    background: #E20932;
    position: absolute;
}

.courses-header__img {
    position: absolute;
    left: -55px;
    z-index: 3;
    bottom: 0;
}

.courses-header__expert-info {
    width: 395px;
    height: 120px;
    background: url('./images/rectangle.png') no-repeat;
    background-size: cover;
    position: absolute;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.courses-header__expert-name {
    font-weight: bold;
    color: #fff;
    font-size: 24px;
    text-align: left;
    margin-left: 55px;
}

.courses-header__expert-post {
    color: #fff;
    font-size: 12px;
    padding-top: 5px;
    text-align: left;
    min-width: 138px;
    margin-left: 55px;
}

.courses-header__expert--right {
    left: auto;
    right: 0;
}

.courses-header__expert--right  .courses-header__bg {
    right: 0;
    height: 195px;
}

.courses-header__expert--right  .courses-header__img{
    right: -45px;
    left: auto;
}

.courses-header__expert--right .courses-header__expert-info {
    background: url('./images/rectangle-2.png') no-repeat;
    left: auto;
    background-size: contain;
    right: 25px;
}

.courses-header__expert--right .courses-header__expert-name, .courses-header__expert--right  .courses-header__expert-post {
    text-align: right;
    margin-right: 55px;
    margin-left: 0;
    min-width: 105px;
}

.courses-header__divider-item {
    width: 1px;
    height: 66px;
    background: #D3D6D7;
}


@media screen and (max-width: 992px) {
    .courses-header::after{
        content: none;
    }
    .courses-header__expert {
        position: relative;
        width: auto;
        max-width: 65%;
        margin: 0 auto;
        text-align: center;
        margin-bottom: -95px;
    }
    .courses-header__bg {
        display: none;
    }
    .courses-header__img {
        position: static;
        z-index: 3;
    }
    .courses-header__expert .courses-header__expert-info{
        position: relative;
        background: #e20932;
        width: 100%;
        left: 0;
        bottom: 140px;
        height: 140px;
    }
    
    .courses-header__expert--right{
        text-align: center;
    }
    .courses-header__expert-info .courses-header__expert-name{
        margin: 0;
        text-align: center;
    }
    .courses-header__expert-info .courses-header__expert-post{
        min-width: 100%;
        margin: 0;
        text-align: center;
        font-size: 16px;
    }

}


@media screen and (max-width: 768px){
    .courses-header__title{
        font-size: 38px;
    }
}

@media screen and (max-width: 479px){
    .courses-header__title{
        font-size: 28px;
    }
    .courses-header__expert{
        max-width: 100%;
    }
}
