.contact-page {
    min-height: 100vh;
    background: transparent;
}

.contact-section {
    padding: 56px 0 72px;
}

.contact-shell {
    display: block;
}

.contact-card {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(120, 98, 44, 0.12);
    border-radius: 28px;
    box-shadow: 0 18px 40px rgba(163, 134, 41, 0.10);
}

.contact-back {
    margin-bottom: 18px;
}

.contact-back-link {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    color: var(--text-soft);
    font-weight: 700;
    text-decoration: none;
}

.contact-back-link:hover,
.contact-back-link:focus {
    color: var(--text-main);
}

.contact-header {
    margin-bottom: 22px;
    text-align: center;
}

.contact-header h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 4vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

.contact-intro {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.contact-form {
    display: block;
}

.contact-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.contact-field + .contact-field {
    margin-top: 18px;
}

.contact-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    color: var(--text-main);
}

.req {
    color: #b45309;
}

.optional {
    color: var(--text-light);
    font-weight: 500;
}

.contact-field input,
.contact-field textarea {
    width: 100%;
    border: 1px solid rgba(120, 98, 44, 0.16);
    border-radius: 16px;
    background: #fffdfa;
    color: var(--text-main);
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-field input {
    min-height: 52px;
}

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

.contact-field input:focus,
.contact-field textarea:focus {
    border-color: rgba(246, 206, 40, 0.9);
    box-shadow: 0 0 0 4px rgba(246, 206, 40, 0.14);
    background: #ffffff;
}

.input-error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.field-error {
    margin: 8px 0 0;
    color: #b91c1c;
    font-size: 0.92rem;
    line-height: 1.5;
}

.recaptcha-error {
    margin-top: 20px;
}

.contact-recaptcha {
    margin-top: 22px;
}

.contact-actions {
    margin-top: 22px;
}

.contact-submit {
    width: 100%;
    min-height: 54px;
    font-size: 1rem;
}

.contact-note {
    margin: 18px 0 0;
    color: var(--text-light);
    line-height: 1.6;
}

.contact-note a {
    color: var(--text-soft);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.contact-note a:hover,
.contact-note a:focus {
    color: var(--text-main);
}

.hs-site-footer {
    clear: both;
    width: 100%;
    display: block;
    margin-top: 40px;
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .contact-section {
        padding: 40px 0 56px;
    }

    .contact-card {
        padding: 22px 18px;
        border-radius: 22px;
    }

    .contact-header {
        text-align: left;
    }

    .contact-header h1 {
        font-size: 2rem;
    }
}
