.tags {
    padding-bottom: 112px;
}

.tags__wrapper {
    display: flex;
    gap: 32px;
}

.tags__item {
    display: flex;
    flex-direction: column;
    flex-basis: calc((100% - 32px) / 2);
    gap: 16px;
}

.tags__image {
    display: flex;
    position: relative;
}

.tags__image img {
    width: 100%;
    height: auto;
    min-height: 360px;
    border-radius: 4px;
}

.tags__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;
}

.tags__item:hover .tags__image::after {
    transform: scaleX(1);
}

.tags__label {
    width: 100%;
}


@media screen and (max-width: 1024.98px) {
    .tags__image img {
        min-height: 228px;
    }

    .tags {
        padding-bottom: 64px;
    }

}

@media screen and (max-width: 599.98px) {
     .tags__wrapper {
         flex-direction: column;
         gap: 80px;
     }

    .tags__image img {
        min-height: 360px;
    }

    .tags {
        padding-bottom: 48px;
    }
}