header{
    box-shadow: 0px 8px 16px 0px #32354829;
    padding: 13px 0;
}

.header{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-info{
    display: flex;
    justify-content: space-between;
    max-width: 1490px;
    width: 100%;
}
.info,
#menu-heder,
.nav{
    display: flex;
    justify-content: space-between;
    align-items: center;    
    width: 100%;
}
.menu,
.menu ul{
    list-style: none;
}
.nav #menu-heder,
.nav #menu-heder > li > a{
    height: 100%;
}
.nav #menu-heder > li > a{
    display: flex;
    align-items: center;
}
.nav #menu-heder > li{
    position: relative;
    height: 46px;
}
.nav #menu-heder > li:hover .sub-menu,
.nav #menu-heder > li .sub-menu:hover{
      opacity: 1;
    visibility: visible;
    pointer-events:all;
    transition: all ease-in-out .5s;
}
.nav .sub-menu{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    position: absolute;
    z-index: 2;
    top: 40px;
    left: 0;
    background-color: var(--white);
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0px 0px 16px 0px #32354829;
    transition: all ease-in-out .5s;
}
.nav #menu-heder a{
    font-size: var(--font-18);
    line-height: var(--line-25);
    color: var(--dgray);
}
.nav .sub-menu a{
    padding: 12px 16px;
    word-wrap: normal;
    white-space: nowrap;
}
.nav .sub-menu a:hover{
   background-color: #1F91101A;
   color: var(--black);
}

.nav{
    max-width: 793px;
    min-width: 680px;
    margin: 0 10px;
}
.nav a.font-18{
    color: var(--dgray);
}


.info{
    max-width: 573px;
    gap: 30px;
}
.info-item{
    display: flex;
    align-items: center;
    gap: 5px;
}

.info-item .font-14{
    color: var(--dgray);
}

.info-item .font-20{
    font-weight: 600;
    color: var(--black);
}

.burger{
    border-radius: 92px;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    display: none;
}
.mobile-menu{
    display: none;
}

@media (min-width: 1024px) and (max-width: 1600px) {
    .info-item .font-20{
        font-size: var(--font16);
    }
    .info, .nav{
        flex-wrap: wrap;

    }
    .info{
        max-width: 270px;
        gap: 10px;
    }
}

@media(max-width: 1024px){
    header{
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 3;
        background-color: var(--white);
    }
    .header-info{
        display: none;
    }
    .burger{
        display: block;
    }

   .mobile-menu {
    position: fixed;
    z-index: 3;
    left: 100vw;
    top: 104px;
    width: 100%;
    height: calc(100vh - 104px); /* учитываем смещение */
    background-color: var(--gray);
    transition: all ease-in-out 0.5s;
    display: flex;
    flex-direction: column;
}

.mobile-menu.active {
    left: 0;
    overflow: hidden;
}

/* Обёртка для прокручиваемой части */
.menu-scroll-area {
    flex-grow: 1;
    overflow-y: auto;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Основной список */
.menu-scroll-area > ul {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.menu-scroll-area > ul > li {
    background-color: var(--white);
    border-radius: 16px;
}

.menu-scroll-area > ul > li > a {
    font-size: var(--font-18);
    line-height: var(--font-25);
    color: var(--black);
    padding: 16px;
    display: block;
    width: 100%;
}

/* Подменю */
.mobile-menu .sub-menu {
    opacity: 0;
    visibility: hidden;
    transition: all ease-in-out 0.5s;
    overflow: hidden;
    max-height: 0;
}

.mobile-menu .menu-item-has-children.active .sub-menu {
    opacity: 1;
    visibility: visible;
    max-height: 1000px;
}

/* Стили для ссылок в подменю */
.mobile-menu .sub-menu a {
    font-size: var(--font-14);
    line-height: var(--line-20);
    padding: 12px 16px;
    display: block;
    width: 100%;
}

}