body {
    background: url("https://top-czat.pl/tlotopczat.jpg") center center fixed;
    background-size: cover;
    background-repeat: no-repeat;
}
/* ====== NAPIS TOP-CZAT TEAM ====== */
.team-header-box {
    display:inline-block;
    background: rgba(255,255,255,0.85); /* półprzezroczyste białe tło */
    color:#222; /* ciemny tekst */
    font-size:24px;
    font-weight:700;
    padding:8px 20px;
    border-radius:8px;
    text-align:center;
    margin:30px auto;
    display:block;
    max-width:fit-content;
    box-shadow:0 4px 10px rgba(0,0,0,.15);
}


/* ====== SEKCJE ====== */
.team-title {
    text-align:center;
    margin:60px 0 28px;
    font-size:26px;
    font-weight:700;
    color:#222;
    letter-spacing:.5px;
}

/* ====== SEKCJE ====== */
.team-title {
    text-align:center;
    margin:60px 0 28px;
    font-size:26px;
    font-weight:700;
    color:#e0e0e0;
    letter-spacing:.5px;
}

/* ====== UKŁAD ====== */
.team-row {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(140px,1fr));
    gap:24px;
    max-width:1000px;
    margin:0 auto;
    padding:0 20px 50px;
}

/* ====== KARTA ====== */
.team-card {
    background: rgba(20, 25, 30, 0.85); /* ciemne, lekko przezroczyste */
    border-radius:16px;
    padding:18px 12px 20px;
    text-align:center;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0,0,0,.5);
}

/* ====== AVATAR ====== */
.team-card img {
    width:88px;
    height:88px;
    border-radius:50%;
    object-fit:cover;
    border:2px solid rgba(255,255,255,0.15);
    background:#111;
}

/* ====== NICK ====== */
.team-card .nick {
    margin-top:12px;
    font-size:14px;
    font-weight:600;
    color:#f0f0f0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

/* ====== MOBILE RESPONSYWNE ====== */
@media(max-width:768px) {
    /* Nagłówek */
    .team-header-box {
        font-size:20px;
        padding:10px 18px;
        max-width:90%;
        margin:25px auto;
    }

    /* Tytuły sekcji */
    .team-title {
        font-size:20px;
        margin:35px 0 20px;
    }

    /* Układ kart */
    .team-row {
        grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
        gap:14px;
        padding:0 15px 30px;
    }

    /* Karty */
    .team-card {
        padding:14px 10px 16px;
        border-radius:14px;
    }

    /* Avatar */
    .team-card img {
        width:60px;
        height:60px;
    }

    /* Nick */
    .team-card .nick {
        font-size:13px;
        margin-top:10px;
    }

    /* Przycisk powrotu */
    .back-button {
        padding:8px 18px;
        font-size:13px;
    }

    .back-button-container {
        margin:15px 0 30px;
    }
}

/* Dodatkowa responsywność dla bardzo małych ekranów */
@media(max-width:480px) {
    .team-header-box {
        font-size:18px;
        padding:8px 14px;
    }

    .team-title { font-size:18px; }

    .team-card img { width:55px; height:55px; }

    .team-card .nick { font-size:12px; }

    .back-button { font-size:12px; padding:6px 14px; }
}

/* ====== LOGO ====== */
.team-logo {
    max-width:180px;     /* dopasowuje się do ekranu */
    width:50%;           /* proporcjonalnie mniejsze na telefonie */
    height:auto;         /* zachowanie proporcji */
    margin:0 auto 12px;
    display:block;
}

/* ====== PRZYCISK POWROTNY ====== */
.back-button-container {
    text-align: center;
    margin: 20px 0 40px;
}

.back-button {
    display: inline-block;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(30, 35, 40, 0.85);
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.25s, transform 0.25s;
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.back-button:hover {
    background-color: rgba(50, 60, 70, 0.95);
    transform: translateY(-2px);
}


