.header {
    position: absolute;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    right: 0;
    z-index: 101;
    padding: 50px 0;
}
.header .row {
    max-width: inherit;
    display: flex;
    flex-flow: row wrap;
}
.header__humb, .header__email {
    display: none;
}
.header__nav {
    float: right;
    width: 100%;
    margin: auto 0;
    padding: 0 40px;
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}
.header__nav-lang {
    float: left;
    position: relative;
    user-select: none;
}
.header__nav-lang.open > a {
    border-radius: 12px 12px 0 0;
}
.header__nav-lang.open a::after {
    transform: scale(1, -1);
}
.header__nav-lang.open ul {
    visibility: visible;
    opacity: 1;
    margin: 0;
}
.header__nav-lang > a {
    display: flex;
    width: auto;
    height: 14px;
    min-width: 37px;
    line-height: 14px;
    font-weight: 500;
    border-radius: 12px;
    font-size: 13px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #2B422E;
    cursor: pointer;
}
.header__nav-lang > a::after {
    content: "";
    float: right;
    margin: auto 0 auto 7px;
    width: 8px;
    height: 10px;
    background: url(../img/arrow_lang.svg) center/contain no-repeat;
    transition: transform 0.5s;
}
.header__nav-lang ul {
    position: absolute;
    width: 100%;
    height: auto;
    max-height: 250px;
    border-radius: 0 0 12px 12px;
    left: 0;
    top: 22px;
    padding: 0 0 4px;
    visibility: hidden;
    opacity: 0;
    transition: margin 0.3s, visibility 0.3s, opacity 0.3s;
}
.header__nav-lang ul li {
    display: block;
}
.header__nav-lang ul li a {
    display: block;
    padding-top: 8px;
    font-size: 13px;
    color: #2B422E;
    cursor: pointer;
    font-weight: 500;
    line-height: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    transition: opacity 0.3s;
    border-top: 1px solid #2B422E;
}
.header__nav-lang ul li.active {
    display: none;
}
.header__nav-menu {
    float: right;
    margin: 0 0 auto 0;
}
.header__nav-menu > ul {
    margin: 0;
}
.header__nav-menu > ul > li {
    float: left;
    margin-right: 24px;
    position: relative;
}
.header__nav-menu > ul > li:last-child {
    margin: 0;
}
.header__nav-menu > ul > li.drop > a::after {
    content: "";
    float: right;
    margin: auto 0 auto 7px;
    width: 8px;
    height: 10px;
    background: url(../img/icon-arrow1.svg) center/contain no-repeat;
    transition: transform 0.5s;
}
.header__nav-menu > ul > li > a {
    display: flex;
    -webkit-transition: opacity 0.3s;
    -o-transition: opacity 0.3s;
    transition: opacity 0.3s;
    color: #2B422E;
    font-weight: 500;
    font-size: 13px;
    line-height: 110%;
    text-transform: uppercase;
    justify-content: center;
}
.header__nav-menu > ul > li ul:not(.third_menu) {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    border-radius: 5px;
    padding: 19px;
    margin-top: -5px;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transition: margin 0.5s, visibility 0.5s, opacity 0.5s;
}
.header__nav-menu > ul > li ul::before {
    content: "";
    position: absolute;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid #000;
    top: -5.5px;
    left: calc(50% - 2px);
}
.third_menu::before {
    display: none;
}
.header__nav-menu > ul > li ul::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 15px;
    bottom: 100%;
    left: 0;
    right: 0;
}
.header__nav-menu > ul > li ul li {
    display: block;
    margin-top: 5px;
}
.header__nav-menu > ul > li ul li:first-child {
    margin: 0;
}
.header__nav-menu > ul > li ul li a {
    display: flex;
    font-weight: 600;
    font-size: 14px;
    line-height: 130%;
    color: #fff;
    white-space: nowrap;
    transition: color 0.3s, margin 0.3s;
}
.header__nav-menu > ul > li ul li a::before {
    content: "";
    float: left;
    width: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
    margin: 9px 10px 0 0;
    transition: background 0.3s, margin 0.3s;
}

.header__logo {
    position: absolute;
    top: 44px;
    left: calc(50% - 65px);
    display: block;
    width: 127px;
    background: url(../img/logo.svg) center no-repeat;
    background-size: 127px;
    height: 30px;
    margin: auto;
}

