/* V77 — poprawiona skala i układ podstrony Zespół (desktop / iPad / telefon) */
body:has(.team-hero-montage-v75){overflow-x:hidden}
body:has(.team-hero-montage-v75) .subpage-hero{
  min-height:auto !important;
  padding-top:calc(var(--header-height) + clamp(34px,4vw,64px)) !important;
  padding-bottom:clamp(34px,4vw,58px) !important;
}
body:has(.team-hero-montage-v75) .subpage-hero .container{
  width:min(calc(100% - 48px), 1540px) !important;
}
body:has(.team-hero-montage-v75) .subpage-hero__inner{
  display:grid !important;
  grid-template-columns:minmax(0,.88fr) minmax(360px,1.12fr) !important;
  grid-template-areas:"copy note" "montage montage" !important;
  gap:clamp(24px,3vw,42px) clamp(28px,4vw,64px) !important;
  align-items:center !important;
  width:100% !important;
  max-width:none !important;
}
body:has(.team-hero-montage-v75) .subpage-hero__inner > div:first-child{
  grid-area:copy;
  min-width:0;
  padding:0 !important;
}
body:has(.team-hero-montage-v75) .subpage-hero .eyebrow{margin-bottom:14px}
body:has(.team-hero-montage-v75) .subpage-hero h1{
  max-width:720px !important;
  margin:0 0 20px !important;
  font-size:clamp(54px,5.9vw,86px) !important;
  line-height:.94 !important;
  letter-spacing:-.055em !important;
  overflow-wrap:normal;
}
body:has(.team-hero-montage-v75) .subpage-hero h1 em{display:block;margin-top:8px}
body:has(.team-hero-montage-v75) .subpage-hero__copy{
  max-width:650px !important;
  margin:0 !important;
  font-size:clamp(16px,1.35vw,20px) !important;
  line-height:1.62 !important;
}
body:has(.team-hero-montage-v75) .subpage-note{
  grid-area:note;
  width:100%;
  max-width:720px;
  justify-self:end;
  align-self:center !important;
  margin:0 !important;
  padding:clamp(24px,2.3vw,36px) !important;
  border-radius:24px !important;
}
body:has(.team-hero-montage-v75) .subpage-note strong{font-size:clamp(24px,2vw,31px)}
body:has(.team-hero-montage-v75) .subpage-note p{font-size:clamp(15px,1.25vw,19px);line-height:1.6}
body:has(.team-hero-montage-v75) .team-hero-montage-v75{
  grid-area:montage;
  display:grid !important;
  grid-template-columns:minmax(0,1.72fr) minmax(280px,.78fr) !important;
  gap:clamp(12px,1.4vw,20px) !important;
  width:100% !important;
  margin:0 !important;
  padding:0 !important;
}
body:has(.team-hero-montage-v75) .team-hero-montage-v75 img{
  width:100%;
  height:clamp(360px,35vw,560px) !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  border-radius:24px;
  object-fit:cover;
}
body:has(.team-hero-montage-v75) .team-hero-montage-v75__group{object-position:center 43% !important}
body:has(.team-hero-montage-v75) .team-hero-montage-v75__duo{object-position:center 28% !important}
body:has(.team-hero-montage-v75) .team-directory{padding-top:clamp(48px,5vw,76px) !important}

/* Animacja bez wyjeżdżania poza viewport — brak ucinania tekstu z lewej/prawej. */
.v76-team-ready > *{
  opacity:0;
  transform:translate3d(0,22px,0) !important;
  transition:opacity 1.05s var(--v76-team-delay,0ms) cubic-bezier(.16,1,.3,1),transform 1.05s var(--v76-team-delay,0ms) cubic-bezier(.16,1,.3,1) !important;
}
.v76-team-in > *{opacity:1 !important;transform:translate3d(0,0,0) !important}

