.categories-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Заголовок */
.header_categories {
    padding: 60px 0 0;
}

.categories_column {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.categories_column_content {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.text_48 {
    font-size: 48px;
    font-weight: bold;
}

.text {
    font-size: 16px;
    line-height: 1.5;
    color: #ddd;
}

/* Кнопка добавить */
.categories_add_button {
    margin: 32px 0;
    display: flex;
    justify-content: flex-end;
}

.categories_action {
    font-weight: 500;
    font-size: 16px;
    padding: 10px 20px;
    background: #E36666;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.categories_action:hover {
    opacity: 0.8;
}

/* Контейнер карточек */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

/* Карточка категории */
.catalog-categories-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    gap: 32px;
    padding: 24px;
    background: rgba(30, 30, 30, 0.2);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Контент категории */
.categories-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.category-title {
    font-size: 32px;
    font-weight: 600;
    color: white;
}

.category-description {
    font-size: 16px;
    color: #ccc;

    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
}

/* Действия */
.categories_actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.categories_action_black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 14px;
    border: 1px solid #888;
    border-radius: 6px;
    background: transparent;
    color: white;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.categories_action_black:hover {
    background: white;
    color: #000;
}

.categories_action_black form,
.categories_action_black button {
    all: unset;
    cursor: pointer;
}

/* Изображение */
.categories_item_image {
    max-width: 350px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories_item_image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/* Адаптивность */
@media (max-width: 768px) {
    .catalog-categories-item {
        flex-direction: column;
        align-items: stretch;
    }

    .category-title {
        font-size: 24px;
    }

    .text_48 {
        font-size: 32px;
    }

    .categories_item_image {
        max-width: 100%;
    }
}
