/* Бургер-меню */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 100;
    margin: 10px 0;
}
.burger-menu span {
    display: block;
    width: 30px;
    height: 3px;
    background: white;
    margin: 5px 0;
    transition: 0.3s;
}
.closeTopMenu {
    display: none;
}
.topMenu ul li.mobileOnly {
    display: none;
}
@media (max-width: 768px) {
    
    .topMenu ul li.mobileOnly {
        display: block;
    }
    .closeTopMenu {
        font: normal 600 12px / 160% "Open Sans";
        color: #f2f2f2 !important;
        position: fixed;
        left: 25px;
        top: -43px;
        z-index: 1010;
        width: 30px;
        height: 45px;
        border: none;
        justify-content: center;
        align-items: center;
    }
    .open .closeTopMenu {
        display: flex;
    }
    .closeTopMenu:after, .closeTopMenu:before {
        content: "";
        position: absolute;
        left: 0;
        display: block;
        width: 100%;
        height: 3px;
        background-color: #fff;
        transition: transform ease .3s, box-shadow ease .3s;
    }
    
    .closeTopMenu:before {
        top: 11px;
        box-shadow: 0 0 0 #fff;
        transform: rotate(-45deg);
    }
    
    .closeTopMenu:after {
        top: 22px;
        transform: translate(4px, -22px) rotate(45deg);
        transform-origin: left;
    }
    
    .top-header {
        z-index: 1111;
    }
    .menu-container {
        color: white;
        overflow: visible;
        position: absolute;
        top: -59px;
        left: 20px;
        display: block;
        width: calc(100vw - 100px);
        margin-left: 0;
    }
    .topMenu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: row;
        justify-content: flex-end;
        align-items: center;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }
    .topMenu li {
        padding: 10px 20px;
    }
    .topMenu a {
        text-decoration: none;
        color: white;
        font-size: 16px;
    }
    .topMenu a:hover {
        text-decoration: underline;
    }
    .burger-menu {
        display: flex;
    }
    .topMenu {
        flex-direction: column;
        position: absolute;
        top: 50px;
        right: 0;
        background: #000;
        width: 100%;
        max-height: 0; /* Скрытое меню */
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        z-index: 1000;
    }
    .topMenu li {
        text-align: center;
        padding: 15px;
        border-bottom: 1px solid #444;
    }
    .topMenu li:last-child {
        border-bottom: none;
    }
    .index-header .top-header .topMenu.open {
        max-height: inherit;
        left: 0;
        right: 0;
        top: -60px;
        position: fixed;
        width: 100%;
    }
    .index-header .top-header ul {
        left: initial;
        margin-left: initial;
        display: flex;
        max-height: initial;
        top: 50px;
        position: relative;
        flex-direction: column;
        padding-bottom: 25px;
    }
    .search-form .search-btn {
        z-index: 1111;
    }
    .search-form.openned input[type=search] {
        z-index: 10000;
        right: 27px;
    }
    .index-header .top-header ul li {
        display: block;
        margin: 0;
        border: 0;
        padding: 10px 0;
        font-size: 11px;
        text-transform: uppercase;
    }
}
/* Анимация для активного бургера */
.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}
