@import "reset.css";
@import "mobile-menu.css";
@import "style.css";

.info-page {
  --info-blue: var(--color-blue, #0036A7);
  --info-blue-dark: var(--color-blue-dark, #002b84);
  --info-red: var(--color-red, #D62718);
  --info-green: #079707;
  --info-text: var(--color-dark, #101828);
  --info-muted: var(--color-muted, #475467);
  --info-border: var(--color-border, #E4EAF4);
  --info-soft: var(--color-bg, #F4F7FF);
  min-height: 100%;
  background: var(--info-soft);
  color: var(--info-text);
}

.info-hero {
  padding: var(--hero-offset-desktop, 80px) 0 0;
}

.about-page .info-hero--cover {
  padding: var(--hero-offset-desktop, 80px) 0 0;
}

.teachers-page .info-hero--cover {
  padding: var(--hero-offset-desktop, 80px) 0 0;
}

.info-hero__grid {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 560px);
  align-items: center;
  gap: 46px;
}

.about-page .info-hero__grid--cover {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 76px 70px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 34%,
      rgba(255, 255, 255, 0.42) 58%,
      rgba(255, 255, 255, 0.06) 100%),
    url("/img/about-hero-school.png") center right / cover no-repeat;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
}

.teachers-page .info-hero__grid--cover {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  padding: 76px 70px;
  overflow: hidden;
  border-radius: 34px;
  background:
    linear-gradient(90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.88) 34%,
      rgba(255, 255, 255, 0.42) 58%,
      rgba(255, 255, 255, 0.06) 100%),
    url("/img/info-pages/teachers-hero.png") center right / cover no-repeat;
  box-shadow: 0 28px 80px rgba(16, 24, 40, 0.12);
}

.about-page .info-hero__content {
  max-width: 720px;
}

.teachers-page .info-hero__content {
  max-width: 720px;
}

.about-page .info-hero__title {
  max-width: 680px;
}

.teachers-page .info-hero__title {
  max-width: 680px;
}

.about-page .info-hero__text {
  max-width: 600px;
}

.teachers-page .info-hero__text {
  max-width: 600px;
}

.info-hero__content {
  min-width: 0;
}

.info-hero__title {
  max-width: 780px;
  margin: 0 0 24px;
  color: var(--info-text);
  font-size: clamp(42px, 4.5vw, 72px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
  text-wrap: balance;
}

.info-hero__accent {
  color: var(--info-red);
}

.info-hero__text {
  max-width: 690px;
  margin: 0;
  color: var(--color-body, #344054);
  font-size: 20px;
  line-height: 1.65;
  text-wrap: pretty;
}

.info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}

.info-btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.info-btn--primary {
  background: var(--info-blue);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 57, 166, 0.24);
}

.info-btn--primary:hover,
.info-btn--primary:focus-visible {
  background: var(--info-blue-dark);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 57, 166, 0.3);
  text-decoration: none;
}

.info-btn--secondary {
  border-color: #cdd8f4;
  background: #ffffff;
  color: var(--info-blue);
}

.info-btn--secondary:hover,
.info-btn--secondary:focus-visible {
  border-color: var(--info-blue);
  background: #ffffff;
  color: var(--info-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 57, 166, 0.1);
  text-decoration: none;
}

.info-btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(0, 57, 166, 0.18);
}

.info-hero__media {
  position: relative;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: #edf4ff;
  box-shadow: 0 26px 70px rgba(0, 57, 166, 0.14);
}

.info-hero__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.info-hero__card {
  position: absolute;
  left: 22px;
  right: auto;
  top: 22px;
  bottom: auto;
  width: min(420px, calc(100% - 44px));
  padding: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 100%, rgba(213, 43, 30, 0.09) 0, rgba(213, 43, 30, 0) 46%),
    rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.12);
}

.info-hero__card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--info-text);
  font-size: 18px;
  font-weight: 900;
}

.about-page .info-hero__card--cover {
  left: auto;
  right: 30px;
  top: auto;
  bottom: 48px;
  width: 330px;
}

