/*
 * ============================================================
 *  НАВБАР / HEADER
 * ============================================================
 */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
    z-index: 1000;
    flex-shrink: 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-spacer {
    display: none !important;
    height: 0 !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 1rem;
}

.nav-logo h2 {
    color: white;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 0.9 !important;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    gap: 1rem;
    flex: 1;
    justify-content: center;
}

.nav-btn {
    background-color: #390001;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.nav-btn:hover {
    background-color: #5a2d2f;
}

.nav-btn.active {
    background-color: rgba(41, 41, 41, 0);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}

.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease, transform 0.15s ease;
    overflow: hidden;
}

.nav-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    display: block;
}

.nav-icon:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: scale(1.05);
}

.nav-cta {
    background-color: #590000;
    color: white;
    border: none;
    padding: 0.5rem 1.1rem;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: background-color 0.25s ease, transform 0.15s ease;
}

.nav-cta:hover {
    background-color: #7a0000;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: rgba(0, 0, 0, 0.9);
        padding-top: 0.5rem !important;
        padding-bottom: 0.5rem !important;
        box-sizing: border-box !important;
    }

    .nav-container {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0 12px;
        width: 100%;
        gap: 0.5rem;
    }

    .nav-logo {
        display: block !important;
        flex-shrink: 0;
    }

    /* тот же зазор, что на ПК (line-height: 0.9), только размер */
    .nav-logo h2 {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.2rem !important;
        line-height: 0.9 !important;
    }

    .nav-menu {
        display: none !important;
    }

    .nav-actions {
        gap: 0.4rem;
    }

    .nav-icon {
        width: 36px;
        height: 36px;
    }

    .nav-icon img {
        width: 21px;
        height: 21px;
    }

    .nav-cta {
        padding: 0.5rem 0.9rem;
        font-size: 0.78rem;
        border-radius: 20px;
    }
}

.navbar {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.nav-logo, .nav-logo * {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}
