/* Навигационное меню по категориям. Подключается в templates_ru/main.tpl.
   На десктопе (≥769px) — горизонтальный ряд тёмных pill-ссылок.
   На мобильных (≤768px) — кнопка-гамбургер, при клике раскрывается вертикальное меню. */

.site-menu {
    width: 100%;
    margin: 8px 0;
    padding: 0 10px;
    box-sizing: border-box;
    text-align: center;
}

.menu-toggle {
    display: none;
    background: #2a2a2a;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s;
    text-align: center;
}

.menu-toggle:hover {
    background: #1a1a1a;
}

.menu-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1px;
    justify-content: center;
}

.menu-items li {
    margin: 0;
    padding: 0;
}

.menu-items a {
    display: inline-block;
    background: #2a2a2a;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 0;
    font-size: 14px;
    transition: background 0.2s;
}

.menu-items a:hover {
    background: #EBBE5E;
    color: #2a2a2a;
}

/* Подсветка активной категории — пользователь сейчас на её странице. */
.menu-items li.active a {
    background: #EBBE5E;
    color: #2a2a2a;
    font-weight: 600;
}

@media (max-width: 768px) {
    .site-menu {
        margin: 4px 0;
    }
    .menu-toggle {
        display: block;
        width: 100%;
        height: 44px;
        padding: 0 18px;
        box-sizing: border-box;
    }
    .menu-items {
        display: none;
        flex-direction: column;
        align-items: stretch;
        margin-top: 8px;
        width: 100%;
    }
    .menu-items.open {
        display: flex;
    }
    .menu-items a {
        display: block;
        text-align: center;
        padding: 12px 16px;
        font-size: 15px;
    }
}
