/* ═══════════════════════════════════════════════════════════════
   أحمد الشعراوي — صانع الأبطال
   واجهة تعليمية حيوية · عربي · رياضيات · علوم · دراسات · المرحلة الابتدائية
   ═══════════════════════════════════════════════════════════════ */

@keyframes mpFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes mpPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0.40); }
  50% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); }
}
@keyframes mpFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes mpShine {
  from { background-position: 120% 0; }
  to { background-position: -120% 0; }
}

.lg-ambient {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.lg-ambient__orbit {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(26, 155, 142, 0.12);
}
.lg-ambient__orbit--a {
  width: 420px; height: 420px; top: -120px; inset-inline-end: -80px;
  background: radial-gradient(circle, rgba(245, 165, 36, 0.10), transparent 68%);
}
.lg-ambient__orbit--b {
  width: 320px; height: 320px; bottom: 10%; inset-inline-start: -100px;
  background: radial-gradient(circle, rgba(26, 155, 142, 0.10), transparent 70%);
}
.lg-ambient__wave {
  position: absolute; inset: 0;
  background-image: var(--math-motif);
  background-size: 80px 80px;
  opacity: 0.45;
}

/* Buttons */
.lg-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 14px; border: 1.5px solid transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 800;
  cursor: pointer; text-decoration: none;
  transition: transform .2s var(--ease), filter .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.lg-btn--lg { padding: 15px 30px; font-size: 16px; }
.lg-btn--block { width: 100%; }
.lg-btn--solid {
  background: var(--btn-solid-bg); color: var(--btn-solid-text);
  box-shadow: 0 8px 20px rgba(14, 92, 104, 0.22);
}
.lg-btn--solid:hover { filter: brightness(1.08); transform: translateY(-2px); }
.lg-btn--gold {
  background: var(--btn-gold-bg); color: #0A3A45;
  box-shadow: var(--shadow-gold);
}
.lg-btn--gold:hover { filter: brightness(1.05); transform: translateY(-2px); }
html[data-theme="dark"] .lg-btn--gold,
html[data-theme="dark"] a.lg-btn--gold {
  color: #0A3A45 !important;
}
.lg-btn--outline {
  background: rgba(255,255,255,.12); color: #fff;
  border-color: rgba(255,255,255,.45); backdrop-filter: blur(6px);
}
.lg-btn--outline:hover { background: rgba(255,255,255,.22); border-color: #fff; }
.lg-btn--ghost { background: transparent; color: var(--text-strong); }
.lg-btn--ghost:hover { background: var(--surface-soft); }
.lg-hdr .lg-btn--outline {
  background: transparent; color: var(--text-strong); border-color: var(--border-strong);
}
.lg-hdr .lg-btn--outline:hover {
  border-color: var(--insight); color: var(--insight-strong); background: var(--insight-soft);
}

/* Header */
.lg-hdr {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--hdr-bg) 90%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hdr-border);
}
.lg-hdr__top {
  background: linear-gradient(90deg, #0A3A45, #0E5C68 45%, #1A9B8E 100%);
  color: #fff;
}
.lg-hdr__topInner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 32px; padding: 6px 0;
}
.lg-hdr__tagAr {
  font-size: 13px; font-weight: 700; color: #fff;
}
.lg-hdr__tagSlogan {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border-radius: 999px;
  background: rgba(245, 165, 36, 0.22);
  border: 1px solid rgba(245, 165, 36, 0.45);
  font-size: 12px; font-weight: 800; color: #FFE8B8;
}
.lg-hdr__bar {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 8px 0;
}
.lg-brand {
  display: inline-flex; align-items: center; gap: 12px;
  text-decoration: none; color: inherit; min-width: 0;
}
.lg-brand__mark {
  width: 52px; height: 52px; flex: none;
  display: grid; place-items: center;
  border-radius: 16px;
  background: linear-gradient(145deg, var(--insight-soft), var(--gold-soft));
  border: 1.5px solid var(--border);
}
.lg-brand__mark .lg-brand__logo {
  width: 40px; height: 40px; object-fit: contain;
}
.lg-brand__logo { width: 100%; height: 100%; object-fit: contain; }
.lg-brand__logoFallback {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--insight);
}
.lg-brand__text { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.lg-brand__name {
  font-family: var(--font-display); font-size: 20px; font-weight: 800;
  color: var(--text-strong); line-height: 1.2;
}
.lg-brand__feet { display: none; }
.lg-brand__sub { font-size: 12px; font-weight: 700; color: var(--insight); }
.lg-hdr__nav { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.lg-hdr__theme { display: inline-flex; }
.lg-hdr__mobileTheme { display: none; }
.lg-hdr__subjects {
  display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-inline-end: 6px;
}
.lg-hdr__subjects span {
  padding: 4px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 800;
  background: var(--insight-soft); color: var(--insight-strong);
}
.lg-hdr__subjects span:nth-child(2) {
  background: var(--gold-soft); color: var(--gold-700);
}
.lg-hdr__subjects span:nth-child(3) {
  background: rgba(26, 138, 92, 0.12); color: #1A8A5C;
}
.lg-hdr__subjects span:nth-child(4) {
  background: rgba(30, 90, 140, 0.12); color: #1E5A8C;
}
html[data-theme="dark"] .lg-hdr__subjects span {
  background: rgba(91, 205, 188, 0.18) !important;
  color: #E8FAF5 !important;
  border: 1px solid rgba(91, 205, 188, 0.35);
}
html[data-theme="dark"] .lg-hdr__subjects span:nth-child(2) {
  background: rgba(245, 165, 36, 0.20) !important;
  color: #FFE8B8 !important;
  border-color: rgba(245, 165, 36, 0.40);
}
html[data-theme="dark"] .lg-hdr__subjects span:nth-child(3) {
  background: rgba(43, 184, 122, 0.18) !important;
  color: #B8F0D4 !important;
  border-color: rgba(43, 184, 122, 0.40);
}
html[data-theme="dark"] .lg-hdr__subjects span:nth-child(4) {
  background: rgba(90, 150, 210, 0.18) !important;
  color: #C8E0F8 !important;
  border-color: rgba(90, 150, 210, 0.40);
}
.lg-hdr__companions { display: none; }
.lg-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--card-bg-strong); cursor: pointer;
}
.lg-burger span { display: block; height: 2px; background: var(--text-strong); border-radius: 2px; }
.lg-drawer {
  display: none; max-height: 0; overflow: hidden;
  background: var(--card-bg); border-top: 1px solid var(--border);
  transition: max-height .3s var(--ease);
}
.lg-drawer.is-open { max-height: 280px; }
.lg-drawer__box { display: grid; gap: 10px; padding: 16px 20px 20px; }

