.chapter.chapter--temas {
  background-color: #181021;
  color: #fff5e3;
}

.topics-intro {
  max-width: 760px;
  margin-block-end: clamp(30px, 5vw, 58px);
}

.topics-intro h2 {
  text-wrap: balance;
}

.topics-intro p {
  max-width: 62ch;
  color: #dfcfe6;
}

.topics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 0;
  list-style: none;
}

.topic-card {
  --topic-accent: #ffd783;
  --topic-icon-bg: #443146;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: clamp(22px, 3vw, 38px);
  border: 1px solid #594467;
  border-radius: 16px;
  background: linear-gradient(150deg, #2e1d3d, #221531 78%);
}

.topic-card:nth-child(2n) {
  --topic-accent: #ebc9ff;
  --topic-icon-bg: #4a315b;
}

.topic-card:nth-child(3n) {
  --topic-accent: #ffcbb0;
  --topic-icon-bg: #4b303e;
}

.topic-icon {
  display: grid;
  width: 44px;
  aspect-ratio: 1;
  place-items: center;
  margin-block-end: 6px;
  border-radius: 11px;
  background-color: var(--topic-icon-bg);
  color: var(--topic-accent);
  font-size: 1.3125rem;
  line-height: 1;
}

.topic-icon svg {
  width: 22px;
  height: 22px;
}

svg.topic-icon {
  box-sizing: border-box;
  padding: 10px;
}

.topic-card h3 {
  color: #fff5e3;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.12;
  text-wrap: balance;
}

.topic-card h3 + p {
  margin: 0;
  color: #dfcfe6;
  font-size: 1rem;
  line-height: 1.5;
}

.chapter.chapter--bonus {
  background-color: #f6ebd8;
  color: #fff5e3;
}

.bonus-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(26px, 5vw, 72px);
  align-items: start;
  padding: clamp(24px, 5vw, 70px);
  border: 1px solid #594269;
  border-radius: clamp(16px, 2.5vw, 32px);
  background: radial-gradient(ellipse at 0% 0%, #372344 0%, #21142d 52%, #181021 100%);
}

.bonus-copy .bonus-tag {
  display: inline-block;
  margin-block-end: 20px;
  padding: 7px 11px;
  border: 1px solid #9d7554;
  border-radius: 6px;
  background-color: #493343;
  color: #ffd783;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.bonus-copy h2 {
  color: #fff5e3;
  font-size: clamp(1.875rem, 4.2vw, 3.75rem);
  line-height: 1.02;
  text-wrap: balance;
}

.bonus-copy h2 + p {
  color: #dfcfe6;
}

.bonus-copy .bonus-inclusion {
  margin-block-start: 20px;
  color: #ffd783;
  font-weight: 700;
}

.bonus-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 0;
  counter-reset: lesson;
  list-style: none;
}

.bonus-list > li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 55px;
  padding: 9px 14px 9px 10px;
  border: 1px solid #594467;
  border-radius: 10px;
  background-color: #30203e;
  color: #fff5e3;
  counter-increment: lesson;
  font-size: clamp(.9375rem, 1.5vw, 1.0625rem);
  font-weight: 650;
  line-height: 1.35;
}

.bonus-list > li::before {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 5px;
  background-color: #493343;
  color: #ffd783;
  content: counter(lesson, decimal-leading-zero);
  content: counter(lesson, decimal-leading-zero) / "";
  font-size: .75rem;
  font-variant-numeric: tabular-nums;
  font-weight: 750;
}

@media (min-width: 560px) {
  .topics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 850px) {
  .topics-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .bonus-panel {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    align-items: center;
  }
}
