/* EGE performance landing: keeps the production Repita language and tightens the sales path. */

body[data-direction="ege"] {
  --ege-green: #8bd85b;
  --ege-green-deep: #315f27;
  --ege-blue: #63bceb;
  --ege-coral: #ff705d;
  --ege-cream: #f5f1e5;
  --ege-ink: #2c2e2a;
}

body[data-direction="oge"] {
  --ege-green: #63bceb;
  --ege-green-deep: #225d7d;
  --ege-blue: #8bd85b;
  --ege-coral: #ff705d;
  --ege-cream: #f5f1e5;
  --ege-ink: #2c2e2a;
}

.ege-hero {
  padding-top: clamp(28px, 4vw, 54px);
  padding-bottom: clamp(48px, 6vw, 78px);
}

.ege-hero .hero__grid {
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
}

.ege-hero .hero__title {
  max-width: 750px;
  font-size: clamp(46px, 4.7vw, 72px);
  line-height: .94;
  letter-spacing: -.055em;
}

.ege-hero .hero__sub {
  max-width: 670px;
  margin-top: 25px;
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.45;
}

.ege-hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 30px;
}

.ege-hero__actions .btn { max-width: 420px; }

.ege-text-link {
  color: var(--ege-ink);
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
}

.ege-hero__proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  overflow: visible;
  border: 1px solid rgba(44,46,42,.16);
  border-radius: 18px;
  background: rgba(44,46,42,.16);
}

.ege-hero__proof > li {
  min-width: 0;
  padding: 15px 16px 14px;
  background: rgba(255,255,255,.7);
}