/* Hero — full-bleed academy stage */
.lg-hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex; align-items: stretch;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}
.lg-hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(115deg, rgba(4, 28, 36, 0.92) 0%, rgba(10, 58, 69, 0.88) 40%, rgba(14, 92, 104, 0.72) 70%, rgba(26, 155, 142, 0.55) 100%),
    var(--grad-hero);
}
.lg-hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--hero-motif), var(--math-motif);
  background-size: 72px 72px, 80px 80px;
  background-position: 0 0, 40px 40px;
  opacity: 0.55;
}
.lg-hero__bg::after {
  content: "";
  position: absolute; inset-inline-end: -10%; top: 10%;
  width: min(52vw, 560px); height: min(52vw, 560px);
  border-radius: 40% 60% 55% 45%;
  background:
    radial-gradient(circle at 35% 35%, rgba(245, 165, 36, 0.35), transparent 55%),
    radial-gradient(circle at 70% 60%, rgba(255,255,255,0.10), transparent 50%);
  filter: blur(2px);
  animation: mpFloat 7s ease-in-out infinite;
}
.lg-hero__orbits { display: none; }
.lg-hero__stage {
  position: relative; z-index: 1;
  width: 100%; max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 0.85fr 1.25fr; align-items: center;
  gap: 28px; padding: 48px 20px 56px;
  animation: mpFadeUp .7s var(--ease) both;
}
.lg-hero__copy {
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  color: #fff;
}
.lg-hero__slogan {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 800;
  color: #F5A524;
  letter-spacing: 0.02em;
}
.lg-hero__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 6.2vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  text-shadow: 0 8px 28px rgba(0,0,0,.18);
}
.lg-hero__teacher {
  margin: 0;
  font-size: 17px; font-weight: 700;
  color: rgba(255,255,255,.88);
}
.lg-hero__desc {
  margin: 0; max-width: 460px;
  font-size: 16px; line-height: 1.85;
  color: rgba(255,255,255,.78);
}
.lg-hero__skills { display: none; }
.lg-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.lg-hero__visual {
  position: relative;
  min-height: 0;
  align-self: center;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 28, 36, 0.28);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.lg-hero__visualImg {
  position: relative;
  inset: auto;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(860px, 90vh);
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
}
.lg-hero__visualFallback {
  position: relative;
  width: 100%;
  min-height: 280px;
  display: grid; place-content: center; gap: 10px; text-align: center;
  background:
    linear-gradient(160deg, rgba(255,255,255,.08), rgba(245,165,36,.12)),
    repeating-linear-gradient(-18deg, transparent, transparent 18px, rgba(255,255,255,.04) 18px, rgba(255,255,255,.04) 19px);
}
.lg-hero__visualFallback strong {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 84px);
  color: #F5A524;
  line-height: 1;
}
.lg-hero__visualFallback span {
  font-size: 18px; font-weight: 800; color: rgba(255,255,255,.85);
}
.lg-hero__photo,
.lg-hero__photoCap { display: none; }

