/* ==============================
   Donate page
============================== */

.donate-page {
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
}

.donate-hero {
  min-height: 290px;
  overflow: hidden;
}

.donate-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.05),
      rgba(245, 246, 252, 0.86) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .donate-hero-bg {
  background:
    linear-gradient(
      180deg,
      rgba(15, 17, 24, 0.18),
      rgba(15, 17, 24, 0.9) 88%,
      var(--bg) 100%
    ),
    var(--page-bg-image) center / cover;
}

.donate-hero-content {
  position: relative;
  z-index: 1;
  min-height: 290px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
}

.donate-hero-content h1 {
  margin: 0;
  color: var(--text);
  font-family: var(--font-main);
  font-size: clamp(48px, 5.8vw, 74px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.donate-hero-content p {
  max-width: 700px;
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.55;
}

.donate-hero-decor {
  width: 170px;
  height: 14px;
  margin: 10px auto;
  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(160, 117, 76, 0.75),
      transparent
    );
}

.donate-hero-decor:before,
.donate-hero-decor:after {
  content: "";
  position: absolute;
  top: 50%;
  width: 66px;
  height: 1px;
  background: var(--border);
}

.donate-hero-decor:before { left: 0; }
.donate-hero-decor:after { right: 0; }

.donate-section { padding: 22px 0; }

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: start;
}

.donate-main,
.donate-sidebar {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.donate-card,
.donate-quote-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.donate-card { padding: 34px 40px; }

.donate-card h2,
.donate-quote-card h2 {
  margin: 0 0 16px;
  font-family: var(--font-main);
  font-size: 30px;
  line-height: 1.15;
}

.donate-card-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.donate-card-head p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
}

.donate-card-head > span {
  color: #b85d25;
  font-size: 34px;
}

.donate-form {
  display: grid;
  gap: 22px;
}

.donate-field {
  display: grid;
  gap: 12px;
}

.donate-field label {
  color: var(--text);
  font-weight: 900;
}

.donate-field label small {
  color: var(--text-muted);
  font-weight: 700;
}

.donate-field textarea,
.donate-custom-input {
  width: 100%;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  outline: none;
  font-weight: 700;
}

.donate-custom-input {
  display: none;
  height: 48px;
  padding: 0 16px;
}

.donate-custom-input.is-visible { display: block; }

.donate-field textarea {
  min-height: 90px;
  resize: vertical;
  padding: 14px 16px;
}

.donate-amounts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.donate-amount-btn {
  min-height: 58px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-main);
  font-size: 21px;
  font-weight: 900;
}

.donate-amount-btn.is-active {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.donate-custom-btn {
  font-family: var(--font-ui);
  font-size: 14px;
}

.donate-payments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.donate-payment {
  position: relative;
  min-height: 168px;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 22px;
  color: var(--text);
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
}

.donate-payment.is-active {
  border-color: rgba(21, 104, 209, .55);
  box-shadow: inset 0 0 0 1px rgba(21, 104, 209, .22);
}

.donate-payment-logo,
.donate-secure-list span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 28px;
  font-weight: 900;
}

