.menuA {
    display: none;
}

.head {
	background: aliceblue;
	display: flex;
	align-items: center;
	justify-content: space-around;
	height: 54px;
	z-index: 100;
	position: fixed;
	width: 100%;
}

.navigation {
	display: flex;
	gap: 50px;
	margin-right: 50px;
}

.navigation a {
    text-decoration: none;
    color: #000;
    font-size: 20px;
    font-family: Arial;
}

@media (max-width: 960px) {
    .navigation {
        position: fixed;
        top: 54px;
        background: aliceblue;
        left: 0;
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
        height: 0;
        transition: 0.5s;
        overflow-y: hidden;
    }
    
    .navigation a:nth-child(1) {
        margin-top: 50px;
    }
    
    .menuB {
        width: 45px;
        height: 30px;
        position: relative;
        margin-right: 25px;
    }
    
    .menuB div {
        width: 100%;
        height: 5px;
        border-radius: 5px;
        background: #333;
        position: absolute;
        transform: translateY(-50%);
        transition: 0.3s;
        transform: scale(1);
    }
    
    .menuB div:nth-child(1) {
        top: 0;
    }
    
    .menuB div:nth-child(2) {
        top: 50%;
    }
    
    .menuB div:nth-child(3) {
        top: 100%;
    }
    
    .menuA:checked ~ .head .navigation {
        height: 100vh;
    }
    
    .menuA:checked ~ .head .menuB div:nth-child(1) {
        transform: rotate(45deg);
        top: 50%;
    }
    
    .menuA:checked ~ .head .menuB div:nth-child(3) {
        transform: rotate(-45deg);
        top: 50%;
    }
    
    .menuA:checked ~ .head .menuB div:nth-child(2) {
        transform: scale(0);
    }
}