.site-title {
    background: #f7f7f7;
    border-top: 1px solid #efefef;
    margin: 0;
    padding: 20px 0 0;
}

.site-title .breadcrumbs {
    margin-bottom: 24px;
}

.site-title h1 {
    color: #151515;
    font-size: 32px;
    font-weight: 700;
    line-height: 36px;
    margin: 0;
}

.mcg-team,
.mcg-team-section {
    --mcg-blue: #2f66b6;
    --mcg-bright: #346af8;
    --mcg-button: #689ae3;
    --mcg-text: #151515;
    --mcg-muted: #5c5c5c;
    --mcg-border: #efefef;
    --mcg-soft: #f7f7f7;
    background: #fff;
    color: var(--mcg-text);
    font-family: "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
}

.mcg-team *,
.mcg-team *::before,
.mcg-team *::after,
.mcg-team-section *,
.mcg-team-section *::before,
.mcg-team-section *::after {
    box-sizing: border-box;
}

.mcg-team .content,
.mcg-team-section > .content {
    margin: 0 auto;
    max-width: 1110px;
    width: calc(100% - 48px);
}

.mcg-team-section {
    padding: 80px 0;
}

.mcg-team-section--hero {
    background: var(--mcg-soft);
    border-top: 0.4px solid var(--mcg-border);
    padding-top: 20px;
}

.mcg-team-section--white {
    background: #fff;
}

.mcg-team-section--work {
    background: var(--mcg-soft);
    border: 0.4px solid var(--mcg-border);
}

.mcg-team-lead {
    color: var(--mcg-muted);
    font-size: 14px;
    line-height: 24px;
    margin: 0 0 48px;
    max-width: 635px;
}

.mcg-team-hero-image {
    border-radius: 8px;
    height: 398px;
    margin-bottom: 48px;
    overflow: hidden;
    width: 100%;
}

.mcg-team-hero-image img {
    display: block;
    height: 100%;
    object-fit: cover;
    object-position: center 18%;
    width: 100%;
}

.mcg-team-title {
    color: var(--mcg-text);
    font-family: "HelveticaNeueCyr-Bold", "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    margin: 0 0 32px;
}

.mcg-team-about__text {
    color: var(--mcg-muted);
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 32px;
}

.mcg-team-about__text p {
    margin: 0 0 12px;
}

.mcg-team-about__text p:last-child {
    margin-bottom: 0;
}

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

.mcg-team-metric {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.04), 0 1px 1px rgba(0, 0, 0, 0.07);
    min-height: 110px;
    padding: 24px;
}

.mcg-team-metric strong {
    color: var(--mcg-blue);
    display: block;
    font-size: 28px;
    font-weight: 500;
    line-height: 28px;
    margin-bottom: 12px;
}

.mcg-team-metric span {
    color: var(--mcg-muted);
    display: block;
    font-size: 14px;
    line-height: 20px;
}

.mcg-team-heading {
    margin-bottom: 32px;
}

.mcg-team-heading .mcg-team-title {
    margin-bottom: 8px;
}

.mcg-team-heading p {
    color: var(--mcg-muted);
    font-family: "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 24px;
    margin: 0;
}

.mcg-team-grid {
    display: grid;
    gap: 30px;
}

