.title{
    font-size: var(--fs-xl);
    margin-bottom: var(--space-2xl);
}

#partners-list{
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-m);
    width: 90%;
    justify-content: center;
    transition: var(--transition-base);

}

.hover-container{
    padding: var(--space-3xs);
}


.team-content-wrapper{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-s);
    gap: var(--space-3xs);
    background-color: var(--bg-white-norm);
    border-radius: var(--br-s);
    box-shadow: var(--inner-shadow-bl);
    box-shadow: var(--drop-shadow-green);
    transition: var(--transition-base); /* додано, щоб transform анімувався плавно */
}

.img-team{
    max-height: 180px;
    width: 100%;
    object-fit: contain;
}

.team-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3xs);
}


.team-name{
    color: var(--text-dark-main);
    font-size: var(--fs-xs);
    text-align: center;      
    width: 100%;                
    overflow-wrap: break-word;  
    word-break: break-word;
}

.team-position{
    color: var(--text-gray);
    font-size: var(--fs-3xs);
    text-align: center;      
    width: 100%;                
    overflow-wrap: break-word;  
    word-break: break-word;
}

.container-all-in-page > .container{
    margin-top: var(--space-3xl);

    padding-bottom: var(--space-5xl);
}

@media (min-width: 560px) and (max-width: 1024px){
    #partners-list{
        width: 100%;
    }
    
    .team-name{
        font-size: var(--fs-s);
        line-height: 0.9;
    }

    .team-position{
        font-size: var(--fs-xs);
        line-height: 0.9;
    }

    .img-team{
        max-height: 160px;
        width: 100%;
        object-fit: contain;
    }

    .team-text{
        max-width: 160px;
        gap: var(--space-3xs);
    }
}

@media (max-width: 560px) {
    .title{
        margin-bottom: var(--space-m);
    }

    #partners-list{
        gap: var(--space-xs);
        width: 100%;
    }

    .team-content-wrapper{
        padding: var(--space-2xs);
        gap: var(--space-3xs);
        border-radius: var(--br-m);
    }

    .img-team{
        max-height: 140px;
        width: 100%;
        object-fit: contain;
    }

    .team-text{
        max-width: 140px;
        gap: var(--space-3xs);
    }


    .team-name{
        font-size: var(--fs-xs);
        line-height: 0.9;
    }

    .team-position{
        font-size: var(--fs-2xs);
        line-height: 0.9;
    }

    .container-all-in-page > .container{
        margin-top: var(--space-xs);
        padding-bottom: var(--space-5xl);
    }
}