.header-slider {
  position: relative;
  overflow: hidden;
  height: 100svh;
  min-height: 600px;
  max-height: 900px;
}

/* Gradient overlay – tamsus apačioje ir kairėje, permatomas dešinėje */
.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
  z-index: 1;
}

/* ─── Content block ─── */
.header-slider__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 80px;
  padding-top: 80px; /* header clearance */
  gap: 20px;

  @media (max-width: 768px) {
    padding: 80px 28px 40px;
    justify-content: flex-end;
    padding-bottom: 80px;
  }
}

/* Eyebrow label */
.header-slider__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6fbe4f;
}

.header-slider__eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: #6fbe4f;
  flex-shrink: 0;
}

/* Main headline */
.header-slider__headline {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 660px;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

/* Optional subtitle */
.header-slider__sub {
  font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  font-family: 'Work Sans', Arial, sans-serif;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}

/* Scroll indicator */
.header-slider__scroll {
  position: absolute;
  bottom: 36px;
  left: 80px;
  z-index: 2;

  @media (max-width: 768px) {
    left: 50%;
    transform: translateX(-50%);
  }
}

.header-slider__scroll-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.6);
    transform-origin: top;
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: top;
  }
}

/* ─── Images ─── */
.header-slider-actions {
  position: absolute;
  left: 80px;
  right: 80px;
  bottom: 34px;
  z-index: 3;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.header-slider-actions__link {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px 13px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  color: #102d1b;
  text-decoration: none;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.header-slider-actions__link:hover {
  transform: translateY(-2px);
  border-color: rgba(111, 190, 79, 0.8);
  background: #fff;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.header-slider-actions__text {
  min-width: 0;
  font-family: 'Arial', sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.header-slider-actions__icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: #eaf6e7;
  color: #096542;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.header-slider-actions__link:hover .header-slider-actions__icon {
  background: #6fbe4f;
  color: #fff;
  transform: translateX(2px);
}

.header-slider__images {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.header-slider__slide {
  position: absolute;
  inset: 0;
}

.header-slider__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slideShow 15s infinite;
  opacity: 0;
}

/* Delay ant IMG */
.header-slider__slide:nth-child(1) img {
  animation-delay: 0s;
}
.header-slider__slide:nth-child(2) img {
  animation-delay: 5s;
}
.header-slider__slide:nth-child(3) img {
  animation-delay: 10s;
}

@keyframes slideShow {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  33% {
    opacity: 1;
  }
  41% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (max-width: 1100px) {
  .header-slider-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
  }
}

@media (max-width: 768px) {
  .header-slider-actions {
    left: 24px;
    right: 24px;
    bottom: calc(45% + 18px);
    grid-template-columns: 1fr;
    gap: 8px;
    max-width: none;
  }

  .header-slider-actions__link {
    min-height: 48px;
    padding: 10px 12px 10px 16px;
    border-radius: 12px;
  }

  .header-slider-actions__text {
    font-size: 13px;
  }

  .header-slider-actions__icon {
    width: 26px;
    height: 26px;
  }
}
