header {
    padding: 20px 0;
    position: fixed;
    z-index: 999;
    width: 100%;
    background-color: #fff;
    top: 0;
}

header .container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.custom-logo-link img {
    height: 60px;
}

.burger {
    display: none;
}

.list__nav {
    display: flex;
    flex-direction: row;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.list__nav .menu-item a {
    border: none;
    background-color: transparent;
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
    color: #000;
    padding: 0;
    margin: 0;
    transition: all .3s ease 0s;
}

.list__nav .menu-item.current_page_item a,
.menu-item-has-children:has(.current-menu-item) a,
.sub-menu .menu-item.current-menu-item a {
    color: #00A0CB;
}

.menu-item-has-children ul.sub-menu {
    opacity: 0;
    width: 0;
    height: 0;
    list-style: none;
    transition: all .3s ease 0s;
    position: absolute;
    left: 0;
    top: 104px;
    z-index: -1;
}

.menu-item-has-children.open ul.sub-menu {
    box-sizing: border-box;
    position: absolute;
    top: 100px;
    left: 0;
    opacity: 1;
    height: auto;
    width: 100vw;
    background-color: #fff;
    box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.15);
    padding: 30px calc((100vw - 1160px) / 2) 50px;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    transition: all .3s ease 0s;
    z-index: 9;
}

.menu-item-has-children {
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.menu-item-has-children a {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 5px;
    align-items: center;
}

.menu-item-has-children>a::after {
    content: '';
    background-image: url(../image/arrow-down.svg);
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center;
    height: 15px;
    width: 15px;
    transform: rotate(180deg);
    transition: all .3s ease 0s;
}
.open>a::after {
        transform: rotate(0);
}

.sub-menu .menu-item {
    flex: 1 0 48%;
}

.sub-menu .menu-item a {
    color: #6D6D6D;
    font-size: 18px;
    font-weight: 400;
    line-height: 130%;
}

.list__nav .menu-item a:hover {
    color: #00A0CB;
    transition: all .3s ease 0s;
}




@media screen and (max-width: 992px) {
    header {
        padding: 15px 0;
        max-width: 100vw;
    }

    header .logo {
        max-height: 40px;
    }
    
    .menu-item a {
        font-size: 30px;
    }

    .menu-item-has-children::after {
        height: 25px;
        width: 25px;
    }

    .nav__header {
        position: absolute;
        top: -1000%;
        left: 0;
        width: 100%;
        background-color: #fff;
        padding: 80px 10px;
        border-radius: 20px;
        transition: .8s;
        max-width: 96%;
        left: 2%;
    }

    .nav__header .list__nav {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    }

    .menu-item-has-children:has(.open) .sub-menu {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 20px;
        padding: 20px;
        box-shadow: none;
        width: 100%;
        margin-top: 30px;
    }

    .menu-item-has-children.open ul.sub-menu {
        border-radius: 20px;
        padding: 30px 20px;
        flex-direction: column;
        width: 100%;
        box-shadow: none;
        min-height: calc(100% - 100px);
    }

    .sub-menu .item__select__link {
        text-align: center;
    }

    .sub-menu .item__select__link a {
        text-align: center;
    }

    .nav__header.open__menu {
        top: 10px;
        z-index: 9;
        transition: .8s;
    }

    .burger {
        display: flex;
        width: 30px;
        height: 20px;
        font-size: 0;
        color: transparent;
        background-color: #fff;
        border: none;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        z-index: 10;
    }

    .burger span {
        position: relative;
        width: 100%;
        height: 3.5px;
        background-color: #00A0CB;
        border-radius: 10px;
        transition: .4s;
    }

    .burger::before, 
    .burger::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 3.5px;
        background-color: #00A0CB;
        border-radius: 10px;
        left: 0;
        transition: .4s;
    } 

    .burger::before {
        top: 0;
    }

    .burger::after {
        bottom: 0;
    }

    .burger.open__menu {
        background-color: #00A0CB;
        width: 40px;
        height: 40px;
        border-radius: 50%;
    }

    .burger.open__menu::before,
    .burger.open__menu::after {
        background-color: #fff;
        transition: .4s;
        width: 50%;
        height: 2px;
        top: 19px;
        left: 10px;
    }

    .burger.open__menu::before {
        transform: rotate(45deg);
    }

    .burger.open__menu::after {
        transform: rotate(-45deg);
    }

    .burger.open__menu span {
        opacity: 0;
        transition: .4s;
    }
    
    .button.header-button {
        display: none;
    }
}