.donate-paypal-logo { color: #0a63c9; background: rgba(10, 99, 201, .08); }
.donate-sber-logo { color: #22a844; background: rgba(34, 168, 68, .10); }
.donate-yoo-logo { color: #7b42ff; background: rgba(123, 66, 255, .10); }
.donate-qr-logo { color: var(--text); background: var(--surface-muted); }

.donate-payment-content { min-width: 0; }

.donate-payment h3 {
  margin: 0 0 8px;
  font-family: var(--font-main);
  font-size: 22px;
  line-height: 1.15;
}

.donate-payment p {
  margin: 0;
  color: var(--text-muted);
  font-weight: 700;
  line-height: 1.4;
}

.donate-payment-action {
  grid-column: 1 / -1;
  min-height: 46px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  padding: 0 16px;
  color: #fff;
  background: #0a63c9;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.donate-copy-action { background: #2fa447; }
.donate-payment-action.is-light { color: var(--text); background: transparent; border: 1px solid var(--border); }

.donate-card-number {
  min-height: 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 10px 0 16px;
  background: rgba(47, 164, 71, .08);
  border: 1px solid rgba(47, 164, 71, .22);
  border-radius: 8px;
  font-size: 19px;
  font-weight: 900;
}

.donate-card-number button {
  width: 30px;
  height: 30px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  font-size: 18px;
}

.donate-counter {
  margin-top: -34px;
  padding: 0 14px 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
  text-align: right;
  pointer-events: none;
}

.donate-monthly {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.donate-monthly input { width: 18px; height: 18px; margin-top: 2px; }
.donate-monthly b { display: block; color: var(--text); font-weight: 900; }
.donate-monthly small { display: block; color: var(--text-muted); font-weight: 700; }

.donate-submit {
  min-height: 58px;
  display: grid;
  grid-auto-flow: column;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--primary);
  border: 0;
  border-radius: 10px;
  box-shadow: 0 14px 30px rgba(255, 47, 50, .28);
  font-size: 18px;
  font-weight: 900;
}

.donate-secure {
  margin: -4px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-weight: 700;
}

.donate-goals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.donate-goals-grid > div {
  padding: 18px;
  text-align: center;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.donate-goals-grid span,
.donate-why-list span {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  color: #b85d25;
  background: rgba(184, 93, 37, .08);
  border: 1px solid rgba(184, 93, 37, .16);
  border-radius: 50%;
  font-size: 25px;
}

.donate-goals-grid b,
.donate-why-list b,
.donate-secure-list b {
  display: block;
  color: var(--text);
  font-weight: 900;
}

.donate-goals-grid small,
.donate-why-list small,
.donate-secure-list small {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.donate-progress {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) 50px;
  gap: 18px;
  align-items: center;
  margin-top: 22px;
  padding: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.donate-progress-icon { color: #b85d25; font-size: 64px; }
.donate-progress small { color: var(--text-muted); font-weight: 800; }
.donate-progress h3 { margin: 4px 0 10px; font-family: var(--font-main); font-size: 23px; }
.donate-progress h3 b { font-size: 30px; }
.donate-progress-line { height: 10px; overflow: hidden; background: var(--surface-muted); border-radius: 999px; }
.donate-progress-line span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.donate-progress p { margin: 10px 0 0; color: var(--text-muted); font-weight: 700; }
.donate-progress em { color: var(--text); font-style: normal; font-weight: 900; }

.donate-quote-card {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,.80), rgba(255,255,255,.24)),
    var(--page-bg-image) center / cover;
}

[data-theme="dark"] .donate-quote-card {
  background:
    linear-gradient(90deg, rgba(15,17,24,.88), rgba(15,17,24,.35)),
    var(--page-bg-image) center / cover;
}

.donate-quote-card p {
  max-width: 260px;
  margin: 0;
  font-family: var(--font-main);
  font-size: 24px;
  line-height: 1.28;
}

.donate-quote-card span { color: #b85d25; font-size: 30px; }

.donate-why-list,
.donate-secure-list { display: grid; gap: 20px; }

.donate-why-list > div,
.donate-secure-list > div {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.donate-why-list span { width: 42px; height: 42px; margin: 0; font-size: 18px; }

.donate-secure-card p {
  margin: 22px 0 0;
  padding-top: 20px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  font-weight: 800;
}

.donate-supporters { display: flex; margin: 12px 0 18px; }
.donate-supporters span { width: 50px; height: 50px; display: block; margin-left: -8px; background: var(--surface-muted); border: 3px solid var(--surface-solid); border-radius: 50%; }
.donate-supporters span:first-child { margin-left: 0; }
.donate-thanks-card p { color: var(--text-muted); font-weight: 700; }
.donate-thanks-card a { color: var(--primary); font-weight: 900; }

.donate-bottom-section { padding: 0 0 46px; }

.donate-bottom-banner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 30px 70px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  background:
    linear-gradient(90deg, rgba(255,255,255,.78), rgba(255,255,255,.32)),
    var(--page-bg-image) center / cover;
}

.donate-bottom-banner h2 { margin: 0 0 8px; font-family: var(--font-main); font-size: 30px; }
.donate-bottom-banner p { max-width: 680px; margin: 0; color: var(--text); font-weight: 700; }

.donate-alert { margin-bottom: 18px; padding: 14px 16px; border-radius: 12px; font-weight: 800; }
.donate-alert-error { color: var(--primary); background: rgba(255, 47, 50, .08); border: 1px solid rgba(255, 47, 50, .16); }

.donate-success-box {
  display: grid;
  justify-items: center;
  padding: 34px 24px;
  text-align: center;
  background: rgba(24, 173, 91, .08);
  border: 1px solid rgba(24, 173, 91, .18);
  border-radius: 18px;
}

.donate-success-icon { width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: #18ad5b; border-radius: 50%; font-size: 34px; font-weight: 900; }
.donate-success-box h3 { margin: 0 0 10px; font-family: var(--font-main); font-size: 30px; }
.donate-success-box p { max-width: 460px; margin: 0 0 22px; color: var(--text-muted); font-weight: 800; }
.donate-send-again { min-height: 48px; display: inline-grid; place-items: center; padding: 0 28px; color: #fff; background: var(--primary); border-radius: 10px; font-weight: 900; text-decoration: none; }

@media (max-width: 1180px) {
  .donate-layout { grid-template-columns: 1fr; }
  .donate-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-goals-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-thanks-card { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .donate-card { padding: 26px 22px; }
  .donate-payments,
  .donate-sidebar { grid-template-columns: 1fr; }
  .donate-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .donate-goals-grid { grid-template-columns: 1fr; }
  .donate-progress { grid-template-columns: 1fr; }
  .donate-bottom-banner { align-items: flex-start; flex-direction: column; padding: 28px 24px; }
}

@media (max-width: 520px) {
  .donate-hero { padding: 50px 0 36px; }
  .donate-hero-content h1 { font-size: 38px; }
  .donate-hero-content p { font-size: 16px; }
  .donate-card h2,
  .donate-bottom-banner h2 { font-size: 26px; }
  .donate-payment { grid-template-columns: 1fr; }
  .donate-payment-logo { margin-bottom: 2px; }
  .donate-submit,
  .donate-bottom-banner .btn { width: 100%; }
}


[data-theme="dark"] .donate-bottom-banner {
  color: var(--text);
  background:
    linear-gradient(
      90deg,
      rgba(15, 17, 24, 0.94),
      rgba(15, 17, 24, 0.48)
    ),
    var(--page-bg-image) center / cover;
  border-color: var(--border);
  box-shadow: var(--shadow-soft);
}

[data-theme="dark"] .donate-bottom-banner h2,
[data-theme="dark"] .donate-bottom-banner p {
  color: var(--text);
}

[data-theme="dark"] .donate-bottom-banner .btn {
  color: #fff;
}