.contact-page {
    color: #17231f;
    background: #ffffff;
}

.contact-page .main-nav > .nav-item > .nav-link.is-contact-active {
    color: var(--green);
}

.contact-page .main-nav > .nav-item > .nav-link.is-contact-active::after {
    width: 100%;
}

.contact-hero {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    color: var(--white);
    background-image: linear-gradient(90deg, rgba(7, 29, 25, 0.83) 0%, rgba(7, 38, 31, 0.62) 48%, rgba(7, 38, 31, 0.18) 100%), url('../image/contact/contact-hero.jpg');
    background-position: center;
    background-size: cover;
}

.contact-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(90deg, var(--green) 0 74%, var(--yellow) 74% 100%);
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 500px;
    flex-direction: column;
    justify-content: center;
    padding-top: 42px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 38px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--white);
}

.contact-kicker,
.contact-channel > p,
.location-label,
.contact-cta-layout > div > p {
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 800;
}

.contact-kicker {
    margin-bottom: 15px;
    color: #f4d06e;
}

.contact-hero h1 {
    max-width: 760px;
    color: var(--white);
    font-size: 52px;
    font-weight: 700;
    line-height: 1.25;
    text-shadow: 0 3px 24px rgba(0, 0, 0, 0.32);
}

.contact-hero-content > p:last-child {
    max-width: 650px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.85;
}

.contact-intro {
    padding: 96px 0 102px;
}

.contact-intro-layout,
.location-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 64px;
}

.contact-intro-layout > div,
.location-heading > div {
    max-width: 680px;
}

.contact-intro-layout h2,
.location-heading h2,
.contact-cta h2 {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-intro-layout > p,
.location-heading > p {
    max-width: 470px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.85;
}

.contact-channels {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.contact-channel {
    position: relative;
    min-height: 310px;
    padding: 40px 36px 34px;
    border-right: 1px solid var(--line);
    transition: background 0.25s ease, transform 0.25s ease;
}

.contact-channel:last-child {
    border-right: 0;
}

.contact-channel:hover {
    background: #f4f8f6;
    transform: translateY(-4px);
}

.channel-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 28px;
    place-items: center;
    color: var(--green);
    background: #e4f1ec;
    border-radius: 4px;
}

.channel-icon svg {
    width: 22px;
    height: 22px;
}

.contact-channel > p {
    margin-bottom: 10px;
    color: var(--green);
}

.contact-channel h3 {
    margin-bottom: 10px;
    font-size: 27px;
    font-weight: 700;
    line-height: 1.35;
}

.contact-channel h3 a:hover {
    color: var(--green);
}

.contact-channel .channel-email {
    overflow-wrap: anywhere;
    font-size: 21px;
}

.contact-channel > span {
    display: block;
    min-height: 54px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.channel-action {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 22px;
    color: var(--green);
    font-size: 14px;
    font-weight: 800;
}

.channel-action svg {
    width: 17px;
    height: 17px;
    transition: transform 0.2s ease;
}

.channel-action:hover svg {
    transform: translate(3px, -3px);
}

.contact-location {
    padding: 96px 0 110px;
    background: #f2f5f3;
}

.location-layout {
    display: grid;
    min-height: 560px;
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, 0.78fr);
    margin-top: 44px;
    overflow: hidden;
    background: var(--white);
    border: 1px solid #d9e2de;
    box-shadow: 0 22px 55px rgba(18, 45, 37, 0.08);
}

.map-shell {
    position: relative;
    min-width: 0;
    min-height: 560px;
    overflow: hidden;
    background: #e7edf2;
    border-right: 1px solid #d9e2de;
}

.contact-map {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 560px;
    background-color: #e7edf2;
    background-image: linear-gradient(rgba(239, 244, 247, 0.14), rgba(239, 244, 247, 0.14)), url('../image/contact/map-fallback.png');
    background-position: center;
    background-size: cover;
}

.map-context {
    position: absolute;
    top: 24px;
    left: 24px;
    display: grid;
    gap: 5px;
    padding: 14px 17px;
    color: #17372f;
    background: rgba(255, 255, 255, 0.94);
    border-left: 4px solid var(--green);
    box-shadow: 0 8px 24px rgba(20, 39, 33, 0.12);
}

.map-context span {
    color: #63736d;
    font-size: 12px;
    font-weight: 700;
}

.map-context strong {
    font-size: 17px;
    font-weight: 800;
}

.map-external {
    position: absolute;
    right: 22px;
    bottom: 22px;
    z-index: 3;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 10px 16px;
    color: #18342c;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #d3dfda;
    box-shadow: 0 8px 24px rgba(20, 39, 33, 0.13);
    font-size: 14px;
    font-weight: 800;
}

.map-external:hover {
    color: var(--green);
    background: var(--white);
}

.map-external svg {
    width: 18px;
    height: 18px;
}

.location-details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px 42px;
}

