:root {
    --burgundy: #8f0b0b;
    --burgundy-dark: #6f0707;
    --parchment: #c4b997;
    --card: #efebe2;
    --card-edge: #f9f7f1;
    --text: #27231d;
    --muted: #5d5548;
    --field: #f7f4ee;
    --field-border: #b8aa93;
    --shadow: 0 18px 40px rgba(58, 34, 18, 0.18);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--text);
    background: var(--parchment);
}

.site-header,
.site-footer {
    background: linear-gradient(180deg, var(--burgundy), var(--burgundy-dark));
    color: #fff8ef;
}

.site-header {
    border-bottom: 1px solid rgba(255,255,255,0.18);
}

.site-footer {
    border-top: 1px solid rgba(255,255,255,0.12);
}

.site-header__inner,
.site-footer__inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-header__inner {
    min-height: 58px;
}

.site-footer__inner {
    min-height: 44px;
    justify-content: center;
    font-size: 12px;
    letter-spacing: 0.03em;
}

.brand {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.page-shell {
    min-height: calc(100vh - 102px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 24px;
}

.contact-card {
    width: min(1060px, 100%);
    display: grid;
    grid-template-columns: 56px 1fr;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,255,255,0.32));
    border: 3px solid var(--card-edge);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.contact-accent {
    background: linear-gradient(180deg, #930909, #750707);
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-accent span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    color: #fff9f1;
    font-size: 17px;
    letter-spacing: 0.02em;
}

.contact-content {
    display: grid;
    grid-template-columns: minmax(360px, 520px) minmax(280px, 1fr);
    gap: 22px;
    background: rgba(245, 241, 233, 0.92);
    padding: 34px 34px 26px;
}

.contact-copy {
    padding-right: 8px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--burgundy);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 12px;
    font-weight: 700;
}

h1 {
    margin: 0;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.05;
}

p.lead {
    margin: 12px 0 24px;
    max-width: 44ch;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.55;
}

.box {
    margin: 0 0 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 16px;
}

.ok {
    background: #edf8ed;
    border: 1px solid #8db694;
    color: #1f5a27;
}

.err {
    background: #fff2f0;
    border: 1px solid #d19a94;
    color: #7d1e16;
}

.contact-form label {
    display: block;
    margin: 15px 0 7px;
    font-size: 16px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font: inherit;
    color: var(--text);
    background: var(--field);
    border: 1px solid var(--field-border);
    border-radius: 0;
    padding: 12px 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #8e6f3b;
    box-shadow: 0 0 0 3px rgba(193, 156, 92, 0.18);
    background: #fffdf9;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

button {
    appearance: none;
    border: 1px solid #8f7f62;
    background: linear-gradient(180deg, #ece1c9, #d5c3a0);
    color: #2f271e;
    font: inherit;
    font-size: 16px;
    padding: 11px 20px;
    cursor: pointer;
}

button:hover {
    filter: brightness(1.03);
}

button.secondary {
    background: linear-gradient(180deg, #f7f4ed, #e7dece);
}

.contact-emblem {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.emblem-frame {
    margin: 0;
    width: min(100%, 430px);
}

.emblem-frame img {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 8px 18px rgba(88, 62, 20, 0.16));
}

a { color: inherit; }
small { color: #60594d; }

.contact-hp {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.contact-hp input {
    width: 1px;
    height: 1px;
    opacity: 0;
}

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

    .contact-copy {
        padding-right: 0;
    }

    .contact-emblem {
        order: -1;
        padding-top: 0;
    }

    .emblem-frame {
        width: min(100%, 340px);
    }
}

@media (max-width: 720px) {
    .site-header__inner,
    .site-footer__inner {
        width: min(100% - 24px, 1280px);
    }

    .brand {
        font-size: 15px;
    }

    .page-shell {
        padding: 22px 12px;
    }

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

    .contact-accent {
        min-height: 44px;
    }

    .contact-accent span {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 15px;
    }

    .contact-content {
        padding: 24px 18px 22px;
    }

    h1 {
        font-size: 36px;
    }

    p.lead {
        font-size: 17px;
    }

    .form-actions {
        flex-direction: column;
    }

    button {
        width: 100%;
    }
}
