@font-face {
  font-family: "AvantGarde Bold";
  src: url("ITCAvantGardePro-Bold.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "AvantGarde Demi";
  src: url("ITCAvantGardePro-Demi.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Regular";
  src: url("HelveticaNowText-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Now Light";
  src: url("HelveticaNowText-Light.woff") format("woff2");
  font-display: swap;
}

:root {
  --orange: #f15a22;
  --navy: #002e4e;
  --tab-blue: #008ce5;
  --back-blue: #1aa0e8;
  --gray-btn: #cfcfcf;
  --gray-step: #b5b5b5;
  --gray-bg: #f2f2f2;
  --text: #363636;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Helvetica Now Light", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

.donate-header {
  background: #fff;
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 28px;
}

.donate-logo img {
  height: 48px;
  width: auto;
}

.donate-banner {
  background: var(--navy);
  color: #fff;
  padding: 34px 24px 78px;
  text-align: center;
  border-bottom: 3px solid var(--orange);
}

.donate-banner h1 {
  margin: 0;
  font-family: "AvantGarde Bold", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  font-weight: normal;
  line-height: 1.2;
}

.donate-main {
  flex: 1;
  max-width: 1100px;
  width: 100%;
  margin: -52px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: start;
}

.donate-card {
  background: #fff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.14);
  overflow: hidden;
}

.freq-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 3px solid var(--orange);
}

.freq-tabs button {
  border: 0;
  background: var(--tab-blue);
  color: #fff;
  padding: 18px 6px;
  font-family: "AvantGarde Bold", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  cursor: pointer;
  border-top: 4px solid transparent;
}

.freq-tabs button.active {
  background: #fff;
  color: var(--orange);
  border-top-color: var(--orange);
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  background: #fff;
  padding: 0 8px;
}

.steps button {
  border: 0;
  background: transparent;
  padding: 18px 8px 12px;
  font-family: "AvantGarde Demi", sans-serif;
  font-size: 1rem;
  color: var(--gray-step);
  cursor: default;
  border-bottom: 2px solid #ddd;
}

.steps button.active {
  color: #1a1a1a;
  border-bottom: 4px solid var(--orange);
  font-family: "AvantGarde Bold", sans-serif;
}

.steps button:disabled {
  opacity: 1;
}

.panel {
  display: none;
  padding: 28px 22px 30px;
}

.panel.active {
  display: block;
}

.amounts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-bottom: 30px;
}

.amount-btn {
  border: 0;
  border-radius: 3px;
  background: var(--gray-btn);
  color: #fff;
  font-family: "AvantGarde Bold", sans-serif;
  font-size: 1.05rem;
  padding: 16px 4px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: 54px;
}

.amount-btn:hover {
  background: #bfbfbf;
}

.amount-btn.active {
  background: var(--orange);
  color: #fff;
}

.other-wrap {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #c8c8c8;
  border-radius: 3px;
  min-height: 54px;
  padding: 0 10px;
}

.other-wrap input {
  border: 0;
  outline: none;
  width: 100%;
  font-size: 1.05rem;
  padding: 12px 0;
  font-family: "AvantGarde Demi", sans-serif;
  color: #666;
  background: transparent;
}

.other-wrap input::placeholder {
  color: #9a9a9a;
  font-family: "AvantGarde Demi", sans-serif;
}

.other-wrap:focus-within {
  border-color: var(--orange);
}

.btn {
  border: 0;
  color: #fff;
  font-family: "AvantGarde Bold", sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  padding: 16px 28px;
  cursor: pointer;
  text-transform: uppercase;
  border-radius: 2px;
  transition: filter 0.15s;
}

.btn:hover {
  filter: brightness(1.05);
}

.btn-orange {
  background-color: var(--orange);
  background-image: url("ico-crosshatch-orange.png");
}

.btn-blue {
  background-color: var(--back-blue);
  background-image: url("ico-crosshatch-blue.png");
}

.btn-wide {
  flex: 1;
}

.actions-center {
  display: flex;
  justify-content: center;
}

.actions-center .btn {
  min-width: 260px;
}

.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.actions-row .btn-blue {
  min-width: 120px;
}

.summary {
  margin: 8px 0 28px;
  font-size: 1.15rem;
  color: #555;
  line-height: 1.45;
}

.summary strong {
  color: #1a1a1a;
  font-family: "AvantGarde Bold", sans-serif;
  font-weight: normal;
}

.payment-methods {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.pay-option {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.pay-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-option .radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #c5c5c5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #fff;
}

.pay-option .radio::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: transparent;
}

.pay-option.selected .radio {
  border-color: var(--orange);
}

.pay-option.selected .radio::after {
  background: var(--orange);
}

.pay-option.disabled {
  cursor: default;
  opacity: 0.85;
}

.pay-label {
  font-size: 1.05rem;
  color: #444;
  font-family: "Helvetica Now Regular", sans-serif;
}

.impact {
  background: #fff;
}

.impact-media {
  position: relative;
  overflow: hidden;
}

.impact-media img.impact-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.impact-badge {
  position: absolute;
  top: -5px;
  left: 5px;
  width: 160px;
  height: 130px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #222;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "AvantGarde Bold", sans-serif;
  color: var(--orange);
  font-size: 1.35rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.impact-caption {
  background: rgba(40, 40, 40, 0.85);
  color: #fff;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.4;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.impact-nav {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.impact-nav button {
  width: 28px;
  height: 28px;
  border: 0;
  background: #888;
  color: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}

.impact-nav button:hover {
  background: var(--orange);
}

.impact-copy {
  padding: 22px 8px 8px;
  font-size: 0.98rem;
  line-height: 1.65;
  color: #333;
}

.impact-copy p {
  margin: 0 0 14px;
}

.donate-footer {
  background: var(--gray-bg);
  text-align: center;
  padding: 22px 16px;
  font-size: 0.95rem;
  color: #555;
  margin-top: auto;
}

.donate-footer a {
  color: #333;
  font-weight: bold;
}

@media (max-width: 1000px) {
  .amounts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .donate-main {
    grid-template-columns: 1fr;
    margin-top: -40px;
  }

  .freq-tabs button {
    font-size: 0.62rem;
    padding: 14px 4px;
  }

  .payment-methods {
    grid-template-columns: 1fr;
  }

  .actions-row {
    flex-direction: column;
  }

  .actions-row .btn-blue {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .amounts {
    grid-template-columns: repeat(2, 1fr);
  }
}
