.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px 0;
    background: var(--primary-color);
    backdrop-filter: blur(10px);
    z-index: 100;
    transition: all 0.3s ease;
}

.header__container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__logo {
    width: 39px;
    height: 50px;
    filter: invert(1);
}

.header__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav__list {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav__link {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    font-family: 'Neue Machina', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.nav__link:hover {
    color: var(--mint);
}

.nav__link.active {
    color: var(--mint);
}

.header__burger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 99;
}

.burger__line {
    width: 20px;
    height: 2px;
    background-color: var(--white);
    transition: all 0.3s ease;
}

/* Мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(138, 43, 226, 0.98);
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    z-index: 98;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu .nav__list {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.mobile-menu .nav__link {
    font-size: 1.2rem;
    color: var(--white);
    font-family: 'Neue Machina', sans-serif;
}

.mobile-menu .nav__link:hover {
    color: var(--mint);
}

/* Анимация бургер-меню */
.header__burger.active .burger__line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header__burger.active .burger__line:nth-child(2) {
    opacity: 0;
}

.header__burger.active .burger__line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Стили для прокрученной шапки */
.header.scrolled {
    background: rgba(75, 42, 151, 0.98);
    box-shadow: 0 2px 20px rgba(75, 42, 151, 0.2);
}

.header__button {
    padding: 8px 16px !important;
    font-size: 0.9rem;
    min-width: auto;
    background: var(--white) !important;
    color: var(--primary-color) !important;
    border: none;
    box-shadow: 4px 4px 0 var(--mint) !important;
}

.header__button span {
    font-family: 'Neue Machina', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.header__button:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--mint) !important;
}

.mobile-menu .header__button {
    margin-top: 20px;
    width: 100%;
    max-width: 200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .header__nav {
        display: none;
    }
    
    .header__container {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 15px;
        align-items: center;
    }
    
    .header__logo {
        width: 31px;
        height: 40px;
    }
    
    .header__burger {
        display: flex;
        margin-left: 10px;
    }
    
    .burger__line {
        width: 20px;
        height: 2px;
    }
    
    .header__button {
        display: block;
        padding: 6px 12px !important;
        font-size: 0.8rem;
        min-width: auto;
        white-space: nowrap;
    }
    
    .header__button span {
        font-size: 0.8rem;
    }
    
    .mobile-menu {
        display: block;
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(75, 42, 151, 0.98);
        padding: 80px 20px 20px;
        transition: right 0.3s ease;
        z-index: 98;
    }
    
    .mobile-menu.active {
        right: 0;
    }
    
    .mobile-menu .nav__list {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .mobile-menu .nav__link {
        font-size: 1.2rem;
        color: var(--white);
    }
    
    .mobile-menu .header__button {
        display: none;
    }
} 