.demo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background-image: linear-gradient(to top, #dad4ec 0%, #dad4ec 1%, #f3e7e9 100%);
}

.demo .menu-icon_crm {
    transform: scale(1.5);
}

:root {
    --bar-bg: #212529;
}

.menu-icon_crm {
    position: relative;
    width: 40px;
    height: 50px;
    cursor: pointer;
}

.menu-icon_crm .menu-icon_crm__cheeckbox {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
    z-index: 2;
    -webkit-touch-callout: none;
    position: absolute;
    opacity: 0;
}

.menu-icon_crm div {
    margin: auto 0;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 25px;
    height: 12px;
}

.menu-icon_crm span {
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background-color: #e1251b;
    border-radius: 1px;
    transition: all 0.2s cubic-bezier(0.1, 0.82, 0.76, 0.965);
    top: 8px;
    bottom: auto;
}

.menu-icon_crm span:first-of-type {
    top: 0;
}

.menu-icon_crm span:last-of-type {
    top: 16px;
}

.menu-icon_crm.active span:first-of-type,
.menu-icon_crm .menu-icon_crm__cheeckbox:checked + div span:first-of-type {
    transform: rotate(45deg);
    top: 5px;
}

.menu-icon_crm.active span:last-of-type,
.menu-icon_crm .menu-icon_crm__cheeckbox:checked + div span:last-of-type {
    transform: rotate(-45deg);
    bottom: 5px;
}

.menu-icon_crm.active:hover span:first-of-type, .menu-icon_crm.active:hover span:last-of-type, .menu-icon_crm:hover .menu-icon_crm__cheeckbox:checked + div span:first-of-type, .menu-icon_crm:hover .menu-icon_crm__cheeckbox:checked + div span:last-of-type {
    width: 22px;
}

@media (min-width: 1024px) {
    .menu-icon_crm:hover span:first-of-type {
        width: 26px;
    }

    .menu-icon_crm:hover span:last-of-type {
        width: 12px;
    }
}
