/* Живые тексты и кнопки поверх отдельного оригинала фотографии. */
.home-hero--editable .container,
.home-strip--editable .container {
    max-width: 1228px;
}

.home-hero--editable .home-hero__slider {
    margin: 0;
}

.home-hero--editable .home-hero__slide {
    display: flex;
    align-items: flex-end;
    height: 375px;
    background: #fff;
}

.home-hero__background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.home-hero--editable .home-hero__slide::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #fff 0%, #fff 12%, rgb(255 255 255 / 96%) 18%, rgb(255 255 255 / 70%) 28%, rgb(255 255 255 / 15%) 47%, transparent 62%);
    content: "";
    pointer-events: none;
}

.home-hero__content {
    position: relative;
    z-index: 1;
    width: min(520px, 70%);
    padding: 0 0 60px 60px;
}

.home-hero__heading {
    margin: 0;
    color: #000;
    font-family: "Roboto", sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: .96;
}

.home-hero__accent,
.home-hero__title {
    white-space: pre-line;
}

.home-hero__accent {
    color: #80c552;
}

.home-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    width: 260px;
    max-width: 100%;
    margin: 0 0 0 12px;
    padding: 12px 20px;
    border: 0;
    border-radius: 0;
    background: #ffc148;
    color: #4c4c4c;
    font-family: "Roboto", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
    vertical-align: baseline;
    cursor: pointer;
    transition: background-color .2s, box-shadow .2s;
}

.home-hero__button:hover {
    background: #ffb82b;
}

.home-hero__button:focus-visible {
    outline: 2px solid #4c4c4c;
    outline-offset: 3px;
}

.home-hero__description {
    margin: 18px 0 0;
    color: #4c4c4c;
    font: 400 16px/1.45 "Raleway", sans-serif;
    white-space: pre-line;
}

.home-strip--editable .home-strip__item {
    font-family: "Roboto", sans-serif;
    font-size: 11px;
    font-weight: 700;
    white-space: pre-line;
}

.home-strip--editable .home-strip__item:focus-visible {
    outline: 2px solid #4c4c4c;
    outline-offset: -3px;
}

@media (max-width: 1024px) {
    .home-hero--editable .home-hero__slide {
        height: 350px;
    }

    .home-hero__content {
        width: min(450px, 75%);
        padding: 0 0 45px 32px;
    }

    .home-hero__heading {
        font-size: 40px;
        line-height: 1;
    }

    .home-hero__button {
        width: 230px;
        min-height: 44px;
        font-size: 12px;
    }
}

.home-hero__action {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.home-hero__action:focus-visible { outline: 3px solid #515151; outline-offset: -4px; }
.home-hero__slide:has(.home-hero__action:hover) .home-hero__button { background: #ffb82b; }
.home-hero--editable .home-hero__nav { z-index: 5; }

@media (max-width: 550px) {
    .home-hero--editable .container { padding: 0; }
    .home-hero--editable .home-hero__slide { height: 220px; }
    .home-hero__background { object-position: 61% center; }
    .home-hero--editable .home-hero__slide::after {
        background: linear-gradient(90deg, #fff 0%, rgb(255 255 255 / 90%) 15%, rgb(255 255 255 / 30%) 48%, transparent 70%);
    }
    .home-hero__content { width: 100%; padding: 0 14px 28px; }
    .home-hero__heading { font-size: 30px; line-height: .94; }
    .home-hero__button {
        display: inline-flex;
        width: 169px;
        min-height: 32px;
        margin: 0 0 0 6px;
        padding: 8px;
        font-size: 8px;
    }
    .home-hero__description { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__button {
        transition: none;
    }
}

/* На телефоне переключатели остаются под оконным баннером, как в макете. */
@media (max-width: 550px) {
    .home-hero--windows .home-hero__slider { padding-bottom: 50px; }
    .home-hero--windows .home-hero__button { margin-left: 26px; }
    .home-strip--windows {
        position: relative;
        z-index: 6;
        display: block;
        margin-top: -50px;
        pointer-events: none;
    }
    .home-strip--windows .home-strip__list {
        height: 50px;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }
    .home-strip--windows .home-strip__item {
        width: 10px;
        height: 10px;
        min-width: 10px;
        min-height: 10px;
        flex: 0 0 10px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: #dedede;
        font-size: 0;
        line-height: 0;
        overflow: hidden;
        pointer-events: auto;
    }
    .home-strip--windows .home-strip__item--accent { background: #95c561; }
    .home-hero--windows .home-hero__nav {
        top: auto;
        bottom: 10px;
        width: 30px;
        height: 30px;
        margin: 0;
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
    }
    .home-hero--windows .home-hero__nav img { display: none; }
    .home-hero--windows .home-hero__nav::before {
        display: block;
        width: 21px;
        height: 14px;
        background: currentColor;
        mask-position: center;
        mask-size: contain;
        mask-repeat: no-repeat;
        content: "";
    }
    .home-hero--windows .home-hero__nav--prev { left: 10px; color: #515151; }
    .home-hero--windows .home-hero__nav--next { right: 10px; color: #95c561; }
    .home-hero--windows .home-hero__nav--prev::before { mask-image: url("../images/siegenia/slider-prev.svg"); }
    .home-hero--windows .home-hero__nav--next::before { mask-image: url("../images/siegenia/slider-next.svg"); }
}
