.teachers-page .case-glow::before {
  content: "";
  position: absolute;
  inset: 20% -8% 4%;
  background: #fff67b;
}

.teachers-page .case-text p + p {
  margin-top: 24px;
}

.teachers-cover {
  width: 865px;
  aspect-ratio: 865 / 541;
}

.teachers-cover .image-zoom {
  position: absolute;
  border-radius: 0;
}

.teachers-register {
  left: 4.45%;
  top: 1.29%;
  width: 69.43%;
}

.teachers-tests {
  left: 25.84%;
  top: 27.73%;
  width: 69.43%;
}

.teachers-handset {
  left: 76.59%;
  top: 41.96%;
  width: 16.72%;
}

.teachers-page .image-zoom img {
  height: auto;
  box-shadow: 0 0 20px #00000012;
}

.teachers-before {
  width: min(701px, 100%);
  margin: 0;
}

.teachers-before figcaption {
  max-width: 618px;
  margin: 4px auto 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 29px;
}

.teachers-criterion {
  margin: 24px -26px 0;
  padding: 24px 26px;
  background: rgb(41 186 99 / 20%);
  color: #166937;
  border-radius: 16px;
}

.teachers-criterion h3 {
  margin: 0 0 12px;
  font-size: inherit;
  font-weight: 600;
}

[data-theme=dark] .teachers-criterion {
  color: #a2e6b8;
}

.teachers-desktop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 13px;
  width: min(878px, 100%);
  padding-block: 64px;
}

.teachers-desktop .image-zoom {
  width: calc((100% - 13px) / 2);
  border-radius: 0;
}

.teachers-desktop .image-zoom img {
  box-shadow: 0 0 15px #00000012;
}

.teachers-phones {
  display: flex;
  align-items: center;
  gap: 15.29px;
  /* Leave room inside the scrollport for the enlarged frame and its shadow. */
  padding: 48px max(40px, calc((100% - 1034px) / 2));
  margin-block: -24px -48px;
  width: 100vw;
  max-width: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.teachers-phones .image-zoom {
  flex: none;
  scroll-snap-align: center;
  width: 134.59px;
  border-radius: 10.19px;
  overflow: hidden;
  box-shadow: 0 0 21.06px rgb(0 0 0 / 7%);
}

.teachers-phones .image-zoom img {
  box-shadow: none;
}

.teachers-mobile {
  width: 100vw;
  padding: 64px 0;
}

.teachers-mobile .case-text {
  position: relative;
  z-index: 1;
  width: min(618px, calc(100% - 48px));
  padding: 0;
  margin: 0 auto;
}

@media (hover: hover) and (pointer: fine) {
  :is(.teachers-desktop, .teachers-phones) .image-zoom:is(:hover, :focus-visible) {
    transform: scale(1.08);
    z-index: 1;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.teachers-desktop, .teachers-phones) .image-zoom {
    transition: transform 180ms ease-out;
  }
}

.teachers-page .case-task-list {
  margin: 24px 0 0;
}

.teachers-page .case-task-list li + li {
  margin-top: 24px;
}

@media (max-width: 699.98px) {
  .teachers-criterion {
    margin-inline: 0;
    padding: 20px;
  }

  .teachers-page .project-facts > div {
    grid-column: auto;
  }

  .teachers-desktop, .teachers-mobile {
    padding-block: 40px;
  }

  .teachers-desktop .image-zoom {
    width: 100%;
  }
}
