
.hero-slider {
    position: relative;
    width: 100%;
    height: clamp(480px, 44vw, 650px);
    overflow: hidden;
    background: #f4eefa;
    isolation: isolate;
}

.hero-slider__track,
.hero-slider__slide,
.hero-slider__background,
.hero-slider__overlay {
    position: absolute;
    inset: 0;
}

.hero-slider__slide {
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity .8s ease, visibility .8s ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider__background {
    overflow: hidden;
}

.hero-slider__background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1.06);
    transition: transform 7s ease;
}

.hero-slider__slide.is-active .hero-slider__background img {
    transform: scale(1);
}

.hero-slider__overlay {
    /*background: linear-gradient(
        90deg,
        rgba(244,238,250,var(--overlay-opacity)) 0%,
        rgba(244,238,250,calc(var(--overlay-opacity) * .85)) 30%,
        rgba(244,238,250,.15) 70%,
        transparent 100%
    );*/
}

.hero-slider__inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-slider__content {
    max-width: 560px;
    padding-bottom: 35px;
}

.hero-slider__eyebrow {
    display: inline-block;
    padding: 9px 15px;
    margin: 0 0 22px;
    background: rgba(255,255,255,.8);
    border-radius: 30px;
    color: #956aab;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0px;
}


.hero-slider__title {
    margin: 0 0 22px;
    color: #38253e;
    font-family: 'Inter', sans-serif;
    font-size: clamp(38px, 4.5vw, 64px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.035em;
}


.hero-slider__description {
    max-width: 430px;
    margin: 0 0 30px;
    color: #6d5b70;
    font-size: 16px;
    line-height: 1.8;
}

.hero-slider__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 15px 25px;
    background: #9980b9;
    color: #fff;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background .25s ease, transform .25s ease;
}

.hero-slider__button:hover {
    background: #80649e;
    color: #fff;
    transform: translateY(-2px);
}

.hero-slider__navigation {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.hero-slider__dots,
.hero-slider__arrows {
    display: flex;
    align-items: center;
    gap: 9px;
    pointer-events: auto;
}

.hero-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: rgba(153,128,185,.4);
    cursor: pointer;
    transition: width .3s ease, background .3s ease;
}

.hero-slider__dot.is-active {
    width: 32px;
    background: #9980b9;
}

.hero-slider__arrow {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(153,128,185,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.9);
    color: #6a4b7e;
    font-size: 20px;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.hero-slider__arrow:hover {
    background: #9980b9;
    color: #fff;
}

.hero-slider__slide.is-active .hero-slider__eyebrow,
.hero-slider__slide.is-active .hero-slider__title,
.hero-slider__slide.is-active .hero-slider__description,
.hero-slider__slide.is-active .hero-slider__button {
    animation: heroFadeUp .7s ease both;
}

.hero-slider__slide.is-active .hero-slider__title {
    animation-delay: .1s;
}

.hero-slider__slide.is-active .hero-slider__description {
    animation-delay: .2s;
}

.hero-slider__slide.is-active .hero-slider__button {
    animation-delay: .3s;
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 145px;
    }

    .hero-slider__background img {
        object-position: 65% center;
    }

    .hero-slider__overlay {
    /*background: linear-gradient(
        0deg,
        rgba(153, 128, 185, 0.98) 0%,
        rgba(153, 128, 185, 0.85) 32%,
        rgba(153, 128, 185, 0.30) 75%,
        transparent 100%
    );*/
}
.hero-slider__dot.is-active {
  width: 32px;
  background: #c8abee;
}
.hero-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: rgba(215, 201, 233, 0.4);
  cursor: pointer;
  transition: width .3s ease, background .3s ease;
}

    .hero-slider__inner {
        align-items: flex-end;
        padding-bottom: 100px;
    }

    .hero-slider__content {
        max-width: 100%;
        padding-bottom: 0;
    }

    .hero-slider__title {
        font-size: clamp(32px, 8vw, 44px);
        letter-spacing: -1.2px;
        margin-bottom: 15px;
    }

    .hero-slider__description {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .hero-slider__eyebrow {
        margin-bottom: 15px;
        font-size: 10px;
    }

    .hero-slider__navigation {
        bottom: 25px;
    }

    .hero-slider__arrow {
        width: 38px;
        height: 38px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider__slide,
    .hero-slider__background img,
    .hero-slider__slide.is-active .hero-slider__eyebrow,
    .hero-slider__slide.is-active .hero-slider__title,
    .hero-slider__slide.is-active .hero-slider__description,
    .hero-slider__slide.is-active .hero-slider__button {
        animation: none;
        transition: none;
    }
}

.hero-slider__background picture {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slider__background picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Skaidriu perjungimas tik per opacity */
.hero-slider__slide {
    opacity: 0;
    visibility: hidden;
    transform: none !important;
    transition: opacity .8s ease, visibility .8s ease;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none !important;
}

/* Pasalinamas nuotrauku judejimas ir zoom */
.hero-slider__background,
.hero-slider__background picture,
.hero-slider__background img,
.hero-slider__slide.is-active .hero-slider__background img {
    transform: none !important;
    animation: none !important;
    transition: none !important;
}

/* Pasalinamas teksto judejimas */
.hero-slider__eyebrow,
.hero-slider__title,
.hero-slider__description,
.hero-slider__button,
.hero-slider__slide.is-active .hero-slider__eyebrow,
.hero-slider__slide.is-active .hero-slider__title,
.hero-slider__slide.is-active .hero-slider__description,
.hero-slider__slide.is-active .hero-slider__button {
    animation: none !important;
    transform: none !important;
}

/* Mygtuko hover be judejimo */
.hero-slider__button:hover {
    transform: none !important;
}

/* Individualios skaidriu spalvos */

.hero-slider__slide .hero-slider__title {
    color: var(--slide-title-color, #38253E);
}

.hero-slider__slide .hero-slider__description {
    color: var(--slide-description-color, #6D5B70);
}

.hero-slider__slide .hero-slider__eyebrow {
    background-color: var(--slide-eyebrow-bg, #FFFFFF);
    color: var(--slide-eyebrow-color, #956AAB);
}

.hero-slider__slide .hero-slider__button {
    background-color: var(--slide-button-bg, #9980B9);
    color: var(--slide-button-color, #FFFFFF);
}

.hero-slider__slide .hero-slider__button:hover {
    background-color: var(--slide-button-bg, #9980B9);
    color: var(--slide-button-color, #FFFFFF);
}
