:root {
    --ink: #242424;
    --muted: #686868;
    --paper: #ffffff;
    --soft: #f4f7f5;
    --line: #d8dedc;
    --red: #ed1c24;
    --red-dark: #bc141b;
    --teal: #45c7b0;
    --blue: #1593d2;
    --shadow: 0 18px 40px rgba(36, 36, 36, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

img {
    display: block;
    max-width: 100%;
}

.site-header {
    display: flex;
    justify-content: center;
    padding: 20px 20px 16px;
    background: var(--paper);
}

.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 4vw, 42px);
    width: min(100%, 460px);
    text-decoration: none;
}

.brand img {
    width: auto;
    height: clamp(86px, 12vw, 132px);
    object-fit: contain;
}

.hero {
    width: 100%;
    background: var(--soft);
    overflow: hidden;
    border-block: 1px solid var(--line);
}

.hero img {
    width: 100%;
    min-height: 260px;
    max-height: 520px;
    object-fit: cover;
    object-position: center;
}

.intro {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
    padding: 46px 0 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 34px;
    align-items: start;
}

.intro-text {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.intro-text article {
    min-width: 0;
}

.kicker {
    margin: 0 0 10px;
    color: var(--red-dark);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 12px;
    color: var(--red);
    font-size: clamp(2rem, 4.2vw, 4.25rem);
    line-height: 0.98;
    text-transform: uppercase;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.4rem, 2vw, 2rem);
    line-height: 1.12;
}

h3 {
    margin: -6px 0 14px;
    color: var(--blue);
    font-size: 1.08rem;
    line-height: 1.3;
}

p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 1rem;
}

.donation-form {
    position: sticky;
    top: 18px;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.form-head {
    margin-bottom: 18px;
}

.form-head h2 {
    margin-bottom: 0;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.amount-options legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.amount-options label {
    min-width: 0;
}

.amount-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.amount-options span {
    display: grid;
    place-items: center;
    min-height: 48px;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    font-weight: 700;
    cursor: pointer;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.amount-options input:checked + span {
    color: var(--paper);
    background: var(--red);
    border-color: var(--red);
}

.amount-options input:focus-visible + span,
.submit-button:focus-visible,
.custom-amount input:focus-visible {
    outline: 3px solid rgba(69, 199, 176, 0.42);
    outline-offset: 2px;
}

.custom-amount {
    display: grid;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--ink);
    font-weight: 700;
}

.input-wrap {
    display: grid;
    grid-template-columns: 28px 1fr;
    align-items: center;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
}

.input-wrap span {
    color: var(--red-dark);
    text-align: center;
    font-weight: 700;
}

.custom-amount input {
    width: 100%;
    min-width: 0;
    height: 46px;
    border: 0;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    background: transparent;
}

.custom-amount input:focus {
    outline: 0;
}

.form-note,
.secure-note {
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.submit-button {
    display: inline-grid;
    place-items: center;
    width: 100%;
    min-height: 52px;
    border: 0;
    border-radius: 8px;
    color: var(--paper);
    background: var(--red);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background 160ms ease, transform 160ms ease;
}

.submit-button:hover {
    background: var(--red-dark);
}

.submit-button:active {
    transform: translateY(1px);
}

.submit-button[disabled] {
    cursor: wait;
    opacity: 0.72;
}

.secure-note {
    margin: 14px 0 0;
    color: var(--muted);
    text-align: center;
}

.form-message {
    min-height: 22px;
    margin-top: 12px;
    color: var(--red-dark);
    font-size: 0.92rem;
    font-weight: 700;
    text-align: center;
}

.form-message.is-ok {
    color: #247a64;
}

.site-footer {
    padding: 26px 20px 34px;
    border-top: 1px solid var(--line);
    background: var(--soft);
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 0.9rem;
}

.result-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
    background: var(--soft);
}

.result-box {
    width: min(620px, 100%);
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.result-box h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 8px;
    padding: 0 18px;
    border-radius: 8px;
    color: var(--paper);
    background: var(--red);
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 900px) {
    .intro {
        grid-template-columns: 1fr;
    }

    .donation-form {
        position: static;
    }
}

@media (max-width: 680px) {
    .site-header {
        padding-top: 14px;
    }

    .brand {
        width: min(100%, 340px);
        gap: 18px;
    }

    .brand img {
        height: clamp(76px, 22vw, 104px);
    }

    .hero img {
        min-height: 210px;
    }

    .intro {
        width: min(100% - 28px, 1160px);
        padding-top: 34px;
    }

    .intro-text {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .donation-form {
        padding: 18px;
    }
}
