:root {
  color-scheme: light;
  --page-bg: #f8f6f2;
  --page-fg: #1f2130;
  --accent: #b8542a;
  --accent-soft: #f0d9c5;
  --muted: #6a6c7a;
  --border-subtle: rgba(0, 0, 0, 0.06);
  --shadow-soft: 0 18px 45px rgba(30, 25, 15, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  direction: rtl;
  text-align: right;
  background: radial-gradient(circle at top left, #ffffff 0, #f4efe7 45%, #efe8de 100%);
  color: var(--page-fg);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  min-height: 100vh;
  font-size: 18px;
}

.page {
  max-width: 960px;
  margin: 32px auto;
  padding: 32px 20px 40px;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 768px) {
  .page {
    padding: 40px 56px 48px;
    margin: 48px auto;
  }
}

.site-header {
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
  text-align: center;
}

.title {
  margin: 0 0 8px;
  font-size: clamp(2.3rem, 3.2vw, 2.8rem);
  letter-spacing: 0.03em;
}

.subtitle {
  margin: 0;
  font-size: 1.25rem;
  color: var(--muted);
}

.subtitle-note {
  font-size: 1rem;
}

.section {
  margin-bottom: 24px;
  line-height: 1.7;
  font-size: 1.1rem;
}

.section-title {
  margin: 0 0 8px;
  font-size: 1.4rem;
  color: var(--accent);
}

.signature {
  margin-top: 16px;
  font-weight: 600;
}

.donation-section {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

@media (min-width: 768px) {
  .donation-section {
    flex-direction: row-reverse;
    align-items: center;
  }
}

.donation-text {
  flex: 0 0 auto;
}

.qr-wrapper {
  flex: 0 0 auto;
  padding: 12px;
  border-radius: 12px;
  background: var(--accent-soft);
}

.qr-wrapper img {
  display: block;
  width: 160px;
  max-width: 40vw;
  height: auto;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  cursor: not-allowed;
  opacity: 0.7;
}

.button[aria-disabled="false"] {
  cursor: pointer;
  opacity: 1;
}

.button[aria-disabled="false"]:hover {
  background: #9f411c;
}

.site-footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.95rem;
  color: var(--muted);
  text-align: left;
}

.donation-section {
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
  display: flex;
  justify-content: flex-end;
}

.donation-text {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.donation-text .section-title {
  font-size: 1.8rem;
  font-weight: 700;
}

.signature-block {
  margin-top: 8px;
  margin-right: 50%;
  text-align: right;
}

.signature-line {
  margin: 0;
}

.qr-wrapper {
  margin-top: 8px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.qr-wrapper img {
  display: block;
  width: 180px;
  max-width: 45vw;
  height: auto;
}

@media print {
  @page {
    margin: 8mm;
  }

  body {
    background: #ffffff;
    font-size: 22px;
  }

  .page {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 10mm 12mm 60mm;
    position: relative;
  }

  .donation-section {
    position: absolute;
    bottom: 10mm;
    right: 12mm;
    margin-top: 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .section {
    font-size: 1rem;
    line-height: 1.65;
  }
}


