.team-block {
    margin-top: var(--ninety);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
    background: var(--white);
    border-radius: 10px;
}

.team-block .team-inner {
    padding: var(--fourty) var(--fifty) !important;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    align-self: stretch;
    gap: var(--thirtyFive);
}

.team-block .team-text__holder {
    display: flex;
    flex-direction: column;
    gap: var(--twenty);
    width: 100%;
    max-width: 673px;
}

.team-block .team-title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
    line-height: 120%;
    color: var(--black);
}

.team-block .team-subtitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: var(--1614);
    line-height: 140%;
    color: var(--black);
}

.team-block .team-holder {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: var(--thirty);
}

.team-block .team-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: var(--fifteen);
}

.team-block .team-item .team-item__photo {
    width: 100%;
    height: auto;
    max-width: 170px;
    max-height: 145px;
    max-height: 100%;
    overflow: hidden;
    border-radius: 10px;
    display: flex;
}

.team-block .team-item .team-item__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
}

.team-block .team-item .team-item__text-holder {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.team-block .team-item .team-item__title {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--black);
}

.team-block .team-item .team-item__subtitle {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    line-height: 140%;
    color: var(--gray);
}

@media(max-width:800px) {
    .team-block .team-holder {
        grid-template-columns: 1fr 1fr;
    }

    .team-block .team-item {
        align-items: center;
        text-align: center;
    }
}

@media(max-width:430px) {
    .team-block .team-holder {
        grid-template-columns: 1fr;
    }
}