/* Path — مسار صناعة البطل */
.lg-path,
.lg-path--feet {
  padding: 48px 0 56px;
  background: var(--card-bg-strong);
  color: var(--text);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.lg-path__head {
  display: flex; align-items: center; gap: 16px; margin-bottom: 32px;
}
.lg-path__badge {
  width: 56px; height: 56px; flex: none;
  display: grid; place-items: center;
  border-radius: 18px;
  background: var(--grad-gold);
  color: #0A3A45;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
  box-shadow: var(--shadow-gold);
}
.lg-path__feetIco { display: none; }
.lg-path__kicker {
  margin: 0 0 4px; font-size: 14px; font-weight: 800; color: var(--insight);
}
.lg-path__title {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; color: var(--text-strong);
}
.lg-path__row,
.lg-path--feet .lg-path__row {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.lg-path__step,
.lg-path--feet .lg-path__step {
  position: relative;
  padding: 22px 16px 20px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  animation: mpFadeUp .5s var(--ease) both;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.lg-path__step:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.lg-path__step.is-active {
  border-color: var(--gold-500);
  background: linear-gradient(180deg, var(--gold-soft), var(--card-bg-strong));
  box-shadow: var(--shadow-gold);
}
.lg-path__foot { display: none; }
.lg-path__num {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--insight-soft);
  font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--insight-strong);
}
.lg-path__step.is-active .lg-path__num {
  background: var(--btn-gold-bg); color: #0A3A45; animation: mpPulse 2.4s ease-in-out infinite;
}
.lg-path__label { font-size: 17px; font-weight: 800; color: var(--text-strong); }
.lg-path__hint { font-size: 13px; color: var(--muted); line-height: 1.55; }
.lg-path__connector { display: none; }

/* Subjects — عربي / رياضيات / علوم / دراسات */
.lg-guides {
  padding: 72px 0;
  background:
    linear-gradient(180deg, var(--page-bg), var(--page-bg-alt));
}
.lg-guides__grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px;
}
.lg-guide {
  position: relative;
  display: grid; gap: 14px;
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 220px;
  color: #fff;
  isolation: isolate;
}
.lg-guide--arabic {
  background: linear-gradient(145deg, #0A3A45 0%, #0E5C68 55%, #1A9B8E 100%);
}
.lg-guide--math {
  background: linear-gradient(145deg, #8A4B08 0%, #C47A0A 40%, #F5A524 100%);
}
.lg-guide--science {
  background: linear-gradient(145deg, #0F4D36 0%, #1A8A5C 50%, #2BB87A 100%);
}
.lg-guide--social {
  background: linear-gradient(145deg, #123A5C 0%, #1E5A8C 50%, #3A7AB5 100%);
}
.lg-guide::before {
  content: "";
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-motif);
  background-size: 64px 64px;
  opacity: 0.2;
}
.lg-guide__visual {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  font-family: var(--font-calli);
  font-size: 28px; font-weight: 700; color: #fff;
}
.lg-guide__visual img { display: none; }
.lg-guide__body { position: relative; z-index: 1; }
.lg-guide__step {
  margin: 0 0 6px;
  display: inline-block;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,.16);
  font-size: 12px; font-weight: 800; color: rgba(255,255,255,.92);
}
.lg-guide__name {
  margin: 0; font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px); font-weight: 800; color: #fff;
}
.lg-guide__en { margin: 4px 0 10px; font-size: 13px; color: rgba(255,255,255,.72); }
.lg-guide__role { margin: 0 0 10px; font-size: 15px; font-weight: 700; color: rgba(255,255,255,.92); }
.lg-guide__quote {
  margin: 0; border: 0; padding: 0;
  font-size: 15px; font-style: normal;
  color: rgba(255,255,255,.82); line-height: 1.7;
}

/* Axes */
.lg-axes { padding: 56px 0 64px; background: var(--card-bg-strong); }
.lg-axes__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px;
}
.lg-axes__list li {
  display: flex; flex-direction: column; gap: 8px;
  padding: 22px 18px;
  background: var(--page-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.lg-axes__list li:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.lg-axes__list li::before {
  content: "";
  position: absolute; inset-inline: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--insight), var(--gold-500));
}
.lg-axes__n {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--gold-600);
}
.lg-axes__list strong {
  font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text-strong);
}
.lg-axes__list em {
  font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.55;
}

