.mg-team {
    padding: 0 0 4rem;
}

.mg-team__card {
    padding: clamp(1.5rem, 3vw, 3rem);
    border-radius: 20px;
    background: var(--mg-accent);
    color: #fff;
}

.mg-team__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2rem;
}

.mg-team__intro {
    flex: 0 1 521px;
    margin: 0;
    padding-top: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.45;
    color: #fff;
}

.mg-team__title {
    flex: 0 1 496px;
    margin: 0;
    font-size: clamp(1.5rem, 2.8vw, 2.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.mg-team__track-wrap {
    overflow: hidden;
    width: 100%;
    container-type: inline-size;
}

.mg-team__track {
    display: flex;
    gap: 1.875rem;
    transition: transform 0.35s ease;
    will-change: transform;
}

.mg-team__member {
    flex: 0 0 calc(33.333cqi - 1.25rem);
    min-width: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mg-team__photo {
    width: 250px;
    height: 250px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    overflow: hidden;
    background: #d6b64b;
}

.mg-team__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.mg-team__info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: min(100%, 342px);
    min-height: 60px;
    padding: 0.625rem 0.875rem;
    border-radius: 65px;
    background: #d6b64b;
}

.mg-team__name {
    flex: 1 1 auto;
    margin: 0;
    padding: 0.375rem 0.75rem;
    border-radius: 65px;
    background: var(--mg-accent);
    font-size: 0.875rem;
    font-weight: 400;
    text-align: left;
    color: #fff;
}

.mg-team__social {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.mg-team__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--mg-accent);
    transition: opacity 0.2s ease;
}

.mg-team__social a:hover {
    opacity: 0.92;
}

.mg-team__social img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mg-team__role {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.mg-team__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 2rem;
}

.mg-team__progress {
    flex: 1 1 auto;
    max-width: 893px;
}

.mg-team__counter {
    display: inline-block;
    margin-bottom: 0.65rem;
    font-size: 0.875rem;
    color: #fff;
}

.mg-team__progress-bar {
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.35);
    overflow: hidden;
}

.mg-team__progress-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #fff;
    transition: width 0.35s ease;
}

.mg-team__nav {
    display: inline-flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.mg-team__nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.mg-team__nav-btn:hover {
    opacity: 0.92;
}

.mg-team__nav-btn:disabled {
    opacity: 0.35;
    cursor: default;
}

@media (max-width: 991px) {
    .mg-team__head {
        flex-direction: column;
    }

    .mg-team__intro,
    .mg-team__title {
        flex: 1 1 auto;
        max-width: none;
    }

    .mg-team__intro {
        padding-top: 0;
    }

    .mg-team__member {
        flex: 0 0 calc(50cqi - 0.9375rem);
    }
}

@media (max-width: 639px) {
    .mg-team__member {
        flex: 0 0 100cqi;
    }

    .mg-team__controls {
        flex-direction: column;
        align-items: stretch;
    }

    .mg-team__nav {
        justify-content: flex-end;
    }
}
