.b-teacher-discount-banner.previews {
  margin-bottom: 30px;
}

.b-teacher-discount-banner {
  --teacher-discount-banner-ink: #15164d;
  --teacher-discount-banner-blue: #092d59;
  --teacher-discount-banner-orange: #ff881f;
  --teacher-discount-banner-bold:
    "Inter Display", Inter, "Segoe UI Black", "Arial Black", Arial, sans-serif;

  color: #fff;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.b-teacher-discount-banner > .previews__inner {
  container: teacher-discount-banner / inline-size;
}

.b-teacher-discount-banner .teacher-discount-banner__layout {
  position: relative;
  isolation: isolate;
  border-radius: 1rem;
  overflow: hidden;
  min-block-size: calc(100cqw * 1142 / 2360);
  background:
    radial-gradient(ellipse at 65% 1%, #235990 0%, transparent 53%),
    radial-gradient(ellipse at 79% 100%, #114e89 0%, transparent 55%),
    linear-gradient(135deg, #0b477c, var(--teacher-discount-banner-blue) 51%);
}

.b-teacher-discount-banner .teacher-discount-banner__portrait {
  position: absolute;
  z-index: -1;
  inset-block-end: 0;
  inset-inline-start: 0;
  display: block;
  max-inline-size: none;
  inline-size: auto;
  block-size: 100%;
}

.b-teacher-discount-banner .teacher-discount-banner__content {
  display: grid;
  gap: 2.05cqw;
  padding: 4.3cqw 4.4cqw 2.8cqw 30cqw;
}

.b-teacher-discount-banner .teacher-discount-banner__intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 15.6cqw;
  align-items: start;
  gap: 1.5cqw;
}

.b-teacher-discount-banner .teacher-discount-banner__title,
.b-teacher-discount-banner .teacher-discount-banner__lead,
.b-teacher-discount-banner .teacher-discount-banner__deadline,
.b-teacher-discount-banner .teacher-discount-banner__offer-title,
.b-teacher-discount-banner .teacher-discount-banner__duration,
.b-teacher-discount-banner .teacher-discount-banner__price-before,
.b-teacher-discount-banner .teacher-discount-banner__new-price {
  margin: 0;
}

.b-teacher-discount-banner .teacher-discount-banner__title {
  color: inherit;
  font: 900 6.9cqw / 0.97 var(--teacher-discount-banner-bold);
  letter-spacing: -0.045em;
}

.b-teacher-discount-banner .teacher-discount-banner__title-accent {
  display: block;
  inline-size: fit-content;
  margin-block-start: 0.09em;
  color: var(--teacher-discount-banner-orange);
  font-size: 0.69em;
  line-height: 1.04;
  letter-spacing: -0.039em;
}

.b-teacher-discount-banner .teacher-discount-banner__title-accent::after {
  display: block;
  inline-size: 69%;
  block-size: 0.11em;
  margin-block-start: 0.13em;
  margin-inline-start: auto;
  border-radius: 70% 100% 100% 25%;
  background-color: currentColor;
  content: "";
}

.b-teacher-discount-banner .teacher-discount-banner__lead {
  margin-block-start: 0.55cqw;
  font-size: 2.48cqw;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.b-teacher-discount-banner .teacher-discount-banner__deadline {
  display: grid;
  justify-items: end;
  gap: 0.36em;
  padding: 0.68em 0.78em 0.48em;
  transform: rotate(-6deg);
  clip-path: polygon(
    2% 0,
    100% 0,
    100% 89%,
    82% 89%,
    82% 100%,
    2% 96%,
    0 83%,
    2% 70%,
    0 57%,
    2% 43%,
    0 29%,
    2% 15%,
    0 7%
  );
  background: linear-gradient(150deg, #f46a1f, #d94300);
  color: #fff;
  font-size: 2.42cqw;
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.035em;
  text-align: center;
}

.b-teacher-discount-banner .teacher-discount-banner__calendar {
  display: block;
  inline-size: 1.35em;
  block-size: auto;
}

.b-teacher-discount-banner .teacher-discount-banner__benefits {
  display: grid;
  grid-template-columns: 1.12fr 1fr 0.95fr;
  margin: 0;
  padding: 0;
  list-style: none;
}

.b-teacher-discount-banner .teacher-discount-banner__benefit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9cqw;
  padding-inline: 1.15cqw;
  font-size: clamp(0.8125rem, 1.57cqw, 2.4rem);
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: -0.018em;
}

.b-teacher-discount-banner .teacher-discount-banner__benefit:first-child {
  padding-inline-start: 0;
}

.b-teacher-discount-banner .teacher-discount-banner__benefit:last-child {
  padding-inline-end: 0;
}

.b-teacher-discount-banner .teacher-discount-banner__benefit + .teacher-discount-banner__benefit {
  border-inline-start: 1px solid #76b7f690;
}

.b-teacher-discount-banner .teacher-discount-banner__benefit-icon {
  display: block;
  inline-size: 3.75cqw;
  block-size: auto;
}

.b-teacher-discount-banner .teacher-discount-banner__icon-accent {
  stroke: var(--teacher-discount-banner-orange);
}

.b-teacher-discount-banner .teacher-discount-banner__icon-dots {
  fill: var(--teacher-discount-banner-orange);
}

/* Global theme rule `svg *[stroke]` would stroke decorative dots. */
.b-teacher-discount-banner [stroke="none"] {
  stroke: none;
}

.b-teacher-discount-banner .teacher-discount-banner__offer {
  display: grid;
  grid-template-columns: 1.14fr 1fr;
  align-items: center;
  gap: 2cqw;
  padding: 2.2cqw 2.5cqw;
  border-radius: 4.1cqw;
  background: linear-gradient(153deg, #fff 28%, #eff6ff 100%);
  color: var(--teacher-discount-banner-ink);
  box-shadow: 0 0.5cqw 1.7cqw #011f4a34;
}

.b-teacher-discount-banner .teacher-discount-banner__offer-title {
  color: inherit;
  font: 900 2.66cqw / 1.07 var(--teacher-discount-banner-bold);
  letter-spacing: -0.032em;
}

.b-teacher-discount-banner .teacher-discount-banner__duration {
  display: inline-block;
  margin-block-start: 0.7em;
  padding: 0.35em 0.7em 0.42em;
  border-radius: 1em;
  background-color: #dce8fd;
  font-size: 1.85cqw;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.023em;
}

.b-teacher-discount-banner .teacher-discount-banner__pricing {
  display: grid;
  gap: 0.65cqw;
  padding-inline-start: 2cqw;
  border-inline-start: 1px solid #83b0ed;
}

.b-teacher-discount-banner .teacher-discount-banner__price-before {
  position: relative;
  display: flex;
  align-items: baseline;
  min-block-size: 1.25em;
  color: #626570;
  font-size: 2.75cqw;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.032em;
  white-space: nowrap;
}

.b-teacher-discount-banner .teacher-discount-banner__old-price {
  text-decoration-color: #d44905;
  text-decoration-thickness: 0.095em;
}

.b-teacher-discount-banner .teacher-discount-banner__discount {
  position: absolute;
  z-index: 1;
  inset-block-start: -0.75em;
  inset-inline-end: -0.38em;
  display: grid;
  inline-size: 2.72em;
  aspect-ratio: 1;
  place-items: center;
  transform: rotate(-9deg);
  clip-path: polygon(
    50% 0,
    56% 5%,
    64% 2%,
    69% 9%,
    77% 8%,
    80% 16%,
    88% 18%,
    89% 26%,
    96% 30%,
    95% 38%,
    100% 44%,
    97% 50%,
    100% 56%,
    95% 62%,
    96% 70%,
    89% 74%,
    88% 82%,
    80% 84%,
    77% 92%,
    69% 91%,
    64% 98%,
    56% 95%,
    50% 100%,
    44% 95%,
    36% 98%,
    31% 91%,
    23% 92%,
    20% 84%,
    12% 82%,
    11% 74%,
    4% 70%,
    5% 62%,
    0 56%,
    3% 50%,
    0 44%,
    5% 38%,
    4% 30%,
    11% 26%,
    12% 18%,
    20% 16%,
    23% 8%,
    31% 9%,
    36% 2%,
    44% 5%
  );
  background: linear-gradient(150deg, #fff1dd, #ffd094);
  color: #b63600;
  font-size: 0.86em;
  font-weight: 900;
}

.b-teacher-discount-banner .teacher-discount-banner__new-price {
  padding: 0.17em 0.26em 0.24em;
  border-radius: 0.45em;
  background: linear-gradient(145deg, #f65805, #d83f00);
  color: #fff;
  font: 900 4.45cqw / 1 var(--teacher-discount-banner-bold);
  letter-spacing: -0.04em;
  text-align: center;
  white-space: nowrap;
}

.b-teacher-discount-banner .teacher-discount-banner__price-label {
  position: absolute;
  overflow: hidden;
  inline-size: 1px;
  block-size: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
}

@container teacher-discount-banner (max-width: 760px) {
  .b-teacher-discount-banner .teacher-discount-banner__portrait {
    inset-block-start: 0;
    inset-block-end: auto;
    inline-size: min(111%, 31rem);
    block-size: auto;
    filter: brightness(0.5);
    mask-image: linear-gradient(#000 0 43%, transparent 88%);
  }

  .b-teacher-discount-banner .teacher-discount-banner__content {
    gap: clamp(1.15rem, 4cqw, 1.9rem);
    padding: clamp(1rem, 5cqw, 2.25rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__intro {
    position: relative;
    display: flex;
    align-items: end;
    min-block-size: clamp(16rem, 67cqw, 22rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__title {
    font-size: clamp(2.25rem, 9.5cqw, 4.5rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__title-accent {
    font-size: 0.76em;
  }

  .b-teacher-discount-banner .teacher-discount-banner__lead {
    margin-block-start: 0.7em;
    font-size: clamp(1rem, 4.05cqw, 1.45rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__deadline {
    position: absolute;
    inset-block-start: 0.25rem;
    inset-inline-end: 0;
    inline-size: 8em;
    box-sizing: border-box;
    background: linear-gradient(150deg, #cf470b, #ba3500);
    font-size: clamp(0.9rem, 3.6cqw, 1.3rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__benefit {
    gap: 0.65rem;
    padding-inline: 0.6rem;
    font-size: clamp(0.9rem, 2.6cqw, 1.12rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__benefit-icon {
    inline-size: clamp(1.7rem, 5cqw, 2.4rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__offer {
    gap: 1rem;
    padding: clamp(1rem, 3.6cqw, 1.65rem);
    border-radius: clamp(1.35rem, 4cqw, 2rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__offer-title {
    font-size: clamp(1.25rem, 4.45cqw, 1.9rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__duration {
    font-size: clamp(0.875rem, 2.9cqw, 1.15rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__pricing {
    gap: 0.48rem;
    padding-inline-start: 1rem;
  }

  .b-teacher-discount-banner .teacher-discount-banner__price-before {
    font-size: clamp(1.25rem, 4.6cqw, 1.75rem);
  }

  .b-teacher-discount-banner .teacher-discount-banner__new-price {
    font-size: clamp(2rem, 6.85cqw, 3rem);
  }
}

@container teacher-discount-banner (max-width: 540px) {
  .b-teacher-discount-banner .teacher-discount-banner__benefits,
  .b-teacher-discount-banner .teacher-discount-banner__offer {
    grid-template-columns: minmax(0, 1fr);
  }

  .b-teacher-discount-banner .teacher-discount-banner__benefit {
    padding: 0.6rem 0;
  }

  .b-teacher-discount-banner .teacher-discount-banner__benefit + .teacher-discount-banner__benefit {
    border-block-start: 1px solid #76b7f650;
    border-inline-start: 0;
  }

  .b-teacher-discount-banner .teacher-discount-banner__pricing {
    padding-block-start: 0.85rem;
    padding-inline-start: 0;
    border-block-start: 1px solid #83b0ed;
    border-inline-start: 0;
  }
}
