.team-block .teams {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}
.team-block .team-item {
    display: flex;
    flex-direction: column;
    background: var(--background-fourthly);
    border-radius: 30px;
    padding: 30px;
    min-height: 220px;
}
.team-block .team-name {
    font-weight: 600;
    font-size: 22px;
    line-height: 110%;
    margin-bottom: 5px;
}
.team-block .team-post {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--main-text-primary);
    margin-bottom: 10px;
}
.team-block .contact-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.team-block .contact-name {
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: var(--main-text-secondary);
}
.team-block .contact {
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    color: var(--main-text-primary);
    width: fit-content;
}
.team-block .contact:hover {
    color: var(--primary);
}

@media (max-width: 1200px) {
    .team-block .teams {
        gap: 10px;
    }
    .team-block .team-item {
        padding: 15px;
        min-height: 150px;
    }
    .team-block .team-name {
        font-size: 16px;
    }
    .team-block .contact-name,
    .team-block .team-post {
        font-size: 14px;
    }
    .team-block .contact {
        font-size: 16px;
    }
    .team-block .contact-item {
        gap: 3px;
    }
}

@media (max-width: 768px) {
    .team-block .teams {
        grid-template-columns: repeat(2,1fr);
    }
}

@media (max-width: 498px) {
    .team-block .teams {
        display: flex;
        flex-direction: column;
    }
    .team-block .team-item {
        min-height: unset;
    }
}