/* Бургер меню */
.site-burger-menu {
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    height: 100%;
    width: 80px;
    border-right: 1px solid #ddd;
    z-index: 100;
    background-color: #fff;
}

#menu__toggle {
    opacity: 0;
}

.menu__btn {
    display: flex;
    align-items: center;
    position: fixed;
    width: 26px;
    height: 26px;
    cursor: pointer;
    z-index: 21;
}

.menu__btn:hover span::before {
    transition: transform .5s;
    transform: scaleX(0.7);
}

.menu__btn:hover span::after {
    transition: transform .5s;
    transform: scaleX(0.7);
}

.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: #4b4b4b;
    transition: .5s all;
}

.menu__btn > span::before {
    content: '';
    top: -8px;
}

.menu__btn > span::after {
    content: '';
    top: 8px;
}

.menu__box {
    display: block;
    position: fixed;
    visibility: hidden;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 80px 0;
    list-style: none;
    text-align: center;
    background-color: #ECEFF1;
    box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
    z-index: 20;
    opacity: .9;
    padding: 10%;
    overflow-y: auto;
}

.menu__item {
    display: flex;
    align-items: center;
    width: 480px;
    height: 40px;
    padding: 8px 8px;
    color: rgb(49, 47, 47);
    font-family: 'Roboto', sans-serif;
    font-size: 23px;
    font-weight: 550;
    text-decoration: none;
    color: black;
}

.menu__item:hover {
    color: #c9002b;
    transition: width .35s ease, margin .35s ease;
    will-change: width, margin;
}

.menu__item::before {
    transition: 2s all;
    width: 0;
    content: "";
    margin-right: 0;
    transition: width .35s ease, margin .35s ease;
    will-change: width, margin;
}

.menu__item:hover::before {
    content: "";
    height: 2px;
    width: 30px;
    margin-right: 10px;
    background-color: #c9002b;
    transition-timing-function: linear;
    transition: width .35s ease, margin .35s ease;
    will-change: width, margin;
}

#menu__toggle:checked ~ .menu__btn > span {
    transform: rotate(45deg);
}

#menu__toggle:checked ~ .menu__btn > span::before {
    top: 0;
    transform: rotate(0);
}

#menu__toggle:checked ~ .menu__btn > span::after {
    top: 0;
    transform: rotate(90deg);
    transition: .5s all;
}

#menu__toggle:checked ~ .menu__box {
    visibility: visible;
    transition: .5s all;
    left: 0;
}

#product,
#product1,
#product2,
#product3 {
    display: flex;
}

.submenu {
    position: fixed;
    left: 30%;
    top: 30%;
    opacity: 0;
    display: none;
    list-style-type: none;
}

.submenu1 {
    position: fixed;
    left: 60%;
    top: 30%;
    opacity: 0;
    display: none;
    list-style-type: none;
}

#product:hover .submenu {
    opacity: 1;
    height: 40px;
    transition: .55s opacity, .55s visibility;
    transition: .6s all;
    display: block;
}

#product1:hover .submenu1 {
    opacity: 1;
    height: 40px;
    transition: .55s opacity, .55s visibility;
    transition: .6s all;
    display: block;
}

/* Логотип */
.site-logo {
    background: url("/static/images/logo-navbar.png") no-repeat;
    transform: rotate(-90deg);
    width: 240px;
    height: 55px;
    background-size: contain;
    margin-bottom: auto;
    margin-top: 100px;
}

.link-logo {
    display: block;
    width: 240px;
    height: 55px;
}

/* Подзаголовки в меню */
.menu__box li[style*="color: #c9002b"] {
    font-size: 18px !important;
    text-align: left;
    color: #c9002b !important;
    padding-left: 8px;
    margin-top: 5px;
    margin-bottom: 10px;
}

/* Адаптив */
@media (max-width: 1024px) {
    body {
        margin-left: 0 !important;
        padding-top: 70px; /* Место для navbar */
    }

    .site-burger-menu {
        flex-direction: row;
        width: 100%;
        height: 70px;
        border-right: none;
        border-bottom: 1px solid #ddd;
        justify-content: space-between;
        padding: 0 20px;
    }

    .site-logo {
        transform: rotate(0deg);
        margin: 0;
        width: 180px;
        height: 50px;
    }

    .link-logo {
        width: 180px;
        height: 50px;
    }

    .menu__btn {
        position: static;
        margin: 0;
        width: 26px;
        height: 26px;
        flex-shrink: 0;
    }

    .menu__btn > span,
    .menu__btn > span::before,
    .menu__btn > span::after {
        width: 26px;
    }
}
