.qa-project-contact {
    position: relative;
    overflow: hidden;
    padding: clamp(54px, 8vw, 100px) 0;
    background:
        radial-gradient(circle at 9% 15%, rgba(36, 95, 158, .09), transparent 28%),
        linear-gradient(180deg, #f6f9fc 0%, #fff 100%);
}

.qa-project-contact::before,
.qa-project-contact::after {
    position: absolute;
    z-index: 0;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(36, 95, 158, .1);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.qa-project-contact::before { top: -120px; right: 8%; }
.qa-project-contact::after { bottom: -145px; left: 5%; width: 270px; height: 270px; }

.qa-project-contact > .container {
    position: relative;
    z-index: 1;
    width: min(100% - 32px, 1040px);
}

.qa-project-contact__header {
    max-width: 680px;
    margin: 0 auto 30px;
    text-align: center;
}

.qa-project-contact__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #245f9e;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.qa-project-contact__eyebrow::before,
.qa-project-contact__eyebrow::after {
    width: 18px;
    height: 1px;
    background: currentColor;
    content: "";
}

.qa-project-contact__header h2 {
    margin: 0 0 10px;
    color: #172638;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.12;
}

.qa-project-contact__header p {
    margin: 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.65;
}

.qa-project-contact__card {
    max-width: 850px;
    margin: 0 auto;
    padding: clamp(20px, 4vw, 38px);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 65px rgba(23, 38, 56, .1), 0 3px 10px rgba(23, 38, 56, .04);
}

.qa-project-contact__form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 20px;
}

.qa-project-contact__field { min-width: 0; }
.qa-project-contact__field--name,
.qa-project-contact__field--message { grid-column: 1 / -1; }

.qa-project-contact__field label {
    display: block;
    margin: 0 0 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 700;
}

.qa-project-contact__field input,
.qa-project-contact__field textarea {
    display: block;
    width: 100%;
    border: 1px solid #d8e1eb;
    border-radius: 9px;
    outline: 0;
    background: #fff;
    color: #172638;
    font: inherit;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.qa-project-contact__field input {
    min-height: 38px;
    padding: 8px 11px;
}

.qa-project-contact__field textarea {
    min-height: 88px;
    padding: 10px 12px;
    resize: vertical;
}

.qa-project-contact__field input::placeholder,
.qa-project-contact__field textarea::placeholder { color: #94a3b8; }

.qa-project-contact__field input:focus,
.qa-project-contact__field textarea:focus {
    border-color: #6f9ec9;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(36, 95, 158, .11);
}

.qa-project-contact__field input[aria-invalid="true"],
.qa-project-contact__field textarea[aria-invalid="true"] {
    border-color: #dc5360;
    box-shadow: 0 0 0 3px rgba(220, 83, 96, .1);
}

.qa-project-contact__error {
    display: block;
    margin-top: 6px;
    color: #bf3543;
    font-size: 12px;
    line-height: 1.4;
}

.qa-project-contact__error:empty { display: none; }

.qa-project-contact__counter {
    display: block;
    margin-top: 7px;
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
    text-align: right;
}

.qa-project-contact__counter.is-complete { color: #16804a; }

.qa-project-contact__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
}

.qa-project-contact__captcha-group {
    display: flex;
    min-width: 304px;
    flex-direction: column;
    align-items: flex-start;
}

.qa-project-contact__captcha {
    display: inline-flex;
    align-items: center;
    min-height: 0;
}

.qa-project-contact__captcha .cf-turnstile { transform-origin: left top; }

.qa-project-contact__submit {
    display: inline-flex;
    min-width: 142px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 11px 20px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #2b6da8, #1c568d);
    box-shadow: 0 8px 18px rgba(36, 95, 158, .2);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.qa-project-contact__submit span { font-size: 19px; line-height: 1; }
.qa-project-contact__submit:hover { transform: translateY(-1px); box-shadow: 0 11px 22px rgba(36, 95, 158, .25); filter: brightness(1.04); }
.qa-project-contact__submit:focus-visible { outline: 3px solid rgba(36, 95, 158, .3); outline-offset: 3px; }
.qa-project-contact__submit:disabled { opacity: .65; cursor: wait; transform: none; }

.qa-project-contact__status {
    margin: 14px 0 0;
    color: #16804a;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
}

.qa-project-contact__status.is-error { color: #a62c39; }
.qa-project-contact__status.is-success { color: #176b3b; }

.qa-project-contact__success,
.qa-project-contact__send-error {
    margin-bottom: 20px;
    padding: 13px 16px;
    border-radius: 9px;
    font-size: 14px;
    line-height: 1.5;
}

.qa-project-contact__success {
    border: 1px solid #b8e2c9;
    background: #effaf3;
    color: #176b3b;
}

.qa-project-contact__send-error {
    border: 1px solid #f0c3c7;
    background: #fff3f4;
    color: #a62c39;
}

@media (max-width: 640px) {
    .qa-project-contact { padding: 52px 0; }
    .qa-project-contact__header { margin-bottom: 23px; }
    .qa-project-contact__header p { font-size: 14px; }
    .qa-project-contact__card { border-radius: 15px; }
    .qa-project-contact__form-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .qa-project-contact__field--name,
    .qa-project-contact__field--phone,
    .qa-project-contact__field--message { grid-column: auto; }
    .qa-project-contact__actions { align-items: stretch; flex-direction: column; }
    .qa-project-contact__submit { width: 100%; }
    .qa-project-contact__captcha-group {
        width: 100%;
        min-width: 0;
    }
    .qa-project-contact__captcha {
        width: 100%;
        min-height: 0;
    }
    .qa-project-contact__submit { min-height: 50px; }
}
