.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1338;
}

.burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: currentColor;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
}

/* Анимация: бургер → крестик */
.burger.active span:first-child {
    transform: translateY(9px) rotate(45deg);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Мобильные стили */
@media (max-width: 1280px) {
    .burger {
        display: flex;
    }

    header {
        flex-direction: column;
        align-items: stretch;
        padding: 1em;
        padding-top: 1.8em;
    }

    .right-bar {
        width: 100%;
        max-height: 0;
        opacity: 0;
        visibility: hidden;
        overflow: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease, max-height 0.3s ease;
        margin-top: 1em;
    }

    .right-bar.active {
        max-height: 500px;
        opacity: 1;
        visibility: visible;
    }
}