/* Full-bleed helper – pozwala wyjść poza .container/.wrap */
.full-bleed {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  width: 100vw;
  max-width: 100vw;
}
html, body { overflow-x: hidden; }

/* Sekcja wideo – poprawiona responsywność */
.video-section {
  position: relative;
  width: 100%;        /* pełna szerokość w obrębie full-bleed */
  height: 80vh;       /* kontrolujesz wysokość argumentem PHP; to jest fallback */
  overflow: hidden;
}

.video-wrapper {
  position: absolute;
  inset: 0;
}

/* <video> pełne wypełnienie kontenera */
.video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Nakładka */
.video-overlay {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
  padding: 24px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--video-overlay, rgba(0,0,0,.35)) 40%, transparent), transparent 60%);
}

.video-overlay h2 { font-size: 2.2rem; margin: 0 0 1rem; }
.video-overlay p, .video-text { font-size: 1.1rem; margin: 0 auto; max-width: 900px; }

@media (max-width: 768px) {
  .video-section { height: 60vh; }
  .video-overlay h2 { font-size: 1.6rem; }
  .video-overlay p, .video-text { font-size: 1rem; }
}
