/* Hero slider - simple JS-based replacement for Revolution Slider */
.hero-section .content {
    max-width: 100%;
    padding: 0;
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 1;
}

.hero-slide__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-slide__shape {
    position: absolute;
    top: 50%;
    right: 0;
    width: 800px;
    height: 800px;
    margin-top: -400px;
    margin-right: 100px;
    background: rgba(255, 255, 255, 0.33);
    border-radius: 50%;
    z-index: 1;
}

.hero-slide__pattern {
    position: absolute;
    z-index: 2;
}

.hero-slide__pattern--desktop {
    top: 0;
    right: 0;
    bottom: 0;
    width: 580px;
    height: 100%;
}

.hero-slide__pattern--desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide__pattern--mobile {
    bottom: -150px;
    left: 50%;
    width: 100%;
    max-width: 1400px;
    transform: translateX(-50%);
}

.hero-slide__pattern--mobile img {
    width: 100%;
    height: auto;
}

.hero-slide__content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-slide__left {
    flex: 0 0 50%;
    max-width: 50%;
    padding-right: 30px;
}

.hero-slide__title {
    font-size: 60px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -3px;
    color: #16202c;
    margin: 0 0 20px;
}

.hero-slide__subtitle {
    font-size: 22px;
    line-height: 1.5;
    font-weight: 400;
    color: rgba(22, 32, 44, 0.8);
    margin-bottom: 30px;
}

.hero-slide__btn {
    display: inline-flex;
    align-items: center;
}

.hero-slide__right {
    flex: 0 0 50%;
    max-width: 50%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

.hero-slide__product-img {
    max-width: 100%;
    max-height: 70vh;
}

.hero-slide__product-img img {
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.hero-nav-next {
    position: absolute !important;
    bottom: 20px;
    right: 10px;
    margin-right: 30px;
    z-index: 10;
    min-width: 150px;
    min-height: 80px;
}

/* Mobile */
@media (max-width: 991px) {
    .hero-slider {
        min-height: 650px;
    }

    .hero-slide__content {
        flex-direction: column;
        text-align: center;
    }

    .hero-slide__left {
        flex: 0 0 100%;
        max-width: 100%;
        padding: 0 0 30px;
        order: 1;
    }

    .hero-slide__right {
        flex: 0 0 100%;
        max-width: 100%;
        order: 2;
        justify-content: center;
    }

    .hero-slide__title {
        font-size: 50px;
        letter-spacing: -2px;
        padding: 0 50px;
    }

    .hero-slide__subtitle {
        font-size: 20px;
        padding: 0 50px;
    }

    .hero-slide__product-img {
        max-height: 50vh;
    }

    .hero-slide__product-img img {
        max-height: 50vh;
    }

    .hero-slide__shape {
        display: none;
    }

    .hero-slide__pattern--desktop {
        display: none !important;
    }

    .hero-nav-next {
        bottom: 90px;
        left: 20px;
        right: 20px;
        width: calc(100% - 40px);
        margin-left: 0;
        transform: none;
    }
}

@media (max-width: 777px) {
    .hero-slide__product-img {
        max-height: 45vh;
    }

    .hero-slide__product-img img {
        max-height: 45vh;
    }

    .hero-nav-next {
        bottom: 80px;
        min-width: unset;
        min-height: 60px;
    }
}

@media (max-width: 479px) {
    .hero-slider {
        min-height: 600px;
    }

    .hero-slide__title {
        font-size: 36px;
        padding: 0 20px;
    }

    .hero-slide__subtitle {
        font-size: 18px;
        padding: 0 20px;
    }

    .hero-slide__product-img img {
        max-height: 40vh;
    }
}
