/**
 * Prime Clinic — cinematic homepage hero slider.
 * Distinct path: assets/hero-slider.css (wins via later wp_enqueue).
 * Gold #c09c73. Full-bleed, ken-burns, fade-up, 320–1440, no horizontal scroll.
 */

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.main_slider-block,
#block-0.main_slider-block,
.pbl.main_slider-block {
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  margin: 0 !important;
  background: #12100e;
  overflow: hidden;
}

.main_slider-block .container,
.main_slider-block .first-screen-main,
.main_slider-block .first-screen-row {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.main_slider-block .first-screen-row .left,
.main_slider-block .first-screen-main .left,
.main_slider-block .left.fw-75,
.main_slider-block .left.p15 {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.main_slider-block .right,
.main_slider-block .first-screen-main .right,
.main_slider-block .main-screen-img,
.main_slider-block .play,
.main_slider-block .icons {
  display: none !important;
}

.main_slider-block .left.br-16,
.main_slider-block .left .back.br-16 {
  border-radius: 0 !important;
}

/* Hide sibling slick chrome once cinematic hero is in place */
.main_slider-block:has(.pc-cine-hero) .prime-hero-services,
.main_slider-block:has(.pc-cine-hero) .slick-arrow,
.main_slider-block:has(.pc-cine-hero) .slick-dots {
  display: none !important;
}

.pc-cine-hero,
.pc-cine-hero * {
  box-sizing: border-box;
}

.pc-cine-hero {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  background: #12100e;
  min-height: min(78vh, 680px);
  height: min(78vh, 680px);
}

.pc-cine-hero__track,
.pc-cine-hero__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pc-cine-hero__slide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.pc-cine-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 2;
}

.pc-cine-hero__visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.pc-cine-hero__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  transform: scale(1);
  will-change: transform;
}

.pc-cine-hero__slide.is-active .pc-cine-hero__photo {
  animation: pc-cine-kenburns 8.5s ease-out forwards;
}

.pc-cine-hero__slide:nth-child(even).is-active .pc-cine-hero__photo {
  animation-name: pc-cine-kenburns-alt;
}

@keyframes pc-cine-kenburns {
  from {
    transform: scale(1) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.07) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes pc-cine-kenburns-alt {
  from {
    transform: scale(1.05) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.12) translate3d(1.1%, 0.6%, 0);
  }
}

/* Cinematic darkening — readable type, photo still visible */
.pc-cine-hero .pc-cine-hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(10, 8, 6, 0.9) 0%,
      rgba(10, 8, 6, 0.68) 34%,
      rgba(10, 8, 6, 0.28) 62%,
      rgba(10, 8, 6, 0.42) 100%
    ),
    linear-gradient(
      180deg,
      rgba(10, 8, 6, 0.38) 0%,
      rgba(10, 8, 6, 0.12) 42%,
      rgba(10, 8, 6, 0.64) 100%
    ) !important;
}

.pc-cine-hero__content {
  position: relative;
  z-index: 3;
  height: 100%;
  max-width: 1310px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 80px) clamp(56px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  color: #fff;
}

.pc-cine-hero__kicker,
.pc-cine-hero__title,
.pc-cine-hero__lead,
.pc-cine-hero__actions {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
}

