.news-home {
    position: relative;
    padding: 100px 0;
    background-color: #f6f6f8;
    background-image: url('/local/templates/optimizeseo/images/news-home/news-pattern.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto 100%;
    color: #262a30;
}

.news-home__container {
    position: relative;
    width: min(calc(100% - 40px), 1440px);
    margin: 0 auto;
}

.news-home__title {
    margin: 0 0 32px;
    font-size: 36px;
    font-weight: 600;
    line-height: 44px;
    text-transform: uppercase;
}

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

.news-home__card {
    display: flex;
    min-width: 0;
    min-height: 320px;
    border-radius: 12px;
    background: #fff;
}

.news-home__card-link {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 24px;
    min-height: 320px;
    padding: 32px;
    box-sizing: border-box;
    border-radius: inherit;
    color: inherit;
    text-decoration: none;
}


.news-home__card-link:focus-visible {
    outline: 2px solid #c3252d;
    outline-offset: 3px;
}

.news-home__card-title {
    margin: 0 0 12px;
	font-weight: 600;
	font-size: 28px;
	line-height: 32px;
	color: #262A30;
}

.news-home__card-description {
    margin: 0;
	font-weight: 400;
	font-size: 14px;
	line-height: 20px;
}

.news-home__button {
    font-size: 14px;
    line-height: 20px;
    font-weight: 600;
    padding: 8px;
    max-width: 200px;
    width: 100%;
    color: #fff;
    background: #C3252D;
    border-radius: 40px;
    text-align: center;
    text-transform: uppercase;
    transition: 0.2s ease;
	margin-top: auto;
}

.news-home__card-link:hover .news-home__button,
.news-home__card-link:focus-visible .news-home__button {
    transform: scale(1.04);
}

@media (max-width: 900px) {
    .news-home__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .news-home {
        padding: 64px 0;
        background-size: auto 55%;
    }

    .news-home__title {
        font-size: 28px;
        line-height: 36px;
    }

    .news-home__grid {
        grid-template-columns: 1fr;
    }

    .news-home__card,
    .news-home__card-link {
        min-height: 280px;
    }
}

.news-home__grid .swiper-wrapper {
    align-items: stretch;
}

.news-home__grid .swiper-wrapper > .news-home__card.swiper-slide {
    display: flex;
    align-self: stretch;
    height: auto !important;
}

.news-home__card-link {
    flex: 1;
    width: 100%;
}

.news-home__carousel {
    position: relative;
}

.news-home__controls {
    position: absolute;
    z-index: 2;
    inset: 0 -50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.news-home__controls[hidden] {
    display: none;
}

.news-home__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid #c3252d;
    border-radius: 50%;
    background: #fff;
    color: #c3252d;
    font-size: 22px;
    cursor: pointer;
    pointer-events: auto;
}

.news-home__arrow:disabled,
.news-home__arrow.swiper-button-disabled {
    opacity: .4;
    cursor: default;
}

.news-home__arrow:focus-visible {
    outline: 2px solid #262a30;
    outline-offset: 2px;
}

.news-home__arrow svg {
    display: block;
    flex: none;
}

.news-home__carousel,
.seo_news-gallery {
    position: relative;
}

.news-home__controls,
.seo_news-gallery__controls {
    position: absolute;
    z-index: 10;
    inset: 0 -20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    margin: 0;
    pointer-events: none;
}

.news-home__controls[hidden],
.seo_news-gallery__controls[hidden] {
    display: none;
}

.news-home__arrow,
.seo_news-gallery__controls button {
    display: flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: 1px solid #262A30;
    border-radius: 50%;
    background: #fff;
    color: #262A30;
    box-shadow: none;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}

.news-home__arrow svg,
.seo_news-gallery__controls button svg {
    display: block;
    width: 18px;
    height: 18px;
}

[data-news-prev] svg,
[data-gallery-prev] svg {
    transform: rotate(180deg);
}

.news-home__carousel:hover .news-home__arrow,
.news-home__carousel:focus-within .news-home__arrow,
.seo_news-gallery:hover .seo_news-gallery__controls button,
.seo_news-gallery:focus-within .seo_news-gallery__controls button {
    visibility: visible;
    opacity: 1;
}

.news-home__arrow:not(:disabled):hover,
.seo_news-gallery__controls button:not(:disabled):hover {
    background: #C3252D;
    border-color: #C3252D;
    color: #fff;
}

.news-home__carousel .news-home__arrow:disabled,
.news-home__carousel .news-home__arrow.swiper-button-disabled,
.seo_news-gallery .seo_news-gallery__controls button:disabled {
    opacity: .4;
    cursor: default;
}

.news-home__arrow:focus-visible,
.seo_news-gallery__controls button:focus-visible {
    outline: 2px solid #262A30;
    outline-offset: 3px;
}

@media (hover: none), (pointer: coarse) {
    .news-home__arrow,
    .seo_news-gallery__controls button {
        visibility: visible;
        opacity: 1;
    }
}



@media (max-width: 600px) {
    .news-home { background-image: none; }
}
