/* Сброс стандартных отступов */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
.col-logo{
	text-align: center;
}

/* Основные стили секции */
.categories-section {
    padding: 60px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

/* Заголовки секции */
.categories-section h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.categories-section .text-center {
    text-align: center;
    font-size: 16px;
    color: #6c757d;
    margin-bottom: 40px !important;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Сетка категорий */
.categories-section .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -12px;
}

.categories-section [class*="col-"] {
    padding: 0 12px;
    margin-bottom: 24px;
    width: 25%; /* 4 колонки на десктопе */
}

/* Карточка категории */
.categories-section .category-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px 20px;
    height: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.categories-section .category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Иконка */
.categories-section .category-icon {
    width: 100px;
    height: 100px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.categories-section .category-icon img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Заголовок карточки */
.categories-section .category-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
    line-height: 1.3;
}

/* Описание */
.categories-section .category-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 0;
    line-height: 1.5;
}

/* Ссылка */
.categories-section .category-link {
    text-decoration: none;
    display: block;
    height: 100%;
}

.categories-section .category-link:hover {
    text-decoration: none;
}

/* Кнопка "Смотреть весь каталог" (закомментирована, но стили готовы) */
.categories-section .text-center.mt-5 {
    text-align: center;
    margin-top: 40px;
}

.categories-section .btn-outline-danger {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    border: 2px solid #dc3545;
    color: #dc3545;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.categories-section .btn-outline-danger:hover {
    background: #dc3545;
    color: #fff;
}

.categories-section .btn-outline-danger i {
    margin-right: 8px;
}

/* МОБИЛЬНЫЕ СТИЛИ (до 768px) */
@media (max-width: 768px) {
    .categories-section {
        padding: 40px 0;
    }

    .categories-section h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    .categories-section .text-center {
        font-size: 14px;
        margin-bottom: 25px !important;
        padding: 0 10px;
    }

    /* Сетка: 2 колонки на мобильных */
    .categories-section [class*="col-"] {
        width: 50%; /* 2 колонки */
        padding: 0 8px;
        margin-bottom: 16px;
    }

    .categories-section .row {
        margin: 0 -8px;
    }

    /* Карточка категории */
    .categories-section .category-card {
        padding: 20px 12px;
        border-radius: 12px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.03);
    }

    .categories-section .category-card:active {
        transform: scale(0.98);
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    /* Иконка */
    .categories-section .category-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 12px;
    }

    /* Заголовок карточки */
    .categories-section .category-title {
        font-size: 15px;
        margin-bottom: 5px;
        font-weight: 600;
        white-space: normal;
        word-break: break-word;
    }

    /* Убираем лишние пробелы из заголовков */
    .categories-section .category-title {
        white-space: normal;
    }

    /* Описание */
    .categories-section .category-description {
        font-size: 12px;
        line-height: 1.4;
        color: #666;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* СТИЛИ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ (до 480px) */
@media (max-width: 480px) {
    .categories-section {
        padding: 30px 0;
    }

    .categories-section h2 {
        font-size: 22px;
    }

    .categories-section .category-card {
        padding: 15px 8px;
    }

    .categories-section .category-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    .categories-section .category-title {
        font-size: 14px;
    }

    .categories-section .category-description {
        font-size: 11px;
        -webkit-line-clamp: 2;
    }
}

/* СТИЛИ ДЛЯ ПЛАНШЕТОВ (768px - 992px) */
@media (min-width: 769px) and (max-width: 992px) {
    .categories-section [class*="col-"] {
        width: 33.333%; /* 3 колонки */
    }
    
    .categories-section .category-icon {
        width: 85px;
        height: 85px;
    }
    
    .categories-section .category-title {
        font-size: 17px;
    }
    
    .categories-section .category-description {
        font-size: 13px;
    }
}

