/* Film osadzony w treści: odtwarzacz 16:9 z zaokrąglonymi rogami i podpisem pod spodem. */
.cw-video { margin: 0; width: 100%; max-width: 760px; }
.cw-video .cw-video__frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #f4f3f0; box-shadow: 0 10px 28px rgba(16, 26, 23, .1); }
.cw-video .cw-video__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.cw-video .cw-video__poster { position: absolute; inset: 0; display: block; cursor: pointer; }
.cw-video .cw-video__poster img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; transition: transform .4s; }
.cw-video .cw-video__poster:hover img { transform: scale(1.02); }
/* Przycisk w wolnym miejscu okładki: pod tytułem (lewy dół), na telefonie w prawym dolnym rogu, na zdjęciu */
.cw-video .cw-video__play {
  position: absolute; left: 7.2%; bottom: 9%;
  width: clamp(48px, 10%, 76px); aspect-ratio: 1; height: auto;
  border-radius: 50%;
  background: #01473d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6.5l10 5.5-10 5.5z' fill='%23fff'/%3E%3C/svg%3E") 56% 50% / 52% no-repeat;
  box-shadow: 0 0 0 6px rgba(1, 71, 61, .16), 0 10px 22px rgba(0, 0, 0, .22);
  transition: transform .2s, background-color .2s;
}
.cw-video .cw-video__poster:hover .cw-video__play { transform: scale(1.08); background-color: #00362e; }
.cw-video .cw-video__poster:focus-visible { outline: 3px solid #01473d; outline-offset: -6px; border-radius: 18px; }
/* Okładka bez napisów: przycisk na środku */
.cw-video--clean .cw-video__play { left: 50%; top: 50%; bottom: auto; translate: -50% -50%; }
.cw-video--clean .cw-video__frame { background: #fff; }
/* Dowolny element z data-cw-src po kliknięciu (np. zdjęcie w sekcji): film w proporcji 16:9 */
.cw-video-live { position: relative; aspect-ratio: 16 / 9; width: 100%; background: #000; }
.cw-video-live > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 560px) { .cw-video:not(.cw-video--clean) .cw-video__play { left: auto; right: 4%; bottom: 6%; box-shadow: 0 0 0 4px rgba(255, 255, 255, .7), 0 8px 18px rgba(0, 0, 0, .3); } }
.cw-video .cw-video__cap { margin: 10px 2px 0; font-size: 15px; font-weight: 700; line-height: 1.35; color: #101a17; }
.cw-video .cw-video__kicker { margin-right: 6px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #59645f; }

/* Rezerwacja: film schowany pod „Pierwszy raz?”, żeby nie spychał formularza */
.cw-video-more { margin: 0 0 28px; max-width: 760px; }
.cw-video-more > summary { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; font-weight: 700; color: #01473d; }
.cw-video-more > summary::-webkit-details-marker { display: none; }
.cw-video-more > summary::before {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: #01473d url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l9 5-9 5z' fill='%23fff'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.cw-video-more[open] > summary { margin-bottom: 14px; }

/* Film z pliku MP4 (odtwarzacz przeglądarki): cały obraz w ramce 16:9, czarne tło */
.cw-video .cw-video__frame video, .cw-video-live > video { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: #000; object-fit: contain; border: 0; }
