.home-news-section {
    padding: 74px 0 82px;
    background: #f4f3f3;
}

.home-news-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 34px;
}

.home-news-section__label {
    margin-bottom: 10px;
    color: #00b44c;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
}

.home-news-section__title {
    margin: 0;
    color: #191d24;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
    text-align: left;
}

.home-news-section__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 15px 28px;
    background: #272c35;
    color: #fff;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    transition: background .2s ease, color .2s ease;
}

.home-news-section__all:hover,
.home-news-section__all:focus {
    background: #05bf55;
    color: #fff;
}

.home-news-section__all_mobile {
    display: none;
}

.home-news-section__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
}

.home-news-card {
    min-width: 0;
    height: 100%;
    background: #fff;
    transition: transform .2s ease, box-shadow .2s ease;
}

.home-news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 34px rgba(25, 29, 36, .1);
}

.home-news-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
}

.home-news-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1.28 / 1;
    background: #272c35;
}

.home-news-card__media:after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(25, 29, 36, 0), rgba(25, 29, 36, .18));
    pointer-events: none;
}

.home-news-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.home-news-card:hover .home-news-card__media img {
    transform: scale(1.04);
}

.home-news-card__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 28px 28px 26px;
}

.home-news-card__date {
    margin-bottom: 14px;
    color: #9aa1aa;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 700;
    text-transform: uppercase;
}

.home-news-card__title {
    margin-bottom: 18px;
    color: #191d24;
    font-size: 21px;
    line-height: 1.28;
    font-weight: 800;
}

.home-news-card__text {
    margin-bottom: 24px;
    color: #3f454f;
    font-size: 15px;
    line-height: 1.65;
}

.home-news-card__more {
    margin-top: auto;
    color: #00b44c;
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.home-news-card__more:after {
    content: '';
    display: inline-block;
    width: 18px;
    height: 1px;
    margin-left: 10px;
    vertical-align: middle;
    background: currentColor;
    transition: width .2s ease;
}

.home-news-card:hover .home-news-card__more:after {
    width: 28px;
}

@media (max-width: 991px) {
    .home-news-section {
        padding: 50px 0 58px;
    }

    .home-news-section__head {
        align-items: flex-start;
        margin-bottom: 28px;
    }

    .home-news-section__title {
        font-size: 28px;
    }

    .home-news-section__grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 575px) {
    .home-news-section__head {
        display: block;
    }

    .home-news-section__all_desktop {
        display: none;
    }

    .home-news-section__all_mobile {
        display: flex;
        margin-top: 24px;
    }

    .home-news-card__body {
        padding: 22px 20px 22px;
    }
}
