
/* V73 — smooth native carousels + iPad portrait header */

.condition-carousel .condition-grid.v73-carousel__viewport,
.team .team-grid.v73-carousel__viewport,
.gallery-v52 .gallery-track-v52.v73-carousel__viewport {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  touch-action: pan-x pan-y !important;
  overscroll-behavior-x: contain !important;
  overscroll-behavior-y: auto !important;
  scroll-snap-type: none !important;
  scroll-behavior: auto !important;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  will-change: auto !important;
  contain: none !important;
}

.condition-carousel .condition-grid.v73-carousel__viewport::-webkit-scrollbar,
.team .team-grid.v73-carousel__viewport::-webkit-scrollbar,
.gallery-v52 .gallery-track-v52.v73-carousel__viewport::-webkit-scrollbar {
  display: none !important;
}

.v73-carousel__viewport > *,
.v73-carousel__viewport > *.reveal,
.v73-carousel__viewport > *.v64-slide-pop {
  scroll-snap-align: none !important;
  scroll-snap-stop: normal !important;
  filter: none !important;
  will-change: auto !important;
  backface-visibility: visible !important;
}

.v73-carousel__viewport > *.v64-slide-pop {
  animation: none !important;
}

.v73-carousel:not(.v73-in) .v73-carousel__viewport > * {
  opacity: 0 !important;
  transform: translate3d(0, 14px, 0) !important;
}

.v73-carousel.v73-in .v73-carousel__viewport > * {
  animation: v73CardIn .78s cubic-bezier(.16,1,.3,1) both !important;
}

.v73-carousel.v73-in .v73-carousel__viewport > *:nth-child(2) { animation-delay: .08s !important; }
.v73-carousel.v73-in .v73-carousel__viewport > *:nth-child(3) { animation-delay: .14s !important; }
.v73-carousel.v73-in .v73-carousel__viewport > *:nth-child(4) { animation-delay: .20s !important; }
.v73-carousel.v73-in .v73-carousel__viewport > *:nth-child(n+5) { animation-delay: .24s !important; }

@keyframes v73CardIn {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Mniejszy skok kart w sekcji Nasze podejście */
.approach-v40 .approach-v40__step.reveal {
  transform: none !important;
}

.approach-v40:not(.v73-approach-in) .approach-v40__step {
  opacity: 0 !important;
  transform: translate3d(0, 10px, 0) !important;
}

.approach-v40.v73-approach-in .approach-v40__step {
  animation: v73ApproachIn .72s cubic-bezier(.16,1,.3,1) both !important;
}

.approach-v40.v73-approach-in .approach-v40__step:nth-child(2) { animation-delay: .08s !important; }
.approach-v40.v73-approach-in .approach-v40__step:nth-child(3) { animation-delay: .14s !important; }
.approach-v40.v73-approach-in .approach-v40__step:nth-child(4) { animation-delay: .20s !important; }

@keyframes v73ApproachIn {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 1199px) {
  .condition-carousel .condition-grid.v73-carousel__viewport,
  .team .team-grid.v73-carousel__viewport,
  .gallery-v52 .gallery-track-v52.v73-carousel__viewport {
    gap: 12px !important;
  }

  .condition-carousel .condition-card,
  .team .team-card,
  .gallery-v52 .gallery-track-v52 > figure {
    transition: none !important;
  }
}

/* iPad pionowo: Instagram i Facebook nie znikają */
@media (min-width: 761px) and (max-width: 1180px) {
  .site-header .header-socials {
    display: flex !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
  }

  .site-header .header-socials .icon-button {
    display: inline-flex !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
  }

  .site-header__actions {
    gap: 5px !important;
    min-width: 0 !important;
  }

  .site-header__actions > .button--small {
    padding-inline: 16px !important;
    white-space: nowrap !important;
  }
}

@media (min-width: 761px) and (max-width: 930px) {
  .site-header .header-socials .icon-button,
  .site-header__actions > .icon-button,
  .site-header__actions > a[aria-label^="Zadzwoń"],
  .site-header .menu-toggle {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
  }

  .site-header__actions > .button--small {
    font-size: .84rem !important;
    padding-inline: 12px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v73-carousel .v73-carousel__viewport > *,
  .approach-v40 .approach-v40__step {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}
