.hero-section {
  position: relative;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.60);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  height: 100%;
  color: var(--white);
  padding: 0rem 9rem;
}

.hero-tagline {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: var(--weight-600);
  letter-spacing: 2px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.85);
}

.hero-tagline svg {
  opacity: 0.5;
}

.hero-content h1 {
  font-family: var(--font-title);
  font-size: 4.0625rem;
  line-height: 1.1;
  margin: 0 0 24px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.hero-content h1 .gradient-text {
  background: var(--white);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-content p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  line-height: 1.6;
  margin: 0 0 32px 0;
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.82);
}

.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-header);
  font-size: 0.875rem;
  line-height: 1;
  text-transform: uppercase;
  font-weight: var(--weight-header-bold);
  text-decoration: none;
  letter-spacing: 1.2px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  position: relative;
  background-image: var(--gradient);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 2px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.hero-cta:hover {
  background-image: var(--gradient);
  transform: translateY(-2px);
}

.hero-cta-outline {
  background: transparent;
  background-image: none;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero-cta-outline::before {
  display: none;
}

.hero-cta-outline:hover {
  background: rgba(255, 255, 255, 0.08);
  background-image: none;
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

@media (max-width: 1400px) {
  .hero-content {
    padding: 0rem 3rem;
  }
}

@media (max-width: 998px) {
  .hero-content {
    padding: 0rem 2rem;
  }

  .hero-tagline {
    font-size: 0.6875rem;
    gap: 10px;
    margin-bottom: 16px;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .hero-content p {
    font-size: 1.125rem;
    margin-bottom: 28px;
  }

  .hero-cta {
    padding: 14px 32px;
    font-size: 0.9375rem;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 0rem 1rem;
  }

  .hero-tagline {
    font-size: 0.625rem;
    gap: 8px;
    margin-bottom: 14px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    gap: 12px;
    flex-direction: column;
    width: 100%;
  }

  .hero-cta {
    padding: 12px 28px;
    font-size: 0.875rem;
    width: 100%;
    max-width: 250px;
  }
}

@media (max-width: 386px) {
  .hero-tagline {
    font-size: 0.75rem;
    gap: 6px;
  }
}

.hero-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
}

.hero-progress-bar {
  height: 3px;
  width: 0%;
  background: rgba(255, 255, 255, 0.6);
  transition: width 8000ms linear;
}

/* --- Przycisk pauzy pokazu slajdow (WCAG 2.2.2 Pause, Stop, Hide) ---
   Dodane 2026-08-04. Ruch trwajacy ponad 5 s musi dac sie zatrzymac. */
.hero-pause {
  position: absolute;
  right: 24px;
  bottom: 28px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  cursor: pointer;
}

.hero-pause:hover {
  background: rgba(0, 0, 0, 0.65);
}

.hero-pause:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.hero-pause-icon {
  display: block;
  width: 10px;
  height: 12px;
  border-left: 3px solid #fff;
  border-right: 3px solid #fff;
}

.hero-pause.is-paused .hero-pause-icon {
  width: 0;
  height: 0;
  border-left: 10px solid #fff;
  border-right: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .hero-progress-bar {
    transition: none !important;
  }
}
