.contact-page {
    position: relative;
    overflow: hidden;
}

.contact-page .site-container {
    position: relative;
    z-index: 2;
}

.contact-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(78px);
    opacity: 0.62;
    pointer-events: none;
}

.contact-glow.purple-right {
    inset-inline-end: -140px;
    top: 120px;
    background: radial-gradient(circle, rgba(188, 151, 240, 0.85) 0%, rgba(255, 255, 255, 0.78) 66%);
}

.contact-glow.purple-left {
    inset-inline-start: -120px;
    top: 280px;
    background: radial-gradient(circle, rgba(188, 151, 240, 0.82) 0%, rgba(255, 255, 255, 0.75) 66%);
}

.contact-glow.gold-mid {
    left: 50%;
    transform: translateX(-50%);
    top: 40px;
    background: radial-gradient(circle, rgba(248, 238, 196, 0.84) 0%, rgba(255, 255, 255, 0.74) 66%);
}

.contact-hero {
    text-align: center;
    padding: 4.2rem 0 2.2rem;
}

.contact-title {
    margin: 0;
    color: #1c1930;
    font-size: clamp(2.1rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.contact-subtitle {
    margin: 1rem auto 0;
    max-width: 760px;
    color: #484555;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.62;
    overflow-wrap: anywhere;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.contact-info-card {
    background: #fff;
    border-radius: 32px;
    border: 1px solid rgba(94, 57, 224, 0.1);
    overflow: hidden;
}

.contact-info-card-head {
    height: 104px;
    padding: 1.5rem;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
}

.contact-info-card-head.h1 {
    background: linear-gradient(135deg, #5e39e0 0%, #8b5cf6 100%);
}

.contact-info-card-head.h2 {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.contact-info-card-head.h3 {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
}

.contact-info-card-head.h4 {
    background: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 100%);
}

.contact-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.3rem;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.contact-icon .icon-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.contact-info-card-body {
    padding: 1.5rem;
    text-align: end;
    min-height: 146px;
}

.contact-info-title {
    margin: 0;
    color: #1c1930;
    font-size: 1.12rem;
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-info-value {
    margin: 0.35rem 0 0;
    color: #5e39e0;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-info-hint {
    margin: 0.35rem 0 0;
    color: #484555;
    font-size: 0.88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.contact-main {
    margin-top: 2.2rem;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1rem;
    align-items: start;
}

.contact-form-wrap,
.contact-side-stack {
    display: grid;
    gap: 1rem;
}

.contact-form-card,
.contact-map-card,
.contact-help-card {
    border-radius: 32px;
    background: #fff;
    border: 1px solid rgba(94, 57, 224, 0.1);
    overflow: hidden;
}

.contact-form-card {
    padding: 2rem;
}

.contact-form-head {
    margin-bottom: 1.2rem;
    text-align: end;
}

.contact-form-title {
    margin: 0;
    color: #1c1930;
    font-size: 1.85rem;
    line-height: 1.2;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-form-subtitle {
    margin: 0.5rem 0 0;
    color: #484555;
    font-size: 1.12rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.contact-form-grid {
    display: grid;
    gap: 1rem;
}

.contact-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.contact-field {
    display: grid;
    gap: 0.45rem;
}

.contact-field label {
    color: #484555;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
    text-align: end;
}

.contact-input,
.contact-textarea {
    width: 100%;
    border-radius: 16px;
    border: 1px solid rgba(94, 57, 224, 0.2);
    background: #fff;
    color: #1c1930;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    padding: 0.9rem 1rem;
    text-align: end;
}

.contact-textarea {
    min-height: 170px;
    resize: vertical;
}

.contact-submit {
    margin-top: 0.25rem;
    width: 100%;
    border: none;
    border-radius: 999px;
    padding: 0.95rem 1rem;
    background: linear-gradient(180deg, #6c5ce7 0%, #3c3381 100%);
    color: #fff;
    font-size: 1.12rem;
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
}

.contact-map-card {
    min-height: 400px;
    background: linear-gradient(135deg, #fcf8ff 0%, #f0ebff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contact-map-inner {
    display: grid;
    gap: 0.8rem;
    color: #484555;
}

.contact-map-icon {
    width: 70px;
    height: 70px;
    margin-inline: auto;
    border-radius: 22px;
    border: 3px dashed rgba(94, 57, 224, 0.4);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #5e39e0;
}

.contact-map-icon .icon-svg {
    width: 1.35rem;
    height: 1.35rem;
}

.contact-map-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
}

.contact-help-card {
    background: linear-gradient(135deg, #5e39e0 0%, #8b5cf6 100%);
    color: #fff;
    padding: 2rem;
    position: relative;
}

.contact-help-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contact-help-icon .icon-svg {
    width: 1.2rem;
    height: 1.2rem;
}

.contact-help-title {
    margin: 0.9rem 0 0;
    font-size: 1.5rem;
    line-height: 1.4;
    font-weight: 700;
    text-align: end;
    overflow-wrap: anywhere;
}

.contact-help-text {
    margin: 0.6rem 0 0;
    font-size: 1rem;
    line-height: 1.65;
    text-align: end;
    overflow-wrap: anywhere;
}

.contact-help-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 0;
    background: #fff;
    color: #5e39e0;
    font-size: 1rem;
    line-height: 1.45;
    font-weight: 700;
    padding: 0.74rem 1.35rem;
    margin-top: 1rem;
    text-decoration: none;
}

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

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

@media (max-width: 760px) {
    .contact-hero {
        padding-top: 3rem;
    }

    .contact-subtitle {
        font-size: 1.05rem;
    }

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

    .contact-form-row-2 {
        grid-template-columns: 1fr;
    }

    .contact-form-card,
    .contact-map-card,
    .contact-help-card,
    .contact-info-card {
        border-radius: 26px;
    }

    .contact-form-card,
    .contact-help-card {
        padding: 1.25rem;
    }
}

@media (max-width: 520px) {
    .contact-hero {
        padding: 2.4rem 0 1.8rem;
    }

    .contact-title {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
    }

    .contact-info-card-head {
        height: 82px;
        padding: 1rem;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
        border-radius: 12px;
        font-size: 1.1rem;
    }

    .contact-info-card-body {
        min-height: auto;
        padding: 1rem;
    }

    .contact-form-title {
        font-size: 1.45rem;
    }

    .contact-form-subtitle {
        font-size: 1rem;
    }

    .contact-map-card {
        min-height: 250px;
    }

    .contact-help-title {
        font-size: 1.25rem;
    }

    .contact-help-btn {
        width: 100%;
    }
}
