.social-proof {
    width: 100%;
    padding: 88px 0 96px;
    background: var(--color-surface);
}

.social-proof-shell {
    width: min(1280px, calc(100% - 48px));
    margin-inline: auto;
}

.social-proof-head {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: start;
}

.social-proof-heading {
    min-width: 0;
}

.social-proof-title {
    max-width: 15ch;
    margin: 0;
    color: var(--color-heading);
    font-size: clamp(40px, 4.2vw, 58px);
    font-weight: 700;
    line-height: 0.99;
    letter-spacing: -0.055em;
}

.social-proof-copy {
    max-width: 48ch;
    margin: 0 0 4px;
    color: var(--color-muted-strong);
    font-size: 18px;
    line-height: 1.62;
    letter-spacing: -0.01em;
}

.social-proof-logos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1px;
    margin: 58px 0 0;
    padding: 0;
    list-style: none;
    background: var(--color-border);
    background-clip: padding-box;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    overflow: hidden;
}

.social-proof-logo {
    min-width: 0;
    min-height: 126px;
    display: grid;
    place-items: center;
    padding: 20px;
    background: var(--color-surface);
}

.social-proof-logo-frame {
    display: block;
    width: min(100%, var(--logo-width));
}

.social-proof-logo-image {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}

@media (min-width: 981px) {
    .social-proof-head {
        justify-items: center;
        gap: var(--space-5);
        text-align: center;
    }

    .social-proof-title {
        max-width: 22ch;
        line-height: 1.06;
        text-wrap: balance;
    }

    .social-proof-copy {
        max-width: 66ch;
        margin: 0;
        text-wrap: pretty;
    }
}

@media (max-width: 980px) {
    .social-proof {
        padding: 72px 0 80px;
    }

    .social-proof-shell {
        width: min(900px, calc(100% - 34px));
    }

    .social-proof-head {
        text-align: left;
    }

    .social-proof-title {
        max-width: 13ch;
        font-size: clamp(36px, 7vw, 52px);
    }

    .social-proof-copy {
        max-width: 42ch;
    }

    .social-proof-logos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-top: 48px;
    }
}

@media (max-width: 620px) {
    .social-proof {
        padding: 48px 0 56px;
    }

    .social-proof-shell {
        width: calc(100% - 32px);
    }

    .social-proof-title {
        max-width: 14ch;
        font-size: 34px;
    }

    .social-proof-copy {
        font-size: 16px;
        line-height: 1.55;
    }

    .social-proof-logos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 36px;
    }

    .social-proof-logos:has(> .social-proof-logo:last-child:nth-child(odd))::after {
        content: '';
        background: var(--color-surface);
    }

    .social-proof-logo {
        min-height: 104px;
        padding: 16px 12px;
    }

    .social-proof-logo-frame {
        width: min(100%, calc(var(--logo-width) * 0.82));
    }

}
