﻿.contacts-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 70px;
}

.contacts-section h1 {
    color: var(--primary-blue);
    margin: 0 0 30px;
    text-align: center;
}

.contacts-panel {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.contact-card {
    background-color: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    min-height: 150px;
    padding: 24px;
}

.contact-card-wide {
    grid-column: 1 / -1;
    min-height: 120px;
}

.contact-card h2,
.contact-card h3 {
    color: var(--primary-blue);
    margin: 0 0 16px;
    text-align: left;
}

.contact-card p,
.contact-card a {
    color: var(--text-secondary);
    display: inline-block;
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.6;
    margin: 0;
    text-decoration: none;
}

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

.contacts-map {
    margin-top: 24px;
    overflow: hidden;
    background: var(--card-background);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.contacts-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px;
    border-bottom: 1px solid #d9e5ef;
}

.contacts-map-header h2 {
    margin: 0 0 8px;
    color: var(--primary-blue);
}

.contacts-map-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: clamp(15px, 2vw, 18px);
    line-height: 1.5;
}

.contacts-map-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    background: var(--primary-blue);
    border-radius: 8px;
}

.contacts-map-header a:hover {
    background: var(--hover-blue);
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: clamp(340px, 48vw, 520px);
    border: 0;
}

@media (max-width: 760px) {
    .contacts-panel {
        grid-template-columns: 1fr;
    }

    .contacts-map-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .contacts-map-header a {
        width: 100%;
    }
}

/* Executive inner-page theme */
body > main {
    box-sizing: border-box;
    margin: 0 auto;
    max-width: 1380px;
    padding: clamp(42px, 5vw, 78px) 20px 96px;
}

body > main > .page-trail {
    margin: 0 0 28px;
}

.contacts-section {
    max-width: 1380px;
    padding: 0;
}

.contacts-section h1 {
    color: var(--ez-text, var(--color-text));
    display: block !important;
    font-family: var(--site-font-family);
    font-size: clamp(46px, 5vw, 74px);
    font-weight: 600;
    margin: 0 0 28px;
    text-align: left;
}

body.has-page-trail .contacts-section > h1 {
    border: 0 !important;
    clip: auto !important;
    clip-path: none !important;
    height: auto !important;
    margin: 0 0 28px !important;
    overflow: visible !important;
    padding: 0 !important;
    position: static !important;
    white-space: normal !important;
    width: auto !important;
}

.contact-card,
.contacts-map {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(19, 24, 49, 0.14);
    border-radius: 0;
    box-shadow: none;
}

.contact-card h2,
.contact-card h3,
.contacts-map-header h2 {
    color: var(--ez-text, var(--color-text));
    font-family: var(--site-font-family);
}

.contact-card p,
.contact-card a,
.contacts-map-header p {
    color: #394154;
    max-width: 100%;
    overflow-wrap: break-word;
}

.contacts-map-header {
    border-bottom-color: rgba(19, 24, 49, 0.14);
}

.contacts-map-header a {
    background: var(--color-header);
    border-radius: 0;
}

.contacts-map-header a:hover {
    background: #181b3e;
}

/* Refined contacts scale */
body > main {
    padding: clamp(30px, 4vw, 56px) 20px 76px;
}

.contacts-section h1 {
    color: var(--site-ink, var(--color-text));
    font-family: var(--site-font-family);
    font-size: clamp(30px, 3.2vw, 42px);
    font-weight: 600;
    line-height: 1.14;
    margin-bottom: 24px;
}

.contact-card,
.contacts-map {
    border-radius: 6px;
}

.contact-card h2,
.contact-card h3,
.contacts-map-header h2 {
    color: var(--site-ink, var(--color-text));
    font-family: var(--site-font-family);
}

.contact-card p,
.contact-card a,
.contacts-map-header p {
    color: var(--site-muted, var(--color-muted));
    font-size: 16px;
    line-height: 1.62;
}

.contacts-map-header a {
    background: var(--site-accent, var(--color-accent));
    border-radius: 6px;
    color: #ffffff !important;
}

.contacts-map-header a:hover {
    background: var(--site-accent-strong, var(--color-accent-hover));
    color: #ffffff !important;
}
