
.header {
    display: flex;              /* включаем flex-контейнер */
    justify-content: space-between; /* раздвигаем: левый к краю, правый к краю */
    align-items: center;        /* выравниваем по вертикали */
    width: 100%;
}

/* Скрытый чекбокс для переключения меню */
#toggle {
    display: none;
}

#contacts{
    display: none;
}

/* Кнопка-бургер */
.burger {
    width: 70px;
    height: 70px;
    position: relative;
    cursor: pointer;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 50%;
    box-shadow: 2px 3px 20px rgba(0,0,0,2);
    z-index: 2;
}

@media screen and (max-width: 480px) {
    .burger {
        width: 50px;
        height: 50px;
    }

    .menu-round{
        margin-top: 20px;
    }
}

/* Полоски гамбургера */
.burger span {
    position: absolute;
    height: 3px;
    width: 80%;
    left: 10%;
    transition: 0.3s;
}

/* Позиции полосок */
.burger span:nth-child(1) {
    top: 25px;
}
.burger span:nth-child(2) {
    top: 35px;
}
.burger span:nth-child(3) {
    top: 45px;
}

@media screen and (max-width: 480px) {
    /* Позиции полосок */
    .burger span:nth-child(1) {
        top: 17px;
    }
    .burger span:nth-child(2) {
        top: 25px;
    }
    .burger span:nth-child(3) {
        top: 33px;
    }
}

/* Анимация крестика при открытом меню */
#toggle:checked + .burger span:nth-child(1) {
    transform: rotate(45deg);
    top: 35px;
}

#toggle:checked + .burger span:nth-child(2) {
    opacity: 0;
}

#toggle:checked + .burger span:nth-child(3) {
    transform: rotate(-45deg);
    top: 35px;
}

@media screen and (max-width: 480px) {
    #toggle:checked + .burger span:nth-child(1) {
        top: 25px;
    }

    #toggle:checked + .burger span:nth-child(3) {
        top: 25px;
    }
}

/* Меню */
.menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px;
    left: 0;
    width: 200px;
}

/* Ссылки меню */
.menu a {
    padding: 10px;
    text-decoration: none;
}

/* Показ меню при включенном чекбоксе */
#toggle:checked ~ .menu {
    display: flex;
}