.sf-home-blog {
    padding-top: 38px;
    padding-bottom: 34px;
    background: #fff;
}

.sf-home-blog__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.sf-home-blog .block__title {
    margin: 0;
    font-size: 32px;
    line-height: 1.18;
    letter-spacing: 0;
}

.sf-home-blog__lead {
    max-width: 680px;
    margin: 8px 0 0;
    color: #68636b;
    font-size: 15px;
    line-height: 1.45;
    letter-spacing: 0;
}

.sf-home-blog__all {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    color: #8d169f;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
    text-decoration: none;
}

.sf-home-blog__all:hover,
.sf-home-blog__all:focus-visible {
    color: #5a0c69;
    text-decoration: underline;
}

.sf-home-blog__all--mobile {
    display: none;
}

.sf-home-blog__slider .swiper-wrapper {
    align-items: stretch;
}

.sf-home-blog__slider .swiper-slide {
    height: auto;
}

.sf-home-blog-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #e8e3e9;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(48, 24, 52, .06);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.sf-home-blog-card:hover {
    transform: translateY(-3px);
    border-color: #d9c9dc;
    box-shadow: 0 10px 26px rgba(48, 24, 52, .11);
}

.sf-home-blog-card__link {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: #242127;
    text-decoration: none;
}

.sf-home-blog-card__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f3eff4;
}

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

.sf-home-blog-card:hover .sf-home-blog-card__image img {
    transform: scale(1.035);
}

.sf-home-blog-card__body {
    display: flex;
    min-height: 132px;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 14px 15px 15px;
}

.sf-home-blog-card__category {
    margin-bottom: 7px;
    color: #9616a7;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0;
}

.sf-home-blog-card__title {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #242127;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.sf-home-blog-card__date {
    margin-top: auto;
    padding-top: 12px;
    color: #8b858d;
    font-size: 12px;
    line-height: 1.3;
    letter-spacing: 0;
}

.sf-home-blog__slider .swiper-pagination {
    position: static;
    margin-top: 18px;
}

.sf-home-blog__slider .swiper-pagination-bullet-active {
    background: #9915ae;
}

@media (max-width: 767px) {
    .sf-home-blog {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .sf-home-blog__heading {
        align-items: flex-start;
        margin-bottom: 17px;
    }

    .sf-home-blog .block__title {
        font-size: 25px;
    }

    .sf-home-blog__lead {
        margin-top: 6px;
        font-size: 14px;
    }

    .sf-home-blog__heading > .sf-home-blog__all {
        display: none;
    }

    .sf-home-blog__all--mobile {
        display: inline-flex;
        margin-top: 14px;
    }

    .sf-home-blog-card__body {
        min-height: 124px;
        padding: 12px 13px 14px;
    }

    .sf-home-blog-card__title {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sf-home-blog-card,
    .sf-home-blog-card__image img {
        transition: none;
    }
}