.pc-cine-hero__slide.is-active .pc-cine-hero__kicker,
.pc-cine-hero__slide.is-active .pc-cine-hero__title,
.pc-cine-hero__slide.is-active .pc-cine-hero__lead,
.pc-cine-hero__slide.is-active .pc-cine-hero__actions {
  animation: pc-cine-fadeup 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.pc-cine-hero__slide.is-active .pc-cine-hero__kicker {
  animation-delay: 0.12s;
}

.pc-cine-hero__slide.is-active .pc-cine-hero__title {
  animation-delay: 0.24s;
}

.pc-cine-hero__slide.is-active .pc-cine-hero__lead {
  animation-delay: 0.36s;
}

.pc-cine-hero__slide.is-active .pc-cine-hero__actions {
  animation-delay: 0.48s;
}

@keyframes pc-cine-fadeup {
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.pc-cine-hero__kicker {
  margin: 0 0 14px;
  color: #c09c73;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.pc-cine-hero__title {
  margin: 0 0 16px;
  max-width: 16ch;
  color: #fff;
  font-size: clamp(1.75rem, 4.2vw, 3.35rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.45);
}

.pc-cine-hero__title a {
  color: inherit !important;
  text-decoration: none;
}

.pc-cine-hero__lead {
  margin: 0 0 28px;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.95rem, 1.4vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
}

.pc-cine-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pc-cine-hero__cta,
span.pc-cine-hero__cta.btn-zapis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 32px;
  border-radius: 8px;
  border: 1px solid #c09c73;
  background: #c09c73;
  color: #fff !important;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none !important;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.pc-cine-hero__cta:hover,
.pc-cine-hero__cta:focus-visible {
  background: #98774e;
  border-color: #98774e;
  color: #fff !important;
}

.pc-cine-hero__pager {
  display: contents;
}

.pc-cine-hero__count {
  display: none;
}

.pc-cine-hero__pager-mid {
  display: contents;
}

.pc-cine-hero__nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(18, 16, 14, 0.28);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pc-cine-hero__nav:hover,
.pc-cine-hero__nav:focus-visible {
  background: #c09c73;
  border-color: #c09c73;
}

.pc-cine-hero__nav svg {
  width: 18px;
  height: 18px;
  display: block;
}

.pc-cine-hero__nav--prev {
  left: clamp(10px, 2vw, 28px);
}

.pc-cine-hero__nav--next {
  right: clamp(10px, 2vw, 28px);
}

.pc-cine-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  z-index: 4;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pc-cine-hero__dot {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
  overflow: hidden;
}

.pc-cine-hero__dot.is-active {
  background: #c09c73;
}

.pc-cine-hero__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  z-index: 4;
  background: rgba(255, 255, 255, 0.12);
}

.pc-cine-hero__progress > i {
  display: block;
  height: 100%;
  width: 0;
  background: #c09c73;
}

.pc-cine-hero.is-playing .pc-cine-hero__progress > i {
  animation: pc-cine-progress 6.4s linear forwards;
}

@keyframes pc-cine-progress {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* Sibling markup fallback (if JS has not replaced yet) */
.prime-hero-slide .back.prime-hero-back {
  position: relative;
  min-height: min(78vh, 680px);
  color: #fff;
  background-size: cover !important;
  background-position: center 30% !important;
}

.prime-hero-slide .back.prime-hero-back::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(10, 8, 6, 0.82) 0%,
      rgba(10, 8, 6, 0.5) 42%,
      rgba(10, 8, 6, 0.22) 100%
    );
}

.prime-hero-inner,
.prime-hero-actions {
  position: relative;
  z-index: 2;
}

.prime-hero-kicker {
  color: #c09c73;
}

.prime-hero-title,
.prime-hero-title a {
  color: #fff !important;
}

@media (max-width: 992px) {
  .pc-cine-hero {
    min-height: 520px;
    height: min(70vh, 560px);
  }

  .pc-cine-hero__content {
    padding: 32px 24px 88px;
    justify-content: flex-end;
  }

  .pc-cine-hero__title {
    max-width: 14ch;
  }
}

@media (max-width: 1023px) {
  .pc-cine-hero__pager {
    display: flex;
    position: absolute;
    left: max(12px, env(safe-area-inset-left, 0px));
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    z-index: 6;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: 6px 8px;
    border-radius: 999px;
    background: rgba(18, 14, 12, 0.62);
    border: 1px solid rgba(192, 156, 115, 0.38);
    box-shadow: 0 10px 28px rgba(10, 8, 6, 0.28);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }

  .pc-cine-hero__pager-mid {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
  }

  .pc-cine-hero__count {
    display: block;
    flex: none;
    color: #c09c73;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
  }

  .pc-cine-hero__nav,
  .pc-cine-hero__nav--prev,
  .pc-cine-hero__nav--next {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    transform: none;
    flex: none;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    background: #c09c73;
    border-color: #c09c73;
    color: #fff;
  }

  .pc-cine-hero__dots {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    justify-content: center;
    gap: 6px;
    flex: 0 1 auto;
  }

  .pc-cine-hero__dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.38);
  }

  .pc-cine-hero__dot.is-active {
    width: 22px;
    border-radius: 999px;
    background: #c09c73;
  }

  .pc-cine-hero__progress {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 0;
    bottom: auto;
    height: 2px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
  }
}

@media (max-width: 579px) {
  .pc-cine-hero {
    min-height: 420px;
    height: 78vw;
    min-height: 420px;
    max-height: 560px;
  }

  .pc-cine-hero__content {
    padding: 24px 20px 92px;
  }

  .pc-cine-hero__cta {
    min-height: 46px;
    width: 100%;
    max-width: 280px;
  }

  .pc-cine-hero__lead {
    margin-bottom: 20px;
  }
}

@media (max-width: 359px) {
  .pc-cine-hero {
    min-height: 400px;
  }

  .pc-cine-hero__title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pc-cine-hero__slide,
  .pc-cine-hero__photo,
  .pc-cine-hero__kicker,
  .pc-cine-hero__title,
  .pc-cine-hero__lead,
  .pc-cine-hero__actions,
  .pc-cine-hero__progress > i {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }

  .pc-cine-hero__slide:not(.is-active) {
    opacity: 0;
  }
}
