.articles-home {
    padding: 72px 0;
    background: #fff;
    color: #262a30;
    font-family: Gilroy, Arial, sans-serif;
}

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

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

.articles-home__carousel {
    position: relative;
}

.articles-home__slider {
    overflow: hidden;
}

.articles-home__slider .swiper-wrapper {
    align-items: stretch;
}

.articles-home__slider .swiper-wrapper > .articles-home__card.swiper-slide {
    position: relative;
    display: flex;
    align-self: stretch;
    min-width: 0;
    min-height: 392px;
    height: auto !important;
    overflow: hidden;
    border-radius: 12px;
    background: #eef0f7;
}

.articles-home__picture {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.articles-home__card-link {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 1;
    flex-direction: column;
    width: 100%;
    min-height: 480px;
    padding: 26px 26px 24px;
    box-sizing: border-box;
    color: inherit;
    text-decoration: none;
}

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

.articles-home__card-title {
    margin: 0 0 12px;
	font-weight: 600;
	font-size: 20px;
	line-height: 24px;
    text-transform: uppercase;
}

.articles-home__description {
	font-weight: 400;
	font-size: 16px;
	line-height: 20px;
}

.articles-home__description p {
    margin: 0 0 8px;
}

.articles-home__description p:last-child {
    margin-bottom: 0;
}

.articles-home__card--tags {
    color: #262A30;
}


.articles-home__tags,
.articles-home__stat,
.articles-home__badge {
    margin-top: auto;
}

.articles-home__tags {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    padding-top: 22px;
}

.articles-home__tag,
.articles-home__badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    padding: 6px 16px 4px 16px;
    box-sizing: border-box;
    border-radius: 40px;
    background: #fff;
    color: #262a30;
    font-size: 14px;
    font-weight: 600;
    line-height: 18px;
}


.articles-home__badge {
    border: 1px solid #c3252d;
}

.articles-home__stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 24px;
}

.articles-home__number {
    color: #c3252d;
    font-size: 68px;
    font-weight: 600;
    line-height: 1;
}

.articles-home__number-caption {
	font-weight: 400;
	font-size: 24px;
	line-height: 32px;
	color: #262A30;
}

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

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

.articles-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;
    cursor: pointer;
    pointer-events: auto;
    box-shadow: 0 2px 12px rgba(38, 42, 48, .12);
}

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

.articles-home__arrow:disabled {
    opacity: .4;
    cursor: default;
}

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

@media (max-width: 600px) {
    .articles-home {
        padding: 56px 0;
    }

    .articles-home__title {
        margin-bottom: 24px;
        font-size: 28px;
        line-height: 36px;
    }

    .articles-home__slider .swiper-wrapper > .articles-home__card.swiper-slide,
    .articles-home__card-link {
        min-height: 392px;
    }
}

.articles-home__carousel {
    position: relative;
}

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

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

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

.articles-home__arrow svg {
    display: block;
    width: 18px;
    height: 18px;
}

.articles-home__arrow[data-articles-prev] svg {
    transform: rotate(180deg);
}

/* Показ при наведении на область карточек */
.articles-home__carousel:hover .articles-home__arrow,
.articles-home__carousel:focus-within .articles-home__arrow {
    visibility: visible;
    opacity: 1;
}

/* Красный фон при наведении на кнопку */
.articles-home__arrow:not(:disabled):hover {
    background: #C3252D;
    border-color: #C3252D;
    color: #fff;
}

.articles-home__carousel .articles-home__arrow:disabled {
    opacity: .4;
    cursor: default;
}

.articles-home__arrow:focus-visible {
    outline: 2px solid #262A30;
    outline-offset: 3px;
}

/* На телефонах показываем постоянно */
@media (hover: none), (pointer: coarse) {
    .articles-home__arrow {
        visibility: visible;
        opacity: 1;
    }
}