header {
    margin: 0 auto;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    text-align: left;
    background-color: var(--dark-color);
}

.top-header {
    justify-content: space-between;
    padding: 30px 0 15px;
    transition: padding .5s ease;
}

.minimal .top-header {
    padding: 5px 0 5px;
    transition: padding .5s ease .1s;
}

.th-left {
    position: relative;
    width: 45%;
    align-items: center;
    justify-content: space-between;
}

.th-logo a {
    display: block;
    line-height: 1;
}

.th-change {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    left: 170px;
    transition: opacity .5s ease;
}

.minimal .th-change {
    visibility: visible;
    opacity: 1;
    cursor: pointer;
    transition: opacity .5s ease .2s;
}

.th-menu {
    width: 100%;
    box-sizing: border-box;
    padding-left: 5%;
    transition: all .5s ease;
}

.minimal .th-menu {
    visibility: hidden;
    opacity: 0;
}

.th-menu-set {
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

.th-menu-set li {
    line-height: 1;
    margin: 0 0 0 10px;
}

.th-menu-set li a {
    font-size: 12px;
    letter-spacing: var(--letter-spacing-min);
    font-weight: 400;
    color: var(--lightgrey-color);
}

.th-menu-set li a:hover {
    color: var(--red-color);
}

.th-right {
    align-items: center;
    justify-content: flex-end;
    width: 50%;
}

.th-adr,
.th-tel a,
.th-lang a {
    font-size: 12px;
    letter-spacing: var(--letter-spacing-min);
    font-weight: 400;
    color: var(--lightgrey-color);
}

.th-tel a:hover,
.th-lang a:hover {
    color: var(--red-color);
}

.th-adr,
.th-tel,
.th-lang {
    margin: 0 5% 0 0;
    line-height: 1.4;
}

.th-tel,
.th-lang {
    white-space: nowrap;
}

.th-lang a {
    color: var(--white-color);
    text-transform: capitalize;
}

.th-lang a.current {
    font-weight: 700;
    border-bottom: 1px solid var(--red-color);
}

.header-menu {
    max-width: calc(1140px + 2%);
    margin: 0 auto;
    opacity: 1;
    max-height: 1000px;
    transition: all .3s ease;
    padding-left: 2%;
}

.minimal .header-menu {
    overflow: hidden;
    max-height: 0px;
    opacity: 0;
}

.hm-set {
    justify-content: flex-start;
    visibility: hidden;
}

.hm-set li {
    margin: 0;
    position: initial;
    line-height: 0.2;
}
.hm-set li.first-level-item:first-child a{
    padding-left: 0px;
}
.hm-set .first-level-item a {
    display: block;
    padding: 20px 2.5vw;
    white-space: nowrap;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-min);
    /* transition: background-color .3s ease; */
}


.minimal .hm-set .first-level-item a {
    transition: none;
}

.hm-set .first-level-item:hover a,
.hm-set .first-level-item.active a {
    background: hsl(246.67deg 11.69% 15.1% / 56%);
    color: var(--white-color);
}

.hm-set ul {
    visibility: hidden;
    opacity: 0;
}

.hm-set .first-level-item.active .second-level,
.hm-set .first-level-item:hover .second-level {
    visibility: visible;
    opacity: 1;
}

.hm-set .second-level {
    position: absolute;
    box-sizing: border-box;
    top: 100%;
    padding: 30px 0;
    background: hsl(246.67deg 11.69% 15.1% / 56%);
    border: 1px solid white;
}

.hm-set .second-level:before {
    content: "";
    position: absolute;
    z-index: -1;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hm-set li.first-level-item:first-child .second-level-item a {
    display: block;
    padding: 15px 4.5vw 15px 2.5vw;
    text-align: left;
    text-transform: inherit;
    font-weight: 400;
    font-size: 18px;
}

.hm-set .second-level-item:hover a,
.hm-set .second-level-item.active a {
    color: var(--red-color);
}

.hm-set .second-level-item.active .third-level,
.hm-set .second-level-item:hover .third-level {
    visibility: visible;
    opacity: 1;
}

.hm-set .third-level {
    position: absolute;
    box-sizing: border-box;
    top: 0;
    left: calc(100% + 2px);
    padding: 30px 0;
    background: hsl(246.67deg 11.69% 15.1% / 56%);
    backdrop-filter: blur(6px);
    border: 1px solid white;
}

.hm-set .third-level a {
    padding: 15px 6.5vw 15px 2.5vw;
}

.hm-set .second-level-item:hover .third-level-item a,
.hm-set .second-level-item.active .third-level-item a {
    color: var(--white-color);
}

.hm-set .second-level-item:hover .third-level-item:hover a,
.hm-set .second-level-item.active .third-level-item.active a {
    color: var(--red-color);
}

.hm-set .third-level-item a {
    font-weight: 400;
}

@media screen and (max-width: 1150px) {
    .th-left {
        width: 47%;
    }
    .th-menu-set li {
        margin: 0 0 0 5px;
    }
    .th-menu {
        padding-left: 2%;
    }
    .th-right {
        width: 47%;
    }
    .th-adr,
    .th-tel,
    .th-lang {
        margin: 0 2% 0 0;
    }
    .th-adr {
        font-size: 11px;
    }
}

@media screen and (max-width: 1065px) {
    .th-right {
        width: 51%;
    }
}

.mobile-top {
    display: none;
}

.th-soc{
    margin-right: 5px;
    margin-bottom: -6px;
}
.soc_icon{
    margin-right: 8px;
    display: inline-block;
}
.soc_icon img{
    width: 30px;
}

.th-adr{
    max-width: 175px;
}

.mobile-dd-contactsPhone .soc_icon{
    margin-left: 12px;
    margin-right: 0px;
}

.mobile-dd-contactsPhone{
    display: flex;
}

.mobile-dd-contactsPhone .soc_icon img{
    width: 27px;
}
.hm-set li{
    position: relative;
}



.hm-set .menu-item-has-children.first-level-item a:after{
    content: url('/wp-content/themes/rein_car/img/down-arrow.svg');
    display: inline-block;
    width: 25px;
    top: 6px;
    transform: rotate(0deg);
    position: absolute;
    margin-left: 10px;
}

.hm-set .menu-item-has-children .second-level li  a:after{
    content: none;
}

.hm-set .menu-item-has-children .second-level .menu-item-has-children a:after{
    content: url('/wp-content/themes/rein_car/img/down-arrow.svg');
    position: absolute;
    transform: rotate(-90deg);
    right: 5px;
    top: 5px;
}


.hm-set .menu-item-has-children .second-level li.menu-item-has-children .third-level a:after{
    content: none;
}