/* Stats */
.lg-stats {
  padding: 32px 0; background: var(--page-bg); border-bottom: 1px solid var(--border);
}
.lg-stats__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lg-stat {
  text-align: center; padding: 20px 16px;
  background: var(--card-bg-strong); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.lg-stat__val {
  font-family: var(--font-display); font-size: 40px; font-weight: 800; color: var(--insight);
}
.lg-stat__lbl { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }

.lg-strip {
  overflow: hidden; padding: 12px 0;
  background: linear-gradient(90deg, #0A3A45, #0E5C68 50%, #0A3A45);
  color: #FCD89A;
}
.lg-strip__inner {
  display: flex; gap: 36px; width: max-content;
  animation: mpStrip 32s linear infinite;
  font-family: var(--font-display); font-size: 15px; font-weight: 700; white-space: nowrap;
}
@keyframes mpStrip { to { transform: translateX(50%); } }
html[dir="rtl"] .lg-strip__inner { animation-name: mpStripRtl; }
@keyframes mpStripRtl { to { transform: translateX(-50%); } }
.student-perf-lite .lg-strip__inner,
.student-perf-lite .lg-hero__bg::after { animation: none; }

/* Sections */
.lg-section { padding: 72px 0; background: var(--page-bg); }
.lg-section--features { background: var(--page-bg-alt); }
.lg-section--grades { background: var(--page-bg); }
.lg-section__head { text-align: center; margin-bottom: 36px; }
.lg-section__en {
  margin: 0 0 8px; font-size: 14px; font-weight: 800; color: var(--insight);
}
.lg-section__title {
  margin: 0 0 8px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px); color: var(--text-strong);
}
.lg-section__sub { margin: 0; color: var(--muted-strong); font-size: 15px; }

.lg-features {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.lg-feature {
  padding: 24px 20px;
  background: var(--card-bg-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.lg-feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.lg-feature__top {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px;
}
.lg-feature__num { font-size: 12px; font-weight: 800; color: var(--insight); }
.lg-feature__mark {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
  background: var(--gold-soft); color: var(--gold-700);
  font-family: var(--font-display); font-weight: 800; font-size: 18px;
}
.lg-feature__mark img { display: none; }
.lg-feature__ico { width: 44px; height: 44px; object-fit: contain; border-radius: 12px; }
.lg-feature__title {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-strong);
}
.lg-feature__text { margin: 0; color: var(--muted-strong); font-size: 14px; line-height: 1.75; }

.lg-grades {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px;
}
.lg-grades--count-1 { grid-template-columns: minmax(0, 380px); justify-content: center; }
.lg-grades--count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; margin-inline: auto; }
.lg-grades--count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lg-grades--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1024px) {
  .lg-grades--count-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.lg-grade {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: var(--card-bg-strong); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .2s, box-shadow .2s;
}
.lg-grade:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.lg-grade__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: linear-gradient(145deg, #0A3A45, #0E5C68);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lg-grade__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center center;
}
.lg-grade__mediaEmpty {
  width: 100%; height: 100%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 42px; color: #F5A524;
  background:
    linear-gradient(145deg, #0A3A45, #0E5C68);
}
.lg-grade__badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(10, 58, 69, 0.82); color: #fff;
  font-size: 11px; font-weight: 800;
}
.lg-grade__body {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px;
}
.lg-grade__name {
  margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--text-strong);
}
.lg-grade__hint { margin: 2px 0 0; font-size: 12px; color: var(--muted); }
.lg-grade__cta {
  flex: none; padding: 8px 12px; border-radius: 999px;
  background: var(--insight-soft); color: var(--insight-strong);
  font-size: 12px; font-weight: 800;
}

/* CTA */
.lg-cta { padding: 28px 0 80px; background: var(--page-bg); }
.lg-cta__box {
  text-align: center; padding: clamp(36px, 5vw, 56px) 24px;
  background:
    linear-gradient(135deg, rgba(14, 92, 104, 0.92), rgba(10, 58, 69, 0.96)),
    var(--grad-hero);
  border: 0;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-strong);
  position: relative; overflow: hidden;
  color: #fff;
}
.lg-cta__box::before {
  content: "";
  position: absolute; inset: 0;
  background-image: var(--math-motif);
  background-size: 80px 80px;
  opacity: 0.25;
  pointer-events: none;
}
.lg-cta__faces { display: none; }
.lg-cta__en {
  position: relative; z-index: 1;
  margin: 0 0 8px; font-size: 14px; font-weight: 800; color: #F5A524;
}
.lg-cta__title {
  position: relative; z-index: 1;
  margin: 0 0 10px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px); color: #fff;
}
.lg-cta__sub {
  position: relative; z-index: 1;
  margin: 0 auto 22px; max-width: 480px; color: rgba(255,255,255,.78); font-size: 15px; line-height: 1.75;
}
.lg-cta .lg-btn--gold { position: relative; z-index: 1; }

