.nav {
    position: relative;
}

.mobile-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 9px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}

@media (max-width: 600px) {
    .mobile-menu-toggle {
        display: flex;
        flex: none;
    }

    .nav-links {
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        display: flex;
        max-height: 0;
        padding: 0 12px;
        overflow: hidden;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        color: #dbe3f0;
        background: #111827;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 16px 28px rgba(0, 0, 0, .24);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: max-height .25s ease, padding .25s ease, opacity .2s ease, transform .2s ease, visibility .2s;
    }

    .nav-links.is-open {
        max-height: 420px;
        padding-top: 8px;
        padding-bottom: 10px;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-links a {
        display: block;
        padding: 12px 10px;
        border-bottom: 1px solid rgba(255, 255, 255, .08);
    }

    .nav-links a:last-child {
        border-bottom: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .mobile-menu-toggle.is-open span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.is-open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}
