/* ==========================================================================
   CMP-HERO-V1
   ==========================================================================
   Pełnoekranowy hero z video BG, ciemnym overlayem i tekstem po lewej.
   Kolory hardkodowane (białe teksty, ciemny overlay) - sekcja ma wyglądać
   tak samo w light i dark mode, bo tło zawsze jest ciemne (video + overlay).
   ========================================================================== */

.cmp-hero-v1 {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;

  /* Fallback color pod video (na wolnych łączach zanim video załaduje) */
  background-color: #1a1a1c;
}

/* --- Video background --- */
.cmp-hero-v1__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  pointer-events: none;
}

/* --- Overlay (kontrast pod tekstem) --- */
.cmp-hero-v1__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 0, 0, 0.55);
}

/* --- Content wrapper --- */
.cmp-hero-v1__content {
  width: 100%;
  padding-block: 140px 60px;
  padding-inline: var(--container-padding);
}

.cmp-hero-v1__inner {
  max-width: 720px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: cmp-hero-v1-fade-up 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cmp-hero-v1-fade-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --- Typography --- */
.cmp-hero-v1__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0 0 24px 0;
  text-wrap: balance;
}

.cmp-hero-v1__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  max-width: 52ch;
  margin: 0 auto 36px auto;
}

/* --- CTA --- */
.cmp-hero-v1__cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.cmp-hero-v1__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #ffffff;
  color: #111111;
  padding: 15px 30px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

.cmp-hero-v1__cta:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #111111;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, 0.6);
}

.cmp-hero-v1__cta:active {
  transform: translateY(0);
}

.cmp-hero-v1__cta--secondary {
  background-color: #ffffff;
  color: #111111;
  border: 1px solid #ffffff;
  box-shadow: none;
}

.cmp-hero-v1__cta--secondary:hover {
  background-color: rgba(255, 255, 255, 0.85);
  color: #111111;
  box-shadow: none;
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .cmp-hero-v1__inner {
    animation: none;
  }
  .cmp-hero-v1__bg {
    display: none;
  }
  .cmp-hero-v1 {
    background-color: #1a1a1c;
  }
}

/* --- Mobile adjust --- */
@media (max-width: 767px) {
  .cmp-hero-v1__content {
    padding-block: 100px 40px;
  }

  .cmp-hero-v1__overlay {
    /* Na mobile więcej przyciemnienia (pion często mniej kontrastowe) */
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.5) 0%,
      rgba(0, 0, 0, 0.7) 100%
    );
  }
}
