/* =========================================================
   СТРАНИЦА СБОРОВ — fundraisers.html
   ========================================================= */

/* Сводка */
.funds-summary {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}

.funds-summary__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.funds-summary__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.funds-summary__num {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.funds-summary__lbl {
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* Табы-категории */
.funds-filter {
  padding: 36px 0 0;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 16px;
}

.tab {
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.tab:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.tab.is-active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.tab--accent {
  border-color: var(--accent);
  color: var(--accent);
}

.tab--accent:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }

.tab--accent.is-active { background: var(--accent); border-color: var(--accent); }

/* Сетка сборов */
.funds-list { padding: 40px 0 100px; }

.funds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

/* Карточка сбора */
.fund-card {
  display: grid;
  grid-template-columns: 320px 1fr auto;
  gap: 36px;
  padding: 28px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: border-color 0.2s, transform 0.2s;
  animation: cardIn 0.4s ease both;
}

.fund-card:hover {
  border-color: var(--ink);
}

.fund-card__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-alt);
}

.fund-card__photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.fund-card:hover .fund-card__photo img { transform: scale(1.03); }

.fund-card__urgent {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}

.fund-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.fund-card__cat {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 10px;
}

.fund-card__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.fund-card__desc {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0 0 20px;
  line-height: 1.55;
}

/* Прогресс-бар */
.fund-progress { margin-top: auto; }

.fund-progress__bar {
  height: 6px;
  background: var(--bg-alt);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 12px;
}

.fund-progress__fill {
  height: 100%;
  background: var(--ink);
  border-radius: 3px;
  width: 0;
  transition: width 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fund-progress__fill--accent { background: var(--accent); }

.fund-progress__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.fund-progress__raised {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.fund-progress__raised span {
  color: var(--ink-mute);
  font-weight: 400;
  font-size: 14px;
  margin-left: 6px;
}

.fund-progress__percent {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent);
  font-size: 18px;
}

.fund-card__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  align-items: stretch;
  min-width: 180px;
}

.fund-card__deadline {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
}

/* Раздел «как иначе помочь» */
.other-help {
  background: var(--bg-alt);
  padding: 100px 0;
}

.other-help__grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.other-help__text {
  font-size: 18px;
  color: var(--ink-soft);
  margin: 24px 0 0;
  max-width: 480px;
  line-height: 1.55;
}

.other-help__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.other-help__item {
  position: relative;
  padding: 24px 28px 24px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: padding 0.2s;
}

.other-help__item:nth-child(odd)  { border-right: 1px solid var(--line); padding-right: 28px; }
.other-help__item:nth-child(even) { padding-left: 28px; padding-right: 28px; }

.other-help__item:hover { padding-left: 8px; }
.other-help__item:nth-child(even):hover { padding-left: 36px; }

.other-help__item:hover .other-help__arrow { color: var(--accent); transform: translateX(4px); }

.other-help__num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.other-help__item h3 {
  font-size: 22px;
  font-weight: 500;
  margin: 0;
}

.other-help__item p {
  font-size: 14px;
  color: var(--ink-soft);
  margin: 0;
}

.other-help__arrow {
  position: absolute;
  top: 24px;
  right: 0;
  font-size: 20px;
  color: var(--ink);
  transition: color 0.2s, transform 0.2s;
}

/* =========================================================
   АДАПТИВ
   ========================================================= */

@media (max-width: 1024px) {
  .funds-summary__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .fund-card { grid-template-columns: 240px 1fr; }
  .fund-card__cta { grid-column: 1 / -1; flex-direction: row; }
  .fund-card__cta .btn { flex: 1; }
  .other-help__grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .funds-summary { padding: 36px 0; }
  .funds-summary__grid { grid-template-columns: 1fr 1fr; gap: 24px; }

  .fund-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
  }
  .fund-card__photo { aspect-ratio: 3 / 2; }
  .fund-card__cta { flex-direction: column; }

  .tab { padding: 8px 14px; font-size: 13px; }

  .other-help { padding: 60px 0; }
  .other-help__list { grid-template-columns: 1fr; }
  .other-help__item:nth-child(odd)  { border-right: none; padding-right: 0; }
  .other-help__item:nth-child(even) { padding-left: 0; padding-right: 0; }
  .other-help__item:nth-child(even):hover { padding-left: 8px; }
}
