.contact-hero {
    position: relative;
    min-height: 540px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(5, 24, 40, .86), rgba(5, 24, 40, .28));
    overflow: hidden;
}

.contact-hero-copy {
    position: relative;
    z-index: 2;
    width: min(1160px, calc(100% - 48px));
    margin: 0 auto;
    padding: 86px 0 96px;
}

.contact-hero-copy p,
.contact-section-head p {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 900;
}

.contact-hero-copy h1 {
    max-width: 740px;
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(46px, 7vw, 78px);
    line-height: .98;
}

.contact-hero-copy > span {
    display: block;
    max-width: 620px;
    color: rgba(255,255,255,.88);
    font-size: 20px;
}

.contact-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.contact-page {
    padding: 42px 0 56px;
    background: linear-gradient(180deg, #f6f9fc, #fff 460px);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: -86px;
    position: relative;
    z-index: 2;
}

.contact-cards article,
.map-card,
.map-modal-panel {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 18px 42px rgba(21,42,65,.12);
}

.contact-cards article {
    padding: 22px;
}

.contact-cards span {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 12px;
    border-radius: 50%;
    color: var(--teal);
    background: #f3eadc;
    font-weight: 900;
}

.contact-cards h2 {
    margin: 0 0 8px;
    font-size: 20px;
}

.contact-cards p {
    min-height: 58px;
    margin: 0 0 14px;
    color: #50657b;
}

.contact-cards a {
    color: var(--blue-dark);
    font-weight: 900;
}

.contact-map-section {
    padding: 48px 0;
}

.contact-section-head {
    margin-bottom: 20px;
}

.contact-section-head h2 {
    margin: 0 0 8px;
}

.contact-section-head span {
    color: var(--muted);
}

.map-card {
    overflow: hidden;
    padding: 10px;
}

.map-card iframe,
.map-lazy {
    display: block;
    width: 100%;
    height: 460px;
    border-radius: 9px;
}

.map-lazy {
    display: grid;
    place-items: center;
    min-height: 460px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(238, 247, 246, .9)),
        radial-gradient(circle at 20% 20%, rgba(207, 161, 89, .2), transparent 34%),
        linear-gradient(120deg, rgba(21, 90, 133, .14) 0 1px, transparent 1px 52px),
        #edf6f7;
}

.map-lazy-content {
    display: grid;
    justify-items: center;
    gap: 10px;
    max-width: 360px;
    padding: 28px;
    color: var(--blue-dark);
    text-align: center;
}

.map-lazy-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, #1d6f99, #0f4a70);
    box-shadow: 0 12px 28px rgba(21, 90, 133, .22);
}

.map-lazy-content strong {
    font-size: 1.08rem;
    line-height: 1.3;
}

.map-lazy-content span:not(.map-lazy-icon) {
    color: var(--muted);
    line-height: 1.6;
}

.map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.map-modal[hidden] {
    display: none;
}

body.map-modal-open {
    overflow: hidden;
}

.map-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: grid;
    place-items: center;
    padding: 24px;
}

.map-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 13, 24, .72);
    backdrop-filter: blur(5px);
}

.map-modal-panel {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(1040px, 100%);
    max-height: min(860px, calc(100vh - 48px));
    overflow: hidden;
}

.map-modal-head,
.map-modal-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
}

.map-modal-head {
    border-bottom: 1px solid var(--line);
}

.map-modal-head h2 {
    margin: 0;
    font-size: clamp(22px, 3vw, 30px);
}

.map-modal-close {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--blue-dark);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.map-modal-body {
    overflow: auto;
    padding: 18px;
    background: #f7fafc;
}

.map-modal-body img {
    width: 100%;
    min-width: 620px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(21,42,65,.14);
}

.map-modal-actions {
    justify-content: flex-end;
    border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .contact-hero-copy,
    .contact-cards,
    .contact-map-section {
        width: min(100% - 28px, 1160px);
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .contact-cards {
        margin-top: -62px;
    }

    .map-card iframe,
    .map-lazy {
        height: 420px;
        min-height: 420px;
    }

    .map-lazy-content {
        padding: 22px;
    }

    .contact-hero-actions .btn,
    .map-actions .btn,
    .map-modal-actions .btn {
        width: 100%;
        min-height: 54px;
    }

    .map-modal {
        padding: 12px;
    }

    .map-modal-panel {
        max-height: calc(100vh - 24px);
    }

    .map-modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }
}
