/* Homepage banners. Scoped separately from the retired generic slider. */
.home-service-slider {
    overflow: hidden;
    isolation: isolate;
    position: relative;
    margin: 0 0 26px;
    border-radius: 12px;
    background: #113c43;
    color: #fff;
    container-type: inline-size;
}
.home-service-slider [hidden] { display: none !important; }
.home-service-slider__slides { display: grid; }
/* Reserve the tallest slide's space so the page stays still while rotating. */
.home-service-slider .home-service-slider__slide[hidden] {
    display: flex !important;
    visibility: hidden;
    pointer-events: none;
}
.home-service-slider__slide {
    grid-area: 1 / 1;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 420px;
    overflow: hidden;
}
.home-service-slider .home-service-slider__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: var(--banner-image-height, 100%) !important;
    max-width: none;
    margin: 0;
    border-radius: 0;
    object-fit: cover;
    object-position: center;
}
.home-service-slider__slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 42, 48, .98) 0%, rgba(8, 42, 48, .86) 35%, rgba(8, 42, 48, .28) 67%, rgba(8, 42, 48, .04) 100%);
}
.home-service-slider__copy {
    position: relative;
    z-index: 1;
    width: 62%;
    padding: 36px;
}
.home-service-slider__eyebrow {
    display: block;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    line-height: 1.4;
    text-transform: uppercase;
    color: #b1e1d8;
}
.home-service-slider .home-service-slider__title {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    color: #fff;
    font-size: clamp(26px, 4.1cqw, 40px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.home-service-slider .home-service-slider__title a,
.home-service-slider .home-service-slider__title a:hover { color: #fff; }
.home-service-slider .home-service-slider__title a:hover { text-decoration-thickness: 1px; text-underline-offset: 5px; }
.home-service-slider .home-service-slider__text {
    margin: 0 0 26px;
    color: #e3efef;
    font-size: 15px;
    line-height: 1.65;
    max-width: 370px;
}
.home-service-slider .home-service-slider__link {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 46px;
    padding: 12px 17px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: #eef9f5;
    color: #164852;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 700;
    text-decoration: none;
}
.home-service-slider .home-service-slider__link:hover { background: #fff; color: #0d6f78; }
.home-service-slider__link span { font-size: 20px; line-height: 1; }
.home-service-slider__controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 26px;
    border-top: 1px solid rgba(255, 255, 255, .17);
    background: #113c43;
}
.home-service-slider__pages,
.home-service-slider__actions { display: flex; gap: 4px; }
.home-service-slider__controls button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: #d9eeee;
    font: inherit;
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}
.home-service-slider__controls button[aria-pressed="true"] { background: #e5f4ee; color: #143f47; font-weight: 700; }
.home-service-slider__actions button { border-color: rgba(255, 255, 255, .23); font-size: 19px; }
.home-service-slider [data-pause] svg { display: block; flex: none; }
.home-service-slider [data-pause] [data-play-icon],
.home-service-slider [data-pause][data-paused="true"] [data-pause-icon] { display: none; }
.home-service-slider [data-pause][data-paused="true"] [data-play-icon] { display: block; }
.home-service-slider__controls button:hover { border-color: #b1e1d8; }
.home-service-slider :is(a, button):focus-visible { outline: 3px solid #e8bc6f; outline-offset: 3px; }
.home-service-slider__status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.home-service-slider__fallback { display: flex; flex-wrap: wrap; gap: 12px 20px; list-style: none; padding: 16px 24px; }
.home-service-slider__fallback a { color: #fff; text-decoration: underline; }
/* The central column can be narrow even on a desktop screen. */
@container (max-width: 600px) {
    .home-service-slider__slide { align-items: flex-end; min-height: 480px; }
    .home-service-slider__image { --banner-image-height: 270px; object-position: 80% 45%; }
    .home-service-slider__slide::after { background: linear-gradient(180deg, rgba(10, 43, 49, .04) 0, rgba(10, 43, 49, .12) 125px, #113c43 285px); }
    .home-service-slider__copy { width: 100%; padding: 215px 24px 28px; }
    .home-service-slider__eyebrow { margin-bottom: 12px; }
    .home-service-slider .home-service-slider__title { font-size: 29px; max-width: 440px; }
    .home-service-slider .home-service-slider__text { font-size: 14px; margin-bottom: 20px; }
    .home-service-slider__controls { padding: 10px 16px; gap: 8px; }
    .home-service-slider__controls button { width: 36px; height: 40px; }
}
@container (max-width: 360px) {
    .home-service-slider__copy { padding-right: 20px; padding-left: 20px; }
    .home-service-slider .home-service-slider__title { font-size: 26px; }
    .home-service-slider__controls { padding: 10px; gap: 5px; }
    .home-service-slider__pages, .home-service-slider__actions { gap: 1px; }
    .home-service-slider__controls button { width: 32px; }
}
@container (max-width: 440px) {
    .home-service-slider__actions :is([data-prev], [data-next]) { display: none; }
}
html.vodokanal-visual-mode .home-service-slider { background: #000 !important; border: 2px solid #000; }
html.vodokanal-visual-mode .home-service-slider__image { display: none; }
html.vodokanal-visual-mode .home-service-slider__slide::after { background: #000; }
html.vodokanal-visual-mode .home-service-slider__copy { width: 100%; padding: 30px; }
html.vodokanal-visual-mode .home-service-slider__slide { min-height: 0; }
html.vodokanal-visual-mode .home-service-slider :is(.home-service-slider__title, .home-service-slider__title a, .home-service-slider__text, .home-service-slider__eyebrow) { color: #fff !important; }
html.vodokanal-visual-mode .home-service-slider__controls { background: #000; }
html.vodokanal-visual-mode .home-service-slider__controls button { color: #fff; border-color: #fff; }
html.vodokanal-visual-mode .home-service-slider__controls button[aria-pressed="true"],
html.vodokanal-visual-mode .home-service-slider .home-service-slider__link { color: #000 !important; background: #fff !important; }