.header__contact {
    float: right;
    margin: auto 0 auto auto;
}
.header__contact ul {
    float: left;
}
.header__contact ul li {
    float: left;
    margin-right: 25px;
}
.header__contact ul li:last-child {
    margin: 0;
}
.header__contact ul li a {
    display: block;
    font-size: 11px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #fff;
    transition: opacity 0.3s;
}

.header__nav-lang ul li.active.lang__mob {
    display: none;
}
.header__nav-lang ul .lang__mob {
    display: none;
}

@media screen and (min-width: 1024px) {
    .header__nav-lang ul li a:hover {
        opacity: 0.7;
    }
    .header__nav-menu > ul > li.drop:hover > a::after {
        transform: scale(1, -1);
    }
    .header__nav-menu > ul > li.drop:hover ul:not(.third_menu) {
        opacity: 1;
        visibility: visible;
        margin: 0;
        pointer-events: auto;
    }
    .header__nav-menu > ul > li > a:hover {
        opacity: 0.7;
    }
    .header__nav-menu > ul > li ul li a:hover {
        color: #F18A00;
        margin-right: -2px;
    }
    .header__nav-menu > ul > li ul li a:hover::before {
        background: #F18A00;
        margin-right: 12px;
    }
    .header__contact ul li a:hover {
        opacity: 0.7;
    }
}

