/* Winter homepage banners. Data attributes survive the carousel's class reset. */
section.carousel article .placeholder:has(> [data-winter-banner].active) {
    height: auto;
    overflow: visible;
}

section.carousel article .placeholder .banner[data-winter-banner] {
    container-type: inline-size;
    height: auto;
    aspect-ratio: 3 / 1;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    justify-content: flex-start;
}

section.carousel article .placeholder .banner[data-winter-banner].active {
    position: relative;
}

section.carousel article .placeholder [data-winter-banner] .winter-banner__text {
    position: relative;
    width: 49.6667%;
    margin: 3.5% 0 0 5.3333%;
}

section.carousel article .placeholder [data-winter-banner="accident"] .winter-banner__text {
    width: 60%;
}

section.carousel article .placeholder [data-winter-banner] .winter-banner__title {
    display: block;
    font-size: 4cqw;
    line-height: 1.166667;
    font-weight: 700;
    color: #333333;
}

section.carousel article .placeholder [data-winter-banner] .winter-banner__accent {
    color: #1B1A7E;
}

section.carousel article .placeholder [data-winter-banner] p {
    margin: 2cqw 0 0;
    font-size: 1.833333cqw;
    line-height: 1.275;
}

section.carousel article .placeholder [data-winter-banner="accident"] p {
    max-width: 55.6667cqw;
}

section.carousel article .placeholder [data-winter-banner] a.button {
    align-self: flex-start;
    margin-top: 3cqw;
    padding: 1.333333cqw 2.666667cqw;
    height: auto;
    max-width: none;
    font-size: 1.333333cqw;
    line-height: 1.1875;
}

.winter-banner__art {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.winter-banner__sphere,
.winter-banner__person,
.winter-banner__person img {
    position: absolute;
    display: block;
    max-width: none;
}

.winter-banner__sphere--large {
    left: 89.0833%;
    top: -21.5%;
    width: 19.9495%;
    height: 60.0579%;
}

.winter-banner__sphere--small {
    left: 52.75%;
    top: 71.5%;
    width: 4.1667%;
    height: 12.8417%;
}

.winter-banner__sphere--medium {
    left: 57.5833%;
    top: 10.5%;
    width: 6.25%;
    height: 19.2626%;
    filter: blur(3.409px);
}

[data-winter-banner="accident"] .winter-banner__sphere--medium {
    left: 90.3333%;
    top: 80.75%;
}

.winter-banner__person {
    left: 49.25%;
    top: 0;
    width: 50.1667%;
    height: 100%;
}

[data-winter-banner="accident"] .winter-banner__person {
    left: 51.1667%;
    top: -18.75%;
    width: 64.1667%;
    height: 119.25%;
    overflow: hidden;
}

.winter-banner__person img {
    width: 100%;
    height: 100%;
}

[data-winter-banner="accident"] .winter-banner__person img {
    left: -27.01%;
    top: 2.49%;
    width: 110.39%;
    height: 122.25%;
}

@media screen and (max-width: 800px) {
    section.carousel article .placeholder .banner[data-winter-banner] {
        aspect-ratio: auto;
        min-height: 628px;
        padding: 24px 24px 226px;
        border-radius: 16px;
    }

    section.carousel article .placeholder [data-winter-banner] .winter-banner__text {
        width: 100%;
        margin: 0;
    }

    section.carousel article .placeholder [data-winter-banner] .winter-banner__title {
        font-size: 30px;
        line-height: 38px;
    }

    section.carousel article .placeholder [data-winter-banner] .winter-banner__accent {
        color: inherit;
    }

    section.carousel article .placeholder [data-winter-banner] p {
        max-width: none;
        margin-top: 24px;
        font-size: 18px;
        line-height: 23px;
    }

    section.carousel article .placeholder [data-winter-banner] a.button {
        width: 100%;
        margin-top: 36px;
        padding: 16px;
        font-size: 16px;
        line-height: 19px;
    }

    section.carousel article .placeholder [data-winter-banner="accident"] a.button {
        margin-top: 44px;
    }

    section.carousel article .placeholder .banner[data-winter-banner="accident"] {
        padding-bottom: 218px;
    }

    .winter-banner__art {
        top: auto;
        height: 229px;
    }

    .winter-banner__sphere--large {
        left: auto;
        right: -45px;
        top: 0;
        width: 114px;
        height: 116px;
    }

    .winter-banner__sphere--small {
        left: -12px;
        top: 32px;
        width: 52px;
        height: 52px;
        filter: blur(3.409px);
    }

    .winter-banner__sphere--medium,
    [data-winter-banner="accident"] .winter-banner__sphere--medium {
        left: 24px;
        top: 167px;
        width: 52px;
        height: 52px;
    }

    .winter-banner__person {
        left: 50%;
        top: auto;
        bottom: 0;
        width: 305px;
        max-width: calc(100% - 23px);
        height: 229px;
        transform: translateX(-50%);
    }

    [data-winter-banner="accident"] .winter-banner__person {
        left: calc(50% - 210px);
        top: auto;
        bottom: 0;
        width: 462px;
        max-width: none;
        height: 208px;
        transform: none;
    }

    [data-winter-banner="accident"] .winter-banner__person img {
        left: -48.59%;
        top: -27.59%;
        width: 143.16%;
        height: 211.75%;
    }
}

@media screen and (min-width: 501px) and (max-width: 800px) {
    section.carousel article .placeholder .banner[data-winter-banner] {
        min-height: 0;
    }
}
