﻿section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

    section > div:first-of-type h2 {
        font-size: 1.5rem;
        font-weight: 600;
        position: relative;
        margin-bottom: 2rem;
    }

        section > div:first-of-type h2::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -8px;
            width: 50px;
            height: 3px;
            background: #870000;
            border-radius: 2px;
        }

.catalog-content {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fill, minmax(289px, 1fr));
    justify-content: center;
}

    .catalog-content a {
        background: #f8fafc;
        border-radius: 12px;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
        padding: 1.5rem 1rem;
        text-align: center;
        text-decoration: none;
        color: #111;
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .catalog-content a:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
        }

        .catalog-content a img {
            max-width: 359px;
            width: 100%;
            height: auto;
            border-radius: 8px;
            margin-bottom: 1rem;
            object-fit: contain;
            max-height: 200px;
        }

        .catalog-content a b {
            font-size: 1rem;
            font-weight: 600;
            margin-bottom: 0.5rem;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
            width: 100%;
        }

        .catalog-content a span {
            font-size: 0.85rem;
            font-weight: 500;
            color: #870000;
        }

/* Responsive */
@media (max-width: 576px) {
    section {
        padding: 1.5rem;
    }

    .catalog-content {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 1rem;
    }

        .catalog-content a img {
            /* width: 100px; */
        }
}
