.subcategories {
    padding-bottom: 112px;
}

.subcategories__wrapper {
    display: flex;
    flex-wrap: wrap;
    column-gap: 32px;
    row-gap: 184px
}

.subcategories__item {
    display: flex;
    flex-direction: column;
    flex-basis: calc((100% - 32px) / 2);
    gap: 16px;
}

.subcategories__image {
    display: flex;
    position: relative;
}

.subcategories__image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    min-height: 360px;
    max-height: 360px;
}

.subcategories__image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: red;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.5s ease;
}

.subcategories__item:hover .subcategories__image::after {
    transform: scaleX(1);
}

.subcategories__label {
    width: 100%;
}


@media screen and (max-width: 1024.98px) {
    .subcategories__image img {
        min-height: 228px;
        max-height: 228px;
    }

    .subcategories {
        padding-bottom: 64px;
    }

    .subcategories__wrapper {
        row-gap: 144px
    }

}

@media screen and (max-width: 599.98px) {
    .subcategories__wrapper {
        flex-direction: column;
        gap: 80px;
    }

    .subcategories__image img {
        min-height: 360px;
        max-height: 360px;
    }

    .subcategories {
        padding-bottom: 48px;
    }
}