.programas-free-page {
  background:
    linear-gradient(rgba(255, 255, 255, 0.88), rgba(248, 251, 255, 0.92)),
    repeating-linear-gradient(90deg, rgba(35, 52, 76, 0.06) 0, rgba(35, 52, 76, 0.06) 1px, transparent 1px, transparent 81px),
    repeating-linear-gradient(0deg, rgba(35, 52, 76, 0.05) 0, rgba(35, 52, 76, 0.05) 1px, transparent 1px, transparent 81px);
  color: #0f1f33;
}

.pf-shell {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 64px;
}

.pf-hero,
.pf-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(212, 189, 142, 0.65);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 26px 60px rgba(20, 34, 52, 0.08);
  position: relative;
  overflow: hidden;
}

.pf-hero::before,
.pf-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #fbb000, #a36a00);
}

.pf-hero > *,
.pf-detail-hero > * {
  position: relative;
}

.pf-detail-hero,
.pf-download-hero {
  grid-template-columns: minmax(0, 1fr) auto;
}

.pf-kicker {
  margin-bottom: 8px;
  color: #a36a00;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.pf-hero h1,
.pf-detail-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 900;
  letter-spacing: 0;
}

.pf-hero p,
.pf-detail-hero p {
  max-width: 780px;
  margin: 12px 0 0;
  color: #526178;
  font-size: 1.08rem;
}

.pf-hero.calc-hero,
.pf-detail-hero.calc-hero {
  margin-bottom: 0;
}

.pf-back,
.pf-download {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 18px;
  border: 1px solid rgba(176, 191, 210, 0.9);
  border-radius: 10px;
  background: #fff;
  color: #13233a;
  font-weight: 850;
  text-decoration: none;
}

.pf-back svg,
.pf-download svg {
  width: 18px;
  height: 18px;
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.pf-taxonomy {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.pf-taxonomy > div,
.pf-alert,
.pf-warning,
.pf-form {
  border: 1px solid rgba(213, 222, 233, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 31, 51, 0.07);
}

.pf-taxonomy > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 16px;
}

.pf-taxonomy span {
  color: #5a6a80;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-taxonomy strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f7fb;
  color: #233247;
  font-size: 0.86rem;
}

.pf-alert {
  margin-top: 18px;
  padding: 14px 16px;
  font-weight: 800;
}

.pf-alert-success {
  border-color: rgba(33, 150, 83, 0.25);
  background: #effaf3;
  color: #145c32;
}

.pf-alert-error {
  border-color: rgba(185, 28, 28, 0.25);
  background: #fff1f1;
  color: #8f1d1d;
}

.pf-contribute-card {
  border-color: rgba(251, 176, 0, 0.72);
  background: linear-gradient(180deg, #fff9e8 0%, #fff 100%);
}

.pf-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 236px;
  padding: 18px;
  border: 1px solid rgba(213, 222, 233, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: 0 18px 38px rgba(15, 31, 51, 0.07);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pf-card:hover {
  transform: translateY(-3px);
  border-color: rgba(251, 176, 0, 0.72);
  box-shadow: 0 24px 48px rgba(15, 31, 51, 0.11);
}

.pf-card-media,
.pf-detail-logo {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  overflow: hidden;
  border: 1px solid rgba(251, 176, 0, 0.32);
  border-radius: 20px;
  background: #fff8e5;
}

.pf-detail-logo {
  width: 120px;
  height: 120px;
}

.pf-card-media {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

.pf-card-media img,
.pf-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 12px;
}

.pf-card-media svg,
.pf-detail-logo svg {
  width: 32px;
  height: 32px;
  color: #b56f00;
}

.pf-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pf-card-body strong {
  font-size: 1.08rem;
  line-height: 1.15;
}

.pf-card-body small {
  color: #5a6a80;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pf-card-meta,
.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #8a5a00;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pf-card-meta span,
.pf-tags span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff4cf;
}

.pf-author {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  color: #526178;
  font-weight: 750;
}

.pf-author-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border-radius: 50%;
  background: #fff4cf;
  color: #8a5a00;
  font-weight: 900;
}

.pf-author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pf-cancel-form {
  margin: 0;
}

.pf-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 20px;
  margin-top: 22px;
}

.pf-content-card,
.pf-download-card,
.pf-empty {
  border: 1px solid rgba(213, 222, 233, 0.92);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(15, 31, 51, 0.07);
}

.pf-content-card,
.pf-download-card {
  padding: 26px;
}

.pf-content-card h2,
.pf-download-card h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 900;
}

