/* Промо-слайды главной; область стилей изолирована от соседних секций. */
.ub-home-promo {
    padding: clamp(18px, 2.5vw, 38px) 0 clamp(44px, 5vw, 76px);
    overflow: hidden;
    background: #0b0b0c;
    color: #ffffff;
}

.ub-home-promo .container {
    max-width: 1600px;
    padding-inline: clamp(16px, 2vw, 30px);
}

.ub-home-promo__stage {
    position: relative;
    overflow: hidden;
    background: #111112;
}

.ub-home-promo__slides {
    display: grid;
    aspect-ratio: 16 / 7.8;
    min-height: 460px;
}

.ub-home-promo__slide {
    position: relative;
    grid-area: 1 / 1;
    min-width: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .5s ease, visibility .5s ease;
}

.ub-home-promo__slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ub-home-promo__media {
    position: absolute;
    inset: 0;
    display: block;
    background: #1a1a1c;
}

.ub-home-promo__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ub-home-promo__content {
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    width: min(40%, 590px);
    padding: clamp(44px, 5.2vw, 84px);
    background: rgba(11, 11, 12, .72);
}

.ub-home-promo__slide--text-right .ub-home-promo__content {
    right: 0;
    left: auto;
}

.ub-home-promo__slide--theme-dark .ub-home-promo__content {
    background: rgba(239, 235, 224, .9);
    color: #171719;
}

.ub-home-promo__slide--text-only .ub-home-promo__content {
    inset: 0;
    width: 100%;
    max-width: none;
    padding-inline: clamp(44px, 8vw, 128px);
    background: #111112;
}

.ub-home-promo__slide--text-only.ub-home-promo__slide--theme-dark .ub-home-promo__content {
    background: #efe9dc;
}

.ub-home-promo__eyebrow {
    margin: 0 0 clamp(18px, 2vw, 28px);
    color: #c8a968;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    line-height: 1.4;
    text-transform: uppercase;
}

.ub-home-promo__slide--theme-dark .ub-home-promo__eyebrow {
    color: #806b41;
}

.ub-home-promo__content h2 {
    max-width: 11.5ch;
    margin: 0;
    color: inherit;
    font-size: clamp(36px, 3.7vw, 62px);
    font-weight: 560;
    line-height: 1;
    letter-spacing: -.045em;
    text-wrap: balance;
}

.ub-home-promo__description {
    max-width: 48ch;
    margin: clamp(22px, 2.5vw, 36px) 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.65;
}

.ub-home-promo__slide--theme-dark .ub-home-promo__description {
    color: #5b574f;
}

.ub-home-promo .ub-home-promo__cta {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-top: clamp(24px, 3vw, 38px);
    padding: 12px 24px;
    border: 1px solid #c8a968;
    border-radius: 0;
    background: #c8a968;
    color: #111112;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.ub-home-promo .ub-home-promo__cta:hover {
    border-color: #f4f0e6;
    background: #f4f0e6;
    color: #111112;
    transform: translateY(-2px);
}

.ub-home-promo__slide--theme-dark .ub-home-promo__cta:hover {
    border-color: #171719;
    background: #171719;
    color: #ffffff;
}

.ub-home-promo__cta:focus-visible,
.ub-home-promo__arrow:focus-visible,
.ub-home-promo__indicator:focus-visible {
    outline: 2px solid #c8a968;
    outline-offset: 3px;
}

.ub-home-promo__controls {
    position: absolute;
    z-index: 3;
    bottom: clamp(14px, 1.8vw, 28px);
    left: 50%;
    display: flex;
    align-items: center;
    padding: 2px 6px;
    background: rgba(11, 11, 12, .58);
    transform: translateX(-50%);
}

.ub-home-promo__arrow,
.ub-home-promo__indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, .66);
    cursor: pointer;
}

.ub-home-promo__arrow {
    font-size: 18px;
}

.ub-home-promo__arrow:hover {
    color: #c8a968;
}

.ub-home-promo__indicators {
    display: flex;
    align-items: center;
}

.ub-home-promo__indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .28);
    transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.ub-home-promo__indicator[aria-current="true"] span {
    width: 18px;
    border-radius: 3px;
    background: rgba(200, 169, 104, .82);
}

@media (max-width: 900px) {
    .ub-home-promo__slides {
        aspect-ratio: 4 / 3;
        min-height: 500px;
    }

    .ub-home-promo__content {
        width: min(46%, 500px);
        padding: clamp(34px, 5vw, 52px);
    }
}

@media (max-width: 767px) {
    .ub-home-promo {
        padding: 14px 0 44px;
    }

    .ub-home-promo .container {
        padding-inline: 20px;
    }

    .ub-home-promo__slides {
        aspect-ratio: auto;
        min-height: 0;
    }

    .ub-home-promo__slide {
        display: grid;
        grid-template-rows: auto 1fr;
        min-height: 640px;
        background: #111112;
    }

    .ub-home-promo__media {
        position: relative;
        inset: auto;
        aspect-ratio: 4 / 3;
    }

    .ub-home-promo__content,
    .ub-home-promo__slide--text-right .ub-home-promo__content,
    .ub-home-promo__slide--text-only .ub-home-promo__content {
        position: relative;
        inset: auto;
        width: 100%;
        min-width: 0;
        padding: 34px 24px 92px;
        background: #111112;
    }

    .ub-home-promo__slide--text-only .ub-home-promo__content {
        min-height: 640px;
    }

    .ub-home-promo__slide--theme-dark .ub-home-promo__content {
        background: #efe9dc;
    }

    .ub-home-promo__content h2 {
        max-width: 14ch;
        font-size: clamp(34px, 10.5vw, 52px);
    }

    .ub-home-promo__description {
        font-size: 15px;
    }

    .ub-home-promo .ub-home-promo__cta {
        width: 100%;
        max-width: 100%;
    }

    .ub-home-promo__controls {
        right: 12px;
        bottom: 12px;
        left: 12px;
        justify-content: space-between;
        padding: 2px 6px;
        transform: none;
    }

    .ub-home-promo__indicators {
        min-width: 0;
        overflow-x: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ub-home-promo__slide,
    .ub-home-promo .ub-home-promo__cta,
    .ub-home-promo__indicator span {
        transition: none;
    }

    .ub-home-promo .ub-home-promo__cta:hover {
        transform: none;
    }
}
