/* ====== Сайдбар ====== */
.kb-sidebar {
    width: 260px;
    background: #f0f2f5;
    padding: 20px;
    position: fixed;
    left: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    transform: translateX(-100%); /* скрыт */
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

/* Когда сайдбар открыт */
.kb-sidebar.open {
    transform: translateX(0);
}

/* Контейнер заголовка и кнопки закрытия */
.kb-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
}

/* Контейнер для списка */
.kb-sidebar-content {
    flex-grow: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-height: calc(100vh - 60px);
}

/* Убираем скролл в Chrome и Safari */
.kb-sidebar-content::-webkit-scrollbar {
    display: none;
}

/* Навигационный список */
.kb-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Ссылки внутри сайдбара */
.kb-sidebar a {
    text-decoration: none;
    color: #3a3a3a;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 12px;
    display: block;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

.kb-sidebar a:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Мобильная адаптивность */
@media (max-width: 768px) {
    .kb-sidebar {
        width: 220px;
    }
}