.contact-section {
    --contact-ink: #211c16;
    --contact-muted: #746d63;
    --contact-line: rgba(33, 28, 22, .16);
    --contact-gold: #9a6534;
    padding: clamp(84px, 10vw, 150px) 0;
    background:
        radial-gradient(circle at 6% 8%, rgba(154, 101, 52, .11), transparent 30%),
        linear-gradient(135deg, #f3efe6, #faf8f3 58%, #efe9dd);
    color: var(--contact-ink);
}

.contact-page__main .contact-section {
    padding-top: clamp(130px, 13vw, 190px);
}

.contact-section__layout {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(560px, 1.28fr);
    gap: clamp(54px, 7vw, 110px);
    align-items: start;
}

.contact-section__intro {
    position: sticky;
    top: 48px;
}

.contact-section__intro h1 {
    max-width: 560px;
    margin: 18px 0 24px;
    font-family: var(--font-editorial), Georgia, serif;
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
}

.contact-section__intro > p {
    max-width: 510px;
    color: var(--contact-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.contact-section__note {
    margin-top: 44px;
    padding: 24px 0 0 24px;
    border-top: 1px solid var(--contact-line);
    border-left: 2px solid var(--contact-gold);
}

.contact-section__note span {
    color: var(--contact-gold);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.contact-section__note p {
    margin: 8px 0 0;
    color: var(--contact-muted);
    line-height: 1.65;
}

.contact-panel {
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid var(--contact-line);
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 30px 80px rgba(62, 49, 32, .09);
    backdrop-filter: blur(10px);
}

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

.contact-form legend,
.contact-field > span {
    display: block;
    margin-bottom: 11px;
    color: var(--contact-ink);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.contact-field em {
    color: var(--contact-muted);
    font-style: normal;
    font-weight: 400;
    letter-spacing: .04em;
    text-transform: none;
}

.contact-form__topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 34px;
}

.contact-topic {
    position: relative;
    cursor: pointer;
}

.contact-topic input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.contact-topic > span {
    display: block;
    height: 100%;
    padding: 17px 18px;
    border: 1px solid var(--contact-line);
    background: rgba(250, 248, 243, .68);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.contact-topic strong,
.contact-topic small {
    display: block;
}

.contact-topic strong {
    font-family: var(--font-editorial), Georgia, serif;
    font-size: 1.12rem;
    font-weight: 400;
}

.contact-topic small {
    margin-top: 5px;
    color: var(--contact-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.contact-topic:hover > span,
.contact-topic input:focus-visible + span {
    border-color: var(--contact-gold);
    transform: translateY(-1px);
}

.contact-topic input:checked + span {
    border-color: #526b58;
    background: #526b58;
    color: #fff;
}

.contact-topic input:checked + span small {
    color: rgba(255, 255, 255, .72);
}

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

.contact-field {
    display: block;
    min-width: 0;
}

.contact-field--wide {
    margin-top: 24px;
}

.contact-field input,
.contact-field textarea {
    box-sizing: border-box;
    display: block;
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--contact-line);
    border-radius: 0;
    background: transparent;
    color: var(--contact-ink);
    font: inherit;
    font-size: .96rem;
}

.contact-field input {
    min-height: 50px;
    padding: 8px 2px;
}

.contact-field textarea {
    min-height: 104px;
    padding: 12px 2px;
    resize: vertical;
    line-height: 1.65;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--contact-gold);
    box-shadow: 0 1px 0 var(--contact-gold);
}

.contact-form__privacy {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin-top: 27px;
    color: var(--contact-muted);
    font-size: .78rem;
    line-height: 1.55;
}

.contact-form__privacy input {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: #526b58;
}

.contact-form__privacy a,
.contact-success a {
    color: #526b58;
    font-weight: 650;
}

.contact-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--contact-line);
}

.contact-form__footer p {
    margin: 0;
    color: var(--contact-muted);
    font-size: .72rem;
}

.contact-form__footer button {
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid #526b58;
    border-radius: 0;
    background: #526b58;
    color: #fff;
    font: inherit;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, transform .18s ease;
}

.contact-form__footer button:hover,
.contact-form__footer button:focus-visible {
    background: #354b3d;
    transform: translateY(-1px);
}

.contact-form__error {
    display: block;
    margin: 7px 0 0;
    color: #9b382f;
    font-size: .76rem;
}

.contact-form__alert {
    margin-bottom: 24px;
    padding: 14px 16px;
    border-left: 3px solid #9b382f;
    background: rgba(155, 56, 47, .08);
    color: #792b25;
    font-size: .86rem;
}

.contact-form__honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.contact-success {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.contact-success > span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #526b58;
    border-radius: 50%;
    color: #526b58;
    font-size: 1.3rem;
}

.contact-success h2 {
    max-width: 570px;
    margin: 28px 0 16px;
    font-family: var(--font-editorial), Georgia, serif;
    font-size: clamp(2.4rem, 4vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
}

.contact-success p {
    max-width: 540px;
    color: var(--contact-muted);
    line-height: 1.75;
}

.contact-success a {
    margin-top: 18px;
    text-decoration: none;
}

.captchafox {
    margin-top: 24px;
}

@media (max-width: 980px) {
    .contact-section__layout {
        grid-template-columns: 1fr;
    }

    .contact-section__intro {
        position: static;
    }
}

@media (max-width: 620px) {
    .contact-section {
        padding: 72px 0;
    }

    .contact-page__main .contact-section {
        padding-top: 120px;
    }

    .contact-page__main .contact-section--result {
        padding-top: 36px;
    }

    .contact-section--result .contact-section__layout {
        gap: 24px;
    }

    .contact-section--result .contact-section__intro h1 {
        margin: 10px 0 0;
        font-size: clamp(2rem, 9vw, 2.8rem);
        line-height: 1;
    }

    .contact-section--result .contact-section__intro > p,
    .contact-section--result .contact-section__note {
        display: none;
    }

    .contact-section--result .contact-success {
        min-height: 0;
        padding: 10px 0;
    }

    .contact-section--result .contact-success h2 {
        margin-top: 22px;
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .contact-section__layout {
        gap: 38px;
    }

    .contact-section__intro h1 {
        font-size: clamp(2.7rem, 13vw, 4rem);
    }

    .contact-panel {
        margin-right: -18px;
        margin-left: -18px;
        padding: 28px 18px 34px;
        border-right: 0;
        border-left: 0;
    }

    .contact-form__topic-grid,
    .contact-form__grid {
        grid-template-columns: 1fr;
    }

    .contact-form__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .contact-form__footer button {
        width: 100%;
    }
}
