.hero-carousel {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    background: #2a1b1a;
}

.hero-carousel__slides,
.hero-carousel__slide {
    min-height: 620px;
}

.hero-carousel__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

    .hero-carousel__slide.is-active {
        opacity: 1;
        pointer-events: auto;
    }

.hero-carousel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-carousel__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient( 90deg, rgba(23, 17, 14, 0.84) 0%, rgba(29, 19, 15, 0.62) 40%, rgba(28, 20, 18, 0.18) 72%, rgba(25, 17, 15, 0.42) 100% );
}

.hero-carousel__content {
    position: relative;
    z-index: 2;
    max-width: var(--sremac-container);
    margin: 0 auto;
    padding: 148px 22px 120px;
    color: #ffffff;
}

    .hero-carousel__content > * {
        max-width: 675px;
    }

.hero-carousel__title {
    font-family: "Source Serif 4", Georgia, serif;
    font-size: clamp(43px, 5.2vw, 74px);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.02;
    text-wrap: balance;
}

.hero-carousel__text {
    max-width: 610px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(16px, 1.5vw, 20px);
    line-height: 1.65;
}

.hero-carousel__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    margin-top: 31px;
    padding: 12px 23px;
    border: 1px solid var(--sremac-bordo);
    border-radius: 2px;
    background: var(--sremac-bordo);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

    .hero-carousel__button::after {
        margin-left: 11px;
        content: "→";
        font-size: 19px;
        line-height: 1;
    }

    .hero-carousel__button:hover {
        border-color: #ffffff;
        background: #ffffff;
        color: var(--sremac-bordo);
        transform: translateY(-2px);
    }

.hero-carousel__arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.66);
    border-radius: 50%;
    background: rgba(25, 17, 14, 0.28);
    color: #ffffff;
    cursor: pointer;
    font-family: "Source Serif 4", Georgia, serif;
    font-size: 37px;
    line-height: 1;
    opacity: 0.86;
    transform: translateY(-50%);
    transition: background-color 0.2s ease, opacity 0.2s ease;
}

    .hero-carousel__arrow:hover {
        background: var(--sremac-bordo);
        opacity: 1;
    }

.hero-carousel__arrow--previous {
    left: 28px;
}

.hero-carousel__arrow--next {
    right: 28px;
}

.hero-carousel__dots {
    position: absolute;
    z-index: 4;
    bottom: 31px;
    left: 50%;
    display: flex;
    gap: 11px;
    transform: translateX(-50%);
}

.hero-carousel__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

    .hero-carousel__dot:hover,
    .hero-carousel__dot.is-active {
        background: #ffffff;
        transform: scale(1.12);
    }

@media (max-width: 900px) {
    .hero-carousel,
    .hero-carousel__slides,
    .hero-carousel__slide {
        min-height: 555px;
    }

    .hero-carousel__content {
        padding-top: 130px;
    }

    .hero-carousel__arrow--previous {
        left: 16px;
    }

    .hero-carousel__arrow--next {
        right: 16px;
    }
}

@media (max-width: 700px) {
    .hero-carousel,
    .hero-carousel__slides,
    .hero-carousel__slide {
        min-height: 500px;
    }

    .hero-carousel__overlay {
        background: linear-gradient( 90deg, rgba(23, 17, 14, 0.84) 0%, rgba(24, 17, 14, 0.58) 100% );
    }

    .hero-carousel__content {
        padding: 114px 48px 82px 16px;
    }

    .hero-carousel__title {
        font-size: clamp(37px, 10vw, 54px);
    }

    .hero-carousel__text {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.55;
    }

    .hero-carousel__button {
        min-height: 46px;
        margin-top: 24px;
        padding: 10px 17px;
        font-size: 14px;
    }

    .hero-carousel__arrow {
        display: none;
    }

    .hero-carousel__dots {
        bottom: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide {
        transition: none;
    }

    .hero-carousel__button {
        transition: none;
    }
}
