.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
}

.nav-links > a {
    color: #49605a;
    text-decoration: none;
    font-weight: 600;
}

.nav-links > a:hover,
.nav-links > a:focus-visible {
    color: var(--p);
}

.nav-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #fff;
    color: var(--p);
    cursor: pointer;
}

.nav-menu-toggle span {
    display: block;
    font-size: 28px;
    line-height: 1;
    transform: translateY(-1px);
}

@media (max-width: 850px) {
    .site-header .nav {
        position: relative;
        min-height: 70px;
        padding: 10px 20px;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .site-header .logo {
        width: auto;
        min-width: 0;
    }

    .site-header .logo img {
        max-width: min(245px, calc(100vw - 105px));
        height: auto;
    }

    .nav-menu-toggle {
        display: inline-flex;
        flex: 0 0 42px;
    }

    .nav-links {
        display: none;
        position: absolute;
        z-index: 30;
        top: calc(100% - 3px);
        left: 20px;
        right: 20px;
        padding: 10px;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 16px 38px rgba(18, 63, 55, .18);
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links > a {
        display: block;
        padding: 11px 13px;
        border-radius: 7px;
    }

    .nav-links > a:hover,
    .nav-links > a:focus-visible {
        background: #edf7f4;
    }

    .nav-links .nav-admin {
        margin-top: 5px;
        text-align: center;
    }
}
