/* Contact page — light theme matched to Life / Jobs */
.cx-page {
    --cx-red: #E34133;
    --cx-red-dark: #C52F24;
    --cx-ink: #1B1D21;
    --cx-muted: #4A5565;
    --cx-line: #ECEEF1;
    --cx-soft: #F8FAFC;
    --cx-paper: #ffffff;
    background: var(--cx-paper);
    color: var(--cx-ink);
    overflow-x: clip;
}

.cx-shell {
    max-width: var(--max, 1180px);
    margin: 0 auto;
    padding: 0 1.35rem;
}

.cx-kicker {
    margin: 0 0 0.55rem;
    color: var(--cx-red);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cx-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, #F8FAFC 0%, #ffffff 100%);
    border-bottom: 1px solid var(--cx-line);
}

.cx-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4.5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.05;
    color: var(--cx-ink);
}

.cx-lead {
    margin: 0.75rem 0 0;
    max-width: 48ch;
    color: var(--cx-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.cx-main {
    padding: 2rem 0 4rem;
    background: var(--cx-paper);
}

.cx-main__grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.25fr);
    gap: 1rem;
    align-items: start;
}

.cx-info {
    display: grid;
    gap: 0.85rem;
}

.cx-mail {
    padding: 1.35rem 1.25rem;
    border-radius: 18px;
    background: var(--cx-soft);
    border: 1px solid var(--cx-line);
    border-left: 4px solid var(--cx-red);
}

.cx-mail__label {
    margin: 0;
    color: var(--cx-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.cx-mail a {
    display: inline-block;
    margin-top: 0.55rem;
    color: var(--cx-ink);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
    word-break: break-word;
    line-height: 1.3;
}

.cx-mail a:hover {
    color: var(--cx-red);
}

.cx-mail p:last-child {
    margin: 0.55rem 0 0;
    color: var(--cx-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.cx-help {
    display: grid;
    gap: 0.65rem;
}

.cx-help article {
    padding: 1rem 1.05rem;
    border-radius: 16px;
    background: var(--cx-soft);
    border: 1px solid var(--cx-line);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.cx-help article:hover {
    background: var(--cx-paper);
    border-color: rgba(227, 65, 51, 0.28);
}

.cx-help h2 {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--cx-ink);
}

.cx-help p {
    margin: 0.3rem 0 0;
    color: var(--cx-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.cx-jobs {
    display: block;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--cx-paper);
    border: 1px solid var(--cx-line);
    color: var(--cx-ink);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
    text-align: center;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cx-jobs:hover {
    border-color: rgba(227, 65, 51, 0.4);
    color: var(--cx-red);
    background: rgba(227, 65, 51, 0.04);
}

.cx-form-wrap {
    padding: 1.85rem 1.75rem 2rem;
    border-radius: 18px;
    background: var(--cx-soft);
    border: 1px solid var(--cx-line);
}

.cx-form-head {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--cx-line);
}

.cx-form-head h2 {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--cx-ink);
}

.cx-form-head p:not(.cx-kicker) {
    margin: 0.35rem 0 0;
    color: var(--cx-muted);
    font-size: 0.96rem;
}

.cx-alert {
    margin-bottom: 1.1rem;
    padding: 0.95rem 1.05rem;
    border-radius: 14px;
    font-size: 0.94rem;
    line-height: 1.45;
}

.cx-alert--ok {
    background: #ECFDF3;
    border: 1px solid #A7F3D0;
    color: #065F46;
}

.cx-alert--err {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.cx-form {
    display: grid;
    gap: 0.95rem;
}

.cx-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.95rem;
}

.cx-form label {
    display: flex;
    flex-direction: column;
    gap: 0.38rem;
    font-size: 0.86rem;
    font-weight: 750;
    color: var(--cx-ink);
}

.cx-form input,
.cx-form select,
.cx-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--cx-line);
    border-radius: 12px;
    background: var(--cx-paper);
    color: var(--cx-ink);
    font: inherit;
    font-weight: 500;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.cx-form textarea {
    min-height: 150px;
    resize: vertical;
    line-height: 1.5;
}

.cx-form input:focus,
.cx-form select:focus,
.cx-form textarea:focus {
    outline: none;
    border-color: rgba(227, 65, 51, 0.55);
    box-shadow: 0 0 0 4px rgba(227, 65, 51, 0.12);
}

.cx-form__btn {
    justify-self: start;
    margin-top: 0.2rem;
    min-height: 48px;
    padding-inline: 1.6rem;
}

body.page-contact .site-footer--sn {
    margin-top: 0;
}

@media (max-width: 900px) {
    .cx-main__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .cx-shell {
        padding: 0 1rem;
    }

    .cx-hero {
        padding: 2.25rem 0 1.5rem;
    }

    .cx-main {
        padding: 1.5rem 0 3rem;
    }

    .cx-form-wrap {
        padding: 1.4rem 1.15rem 1.5rem;
    }

    .cx-form__row {
        grid-template-columns: 1fr;
    }

    .cx-form__btn {
        width: 100%;
        justify-self: stretch;
    }
}
