.contact-section {
    position: relative;
    min-height: min(780px, calc(100svh - var(--header-height)));
    margin-top: -1px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(circle at 18% 82%, rgba(119, 72, 255, 0.34), transparent 31%),
        radial-gradient(circle at 82% 28%, rgba(68, 188, 255, 0.13), transparent 24%),
        linear-gradient(180deg, #171020 0%, #100c19 46%, #15101f 100%);
}

.contact-section::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 180px;
    content: "";
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(11, 9, 16, 0.22));
}

.contact-section__grid {
    position: absolute;
    inset: 0;
    opacity: 0.32;
    background-image:
        linear-gradient(rgba(194, 169, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(194, 169, 255, 0.06) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(circle at center, #000, transparent 82%);
}

.contact-section__glow {
    position: absolute;
    right: -150px;
    bottom: -170px;
    width: 620px;
    height: 620px;
    border: 1px solid rgba(167, 132, 255, 0.17);
    border-radius: 50%;
    background: radial-gradient(circle at 42% 35%, rgba(255, 255, 255, 0.18), rgba(127, 76, 255, 0.2) 26%, rgba(78, 39, 162, 0.1) 52%, transparent 72%);
    box-shadow: inset 0 0 100px rgba(149, 102, 255, 0.13), 0 0 100px rgba(110, 61, 232, 0.13);
}

.contact-section__container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(470px, 1.08fr);
    gap: 64px;
    align-items: center;
    min-height: min(780px, calc(100svh - var(--header-height)));
    padding-top: 102px;
    padding-bottom: 44px;
}

.contact-section__copy {
    max-width: 630px;
}

.contact-section__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    color: #b59aff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.contact-section__eyebrow span {
    width: 28px;
    height: 1px;
    background: currentColor;
}

.contact-section__copy h2 {
    max-width: 680px;
    font-size: clamp(48px, 5.2vw, 76px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.contact-section__copy > p {
    max-width: 590px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 16px;
    line-height: 1.7;
}

.contact-section__topics {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 24px;
}

.contact-section__topics span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    background: rgba(255, 255, 255, 0.04);
    font-size: 10px;
}

.contact-section__email {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 25px;
    color: #c8b4ff;
    font-size: 13px;
    font-weight: 600;
}

.contact-section__email span {
    transition: transform 180ms ease;
}

.contact-section__email:hover span {
    transform: translate(3px, -3px);
}

.contact-form {
    display: grid;
    gap: 9px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.075);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.contact-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.form-field {
    display: grid;
    gap: 6px;
}

.form-field label {
    color: #34313d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.contact-form .form-field label {
    color: rgba(255, 255, 255, 0.64);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    color: #1d1f29;
    border: 1px solid rgba(42, 34, 66, 0.13);
    border-radius: 11px;
    outline: none;
    background: rgba(255, 255, 255, 0.86);
    font: inherit;
    font-size: 13px;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-field textarea {
    min-height: 78px;
    padding-top: 13px;
    resize: vertical;
}

.contact-form .form-field input,
.contact-form .form-field select,
.contact-form .form-field textarea {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.13);
    background: rgba(8, 8, 14, 0.3);
}

.contact-form .form-field select option {
    color: #16131e;
    background: #ffffff;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(117, 75, 244, 0.58);
    box-shadow: 0 0 0 4px rgba(117, 75, 244, 0.09);
}

.contact-form .form-field input:focus,
.contact-form .form-field select:focus,
.contact-form .form-field textarea:focus {
    border-color: rgba(177, 143, 255, 0.58);
    background: rgba(8, 8, 14, 0.44);
    box-shadow: 0 0 0 4px rgba(143, 91, 255, 0.11);
}

.form-field.is-invalid input,
.form-field.is-invalid select,
.form-field.is-invalid textarea {
    border-color: rgba(231, 75, 108, 0.75);
}

.form-field small {
    min-height: 10px;
    color: #e95474;
    font-size: 9px;
}

.contact-form .form-field small {
    color: #ff9ab0;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #77737f;
    font-size: 10px;
    line-height: 1.45;
}

.form-consent--dark {
    color: rgba(255, 255, 255, 0.48);
}

.form-consent input {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    margin-top: 1px;
    accent-color: #7042f5;
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 50px;
    padding: 0 19px;
    color: #ffffff;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(135deg, #6845ff, #4823ed);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 13px 30px rgba(82, 47, 240, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.form-submit--light {
    color: #15111e;
    background: #ffffff;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.form-submit svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 180ms ease;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 17px 38px rgba(82, 47, 240, 0.31);
}

.form-submit--light:hover {
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.form-submit:hover svg {
    transform: translateX(4px);
}

.form-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}

.form-status {
    min-height: 18px;
    color: #6140dc;
    font-size: 10px;
    line-height: 1.5;
}

.form-status--dark {
    color: #bca4ff;
}

@media (max-width: 980px) {
    .contact-section {
        min-height: auto;
    }

    .contact-section__container {
        grid-template-columns: 1fr;
        gap: 42px;
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 64px;
    }

    .contact-section__copy h2 {
        max-width: 760px;
    }
}

@media (max-width: 620px) {
    .contact-section__container {
        padding-top: 112px;
        padding-bottom: 54px;
    }

    .contact-section__copy h2 {
        font-size: 52px;
    }

    .contact-form {
        padding: 24px 18px;
        border-radius: 20px;
    }

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