.top-header {
    line-height: 35px;
    color: #848181;
    background: #fff;
    border-bottom: 1px solid #ECECEC;
    text-align: center;
    font-size: 15px;
}

.top-header__inner {
    box-sizing: border-box;
    max-width: 1140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: 1fr;
    grid-template-areas: "black_top_inner_ul languages auth_place";
}

.languages {
    margin: 0 auto;
    position: relative;
    width: 50px;
    line-height: 35px;
    height: 35px;
    grid-area: languages;
    cursor: pointer;
}

.languages .ugol {
    width: 4px;
    height: 4px;
    top: 14px;
    right: 5px;
}

.languages_ul {
    list-style: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35px;
    font-size: 12px;
    color: #848181;
    z-index: 2000;
    overflow: hidden;
}

.language__text {
    display: block;
}

.language__link {
    display: block;
    color: #000 !important;
}

.language__text:hover, .language__link:hover {
    color: #000;
    background: #F0F9FF;
}

.languages:hover .languages_ul {
    height: auto;
    color: #000;
    background: #FFF;
    box-shadow: 0 -1px 10px 0 rgba(0,0,0,0.24);
}

.languages:hover .languages.ugol {
    display: none;
}

.showblackmenu {
    display: none;
    grid-area: showblackmenu;
}

.showblackmenu .menu_icon {
    color: #3D73A9;
}

.top-header-menu {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    grid-area: black_top_inner_ul;
}

.top-header-menu__item {
    margin-right: 24px;
}

.top-header-menu__item:first-child .top-header-menu__link {
    padding: 5px 4px;
    border-radius: 3px;
    background: #ECECEC;
}

.top-header-menu__item:last-child:after {
    content: '';
    position: absolute;
    top: 7px;
    bottom: 7px;
    width: 1px;
    right: -13px;
    background: #ECECEC;
}

.top-header a {
    color: #848181;
    text-decoration: none;
    border: 0 none;
}

.top-header a:hover {
    color: var(--blue);
}

.auth_place {
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    grid-area: auth_place;
}

.auth_icon {
    display: inline-block;
    width: 20px;
    height: 20px;
    position: relative;
    margin-right: 10px;
    top: 6px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 16px;
}

.whitelogo {
    width: 74px;
    height: 10px;
    border: 0 none;
    display: none;
    grid-area: whitelogo;
}

.menu-icon {
    width: 18px;
    height: 14px;
    display: inline-block;
}

@media screen and (max-width: 1140px) {
    .top-header__inner {
        padding: 0 15px;
    }
}

@media screen and (max-width: 950px) {
    .top-header-menu {
        font-size: 13px;
    }
}

@media screen and (max-width: 780px) {
    .top-header__inner {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: 1fr;
        grid-template-areas: "showblackmenu languages auth_place";
    }

    .top-header-menu {
        display: block;
        float: none;
        position: absolute;
        top: 35px;
        left: -100%;
        padding: 0 18px 5px 18px;
        border: 1px solid #ECECEC;
        border-top: none;
        line-height: 1.4em;
        background: #fff;
        text-align: left;
        transition: all 200ms ease;
        z-index: 3000;
        font-size: 15px;
    }

    .top-header-menu.active {
        left: 0;
    }

    .top-header-menu__item {
        float: none;
        margin: 5px 0;
    }

    a.top-header-menu__link {
        color: var(--blue);
    }

    .top-header-menu__item:first-child .top-header-menu__link {
        background: none;
        padding: 0;
    }

    .top-header-menu__item:after {
        display: none;
    }

    .showblackmenu {
        display: block;
    }
}
