.teacher-pricing {
  padding: 104px 32px;
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 102, 255, .09), transparent 30%),
    radial-gradient(circle at 88% 92%, rgba(255, 77, 55, .08), transparent 28%),
    #f7f8fb;
}

.teacher-pricing__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.teacher-pricing__head {
  max-width: 720px;
  margin-bottom: 44px;
}

.teacher-pricing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: #0057d9;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.35px;
  text-transform: uppercase;
}

.teacher-pricing__eyebrow::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0066ff;
  content: "";
  box-shadow: 0 0 0 5px rgba(0, 102, 255, .1);
}

.teacher-pricing__head h2 {
  margin: 0 0 14px;
  color: #101114;
  font-size: clamp(36px, 5vw, 58px);
  font-weight: 850;
  letter-spacing: -2.2px;
  line-height: .98;
}

.teacher-pricing__head p {
  max-width: 640px;
  margin: 0;
  color: #62666d;
  font-size: 17px;
  line-height: 1.65;
}

.teacher-pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.teacher-plan {
  position: relative;
  display: flex;
  min-height: 520px;
  padding: 30px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid #e2e5eb;
  border-radius: 28px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 36px rgba(19, 31, 55, .07);
}

.teacher-plan--popular {
  border-color: #245eea;
  background: linear-gradient(155deg, #0c2352 0%, #163d91 54%, #245eea 100%);
  box-shadow: 0 22px 52px rgba(22, 61, 145, .24);
  color: #fff;
  transform: translateY(-10px);
}

.teacher-plan__flag {
  align-self: flex-start;
  margin-bottom: 22px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf3ff;
  color: #1451c8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.teacher-plan--popular .teacher-plan__flag {
  background: #fff;
  color: #184db7;
}

.teacher-plan h3 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 830;
  letter-spacing: -.65px;
}

.teacher-plan__audience {
  min-height: 42px;
  margin: 0 0 24px;
  color: #777d86;
  font-size: 14px;
  line-height: 1.5;
}

.teacher-plan--popular .teacher-plan__audience,
.teacher-plan--popular .teacher-plan__period,
.teacher-plan--popular .teacher-plan__features li {
  color: rgba(255, 255, 255, .75);
}

.teacher-plan__pages {
  margin-bottom: 4px;
  color: #111319;
  font-size: 44px;
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1;
}

.teacher-plan--popular .teacher-plan__pages { color: #fff; }

.teacher-plan__pages span {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0;
}

.teacher-plan__price {
  margin-top: 21px;
  color: #111319;
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -1.2px;
}

.teacher-plan--popular .teacher-plan__price { color: #fff; }

.teacher-plan__period {
  margin-top: 3px;
  color: #777d86;
  font-size: 13px;
}

.teacher-plan__features {
  display: grid;
  gap: 11px;
  margin: 26px 0 28px;
  padding: 22px 0 0;
  border-top: 1px solid #e8eaf0;
  list-style: none;
}

.teacher-plan--popular .teacher-plan__features { border-color: rgba(255, 255, 255, .18); }

.teacher-plan__features li {
  position: relative;
  padding-left: 23px;
  color: #444a53;
  font-size: 13px;
  line-height: 1.45;
}

.teacher-plan__features li::before {
  position: absolute;
  top: 1px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e8f7ef;
  color: #118751;
  content: "\2713";
  font-size: 10px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

.teacher-plan--popular .teacher-plan__features li::before {
  background: rgba(255, 255, 255, .16);
  color: #fff;
}

.teacher-plan__action {
  display: flex;
  min-height: 52px;
  margin-top: auto;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8dde6;
  border-radius: 16px;
  background: #fff;
  color: #101318;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  transition: transform .18s ease, box-shadow .18s ease;
}

.teacher-plan__action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(12, 35, 82, .12);
}

.teacher-plan--popular .teacher-plan__action {
  border-color: #fff;
  background: #fff;
  color: #174ab0;
}

.teacher-pricing__rules {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid #e1e5eb;
  border-radius: 18px;
  background: rgba(255, 255, 255, .76);
  color: #5d636c;
  font-size: 13px;
  line-height: 1.55;
}

.teacher-pricing__rules b {
  color: #15171b;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .teacher-pricing__grid { grid-template-columns: 1fr; }
  .teacher-plan { min-height: 0; }
  .teacher-plan--popular { transform: none; }
}

@media (max-width: 560px) {
  .teacher-pricing { padding: 72px 18px; }
  .teacher-pricing__head { margin-bottom: 30px; }
  .teacher-pricing__head h2 { letter-spacing: -1.35px; }
  .teacher-pricing__head p { font-size: 15px; }
  .teacher-plan { padding: 24px; border-radius: 22px; }
  .teacher-plan__pages { font-size: 39px; }
  .teacher-pricing__rules { grid-template-columns: 1fr; }
}
