.catalog {
    margin: 60px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    

    /* ссылки для карточек */
    & a {
        width: fit-content;
    }

    & .card {
        width: 250px;
        height: 300px;
        border-radius: var(--borderRadius);
        padding-bottom: 20px;
        transition: all 0.3s ease;
        overflow: hidden;

        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;

        background-color: var(--color-back_second);
        border: 1px solid color-mix(in srgb, var(--color-front) 10%, transparent 0%);

        & h4 {
            text-align: center;
            font-weight: 200;
            font-size: 1.15rem;
        }
        & img {
            height: 200px;
            transition: transform 0.3s ease;
        }


        &:hover {
            /* красный при наведении + немного разбавим цвет */
            background-color: color-mix(in srgb, var(--color-red) 90%, transparent 0%) ;
            box-shadow: 0px 0px 0px 0 transparent;
            & img {
                transform: scale(1.1);
            }

            & h4 {
                color: white;
            }
        }

    }

    /* если карточки маленькие */
    &.small .card {
        width: 200px;
        height: 200px;

        & img {
            height: 150px
        }
    }
}


/* увеличение плиток на больших экранах */
@media (min-width: 1400px) {
    .catalog {
        gap: 4rem;
    }

    .card {
        transform: scale(1.15);
    }
}