@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=PT+Sans:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #FAF6F0;
  --bg-warm: #F3EDE4;
  --text: #2C1810;
  --text-mid: #5C4033;
  --text-light: #8A7060;
  --accent: #C2442E;
  --accent-soft: #D4785C;
  --sage: #7A8B6A;
  --sage-light: #A8B898;
  --card: #FFFFFF;
  --border: #E0D5C8;
  --critical: #C2442E;
  --high: #C2882E;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'PT Sans', sans-serif;
  line-height: 1.5;
}

.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-main {
  flex: 1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ─────────────── ШАПКА ─────────────── */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 8px;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  font-size: 24px;
  font-weight: 400;
  border-radius: 4px;
}

.logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 32px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-mid);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--accent);
}

.nav-link-admin {
  background: var(--accent);
  color: white;
  padding: 6px 14px;
  border-radius: 4px;
}

.nav-link-admin:hover {
  background: #A83824;
  color: white;
}

/* ─────────────── ПОДВАЛ ─────────────── */
.site-footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-info {
  flex: 2;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.footer-description {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  max-width: 320px;
}

.footer-contacts {
  flex: 1;
}

.footer-contacts h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-contacts p {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}

/* ─────────────── HERO ─────────────── */
.hero-wrap {
  position: relative;
  padding: 60px 0 80px;
  overflow: hidden;
}

.hero-wrap::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194,68,46,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-wrap::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122,139,106,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 60px;
  align-items: end;
}

.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  font-weight: 700;
}

.hero-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 0 24px;
  color: var(--text);
  letter-spacing: -1px;
}

.hero-heading em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

.hero-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-mid);
  margin: 0 0 40px;
  max-width: 520px;
}

.hero-stats-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-left: 2px solid var(--border);
  padding-left: 28px;
}

.hstat {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.hstat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.hstat:first-child {
  padding-top: 0;
}

.hstat-num {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  color: var(--text);
  line-height: 1.1;
}

.hstat-num span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-light);
  margin-left: 4px;
}

.hstat-label {
  font-size: 14px;
  color: var(--text-light);
  margin-top: 4px;
  line-height: 1.4;
}

/* ─────────────── РАЗДЕЛИТЕЛЬ ─────────────── */
.divider-line {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.divider-line hr {
  border: none;
  border-top: 1px solid var(--border);
}

/* ─────────────── СБОРЫ ─────────────── */
.campaigns-wrap {
  padding: 60px 0 100px;
}

.campaigns-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.sec-top {
  margin-bottom: 48px;
  display: flex;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}

.sec-title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 32px;
  margin: 0;
  color: var(--text);
}

.sec-sub {
  font-size: 15px;
  color: var(--text-light);
  font-style: italic;
  margin: 0;
}

.campaigns-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

/* Карточка */
.camp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px 30px 28px;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
}

.camp-card:hover {
  box-shadow: 0 8px 30px rgba(44,24,16,0.08);
  transform: translateY(-2px);
}

/* Первая карточка — крупная */
.camp-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 40px 38px 36px;
}

.camp-card--featured .camp-left {
  border-right: 1px solid var(--border);
  padding-right: 40px;
}

.camp-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 10px 3px;
  border-radius: 3px;
  margin-bottom: 16px;
}

.camp-tag--critical {
  background: rgba(194,68,46,0.1);
  color: var(--critical);
}

.camp-tag--high {
  background: rgba(194,136,46,0.1);
  color: var(--high);
}

.camp-name {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--text);
}

.camp-card--featured .camp-name {
  font-size: 28px;
}

.camp-diag {
  font-size: 14px;
  color: var(--accent-soft);
  font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: 0.3px;
}

.camp-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 0 24px;
}

/* Прогресс */
.prog-bar-wrap {
  height: 8px;
  background: var(--bg-warm);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.prog-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--sage), var(--sage-light));
  transition: width 0.6s ease;
}

.prog-bar-fill--critical {
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.prog-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}

.prog-current {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
}

.prog-target {
  font-size: 14px;
  color: var(--text-light);
}

.prog-percent {
  font-size: 13px;
  color: var(--sage);
  font-weight: 700;
}

.prog-percent--critical {
  color: var(--accent);
}

/* Подвал карточки */
.camp-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.camp-donors {
  font-size: 13px;
  color: var(--text-light);
}

.camp-donors strong {
  color: var(--text-mid);
  font-weight: 700;
}

.btn-help {
  display: inline-block;
  font-family: 'PT Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 4px;
  padding: 10px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-help:hover {
  background: #A83824;
  transform: translateY(-1px);
}

.btn-help:active {
  transform: translateY(0);
}

/* ─────────────── АДАПТИВ ─────────────── */
@media (max-width: 860px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero-stats-col {
    border-left: none;
    padding-left: 0;
    border-top: 2px solid var(--border);
    padding-top: 28px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 24px;
  }
  .hstat {
    border-bottom: none;
    padding: 0;
    flex: 1 1 140px;
  }
  .campaigns-list {
    grid-template-columns: 1fr;
  }
  .camp-card--featured {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
  .camp-card--featured .camp-left {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
  }
  .nav-list {
    gap: 20px;
  }
}

@media (max-width: 600px) {
  .header-inner {
    flex-direction: column;
    gap: 16px;
  }
  .nav-list {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }
}

@media (max-width: 500px) {
  .hero-wrap { padding: 40px 0 60px; }
  .hero-heading { font-size: 36px; }
  .hstat-num { font-size: 26px; }
  .camp-card { padding: 24px 20px 22px; }
  .camp-card--featured { padding: 28px 20px 24px; }
  .sec-title { font-size: 26px; }
  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
}
/* ========== СТРАНИЦА ПОЖЕРТВОВАНИЯ ========== */
.donate-page-wrap {
  padding: 40px 0 80px;
}

.donate-page-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.donate-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
}

.donate-info-card,
.donate-form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 32px;
}

.donate-info-card h2 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  margin: 0 0 20px;
  color: var(--text);
}

.donate-child {
  padding: 16px;
  background: var(--bg-warm);
  border-radius: 4px;
  margin-bottom: 20px;
}

.donate-child-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.donate-child-diagnosis {
  font-size: 14px;
  color: var(--accent-soft);
}

.donate-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-light);
}

.donate-form-card h1 {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  margin: 0 0 24px;
  color: var(--text);
}

.error-message {
  background: rgba(194,68,46,0.1);
  color: var(--critical);
  padding: 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 14px;
}

.donate-note {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
}

@media (max-width: 768px) {
  .donate-grid {
    grid-template-columns: 1fr;
  }
}