/* Основные стили для header */
#header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(1, 1, 1, 0.77);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px 0px rgb(177, 161, 35);
}

/* Стили для nav-bar (верхняя полоса с лого и бургером) */
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    padding: 0 20px;
    position: relative;
    z-index: 101;
}

/* Логотип слева */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    display: block;
    max-width: 220px;
    height: auto;
}

/* Бургер (скрыт на десктопе) */
.header-burger {
    display: none;
}

/* Навигационное меню - на десктопе находится в той же строке */
.nav-menu {
    position: static;
    width: auto;
    margin: 0;
    background: transparent;
    z-index: auto;
}

.nav-content {
    display: flex;
    justify-content: flex-end;
    padding: 0;
}

.nav-content ul {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    align-items: center;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0 15px;
    list-style: none;
}

.nav-content ul li a {
    font-size: 17px;
    font-weight: 700;
    color: rgb(177, 161, 35);
    position: relative;
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
    transition: all 0.35s ease;
    white-space: nowrap;
}

/* Анимация подчеркивания */
.nav-content ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: rgb(177, 161, 35);
    transition: width 0.3s ease;
}

.nav-content ul li a:hover::after {
    width: 100%;
}

/* Активные пункты меню */
.nav-content ul li.current-menu-item>a,
.nav-content ul li.current_page_item>a {
    color: #9cb71a;
}

/* Отступ для body, чтобы контент не прятался под фиксированным header */
body {
    padding-top: 70px;
}

/* Мобильная версия (до 860px) */
@media (max-width: 860px) {
    .nav-bar {
        height: 58px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #1f1f1f;
        box-shadow: 0 0 10px 3px rgb(208 188 27);
        z-index: 1001;
    }
    
    .header-logo img {
        max-width: 160px;
    }
    
    /* Показываем бургер */
    .header-burger {
        display: block;
        width: 30px;
        height: 20px;
        position: relative;
        cursor: pointer;
        z-index: 1002;
    }
    
    .header-burger::before,
    .header-burger::after,
    .header-burger span {
        content: '';
        position: absolute;
        background-color: #FFFFFF;
        width: 100%;
        height: 3px;
        left: 0;
        border-radius: 2px;
        transition: all 0.35s ease;
    }
    
    .header-burger::before {
        top: 0;
    }
    
    .header-burger span {
        top: 9px;
    }
    
    .header-burger::after {
        bottom: 0;
    }
    
    .header-burger.active::before {
        transform: rotate(45deg);
        top: 8px;
    }
    
    .header-burger.active span {
        transform: translateX(30%);
        opacity: 0;
    }
    
    .header-burger.active::after {
        transform: rotate(-45deg);
        bottom: 9px;
    }
    
    /* Мобильное меню - выезжает сверху */
    .nav-menu {
        position: fixed;
        top: 58px;
        left: 0;
        width: 100%;
        max-height: calc(100vh - 58px);
        background-color: #222222;
        transform: scaleY(0);
        transform-origin: top;
        opacity: 0;
        visibility: hidden;
        transition: transform 0.45s ease, opacity 0.35s ease, visibility 0s 0.45s;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: scaleY(1);
        opacity: 1;
        visibility: visible;
        transition: transform 0.45s ease, opacity 0.35s ease, visibility 0s 0s;
    }
    
    .nav-content {
        padding: 20px;
    }
    
    .nav-content ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    
    .nav-content ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-content ul li a {
        width: 100%;
        padding: 12px 0;
        display: block;
    }
    
    body {
        padding-top: 58px;
    }
}

/* Для очень широких экранов, если нужно ограничить ширину меню */
@media (min-width: 1200px) {
    .nav-content ul {
        max-width: 1200px;
        margin: 0 auto;
    }
}
.nav-bar {
    display: flex;
    align-items: center;
    justify-content: center; /* Меняем space-between на center */
    position: relative;
}

.header-burger {
    position: absolute;
    right: 20px; /* Фиксируем бургер справа */
}

.header-logo {
    margin: 0 auto; /* Центрируем лого */
}