.teachers-page .info-hero__card--cover {
  left: auto;
  right: 30px;
  top: auto;
  bottom: 48px;
  width: 330px;
}

.info-check-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.info-check-list li {
  position: relative;
  padding-left: 28px;
  color: #344054;
  font-size: 14px;
  line-height: 1.45;
}

.info-check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--info-green);
}

.info-check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: calc(0.18em + 4px);
  width: 5px;
  height: 8px;
  border-right: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(45deg);
}

.info-section {
  padding: 64px 0 0;
}

.info-section__head {
  max-width: 800px;
  margin-bottom: 34px;
}

.info-section__title {
  margin: 0;
  color: var(--info-text);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.info-section__text {
  margin: 16px 0 0;
  color: var(--info-muted);
  font-size: 16px;
  line-height: 1.65;
  text-wrap: pretty;
}

.info-split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: start;
}

.info-panel,
.info-card,
.info-step,
.info-form-panel {
  border: 1.5px solid var(--info-border);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 34px rgba(0, 57, 166, 0.07);
  transition: var(--motion-card, transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease);
}

.about-page .info-panel:hover,
.about-page .info-panel:focus-within,
.about-page .info-card:hover,
.about-page .info-card:focus-within,
.about-page .info-step:hover,
.about-page .info-step:focus-within,
.teachers-page .info-panel:hover,
.teachers-page .info-panel:focus-within,
.teachers-page .info-card:hover,
.teachers-page .info-card:focus-within,
.teachers-page .info-step:hover,
.teachers-page .info-step:focus-within {
  border-color: rgba(0, 57, 166, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover, 0 22px 48px rgba(0, 54, 167, 0.13));
}

.info-panel {
  padding: 28px;
}

.info-panel--wide {
  max-width: 980px;
}

.info-panel .info-section__title {
  margin-bottom: 16px;
  font-size: clamp(26px, 2.8vw, 38px);
}

.info-panel p {
  margin: 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.7;
  text-wrap: pretty;
}

.info-panel p + p {
  margin-top: 16px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-help-grid {
  align-items: stretch;
}

.info-grid--two,
.info-faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.info-help-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
}

.info-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--info-blue) 0%, #5E6AD2 56%, var(--info-red) 100%);
  opacity: 0.85;
}

.info-card__header {
  min-height: 52px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
}

.info-card__icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #edf4ff;
  color: var(--info-blue);
  font-size: 28px;
}

.info-card__header .info-card__icon {
  flex-shrink: 0;
  margin-bottom: 0;
}

.info-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
}

.info-card h3,
.info-step h3 {
  margin: 0 0 10px;
  color: var(--info-text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

.info-card__header h3 {
  min-width: 0;
  margin: 0;
}

.info-help-card > p {
  width: 100%;
}

.info-card p,
.info-step p {
  margin: 0;
  color: var(--info-muted);
  font-size: 14px;
  line-height: 1.58;
  text-wrap: pretty;
}

.info-steps {
  display: grid;
  gap: 14px;
  counter-reset: step;
}

.info-step {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  padding: 22px;
}

.info-step::before {
  counter-increment: step;
  content: counter(step);
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--info-blue);
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.info-lessons-section {
  margin-top: 64px;
  padding: 72px 0;
  background:
    radial-gradient(circle at 92% 0, rgba(213, 43, 30, 0.12) 0, rgba(213, 43, 30, 0) 34%),
    linear-gradient(135deg, #061A47 0%, #08246F 58%, #061A47 100%);
}

.info-lessons-section .info-section__title {
  color: #ffffff;
}

.info-lessons-section .info-section__text {
  color: rgba(219, 229, 247, 0.82);
}

.info-lessons-section .info-step {
  border-color: rgba(219, 229, 247, 0.16);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0) 36%),
    rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.info-lessons-section .info-step:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.24);
}

.info-lessons-section .info-step::before {
  background: #ffffff;
  color: var(--info-blue);
}

.info-lessons-section .info-step h3 {
  color: #ffffff;
}