.mcg-team-grid--people,
.mcg-team-grid--principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mcg-team-grid--cta {
    gap: 32px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

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

.mcg-team-person__body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mcg-team-person__heading {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mcg-team-person h3,
.mcg-team-cta h3,
.mcg-team-principle h3 {
    color: var(--mcg-blue);
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 24px;
    margin: 0;
}

.mcg-team-person h3,
.mcg-team-cta__person h3 {
    letter-spacing: 0.2909px;
    line-height: 18px;
}

.mcg-team-person__heading p,
.mcg-team-cta__person p {
    color: var(--mcg-muted);
    font-family: "HelveticaNeueCyr-Medium", "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 14px;
    margin: 0;
}

.mcg-team-person__body > p,
.mcg-team-principle p,
.mcg-team-cta p {
    color: var(--mcg-muted);
    font-family: "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 22px;
    margin: 0;
}

.mcg-team-person__body > .mcg-team-person__heading {
    margin-bottom: 16px;
}

.mcg-team-person__body > p {
    margin-bottom: 20px;
}

.mcg-team-cta > div:first-child p {
    line-height: 24px;
}

.mcg-team-person a,
.mcg-team-cta__mail {
    color: var(--mcg-bright);
    font-family: "HelveticaNeueCyr-Roman", "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
    line-height: 14px;
    text-decoration: underline dotted rgba(52, 106, 248, 0.55);
    text-underline-offset: 4px;
    white-space: nowrap;
}

.mcg-team-principle {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 2.5px rgba(0, 0, 0, 0.04), 0 1px 0.5px rgba(0, 0, 0, 0.07);
    min-height: 176px;
    padding: 24px;
}

.mcg-team-principle h3 {
    margin-bottom: 16px;
}

.mcg-team-principle p {
    height: 88px;
    line-height: 22px;
    overflow: hidden;
}

.mcg-team-cta {
    background: var(--mcg-soft);
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.07);
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-content: space-between;
    min-height: 320px;
    padding: 32px;
}

.mcg-team-cta > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mcg-team-cta > div:first-child h3 {
    line-height: 18px;
    margin-bottom: 24px;
}

.mcg-team-cta > div:first-child p + p {
    margin-top: 12px;
}

.mcg-team-cta > a,
.mcg-team-cta__button {
    align-items: center;
    align-self: flex-start;
    background: var(--mcg-button);
    border-radius: 5px;
    color: #fff;
    display: inline-flex;
    font-size: 14px;
    font-weight: 700;
    justify-content: center;
    line-height: 14px;
    min-height: 44px;
    padding: 15px 20px;
    text-align: center;
    text-decoration: none;
}

.mcg-team-cta > a:hover,
.mcg-team-cta > a:focus,
.mcg-team-cta__button:hover,
.mcg-team-cta__button:focus {
    color: #fff;
    text-decoration: none;
}

.mcg-team-cta__person {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mcg-team-cta__person h3 {
    color: var(--mcg-blue);
    font-size: 18px;
    font-weight: 500;
    margin: 0 0 12px;
}

.mcg-team-cta__person p {
    margin-bottom: 20px;
}

@media (max-width: 980px) {
    .site-title {
        padding-top: 16px;
    }

    .site-title .breadcrumbs {
        margin-bottom: 18px;
    }

    .site-title h1 {
        font-size: 26px;
        line-height: 32px;
    }

    .mcg-team .content,
    .mcg-team-section > .content {
        width: calc(100% - 32px);
    }

    .mcg-team-section {
        padding: 64px 0;
    }

    .mcg-team-section--hero {
        padding-top: 8px;
    }

    .mcg-team-hero-image {
        height: 330px;
    }

    .mcg-team-metrics,
    .mcg-team-grid--people,
    .mcg-team-grid--principles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .site-title h1 {
        font-size: 24px;
        line-height: 30px;
    }

    .mcg-team .content,
    .mcg-team-section > .content {
        width: calc(100% - 24px);
    }

    .mcg-team-section {
        padding: 48px 0;
    }

    .mcg-team-lead {
        font-size: 13px;
        line-height: 22px;
        margin-bottom: 32px;
    }

    .mcg-team-hero-image {
        height: 220px;
        margin-bottom: 40px;
    }

    .mcg-team-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 24px;
    }

    .mcg-team-about__text {
        font-size: 14px;
        line-height: 23px;
    }

    .mcg-team-metrics,
    .mcg-team-grid--people,
    .mcg-team-grid--principles,
    .mcg-team-grid--cta {
        gap: 16px;
        grid-template-columns: 1fr;
    }

    .mcg-team-metric {
        min-height: 104px;
        padding: 20px;
    }

    .mcg-team-person,
    .mcg-team-principle {
        padding: 20px;
    }

    .mcg-team-person__photo {
        height: 300px;
    }

    .mcg-team-section--white {
        overflow: hidden;
    }

    .mcg-team-grid--people {
        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-team-grid--people::-webkit-scrollbar {
        display: none;
    }

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

    .mcg-team-grid--people .mcg-team-person__photo {
        height: 240px;
    }

    .mcg-team-grid--people .mcg-team-person h3 {
        font-size: 16px;
        line-height: 16px;
    }

    .mcg-team-grid--people .mcg-team-person__heading p,
    .mcg-team-grid--people .mcg-team-person a {
        font-size: 12px;
        line-height: 12px;
    }

    .mcg-team-grid--people .mcg-team-person__body > p {
        font-size: 12px;
        line-height: 16px;
    }

    .mcg-team-cta {
        min-height: auto;
        padding: 24px;
    }

    .mcg-team-cta > a,
.mcg-team-cta__button {
        width: 100%;
    }
}
