.contact {
    background: var(--color-bg-alt);
    padding-block: clamp(4rem, 8vw, 5rem);
}

.contact__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.15fr) minmax(220px, 0.85fr);
    gap: clamp(2rem, 4vw, 3rem);
    align-items: center;
}

.contact__content {
    max-width: 28rem;
}

.contact__title {
    margin-bottom: 1rem;
    color: var(--color-heading);
    font-size: clamp(1.8rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
}

.contact__description {
    margin-bottom: 1.5rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact__button {
    gap: 0.75rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.85rem;
}

.contact__social {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

@media (max-width: 1080px) {
    .contact__layout {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    .contact__social {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.5rem;
        padding-top: 1.25rem;
        border-top: 1px solid rgba(148, 163, 184, 0.12);
    }

    .contact__social .contact__eyebrow {
        margin: 0;
        flex-shrink: 0;
    }

    .contact__social .social-links {
        margin: 0;
    }

    .contact__social .contact-info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
}

@media (max-width: 860px) {
    .contact__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact__content,
    .testimonial {
        width: min(100%, 42rem);
        margin-inline: auto;
    }

    .contact__content {
        text-align: center;
    }

    .contact__button {
        justify-content: center;
    }

    .contact__social {
        grid-column: auto;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding-top: 0;
        border-top: 0;
        text-align: center;
    }

    .contact__social .contact__eyebrow {
        margin-bottom: 0.75rem;
    }

    .contact__social .social-links {
        margin-bottom: 1.25rem;
    }

    .contact__social .contact-info {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .contact__description {
        font-size: 0.85rem;
        line-height: 1.65;
    }

    .contact__button {
        width: 100%;
        max-width: 20rem;
    }
}
