.mcg-contacts__section--team {
    padding: 80px 0 80px;
    background: #fff;
}

.mcg-contacts-team {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.mcg-contacts-person {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    padding: 24px 24px 28px;
    border-radius: 8px;
    background: var(--mcg-bg);
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.07);
}

.mcg-contacts-person__photo {
    height: 302px;
    width: 100%;
    border-radius: 4px;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.mcg-contacts-person:nth-child(3) .mcg-contacts-person__photo {
    object-position: center 34%;
}

.mcg-contacts-person__body {
    display: flex;
    flex: 1;
    flex-direction: column;
}

.mcg-contacts-person__name {
    margin: 0 0 12px;
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 18px;
    line-height: 18px;
    letter-spacing: 0.29px;
    color: var(--mcg-blue);
}

.mcg-contacts-person__role {
    margin: 0 0 16px;
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 14px;
    line-height: 14px;
    color: var(--mcg-text);
}

.mcg-contacts-person__text {
    margin: 0 0 20px;
    font-family: "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
    color: var(--mcg-text);
}

.mcg-contacts-person__mail {
    margin-top: auto;
    font-family: "HelveticaNeueCyr-Roman", sans-serif;
    font-size: 14px;
    line-height: 14px;
    color: var(--mcg-link);
}

@media screen and (max-width: 900px) {
    .mcg-contacts__section--team {
        padding: 48px 0;
    }

    .mcg-contacts-team {
        grid-template-columns: 1fr;
    }

    .mcg-contacts-person {
        min-height: 0;
    }
}

@media screen and (max-width: 560px) {
    .mcg-contacts__section--team {
        padding: 24px 0;
        overflow: hidden;
    }

    .mcg-contacts__section--team .mcg-contacts__heading {
        margin-bottom: 16px;
    }

    .mcg-contacts__section--team .mcg-contacts__title {
        margin-bottom: 12px;
    }

    .mcg-contacts-team {
        display: flex;
        gap: 30px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
    }

    .mcg-contacts-team::-webkit-scrollbar {
        display: none;
    }

    .mcg-contacts-person {
        flex: 0 0 272px;
        width: 272px;
        padding: 16px 16px 20px;
        scroll-snap-align: start;
    }

    .mcg-contacts-person__text {
        font-size: 12px;
        line-height: 16px;
    }

    .mcg-contacts-person__photo {
        height: 240px;
        aspect-ratio: auto;
    }

    .mcg-contacts-person__name {
        font-size: 16px;
        line-height: 16px;
    }

    .mcg-contacts-person__role,
    .mcg-contacts-person__mail {
        font-size: 12px;
        line-height: 12px;
    }
}
