.pr {
  background: #faf8f3;
  color: #413d45;
  font-family: "Montserrat", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.pr-hero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 56px;
  align-items: center;
}

.pr-hero-text {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.pr-hero-title {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: #622599;
}

.pr-hero-lead {
  margin: 0;
  max-width: 560px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.65;
  color: #413d45;
  text-wrap: pretty;
}

.pr-btn-outline {
  display: inline-flex;
  align-items: center;
  padding: 15px 30px;
  border: 2px solid #622599;
  border-radius: 999px;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #622599;
  text-decoration: none;
}

.pr-btn-outline:hover {
  background: #f1eaf8;
  color: #622599;
  text-decoration: none;
}

.pr-hero-media {
  position: relative;
  z-index: 0;
}

.pr-hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: 28px;
}

.pr-hero-square {
  position: absolute;
  left: -14px;
  bottom: -14px;
  z-index: -1;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  background: #d8c54e;
}

.pr-projects {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 24px 72px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.pr-projects-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.pr-projects-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pr-projects-title {
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  color: #413d45;
}

.pr-projects-sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: #5b5b6e;
}

.pr-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: #efebe2;
}

.pr-filter {
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #5b5b6e;
  cursor: pointer;
}

.pr-filter:hover {
  color: #413d45;
}

.pr-filter.is-active {
  background: #ffffff;
  color: #622599;
  box-shadow: 0 1px 3px rgba(65, 61, 69, 0.12);
}

.pr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  align-items: start;
}

.pr-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #ece8df;
  border-radius: 24px;
  background: #ffffff;
}

.pr-card[hidden] {
  display: none;
}

.pr-card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #efebe2;
}

.pr-card-media-empty {
  background: #efebe2 url("/images/email/logo-mark.png") center / 72px auto no-repeat;
  background-blend-mode: multiply;
}

.pr-card-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #413d45;
}

.pr-badge-progress {
  background: #d8c54e;
}

.pr-badge-regular {
  background: #e0d592;
}

.pr-badge-done {
  background: rgba(255, 255, 255, 0.94);
}

.pr-card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 26px 24px;
}

.pr-card-title {
  min-height: 5em;
  margin: 0;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  color: #413d45;
}

.pr-card-text {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.65;
  color: #413d45;
  text-wrap: pretty;
}

.pr-card-text.is-clamped {
  display: -webkit-box;
  height: 124px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

.pr-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 62px;
  padding-top: 8px;
}

.pr-btn-support {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  background: #622599;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #ffffff;
  text-decoration: none;
}

.pr-btn-support:hover {
  background: #4e1d7b;
  color: #ffffff;
  text-decoration: none;
}

.pr-toggle {
  padding: 12px 8px;
  border: 0;
  background: transparent;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #622599;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.pr-donate {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 96px;
}

.pr-donate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: clamp(32px, 5vw, 64px);
  border-radius: 24px;
  background: #f2f2f2;
}

.pr-donate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 48px;
  align-items: center;
  width: 100%;
}

.pr-donate-texts {
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
}

.pr-donate-lead {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: #413d45;
  text-wrap: pretty;
}

.pr-donate-text {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.7;
  color: #413d45;
  text-wrap: pretty;
}

.pr-donate-note {
  max-width: 900px;
  text-align: center;
}

.pr-donate-img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 16px;
}

.pr-btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 20px 64px;
  border-radius: 999px;
  background: #622599;
  font-family: "Montserrat Alternates", sans-serif;
  font-weight: 600;
  font-size: 18px;
  color: #ffffff;
  text-decoration: none;
}

.pr-btn-donate:hover {
  background: #4e1d7b;
  color: #ffffff;
  text-decoration: none;
}

.pr-btn-donate-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
}

@media screen and (max-width: 899px) {
  .pr-hero {
    gap: 32px;
    padding: 40px 24px 32px;
  }

  .pr-projects {
    gap: 32px;
    padding: 32px 24px 56px;
  }

  .pr-donate {
    padding-bottom: 64px;
  }

  .pr-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }

  .pr-filter {
    min-height: 52px;
    padding: 14px 8px;
    border: 1.5px solid #dcd6cb;
    border-radius: 14px;
    background: #ffffff;
    font-size: 15px;
    color: #413d45;
  }

  .pr-filter.is-active {
    border-color: #622599;
    background: #622599;
    font-weight: 700;
    color: #ffffff;
    box-shadow: none;
  }
}
