.team-block {
    position: relative;
    overflow: hidden;
    background-color: #1f1f1f;
    color: #fff;
    padding: 56px 24px;
}

.team-block__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    max-width: 100%;
    margin: auto;
}

.team-block__bg-img {
    position: absolute;
    top: 0;
    left: -403px;
    width: 959px;
    height: auto;
    max-width: none;
    transform: scaleY(-1) rotate(180deg);
    opacity: 1;
}

.team-block__inner {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: auto;
}

.team-block__content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 100%;
}

.team-block__title {
    margin: 0;
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.33;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #fff;
}

.team-block__title-accent {
    color: #c82123;
}

.team-block__text {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.65;
    color: #82898e;
}

.team-block__avatars-row {
    display: flex;
    align-items: center;
    padding: 24px 0 16px;
}

.team-block__avatars {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.team-block__avatar {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    margin-right: -24px;
    padding: 3px;
    border: 3px solid #1f1f1f;
    border-radius: 50%;
    overflow: hidden;
    background-color: #1f1f1f;
}

.team-block__avatar:last-child {
    margin-right: 0;
}

.team-block__avatar-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.team-block__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-left: 28px;
    flex-shrink: 0;
}

.team-block__stat-value {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.26px;
    text-transform: uppercase;
    color: #fff;
    white-space: nowrap;
}

.team-block__stat-label {
    font-family: 'Manrope', sans-serif;
    font-weight: 500;
    font-size: 14px;
    line-height: 1.65;
    color: #82898e;
}

.team-block__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    background-color: #c82123;
    color: #fff;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease;
}

.team-block__btn:hover {
    background-color: #a81b1d;
    color: #fff;
    text-decoration: none;
}

@media (min-width: 768px) {
    .team-block {
        padding: 64px 40px;
    }

    .team-block__bg-img {
        left: -100px;
        width: 1015px;
    }

    .team-block__content {
        max-width: 664px;
        gap: 40px;
    }

    .team-block__title {
        font-size: 34px;
        line-height: 44px;
        letter-spacing: -0.34px;
        max-width: 470px;
    }

    .team-block__avatars-row {
        gap: 16px;
        padding: 0;
    }

    .team-block__stat {
        padding-left: 0;
    }

    .team-block__stat-value {
        font-size: 28px;
        line-height: 28px;
        letter-spacing: -0.56px;
    }

    .team-block__stat-label {
        font-size: 13px;
        line-height: 20.8px;
        color: rgba(255, 255, 255, 0.45);
    }

    .team-block__btn {
        width: auto;
        align-self: flex-start;
        height: 56px;
        padding: 0 32px;
        white-space: nowrap;
    }
}

@media (min-width: 1280px) {
    .team-block {
        padding: 96px 80px;
    }

    .team-block__bg-img {
      /*  left: 117px;
        top: 7px;*/
        width: 100%;
    }

    .team-block__content {
        max-width: 480px;
        gap: 24px;
    }

    .team-block__title {
        font-size: 52px;
        line-height: 56px;
        letter-spacing: -0.518px;
        max-width: none;
    }

    .team-block__text {
        font-size: 16px;
        line-height: 24px;
    }

    .team-block__avatar {
        width: 72px;
        height: 72px;
        margin-right: -18px;
    }

    .team-block__avatars-row {
        gap: 28px;
        padding: 24px 0 16px;
    }

    .team-block__stat-value {
        font-size: 26px;
        line-height: 30px;
        letter-spacing: -0.3px;
    }

    .team-block__stat-label {
        font-size: 14px;
        line-height: 20px;
        color: #82898e;
    }

    .team-block__btn {
        width: auto;
        align-self: flex-start;
        height: 56px;
        padding: 19.5px 32px 20.5px;
        white-space: nowrap;
    }
}
