.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    max-width: 1040px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;
}

.contact-card,
.venue {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid var(--gray);
    border-radius: 16px;
    padding: 32px 26px;
    text-align: center;
    box-shadow: var(--shadow);
}

.contact-card {
    height: 100%;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue-light);
}

.contact-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    margin: 0 auto 18px;
    background: var(--blue-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 26px;
    height: 26px;
    color: var(--blue);
}

.contact-card h3,
.venue h3 {
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-light);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.5;
}

.contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.contact-name:last-of-type {
    margin-bottom: 16px;
}

.contact-degree {
    font-size: 0.92rem;
    color: var(--text-light);
    line-height: 1.45;
    margin-bottom: 16px;
    overflow-wrap: anywhere;
}

.contact-links {
    width: 100%;
    margin: auto 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--gray);
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.contact-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text);
    transition: color var(--transition);
    overflow-wrap: anywhere;
}

.contact-links a:hover {
    color: var(--blue);
}

.contact-links svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--blue);
}

.contact-links a:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.contact-links .contact-pending {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--text-light);
    overflow-wrap: anywhere;
}

.venue {
    grid-column: 1 / -1;
}

.venue-address {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text);
    max-width: 62ch;
}

.venue-address br {
    line-height: 1.9;
}
