/*начало меню с бургером*/
.hamburger-menu {

}

/* скрываем чекбокс */
#menu__toggle {
    display: none;
}

/* стилизуем кнопку */
.menu__btn {
    display: flex; /* используем flex для центрирования содержимого */
    -ms-flex-align: center ;
    align-items: center ;
    position: absolute;
    right: 15px;
	top: 15px;
    width: 44px;
    height: 40px;
    cursor: pointer;
    z-index: 101;
}
/*это хак для яблока*/
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .menu__btn {
            top: 30px;
        }
    }
}


/* добавляем "гамбургер" */
.menu__btn > span,
.menu__btn > span::before,
.menu__btn > span::after {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: #003762;
}

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

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

/* контейнер меню */
.menu__box {
    display: block;
    position: absolute;
    visibility: hidden;
    top: 0;
    left: -1100%;
    width: 1200%;
    list-style: none;
    text-align: left;
    background-color: #ffffff;
    padding-top: 50px;
    padding-bottom: 50px;
    z-index: 100;
}

/* элементы меню */
.menu__item {
    display: block;
    padding: 12px 24px;
    color: #333;
    font-size: 20px;
    font-weight: 400;
    text-decoration: none;
}

.menu__item:hover {
    color: #97bf0d;
}

.menu__box li:last-child{
    padding-bottom: 50px;
    border-bottom: 1px solid #b9bbbc;
}

#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);
}

#menu__toggle:checked ~ .menu__box {
    visibility: visible;
    left: -1100%;
}

@media all and (max-width: 767px) {
    .menu__mobile {
        background-color: #97bf0d;
        font-size: 0.8rem;
        min-height: 50px;
        color: #ffffff;
    }

    .menu__mobile_text {
        display: flex;
        align-items: center;
        font-weight: 600;
    }

    .menu__mobile_text_open{
        display: flex;
        align-items: center;
        min-height: 50px;
        width: 83%;
        font-weight: 600;
    }

    .menu__btn {
        top: 13px;
        right: 8px;
        width: 28px;
        height: 20px;
    }

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

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

    .menu__btn > span,
    .menu__btn > span::before,
    .menu__btn > span::after {
        background-color: #ffffff;
    }

    .menu__item {
        color: #ffffff;
        width: 100%;
        padding: 0 0 15px 0;
        position: relative;
        font-size: 1.5rem;
    }

    .menu__item:hover {
        color: #003762;
    }

    .menu__item:after{
        font-family: FontAwesome;
        content: "\f105";
        font-weight: 400;
        font-size: 2rem;
        position: absolute;
        right: 8px;

    }

    #menu__toggle:checked ~ .menu__btn > span:before,
    #menu__toggle:checked ~ .menu__btn > span:after {
        background-color: #ffffff;
    }

    #menu__toggle:checked ~ .menu__box {
        left: -500%;
        padding: 0 15px 0 15px;
        height: 110vh;
    }

    .menu__box {
        width: 600%;
        left: -500%;
        background-color: #97bf0d;
        display: flex;
        flex-direction: column;
    }

    .menu__box li{
        display: flex;
    }
}
/*это хак для яблока*/
@media all and (max-width: 767px){
    @media not all and (min-resolution: .001dpcm) {
        @supports (-webkit-appearance:none) {
            .menu__btn {
                top: 24px;
            }
        }
    }
}


/*конец меню с бургером*/
