﻿/* ===============================
   DESIGN TOKENS
================================ */

:root {
    --bg-page: #f3f6fb;
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-placeholder: #94a3b8;
    --brand-blue: #3d73bd;
    --brand-blue-soft: #e8f0fe;
    --border-light: #e2e8f0;
}

/* ===============================
   BASE
================================ */

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===============================
   CONTAINER / CARD
================================ */

.container {
    max-width: 420px;
    margin: 40px auto;
    padding: 0 16px;
}

.card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(15, 23, 42, 0.08);
}

/* ===============================
   HEADER
================================ */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

    .header h1 {
        margin: 0 0 6px 0;
        font-size: 1.75rem;
        /*white-space: nowrap;*/ /* uncomment if not next row needed */
    }

.subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
    max-width: 260px;
}

/* mine logo/picture */
.header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

/* ===============================
   PRESET BUTTONS
================================ */

.preset-row {
    display: flex;
    gap: 10px;
    margin: 14px 0;
}

.preset {
    flex: 1;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 8px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
    box-shadow: 0 1px 0 rgba(15,23,42,0.03);
}

    .preset small {
        display: block;
        font-size: 0.7rem;
        font-weight: 400;
        color: var(--text-muted);
    }

    .preset:hover {
        border-color: var(--brand-blue);
        transform: translateY(-1px);
    }

    .preset.active {
        border-color: var(--brand-blue);
        background: var(--brand-blue-soft);
    }

    .preset.wide {
        width: 100%;
    }

/* ===============================
   AMOUNT / INPUTS
================================ */

.amount-row {
    display: flex;
    gap: 10px;
    margin: 16px 0 10px;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    font-size: 0.9rem;
    font-family: inherit;
}

textarea {
    min-height: 80px;
    line-height: 1.4;
    resize: vertical;
}

::placeholder {
    color: var(--text-placeholder);
}

/* ===============================
   AGREEMENT
================================ */

.agree {
    margin: 16px 0 18px;
    font-size: 0.75rem;
    color: #475569;
    display: flex;
    align-items: center; /* ключевая строка */
    gap: 10px;
}

    .agree input[type="checkbox"] {
        width: 16px;
        height: 16px;
        margin: 0;
        flex-shrink: 0;
        accent-color: var(--brand-blue);
    }

    .agree label {
        line-height: 1.4;
    }

    .agree a {
        color: var(--brand-blue);
        text-decoration: none;
    }

/* ===============================
   MAIN BUTTON
================================ */

#donateBtn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: none;
    font-size: 0.95rem;
    font-weight: 600;
    background: var(--brand-blue);
    color: white;
    cursor: pointer;
}

    #donateBtn:disabled {
        background: #cbd5e1;
        cursor: not-allowed;
    }

/* ===============================
   PAYMENTS / FOOTNOTE
================================ */

.payments {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 14px;
}
/* icon like apple pay etc. */
    .payments img {
        height: 35px; /* было 18px */
        opacity: 0.85;
    }

.secure-note {
    margin-top: 10px;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-align: center;
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 480px) {
    .header {
        align-items: flex-start;
    }

    .subtitle {
        max-width: none;
    }
}


/* ===== POLICY PAGES ===== */

.policy h1 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.policy h2 {
    font-size: 1rem;
    margin-top: 20px;
    margin-bottom: 6px;
}

.policy p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 10px;
}

.back-link {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--brand-blue);
    text-decoration: none;
}

.char-hint {
    margin-top: 6px;
    font-size: 0.7rem;
    color: #64748b;
}
