.page-contacts { background: #fff; }

.contacts-page {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 2rem 0;
}

.contacts-back {
    padding: 1rem 0;
    font-size: 0.85rem;
    color: #666;
}

.contacts-back a { color: inherit; text-decoration: underline; }
.contacts-back a:hover { text-decoration: none; color: #000; }

.contacts-header {
    text-align: center;
    margin: 1rem 0 3rem;
}

.contacts-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
}

.contacts-intro {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #222;
}

.contacts-intro p { margin: 0 0 1em; }
.contacts-intro p:last-child { margin-bottom: 0; }

/* ─── Contact cards ────────────────────────────────────────────────── */

.contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-card {
    display: flex;
    flex-direction: column;
    padding: 1.75rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    transition: background 0.15s, border-color 0.15s;
}

.contact-card:hover {
    background: #fff;
    border-color: #000;
}

.contact-card-header {
    margin-bottom: 1.5rem;
}

.contact-card-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 0.5rem;
    line-height: 1.3;
}

.contact-card-subtitle {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.4;
}

.contact-card-body {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-card-phone,
.contact-card-email {
    font-size: 0.95rem;
}

.contact-card-phone a,
.contact-card-email a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s;
}

.contact-card-phone a:hover,
.contact-card-email a:hover {
    border-bottom-color: currentColor;
}

.contact-card-email a {
    word-break: break-all;
}

/* ─── Map ──────────────────────────────────────────────────────────── */

.contacts-map {
    width: 100vw;
    margin-left: calc(50% - 50vw);  /* break out to full viewport width */
    margin-right: calc(50% - 50vw);
    margin-bottom: -1rem;
}

.contacts-map iframe,
.contacts-map > div {
    width: 100% !important;
    display: block;
}

/* ─── Responsive ───────────────────────────────────────────────────── */

@media (max-width: 1024px) {
    .contacts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .contacts-page { padding: 0.5rem 1rem 0; }
    .contacts-heading { font-size: 1.75rem; }
    .contacts-grid { grid-template-columns: 1fr; gap: 1rem; }
    .contact-card { padding: 1.25rem; }
}
/* ─── Intro block ────────────────────────────────────────────────────
 *
 * Free-form CMS HTML lives in .contacts-intro (page.more, rendered via
 * enrich_html). Legacy markup used `<div class="contacts">…</div>` —
 * these rules keep the same visual contract under the new wrapper.
 *
 * Typical legacy content:
 *   <div class="top">
 *     <p class="title">…</p>
 *     <p>…</p>
 *   </div>
 */
.contacts-intro {
    text-align: center;
}
.contacts-intro p {
    font-size: 16px;
    margin: 0;
}
.contacts-intro p.title {
    font-weight: bold;
    font-size: 24px;
}
.contacts-intro .top {
    padding-bottom: 40px;
}
