.catalog-sections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.section-card {
    background: #ffffff;
    border-radius: 0; /* Острые углы */
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.section-card:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border-color: #007bff; /* Тонкая граница при наведении */
}

.section-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.section-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    background: #f8f9fa; /* Светлый фон как на картинке */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0; /* Четкое разделение */
}

.section-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.section-card:hover .section-card-img {
    transform: scale(1.05);
}

.section-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #f8f9fa;
}

.section-card-content {
    padding: 16px 20px; /* Отступы от краев */
    text-align: center; /* Выравнивание по центру */
    background: #ffffff;
}

.section-card-name {
    font-family: 'Arial', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: #333333;
    margin: 0 0 8px 0;
    line-height: 1.3;
    text-align: center; /* Центрирование текста */
}

.section-card-count {
    font-family: 'Arial', sans-serif;
    font-size: 14px;
    color: #666666;
    margin: 0;
    line-height: 1.4;
    text-align: center; /* Центрирование текста */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .catalog-sections-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 16px;
        padding: 16px 0;
    }
    
    .section-card-image {
        height: 180px;
    }
    
    .section-card-content {
        padding: 14px 16px;
    }
    
    .section-card-name {
        font-size: 16px;
    }
    
    .section-card-count {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .catalog-sections-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .section-card-image {
        height: 160px;
    }
    
    .section-card-content {
        padding: 12px 14px;
    }
}