/* Laptop / mniejszy desktop */
@media (min-width:901px) and (max-width:1250px){
  body:has(.team-hero-montage-v75) .subpage-hero .container{width:min(calc(100% - 40px),1180px) !important}
  body:has(.team-hero-montage-v75) .subpage-hero__inner{
    grid-template-columns:minmax(0,.93fr) minmax(330px,1.07fr) !important;
    gap:28px 34px !important;
  }
  body:has(.team-hero-montage-v75) .subpage-hero h1{font-size:clamp(50px,6.5vw,74px) !important}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75{grid-template-columns:minmax(0,1.6fr) minmax(230px,.75fr) !important}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75 img{height:clamp(330px,37vw,470px) !important}
}

/* iPad pionowo i mały tablet */
@media (min-width:700px) and (max-width:900px){
  body:has(.team-hero-montage-v75) .subpage-hero{padding-top:calc(var(--header-height) + 30px) !important;padding-bottom:42px !important}
  body:has(.team-hero-montage-v75) .subpage-hero .container{width:min(calc(100% - 36px),820px) !important}
  body:has(.team-hero-montage-v75) .subpage-hero__inner{
    grid-template-columns:1fr !important;
    grid-template-areas:"copy" "note" "montage" !important;
    gap:22px !important;
  }
  body:has(.team-hero-montage-v75) .subpage-hero h1{font-size:clamp(52px,9vw,72px) !important;max-width:680px !important}
  body:has(.team-hero-montage-v75) .subpage-note{max-width:none;justify-self:stretch}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75{grid-template-columns:minmax(0,1.55fr) minmax(0,.8fr) !important;gap:12px !important}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75 img{height:360px !important;border-radius:20px}
}

/* Telefon */
@media (max-width:699px){
  body:has(.team-hero-montage-v75) .subpage-hero{padding-top:calc(var(--header-height) + 24px) !important;padding-bottom:34px !important}
  body:has(.team-hero-montage-v75) .subpage-hero .container{width:calc(100% - 30px) !important}
  body:has(.team-hero-montage-v75) .subpage-hero__inner{
    grid-template-columns:1fr !important;
    grid-template-areas:"copy" "note" "montage" !important;
    gap:18px !important;
  }
  body:has(.team-hero-montage-v75) .subpage-hero .eyebrow{margin-bottom:12px}
  body:has(.team-hero-montage-v75) .subpage-hero h1{
    font-size:clamp(46px,14vw,66px) !important;
    line-height:.95 !important;
    margin-bottom:18px !important;
    max-width:100% !important;
  }
  body:has(.team-hero-montage-v75) .subpage-hero__copy{font-size:16px !important;line-height:1.55 !important}
  body:has(.team-hero-montage-v75) .subpage-note{max-width:none;padding:22px !important;border-radius:20px !important}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75{
    grid-template-columns:1fr !important;
    gap:10px !important;
  }
  body:has(.team-hero-montage-v75) .team-hero-montage-v75 img{height:auto !important;min-height:0 !important;border-radius:18px}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75__group{aspect-ratio:1.38/1 !important;object-position:center 44% !important}
  body:has(.team-hero-montage-v75) .team-hero-montage-v75__duo{aspect-ratio:1.25/1 !important;object-position:center 31% !important}
}

@media(prefers-reduced-motion:reduce){.v76-team-ready > *{opacity:1!important;transform:none!important;transition:none!important}}

/* V78 — pełne zdjęcia zespołu bez przycinania */
body:has(.team-hero-montage-v75) .team-hero-montage-v75{
  align-items:start !important;
}
body:has(.team-hero-montage-v75) .team-hero-montage-v75 img{
  display:block !important;
  width:100% !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  aspect-ratio:auto !important;
  object-fit:contain !important;
  object-position:center top !important;
}
@media (min-width:700px){
  body:has(.team-hero-montage-v75) .team-hero-montage-v75{
    grid-template-columns:minmax(0,2.18fr) minmax(240px,1fr) !important;
  }
}
@media (max-width:699px){
  body:has(.team-hero-montage-v75) .team-hero-montage-v75 img{
    height:auto !important;
    aspect-ratio:auto !important;
    object-fit:contain !important;
    object-position:center top !important;
  }
}
