/* ===== School Banner ===== */
.school-banner {
  position: relative;
  margin-top: var(--header-height);
  height: 480px;
  overflow: visible;
  background: linear-gradient(270deg, #b0bbf3 0%, #f2f5fe 50%, #b5bff4 100%);
}

.school-banner__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.school-banner__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-banner__inner {
  position: relative;
  z-index: 1;
  max-width: 1920px;
  margin: 0 auto;
  padding: 80px clamp(24px, 16vw, 320px) 68px;
  height: 480px;
}

.school-banner__title {
  font-size: 40px;
  font-weight: 500;
  line-height: 64px;
  letter-spacing: 0.01em;
  color: #3e444f;
}

.school-banner__desc {
  margin-top: 24px;
  font-size: 20px;
  line-height: 30px;
  color: #787a83;
}

.school-banner__desc + .school-banner__desc {
  margin-top: 16px;
}

.school-banner__actions {
  display: flex;
  gap: 18px;
  margin-top: 56px;
  flex-wrap: wrap;
}

/* ===== Materials Download Dropdown ===== */
.school-materials-dropdown {
  position: relative;
}

.school-materials-dropdown__panel {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  top: auto;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.16s ease 0.18s, transform 0.16s ease 0.18s, visibility 0s linear 0.34s;
}

.school-materials-dropdown__panel::before {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.school-materials-dropdown:hover .school-materials-dropdown__panel,
.school-materials-dropdown:focus-within .school-materials-dropdown__panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.school-materials-popover {
  width: 320px;
  padding: 16px 4px 4px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08), 0 3px 6px rgba(0, 0, 0, 0.12);
}

.school-materials-popover__title {
  padding: 0 16px;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: #50607d;
}

.school-materials-popover__files {
  margin-top: 16px;
}

.school-materials-popover__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 16px;
  border-bottom: 1px solid #f2f4f8;
  border-radius: 4px;
  transition: background 0.15s;
}

.school-materials-popover__item:last-child {
  border-bottom: none;
}

.school-materials-popover__item:hover {
  background: #f5f7fa;
}

.school-materials-popover__item-l {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 22px;
  color: #333;
}

.school-materials-popover__item-l img {
  flex-shrink: 0;
}

.school-materials-popover__link {
  flex-shrink: 0;
  font-size: 14px;
  line-height: 22px;
  color: #4a90e2;
  text-decoration: none;
}

.school-materials-popover__link:hover {
  text-decoration: underline;
}

/* ===== Trust & Products ===== */
.school-trust {
  position: relative;
  padding: 80px 0 0;
  background: linear-gradient(180deg, rgba(246, 249, 255, 0.5) 0%, #f6f9ff 100%);
  overflow: hidden;
}

.school-trust__header {
  text-align: center;
  margin-bottom: 48px;
}

.school-trust__pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}

.school-pillar {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  font-family: inherit;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.2s;
}

.school-pillar:hover {
  opacity: 0.85;
}

.school-pillar.is-active .school-pillar__title {
  color: var(--color-primary-text);
}

.school-pillar:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 4px;
  border-radius: 8px;
}

.school-pillar__icon {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.school-pillar:hover .school-pillar__icon,
.school-pillar:focus-visible .school-pillar__icon {
  transform: translateY(-12px);
}



.school-pillar__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6.9px 13.79px rgba(27, 102, 242, 0.1));
}

.school-pillar__title {
  margin-top: 8px;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.school-pillar__desc {
  margin-top: 4px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-2);
}

.school-trust__progress-wrap {
  margin-bottom: 48px;
}

.school-trust__progress-track {
  position: relative;
  width: 100%;
  height: 6px;
}

.school-trust__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 25%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-primary);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, width;
}

.school-trust__cards {
  background: #f0f3fc;
  padding: 48px 0 80px;
}

.school-trust__cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.school-trust__cards-grid.is-switching {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s;
}

.school-trust__cards-grid:not(.is-switching) {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s 0.05s, transform 0.25s 0.05s;
}

.school-feat-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  min-height: 186px;
  position: relative;
  border: 1px solid #fff;
  box-sizing: border-box;
  cursor: default;
  display: block;
  text-decoration: none;
  color: inherit;
}

.school-feat-card--linked {
  cursor: pointer;
}

.school-feat-card--linked:hover,
.school-feat-card--linked:active {
  border: 1px solid var(--color-primary);
}

.school-feat-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.school-feat-card__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.school-feat-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.school-feat-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 34px;
}

