.grant-page {
  --grant-green: #58c65e;
  --grant-deep: #318f7c;
  --grant-gray: #f1f1f1;
  background: #fff;
}

.grant-page .header__cta {
  width: 141px;
  height: 40px;
  padding: 0;
  justify-content: center;
  gap: 8px;
}

.grant-page .header__cta img {
  width: 23px;
  height: 17px;
  flex: 0 0 auto;
  object-fit: fill;
}

.grant-hero {
  padding: 22px 20px 30px;
  text-align: center;
  background:
    linear-gradient(145deg, transparent 0 86%, rgb(0 143 120 / 6%) 86% 88%, transparent 88%) top right / 120px 120px no-repeat,
    #fff var(--pattern) center -36px / 375px auto no-repeat;
}

.grant-ribbon {
  width: 228px;
  margin: 0 auto 18px;
  padding: 4px 14px 5px;
  color: #fff;
  font-size: 16px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, var(--grant-green), var(--grant-deep));
  transform: skewX(-15deg);
}

.grant-hero h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.55;
  letter-spacing: -.03em;
}

.grant-hero > p:not(.grant-ribbon) {
  margin: 14px 0 6px;
  font-size: 14px;
  line-height: 1.8;
}

.grant-hero > img {
  width: 335px;
  height: 189px;
  margin: 14px auto 12px;
  object-fit: contain;
}

.grant-hero__actions,
.grant-actions {
  display: grid;
  gap: 10px;
}

.grant-button {
  min-height: 54px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--grant-green), var(--grant-deep));
  border-radius: 999px;
  box-shadow: 0 6px 14px rgb(49 143 124 / 14%);
}

.grant-button img {
  width: 31px;
  height: 23px;
  flex: 0 0 auto;
  object-fit: fill;
}

.grant-page .contact a img {
  width: 31px;
  height: 23px;
  flex: 0 0 auto;
  object-fit: fill;
  filter: brightness(0) saturate(100%) invert(35%) sepia(75%) saturate(930%) hue-rotate(132deg) brightness(84%);
}

.grant-button--outline {
  color: var(--grant-green);
  background: #fff;
  border: 2px solid var(--grant-green);
  box-shadow: none;
}

.grant-section {
  padding: 48px 20px;
  background: #fff var(--pattern) center top / 375px auto no-repeat;
}

.grant-section--gray {
  background:
    linear-gradient(135deg, transparent 0 88%, rgb(255 255 255 / 50%) 88% 90%, transparent 90%) top right / 100px 100px no-repeat,
    var(--grant-gray);
}

.grant-heading {
  text-align: center;
}

.grant-heading > span {
  min-width: 112px;
  padding: 5px 20px;
  display: inline-block;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  background: var(--grant-green);
  border-radius: 5px;
}

.grant-heading h2 {
  margin: 15px 0 0;
  font-size: 25px;
  line-height: 1.45;
}

.grant-heading > p {
  margin: 15px 0 0;
  font-size: 14px;
  line-height: 1.7;
}

.grant-overview__image {
  width: 295px;
  height: 227px;
  margin: 18px auto 10px;
  object-fit: contain;
}

.grant-copy {
  font-size: 14px;
  line-height: 1.8;
}

.grant-copy p {
  margin: 0 0 12px;
}

.grant-copy strong {
  color: var(--grant-deep);
}

.grant-summary {
  margin: 22px 0 0;
  padding: 16px 18px;
  display: grid;
  gap: 10px;
  list-style: none;
  background: #fff;
  border-radius: 9px;
}

.grant-summary li {
  display: grid;
  grid-template-columns: 20px auto 1fr;
  align-items: start;
  color: #555;
  font-size: 12px;
  line-height: 1.5;
}

.grant-summary li > span {
  width: 17px;
  height: 17px;
  display: grid;
  place-content: center;
  color: #fff;
  font-size: 11px;
  background: var(--grant-green);
  border-radius: 50%;
}

.target-section__main {
  width: 295px;
  height: 179px;
  margin: 20px auto 0;
  object-fit: contain;
}

.target-section > * {
  width: 100%;
  max-width: 335px;
  margin-left: auto;
  margin-right: auto;
}

.target-section > .target-section__main {
  width: 295px;
  max-width: 295px;
}

.target-label {
  min-height: 64px;
  margin-top: 20px;
  margin-bottom: 30px;
  padding: 10px 15px;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
  background: var(--grant-deep);
}