.info-lessons-section .info-step p {
  color: rgba(219, 229, 247, 0.78);
}

.info-band {
  overflow: hidden;
  padding: 44px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(213, 43, 30, 0.11) 0, rgba(213, 43, 30, 0) 34%),
    linear-gradient(135deg, #061A47 0%, #08246F 58%, #061A47 100%);
  color: #ffffff;
}

.info-band h2 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
  text-wrap: balance;
}

.info-band p {
  max-width: 760px;
  margin: 16px 0 0;
  color: rgba(219, 229, 247, 0.82);
  font-size: 16px;
  line-height: 1.65;
}

.info-band .info-actions {
  margin-top: 28px;
}

.info-band--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.info-band__content {
  min-width: 0;
}

.info-band--cta .info-actions {
  flex-shrink: 0;
  margin-top: 0;
}

.info-band--cta .info-btn {
  white-space: nowrap;
}

.info-band .info-btn--primary {
  background: #ffffff;
  color: var(--info-blue);
  box-shadow: none;
}

.info-band .info-btn--primary:hover,
.info-band .info-btn--primary:focus-visible {
  background: #f5f8ff;
  color: var(--info-blue-dark);
  box-shadow: none;
}

.teacher-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.teacher-form__field {
  position: relative;
  display: grid;
  gap: 5px;
  padding-bottom: 16px;
}

.teacher-form__field--wide {
  grid-column: 1 / -1;
}

.teacher-form label,
.teacher-form__label {
  color: var(--info-text);
  font-size: 13px;
  font-weight: 800;
}

.teacher-form input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]) {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--info-border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--info-text);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.teacher-form input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]):focus {
  border-color: var(--info-blue);
  box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.09);
}

.teacher-form__field.is-invalid input:not([type="checkbox"]):not([type="hidden"]):not([type="submit"]) {
  border-color: #d92d20;
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.1);
}

.teacher-form .error {
  display: block;
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  color: #b42318;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.teacher-form ul.error {
  grid-column: 1 / -1;
  padding: 12px 14px 12px 30px;
  border: 1px solid rgba(217, 45, 32, 0.25);
  border-radius: 10px;
  background: #fff4f2;
}

.teacher-combobox {
  position: relative;
}

.teacher-combobox__list {
  position: absolute;
  z-index: 10;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: none;
  max-height: 244px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--info-border);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(16, 24, 40, 0.14);
}

.teacher-combobox__list.is-open {
  display: grid;
  gap: 2px;
}

.teacher-combobox__item {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--info-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}

.teacher-combobox__item:hover,
.teacher-combobox__item.is-active {
  background: rgba(0, 57, 166, 0.08);
  color: var(--info-blue);
}

.teacher-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.teacher-subject-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 26px;
  gap: 6px;
  padding: 4px 6px 4px 9px;
  border: 1px solid rgba(0, 57, 166, 0.22);
  border-radius: 999px;
  background: rgba(0, 57, 166, 0.08);
  color: var(--info-blue);
  font-size: 12px;
  font-weight: 800;
}

.teacher-subject-tag__remove {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 0;
  border-radius: 50%;
  background: var(--info-blue);
  color: #ffffff;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.teacher-subject-tag__remove:hover,
.teacher-subject-tag__remove:focus-visible {
  background: #d92d20;
  outline: none;
}

.teacher-choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.teacher-choice {
  min-height: 40px;
  padding: 9px 13px;
  border: 1.5px solid var(--info-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--info-text);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.teacher-choice:hover,
.teacher-choice:focus-visible {
  border-color: var(--info-blue);
  box-shadow: 0 0 0 4px rgba(0, 57, 166, 0.08);
  outline: none;
}

.teacher-choice.is-selected {
  border-color: var(--info-blue);
  background: var(--info-blue);
  color: #ffffff;
}

.teacher-form__field.is-invalid .teacher-choice {
  border-color: rgba(217, 45, 32, 0.55);
}

.teacher-form .teacher-form__note,
.info-panel .teacher-form__note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--info-muted);
  font-size: 13px;
  line-height: 1.35;
}

