.donation-page {
    padding: 54px 0 76px;
}

.donation-hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 18px 0 32px;
    text-align: center;
}

.donation-hero h1,
.donation-result h1 {
    margin: 0;
    font-size: clamp(2.35rem, 7vw, 4.7rem);
    line-height: 1;
    letter-spacing: 0;
}

.donation-hero p,
.donation-info p,
.trust-panel p,
.privacy-note,
.donation-submit p,
.result-card p {
    color: var(--muted);
}

.donation-layout {
    display: grid;
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    gap: 24px;
    align-items: start;
}

.donation-form,
.donation-aside,
.donation-fields,
.donation-info {
    display: grid;
    gap: 18px;
}

.donation-card,
.trust-panel,
.donation-info,
.org-box,
.result-card {
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.donation-card h2,
.donation-info h2,
.org-box h2 {
    margin: 0 0 14px;
    font-size: 1.24rem;
    font-weight: 600;
}

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

.currency-options {
    margin-bottom: 14px;
}

.amount-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.amount-options legend,
.currency-options legend {
    margin-bottom: 10px;
    font-weight: 600;
}

.amount-options label,
.currency-options label {
    cursor: pointer;
}

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

.amount-options span,
.currency-options span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    font-weight: 700;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.amount-options input:checked + span,
.currency-options input:checked + span {
    background: #1f3431;
    border-color: #1f3431;
    color: #fff;
    box-shadow: 0 12px 30px rgba(31, 52, 49, 0.18);
}

.amount-options input:focus-visible + span,
.currency-options input:focus-visible + span,
.donation-button:focus-visible,
.secondary-link:focus-visible {
    outline: 3px solid rgba(31, 52, 49, 0.24);
    outline-offset: 2px;
}

.donation-fields {
    grid-template-columns: 1fr;
}

.donation-field,
.check-row {
    display: grid;
    gap: 7px;
}

.donation-field--wide {
    grid-column: auto;
}

.donation-field span {
    font-weight: 600;
}

.donation-field em {
    color: var(--muted);
    font-style: normal;
    font-weight: 400;
}

.donation-field input,
.donation-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 12px;
    color: var(--text);
    background: #fff;
    font: inherit;
    outline: 0;
}

.donation-field textarea {
    min-height: 132px;
    padding: 12px;
    resize: vertical;
}

.donation-field input:focus,
.donation-field textarea:focus {
    border-color: #1f3431;
    box-shadow: 0 0 0 4px rgba(31, 52, 49, 0.11);
}

.donation-field small,
.field-error {
    min-height: 18px;
    color: #b42318;
    font-size: 0.84rem;
}

.amount-help {
    display: block;
    margin-top: 10px;
    color: var(--muted);
}

.check-row {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    margin-top: 12px;
    color: var(--text);
}

.check-row input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
}

.check-row a {
    font-weight: 700;
    text-underline-offset: 3px;
}

.donation-submit {
    display: grid;
    gap: 14px;
}

.donation-button {
    position: relative;
    min-height: 54px;
    border: 0;
    border-radius: 8px;
    background: #111;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.donation-button:hover {
    background: #1f3431;
}

.donation-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.button-loader {
    display: none;
    width: 18px;
    height: 18px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #fff;
    border-radius: 50%;
    vertical-align: middle;
    animation: donation-spin 700ms linear infinite;
}

.donation-button.is-loading .button-loader {
    display: inline-block;
}

.donation-status {
    min-height: 22px;
    font-weight: 600;
}

.donation-status.is-error {
    color: #b42318;
}

.trust-grid {
    display: grid;
    gap: 10px;
}

.trust-grid span {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 0 12px;
    background: #f7f7f7;
    border-radius: 8px;
    font-weight: 700;
}

.trust-grid i {
    font-size: 1.25rem;
}

.org-box dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.org-box div {
    display: grid;
    gap: 3px;
}

.org-box dt {
    color: var(--muted);
    font-size: 0.84rem;
}

.org-box dd {
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 600;
}

.donation-result {
    padding: 70px 0;
}

.result-card {
    max-width: 760px;
}

.result-status {
    display: grid;
    gap: 6px;
    margin: 22px 0;
    padding: 16px;
    background: #f7f7f7;
    border-radius: 8px;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.secondary-link {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 0 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
}

@keyframes donation-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 560px) {
    .donation-page {
        padding-top: 34px;
    }

    .donation-fields,
    .amount-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .donation-fields {
        grid-template-columns: 1fr;
    }

    .donation-button {
        width: 100%;
        min-height: 58px;
    }
}