/* ЛК */
.login-popup{
    display: none;
}
.login-popup__reg{
    display: none;
}
.login-popup{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    z-index: 999999;
}
.login-popup__container{
    background: #fff;
    padding: 40px;
    border-radius:10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    max-width: 460px;
    display: flex;
    flex-direction: column;
    width: 100%;
}
.login-popup__close{
    position: absolute;
    top: 12px;
    right: 12px;
    width: 18px;
    height: 18px;
    object-fit: cover;
    cursor: pointer;
}
.login-popup__title{
    font-size: 30px;
    font-weight: 700;
    line-height: 120%;
    margin-bottom: 24px;
}
.login-popup__tabs{
    width: 100%;
    display: flex;
    margin-bottom: 24px;
    cursor: pointer;
}
.login-popup__tab{
    display: flex;
    justify-content: center;
    padding: 15px;
    font-size: 16px;
    color: rgba(140, 140, 140, 1);
    border: 1px solid rgba(207, 207, 207, 1);
    width: 50%;
}
.login-popup__tab:first-child{
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.login-popup__tab:nth-child(2){
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.login-popup__tab-active{
    background-color: rgba(0, 160, 203, 1);
    border: 1px solid rgba(0, 160, 203, 1);
    color: white;
}
.login-popup__auth-form, .login-popup__reg-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.login-popup__checkbox{
    display: flex;
    gap: 10px;
    align-items:flex-start;
}
.login-popup__input{
    padding: 13px 20px;
    border-radius:10px;
    border: 1px solid rgba(221, 221, 221, 1);
    font-size: 16px;
    font-weight: 400;
}
.login-popup__input:focus{
    border: 1px solid black;
    color: black;
}
.login-popup__error{
    background-color: rgba(239, 223, 223, 1);
    color: rgba(156, 74, 70, 1);
    font-size: 16px;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
}
.login-popup__checkbox{
    margin-bottom: 30px;
}
.login-popup__checkbox input[type="checkbox"]:checked{
    background-color:rgba(0, 160, 203, 1);
}
.login-popup__checkbox label{
    line-height: 100%;
}
.login-popup__submit {
    display: flex;
    justify-content: center;
    padding: 20px;
    border-radius: 10px;
    background:rgba(0, 160, 203, 1);
    color: white;
    margin-bottom: 10px;
    border: none;
}
.login-popup__forget{
    text-align: center;
    color: black;
}
.login-popup__forget:hover {
    text-decoration: underline;
    color: black;
}
.header__login, .header__logout{
    background-color: white;
    border: 1px solid rgba(0, 160, 203, 1);
    padding: 15px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    color: rgba(0, 160, 203, 1);
    transition: 0.3s all ease-in-out;
    gap: 5px;
}
.header__login:hover , .header__logout:hover {
    color: white;
    background-color: rgba(0, 160, 203, 1);
    transition: 0.3s all ease-in-out;
}
.header__login:hover svg path , .header__logout:hover svg path{
    transition: 0.3s all ease-in-out;
}
.header__login:hover svg path, .header__logout:hover svg path{
    stroke: white;
}
.header__logout:hover svg path, .header__logout:hover svg path{
    fill: white;
}
@media(max-width: 575px){
    .login-popup__tab{
        font-size: 14px;
    }
    .header__login{
        padding: 10px;
        font-size: 14px;
    }
}
