.page-contact .page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(42px, 5vw, 64px) 0 clamp(28px, 3.6vw, 44px);
    background:
        radial-gradient(circle at 86% 18%, rgba(20, 184, 166, .18), transparent 30%),
        radial-gradient(circle at 12% 22%, rgba(37, 99, 235, .12), transparent 28%),
        linear-gradient(135deg, #f6fbff, #edf5ff);
}

.page-contact .section {
    padding-top: clamp(28px, 3.4vw, 44px);
}

.page-contact .page-hero::after {
    content: "";
    position: absolute;
    right: -140px;
    bottom: -190px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(37, 99, 235, .12);
    border-radius: 999px;
    pointer-events: none;
}

.contact-hero-copy {
    position: relative;
    z-index: 1;
}

.contact-hero-copy h1 {
    max-width: 660px;
    font-size: clamp(38px, 4.2vw, 58px);
    font-weight: 700;
}

.contact-hero-copy .lead {
    max-width: 680px;
    color: #31537b;
}

.contact-info-panel,
.contact-form-card,
.contact-location-card {
    position: relative;
    z-index: 1;
    border: 1px solid #c8ddfb;
    border-radius: 26px;
    background: rgba(255, 255, 255, .86);
    box-shadow: 0 26px 70px rgba(11, 45, 102, .1);
}

.contact-info-panel {
    padding: clamp(22px, 3vw, 30px);
}

.contact-info-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid #dbeafe;
}

.contact-info-icon,
.contact-form-head > span,
.contact-info-item > span,
.map-pin {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border: 1px solid #c8ddfb;
    border-radius: 16px;
    color: var(--secondary);
    background: #eff6ff;
}

.contact-info-head span:not(.contact-info-icon),
.location-body > span {
    display: inline-block;
    color: var(--secondary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.contact-info-head h2 {
    margin-top: 4px;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.16;
}

.contact-info-list {
    display: grid;
    gap: 12px;
}

.contact-info-item {
    display: flex;
    gap: 12px;
    align-items: center;
    min-height: 76px;
    padding: 13px;
    border: 1px solid #d8e8fb;
    border-radius: 18px;
    background: linear-gradient(135deg, #fff, #f7fbff);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

a.contact-info-item:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: 0 18px 36px rgba(37, 99, 235, .1);
}

.contact-info-item small {
    display: block;
    margin-bottom: 2px;
    color: #6a82a4;
    font-size: 12px;
    font-weight: 600;
}

.contact-info-item strong {
    display: block;
    color: #082149;
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
}

.contact-form-card {
    padding: clamp(22px, 3vw, 32px);
}

.contact-form-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 26px 26px 0 0;
    background: linear-gradient(90deg, var(--secondary), #14b8a6);
}

.contact-form-head {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 22px;
}

.contact-form-head h2 {
    font-size: clamp(24px, 2.5vw, 32px);
}

.contact-form-head p {
    margin-top: 6px;
    color: #526f94;
    font-size: 14px;
    line-height: 1.6;
}

.page-contact label {
    color: #17365f;
    font-size: 12px;
    font-weight: 700;
}

.page-contact input,
.page-contact textarea {
    border-radius: 16px;
    background: #fafdff;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.page-contact input:focus,
.page-contact textarea:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .1);
}

.contact-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding: 9px 12px;
    border: 1px solid #a7f3d0;
    border-radius: 999px;
    color: #047857;
    background: #ecfdf5;
    font-size: 13px;
    font-weight: 700;
}

.contact-location-card {
    display: grid;
    overflow: hidden;
    min-height: 100%;
}

.map-preview {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(37, 99, 235, .07) 1px, transparent 1px),
        linear-gradient(rgba(37, 99, 235, .07) 1px, transparent 1px),
        radial-gradient(circle at 70% 28%, rgba(20, 184, 166, .25), transparent 28%),
        linear-gradient(135deg, #eef6ff, #ffffff);
    background-size: 42px 42px, 42px 42px, auto, auto;
}

.map-preview::before,
.map-preview::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(37, 99, 235, .24);
    border-radius: 999px;
}

.map-preview::before {
    width: 230px;
    height: 230px;
    left: 13%;
    top: 18%;
}

.map-preview::after {
    width: 150px;
    height: 150px;
    right: 14%;
    bottom: 12%;
}

.map-pin {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 2;
    width: 64px;
    height: 64px;
    color: #fff;
    background: linear-gradient(135deg, var(--secondary), #14b8a6);
    border-color: rgba(255, 255, 255, .8);
    box-shadow: 0 22px 48px rgba(37, 99, 235, .22);
    transform: translate(-50%, -50%);
}

.map-routes {
    position: absolute;
    inset: 0;
}

.map-routes i {
    position: absolute;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, .38), transparent);
    transform: rotate(-18deg);
}

.map-routes i:nth-child(1) { width: 78%; left: 8%; top: 34%; }
.map-routes i:nth-child(2) { width: 66%; right: 6%; top: 58%; transform: rotate(14deg); }
.map-routes i:nth-child(3) { width: 52%; left: 22%; bottom: 24%; transform: rotate(-8deg); }

.location-body {
    padding: 24px;
}

.location-body h3 {
    margin-top: 6px;
    font-size: 24px;
}

.location-body p {
    margin-top: 8px;
    color: #45658d;
}

.location-body .btn {
    margin-top: 18px;
}

@media (max-width: 980px) {
    .page-contact .page-hero {
        padding-bottom: 32px;
    }

    .page-contact .section {
        padding-top: 28px;
    }
}

@media (max-width: 640px) {
    .contact-hero-copy h1 {
        font-size: 31px;
        line-height: 1.15;
    }

    .contact-hero-copy .lead {
        font-size: 15px;
        line-height: 1.7;
    }

    .contact-info-panel,
    .contact-form-card,
    .contact-location-card {
        border-radius: 22px;
    }

    .contact-info-head,
    .contact-form-head {
        gap: 12px;
    }

    .contact-info-icon,
    .contact-form-head > span,
    .contact-info-item > span {
        width: 44px;
        height: 44px;
        border-radius: 15px;
    }

    .contact-info-head h2 {
        font-size: 22px;
    }

    .contact-info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .contact-info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
        min-height: auto;
        padding: 12px;
        border-radius: 17px;
    }

    .contact-info-item > span {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .contact-info-item small {
        font-size: 11px;
        line-height: 1.2;
    }

    .contact-info-item strong {
        font-size: 12px;
        line-height: 1.32;
        overflow-wrap: anywhere;
    }

    .contact-form-head h2 {
        font-size: 25px;
    }

    .map-preview {
        min-height: 220px;
    }

    .location-body .btn {
        width: 100%;
    }
}
