@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 18px 36px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    transition: background 0.4s ease, border-color 0.4s ease;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.96);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

nav .wrap {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-nav {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.logo-nav img {
    height: 34px;
    width: auto;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    transition: opacity 0.3s ease, filter 0.3s ease;
    filter: brightness(1);
}

.logo-nav:hover img {
    opacity: 0.85;
    filter: brightness(1.15) drop-shadow(0 0 14px rgba(255, 255, 255, 0.3));
}

nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    position: relative;
    font-weight: 500;
    opacity: 0.88;
    transition: opacity 0.2s;
}

nav a:hover {
    opacity: 1;
}

nav ul a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.3s ease;
}

nav ul a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    touch-action: manipulation;
}

.mobile-menu span {
    width: 24px;
    height: 1.5px;
    background: #fff;
    transition: all 0.3s ease;
    display: block;
}

.mobile-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 968px) {
    nav { padding: 14px 24px; }

    nav ul {
        position: fixed;
        top: 61px;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        gap: 0;
        padding: 0;
        border-bottom: none;
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height 0.35s ease, visibility 0s linear 0.35s;
    }

    nav ul.active {
        max-height: 280px;
        visibility: visible;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        transition: max-height 0.35s ease, visibility 0s;
    }

    nav ul li { border-bottom: 1px solid rgba(255,255,255,0.05); }

    nav ul a {
        display: flex;
        align-items: center;
        padding: 16px 24px;
        font-size: 11px;
        letter-spacing: 2px;
        opacity: 0.88;
        min-height: 44px;
    }

    nav ul a::after { display: none; }

    .mobile-menu { display: flex; }

    .logo-nav img { height: 30px; }
}

@media (max-width: 640px) {
    nav ul { top: 57px; }
}

@media (max-width: 480px) {
    nav { padding: 12px 18px; }
    nav ul { top: 54px; }
    nav ul a { padding: 16px 18px; font-size: 10px; }
    .logo-nav img { height: 28px; }
}

@media (max-width: 380px) {
    nav { padding: 11px 14px; }
    nav ul { top: 51px; }
    .mobile-menu { padding: 8px; min-width: 40px; min-height: 40px; }
}
