.oplixo-team{
    font-family: system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.oplixo-team__wrap{
    background: var(--oplixo-team-bg, #f6f8ff);
    padding: 70px 14px;
}

.oplixo-team__in{
    max-width: var(--oplixo-team-maxw, 1320px);
    margin: 0 auto;
}

.oplixo-team__head{
    text-align: center;
    margin-bottom: 30px;
}

.oplixo-team__h{
    margin: 0;
    color: var(--oplixo-team-text, #111827);
    font-size: 42px;
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.oplixo-team__p{
    margin: 10px 0 0;
    color: var(--oplixo-team-muted, #64748b);
    font-size: 16px;
    line-height: 1.6;
}

.oplixo-team__group{
    margin-top: 34px;
}

.oplixo-team__gtitle{
    margin: 0 0 14px;
    color: var(--oplixo-team-text, #111827);
    font-size: 22px;
    font-weight: 500;
}

.oplixo-team__grid{
    display: grid;
    gap: 50px;
}

/* OWNER: karta pozioma (foto + treść) */
/* OWNER: karta pozioma (foto + treść) */
/* OWNER: karta pozioma (foto + treść) */
.oplixo-team__grid--owner{
    grid-template-columns: auto; /* kolumna dopasowana do szerokości karty */
    justify-content: center;     /* centrowanie siatki w kontenerze */
    justify-items: center;       /* centrowanie elementów siatki */
}

.oplixo-team__grid--owner .oplixo-team__card{
    width: 720px;          /* stała szerokość desktop */
    max-width: 100%;       /* nie wyjdzie poza ekran */
    margin: 0 auto;        /* centrowanie poziome */
    display: grid;
    grid-template-columns: 320px 1fr;
    align-items: stretch;
}

.oplixo-team__grid--owner .oplixo-team__photo{
    aspect-ratio: auto;
    height: 320px;         /* stała wysokość foto desktop */
}

.oplixo-team__grid--owner .oplixo-team__photo img{
    object-fit: cover;
}

 .oplixo-team__grid--team{
    grid-template-columns: repeat(var(--oplixo-team-cols, 3), minmax(0, 1fr));
    justify-content: normal;
}

.oplixo-team__grid--team .oplixo-team__card{
    width: 100%;
}

.oplixo-team__card{
    background: var(--oplixo-team-card, #fff);
    border-radius: var(--oplixo-team-radius, 16px);
    box-shadow: var(--oplixo-team-shadow, 0 18px 40px rgba(15, 23, 42, .07));
    overflow: hidden;
}

.oplixo-team__photo{
    aspect-ratio: var(--oplixo-team-photo-ratio, 4 / 3);
    height: var(--oplixo-team-photo-h, auto);
    background: rgba(15, 23, 42, .06);
    position: relative;
    overflow: hidden;
}

.oplixo-team__photo img{
    width: 100%;
    height: 100%;
    object-fit: contain; /* albo cover – wg ustawień */
    object-position: center;
}

.oplixo-team__body{
    padding: 18px 18px 20px;
}

.oplixo-team__name{
    margin: 0;
    color: var(--oplixo-team-text, #111827);
    font-size: 18px;
    font-weight: 500;
}

.oplixo-team__role{
    margin: 6px 0 0;
    color: var(--oplixo-team-muted, #64748b);
    font-size: 14px;
    font-weight: 700;
}

.oplixo-team__desc{
    margin: 10px 0 0;
    color: var(--oplixo-team-muted, #64748b);
    font-size: 14px;
    line-height: 1.7;
}

.oplixo-team__contact{
    margin-top: 16px;
    display: grid;
    flex-wrap: wrap;
    gap: 8px;
}

.oplixo-team__btn{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 0;
    background: #2596be !important;
    border: 1px solid #2596be;
    color: #fff;
    font-weight: 400;
    font-size: 14px;
    text-decoration: none;
    line-height: 1;
}

.oplixo-team__btn:hover{
    background: #1b7fa1 !important;
    border-color: #1b7fa1;
    color: #fff;
}

@media (max-width: 1024px){
    .oplixo-team__h{ font-size: 36px; }
    .oplixo-team__grid--team{
        grid-template-columns: repeat(var(--oplixo-team-cols-t, 2), minmax(0, 1fr));
    }
}

@media (max-width: 640px){
    .oplixo-team__wrap{ padding: 56px 12px; }
    .oplixo-team__h{ font-size: 28px; }
    .oplixo-team__grid--owner .oplixo-team__card{ width: 100%; max-width: 520px; grid-template-columns: 1fr; margin: 0 auto; }
    .oplixo-team__grid--owner .oplixo-team__photo{ height: 260px; }
    .oplixo-team__grid--team{ grid-template-columns: 1fr; }
    .oplixo-team__photo{ aspect-ratio: var(--oplixo-team-photo-ratio, 4 / 3); height: var(--oplixo-team-photo-h-m, auto); }
}