.teacher-form__note a {
  display: inline;
}

.teacher-form .info-btn {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 64px;
  border-radius: 18px;
  background: #d4145a;
  font-size: 18px;
  box-shadow: none;
}

.teacher-form .info-btn:hover,
.teacher-form .info-btn:focus-visible {
  background: #b90f4c;
  box-shadow: none;
}

.info-final {
  padding-bottom: 86px;
}

@media screen and (max-width: 1040px) {
  .info-hero__grid,
  .info-split {
    grid-template-columns: 1fr;
  }

  .info-hero__grid {
    min-height: auto;
  }

  .about-page .info-hero__grid--cover,
  .teachers-page .info-hero__grid--cover {
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    padding: 54px 42px;
  }

  .about-page .info-hero__grid--cover {
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 42%,
        rgba(255, 255, 255, 0.52) 72%,
        rgba(255, 255, 255, 0.12) 100%),
      url("/img/about-hero-school.png") center right / cover no-repeat;
  }

  .teachers-page .info-hero__grid--cover {
    background:
      linear-gradient(90deg,
        rgba(255, 255, 255, 0.96) 0%,
        rgba(255, 255, 255, 0.9) 42%,
        rgba(255, 255, 255, 0.52) 72%,
        rgba(255, 255, 255, 0.12) 100%),
      url("/img/info-pages/teachers-hero.png") center right / cover no-repeat;
  }

  .about-page .info-hero__card--cover,
  .teachers-page .info-hero__card--cover {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(330px, calc(100% - 48px));
  }

  .info-hero__media {
    max-width: 720px;
  }

  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-band--cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media screen and (max-width: 680px) {
  .info-hero {
    padding: var(--hero-offset-mobile, 76px) 0 var(--hero-offset-bottom-mobile, 32px);
  }

  .about-page .info-hero--cover,
  .teachers-page .info-hero--cover {
    padding: var(--hero-offset-mobile, 76px) 0 var(--hero-offset-bottom-mobile, 32px);
  }

  .about-page .info-hero__grid--cover,
  .teachers-page .info-hero__grid--cover {
    min-height: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px 18px 18px;
    border-radius: 24px;
  }

  .about-page .info-hero__grid--cover {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.94) 48%,
        rgba(255, 255, 255, 0.74) 100%),
      url("/img/about-hero-school.png") 58% 0 / cover no-repeat;
  }

  .teachers-page .info-hero__grid--cover {
    background:
      linear-gradient(180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.94) 48%,
        rgba(255, 255, 255, 0.74) 100%),
      url("/img/info-pages/teachers-hero.png") 58% 0 / cover no-repeat;
  }

  .info-hero__title {
    font-size: 36px;
  }

  .teachers-page .info-hero__title {
    font-size: 32px;
    overflow-wrap: anywhere;
  }

  .teachers-page .info-hero__accent {
    display: block;
  }

  .info-hero__text {
    font-size: 15px;
  }

  .info-actions,
  .info-btn {
    width: 100%;
  }

  .info-hero__card {
    position: static;
    margin: 0;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
  }

  .about-page .info-hero__card--cover,
  .teachers-page .info-hero__card--cover {
    position: static;
    width: 100%;
    border: 1.5px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
  }

  .info-section {
    padding-top: 44px;
  }

  .info-grid,
  .teacher-form {
    grid-template-columns: 1fr;
  }

  .info-panel,
  .info-card,
  .info-step,
  .info-band {
    padding: 20px;
  }

  .info-help-card {
    gap: 10px;
  }

  .info-card__header {
    min-height: 52px;
    gap: 12px;
  }

  .info-band--cta {
    gap: 24px;
  }

  .info-band--cta .info-actions,
  .info-band--cta .info-btn {
    width: 100%;
  }

  .info-step {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .info-step::before {
    width: 44px;
    height: 44px;
  }

  .info-final {
    padding-bottom: 58px;
  }
}
