.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    overflow: visible;
    background:
        radial-gradient(1200px 180px at 18% -120%, rgba(255, 215, 142, 0.24) 0%, rgba(255, 215, 142, 0) 72%),
        radial-gradient(980px 180px at 85% -130%, rgba(116, 177, 255, 0.2) 0%, rgba(116, 177, 255, 0) 68%),
        linear-gradient(180deg, rgba(4, 9, 18, 0.95) 0%, rgba(7, 13, 24, 0.9) 60%, rgba(7, 13, 24, 0.82) 100%);
    border-bottom: 1px solid rgba(217, 181, 109, 0.26);
    box-shadow:
        0 18px 34px rgba(0, 0, 0, 0.38),
        0 2px 0 rgba(255, 255, 255, 0.03) inset;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
}

.header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 181, 109, 0), rgba(217, 181, 109, 0.8), rgba(217, 181, 109, 0));
    opacity: 0.85;
    pointer-events: none;
}

.header::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(67, 104, 170, 0), rgba(67, 104, 170, 0.64), rgba(67, 104, 170, 0));
    pointer-events: none;
}

.header .navbar,
.header .nav-container {
    background: transparent;
}

.nav-container {
    position: relative;
    
    margin: 0 auto;
    min-height: 74px;
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
   
}

.nav-container::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 1px;
    height: 1px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.nav-container::after {
    content: "";
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, rgba(217, 181, 109, 0), rgba(217, 181, 109, 0.38), rgba(217, 181, 109, 0));
    pointer-events: none;
}

.nav-logo {
    min-width: 310px;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transform-style: preserve-3d;
}

.nav-brand img {
    width: 46px;
    height: 46px;
    
    transform: translateZ(8px);
}

.nav-brand-text {
    display: inline-flex;
    flex-direction: column;
    line-height: 1.05;
}

.nav-brand-text strong {
    font-family: "Montserrat", "Segoe UI", "Helvetica Neue", sans-serif;
    font-size: 32px;
    letter-spacing: 0.045em;
    font-weight: 700;
    background: linear-gradient(180deg, #fcfeff 0%, #dce6f8 52%, #f0cc88 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 20px rgba(217, 181, 109, 0.12);
}

.nav-brand-text span {
    color: #b8c5df;
    font-size: 11px;
    margin-top: 4px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.header .nav-menu {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 8px 0 auto;
}

.header .nav-item {
    margin-left: 0;
}

.header .nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(171, 188, 224, 0.16);
    text-decoration: none;
    color: #d5deef;
    font-family: "Manrope", "Segoe UI", "Helvetica Neue", sans-serif;
    font-weight: 600;
    letter-spacing: 0.012em;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
    box-shadow:
        0 10px 18px rgba(0, 0, 0, 0.22),
        0 1px 0 rgba(255, 255, 255, 0.08) inset;
    transition: transform 0.22s ease, color 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    overflow: hidden;
}

.header .nav-link::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(112deg, rgba(255, 255, 255, 0) 20%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0) 80%);
    transform: translateX(-120%);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.35s ease;
    pointer-events: none;
}

.header .nav-link:hover {
    color: #f6dfab;
    border-color: rgba(217, 181, 109, 0.42);
    background: linear-gradient(180deg, rgba(217, 181, 109, 0.18), rgba(217, 181, 109, 0.09));
    box-shadow:
        0 14px 24px rgba(0, 0, 0, 0.28),
        0 0 24px rgba(217, 181, 109, 0.17),
        0 1px 0 rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-1px);
}

.header .nav-link:hover::after {
    opacity: 0.95;
    transform: translateX(120%);
}

.header .nav-link.is-active {
    color: #fff1cf;
    border-color: rgba(217, 181, 109, 0.68);
    background: linear-gradient(135deg, rgba(217, 181, 109, 0.3), rgba(217, 181, 109, 0.16) 56%, rgba(255, 242, 210, 0.12));
    box-shadow:
        0 0 0 1px rgba(217, 181, 109, 0.28) inset,
        0 16px 28px rgba(0, 0, 0, 0.3),
        0 0 22px rgba(217, 181, 109, 0.2);
}

.header .nav-link.is-active:hover {
    color: #fff4da;
    transform: translateY(-1px) scale(1.01);
}

.header .lang-switch-wrap {
    padding-left: 6px;
    margin-left: 4px;
    flex: 0 0 auto;
}

.header .lang-current {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 9px 12px !important;
    border-radius: 12px;
    border: 1px solid rgba(217, 181, 109, 0.34) !important;
    background: linear-gradient(160deg, rgba(17, 27, 46, 0.86), rgba(10, 16, 29, 0.92)) !important;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.26),
        0 1px 0 rgba(255, 255, 255, 0.07) inset;
}

.header .lang-current .title {
    color: #e7edf9;
    font-weight: 600;
}

.header .lang-current .fa-chevron-down {
    color: #d4deef;
    opacity: 0.86;
}

.header .lang-menu {
    border: 1px solid rgba(217, 181, 109, 0.3);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(9, 16, 30, 0.96), rgba(8, 13, 24, 0.96));
    box-shadow: 0 18px 28px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.header .lang-option {
    color: #dde6f8;
}

.header .lang-option:hover {
    background: rgba(217, 181, 109, 0.14);
}

.header .bar {
    background: linear-gradient(180deg, #f3f6ff, #cdd8eb);
    box-shadow: 0 0 10px rgba(92, 150, 246, 0.28);
}

@media screen and (max-width: 1024px) {
    .nav-logo {
        min-width: 280px;
    }

    .header .nav-link {
        padding: 10px 14px;
        font-size: 15px;
    }
}

@media screen and (max-width: 768px) {
    .nav-container {
        min-height: 68px;
        border-radius: 14px;
        margin: 0 10px;
        max-width: none;
        padding: 0 12px;
    }

    .nav-logo {
        min-width: 0;
    }

    .nav-brand img {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .nav-brand-text strong {
        font-size: 23px;
    }

    .nav-brand-text span {
        font-size: 10px;
        letter-spacing: 0.06em;
    }

    .header .nav-menu {
        top: 76px;
        left: 10px;
        right: 10px;
        width: auto;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px) scale(0.985);
        transform-origin: top center;
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        padding: 10px;
        border-radius: 14px;
        border: 1px solid rgba(217, 181, 109, 0.24);
        background: linear-gradient(180deg, rgba(6, 12, 22, 0.98), rgba(8, 15, 28, 0.98));
        box-shadow: 0 18px 34px rgba(0, 0, 0, 0.42);
    }

    .header .nav-menu.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .header .nav-item {
        margin: 0;
    }

    .header .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
    }

    .header .lang-switch-wrap {
        margin-left: 2px;
        padding-left: 0;
    }

    .header .lang-current {
        margin: 0 0 0 8px !important;
        padding: 7px 10px !important;
    }

    .header .lang-current .title {
        display: none;
    }
}
