.header {
    background-color: #222222;
    padding: 1rem 0;
    /*overflow: hidden;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
}

.header-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(90deg, #222222 0%, transparent 20%, transparent 80%, #222222 100%),
        var(--header-bg-image);
    z-index: 1;
}

.container.nav {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1920px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #FFAE00;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.logo:hover {
    color: #916505;
}

.logo-icon {
    width: 32px;
    height: 32px;
    transition: opacity 0.3s;
}

.logo:hover .logo-icon {
    opacity: 0.8;
}

.actions {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.5rem 1.5rem;
    border: 2px solid #FFAE00;
    background: transparent;
    color: #FFAE00;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.btn:hover {
    background: #FFAE00;
    color: #916505;
}

.btn--accent {
    background: #FFAE00;
    color: #222222;
}

.btn--accent:hover {
    background: #916505;
    border-color: #916505;
    color: #222222;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: none;
    color: #FFAE00;
    cursor: pointer;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s;
    font-family: inherit;
    font-size: 1rem;
}

.nav-btn:hover {
    color: #916505;
}

.nav-icon {
    width: 20px;
    height: 20px;
    transition: opacity 0.3s;
}

.nav-btn:hover .nav-icon {
    opacity: 0.8;
}

/*________*/

/* Бургер-кнопка — скрыта на десктопе */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.burger-btn span {
    width: 28px;
    height: 3px;
    background: #FFAE00;
    display: block;
    transition: 0.3s;
}

/* Анимация превращения в крест */
body.menu-open .burger-btn span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
body.menu-open .burger-btn span:nth-child(2) {
    opacity: 0;
}
body.menu-open .burger-btn span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Мобильное меню */
.mobile-menu {
    position: absolute;        /* вместо absolute */
    top: 64px;              /* высота хедера */
    left: 0;
    width: 100%;
    background: #222;
    padding: 1rem;
    display: none;
    flex-direction: column;
    gap: 1rem;
    z-index: 55;          /* выше хедера */
}

body.menu-open .mobile-menu {
    display: flex;
}

.mobile-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: none;
    border: none;
    color: #FFAE00;
    cursor: pointer;
    font-size: 1.2rem;
}

/* --- АДАПТИВ --- */

/* <1300px — прячем десктопное меню, показываем бургер */
@media (max-width: 1300px) {
    .desktop-nav {
        display: none;
    }
    .burger-btn {
        display: flex;
    }
}

/* <600px — скрываем текст, оставляем только иконки */
@media (max-width: 600px) {
    .nav-text {
        display: none;
    }
    .mobile-link {
        font-size: 1rem;
    }
    .mobile-link img {
        width: 24px;
        height: 24px;
    }
}
