.all-categories
{
    padding: 64px 0 32px;
}

.all-categories h2
{
    margin-bottom: 32px;
}

.all-categories__list
{
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;

    padding: 0;
    margin: 0;
    list-style: none;
}

.all-categories__card
{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: rgba(99, 99, 99, 0.2) 0 2px 8px 0;
    padding-bottom: 32px;
}

.all-categories__card-img
{
    width: 100%;
}

.all-categories__card-img img
{
    width: 100%;
    height: 198px;
    object-fit: cover;
}

.all-categories__card-body
{
    padding: 0 8px;
}

.all-categories__card-title
{
    /*margin-bottom: 0 !important;*/
    font-size: 20px;
}

.all-categories__card-link
{
    display: inline-block;
    position: relative;
    color: #111111;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.all-categories__card-link:after {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #111111;
    content: "";
    -webkit-transition: all, 0.3s;
    -o-transition: all, 0.3s;
    transition: all, 0.3s;
}

.all-categories__card-link:hover:after {
    width: 40px;
    background: #e53637;
}

@media screen and (max-width: 992px)
{
    .all-categories__list {
        grid-template-columns: repeat(2, 1fr);
    }

    .all-categories__card-img img
    {
        height: 238px;
    }
}

@media screen and (max-width: 576px)
{
    .all-categories__list {
        grid-template-columns: repeat(1, 1fr);
    }

    .all-categories__card-img img {
        height: 348px;
    }
}

@media screen and (max-width: 420px)
{
    .all-categories__card-img img {
        height: 238px;
    }
}