.gn-category-articles {
    position: relative;
    margin: 44px 0;
}

.gn-category-articles__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.gn-category-articles__title {
    margin: 0;
    color: #171717;
}

.gn-category-articles__blog-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 44px;
    padding: 0 24px;
    border: 1px solid #d92438;
    border-radius: .4rem;
    background: #fff;
    color: #d92438;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.gn-category-articles__blog-link:hover {
    background: #d92438;
    color: #fff;
}

.gn-category-articles__slider {
    position: relative;
}

.gn-category-articles__control {
    position: absolute;
    z-index: 2;
    top: 50%;
    width: 3.6rem;
    height: 3.6rem;
    padding: 0;
    border: 0;
    border-radius: .6rem;
    background: #e04657;
    transform: translateY(-50%);
}

.gn-category-articles__control:hover {
    background: #d92438;
}

.gn-category-articles__prev {
    left: -1.8rem;
}

.gn-category-articles__next {
    right: -1.8rem;
}

.gn-category-articles__control.swiper-button-disabled,
.gn-category-articles__control.swiper-button-disabled:hover {
    opacity: 1;
    background: #c4c4c4;
    cursor: default;
    pointer-events: none;
}

.gn-category-articles__control .icon {
    width: .8rem;
    height: 1.2rem;
}

.gn-category-articles__viewport {
    overflow: hidden;
}

.gn-category-articles__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.gn-category-articles__grid--count-1 {
    max-width: none;
}

.gn-category-articles[data-desktop-controls="Y"] .gn-category-articles__control {
    display: block;
}

.gn-category-articles--count-1 .gn-category-articles__control,
.gn-category-articles--count-2 .gn-category-articles__control {
    display: none;
}

.gn-category-articles__card {
    overflow: hidden;
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    background: #fff;
    color: #222;
}

.gn-category-articles__image {
    display: block;
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3f3;
}

.gn-category-articles__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gn-category-articles__card:hover .gn-category-articles__image img {
    transform: scale(1.03);
}

.gn-category-articles__body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    padding: 18px;
}

.gn-category-articles__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    min-height: 20px;
    margin-bottom: 10px;
    color: #777;
    font-size: 14px;
    line-height: 20px;
}

.gn-category-articles__source {
    color: #e04657;
    font-weight: 600;
}

.gn-category-articles__name {
    display: block;
    color: #202020;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
}

.gn-category-articles__name:hover {
    color: #e04657;
}

.gn-category-articles__text {
    margin-top: 10px;
    color: #5f5f5f;
    font-size: 15px;
    line-height: 1.45;
}

.gn-category-articles__link {
    align-self: stretch;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    margin-top: 18px;
    padding: 0;
    border: 1px solid #d92438;
    border-radius: .4rem;
    background: #fff;
    color: #d92438;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.gn-category-articles__link:hover {
    background: #d92438;
    color: #fff;
}

@media (max-width: 767px) {
    .gn-category-articles {
        margin: 28px 0;
    }

    .gn-category-articles__header {
        flex-wrap: wrap;
        align-items: flex-start;
        margin-bottom: 16px;
    }

    .gn-category-articles__title {
        flex: 1 0 100%;
    }

    .gn-category-articles__blog-link {
        min-width: 0;
        height: 40px;
        margin-left: auto;
        padding: 0 18px;
    }

    .gn-category-articles__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gn-category-articles__grid--count-1 {
        max-width: none;
    }

    .gn-category-articles--count-1 .gn-category-articles__control,
    .gn-category-articles--count-2 .gn-category-articles__control {
        display: block;
    }

    .gn-category-articles__control {
        width: 2.75rem;
        height: 2.75rem;
    }

    .gn-category-articles__prev {
        left: .75rem;
    }

    .gn-category-articles__next {
        right: .75rem;
    }

    .gn-category-articles__body {
        padding: 16px;
    }

    .gn-category-articles__name {
        font-size: 18px;
    }
}
