#team {
    padding-bottom: 0;
}
.section-description {    
    margin-top: 4px;
}


.team-subtitle-main {
    font-weight: 500;
    font-size: 20px; 
    color: #0000B4;
    margin-bottom: 20px; 
    line-height: 150%;
}

.team-subtitle-desc {
    font-size: 18px; 
    line-height: 150%;
    width: 98%;
}

.two-column {
    margin-top: 30px; 
    display: flex;
    flex-direction: column; 
    gap: 30px;
    align-items: center; 
    margin-bottom: 40px; 
}

.senior-partners {
    flex: none; 
    width: 100%; 
    max-width: 400px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
}

.senior-partners-photo {
    width: 100%;
    height: 380px;
    border-radius: 6px;
    overflow: hidden;
}

.senior-partners-photo img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: top;
    border-radius: inherit;
}

.senior-partners-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px; 
    width: 100%;
}

.senior-partners-title {
    font-size: 32px; 
    font-weight: 600;
    color: #0000B4;
    line-height: 1.4;
    text-align: center;
    padding: 6px 8px;
    border-radius: 4px;
}

.senior-partners-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px; 
    width: 100%;
}

.senior-partners-names {
    font-size: 20px; 
    font-weight: 600;
    margin-bottom: 2px;
    margin-top: 0;
    color: #000;
    text-align: left;
    width: 102%;
}

.senior-partners-roles {
    font-size: 18px; 
    color: #0000B4;
}

.team-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    margin-top: 2px;
}

.team-member {
    padding: 0;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 400px;
    height: auto;
    margin: 0 auto;
}

.member-photo {
    width: 100%;
    max-width: 164px;
    height: 172px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden; 
}

.member-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    border-radius: inherit;
}

.member-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    gap: 10px; 
    flex-grow: 1;
    margin-bottom: 14px;
}

.member-name {
    font-size: 16px; 
    font-weight: 600;
    line-height: 1.4;
    color: #00000A;
    margin-bottom: 0;
}

.member-role {
    font-size: 16px; 
    font-weight: 400;
    color: #0000B4;
    line-height: 1.4;
    letter-spacing: -0.01em;
}


@media (min-width: 744px) {
    #team {
        padding-bottom: 0;
    }
    .section-description {
        margin-top: 18px;
    }
    .team-subtitle-main {
        font-size: 20px;
    }
    .team-subtitle-desc {
        margin-top: 20px;
        font-size: 18px;
    }
    .two-column {
        margin-top: 40px;
        align-items: flex-start; 
        margin-bottom: 60px;
    }
    .senior-partners {
        gap: 20px;
        flex-direction: row;
        align-items: flex-start;
        max-width: none;
    }

    .senior-partners-photo {
        width: 322px;
        height: 380px;
        flex-shrink: 0;
    }

    .senior-partners-info {
        gap: 20px;
        flex-grow: 1;
        align-items: flex-start;
        width: auto;
    }
    .senior-partners-title {
        margin: 0;
        padding: 0;
        font-size: 32px;
        text-align: left;
        margin-top: 2px;
    }
    .senior-partners-names {
        margin-top: 6px;
        font-size: 22px;
        text-align: left;
        line-height: 150%;
    }
    .senior-partners-roles {
        margin-top: 2px;
        font-size: 18px;
    }

    .senior-partners-details {
        align-items: flex-start;
        gap: 6px;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
        gap: 30px;
        margin-top: 0;
    }
    .team-member {
        flex-direction: row;
        align-items: flex-end;
        gap: 10px;
    }
    .member-photo {
        width: 155px;
        height: 172px;
        flex-shrink: 0;
    }
    .member-info {
        flex-grow: 1;
        gap: 6px;
        align-items: flex-start;
        margin-bottom: 0;
    }
    .member-name {
        font-size: 16px;
        margin-bottom: 6px;
    }
    .member-role {
        font-size: 16px;
    }
}


@media (min-width: 1440px) {
    #team{
        padding-bottom: 120px;
    }
    .team-subtitle-main {        
        margin-bottom: 22px;
    }
    .team-subtitle-desc {
        font-size: 18px;
    }
    .section-description {    
        margin-top: 0;
    }
    .two-column {
        flex-direction: row; 
        gap: 30px;
        margin-bottom: 80px;
    }
    .senior-partners {
        flex: 0 0 400px; 
        gap: 30px;
        max-width: 400px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .senior-partners-photo {
        width: 400px;
        height: 374px;
        aspect-ratio: auto; 
    }
    .senior-partners-info {
        gap: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .senior-partners-title {
        font-size: 32px;
        line-height: 1.5;
        padding: 8px 10px;
        text-align: center;
    }
    .senior-partners-details {
        gap: 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .senior-partners-names {
        font-size: 22px;
        margin-bottom: 5px;
        margin-top: 3px;
        text-align: center;
    }
    
    .senior-partners .member-role { 
        font-size: 18px;
        line-height: 1.5;
        color: #0000B4;
        text-align: center;
    }

    .team-grid {
        grid-template-columns: repeat(2, 400px); 
        gap: 30px;
        justify-content: center;
    }
    .team-member {
        flex-direction: row; 
        align-items: flex-end; 
        gap: 9px;
        width: 400px; 
        height: 172px; 
    }
    .member-photo {
        width: 155px; 
        height: 172px; 
        aspect-ratio: auto;
    }
    .member-info {
        gap: 2px;
    }
    .member-name {
        font-size: 22px;
        line-height: 1.5;
    }
    .member-role {
        font-size: 18px;
        line-height: 1.5;
    }

    .senior-partners-roles {
        margin: 0;
        font-size: 18px;
        line-height: 1.5;
    }

    .senior-partners-photo img {
        content: url('/img/team/yaroslav_yakymov_marsel_nikitin.jpg');
    }
}


