.menu-button {
    position: relative;
    grid-column: 11 / 13;
    display: flex;
    width: 35px;
    height: 15px;
    align-self: center;
    justify-self: end;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-button::before {
    position: absolute;
    inset: -15px 0;
    background: transparent;
    content: "";
}

.menu-button span {
    display: block;
    width: 35px;
    height: 3px;
    background: var(--text-color);
}

.menu-layout {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    visibility: hidden;
    width: 100vw;
    min-width: 320px;
    height: 100dvh;
    flex-direction: column;
    padding: 14px 24px 28px;
    background: #ffffff;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, visibility 180ms;
}

.menu-layout.__open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu-header {
    display: flex;
    width: min(100%, calc(100vw - 48px));
    align-items: center;
    justify-content: space-between;
}

.mobile-menu-logo {
    width: 154px;
}

.menu-close-button {
    position: relative;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-close-button::before,
.menu-close-button::after {
    position: absolute;
    top: 16px;
    left: 0;
    width: 35px;
    height: 3px;
    background: var(--text-color);
    content: "";
}

.menu-close-button::before {
    transform: rotate(45deg);
}

.menu-close-button::after {
    transform: rotate(-45deg);
}

.mobile-menu-nav {
    display: flex;
    margin-top: 52px;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
}

.mobile-menu-link {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
}

.mobile-menu-contact {
    margin-top: 12px;
}

@media (max-width: 879px) {
    .menu-button.__mobile-only {
        display: flex !important;
    }
}

@media (min-width: 880px) {
    .menu-layout {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .menu-layout {
        transition: none;
    }
}
