/* OHM Academy contact page — standalone layout */
.ohm-contact-page {
    --ohm-green: #64a942;
    --ohm-green-dark: #4d8932;
    --ohm-blue: #67bee0;
    --ohm-text: #5f6261;
    --ohm-muted: #7b817e;
    --ohm-line: #e4ebe6;
    --ohm-soft: #f5f9f5;
    --ohm-white: #ffffff;
    padding: 44px 18px 70px;
    box-sizing: border-box;
}

.ohm-contact-page *,
.ohm-contact-page *::before,
.ohm-contact-page *::after {
    box-sizing: border-box;
}

.ohm-contact-shell {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.ohm-contact-hero {
    position: relative;
    overflow: hidden;
    padding: 48px 52px;
    border-radius: 20px 20px 0 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(255,255,255,.23) 0 10%, transparent 11%),
        linear-gradient(135deg, #6aae47 0%, #5e9e3d 58%, #4d8732 100%);
    box-shadow: 0 18px 48px rgba(42, 77, 51, .15);
}

.ohm-contact-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: -110px;
    top: -190px;
    border-radius: 50%;
    border: 48px solid rgba(255,255,255,.08);
}

.ohm-contact-hero h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -.025em;
}

.ohm-contact-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    padding: 24px;
    background: #fff;
}

.ohm-contact-card {
    min-width: 0;
    padding: 26px;
    border: 1px solid var(--ohm-line);
    border-radius: 15px;
    background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
    box-shadow: 0 8px 24px rgba(49, 77, 59, .055);
}

.ohm-contact-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border-radius: 13px;
    background: #eef7ea;
    color: var(--ohm-green-dark);
}

.ohm-contact-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ohm-contact-card h2,
.ohm-route-item h2 {
    margin: 0 0 10px;
    color: #626664;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
}

.ohm-contact-card p,
.ohm-route-item p {
    margin: 0;
    color: var(--ohm-text);
    font-size: 16px;
    line-height: 1.72;
}

.ohm-contact-card a {
    color: #468eaa;
    text-decoration: none;
    transition: color .18s ease;
}

.ohm-contact-card a:hover,
.ohm-contact-card a:focus-visible {
    color: #32748e;
    text-decoration: underline;
}

.ohm-social-links a {
    display: inline-block;
    margin: 1px 0;
    font-weight: 600;
}

.ohm-contact-location {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.35fr);
    gap: 24px;
    padding: 0 24px 28px;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 22px 48px rgba(42, 77, 51, .14);
}

.ohm-route-card {
    padding: 8px 28px 8px 4px;
}

.ohm-route-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--ohm-line);
}

.ohm-route-item:first-child {
    padding-top: 12px;
}

.ohm-route-item:last-child {
    border-bottom: 0;
    padding-bottom: 12px;
}

.ohm-route-item h2 {
    position: relative;
    padding-left: 18px;
}

.ohm-route-item h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: .48em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ohm-blue);
}

.ohm-map-card {
    min-width: 0;
    padding: 8px;
    border: 1px solid var(--ohm-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(49, 77, 59, .07);
}

#ohm-contact-map {
    width: 100%;
    height: 100%;
    min-height: 520px;
    border-radius: 12px;
    overflow: hidden;
    background: #eef3ef;
}

#ohm-contact-map .leaflet-popup-content {
    font-size: 14px;
    line-height: 1.5;
}

#ohm-contact-map .leaflet-control-attribution {
    font-size: 10px;
}

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

    .ohm-contact-card:last-child {
        grid-column: 1 / -1;
    }

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

    .ohm-route-card {
        padding-right: 4px;
    }

    #ohm-contact-map {
        min-height: 460px;
    }
}

@media (max-width: 640px) {
    .ohm-contact-page {
        padding: 20px 10px 42px;
    }

    .ohm-contact-hero {
        padding: 32px 24px;
        border-radius: 14px 14px 0 0;
    }

    .ohm-contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 16px;
    }

    .ohm-contact-card:last-child {
        grid-column: auto;
    }

    .ohm-contact-card {
        padding: 22px;
    }

    .ohm-contact-location {
        gap: 14px;
        padding: 0 16px 18px;
        border-radius: 0 0 14px 14px;
    }

    .ohm-route-card {
        padding: 0 4px;
    }

    .ohm-route-item {
        padding: 20px 0;
    }

    #ohm-contact-map {
        min-height: 380px;
    }
}
