.image-cards--homepage {
    margin-top: 65px;
    position: relative;
    z-index: 1;
}

.image-card-flex {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -17px;
    row-gap: 25px;
}

.image-card-item {
    width: 100%;
    padding: 0 17px;
}

.image-card {
    background: var(--color-white);
    box-shadow: 0 4px 17.2px 0 rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.image-card__image {
    width: 122px;
    height: 107px;
    position: relative;
}

.image-card__image::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(252deg, rgba(0, 0, 0, 0.00) 58.36%, rgba(0, 0, 0, 0.62) 98.96%);
    border-bottom: 9px solid var(--primary-color);
    transition: all 0.3s ease-in-out;
}

.image-card__details {
    width: calc(100% - 122px);
    padding: 0 19px;
}

.image-card__title {
    display: inline-block;
    position: relative;
    margin: 0;
    color: var(--color-black);
    font-size: 25px;
    line-height: 1em;
    z-index: 1;
}

@media (min-width: 768px) {
    .image-cards--homepage {
        margin-top: -40px;
    }

    .image-card-flex {
        row-gap: 34px;
        justify-content: center;
    }

    .image-card-item {
        width: 33.33%;
    }

    .image-card {
        display: block;
    }

    .image-card__image {
        width: 100%;
        height: 184px;
    }

    .image-card__details {
        width: 100%;
        padding: 0 20px;
        height: 70px;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

}

@media (min-width: 1200px) {
    .image-cards--homepage {
        margin-top: -149px;
    }

    .image-card-flex {
        align-items: center;
        min-height: 345px;
    }

    .image-card-item {
        width: 20%;
         transition: all .3s;
    }

    .image-card-item.active {
        width: 32%;
       
    }

    .image-card-item.in-active {
        width: 17%;
    }

    .active .image-card__image {
        height: 258px;
    }

    .active .image-card__details {
        height: 87px;
    }

    .active .image-card__title::before {
        content: '';
        position: absolute;
        background: linear-gradient(to bottom, rgba(200, 15, 46, 0.15) 0%, rgba(200, 15, 46, 0.15) 100%);
        height: 15px;
        width: calc(100% - 43px);
        left: -6px;
        bottom: -4px;
    }

    .active .image-card__title {
        padding-right: 53px;
        margin-top: -5px;
        font-size: 30px;
    }

    .active .image-card__title::after {
        content: '\e908';
        font-family: var(--font-icon);
        position: absolute;
        right: 0;
        top: 50%;
        transform: translate(0, -50%);
        font-size: 40px;
        color: var(--primary-color);
    }
}