.hero-promo-slider {
    position: relative;
    width: 100%;
    --hero-min-height: clamp(440px, 52vh, 560px);
}

.hero-promo-slider .carousel,
.hero-promo-slider .carousel-inner,
.hero-promo-slider .carousel-item {
    min-height: var(--hero-min-height);
}

.hero-promo-slider .carousel-item {
    position: relative;
    overflow: hidden;
}

.hero-slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.06);
}

.hero-slide-mobile-image {
    display: none;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-slide-bg {
    animation: hero-bg-zoom 0.65s ease forwards;
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    min-height: var(--hero-min-height);
    display: flex;
    align-items: center;
    padding: clamp(1.25rem, 3vw, 2.5rem) 0;
}

.hero-promo-card {
    position: relative;
    width: min(100%, 420px);
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    padding: clamp(1.35rem, 2.5vw, 2.25rem);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(16px) saturate(1.25);
    -webkit-backdrop-filter: blur(16px) saturate(1.25);
    overflow: hidden;
    opacity: 1;
    transform: none;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-promo-card {
    animation: hero-card-slide-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-promo-tag {
    animation: hero-fade-up 0.55s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-promo-title {
    animation: hero-fade-up 0.6s ease forwards;
    animation-delay: 0.32s;
    opacity: 0;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-promo-text {
    animation: hero-fade-up 0.6s ease forwards;
    animation-delay: 0.44s;
    opacity: 0;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-promo-btn {
    animation: hero-fade-up 0.6s ease forwards;
    animation-delay: 0.56s;
    opacity: 0;
}

.hero-promo-tag {
    display: inline-block;
    font-size: clamp(0.68rem, 1.5vw, 0.78rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: clamp(0.65rem, 1.5vw, 1rem);
    opacity: 0.95;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.25);
}

.hero-promo-title {
    font-size: clamp(1.5rem, 2.2vw + 0.65rem, 2.35rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    margin: 0 0 clamp(0.75rem, 1.5vw, 1.1rem);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.28);
}

.hero-promo-title-line {
    display: block;
}

.hero-promo-text {
    font-size: clamp(0.82rem, 1.4vw, 0.95rem);
    line-height: 1.45;
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    max-width: 22rem;
    opacity: 0.95;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.22);
}

.hero-promo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-primary-dark, #026aaa);
    font-size: clamp(0.85rem, 1.4vw, 0.95rem);
    font-weight: 700;
    padding: 0.72rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.hero-promo-btn:hover {
    color: var(--brand-primary-dark, #026aaa);
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.hero-promo-btn span {
    font-size: 1.05rem;
    line-height: 1;
}

.hero-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.85);
    transform: skewX(-28deg);
    opacity: 0;
    pointer-events: none;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-shape-top {
    animation: hero-shape-from-left 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.45s;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-shape-bottom {
    animation: hero-shape-from-left 0.65s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.58s;
}

.hero-promo-slider .carousel-item.active.hero-animate .hero-shape-side {
    animation: hero-shape-from-right 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.35s;
}

@keyframes hero-card-slide-in {
    from {
        opacity: 0;
        transform: translateX(-56px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes hero-shape-from-left {
    from {
        opacity: 0;
        transform: translateX(-36px) skewX(-28deg);
    }

    to {
        opacity: 0.95;
        transform: translateX(0) skewX(-28deg);
    }
}

@keyframes hero-shape-from-right {
    from {
        opacity: 0;
        transform: translateX(48px) skewX(-28deg);
    }

    to {
        opacity: 0.95;
        transform: translateX(0) skewX(-28deg);
    }
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes hero-bg-zoom {
    from {
        transform: scale(1.1);
    }

    to {
        transform: scale(1);
    }
}

.hero-shape-top {
    width: 36px;
    height: 14px;
    top: 14px;
    left: -8px;
}

.hero-shape-bottom {
    width: 44px;
    height: 14px;
    bottom: 18px;
    left: 22px;
}

.hero-shape-side {
    width: 14px;
    height: 58px;
    right: 22px;
    top: 50%;
    margin-top: -29px;
}

.hero-promo-slider .carousel-indicators.hero-carousel-dots {
    position: absolute;
    right: clamp(1.25rem, 3vw, 2.5rem);
    bottom: clamp(1.1rem, 2.5vw, 1.85rem);
    left: auto;
    margin: 0;
    padding: 0;
    justify-content: flex-end;
    gap: 4px;
    z-index: 4;
}

.hero-promo-slider .carousel-indicators.hero-carousel-dots [data-bs-target] {
    position: relative;
    box-sizing: border-box;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    background-clip: border-box;
    opacity: 1;
    text-indent: 0;
    overflow: visible;
    cursor: pointer;
}

.hero-promo-slider .carousel-indicators.hero-carousel-dots [data-bs-target]::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    transition: background 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.hero-promo-slider .carousel-indicators.hero-carousel-dots [data-bs-target]:hover::before,
.hero-promo-slider .carousel-indicators.hero-carousel-dots .active::before {
    transform: translate(-50%, -50%) scale(1.08);
}

.hero-promo-slider .carousel-indicators.hero-carousel-dots .active::before {
    background: var(--brand-primary, #0379c3);
}

.hero-promo-slider .carousel-indicators.hero-carousel-dots [data-bs-target]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.hero-promo-slider .carousel-fade .carousel-item {
    opacity: 0;
    transition: opacity 0.45s ease;
    transform: none;
}

.hero-promo-slider .carousel-fade .active.carousel-item-start,
.hero-promo-slider .carousel-fade .active.carousel-item-end {
    transition: opacity 0s 0.45s;
}

.hero-promo-slider .carousel-fade .carousel-item.active {
    opacity: 1;
}

@media (max-width: 991.98px) {
    .hero-promo-slider {
        --hero-min-height: clamp(380px, 46vh, 500px);
    }

    .hero-promo-card {
        width: min(100%, 380px);
    }
}

@media (max-width: 767.98px) {
    .hero-promo-slider {
        --hero-min-height: 0px;
        overflow: visible;
    }

    .hero-promo-slider .carousel,
    .hero-promo-slider .carousel-inner,
    .hero-promo-slider .carousel-item {
        min-height: 0;
        height: auto;
    }

    .hero-promo-slider .carousel-item.has-mobile-image {
        aspect-ratio: var(--hero-mobile-aspect, 2 / 3);
    }

    .hero-promo-slider .carousel-item.active,
    .hero-promo-slider .carousel-item.carousel-item-next,
    .hero-promo-slider .carousel-item.carousel-item-prev {
        display: flex;
        flex-direction: column;
        overflow: visible;
    }

    .carousel-item.has-mobile-image .hero-slide-picture {
        position: absolute;
        inset: 0;
        display: block;
    }

    .carousel-item.has-mobile-image .hero-slide-bg {
        position: static;
        inset: auto;
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        object-fit: cover;
        object-position: center;
        transform: none;
        animation: none;
    }

    .carousel-item:not(.has-mobile-image) .hero-slide-bg {
        position: relative;
        inset: auto;
        display: block;
        flex: none;
        width: 100%;
        height: auto;
        min-height: 0;
        object-fit: contain;
        object-position: center;
        transform: none;
        animation: none;
    }

    .hero-slide-content {
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: auto;
        z-index: 2;
        min-height: 0;
        align-items: flex-end;
        padding: 0 0.75rem 1.65rem;
    }

    .hero-slide-content .site-header-container {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-promo-card {
        width: 100%;
        max-width: none;
        padding: 0.95rem 0.9rem 0.85rem;
        color: #fff;
        background: rgba(255, 255, 255, 0.22);
        border-color: rgba(255, 255, 255, 0.42);
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(18px) saturate(1.45);
        -webkit-backdrop-filter: blur(18px) saturate(1.45);
    }

    .hero-promo-tag,
    .hero-promo-title,
    .hero-promo-text {
        color: #fff;
        text-shadow: 0 1px 10px rgba(0, 0, 0, 0.28);
    }

    .hero-promo-title {
        font-size: clamp(1rem, 4.4vw, 1.25rem);
        line-height: 1.08;
    }

    .hero-promo-text {
        -webkit-line-clamp: 3;
        font-size: 0.82rem;
    }

    .hero-shape-side {
        display: none;
    }

    .hero-promo-slider .carousel-indicators.hero-carousel-dots {
        left: auto;
        right: 0.65rem;
        bottom: 0.55rem;
        justify-content: flex-end;
    }
}

@media (max-width: 575.98px) {
    .hero-promo-card {
        width: 100%;
        max-width: none;
        padding: 0.9rem 0.85rem 0.8rem;
    }

    .hero-promo-tag {
        margin-bottom: 0.55rem;
    }

    .hero-promo-title {
        margin-bottom: 0.65rem;
    }

    .hero-promo-text {
        margin-bottom: 0.9rem;
    }

    .hero-promo-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-promo-card,
    .hero-shape,
    .hero-promo-tag,
    .hero-promo-title,
    .hero-promo-text,
    .hero-promo-btn,
    .hero-slide-bg {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }

    .hero-shape {
        opacity: 0.95;
        transform: skewX(-28deg);
    }
}