.pf-rich-text {
  color: #233247;
  line-height: 1.7;
}

.pf-program-image {
  margin: 0 0 22px;
  overflow: hidden;
  border: 1px solid rgba(176, 191, 210, 0.75);
  border-radius: 16px;
  background: #f8fbff;
}

.pf-program-image img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
}

.pf-rich-text-with-image {
  padding-top: 4px;
}

.pf-rich-text img {
  max-width: 100%;
  height: auto;
}

.pf-content-signature {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  margin-top: 26px;
  padding: 12px 14px;
  border: 1px solid rgba(213, 222, 233, 0.92);
  border-radius: 14px;
  background: #fbfdff;
}

.pf-content-signature strong {
  display: block;
  color: #13233a;
  font-size: 0.95rem;
}

.pf-content-signature a {
  display: inline-block;
  margin-top: 2px;
  color: #8a5a00;
  font-weight: 850;
  text-decoration: none;
}

.pf-download-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.pf-download-primary {
  border-color: rgba(251, 176, 0, 0.55);
  background: linear-gradient(180deg, #ffc533 0%, #f5aa00 100%);
  color: #1d2600;
}

.pf-download:hover,
.pf-download:focus,
.pf-back:hover,
.pf-back:focus {
  color: #13233a;
  text-decoration: none;
}

.pf-download-primary:hover,
.pf-download-primary:focus {
  color: #111a00;
  background: linear-gradient(180deg, #ffd766 0%, #eda000 100%);
}

.pf-empty {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  padding: 30px;
  color: #5a6a80;
  text-align: center;
}

.pf-empty svg {
  width: 46px;
  height: 46px;
  color: #9cabbd;
}

.pf-empty strong {
  color: #13233a;
}

.pf-warning {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 20px;
  padding: 16px 18px;
  border-color: rgba(211, 158, 0, 0.4);
  background: #fff4c2;
  color: #4c3900;
  font-weight: 750;
  line-height: 1.45;
}

.pf-warning svg {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
}

.pf-form {
  margin-top: 20px;
  padding: 24px;
}

.pf-client-error {
  margin-bottom: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(185, 28, 28, 0.25);
  border-radius: 12px;
  background: #fff1f1;
  color: #8f1d1d;
  font-weight: 850;
}

.pf-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pf-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pf-form label > span {
  color: #34445a;
  font-size: 0.86rem;
  font-weight: 900;
}

.pf-form small {
  color: #5a6a80;
}

.pf-form input,
.pf-form select,
.pf-form textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(176, 191, 210, 0.9);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
  color: #13233a;
  font: inherit;
}

.pf-form input[aria-invalid="true"] {
  border-color: #b91c1c;
  box-shadow: 0 0 0 3px rgba(185, 28, 28, 0.12);
}

.pf-form textarea {
  line-height: 1.55;
  resize: vertical;
}

.pf-span-2 {
  grid-column: 1 / -1;
}

.pf-form-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(213, 222, 233, 0.92);
}

.pf-form-footer p {
  max-width: 720px;
  margin: 0;
  color: #5a6a80;
}

.pf-form-footer button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background: linear-gradient(180deg, #ffc533 0%, #f5aa00 100%);
  color: #1d2600;
  font-weight: 900;
}

.pf-form-footer svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 780px) {
  .pf-shell {
    width: min(100% - 28px, 1480px);
  }

  .pf-hero,
  .pf-detail-hero,
  .pf-detail-grid,
  .pf-form-grid {
    grid-template-columns: 1fr;
  }

  .pf-span-2 {
    grid-column: auto;
  }

  .pf-detail-logo {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 1300px) {
  .pf-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1050px) {
  .pf-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .pf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .pf-grid {
    grid-template-columns: 1fr;
  }
}