.target-label strong {
  font-size: 18px;
}

.target-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
}

.target-grid article {
  width: 100%;
  min-width: 0;
  min-height: 265px;
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: #fff;
  border: 2px solid var(--grant-green);
  border-bottom-width: 5px;
  border-radius: 6px;
}

.target-grid img {
  width: 200px;
  height: 130px;
  margin: 0 auto;
  object-fit: contain;
}

.target-grid article:nth-child(1) img { width: 164px; height: 127px; }
.target-grid article:nth-child(2) img { width: 149px; height: 130px; }
.target-grid article:nth-child(3) img { width: 177px; height: 130px; }
.target-grid article:nth-child(4) img { width: 148px; height: 130px; }

.target-grid h3 {
  width: 280px;
  margin: 0;
  color: var(--grant-deep);
  font-size: 20px;
  line-height: 1.4;
}

.target-grid p {
  width: 280px;
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.frames-section__image {
  width: 295px;
  height: 163px;
  margin: 20px auto 10px;
  object-fit: contain;
}

.frame-list {
  display: grid;
  gap: 16px;
}

.frame-card {
  --frame-color: var(--grant-green);
  overflow: hidden;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 7px rgb(0 0 0 / 7%);
}

.frame-card header {
  min-height: 58px;
  padding: 7px 14px;
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 6px;
  color: #fff;
  background: var(--frame-color);
}

.frame-card header b {
  width: 56px;
  height: 56px;
  margin: -4px 0 -4px -4px;
  display: grid;
  place-content: center;
  color: var(--frame-color);
  font-size: 9px;
  font-style: italic;
  line-height: .9;
  text-align: center;
  background: #fff;
  border-radius: 50%;
  transform: rotate(-9deg);
}

.frame-card header b strong {
  font-size: 29px;
}

.frame-card h3 {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
}

.frame-card h3 small {
  display: block;
  font-size: 11px;
}

.frame-card ul {
  margin: 0;
  padding: 15px 20px 16px 42px;
  columns: 1;
  list-style: none;
}

.frame-card li {
  position: relative;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 700;
}

.frame-card li::before {
  position: absolute;
  left: -23px;
  top: 1px;
  width: 16px;
  height: 16px;
  content: "✓";
  display: grid;
  place-content: center;
  color: #fff;
  font-size: 11px;
  background: var(--frame-color);
  border-radius: 50%;
}

.frame-card--blue { --frame-color: #5faaf4; }
.frame-card--indigo { --frame-color: #7979df; }
.frame-card--orange { --frame-color: #efa13c; }
.frame-card--purple { --frame-color: #9850df; }
.frames-section .grant-actions { margin-top: 22px; }

.grant-flow {
  margin-top: 26px;
  display: grid;
  gap: 34px;
}

.grant-flow article {
  min-height: 122px;
  position: relative;
  display: grid;
  grid-template-columns: 76px 1fr;
  background: #fff;
  border: 3px solid var(--grant-green);
  border-radius: 7px;
}

.grant-flow article:not(:last-child)::after {
  position: absolute;
  left: 50%;
  bottom: -31px;
  content: "▼";
  color: var(--grant-green);
  font-size: 27px;
  transform: translateX(-50%);
}

.grant-flow article > b {
  display: grid;
  align-content: center;
  justify-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 500;
  background: var(--grant-green);
}

.grant-flow article > b strong {
  font-size: 34px;
  line-height: 1;
}

.grant-flow article > div {
  padding: 13px 13px 12px;
}

.grant-flow h3 {
  margin: 0 0 7px;
  color: var(--grant-deep);
  font-size: 15px;
  line-height: 1.4;
}

.grant-flow p {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
}

.support-grid {
  margin-top: 25px;
  display: grid;
  gap: 16px;
}

.support-grid article {
  padding: 17px 15px;
  text-align: center;
  background: #fff;
  border-radius: 8px;
}

.support-grid h3 {
  margin: 0;
  color: var(--grant-deep);
  font-size: 19px;
}

.support-grid img {
  width: 265px;
  height: 160px;
  margin: 5px auto;
  object-fit: contain;
}

.support-grid p {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.65;
}

.support-content .grant-actions {
  margin-top: 20px;
}

@media (max-width: 360px) {
  .grant-hero h1 { font-size: 24px; }
  .grant-section { padding-inline: 15px; }
  .frame-card h3 { font-size: 17px; }
  .grant-flow article { grid-template-columns: 68px 1fr; }
}