.ege-hero__proof > li:first-child { border-radius: 17px 0 0 17px; }
.ege-hero__proof > li:last-child { border-radius: 0 17px 17px 0; }
.ege-hero__proof b { display: block; font-size: 25px; line-height: 1; letter-spacing: -.04em; }
.ege-hero__proof > li > span { display: flex; align-items: center; gap: 5px; margin-top: 7px; font-size: 12px; line-height: 1.25; color: #62655f; }

.stat-help { position: relative; display: inline-flex; flex: none; }
.stat-help summary {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1px solid #a5a8a1;
  border-radius: 50%;
  color: #555852;
  font: 700 11px/1 sans-serif;
  cursor: pointer;
  list-style: none;
}
.stat-help summary::-webkit-details-marker { display: none; }
.stat-help p {
  position: absolute;
  z-index: 20;
  left: 50%;
  bottom: calc(100% + 10px);
  width: min(310px, calc(100vw - 48px));
  margin: 0;
  padding: 13px 15px;
  border-radius: 12px;
  background: #222522;
  color: #fff;
  box-shadow: 0 14px 35px rgba(0,0,0,.2);
  font-size: 12px;
  line-height: 1.45;
  transform: translateX(-50%);
}

.ege-hero__visual {
  position: relative;
  min-height: 520px;
  isolation: isolate;
}

.ege-hero__visual::before {
  content: "";
  position: absolute;
  inset: 7% 3% 5% 13%;
  z-index: -1;
  border-radius: 48% 48% 42% 42% / 34% 36% 50% 52%;
  background: var(--ege-green);
  transform: rotate(3deg);
}

.ege-hero__teacher {
  position: absolute;
  inset: 0 9% 0 9%;
  overflow: hidden;
  border-radius: 220px 220px 34px 34px;
}

.ege-hero__teacher img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.ege-hero__teacher > span {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: grid;
  padding: 12px 15px;
  border-radius: 13px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
}
.ege-hero__teacher small { margin-top: 2px; color: #696c67; }

.ege-hero__screen {
  position: absolute;
  right: -6%;
  bottom: 65px;
  width: 55%;
  padding: 8px;
  border: 1px solid rgba(44,46,42,.18);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 22px 52px rgba(44,46,42,.24);
  transform: rotate(2deg);
}
.ege-hero__screen img { display: block; width: 100%; border-radius: 11px; }
.ege-hero__screen span { display: block; padding: 9px 6px 4px; font-size: 11px; font-weight: 700; }

.ege-hero__route {
  position: absolute;
  top: 68px;
  left: -4%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 15px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(44,46,42,.16);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.ege-hero__route i { color: var(--ege-coral); font-style: normal; }
.ege-hero__route strong { color: var(--ege-green-deep); }

body[data-direction="ege"] .specialization,
body[data-direction="oge"] .specialization {
  margin-top: clamp(70px, 9vw, 130px);
  padding: clamp(34px, 5vw, 64px);
  border-radius: 34px;
  background: #282b27;
  color: #fff;
}
body[data-direction="ege"] .specialization .h2,
body[data-direction="oge"] .specialization .h2 { max-width: 930px; color: #fff; }
body[data-direction="ege"] .specialization .subhead,
body[data-direction="oge"] .specialization .subhead { max-width: 830px; color: #d8dbd5; }
body[data-direction="ege"] .specialization__label,
body[data-direction="oge"] .specialization__label { color: var(--ege-green); }
body[data-direction="ege"] .specialization__proof,
body[data-direction="oge"] .specialization__proof { border-top-color: rgba(255,255,255,.2); }
body[data-direction="ege"] .specialization__proof li,
body[data-direction="oge"] .specialization__proof li { border-bottom-color: rgba(255,255,255,.16); }
body[data-direction="ege"] .specialization__proof span,
body[data-direction="oge"] .specialization__proof span { color: #c7cac4; }

.ege-comparison { padding-top: clamp(72px, 9vw, 130px); }
.ege-comparison .section__head { max-width: 990px; }
.ege-comparison__hint { display: none; }
.ege-comparison__scroll {
  margin-top: 36px;
  overflow-x: auto;
  border: 1px solid rgba(44,46,42,.16);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 18px 54px rgba(44,46,42,.07);
}
.ege-comparison__scroll:focus-visible { outline: 3px solid var(--ege-blue); outline-offset: 4px; }
.ege-comparison__table {
  width: 100%;
  min-width: 900px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--ege-ink);
}
.ege-comparison__table th,
.ege-comparison__table td {
  width: 23%;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(44,46,42,.12);
  border-right: 1px solid rgba(44,46,42,.1);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
  line-height: 1.45;
}
.ege-comparison__table th:first-child { width: 31%; }
.ege-comparison__table tr > *:last-child { border-right: 0; }
.ege-comparison__table tbody tr:last-child > * { border-bottom: 0; }
.ege-comparison__table thead th {
  padding-top: 23px;
  padding-bottom: 23px;
  background: #f8f6ef;
  font-size: 15px;
}
.ege-comparison__table tbody th { font-size: 15px; font-weight: 750; }
.ege-comparison__table td { color: #62655f; }
.ege-comparison__table .ege-comparison__repita { background: #edf8e6; }
.ege-comparison__table thead .ege-comparison__repita { color: var(--ege-green-deep); font-size: 18px; }
.ege-comparison__repita b,
.ege-comparison__repita span { display: block; }
.ege-comparison__repita b { color: var(--ege-ink); }
.ege-comparison__repita span { margin-top: 4px; color: #587050; font-size: 12px; }
.ege-comparison__note { margin: 13px 0 0; color: #73766f; font-size: 12px; }
.ege-comparison-mobile { display: none; }

.ege-formats { padding-top: clamp(72px, 9vw, 130px); }
.ege-format-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; }
.ege-format-card { position: relative; padding: clamp(27px, 4vw, 46px); border: 1px solid rgba(44,46,42,.16); border-radius: 28px; background: #fff; }
.ege-format-card--primary { background: #e9f7df; }
.ege-format-card > span { display: inline-grid; place-items: center; min-width: 54px; height: 36px; padding: 0 12px; border-radius: 999px; background: var(--ege-ink); color: #fff; font-size: 13px; font-weight: 800; }
.ege-format-card h3 { margin: 27px 0 11px; font-size: clamp(29px, 3vw, 43px); letter-spacing: -.045em; }
.ege-format-card p { max-width: 520px; color: #5e615c; line-height: 1.55; }
.ege-format-card ul { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.ege-format-card li::before { content: "✓"; margin-right: 9px; color: var(--ege-green-deep); font-weight: 900; }
.ege-format-link { padding: 0 0 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; color: var(--ege-ink); font: inherit; font-weight: 750; cursor: pointer; }

.teacher-selection-proof {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 28px 0 34px;
  padding: 20px 24px;
  border-radius: 20px;
  background: #e9f7df;
}
.teacher-selection-proof > strong { flex: none; font-size: clamp(32px, 4vw, 54px); letter-spacing: -.06em; }
.teacher-selection-proof div { display: grid; gap: 4px; }
.teacher-selection-proof span { color: #5f625d; }

.ege-parent {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(34px, 6vw, 84px);
  align-items: center;
}
.ege-parent__copy ul { display: grid; gap: 1px; margin: 30px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(44,46,42,.16); }
.ege-parent__copy li { display: grid; gap: 5px; padding: 17px 0; border-bottom: 1px solid rgba(44,46,42,.16); }
.ege-parent__copy li span { color: #666964; font-size: 14px; }
.ege-parent__report { display: block; padding: 10px; border-radius: 24px; background: #fff; box-shadow: 0 20px 60px rgba(44,46,42,.13); color: var(--ege-ink); text-decoration: none; }
.ege-parent__report img { display: block; width: 100%; border-radius: 16px; }
.ege-parent__report span { display: block; padding: 12px 8px 5px; font-weight: 700; }

.ege-program-journey .section__head { max-width: 950px; }

.route-chart {
  margin-top: 38px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(44,46,42,.16);
  border-radius: 28px 28px 0 0;
  background: #fff;
}

.route-chart__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  font-size: 13px;
  font-weight: 750;
}

.route-chart__head > span { text-transform: uppercase; letter-spacing: .09em; }
.route-chart__head output { padding: 8px 12px; border-radius: 999px; background: #eaf7e2; color: var(--ege-green-deep); }

.route-chart__plot {
  position: relative;
  height: clamp(128px, 15vw, 190px);
  margin-top: 14px;
}

.route-chart__plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route-chart__shadow, .route-chart__line { fill: none; stroke-linecap: round; }
.route-chart__shadow { stroke: #e7e5dc; stroke-width: 18; }
.route-chart__line { stroke: url(#route-fill); stroke-width: 8; }

.route-chart__plot input[type="range"] {
  --route-progress: 0%;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: .001;
  cursor: ew-resize;
}

.route-chart__markers {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: start;
  margin-top: -8px;
}

.route-chart__markers button {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-width: 0;
  padding: 0 3px;
  border: 0;
  background: transparent;
  color: #72756f;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.route-chart__markers i {
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #b8bbb4;
  box-shadow: 0 0 0 1px #a7aaa3;
}

.route-chart__markers button[aria-pressed="true"] { color: var(--ege-ink); font-weight: 800; }
.route-chart__markers button[aria-pressed="true"] i { width: 18px; height: 18px; margin-top: -2px; background: var(--ege-coral); box-shadow: 0 0 0 2px var(--ege-coral); }

.route-stage-wrap {
  border: 1px solid rgba(44,46,42,.16);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  background: #282b27;
  color: #fff;
}

.route-stage {
  display: grid;
  grid-template-columns: 120px minmax(260px, .8fr) minmax(360px, 1.2fr);
  gap: clamp(24px, 4vw, 60px);
  min-height: 330px;
  padding: clamp(28px, 5vw, 58px);
}

.route-stage[hidden] { display: none; }
.route-stage__meta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.route-stage__meta span { color: #afb3ac; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.route-stage__meta b { display: grid; place-items: center; min-width: 74px; min-height: 56px; padding: 9px 13px; border-radius: 14px; background: var(--ege-green); color: var(--ege-ink); font-size: 18px; text-align: center; }
.route-stage__copy h3 { margin: 0; max-width: 520px; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.02; letter-spacing: -.045em; }
.route-stage__copy p { margin: 20px 0; color: #d0d3cd; font-size: 16px; line-height: 1.55; }
.route-stage__copy strong { display: block; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.18); color: var(--ege-green); line-height: 1.45; }
.route-stage__topics > p { margin: 0 0 14px; color: #afb3ac; font-size: 12px; font-weight: 750; text-transform: uppercase; letter-spacing: .09em; }
.route-stage__topics ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.route-stage__topics li { padding: 9px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; background: rgba(255,255,255,.07); font-size: 12px; line-height: 1.25; }
.route-disclaimer { max-width: 850px; margin: 14px 0 0; color: #6b6e68; font-size: 12px; line-height: 1.5; }

body[data-direction="ege"] #tariffs .section__head,
body[data-direction="oge"] #tariffs .section__head { max-width: 820px; }
body[data-direction="ege"] #reviews,
body[data-direction="oge"] #reviews { padding-top: clamp(72px, 8vw, 120px); }

@media (max-width: 1099px) {
  .ege-hero__visual { min-height: 510px; }
}

@media (max-width: 799px) {
  .ege-hero { padding-top: 28px; padding-bottom: 18px; }
  .ege-hero .hero__grid { display: grid; }
  .ege-hero .hero__title { font-size: clamp(42px, 13vw, 60px); }
  .ege-hero__actions { display: grid; gap: 16px; }
  .ege-hero__actions .btn { width: 100%; max-width: none; }
  .ege-text-link { justify-self: start; }
  .ege-hero__proof { grid-template-columns: 1fr; border-radius: 18px; }
  .ege-hero__proof > li, .ege-hero__proof > li:first-child, .ege-hero__proof > li:last-child { display: grid; grid-template-columns: 82px 1fr; align-items: center; border-radius: 0; }
  .ege-hero__proof > li:first-child { border-radius: 17px 17px 0 0; }
  .ege-hero__proof > li:last-child { border-radius: 0 0 17px 17px; }
  .ege-hero__proof > li > span { margin-top: 0; }
  .stat-help p { position: fixed; z-index: 1000; left: 24px; right: 24px; bottom: 24px; width: auto; transform: none; }
  .ege-hero__visual { min-height: 450px; margin-top: 8px; }
  .ege-hero__teacher { inset: 0 4% 0 4%; }
  .ege-hero__teacher > span { left: 14px; bottom: 14px; z-index: 3; max-width: 42%; padding: 10px 11px; font-size: 13px; }
  .ege-hero__teacher small { font-size: 10px; line-height: 1.25; }
  .ege-hero__screen { right: 1%; bottom: 14px; z-index: 4; width: 51%; }
  .ege-hero__screen span { padding: 7px 4px 2px; font-size: 9px; line-height: 1.25; }
  .ege-hero__route { top: 28px; left: 0; }
  body[data-direction="ege"] .specialization,
  body[data-direction="oge"] .specialization { margin-top: 24px; border-radius: 26px; }
  .ege-comparison__scroll { margin-top: 25px; }
  .ege-comparison__table { min-width: 780px; }
  .ege-comparison--enhanced .ege-comparison__hint,
  .ege-comparison--enhanced .ege-comparison__scroll { display: none; }
  .ege-comparison--enhanced .ege-comparison-mobile { display: block; margin-top: 25px; }
  .ege-comparison-mobile__track {
    display: flex;
    gap: 12px;
    margin-right: calc(var(--gutter) * -1);
    padding-right: var(--gutter);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ege-comparison-mobile__track::-webkit-scrollbar { display: none; }
  .ege-comparison-mobile__card {
    flex: 0 0 calc(100% - 28px);
    overflow: hidden;
    border: 1px solid rgba(44,46,42,.15);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(44,46,42,.07);
    scroll-snap-align: start;
  }
  .ege-comparison-mobile__card > h3 {
    margin: 0;
    padding: 18px 19px;
    background: #292c28;
    color: #fff;
    font-size: 21px;
    line-height: 1.1;
  }
  .ege-comparison-mobile__card--repita > h3 { background: var(--ege-green); color: var(--ege-ink); }
  .ege-comparison-mobile__list { display: grid; }
  .ege-comparison-mobile__item {
    display: grid;
    grid-template-columns: minmax(92px, .8fr) minmax(0, 1.2fr);
    gap: 14px;
    align-items: start;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(44,46,42,.1);
  }
  .ege-comparison-mobile__item:last-child { border-bottom: 0; }
  .ege-comparison-mobile__card--repita .ege-comparison-mobile__item { background: #f0f9ea; }
  .ege-comparison-mobile__label { color: #72756f; font-size: 10px; font-weight: 800; line-height: 1.3; letter-spacing: .04em; text-transform: uppercase; }
  .ege-comparison-mobile__value { color: #555954; font-size: 13px; line-height: 1.35; }
  .ege-comparison-mobile__value b { display: block; color: var(--ege-ink); font-size: 13px; }
  .ege-comparison-mobile__value span { display: block; margin-top: 3px; color: #667060; font-size: 11px; }
  .ege-format-grid, .ege-parent { grid-template-columns: 1fr; }
  .teacher-selection-proof { align-items: flex-start; }
  .teacher-selection-proof > strong { font-size: 38px; }
  .route-chart { padding: 18px 14px 20px; overflow: hidden; }
  .route-chart__head { align-items: flex-start; flex-direction: column; }
  .route-chart__plot { height: 110px; }
  .route-chart__markers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
  .route-chart__markers button { grid-template-columns: auto 1fr; align-items: center; justify-items: start; gap: 7px; min-width: 76px; min-height: 44px; flex: 1 1 calc(25% - 8px); padding: 8px 10px; border: 1px solid rgba(44,46,42,.13); border-radius: 13px; background: #f8f6ef; font-size: 11px; text-align: left; }
  .route-chart__markers button span { max-width: none; white-space: nowrap; }
  .route-chart__markers i { width: 11px; height: 11px; border-width: 2px; }
  .route-chart__markers button[aria-pressed="true"] { border-color: var(--ege-coral); background: #fff0ec; }
  .route-chart__markers button[aria-pressed="true"] i { width: 14px; height: 14px; margin-top: 0; }
  .route-stage { grid-template-columns: 1fr; min-height: 0; }
  .route-stage__meta { flex-direction: row; align-items: center; }
  .route-stage__meta b { min-width: 64px; min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .ege-hero__screen, .ege-hero__visual::before { transform: none; }
}