.location-label {
    margin-bottom: 14px;
    color: var(--green);
}

.location-details h3 {
    font-size: 30px;
    font-weight: 700;
    line-height: 1.55;
}

.location-list {
    display: grid;
    gap: 0;
    margin-top: 34px;
    border-top: 1px solid var(--line);
}

.location-list > div {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.location-list dt {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 7px;
    color: #63736d;
    font-size: 13px;
    font-weight: 700;
}

.location-list dt svg {
    width: 16px;
    height: 16px;
    color: var(--green);
}

.location-list dd {
    overflow-wrap: anywhere;
    color: #1e2d28;
    font-size: 15px;
    line-height: 1.7;
}

.location-list a:hover {
    color: var(--green);
}

.location-call {
    align-self: flex-start;
    margin-top: 32px;
}

.contact-cta {
    position: relative;
    padding: 86px 0;
    overflow: hidden;
    color: var(--white);
    background-image: linear-gradient(90deg, rgba(8, 34, 29, 0.94) 0%, rgba(8, 50, 40, 0.79) 58%, rgba(8, 50, 40, 0.55) 100%), url('../image/contact/contact-service.jpg');
    background-position: center;
    background-size: cover;
}

.contact-cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.contact-cta-layout > div:first-child {
    max-width: 720px;
}

.contact-cta-layout > div > p {
    margin-bottom: 12px;
    color: #f2cf70;
}

.contact-cta h2 {
    color: var(--white);
}

.contact-cta-layout > div > span {
    display: block;
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 16px;
    line-height: 1.8;
}

.contact-cta-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 12px;
}

@media (max-width: 1040px) {
    .contact-hero,
    .contact-hero-content {
        min-height: 460px;
    }

    .contact-hero-content {
        padding-top: 28px;
    }

    .contact-hero h1 {
        font-size: 46px;
    }

    .contact-intro-layout,
    .location-heading,
    .contact-cta-layout {
        align-items: flex-start;
        flex-direction: column;
        gap: 24px;
    }

    .contact-channels {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-channel:nth-child(2) {
        border-right: 0;
    }

    .contact-channel:last-child {
        grid-column: 1 / -1;
        border-top: 1px solid var(--line);
    }

    .location-layout {
        grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    }

    .location-details {
        padding: 42px 32px;
    }

    .contact-cta-actions {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .contact-hero,
    .contact-hero-content {
        min-height: 510px;
    }

    .contact-hero {
        background-image: linear-gradient(rgba(7, 32, 27, 0.72), rgba(7, 32, 27, 0.72)), url('../image/contact/contact-hero.jpg');
        background-position: 62% center;
    }

    .contact-hero-content {
        justify-content: flex-end;
        padding-top: 80px;
        padding-bottom: 62px;
    }

    .breadcrumb {
        margin-bottom: 28px;
    }

    .contact-hero h1 {
        font-size: 38px;
    }

    .contact-hero-content > p:last-child {
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.75;
    }

    .contact-intro,
    .contact-location {
        padding: 72px 0;
    }

    .contact-intro-layout h2,
    .location-heading h2,
    .contact-cta h2 {
        font-size: 32px;
    }

    .contact-channels {
        grid-template-columns: 1fr;
        margin-top: 34px;
    }

    .contact-channel,
    .contact-channel:nth-child(2),
    .contact-channel:last-child {
        min-height: 0;
        grid-column: auto;
        padding: 30px 24px;
        border-top: 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .contact-channel:last-child {
        border-bottom: 0;
    }

    .contact-channel h3 {
        font-size: 25px;
    }

    .contact-channel .channel-email {
        font-size: 20px;
    }

    .location-layout {
        grid-template-columns: 1fr;
        margin-top: 32px;
    }

    .map-shell,
    .contact-map {
        min-height: 390px;
    }

    .map-shell {
        border-right: 0;
        border-bottom: 1px solid #d9e2de;
    }

    .map-external {
        right: 14px;
        bottom: 14px;
    }

    .map-context {
        top: 14px;
        left: 14px;
    }

    .location-details {
        padding: 38px 24px 42px;
    }

    .location-details h3 {
        font-size: 27px;
    }

    .contact-cta {
        padding: 72px 0;
        background-position: 62% center;
    }

    .contact-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .contact-cta-actions .button {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .contact-hero h1 {
        font-size: 34px;
    }

    .contact-intro-layout h2,
    .location-heading h2,
    .contact-cta h2 {
        font-size: 29px;
    }

    .map-shell,
    .contact-map {
        min-height: 340px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .contact-channel,
    .channel-action svg {
        transition: none;
    }
}
