/* Общая шапка и мобильное меню — подключается на всех страницах */

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    position: relative;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(10, 15, 20, 0.12);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    z-index: 1002;
}

.nav-toggle-bars {
    display: block;
    width: 20px;
    height: 2px;
    background: #0a0f14;
    position: relative;
    transition: background 0.2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: #0a0f14;
    transition: transform 0.25s, top 0.25s;
}

.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

body.nav-open .nav-toggle-bars {
    background: transparent;
}

body.nav-open .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 20, 0.45);
    z-index: 999;
    border: 0;
    padding: 0;
    cursor: pointer;
}

body.nav-open .nav-backdrop {
    display: block;
}

body.nav-open header {
    z-index: 1002;
}

.site-footer .footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.site-footer .footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.site-footer .footer-social a:hover {
    background: rgba(194, 38, 96, 0.2);
    border-color: #c22660;
    color: #fff;
}

@media (max-width: 992px) {
    .nav-toggle {
        display: inline-flex;
    }

    header .nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        margin: 0;
        padding: 88px 24px 32px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: #fff;
        box-shadow: -12px 0 40px rgba(10, 15, 20, 0.18);
        z-index: 1003;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    body.nav-open header .nav-links {
        display: flex !important;
    }

    header .nav-links a {
        padding: 14px 12px;
        font-size: 1.05rem;
        border-radius: 12px;
    }

    header .nav-links a:hover,
    header .nav-links a:focus-visible {
        background: rgba(194, 38, 96, 0.08);
    }

    header .nav-links a::after {
        display: none;
    }

    header .nav-links a .btn,
    header .nav-links > a:last-child {
        margin-top: 12px;
        width: 100%;
    }

    header .nav-links a .btn,
    header .nav-links .btn {
        width: 100%;
        justify-content: center;
    }

    body.nav-open {
        overflow: hidden;
    }
}