.school-feat-card__desc {
  margin-left: 32px;
  font-size: 16px;
  line-height: 32px;
  color: var(--color-text-2);
}

.school-feat-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  margin-left: 32px;
}

.school-tag {
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  height: 32px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 22px;
  background: #fff0ec;
  color: var(--color-primary-text);
}

.school-tag--primary {
  color: var(--color-primary);
}

.school-feat-card__arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  font-size: 20px;
  line-height: 24px;
}

/* ===== Plans ===== */
.school-plans {
  padding: 80px 0;
  background: #fff;
}

.school-plans__header {
  text-align: center;
  margin-bottom: 48px;
}

.school-plans__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.school-plan-card {
  border-radius: 16px;
  padding: 24px 30px 40px;
  min-height: 541px;
  display: flex;
  flex-direction: column;
}

.school-plan-card--blue { background: linear-gradient(180deg, #f9fdff 0%, #e4f1ff 100%); }
.school-plan-card--red { background: linear-gradient(180deg, #fff6f6 0%, #fff0ec 100%); }
.school-plan-card--green { background: linear-gradient(180deg, #ecfff9 0%, #f1fffe 100%); }
.school-plan-card--purple { background: linear-gradient(180deg, #f9faff 0%, #edefff 100%); }

.school-plan-card__icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}

.school-plan-card__icon svg {
  width: 100%;
  height: 100%;
}

.school-plan-card__intro {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.school-plan-card__title {
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
  color: var(--color-text-1);
}

.school-plan-card__scope {
  font-size: 16px;
  line-height: 32px;
  color: #222;
}

.school-plan-card__divider {
  margin: 16px 0 25px;
  border: none;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
}

.school-plan-card__features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}

.school-plan-card__feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 16px;
  line-height: 24px;
  color: var(--color-text-2);
}

.school-plan-card__feature--wrap {
  align-items: flex-start;
}

.school-plan-card__feature--wrap .school-plan-card__check {
  margin-top: 4px;
}

.school-plan-card__check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgb(27, 102, 242);
  position: relative;
}

.school-plan-card--red .school-plan-card__check { color: rgb(255, 105, 74); }
.school-plan-card--green .school-plan-card__check { color: rgba(36, 186, 138); }
.school-plan-card--purple .school-plan-card__check { color: rgb(137, 77, 248); }


.school-plan-card__footer {
  margin-top: auto;
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.school-plan-card__btn {
  width: 100%;
  max-width: 222px;
  height: 48px;
  padding: 0 16px;
  font-size: 18px;
  line-height: 24px;
}

.school-plan-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  height: 32px;
  border-radius: 6px;
  font-size: 14px;
  line-height: 22px;
}

.school-plan-card__badge--blue { background: rgba(27, 102, 242, 0.06); color: var(--color-blue); }
.school-plan-card__badge--red{ background: rgba(255, 105, 74, 0.1); color: var(--color-primary); }
.school-plan-card__badge--green{ background: rgba(36, 186, 138, 0.06);; color: var(--color-green); }
.school-plan-card__badge--purple { background: rgba(137, 77, 248, 0.06); color: var(--color-purple); }

/* ===== Cases ===== */
.school-cases {
  position: relative;
  padding: 80px 0;
  background: #f6f9ff;
  overflow: hidden;
}

.school-cases__blur {
  position: absolute;
  top: -84px;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  height: 287px;
  background: #fff;
  border-radius: 50%;
  filter: blur(209px);
  pointer-events: none;
}

.school-cases__header {
  position: relative;
  text-align: center;
  margin-bottom: 64px;
}

.school-cases__stats {
  margin-top: 16px;
  font-size: 20px;
  line-height: 1.45;
  color: #666;
}

.school-cases__stats .em {
  color: #ff453a;
  font-weight: 700;
  font-size: 32px;
}

.school-cases__marquee {
  overflow: hidden;
  width: 100%;
}

.school-cases__track {
  display: flex;
  width: max-content;
  animation: school-cases-marquee 50s linear infinite;
}

.school-cases__track:hover {
  animation-play-state: paused;
}

.school-cases__group {
  display: flex;
  align-items: stretch;
  gap: 24px;
  padding: 0 24px;
}

.school-case-card {
  position: relative;
  flex-shrink: 0;
  width: 400px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  min-height: 331px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.school-case-card__badge {
  position: absolute;
  top: 0;
  right: 0;
  padding: 5px 12px;
  border-radius: 0 16px 0 8px;
  background: linear-gradient(270deg, #ff938d 0%, #ff6e66 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 23px;
  white-space: nowrap;
}

.school-case-card__logo {
  height: 40px;
}

.school-case-card__logo img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.school-case-card__logo--combo {
  display: flex;
  align-items: center;
  height: 40px;
}

.school-case-card__logo-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.school-case-card__logo-text {
  height: 40px;
  width: auto;
}

.school-case-card__name {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 700;
  line-height: 36px;
}

.school-case-card__tagline {
  margin-top: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  background: linear-gradient(90deg, #ffeae4 0%, rgba(255, 234, 228, 0.2) 100%);
  font-size: 16px;
  line-height: 23px;
  color: var(--color-primary-text);
}

.school-case-card__tagline--sm {
  font-size: 14px;
  line-height: 20px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.school-case-card__metrics {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: auto;
  padding-top: 24px;
}

.school-case-card__metric-value {
  font-size: 36px;
  font-weight: 700;
  line-height: 52px;
  color: var(--color-text-1);
}

.school-case-card__metric-value span {
  font-size: 24px;
}

.school-case-card__metric-value--text {
  font-size: 30px;
  line-height: 36px;
}

.school-case-card__metric-label {
  margin-top: 4px;
  font-size: 16px;
  line-height: 23px;
  color: var(--color-text-2);
}

.school-case-card__divider {
  width: 1px;
  height: 48px;
  background: rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

@keyframes school-cases-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Partners carousel ===== */
.school-partners {
  padding: 62px 0 48px;
  background: #fff;
}

.school-partners__header {
  text-align: center;
  padding-bottom: 48px;
}

.school-partners__title {
  display: inline-block;
  padding: 0 4px;
  font-size: 32px;
  font-weight: 800;
  line-height: 44px;
  color: #445578;
  text-shadow: 0 3px 0 #f4f6ff;
  background: linear-gradient(180deg, transparent 0%, transparent 58%, #e0eefc 59%, transparent 80%, transparent 84%);
}

.school-partners__carousel {
  max-width: 1234px;
  margin: 0 auto;
}

.school-partners__viewport {
  overflow: hidden;
  min-height: 287px;
}

.school-partners__slides {
  display: flex;
  transition: transform 0.4s ease;
}

.school-partners__slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.school-partners__row {
  text-align: center;
  font-size: 0;
}

.school-partners__row + .school-partners__row {
  margin-top: 48px;
}

.school-partner {
  display: inline-block;
  vertical-align: middle;
  width: 64px;
  margin: 0 28px;
  text-align: center;
}

.school-partner__logo img {
  display: block;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  object-fit: cover;
}

.school-partner__name {
  display: block;
  padding-top: 24px;
  font-size: 14px;
  line-height: 28px;
  color: #7a7e99;
  white-space: nowrap;
}

.school-partners__indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.school-partners__indicator {
  width: 28px;
  height: 2px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: #d8d8d8;
  cursor: pointer;
  transition: background 0.3s;
}

.school-partners__indicator.is-active {
  background: #595a70;
}

/* ===== School CTA ===== */
.school-cta {
  position: relative;
  min-height: 222px;
  overflow: hidden;
  background: #eef2fd;
}

.school-cta__bg {
  position: absolute;
  inset: 0;
  opacity: 0.4;
}

.school-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.school-cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 222px;
  padding: 56px 24px 40px;
  gap: 32px;
}

.school-cta__title {
  font-size: 32px;
  font-weight: 400;
  line-height: 46px;
  letter-spacing: 1px;
  color: var(--color-text-1);
}

/* ===== Responsive ===== */
@media (max-width: 1279px) {
  .school-trust__pillars { grid-template-columns: repeat(2, 1fr); }
  .school-plans__grid { grid-template-columns: repeat(2, 1fr); }
  .school-plan-card { min-height: auto; }
}

@media (max-width: 767px) {
  .school-banner__inner { padding: 48px 24px; }
  .school-banner__title { font-size: 28px; line-height: 1.45; }
  .school-banner__actions { margin-top: 32px; }

  .school-trust,
  .school-plans,
  .school-cases { padding: 48px 0; }

  .school-trust__pillars,
  .school-trust__cards-grid,
  .school-plans__grid { grid-template-columns: 1fr; }

  .school-case-card {
    width: min(400px, calc(100vw - 48px));
  }

  .school-cta__title { font-size: 22px; line-height: 1.4; }
  .school-case-card__metrics { flex-wrap: wrap; gap: 16px; }

  .school-partners__title {
    font-size: 24px;
    line-height: 1.4;
  }

  .school-partner {
    margin: 0 16px 24px;
  }
}
