/* ============================================================
   НАВИГАЦИЯ: ТЁМНАЯ ТЕМА (v3 — капсула с оранжевым контуром)
   ============================================================
   Подключать ТОЛЬКО на страницах с тёмным фоном.
   ============================================================ */

/* 1. Базовая навигация */
nav {
    position: relative;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 70px 6vw 30px;
    margin: 0;
}

nav > * {
    position: relative;
    z-index: 2;
}

/* ============================================================
   2. КАПСУЛА С ОРАНЖЕВЫМ КОНТУРОМ
   ============================================================ */
.nav-links {
    display: flex;
    gap: 28px;
    flex: 0 1 auto;

    /* Тёмная прозрачная капсула + размытие */
    background: rgba(10, 8, 6, 0.45);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    padding: 14px 32px;
    border-radius: 60px;

    /* Оранжевый контур */
    border: 1px solid rgba(255, 122, 34, 0.5);

    /* Мягкое свечение в тон контуру */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 122, 34, 0.08),
        0 0 20px rgba(255, 122, 34, 0.15);

    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-links:hover {
    border-color: rgba(255, 122, 34, 0.8);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 122, 34, 0.15),
        0 0 28px rgba(255, 122, 34, 0.3);
}

/* ============================================================
   3. ССЫЛКИ — белые, при наведении — фирменный оранжевый
   ============================================================ */
.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    transition: color 0.25s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--blue);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--blue);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================================
   4. ЛОГОТИП — тень для объёма
   ============================================================ */
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand .mark {
    width: 100px;
    height: 53px;
    display: grid;
    place-items: center;
    position: relative;
}

.brand .mark,
.brand .name {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8));
}

/* ============================================================
   5. ИКОНКИ — тень
   ============================================================ */
.nav-actions .icon-btn {
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}

/* ============================================================
   6. РАЗДЕЛИТЕЛЬ — светлый
   ============================================================ */
.nav-actions .sep {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   ФОЛБЭК: если браузер не поддерживает backdrop-filter
   ============================================================ */
@supports not (backdrop-filter: blur(14px)) {
    .nav-links {
        background: rgba(10, 8, 6, 0.75);
    }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1024px) {
    nav {
        padding: 30px 4vw 20px;
        justify-content: flex-end;
        gap: 8px;
    }

    nav > .brand {
        margin-right: auto;
    }

    .nav-actions {
        flex-wrap: nowrap;
        flex-shrink: 0;
        z-index: 20;
        margin-left: 0;
        position: relative;
        order: 2;
    }

    nav > .info-mobile-menu {
        order: 3;
        z-index: 20;
        position: relative;
    }

    .nav-links {
        gap: 18px;
        padding: 12px 18px;
    }

    .nav-links a {
        font-size: 13px;
    }
}