.ekovac-hero-slider {
  --hero-control-size: 2.75rem;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(34rem, 82vh, 58rem);
  background: #174833;
  color: #fff;
}

.ekovac-hero-slider--medium {
  min-height: clamp(30rem, 72vh, 50rem);
}

.ekovac-hero-slider--compact {
  min-height: clamp(26rem, 62vh, 42rem);
}

.ekovac-hero-slider__track,
.ekovac-hero-slide,
.ekovac-hero-slide__picture,
.ekovac-hero-slide__image,
.ekovac-hero-slide__overlay {
  position: absolute;
  inset: 0;
}

.ekovac-hero-slide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 520ms ease, visibility 520ms ease;
  visibility: hidden;
}

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

.ekovac-hero-slide__picture {
  display: block;
}

.ekovac-hero-slide__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.ekovac-hero-slide__overlay {
  background:
    linear-gradient(90deg, rgba(8, 37, 25, calc(var(--hero-overlay, .65) + .14)) 0%, rgba(8, 37, 25, calc(var(--hero-overlay, .65) + .08)) 38%, rgba(18, 82, 56, calc(var(--hero-overlay, .65) - .1)) 62%, rgba(18, 82, 56, .10) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, .14) 0%, rgba(0, 0, 0, .05) 50%, rgba(0, 0, 0, .38) 100%);
}

.ekovac-hero-slide__inner {
  position: relative;
  z-index: 2;
  min-height: inherit;
  width: min(100% - 2rem, var(--ekovac-container, 1180px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: clamp(5rem, 12vh, 8rem) 0 clamp(5.5rem, 11vh, 7rem);
}

.ekovac-hero-slide__content {
  width: min(56rem, 72%);
}

.ekovac-hero-slide--text-center .ekovac-hero-slide__inner {
  justify-content: center;
  text-align: center;
}

.ekovac-hero-slide--text-right .ekovac-hero-slide__inner {
  justify-content: flex-end;
}

.ekovac-hero-slide__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  margin: 0 0 1.25rem;
  padding: .4rem .9rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .92);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.ekovac-hero-slide__title {
  max-width: 22ch;
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.ekovac-hero-slide__subtitle {
  max-width: 48rem;
  margin: 1.4rem 0 0;
  color: rgba(255, 255, 255, .92);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,.25);
}

.ekovac-hero-slide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-top: 2.25rem;
}

.ekovac-hero-slide--text-center .ekovac-hero-slide__actions {
  justify-content: center;
}

.ekovac-hero-slide__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: .75rem 1.6rem;
  border-radius: 999px;
  font-size: .9375rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ekovac-hero-slide__button:focus-visible,
.ekovac-hero-slider button:focus-visible {
  outline: 3px solid #f9c74f;
  outline-offset: 3px;
}

.ekovac-hero-slide__button:hover {
  transform: translateY(-1px);
}

.ekovac-hero-slide__button--primary {
  background: #f9c74f;
  color: #173922;
  box-shadow: 0 4px 18px rgba(249, 199, 79, .35);
}

.ekovac-hero-slide__button--primary:hover {
  background: #ffd166;
  box-shadow: 0 6px 22px rgba(249, 199, 79, .45);
}

.ekovac-hero-slide__button--secondary {
  border: 1.5px solid rgba(255, 255, 255, .5);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  backdrop-filter: blur(8px);
}

.ekovac-hero-slide__button--secondary:hover {
  background: rgba(255, 255, 255, .2);
  border-color: rgba(255, 255, 255, .7);
}

.ekovac-hero-slider__controls {
  position: absolute;
  z-index: 4;
  left: max(1rem, calc((100vw - var(--ekovac-container, 1180px)) / 2));
  right: max(1rem, calc((100vw - var(--ekovac-container, 1180px)) / 2));
  bottom: clamp(1rem, 4vh, 2rem);
  display: flex;
  align-items: center;
  gap: .7rem;
}

.ekovac-hero-slider__arrow,
.ekovac-hero-slider__pause {
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(11, 36, 25, .58);
  color: #fff;
  backdrop-filter: blur(10px);
}

.ekovac-hero-slider__arrow {
  width: var(--hero-control-size);
  height: var(--hero-control-size);
  border-radius: 999px;
  font-size: 2rem;
  line-height: 1;
}

.ekovac-hero-slider__pause {
  min-height: 2.5rem;
  padding: 0 .8rem;
  border-radius: .5rem;
  font-weight: 800;
}

.ekovac-hero-slider__dots {
  display: flex;
  align-items: center;
  gap: .45rem;
}

.ekovac-hero-slider__dot {
  width: .78rem;
  height: .78rem;
  border: 1px solid rgba(255, 255, 255, .75);
  border-radius: 999px;
  background: rgba(255, 255, 255, .25);
}

.ekovac-hero-slider__dot.is-active {
  width: 2rem;
  background: #f9c74f;
  border-color: #f9c74f;
}

.ekovac-hero-slider__counter {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  min-height: 2.5rem;
  padding: 0 .8rem;
  border-radius: .5rem;
  background: rgba(11, 36, 25, .58);
  color: rgba(255, 255, 255, .9);
  font-weight: 800;
  backdrop-filter: blur(10px);
}

@media (max-width: 720px) {
  .ekovac-hero-slider {
    min-height: 42rem;
  }

  .ekovac-hero-slide__overlay {
    background: linear-gradient(180deg, rgba(8, 37, 25, .45) 0%, rgba(8, 37, 25, .72) 55%, rgba(8, 37, 25, .90) 100%);
  }

  .ekovac-hero-slide__content {
    width: 100%;
  }

  .ekovac-hero-slide__inner {
    align-items: flex-end;
    padding-bottom: 7rem;
  }

  .ekovac-hero-slide__title {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.1;
  }

  .ekovac-hero-slide__subtitle {
    max-width: none;
    font-size: 1rem;
  }

  .ekovac-hero-slide__button {
    min-height: 2.75rem;
    padding: .65rem 1.3rem;
    font-size: .875rem;
  }

  .ekovac-hero-slider__controls {
    flex-wrap: wrap;
  }

  .ekovac-hero-slider__counter {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ekovac-hero-slide,
  .ekovac-hero-slide__button {
    transition: none;
  }

  .ekovac-hero-slide__image {
    transform: none;
  }
}
