.contact-page {
    min-height: 100vh;
    padding-top: 76px;
    background: #050505;
}

.contact-hero-new,
.contact-departments,
.contact-visit {
    width: min(1500px, calc(100% - 96px));
    margin: 0 auto;
}

.contact-hero-new {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: flex-end;
    min-height: 420px;
    padding: 96px 0 72px;
    border-bottom: 1px solid var(--line);
}

.contact-hero-new::before,
.contact-hero-new::after {
    content: "";
    position: absolute;
    inset: 0 calc((100% - 100vw) / 2);
    z-index: -1;
    pointer-events: none;
}

.contact-hero-new::before {
    background: url("../images/contact.png") center / cover no-repeat;
}

.contact-hero-new::after {
    background:
        linear-gradient(90deg, rgba(5, 5, 5, 0.94) 0%, rgba(5, 5, 5, 0.68) 48%, rgba(5, 5, 5, 0.88) 100%),
        linear-gradient(180deg, rgba(5, 5, 5, 0.7) 0%, rgba(5, 5, 5, 0.22) 44%, #050505 100%);
}

.contact-hero-new h1 {
    color: var(--text);
    font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
    font-size: clamp(88px, 10vw, 154px);
    font-weight: 600;
    line-height: 0.86;
    letter-spacing: 0;
}

.contact-hero-new p {
    max-width: none;
    margin-top: 28px;
    color: rgba(245, 245, 240, 0.62);
    font-size: clamp(18px, 1.25vw, 22px);
    line-height: 1.42;
    white-space: nowrap;
}

.contact-departments {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 46px 0 86px;
    border-bottom: 0;
}

.contact-departments::before,
.contact-departments::after {
    content: "";
    position: absolute;
    left: 50%;
    width: 100vw;
    height: 1px;
    transform: translateX(-50%);
    background: var(--line);
}

.contact-departments::before {
    top: 0;
}

.contact-departments::after {
    bottom: 0;
}

.contact-dept-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 8px;
    background:
        linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.014) 58%),
        #0b0b0b;
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.contact-dept-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 138, 0, 0.42);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
        #0d0d0d;
}

.contact-dept-card.is-featured {
    grid-column: span 1;
}

.contact-dept-card:last-child {
    grid-column: span 2;
}

.contact-dept-card span {
    width: max-content;
    min-width: 36px;
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 138, 0, 0.22);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.contact-dept-card h2 {
    max-width: 480px;
    margin-top: 28px;
    color: var(--text);
    font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
    font-size: clamp(30px, 2.45vw, 44px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0;
    text-wrap: balance;
}

.contact-dept-card p {
    max-width: 440px;
    margin-top: 18px;
    color: rgba(245, 245, 240, 0.55);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.contact-dept-card a {
    width: fit-content;
    max-width: 100%;
    display: inline-flex;
    align-items: center;
    margin-top: 9px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(245, 245, 240, 0.92);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
}

.contact-dept-card a:first-of-type {
    margin-top: auto;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.contact-visit {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: 48px;
    padding: 92px 0 108px;
    border-bottom: 1px solid var(--line);
}

.contact-visit-copy h2 {
    max-width: 720px;
    color: var(--text);
    font-family: "Space Grotesk", "Manrope", Arial, sans-serif;
    font-size: clamp(46px, 4.7vw, 82px);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: 0;
}

.contact-visit-copy p {
    max-width: 560px;
    margin-top: 28px;
    color: rgba(245, 245, 240, 0.62);
    font-size: clamp(17px, 1.2vw, 20px);
    line-height: 1.5;
}

.contact-schedule-new {
    max-width: 520px;
    margin-top: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-schedule-new div {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-schedule-new span {
    color: rgba(245, 245, 240, 0.56);
    font-size: 15px;
}

.contact-schedule-new strong {
    color: var(--text);
    font-size: 15px;
}

.contact-map-link {
    min-height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 34px;
    padding: 0 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #050505;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.contact-map-frame {
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    background: #101010;
}

.contact-map-frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 500px;
    border: 0;
}

.contact-map-frame iframe:not([src]) {
    display: none;
}

.contact-map-frame .cookie-placeholder {
    min-height: 500px;
    background: linear-gradient(145deg, #151515, #060606);
}

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

    .contact-dept-card.is-featured {
        grid-column: span 1;
    }

    .contact-dept-card:last-child {
        grid-column: span 2;
    }

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

@media (max-width: 680px) {
    .contact-page {
        padding-top: 64px;
    }

    .contact-hero-new,
    .contact-departments,
    .contact-visit {
        width: calc(100% - 32px);
    }

    .contact-hero-new {
        min-height: 330px;
        padding: 58px 0 44px;
    }

    .contact-hero-new h1 {
        font-size: clamp(64px, 24vw, 94px);
    }

    .contact-hero-new p {
        margin-top: 22px;
        font-size: 18px;
        white-space: normal;
    }

    .contact-departments {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 36px 0 66px;
    }

    .contact-dept-card {
        min-height: 0;
        padding: 22px;
    }

    .contact-dept-card:last-child {
        grid-column: span 1;
    }

    .contact-dept-card h2 {
        margin-top: 24px;
        font-size: 32px;
    }

    .contact-visit {
        gap: 34px;
        padding: 64px 0 76px;
    }

    .contact-visit-copy h2 {
        font-size: clamp(42px, 15vw, 64px);
    }

    .contact-schedule-new div {
        flex-direction: column;
        gap: 6px;
    }

    .contact-map-frame,
    .contact-map-frame iframe,
    .contact-map-frame .cookie-placeholder {
        min-height: 360px;
    }
}

