/* Zajawka v2: nakładka na wspólny szablon */

/* hero: slajdy z crossfade i powolnym zbliżeniem */
.hero.v2-slajdy::before { display: none; }
.v2-slajd { position: absolute; inset: 0; background: center/cover no-repeat; opacity: 0; transform: scale(1.06); transition: opacity 1.6s ease, transform 7s linear; }
.v2-slajd.teraz { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) { .v2-slajd { transition: none; transform: none; } }

/* oferta na komputerze: równa siatka */
.v2-siatka { margin-top: 36px; display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 16px; }
.v2-siatka .kafel { aspect-ratio: 3/4; min-height: 0; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 22px; grid-column: auto !important; grid-row: auto !important; }
.v2-siatka .kafel img { filter: none; transform: scale(1.02); }
.v2-siatka .kafel:hover img { transform: scale(1.07); }
.v2-siatka .kafel h3 { font-size: clamp(24px, 2.2vw, 32px) !important; }
.kafel p { margin-top: 8px; font-size: 14.5px; line-height: 1.45; color: rgba(255,255,255,.82); max-width: 32ch; }

/* zespół */
.v2-zespol { padding: clamp(72px, 11vw, 130px) clamp(16px, 4vw, 48px); background: var(--ink); color: var(--jasny, #fff); overflow: clip; }
.v2-zespol-glowa { max-width: 1280px; margin: 0 auto; }
.v2-zespol .etykieta { color: var(--akcent); }
.v2-zespol-lead { max-width: 620px; margin-top: 18px; font-size: clamp(16px, 1.8vw, 19px); color: rgba(255,255,255,.78); }
.v2-osoby { max-width: 1280px; margin: 44px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v2-osoba { background: var(--ink-2); border-radius: var(--promien); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); }
.v2-osoba-foto { aspect-ratio: 4/5; overflow: hidden; background: #e9ecef; }
.v2-osoba-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform .9s cubic-bezier(.2,.8,.2,1); }
.v2-osoba:hover img { transform: scale(1.04); }
.v2-osoba-opis { padding: 18px 20px 22px; border-top: 3px solid var(--akcent); }
.v2-osoba-opis span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--akcent); font-weight: 700; }
.v2-osoba-opis h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.05; margin: 6px 0 10px; }
.v2-osoba-opis a { display: block; color: rgba(255,255,255,.86); text-decoration: none; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.v2-osoba-opis a:hover { color: var(--akcent); }
/* telefon: wszyscy obok siebie, równo (portret, imię, kontakt) */
@media (max-width: 900px) {
  .v2-osoby { grid-template-columns: repeat(var(--n, 3), 1fr); gap: 8px; margin-top: 28px; }
  .v2-osoba-foto { aspect-ratio: 3/4; }
  .v2-osoba-opis { padding: 10px 8px 12px; border-top-width: 2px; }
  .v2-osoba-opis span { font-size: 9.5px; letter-spacing: .04em; line-height: 1.2; display: block; }
  .v2-zespol .v2-osoba-opis h3 { font-size: clamp(14px, 4vw, 17px); line-height: 1.15; margin: 4px 0 6px; overflow-wrap: normal; word-break: keep-all; hyphens: none; }
  .v2-osoba-opis a { font-size: 11.5px; line-height: 1.5; }
  .v2-osoba-opis a[href^="mailto"] { display: none; }
}

/* oferta na telefonie: przesuwanie palcem z zatrzaskiem */
.v2-tasma { display: flex; gap: 12px; margin: 28px calc(-1 * clamp(16px, 4vw, 48px)) 0; padding: 0 clamp(16px, 4vw, 48px) 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.v2-tasma::-webkit-scrollbar { display: none; }
.v2-tasma .kafel { flex: 0 0 80%; aspect-ratio: 4/5; scroll-snap-align: center; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 20px; grid-column: auto !important; grid-row: auto !important; }
.v2-tasma .kafel img { filter: none; transform: none; }
.v2-tasma .kafel h3 { font-size: 26px !important; }

/* własne otwarcie: czat (komputer) i samouczek czekają, aż wjedzie hero */
body.v2-czeka-na-hero .pokaz:not(.krok-zadzwon) { opacity: 0 !important; pointer-events: none !important; }
@media (min-width: 901px) {
  .czat-awatar { transition: opacity .7s ease, transform .3s; }
  body.v2-czeka-na-hero .czat-awatar, body.v2-czeka-na-hero .czat-dymek { opacity: 0 !important; pointer-events: none !important; }
}
