.hero-carousel {
    position: relative;
    width: 80%;
    margin: 0 auto;
    overflow: hidden;
    background: #111111;
    border-radius: 12px;
}

.hero-carousel__viewport {
    position: relative;
    width: 100%;
    height: 350px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateX(40px);
    transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    z-index: 2;
}

.hero-slide__media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-slide__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 6s ease;
}

.hero-slide.is-active .hero-slide__media img {
    transform: scale(1.08);
}

.hero-slide__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.68) 0%,
        rgba(0, 0, 0, 0.42) 42%,
        rgba(0, 0, 0, 0.12) 100%
    );

    display: flex;
    align-items: center;
}

.hero-slide__content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 70px;
    color: #ffffff;
    box-sizing: border-box;
}

.hero-slide__title {
    margin: 0 0 18px 0;
    max-width: 700px;
    font-size: 48px;
    line-height: 1.1;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-slide__text {
    margin: 0 0 28px 0;
    max-width: 650px;
    font-size: 1.5em;
    line-height: 1.6;
    color: #f4f4f4;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.30);
}

.hero-slide__btn {
    display: inline-block;
    min-height: 46px;
    line-height: 46px;
    padding: 0 24px;
    background: #ffffff;
    color: #111111;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-slide__btn:hover {
    background: #d90000;
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-carousel__nav {
    position: absolute;
    top: 50%;
    width: 52px;
    height: 52px;
    margin-top: -26px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    font-size: 30px;
    line-height: 52px;
    text-align: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.25s ease, transform 0.25s ease;
}

.hero-carousel__nav:hover {
    background: rgba(0, 0, 0, 0.60);
    transform: scale(1.05);
}

.hero-carousel__nav--prev {
    left: 18px;
}

.hero-carousel__nav--next {
    right: 18px;
}

.hero-carousel__dots {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.hero-carousel__dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.hero-carousel__dot:hover {
    background: rgba(255, 255, 255, 0.75);
}

.hero-carousel__dot.is-active {
    background: #ffffff;
    transform: scale(1.2);
}

@media (max-width: 1199px) {
    .hero-carousel__viewport {
        height: 500px;
    }

    .hero-slide__content {
        padding: 0 50px;
    }

    .hero-slide__title {
        font-size: 40px;
    }

    .hero-slide__text {
        font-size: 17px;
    }
}

@media (max-width: 991px) {
    .hero-carousel__viewport {
        height: 460px;
    }

    .hero-slide__content {
        padding: 0 35px;
    }

    .hero-slide__title {
        max-width: 100%;
        font-size: 34px;
    }

    .hero-slide__text {
        max-width: 100%;
        font-size: 16px;
    }

    .hero-carousel__nav {
        width: 46px;
        height: 46px;
        line-height: 46px;
        font-size: 26px;
        margin-top: -23px;
    }
}

@media (max-width: 767px) {
    .hero-carousel__viewport {
        height: 420px;
    }

    .hero-slide {
        transform: none;
    }

    .hero-slide__overlay {
        background: linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.58) 0%,
            rgba(0, 0, 0, 0.35) 45%,
            rgba(0, 0, 0, 0.50) 100%
        );
    }

    .hero-slide__content {
        padding: 0 20px 55px 20px;
        display: flex;
        flex-direction: column;
        justify-content: flex-end;
        height: 100%;
    }

    .hero-slide__title {
        font-size: 28px;
        line-height: 1.15;
        margin-bottom: 14px;
    }

    .hero-slide__text {
        font-size: 15px;
        line-height: 1.5;
        margin-bottom: 20px;
    }

    .hero-slide__btn {
        min-height: 42px;
        line-height: 42px;
        padding: 0 20px;
        font-size: 14px;
    }

    .hero-carousel__nav {
        width: 40px;
        height: 40px;
        line-height: 40px;
        font-size: 22px;
        margin-top: -20px;
    }

    .hero-carousel__nav--prev {
        left: 10px;
    }

    .hero-carousel__nav--next {
        right: 10px;
    }

    .hero-carousel__dots {
        bottom: 14px;
        gap: 8px;
    }

    .hero-carousel__dot {
        width: 10px;
        height: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slide__media img,
    .hero-carousel__nav,
    .hero-carousel__dot,
    .hero-slide__btn {
        transition: none;
    }

    .hero-slide.is-active .hero-slide__media img {
        transform: scale(1);
    }
}