/* Стили для фильтров */

.space-categories-filter-box h3,
.space-roles-filter-box h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.space-categories-buttons,
.space-roles-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    /* Расстояние между кнопками */
    max-width: 100%;
    box-sizing: border-box;
}

.category-filter-btn,
.role-filter-btn {
    padding: 8px 16px;
    background: white;
    color: #2a6fd3;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
    cursor: pointer;
}


/* Hover эффект */

.category-filter-btn:hover,
.role-filter-btn:hover {
    background: #e7f1ff;
    border-color: #2a6fd3;
    color: #2a6fd3;
}


/* Focus для доступности */

.category-filter-btn:focus,
.role-filter-btn:focus {
    outline: 2px solid #2a6fd3;
    outline-offset: 2px;
}


/* Активное состояние */

.category-filter-btn.active,
.role-filter-btn.active {
    background: #2a6fd3;
    color: white;
    border-color: #2a6fd3;
    box-shadow: 0 2px 4px rgba(42, 111, 211, 0.2);
}


/* При нажатии */

.category-filter-btn:active,
.role-filter-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 2px rgba(42, 111, 211, 0.1);
}