/* Footer */
.lg-footer {
  background: #041C24;
  color: rgba(247, 251, 252, 0.78);
}
html[data-theme="dark"] .lg-footer { background: #020F14; }
.lg-footer__wave {
  height: 4px;
  background: linear-gradient(90deg, #0E5C68, #F5A524, #1A9B8E);
}
.lg-footer__inner { padding: 44px 20px 22px; }
.lg-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.lg-footer__logoLink { display: inline-flex; margin-bottom: 10px; }
.lg-footer__logoImg {
  width: 72px; height: 72px; object-fit: contain; border-radius: 18px;
  border: none; background: transparent;
}
.lg-footer .platform-logo__img--light,
html[data-theme="dark"] .lg-footer .platform-logo__img--light { display: none !important; }
.lg-footer .platform-logo__img--dark,
html[data-theme="dark"] .lg-footer .platform-logo__img--dark { display: block !important; }
.lg-footer__logoFallback {
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: rgba(255,255,255,.08); color: #F5A524;
  font-family: var(--font-display); font-weight: 800; border: 2px solid rgba(245,165,36,.35);
}
.lg-footer__name {
  margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: #fff;
}
.lg-footer__tag { margin: 0 0 14px; line-height: 1.75; max-width: 360px; }
.lg-footer__slogan {
  display: inline-block; margin: 0 0 14px;
  padding: 4px 12px; border-radius: 999px;
  background: rgba(245, 165, 36, 0.16);
  border: 1px solid rgba(245, 165, 36, 0.35);
  color: #FCD89A; font-weight: 800; font-size: 13px;
}
html[data-theme="dark"] .lg-footer__slogan {
  background: rgba(245, 165, 36, 0.22);
  color: #FFF3D0 !important;
}
.lg-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.lg-footer__nav a { color: rgba(247,251,252,.85); font-weight: 700; font-size: 14px; }
.lg-footer__nav a:hover { color: #fff; }
.lg-footer__heading { margin: 0 0 12px; font-size: 14px; font-weight: 800; color: #5DCDBC; }
.lg-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lg-footer__link {
  display: inline-flex; align-items: center; gap: 8px;
  color: rgba(247,251,252,.78); font-weight: 500;
}
.lg-footer__link:hover { color: #fff; }
.lg-footer__linkIco { width: 18px; height: 18px; object-fit: contain; border-radius: 4px; }
.lg-footer__phones { display: grid; gap: 8px; }
.lg-footer__phone { color: rgba(247,251,252,.85); font-weight: 700; direction: ltr; justify-self: start; }
.lg-footer__bottom {
  margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between;
}
.lg-footer__copy, .lg-footer__dev { margin: 0; font-size: 12px; color: rgba(247,251,252,.72); }
html[data-theme="dark"] .lg-footer__copy,
html[data-theme="dark"] .lg-footer__dev {
  color: rgba(232, 244, 242, 0.78) !important;
}
html[data-theme="dark"] .lg-footer__tag {
  color: rgba(232, 244, 242, 0.82) !important;
}
html[data-theme="dark"] .lg-footer__nav a,
html[data-theme="dark"] .lg-footer__link,
html[data-theme="dark"] .lg-footer__phone {
  color: #F7B84A !important;
}
html[data-theme="dark"] .lg-footer__heading {
  color: #A8E4D8 !important;
}

/* Auth */
.auth-page { padding: 36px 0 64px; position: relative; z-index: 1; }
.auth-card {
  overflow: hidden; background: var(--card-bg-strong);
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; min-height: 520px; }
.auth-formPane { padding: 40px 36px; background: var(--card-bg-strong); }
.auth-step { display: none; }
.auth-head { text-align: start; margin-bottom: 22px; }
.auth-head__logo {
  width: 64px; height: 64px; margin: 0 0 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--insight-soft), var(--gold-soft));
  border: 1px solid var(--border); border-radius: 16px; color: var(--insight);
}
.auth-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-head__logoFallback { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.auth-head__title {
  font-family: var(--font-display); font-weight: 800; font-size: 28px; color: var(--text-strong);
}
.auth-head__sub { color: var(--muted-strong); margin-top: 8px; font-size: 14px; line-height: 1.75; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.label { font-weight: 700; font-size: 13px; color: var(--text-strong); }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--field-border); background: var(--field-bg); color: var(--field-text);
  font-family: inherit; font-size: 15px;
}
.input:focus { outline: none; border-color: var(--insight); box-shadow: 0 0 0 3px var(--insight-soft); }
.btn-submit {
  margin-top: 4px; width: 100%; padding: 14px 18px; border: none; border-radius: 14px;
  background: var(--btn-gold-bg); color: #0A3A45;
  font-family: var(--font-body); font-weight: 800; font-size: 15px; cursor: pointer;
}
.btn-submit:hover { filter: brightness(1.05); }
html[data-theme="dark"] .btn-submit { color: #0A3A45 !important; }
.auth-foot { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.auth-link {
  color: var(--insight-strong); font-weight: 800; cursor: pointer;
  background: none; border: 0; padding: 0; font: inherit;
}

.auth-imgPane,
.auth-imgPane--plato,
.auth-imgPane--register {
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  align-self: stretch;
  min-height: 0;
  background: var(--grad-hero) !important;
  padding: 12px !important;
}
.auth-imgPane__symbols { display: none !important; }
.auth-img {
  position: relative; inset: auto; z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: min(720px, 85vh);
  object-fit: contain;
  object-position: center center;
  border: 0; border-radius: 14px;
}
.auth-imgFallback {
  position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.85);
  display: grid; gap: 10px; place-items: center; padding: 32px;
}
.auth-imgFallback__hero {
  width: 88px; height: 88px; display: grid; place-items: center; border-radius: 22px;
  border: 2px solid rgba(245,165,36,.55); font-family: var(--font-display);
  font-size: 36px; font-weight: 800; color: #F5A524; background: rgba(255,255,255,.08);
}
.auth-imgFallback p { max-width: 220px; font-size: 13px; }
.auth-imgPane__brand {
  position: absolute; bottom: 0; inset-inline: 0; z-index: 2;
  padding: 20px 16px;
  background: linear-gradient(transparent, rgba(4, 28, 36, 0.82));
  text-align: center; color: #fff;
}
.auth-imgPane__brand strong {
  display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 2px;
}
.auth-imgPane__brand span { font-size: 13px; opacity: .9; color: #FCD89A; font-weight: 700; }

/* Toasts */
.phy-alert {
  border-radius: 12px; padding: 14px 16px; margin-bottom: 16px;
  background: var(--danger-soft-bg); border: 1px solid var(--danger-soft-border); color: var(--danger);
}
.phy-toast {
  --toast-accent: var(--success); --toast-duration: 6000ms;
  position: fixed !important; left: 50% !important; right: auto !important;
  top: auto !important;
  bottom: max(18px, calc(env(safe-area-inset-bottom, 0px) + 16px)) !important;
  z-index: 14000 !important; width: min(420px, calc(100vw - 24px));
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px; border-radius: 14px;
  background: var(--card-bg-strong); border: 1px solid var(--border);
  border-inline-start: 4px solid var(--toast-accent);
  box-shadow: var(--shadow-strong); transform: translateX(-50%);
  animation: authToastIn .35s var(--ease) both; overflow: hidden;
}
.phy-toast--success { --toast-accent: var(--success); }
.phy-toast--error { --toast-accent: var(--danger); }
.phy-toast__icon {
  width: 32px; height: 32px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--toast-accent); color: #fff; font-weight: 900;
}
.phy-toast__body { min-width: 0; flex: 1; }
.phy-toast__title { display: block; font-weight: 800; color: var(--text-strong); }
.phy-toast__msg, .phy-toast__list { margin: 4px 0 0; color: var(--muted-strong); font-size: 13px; }
.phy-toast__close {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--border); background: var(--surface-soft);
  color: var(--muted); cursor: pointer; font-size: 18px;
}
.phy-toast__progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; overflow: hidden; }
.phy-toast__progress span {
  display: block; height: 100%; width: 100%; background: var(--toast-accent);
  transform-origin: right; animation: phyToastBar var(--toast-duration) linear forwards;
}
.phy-toast.is-leaving { animation: authToastOut .28s var(--ease) both; pointer-events: none; }
@keyframes phyToastBar { to { transform: scaleX(0); } }
@keyframes authToastIn {
  from { opacity: 0; transform: translate(-50%, 14px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes authToastOut { to { opacity: 0; transform: translate(-50%, 10px); } }

/* Responsive */
@media (max-width: 1024px) {
  .lg-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-grades, .lg-grades--count-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lg-hdr__nav { display: none; }
  .lg-hdr__mobileTheme { display: inline-flex; margin-inline-start: auto; }
  .lg-burger { display: flex; }
  .lg-drawer { display: block; }
  .lg-hero { min-height: 0; }
  .lg-hero__stage {
    grid-template-columns: 1fr; justify-items: stretch; gap: 28px; padding: 36px 20px 44px;
  }
  .lg-hero__visual {
    order: -1;
    min-height: 0;
    border-radius: 18px;
    overflow: hidden;
  }
  .lg-hero__visualImg {
    max-height: none;
    width: 100%;
    height: auto;
  }
  .lg-hero__copy { text-align: center; align-items: center; }
  .lg-hero__desc { margin-inline: auto; }
  .lg-hero__actions { justify-content: center; }
  .lg-path__row { grid-template-columns: 1fr 1fr; }
  .lg-guides__grid { grid-template-columns: 1fr; }
  .lg-axes__list { grid-template-columns: 1fr 1fr; }
  .lg-features { grid-template-columns: 1fr; }
  .lg-grades, .lg-grades--count-2, .lg-grades--count-4 { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .auth-grid { grid-template-columns: 1fr; }
  .auth-imgPane,
  .auth-imgPane--register {
    order: -1;
    min-height: 0;
    max-height: none;
    padding: 10px !important;
  }
  .auth-img {
    max-height: none;
    width: 100%;
    height: auto;
    border-radius: 12px;
  }
  .auth-formPane { padding: 28px 20px; }
  .auth-head { text-align: center; }
  .auth-head__logo { margin-inline: auto; }
  .auth-foot { justify-content: center; }
  .lg-footer__grid { grid-template-columns: 1fr 1fr; }
  .lg-footer__brand { grid-column: 1 / -1; }
  .lg-hdr__subjects { display: none; }
}
@media (max-width: 560px) {
  .lg-hdr__tagAr { font-size: 11px; }
  .lg-hdr__tagSlogan { font-size: 11px; }
  .lg-brand__sub { display: none; }
  .lg-stats__row { grid-template-columns: 1fr; }
  .lg-axes__list { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .lg-footer__grid { grid-template-columns: 1fr; }
  .lg-path__row { grid-template-columns: 1fr; }
  .lg-hero__brand { font-size: clamp(36px, 11vw, 48px); }
  .lg-hero__stage { padding: 28px 14px 36px; gap: 20px; }
  .lg-hero__visual { border-radius: 14px; }
  .auth-page { padding: 20px 0 48px; }
  .auth-imgPane,
  .auth-imgPane--register { padding: 8px !important; }
}