@media screen and (max-width: 1023px) {
    .header {
        padding: 12px 0;
        position: fixed;
        transition: padding 0.5s, background 0.5s, box-shadow 0.5s;
    }
    .header.fixed:not(.open) {
        padding: 10px 0 6px;
        background: rgba(84, 111, 79, 1);
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    }
    .header.open .header__humb i {
        background: rgba(255, 255, 255, 0);
    }
    .header.open .header__humb i::before {
        background: #F7ECEB;
        transform: translateY(6px) rotate(45deg);
    }
    .header.open .header__humb i::after {
        background: #F7ECEB;
        transform: translateY(-6px) rotate(-45deg);
    }
    .header.open .header__humb i {
        color: rgba(247, 236, 235, 1);
    }
    .header.open .header__nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .header.open .header__logo.dif {
        opacity: 0;
        visibility: hidden;
    }
    .header.open .header__logo.dif.mobile {
        opacity: 1;
        visibility: visible;
        background: url(../img/logo_white.svg) center no-repeat;
    }
    .header.open .header__email {
        background: rgba(255, 255, 255, 0.2);
    }
    .mail__header {
        float: right;
        margin-left: auto;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: url(../img/mail.svg) center no-repeat;
        position: relative;
        display: flex;
        z-index: 5;
        transition: background 0.3s;
        background-size: 20px;
        top: -2px;
        right: -4px;
    }
    .header.open .mail__header {
        background: url(../img/mail-2.svg) center no-repeat;
    }
    .header.fixed .mail__header {
        background: url(../img/mail-2.svg) center no-repeat;
    }
    .header__humb {
        display: flex;
        float: left;
        width: 48px;
        height: 42px;
        position: relative;
        z-index: 5;
        transition: background 0.5s;
    }
    .header__humb i {
        float: left;
        position: relative;
        width: 20px;
        height: 2px;
        background: #2B422E;
        margin: auto;
        transition: background 0.5s, width 0.5s;
    }
    .header__humb i::before, .header__humb i::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 2px;
        background: #2B422E;
        left: 0;
        transform: translateY(0) rotate(0deg);
        transition: background 0.5s, transform 0.5s;
    }
    .header.fixed:not(.open) .header__humb i::before, .header.fixed:not(.open) .header__humb i::after {
        background: rgba(247, 236, 235, 1);
    }
    .header.fixed:not(.open) .header__humb i {
        background: rgba(247, 236, 235, 1);
    }
    .header__humb i::before {
        top: -6px;
    }
    .header__humb i::after {
        top: 6px;
    }
    .header__nav {
        position: absolute;
        width: 100vw;
        height: 100vh;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1;
        background: #546F4F;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
        flex-direction: column;
        justify-content: flex-start;
        padding: 75px 0;
        transition: visibility 0.5s, opacity 0.5s;
    }
    .header__nav-menu {
        order: 1;
        width: 100%;
        max-height: calc(100% - 100px);
        overflow-x: hidden;
        overflow-y: auto;
        margin: 0;
        padding: 40px 0 42px 0;
    }
    .header__nav-menu > ul {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-content: center;
        flex-wrap: nowrap;
        padding-left: 0;
    }
    .header__nav-menu > ul > li {
        width: 100%;
        margin: 0;
        padding: 24px 0;
        border-bottom: 1px solid rgba(247, 236, 235, 0.2);
    }
    .header__nav-menu > ul > li.drop > a::after {
        width: 16px;
        height: 19px;
        margin-left: 15px;
    }
    .header__nav-menu > ul > li.drop.active a::after {
        transform: scale(1, -1);
    }
    .header__nav-menu > ul > li ul:not(.third_menu) {
        position: relative;
        top: auto;
        left: auto;
        transform: translateX(0);
        padding: 10px 0 0;
        background: transparent;
        border-radius: 0;
        margin: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        display: none;
    }
    .header__nav-menu > ul > li ul:not(.third_menu) li a {
        font-size: 20px;
    }
    .header__nav-menu > ul > li ul:not(.third_menu) li a::before {
        margin-top: 13px;
    }
    .header__nav-lang {
        width: 100%;
        order: 2;
        margin-top: 0;
        transition: margin 0.5s;
    }
    .header__nav-lang.open {
        margin-bottom: 30px;
    }
    .header__nav-lang > a {
        display: none;
    }
    .header__nav-lang > a::after {
        width: 14px;
        height: 16px;
        margin-left: 10px;
    }
    .header__nav-lang ul {
        visibility: visible !important;
        opacity: 1 !important;
        background: none;
        display: flex;
        margin: auto;
        justify-content: center;
        flex-direction: row-reverse;
    }
    .header__nav-lang ul li.active {
        display: block;
    }
    .header__nav-lang ul li a {
        padding: 6px 16px;
        border: none;
        text-transform: none;
        color: #F7ECEB;
        font-size: 18px;
        font-weight: 400;
        line-height: 110%;
        opacity: 1;
    }
    .header__nav-lang ul li.active a {
        opacity: .6;
    }
    .header__nav-menu > ul > li > a {
        display: flex;
        transition: opacity 0.3s;
        color: #F7ECEB;
        font-size: 26px;
        font-weight: 500;
        line-height: 110%;
        justify-content: center;
        text-align: center;
        text-transform: none;
    }
    .header__nav-lang ul .lang__desc {
        display: none;
    }
    .header__nav-lang ul li.active.lang__desc {
        display: none;
    }
    .header__nav-lang ul li.active.lang__mob {
        display: block;
    }
    .header__nav-lang ul .lang__mob {
        display: block;
    }
    .header__logo {
        top: 0;
        margin-top: 27px;
        width: 128px;
        left: calc(50% - 64px);
        z-index: 5;
        transition: margin 0.5s;
    }
    .header__logo.mob {
        margin-top: 20px;
    }
    .header__logo.desc {
        margin-top: 20px;
    }
    .header.open .header__logo.desc {
        background: url(../img/logo_white.svg) center no-repeat;
        margin-top: 20px;
    }
    .header.fixed.open .header__logo.desc {
        margin-top: 20px;
    }
    .header.fixed .header__logo.desc {
        background: url(../img/logo_white.svg) center no-repeat;
        margin-top: 18px;
    }

    .header__logo.mob {
        margin-top: 20px;
    }
    .header.open .header__logo.mob {
        background: url(../img/logo_white.svg) center no-repeat;
        margin-top: 20px;
    }
    .header.fixed.open .header__logo.mob {
        margin-top: 20px;
    }
    .header.fixed .header__logo.mob {
        background: url(../img/logo_white.svg) center no-repeat;
        margin-top: 18px;
    }

    .header__contact {
        display: none;
    }
    .header__email {
        float: right;
        margin-left: auto;
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(0, 0, 0, 0.3);
        position: relative;
        display: flex;
        z-index: 5;
        transition: background 0.5s;
    }
    .header__email img {
        display: block;
        width: auto;
        height: auto;
        margin: auto;
    }
}