/* Sekcja hero — osobny plik do łatwej edycji */

@keyframes hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  position: relative;
  background: var(--tlo-biale);
}

.hero__vibe {
  width: 100%;
  line-height: 0;
  overflow: hidden;
}

.hero__vibe img {
  display: block;
  width: 100%;
  height: 4.5rem;
  object-fit: cover;
  object-position: center;
}

.hero__vibe--bottom img {
  height: 3.5rem;
  object-position: bottom;
}

.hero__content {
  position: relative;
  padding: 3rem 1.5rem;
  overflow: hidden;
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/tlo2.jpg") center 18% / cover no-repeat;
  filter: blur(2px) saturate(1.15);
  transform: scale(1.04);
  z-index: 0;
}

.hero__content::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.68) 45%,
    rgba(255, 255, 255, 0.52) 100%
  );
  z-index: 1;
}

.hero__inner {
  max-width: 72rem;
  margin: 0 auto;
  width: 100%;
  text-align: left;
  position: relative;
  z-index: 2;
  animation: hero-fade-in 0.9s ease-out forwards;
}

.hero__promo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.hero__badge {
  display: inline-block;
  background: var(--niebieski-ciemny);
  color: var(--tekst-jasny);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius);
}

.hero__promo h1 {
  color: var(--niebieski-ciemny);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
  max-width: 22ch;
}

.hero__subtitle {
  color: var(--tekst-drugi);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 36rem;
}

@media (max-width: 40rem) {
  .hero__content {
    padding-top: 5rem;
    padding-bottom: 2.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__inner {
    animation: none;
  }
}

@media print {
  .hero__vibe,
  .hero__content::before,
  .hero__content::after {
    display: none;
  }
}
