/* ==========================================================================
   HERO SLIDER
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--color-beige-light);
}

.hero__slides {
  display: flex;
  transition: transform var(--transition-base);
}

.hero__slide {
  flex: 0 0 100%;
  position: relative;
  min-height: 480px;
}

.hero__media {
  position: absolute;
  inset: 0;
  height: 100%;
  background-size: cover;
  background-position: center top;
  z-index: 0;
}

@media (max-width: 767.98px) {
  .hero__media {
    background-image: var(--hero-mobile-bg) !important;
    background-position: var(--hero-mobile-focal-x, 50%) var(--hero-mobile-focal-y, 50%) !important;
  }
}

/* Tekst nałożony na zdjęcie, w lewym dolnym rogu, na czytelnym, jasnym tle —
   działa niezależnie od tego, co akurat jest na zdjęciu w tym miejscu. */
.hero__content {
  position: absolute;
  left: var(--space-md);
  bottom: var(--space-md);
  z-index: 2;
  margin: 0;
  background: rgba(255, 255, 255, var(--hero-overlay-opacity, 0.92));
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  max-width: 300px;
}

.hero__content .eyebrow { color: var(--color-primary); }

.hero__title {
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1.05;
}
.hero__title em {
  display: block;
  font-style: italic;
  color: var(--color-primary);
  font-family: var(--font-heading);
}

.hero__text {
  margin-block: var(--space-md);
  color: var(--color-text-muted);
  max-width: 40ch;
}

/* Kropki nawigacyjne */
.hero__dots {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  padding-block: var(--space-md);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-border);
  transition: background var(--transition-fast), transform var(--transition-fast);
}
.hero__dot.is-active {
  background: var(--color-black);
  transform: scale(1.2);
}

/* Strzałki (widoczne od tabletu) */
.hero__arrow {
  display: none;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.hero__arrow--prev { left: var(--space-md); }
.hero__arrow--next { right: var(--space-md); }
.hero__arrow svg { width: 18px; height: 18px; }

@media (min-width: 768px) {
  .hero__slide {
    min-height: 560px;
  }
  .hero__content {
    top: 0;
    left: 50%;
    right: 0;
    bottom: 0;
    width: auto;
    margin: 0;
    transform: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: none;
    padding: var(--space-3xl) var(--space-xl);
  }
  .hero__arrow { display: flex; z-index: 3; }
  .hero__dots { position: absolute; bottom: var(--space-md); left: 50%; transform: translateX(-50%); padding: 0; z-index: 3; }
}
