/* ═══════════════════════════════════════════════════════════════════════
   MODUŁ · KANCELARIĘ TWORZĄ
   ═══════════════════════════════════════════════════════════════════════

   Kod i style przeniesione 1:1 z makiety `adwokates.ewitryna.one/www/`,
   sekcja `#w5-home-zespol` (wariant ciemny „w5"), bez listy
   współpracowników — ta ma własny moduł.

   Klasy dostały przedrostek `kt-`: w oryginale nazywają się `.lbl`,
   `.team`, `.rola`, `.kt`, `.tf` i w cudzym serwisie mogłyby już coś
   znaczyć. Wartości, kolejność i punkty łamania — bez zmian.
   ═══════════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Marcellus&family=Source+Sans+3:wght@300;400;600&display=swap');

.kt-modul {
    --bg: #0F1013;
    --ink: #F2F0EA;
    --ink2: #A9ACB3;
    --gold: #B89562;
    --goldl: #D6B67E;
    --line: #2B2E36;
    --acc: #B89562;

    background: var(--bg);
    color: var(--ink);
    font-family: 'Source Sans 3', system-ui, sans-serif;
    font-size: 17px;
    font-weight: 300;
    line-height: 1.6;
    padding: 104px max(24px, calc((100% - 1200px) / 2));
}

.kt-modul * { box-sizing: border-box; }

.kt-modul .kt-modul__lbl {
    display: block;
    margin-bottom: 16px;
    color: var(--gold);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}

.kt-modul .kt-modul__tytul {
    margin: 0 0 22px;
    color: #fff;
    font-family: Marcellus, Georgia, serif;
    font-size: clamp(34px, 4.2vw, 56px);
    font-weight: 400;
    letter-spacing: .01em;
    line-height: 1.05;
}

/* Cztery kolumny: sylwetka zajmuje jedną, zdjęcie zbiorowe dwie. */
.kt-modul .kt-team {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.kt-modul .kt-team img {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    object-position: 50% 8%;
    /* Czarno-białe zdjęcia to decyzja projektu, nie obróbka plików —
       redakcja wgrywa kolorowe i nic nie musi z nimi robić. Kolor wraca
       po najechaniu. */
    filter: grayscale(1);
    transition: filter .4s, transform .9s cubic-bezier(.2, .7, .2, 1);
}

.kt-modul .kt-team > div:hover img { filter: none; transform: scale(1.03); }

.kt-modul .kt-team > div {
    transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}

.kt-modul .kt-team > div:hover { transform: translateY(-5px); }

.kt-modul .kt-team h3 {
    margin: 16px 0 0;
    color: #fff;
    font-family: Marcellus, Georgia, serif;
    font-size: 22px;
    font-weight: 400;
    letter-spacing: .01em;
}

.kt-modul .kt-rola {
    display: block;
    margin: 6px 0 10px;
    color: var(--goldl);
    font-size: 12px;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.kt-modul .kt-team p {
    margin: 0;
    color: var(--ink2);
    font-size: 14.5px;
}

.kt-modul .kt-kontakt a {
    display: block;
    margin-top: 6px;
    color: #fff;
    font-size: 14px;
    text-decoration: none;
}

/* ── ZDJĘCIE ZBIOROWE ───────────────────────────────────────────────── */

.kt-modul .kt-tf {
    grid-column: span 2;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.kt-modul .kt-tf img {
    width: 100%;
    aspect-ratio: 3/2;
    object-fit: cover;
    object-position: 50% 30%;
}

/* Zdjęcie zbiorowe zostaje kolorowe zawsze — inaczej niż sylwetki. */
.kt-modul .kt-tf:hover img { filter: none; }

.kt-modul .kt-tf figcaption {
    margin-top: 14px;
    color: var(--acc);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
}

@media (max-width: 1000px) {
.kt-modul .kt-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kt-modul .kt-tf { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
.kt-modul { padding-block: 64px; }
}

@media (max-width: 600px) {
.kt-modul .kt-team { grid-template-columns: 1fr 1fr; gap: 14px; }
}
