/* css/categories.css */
/* Стили для категорий */

/* ===== Заголовок категорий ===== */
.categories-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    /*background: var(--category-gradient);*/
    border-radius: var(--border-radius);
}

.categories-title h1 {
    font-size: 2.5rem;
    color: var(--text-white);
    margin-bottom: 0.5rem;
}

.categories-title p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ===== Иллюстрация категорий ===== */
.categories-illustration {
    text-align: center;
    margin-bottom: -3px;
}

.robo-image {
    max-width: 300px;
    height: auto;
}

/* ===== Содержимое категорий ===== */
.categories-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--standard-gap);
}

/* ===== Карточка категории ===== */
.category-card {
    background: var(--category-gradient);
    border-radius: var(--border-radius);
    padding: 0 var(--standard-padding);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.category-content {
    display: flex;
    align-items: center;
}

.category-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(35%) sepia(100%) saturate(2000%) hue-rotate(200deg) brightness(100%) contrast(100%);
}

/* Переопределение стилей card-arrow для страницы категорий */
.category-card .card-arrow {
    color: var(--text-white);
    font-size: 1.5rem;
    margin-right: 10px;
}

/* ===== Адаптивность ===== */
@media (max-width: 768px) {
    .categories-header {
        flex-direction: column;
        text-align: center;
    }
    
    .categories-title h1 {
        font-size: 2rem;
    }
    
    .robo-image {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .categories-title h1 {
        font-size: 24px;
    }

    .categories-title p {
        font-size: 14px;
    }
    
    /* Переопределение только необходимых свойств для карточек на мобильных устройствах */
    .category-card {
        padding: 0 15px;
    }

    .category-icon {
        width: 70px;
        height: 70px;
    }
    
    .category-info h3 {
        font-size: 19px;
        font-weight: 400;
        text-align: start;
    }
}

/* ===== Навигация категорий ===== */
.back-to-categories {
    margin-top: 20px;
}

.category-header img {
    width: 65px;
    height: 65px;
}

.category-header h1 {
    font-size: 20px;
    margin-top: 0px;
    font-weight: 400;
}