.navbar {
    background-color: #333333; /* Тёмно-серый */
    border-bottom: 1px solid #4D4D4D;
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 5%;
    align-items: center;
}

.logo {
    color: #D4AF37; /* Золотой */
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 2px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 60px; /* Отступ между логотипом и текстом */
    margin-left: 30px;
}

.logo img {
    max-height: 86px; /* Увеличенный размер логотипа */
    width: auto;
    display: block;
}

/* Стили для текстовой части логотипа */
.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    line-height: 1.2;
}

.logo-line-top {
    font-size: 18px;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 700;
}

.logo-line-middle {
    font-size: 18px;
    color: #D4AF37;
    text-transform: uppercase;
    margin: 2px 0;
}

.logo-line-bottom {
    font-size: 18px;
    color: #D4AF37;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: #FDFBF7; /* Молочный */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: 0.3s;
}

.nav-links a[href="#"] {
    cursor: not-allowed;
    opacity: 0.6;
}

.nav-links a.non-clickable[href="#"] {
    opacity: 1;
}

.nav-links a:hover {
    color: #D4AF37; /* Золотой */
}

.nav-links li {
    position: relative;
}

/* Выпадающее меню */
.submenu {
    position: absolute;
    top: 110%;
    left: 0;
    min-width: 200px;
    visibility: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
    list-style: none;
    padding: 0;
    background-color: #333333;
    border: 1px solid #4D4D4D;
    border-top: 2px solid #D4AF37; /* Золотой */
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.nav-links > li:hover > .submenu {
    visibility: visible;
    opacity: 1;
    top: 100%;
}

.submenu li a {
    display: block;
    padding: 10px 20px;
    white-space: normal; /* Разрешаем перенос текста в подменю */
    line-height: 1.4;    /* Добавляем межстрочный интервал для читаемости */
}

.submenu li a:hover {
    background-color: #4D4D4D; /* Светло-серый ховер */
    color: #D4AF37;
}

/* Бургер-кнопка (золотая) */
.burger-btn {
    display: none; /* Скрыта на ПК */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #D4AF37;
    border-radius: 3px;
}

/* Позиционирование вложенных меню (третий уровень) */
.submenu .submenu {
    top: 0;
    left: 100%;
    margin-top: -2px; /* Выравнивание по верхней границе */
}

.submenu > li:hover > .submenu {
    visibility: visible;
    opacity: 1;
}

/* Индикатор вложенного меню (стрелочка) */
.submenu a.has-children::after {
    content: '\00BB'; /* Символ » */
    float: right;
    margin-left: 10px;
}

@media (min-width: 1024px) {
    .submenu a.has-children {
        position: relative;
        padding-right: 35px;
    }
    .submenu a.has-children::after {
        position: absolute;
        right: 20px;
        top: 46%;
        transform: translateY(-50%);
        float: none;
        margin-left: 0;
    }
    .submenu li.drop-up > .submenu {
        top: auto;
        bottom: 0;
        margin-top: 0;
        margin-bottom: -2px;
    }
}

/* Индикатор для ссылок главного меню с подменю (десктоп) */
.nav-links > li > a.has-children::after {
    content: ' \00BB';
}

/* Скрываем кнопку "Назад" на десктопе */
.mobile-back {
    display: none;
}

/* Стиль для неактивной ссылки в меню */
.nav-links a.non-clickable {
    cursor: default;
}
