/**
 * Стили главной страницы
 * Neuronis
 */

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.main {
  flex: 1;
}

.page--home {
  min-height: 100vh;
  min-height: 100dvh;
  /* Высота компактных FAB на главной */
  --home-duty-fab-height: calc(0.48rem + 1.75rem + 0.52rem);
  --home-footer-bar-height: calc(2 * var(--home-duty-fab-height) * 0.6);
  --home-footer-copy-height: 4.25rem;
  --home-bottom-fixed-height: calc(var(--home-footer-bar-height) + var(--home-footer-copy-height));
  --home-chrome-bg: linear-gradient(
    175deg,
    rgba(26, 30, 36, 0.48) 0%,
    rgba(17, 21, 27, 0.42) 45%,
    rgba(14, 18, 24, 0.45) 100%
  );
  --home-chrome-bg-light: linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(248, 252, 250, 0.52) 45%,
    rgba(241, 247, 244, 0.5) 100%
  );
  --home-chrome-blur: blur(12px) saturate(1.06);
  --home-chrome-accent-line: linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.45) 0%,
    rgba(5, 184, 125, 0.9) 42%,
    rgba(5, 184, 125, 0.65) 58%,
    rgba(248, 113, 113, 0.5) 100%
  );
  --home-chrome-edge: rgba(5, 184, 125, 0.22);
  --home-chrome-edge-light: rgba(5, 184, 125, 0.18);
  padding-bottom: var(--home-bottom-fixed-height);
  box-sizing: border-box;
}

.page--home .page-home-bottom {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  width: 100%;
  backdrop-filter: var(--home-chrome-blur);
  -webkit-backdrop-filter: var(--home-chrome-blur);
  background: var(--home-chrome-bg);
  border-top: 1px solid var(--home-chrome-edge);
  box-shadow:
    0 -6px 28px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(5, 184, 125, 0.06),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.page--home .page-home-bottom::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--home-chrome-accent-line);
  opacity: 0.88;
  pointer-events: none;
}

[data-theme="light"] .page--home .page-home-bottom {
  background: var(--home-chrome-bg-light);
  border-top-color: var(--home-chrome-edge-light);
  box-shadow:
    0 -6px 24px rgba(26, 36, 48, 0.06),
    inset 0 1px 0 rgba(5, 184, 125, 0.05),
    inset 0 -1px 0 rgba(255, 255, 255, 0.65);
}

[data-theme="light"] .page--home .page-home-bottom::before {
  opacity: 0.72;
}

.page--home .page-home-bottom .footer {
  margin: 0;
  padding: 0.65rem 1rem max(0.75rem, env(safe-area-inset-bottom, 0px));
  background: transparent;
}

@media (max-width: 768px) {
  .page--home {
    --home-duty-fab-height: calc(0.4rem + 1.55rem + 0.44rem);
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  .page--home {
    --home-duty-fab-height: calc(0.34rem + 1.35rem + 0.38rem);
  }
}

body.neuroege-neuroshka-home-page {
  --home-fab-bottom: 1.75rem;
}

@media (max-width: 768px) {
  body.neuroege-neuroshka-home-page {
    --home-fab-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  body.neuroege-neuroshka-home-page {
    --home-fab-bottom: max(0.55rem, env(safe-area-inset-bottom, 0px));
  }
}

/* Главная: компактные «Дежурный учитель» и «Нейрошка» */
body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher,
body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
  bottom: var(--home-fab-bottom);
  gap: 0.35rem;
  padding: 0.48rem 0.82rem 0.52rem;
  font-size: 0.8rem;
}

body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher {
  left: 3.5rem;
  right: auto;
  padding: 0.48rem 0.78rem 0.52rem 0.58rem;
}

body.neuroege-neuroshka-home-page .fab-cta--duty-teacher .duty-teacher-btn-icon--fab,
body.neuroege-neuroshka-home-page #neuroshka-home-fab .fab-cta__emoji {
  width: 1.75rem;
  height: 1.75rem;
  font-size: 0.88rem;
}

body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
  right: 3.5rem;
  left: auto;
  padding-right: 0.9rem;
}

@media (max-width: 768px) {
  body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher,
  body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
    padding: 0.4rem 0.68rem 0.44rem;
    font-size: 0.75rem;
    gap: 0.32rem;
  }

  body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher {
    left: max(0.85rem, env(safe-area-inset-left, 0px));
    padding: 0.4rem 0.68rem 0.44rem 0.48rem;
  }

  body.neuroege-neuroshka-home-page .fab-cta--duty-teacher .duty-teacher-btn-icon--fab,
  body.neuroege-neuroshka-home-page #neuroshka-home-fab .fab-cta__emoji {
    width: 1.55rem;
    height: 1.55rem;
    font-size: 0.8rem;
  }

  body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
    right: max(0.85rem, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher,
  body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
    padding: 0.34rem 0.58rem 0.38rem;
    font-size: 0.68rem;
    gap: 0.28rem;
  }

  body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher {
    left: max(0.65rem, env(safe-area-inset-left, 0px));
    padding: 0.34rem 0.58rem 0.38rem 0.42rem;
  }

  body.neuroege-neuroshka-home-page .fab-cta--duty-teacher .duty-teacher-btn-icon--fab,
  body.neuroege-neuroshka-home-page #neuroshka-home-fab .fab-cta__emoji {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.72rem;
  }

  body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
    right: max(0.65rem, env(safe-area-inset-right, 0px));
  }
}

/* Информационная строка (премиальный стиль) */
.info-marquee {
  position: relative;
  z-index: 14;
  margin: 0 clamp(0.7rem, 1.8vw, 1.2rem);
  border: 1px solid rgba(5, 184, 125, 0.2);
  border-bottom: none;
  border-radius: 14px 14px 0 0;
  overflow: hidden;
  background:
    linear-gradient(110deg, rgba(59, 130, 246, 0.14) 0%, rgba(5, 184, 125, 0.12) 45%, rgba(248, 113, 113, 0.12) 100%),
    linear-gradient(180deg, rgba(19, 24, 31, 0.8) 0%, rgba(14, 18, 24, 0.78) 100%);
  box-shadow:
    0 8px 26px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .info-marquee {
  background:
    linear-gradient(110deg, rgba(59, 130, 246, 0.08) 0%, rgba(5, 184, 125, 0.08) 45%, rgba(248, 113, 113, 0.07) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(247, 252, 249, 0.9) 100%);
  border-color: rgba(5, 184, 125, 0.18);
  box-shadow:
    0 6px 20px rgba(26, 36, 48, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.info-marquee__inner {
  position: relative;
  overflow: hidden;
  margin-left: 4.75rem;
}

.info-marquee__inner::before,
.info-marquee__inner::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}

.info-marquee__inner::before {
  left: 0;
  background: linear-gradient(90deg, rgba(14, 18, 24, 0.94) 0%, rgba(14, 18, 24, 0) 100%);
}

.info-marquee__inner::after {
  right: 0;
  background: linear-gradient(270deg, rgba(14, 18, 24, 0.94) 0%, rgba(14, 18, 24, 0) 100%);
}

[data-theme="light"] .info-marquee__inner::before {
  background: linear-gradient(90deg, rgba(248, 252, 250, 0.98) 0%, rgba(248, 252, 250, 0) 100%);
}

[data-theme="light"] .info-marquee__inner::after {
  background: linear-gradient(270deg, rgba(248, 252, 250, 0.98) 0%, rgba(248, 252, 250, 0) 100%);
}

.info-marquee__track {
  --marquee-end: -120%;
  --marquee-duration: 14s;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-width: max-content;
  padding: 0.3rem 0;
  animation: info-marquee-scroll var(--marquee-duration) linear 1 both;
}

.info-marquee:hover .info-marquee__track,
.info-marquee:focus-within .info-marquee__track {
  animation-play-state: paused;
}

.info-marquee__badge {
  position: absolute;
  left: 0.55rem;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.46rem;
  border-radius: 999px;
  border: 1px solid rgba(5, 184, 125, 0.42);
  background: linear-gradient(160deg, rgba(5, 184, 125, 0.26) 0%, rgba(59, 130, 246, 0.2) 100%);
  box-shadow:
    0 4px 14px rgba(5, 184, 125, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(227, 255, 247, 0.92);
  text-transform: uppercase;
  white-space: nowrap;
}

[data-theme="light"] .info-marquee__badge {
  border-color: rgba(5, 184, 125, 0.32);
  background: linear-gradient(160deg, rgba(5, 184, 125, 0.2) 0%, rgba(59, 130, 246, 0.13) 100%);
  box-shadow:
    0 3px 10px rgba(26, 36, 48, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  color: rgba(15, 23, 42, 0.82);
}

.info-marquee__text {
  display: inline-flex;
  align-items: center;
  font-size: 0.744rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(231, 239, 245, 0.86);
  text-shadow: 0 0 16px rgba(5, 184, 125, 0.22);
}

[data-theme="light"] .info-marquee__text {
  color: rgba(30, 41, 59, 0.84);
  text-shadow: 0 0 14px rgba(5, 184, 125, 0.16);
}

@keyframes info-marquee-scroll {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(var(--marquee-end));
  }
}

/**
 * Главная — премиальная шапка (шире воздух, акцентная линия, стекло)
 */
.header--home {
  position: relative;
  padding: calc(0.45rem * var(--header-scale)) clamp(1.25rem, 3.5vw, 2.5rem) calc(0.5rem * var(--header-scale));
  backdrop-filter: var(--home-chrome-blur, blur(12px) saturate(1.06));
  -webkit-backdrop-filter: var(--home-chrome-blur, blur(12px) saturate(1.06));
  background: var(--home-chrome-bg, linear-gradient(
    175deg,
    rgba(26, 30, 36, 0.48) 0%,
    rgba(17, 21, 27, 0.42) 45%,
    rgba(14, 18, 24, 0.45) 100%
  ));
  border-bottom: 1px solid var(--home-chrome-edge, rgba(5, 184, 125, 0.22));
  box-shadow:
    0 6px 28px rgba(0, 0, 0, 0.28),
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    inset 0 -1px 0 rgba(5, 184, 125, 0.06);
}

.header--home::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--home-chrome-accent-line, linear-gradient(
    90deg,
    rgba(59, 130, 246, 0.45) 0%,
    rgba(5, 184, 125, 0.9) 42%,
    rgba(5, 184, 125, 0.65) 58%,
    rgba(248, 113, 113, 0.5) 100%
  ));
  opacity: 0.88;
  pointer-events: none;
}

[data-theme="light"] .header--home {
  background: var(--home-chrome-bg-light, linear-gradient(
    175deg,
    rgba(255, 255, 255, 0.58) 0%,
    rgba(248, 252, 250, 0.52) 45%,
    rgba(241, 247, 244, 0.5) 100%
  ));
  border-bottom-color: var(--home-chrome-edge-light, rgba(5, 184, 125, 0.18));
  box-shadow:
    0 6px 24px rgba(26, 36, 48, 0.06),
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    inset 0 -1px 0 rgba(5, 184, 125, 0.05);
}

[data-theme="light"] .header--home::before {
  opacity: 0.72;
}

/* Правый блок: единая «док-панель» для пилюль, входа и темы */
.header--home .header__right {
  gap: 0.45rem;
  padding: 0.28rem 0.42rem 0.28rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 4px 20px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .header--home .header__right {
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(5, 184, 125, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 2px 14px rgba(26, 36, 48, 0.06);
}

.header--home .header__logo-img {
  width: clamp(
    calc(15rem * var(--header-scale)),
    calc(30vw * var(--header-scale)),
    calc(22rem * var(--header-scale))
  );
  height: auto;
  filter: drop-shadow(0 3px 20px rgba(5, 184, 125, 0.3))
    drop-shadow(0 0 14px rgba(59, 130, 246, 0.1));
}

.header--home .header__logo:hover .header__logo-img {
  filter: drop-shadow(0 5px 26px rgba(5, 184, 125, 0.42))
    drop-shadow(0 0 18px rgba(59, 130, 246, 0.16));
}

.header--home .header__brand {
  gap: 0.45rem;
}

.page--home .hero__title-main {
  font-size: clamp(2.35rem, 5.2vw, 3.65rem);
  letter-spacing: -0.035em;
}

.page--home .hero__title-main::after {
  width: min(100%, 24rem);
}

.page--home .hero {
  padding-top: 3.25rem;
}

.page--home .hero-pulse--premium {
  margin-top: 0.15rem;
  padding: 0.35rem 0.55rem;
  font-size: clamp(1.05rem, 2.15vw, 1.42rem);
}

.page--home .hero-pulse--premium .hero-pulse__word[data-active] {
  box-shadow:
    0 6px 24px rgba(5, 184, 125, 0.42),
    0 0 0 1px rgba(5, 184, 125, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-theme="light"] .header--home .header__logo-img {
  filter: drop-shadow(0 3px 16px rgba(5, 184, 125, 0.16));
}

[data-theme="light"] .header--home .header__logo:hover .header__logo-img {
  filter: drop-shadow(0 5px 22px rgba(5, 184, 125, 0.24));
}

.header--home .header__calc-pill {
  padding: 0.32rem 0.8rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.header--home .header__trainer-pair {
  padding: 0.14rem;
}

.header--home .header__trainer-pair .header__calc-pill {
  padding: 0.32rem 0.72rem;
}

.header--home .header__auth-pair {
  padding: 0.14rem;
}

.header--home .header__site-pair .header__site-link {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.header--home .header__site-pair--premium .header__site-link {
  padding: 0.55rem 1.2rem;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
}

.header--home .header__site-pair--premium .header__site-link--home {
  min-width: 5.65rem;
  padding: 0.58rem 1.25rem;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
}

.header--home .header__site-pair--premium .header__site-link--home.header__site-link--active {
  box-shadow:
    0 10px 36px rgba(245, 158, 11, 0.45),
    0 0 0 1px rgba(251, 191, 36, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.header--home .header__site-pair--premium .header__site-link--variants.header__site-link--active,
.header--home .header__site-pair--premium .header__site-link--trainers.header__site-link--active {
  box-shadow:
    0 8px 32px rgba(5, 184, 125, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.header--home .header__site-pair--premium .header__site-link--trainers.header__site-link--active {
  box-shadow:
    0 8px 32px rgba(99, 102, 241, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

[data-theme="light"] .header--home .header__site-pair--premium .header__site-link--home.header__site-link--active {
  box-shadow:
    0 10px 32px rgba(245, 158, 11, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

[data-theme="light"] .header--home .header__site-pair--premium .header__site-link--variants.header__site-link--active {
  box-shadow:
    0 8px 28px rgba(5, 184, 125, 0.22),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

[data-theme="light"] .header--home .header__site-pair--premium .header__site-link--trainers.header__site-link--active {
  box-shadow:
    0 8px 28px rgba(79, 70, 229, 0.18),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

.header--home .header__user,
.header--home .header__auth-btn {
  border-radius: 9999px;
}

.header--home .theme-cycle-toggle,
.header--home .theme-toggle {
  border-radius: 999px;
}

.header--home .header__site-nav-link {
  border-radius: 9999px;
}

.header--home .header__site-nav-link--premium {
  padding: 0.72rem 1.65rem;
  font-size: 1.1875rem;
  letter-spacing: 0.06em;
}

.header--home .header__site-nav-link--premium-ege:hover,
.header--home .header__site-nav-link--premium-ege.header__site-nav-link--active {
  box-shadow:
    0 8px 32px rgba(5, 184, 125, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.header--home .header__site-nav-link--premium-oge:hover,
.header--home .header__site-nav-link--premium-oge.header__site-nav-link--active {
  box-shadow:
    0 8px 32px rgba(20, 184, 166, 0.38),
    0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

[data-theme="light"] .header--home .header__site-nav-link--premium-ege:hover,
[data-theme="light"] .header--home .header__site-nav-link--premium-ege.header__site-nav-link--active {
  box-shadow:
    0 8px 28px rgba(5, 184, 125, 0.22),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

[data-theme="light"] .header--home .header__site-nav-link--premium-oge:hover,
[data-theme="light"] .header--home .header__site-nav-link--premium-oge.header__site-nav-link--active {
  box-shadow:
    0 8px 28px rgba(20, 184, 166, 0.22),
    0 1px 0 rgba(255, 255, 255, 1) inset;
}

/* Gradient blobs */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.blob--green {
  width: 500px;
  height: 500px;
  background: var(--blob-green, #05b87d);
  opacity: 0.15;
  top: -5%;
  right: -5%;
  animation: blob-drift-1 18s ease-in-out infinite alternate;
}

.blob--blue {
  width: 400px;
  height: 400px;
  background: var(--blob-blue, #3b82f6);
  opacity: 0.12;
  bottom: 10%;
  left: -3%;
  animation: blob-drift-2 22s ease-in-out infinite alternate;
}

[data-theme="light"] .blob {
  opacity: 0.08;
}

@keyframes blob-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.1); }
  100% { transform: translate(-20px, -20px) scale(0.95); }
}

@keyframes blob-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, -25px) scale(1.08); }
  100% { transform: translate(25px, 15px) scale(0.92); }
}

@media (max-width: 900px) {
  .info-marquee {
    margin: 0 0.75rem;
  }

  .info-marquee__text {
    font-size: 0.456rem;
  }

  .header--home .header__logo-img {
    width: clamp(
      calc(11rem * var(--header-scale)),
      calc(48vw * var(--header-scale)),
      calc(18rem * var(--header-scale))
    );
  }

  .blob--green {
    width: min(360px, 85vw);
    height: min(360px, 85vw);
  }

  .blob--blue {
    width: min(280px, 70vw);
    height: min(280px, 70vw);
  }
}

@media (max-width: 520px) {
  .info-marquee {
    margin: 0 0.5rem;
    border-radius: 12px 12px 0 0;
  }

  .info-marquee__inner::before,
  .info-marquee__inner::after {
    width: 28px;
  }

  .info-marquee__inner {
    margin-left: 3.3rem;
  }

  .info-marquee__text {
    font-size: 0.42rem;
  }

  .info-marquee__badge {
    left: 0.42rem;
    padding: 0.08rem 0.28rem;
    font-size: 0.384rem;
  }
}

/* ——— Мобильный immersive UI ——— */
.mobile-immersive-hint {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 10, 14, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.mobile-immersive-hint[hidden] {
  display: none;
}

.mobile-immersive-hint__card {
  width: min(100%, 20rem);
  padding: 1.35rem 1.25rem 1.15rem;
  border-radius: 16px;
  border: 1px solid rgba(5, 184, 125, 0.28);
  background: linear-gradient(175deg, rgba(28, 33, 38, 0.98) 0%, rgba(18, 22, 28, 0.98) 100%);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  text-align: center;
}

[data-theme="light"] .mobile-immersive-hint__card {
  background: linear-gradient(175deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 250, 0.98) 100%);
  border-color: rgba(5, 184, 125, 0.22);
  box-shadow: 0 16px 40px rgba(26, 36, 48, 0.12);
}

.mobile-immersive-hint__icon {
  margin: 0 0 0.5rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--green);
  animation: mobile-rotate-hint 2.4s ease-in-out infinite;
}

.mobile-immersive-hint__title {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.mobile-immersive-hint__text {
  margin: 0 0 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.mobile-immersive-hint__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.45rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  background: var(--green);
  box-shadow: 0 6px 20px rgba(5, 184, 125, 0.35);
}

.mobile-immersive-hint__dismiss {
  display: block;
  width: 100%;
  padding: 0.45rem;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  background: transparent;
}

.mobile-immersive-fab {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: max(0.85rem, env(safe-area-inset-left, 0px));
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(5, 184, 125, 0.35);
  border-radius: 50%;
  cursor: pointer;
  color: var(--green);
  background: rgba(22, 26, 31, 0.92);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.mobile-immersive-fab[hidden] {
  display: none;
}

[data-theme="light"] .mobile-immersive-fab {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(5, 184, 125, 0.28);
}

.mobile-immersive-fab__icon {
  font-size: 1.15rem;
  line-height: 1;
}

@keyframes mobile-rotate-hint {
  0%, 100% { transform: rotate(0deg); }
  35% { transform: rotate(-90deg); }
  70% { transform: rotate(-90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-immersive-hint__icon {
    animation: none;
  }
}

/* Минимализм на смартфонах */
@media (max-width: 768px) and (pointer: coarse) {
  .page--home .canvas-bg,
  .page--home .blob {
    display: none;
  }

  .page--home .info-marquee {
    display: none;
  }

  .fab-cta__text--full,
  .footer__link-text--full,
  .footer__tagline {
    display: none;
  }

  .fab-cta__text--short,
  .footer__link-text--short {
    display: inline;
  }

  body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher,
  body.neuroege-neuroshka-home-page #neuroshka-home-fab.fab-cta--premium.fab-cta--neuroshka {
    padding: 0.38rem 0.58rem 0.42rem;
    font-size: 0.72rem;
    gap: 0.28rem;
  }

  body.neuroege-neuroshka-home-page .fab-cta--premium.fab-cta--duty-teacher {
    padding: 0.38rem 0.58rem 0.42rem 0.44rem;
  }

  body.neuroege-neuroshka-home-page .fab-cta--duty-teacher .duty-teacher-btn-icon--fab {
    width: 1.45rem;
    height: 1.45rem;
  }

  body.neuroege-neuroshka-home-page #neuroshka-home-fab .fab-cta__emoji {
    width: 1.45rem;
    height: 1.45rem;
    font-size: 0.76rem;
  }

  .page--home {
    --home-footer-copy-height: 2.15rem;
    --home-duty-fab-height: calc(0.38rem + 1.45rem + 0.42rem);
  }

  .page--home .footer {
    font-size: 0.6875rem;
    line-height: 1.35;
    padding: 0.45rem 0.55rem max(0.55rem, env(safe-area-inset-bottom, 0px));
  }

  .page--home .footer-home-bar {
    padding: 0.45rem 0.55rem;
  }

  .footer-home-bar .home-ambient__label {
    display: none;
  }

  .footer-home-bar .home-ambient {
    min-width: 2.1rem;
    padding: 0.38rem;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .page--home .hero {
    display: block;
    padding: 0.65rem 0.85rem 0.35rem;
  }

  .page--home .hero__title-main {
    font-size: 1.05rem;
    line-height: 1.25;
  }

  .page--home .hero__title-main::after {
    display: none;
  }

  .page--home .hero-pulse--premium {
    display: none;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  .page--home .hero {
    display: block;
    padding: 0.35rem 1rem 0.25rem;
  }

  .page--home .hero__title-main {
    font-size: 1.2rem;
  }

  .page--home .hero-pulse--premium {
    display: inline-flex;
    margin-top: 0;
    padding: 0.2rem 0.35rem;
    font-size: 0.85rem;
  }

  .header--home {
    padding-top: calc(0.35rem * var(--header-scale));
    padding-bottom: calc(0.35rem * var(--header-scale));
  }
}

/* ——— Станции ОГЭ /oge/ и ЕГЭ /, /ege/ — без вертикального скрола ——— */
body.page--oge-home,
body.page--ege-home {
  overflow: hidden;
  height: 100dvh;
}

body.page--oge-home .page.page--home.page--oge-home,
body.page--ege-home .page.page--home.page--ege-home {
  height: 100dvh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

body.page--oge-home .page--oge-home .main,
body.page--ege-home .page--ege-home .main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0 0 0.25rem;
}

.page--oge-home .hero,
.page--ege-home .hero {
  padding: clamp(0.7rem, 1.5vh, 1.2rem) 1.5rem 0;
  flex-shrink: 0;
}

.page--oge-home .hero__title,
.page--ege-home .hero__title {
  line-height: 1.26;
}

.page--oge-home .hero__title-main,
.page--ege-home .hero__title-main {
  font-size: clamp(2.05rem, 4.6vw, 3.25rem);
  letter-spacing: -0.032em;
}

.page--oge-home .hero__title-main::after,
.page--ege-home .hero__title-main::after {
  width: min(100%, 22rem);
}

.page--oge-home .hero-pulse--premium,
.page--ege-home .hero-pulse--premium {
  margin-top: 0.5rem;
  padding: 0.4rem 0.65rem;
  font-size: clamp(1.05rem, 2.05vw, 1.4rem);
  line-height: 1.38;
}

.page--oge-home .hero__lead,
.page--ege-home .hero__lead {
  max-width: 40rem;
  margin: 0.65rem auto 0;
  padding: 0 0.75rem;
  font-size: clamp(0.74rem, 1.05vw, 0.84rem);
  line-height: 1.62;
  letter-spacing: 0.015em;
  opacity: 0.82;
}

.page--oge-home .oge-seo-nav,
.page--ege-home .oge-seo-nav {
  flex-wrap: nowrap;
  justify-content: center;
  max-width: none;
  width: 100%;
  margin: clamp(0.5rem, 1.1vh, 0.75rem) auto 0;
  padding: 0 1rem;
  gap: 0.48rem 0.6rem;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.page--oge-home .oge-seo-nav::-webkit-scrollbar,
.page--ege-home .oge-seo-nav::-webkit-scrollbar {
  display: none;
}

.page--oge-home .oge-seo-nav__link,
.page--ege-home .oge-seo-nav__link {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0.36rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.page--ege-home .hero {
  padding: clamp(0.55rem, 1.15vh, 0.95rem) 1.5rem 0;
}

.page--ege-home .hero-pulse--premium {
  margin-top: 0.38rem;
  padding: 0.32rem 0.55rem;
}

.page--ege-home .hero__lead {
  margin-top: 0.5rem;
}

.hero__seo-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.45rem;
  max-width: 42rem;
  margin: 0.55rem auto 0;
  padding: 0 0.5rem;
}

.page--oge-home .hero__seo-tags,
.page--ege-home .hero__seo-tags {
  margin-top: 0.45rem;
}

.hero__seo-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(110, 231, 183, 0.28);
  font-size: 0.72rem;
  font-weight: 550;
  line-height: 1.35;
  color: rgba(226, 232, 240, 0.82);
  text-decoration: none;
  background: rgba(5, 150, 105, 0.08);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.hero__seo-tag:hover {
  border-color: rgba(110, 231, 183, 0.5);
  background: rgba(5, 150, 105, 0.14);
  color: #ecfdf5;
}

[data-theme="light"] .hero__seo-tag {
  color: rgba(51, 65, 85, 0.82);
  border-color: rgba(5, 150, 105, 0.22);
  background: rgba(236, 253, 245, 0.7);
}

[data-theme="light"] .hero__seo-tag:hover {
  color: #047857;
}

.page--ege-home .oge-seo-nav {
  margin-top: clamp(0.35rem, 0.8vh, 0.55rem);
}

.page--oge-home .task-grid--oge {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  justify-content: center;
}

.page--ege-home .task-grid {
  --task-circle-size: clamp(
    5.75rem,
    min(15.4vh, calc((100vw - 2rem - 8 * 0.65rem) / 9)),
    8.35rem
  );
  flex: 1 1 auto;
  min-height: 0;
  align-content: center;
  justify-content: center;
  grid-template-columns: repeat(9, var(--task-circle-size));
  grid-template-rows: repeat(3, var(--task-circle-size));
  gap: clamp(0.38rem, 0.7vh, 0.65rem);
  margin-top: clamp(0.25rem, 0.9vh, 0.65rem);
  padding: clamp(0.75rem, 2vh, 1.45rem) 1rem 0.1rem;
}

.page--ege-home .task-circle {
  width: var(--task-circle-size);
  height: var(--task-circle-size);
}

.page--ege-home .task-circle__number {
  font-size: clamp(1.85rem, 3.25vh, 2.35rem);
}

.page--ege-home .task-circle__icon {
  width: clamp(16px, 2.4vh, 20px);
  height: clamp(16px, 2.4vh, 20px);
}

@media (max-width: 900px) and (pointer: coarse) {
  body.page--oge-home,
  body.page--oge-home .page.page--home.page--oge-home,
  body.page--ege-home,
  body.page--ege-home .page.page--home.page--ege-home {
    overflow: auto;
    height: auto;
    min-height: 100dvh;
    max-height: none;
  }

  body.page--oge-home .page--oge-home .main,
  body.page--ege-home .page--ege-home .main {
    overflow: visible;
  }

  .page--ege-home .task-grid {
    --task-circle-size: 6.75rem;
    grid-template-columns: repeat(3, var(--task-circle-size));
    grid-template-rows: none;
    grid-auto-rows: var(--task-circle-size);
    align-content: start;
    padding-bottom: 1.5rem;
  }

  .page--oge-home .task-grid--oge {
    --task-circle-size: min(5.5rem, calc((100vw - 2.5rem - 0.5rem * 3) / 4));
    grid-template-columns: repeat(4, var(--task-circle-size));
    grid-template-rows: none;
    grid-auto-rows: var(--task-circle-size);
    align-content: start;
    margin-top: clamp(0.85rem, 2.5vh, 1.35rem);
    padding-bottom: 1.5rem;
  }
}

/* Зум / узкое окно на десктопе: одна строка шапки и станционная сетка без мобильного наложения */
@media (max-width: 900px) and (pointer: fine) {
  body.page--oge-home,
  body.page--oge-home .page.page--home.page--oge-home,
  body.page--ege-home,
  body.page--ege-home .page.page--home.page--ege-home {
    overflow: hidden;
    height: 100dvh;
    max-height: 100dvh;
    min-height: 0;
  }

  body.page--oge-home .page--oge-home .main,
  body.page--ege-home .page--ege-home .main {
    overflow: hidden;
  }

  .page--ege-home .task-grid {
    --task-circle-size: clamp(
      5.25rem,
      min(11vh, calc((100vw - 1.5rem - 8 * 0.35rem) / 9)),
      6.75rem
    );
    grid-template-columns: repeat(9, var(--task-circle-size));
    grid-template-rows: repeat(3, var(--task-circle-size));
    grid-auto-rows: unset;
    align-content: center;
    gap: clamp(0.28rem, 0.55vh, 0.5rem);
    padding: clamp(0.35rem, 1vh, 0.85rem) 0.5rem 0.1rem;
  }

  .page--oge-home .task-grid--oge {
    --task-circle-size: clamp(
      5rem,
      min(10.5vh, calc((100vw - 1.5rem - 7 * 0.35rem) / 8)),
      6.5rem
    );
    grid-template-columns: repeat(8, var(--task-circle-size));
    grid-template-rows: repeat(2, var(--task-circle-size));
    grid-auto-rows: unset;
    align-content: center;
    gap: clamp(0.28rem, 0.55vh, 0.5rem);
  }
}

@media (max-height: 860px) {
  .page--oge-home .hero,
  .page--ege-home .hero {
    padding-top: 0.85rem;
  }

  .page--oge-home .hero__lead,
  .page--ege-home .hero__lead {
    margin-top: 0.55rem;
  }
}

@media (max-height: 760px) {
  .page--oge-home .hero__title-main,
  .page--ege-home .hero__title-main {
    font-size: clamp(1.85rem, 4vw, 2.65rem);
  }

  .page--oge-home .hero-pulse--premium,
  .page--ege-home .hero-pulse--premium {
    margin-top: 0.35rem;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
  }

  .page--oge-home .hero__lead,
  .page--ege-home .hero__lead {
    margin-top: 0.45rem;
    font-size: 0.72rem;
    line-height: 1.55;
  }

  .page--oge-home .oge-seo-nav,
  .page--ege-home .oge-seo-nav {
    margin-top: 0.4rem;
  }

  .page--ege-home .task-grid {
    --task-circle-size: clamp(
      5.25rem,
      min(10.5vh, calc((100vw - 1.5rem - 8 * 0.35rem) / 9)),
      7rem
    );
    gap: 0.35rem;
    padding-top: 0.45rem;
  }

  .page--oge-home .task-grid--oge {
    --task-circle-size: clamp(
      5rem,
      min(10vh, calc((100vw - 1.5rem - 7 * 0.35rem) / 8)),
      6.75rem
    );
    gap: 0.35rem;
  }
}

@media (max-width: 900px) {
  .page--oge-home .oge-seo-nav__link,
.page--ege-home .oge-seo-nav__link {
    font-size: 0.76rem;
    padding: 0.32rem 0.72rem;
  }
}

@media (max-width: 520px) {
  .page--oge-home .hero__lead,
  .page--ege-home .hero__lead {
    max-width: 22rem;
  }

  .page--oge-home .task-grid--oge {
    --task-circle-size: min(5rem, calc((100vw - 2rem - 0.5rem * 3) / 4));
    grid-template-columns: repeat(4, var(--task-circle-size));
    gap: 0.65rem 0.5rem;
    margin-top: clamp(1rem, 3vh, 1.5rem);
    padding: 0 0.75rem 2.25rem;
  }

  .page--ege-home .task-grid {
    --task-circle-size: 6rem;
    gap: 0.65rem 0.5rem;
    padding: 0 0.75rem 2.25rem;
  }
}

@media (max-width: 900px) and (orientation: landscape) and (pointer: coarse) {
  .page--ege-home .task-grid {
    --task-circle-size: 5.25rem;
    grid-template-columns: repeat(3, var(--task-circle-size));
    gap: 0.55rem 0.45rem;
    padding: 0 0.75rem 1.25rem;
  }

  .page--oge-home .task-grid--oge {
    --task-circle-size: min(4.75rem, calc((100vw - 2rem - 0.45rem * 3) / 4));
    grid-template-columns: repeat(4, var(--task-circle-size));
    gap: 0.55rem 0.45rem;
    margin-top: clamp(0.65rem, 2vh, 1rem);
    padding: 0 0.75rem 1.25rem;
  }
}

@media (max-width: 520px) and (orientation: landscape) and (pointer: coarse) {
  .page--ege-home .task-grid {
    --task-circle-size: 4.75rem;
  }

  .page--oge-home .task-grid--oge {
    --task-circle-size: min(4.25rem, calc((100vw - 1.5rem - 0.45rem * 3) / 4));
    grid-template-columns: repeat(4, var(--task-circle-size));
  }
}

/* ——— Главная: компактная шапка и slide-in меню ——— */
.header-home-burger {
  display: none;
  align-items: center;
  gap: 0.42rem;
  min-height: 2.52rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid rgba(110, 231, 183, 0.32);
  border-radius: 0.65rem;
  background: rgba(5, 150, 105, 0.1);
  color: #ecfdf5;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 650;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.header-home-burger__bars {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.2rem;
  width: 1rem;
  flex-shrink: 0;
}

.header-home-burger__bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.header-home-burger__label {
  white-space: nowrap;
}

.header-home-burger:hover {
  border-color: rgba(110, 231, 183, 0.5);
  background: rgba(5, 150, 105, 0.18);
}

[data-theme="light"] .header-home-burger {
  color: #047857;
  border-color: rgba(5, 150, 105, 0.28);
  background: rgba(236, 253, 245, 0.85);
}

[data-theme="light"] .header-home-burger:hover {
  border-color: rgba(5, 150, 105, 0.45);
  background: rgba(209, 250, 229, 0.95);
}

.header-home-menu {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.header-home-menu[hidden] {
  display: none;
}

.header-home-menu:not([hidden]) {
  pointer-events: auto;
}

.header-home-menu__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  background: rgba(8, 10, 14, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer;
}

.header-home-menu__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(100%, 20.5rem);
  max-height: 100%;
  margin: 0;
  padding: 0;
  border-left: 1px solid rgba(5, 184, 125, 0.28);
  background: linear-gradient(180deg, rgba(22, 26, 32, 0.98) 0%, rgba(14, 18, 24, 0.99) 100%);
  box-shadow: -16px 0 48px rgba(0, 0, 0, 0.5);
  animation: header-home-menu-slide-in 0.22s ease-out;
}

@keyframes header-home-menu-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0.6;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

[data-theme="light"] .header-home-menu__panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 250, 0.99) 100%);
  border-left-color: rgba(5, 184, 125, 0.22);
}

.header-home-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.85rem 0.65rem;
  padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.header-home-menu__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--white);
}

[data-theme="light"] .header-home-menu__title {
  color: #0f172a;
}

.header-home-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.header-home-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
  padding: 0.8rem;
  padding-bottom: max(0.8rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.header-home-menu__section {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0 0.2rem;
  padding: 0 0.2rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  opacity: 0.9;
}

.header-home-menu__section::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.28) 0%, transparent 100%);
}

.header-home-menu__section:first-child {
  margin-top: 0;
}

.header-home-menu__link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.1rem;
  padding: 0.62rem 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.85rem;
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  color: var(--text, #e8eaed);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.header-home-menu__link:hover {
  border-color: rgba(5, 184, 125, 0.35);
  background: linear-gradient(180deg, rgba(5, 184, 125, 0.14) 0%, rgba(5, 184, 125, 0.06) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 8px 20px rgba(5, 184, 125, 0.08);
}

.header-home-menu__link:active {
  transform: scale(0.985);
}

.header-home-menu__link--active {
  border-color: rgba(5, 184, 125, 0.45);
  background: linear-gradient(180deg, rgba(5, 184, 125, 0.18) 0%, rgba(5, 184, 125, 0.08) 100%);
  color: var(--green);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 6px 16px rgba(5, 184, 125, 0.12);
}

.header-home-menu__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset;
}

.header-home-menu__icon svg {
  display: block;
}

.header-home-menu__icon--home {
  color: #a7f3d0;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.42) 0%, rgba(52, 211, 153, 0.28) 100%);
  border-color: rgba(16, 185, 129, 0.28);
}

.header-home-menu__icon--oge {
  color: #fbcfe8;
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.42) 0%, rgba(236, 72, 153, 0.28) 100%);
  border-color: rgba(244, 114, 182, 0.28);
}

.header-home-menu__icon--ege {
  color: #bbf7d0;
  background: linear-gradient(145deg, rgba(74, 222, 128, 0.38) 0%, rgba(16, 185, 129, 0.24) 100%);
  border-color: rgba(74, 222, 128, 0.28);
}

.header-home-menu__icon--trainers {
  color: #99f6e4;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.38) 0%, rgba(56, 189, 248, 0.22) 100%);
  border-color: rgba(45, 212, 191, 0.28);
}

.header-home-menu__icon--telemost {
  color: #c4b5fd;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.38) 0%, rgba(129, 140, 248, 0.24) 100%);
  border-color: rgba(167, 139, 250, 0.28);
}

.header-home-menu__icon--razbalka-oge {
  color: #fed7aa;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.42) 0%, rgba(244, 114, 182, 0.22) 100%);
  border-color: rgba(251, 146, 60, 0.3);
}

.header-home-menu__icon--razbalka-ege {
  color: #a7f3d0;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.38) 0%, rgba(16, 185, 129, 0.24) 100%);
  border-color: rgba(52, 211, 153, 0.28);
}

.header-home-menu__icon--calc {
  color: #bfdbfe;
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.38) 0%, rgba(37, 99, 235, 0.22) 100%);
  border-color: rgba(59, 130, 246, 0.28);
}

.header-home-menu__icon--python {
  color: #fde68a;
  background: linear-gradient(145deg, rgba(250, 204, 21, 0.38) 0%, rgba(59, 130, 246, 0.22) 100%);
  border-color: rgba(250, 204, 21, 0.28);
}

.header-home-menu__icon--kumir {
  color: #fdba74;
  background: linear-gradient(145deg, rgba(249, 115, 22, 0.38) 0%, rgba(234, 88, 12, 0.22) 100%);
  border-color: rgba(249, 115, 22, 0.28);
}

.header-home-menu__icon--turing {
  color: #cbd5e1;
  background: linear-gradient(145deg, rgba(100, 116, 139, 0.42) 0%, rgba(71, 85, 105, 0.28) 100%);
  border-color: rgba(148, 163, 184, 0.28);
}

.header-home-menu__icon--user {
  color: #bae6fd;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.38) 0%, rgba(14, 165, 233, 0.22) 100%);
  border-color: rgba(56, 189, 248, 0.28);
}

.header-home-menu__icon--admin {
  color: #fde68a;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.38) 0%, rgba(217, 119, 6, 0.22) 100%);
  border-color: rgba(245, 158, 11, 0.28);
}

.header-home-menu__icon--logout {
  color: #fecaca;
  background: linear-gradient(145deg, rgba(248, 113, 113, 0.38) 0%, rgba(239, 68, 68, 0.22) 100%);
  border-color: rgba(248, 113, 113, 0.28);
}

.header-home-menu__icon--login {
  color: #a7f3d0;
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.38) 0%, rgba(5, 150, 105, 0.22) 100%);
  border-color: rgba(16, 185, 129, 0.28);
}

.header-home-menu__icon--register {
  color: #bbf7d0;
  background: linear-gradient(145deg, rgba(34, 197, 94, 0.42) 0%, rgba(16, 185, 129, 0.28) 100%);
  border-color: rgba(34, 197, 94, 0.32);
}

.header-home-menu__icon--sitemap {
  color: #c4b5fd;
  background: linear-gradient(145deg, rgba(167, 139, 250, 0.38) 0%, rgba(129, 140, 248, 0.24) 100%);
  border-color: rgba(167, 139, 250, 0.28);
}

.header-home-menu__icon--contacts {
  color: #bae6fd;
  background: linear-gradient(145deg, rgba(56, 189, 248, 0.38) 0%, rgba(14, 165, 233, 0.22) 100%);
  border-color: rgba(56, 189, 248, 0.28);
}

.header-home-menu__icon--support {
  color: #fbcfe8;
  background: linear-gradient(145deg, rgba(244, 114, 182, 0.38) 0%, rgba(236, 72, 153, 0.22) 100%);
  border-color: rgba(244, 114, 182, 0.28);
}

.header-home-menu__icon--privacy {
  color: #fde68a;
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.38) 0%, rgba(217, 119, 6, 0.22) 100%);
  border-color: rgba(245, 158, 11, 0.28);
}

.header-home-menu__icon--cookies {
  color: #fed7aa;
  background: linear-gradient(145deg, rgba(251, 146, 60, 0.42) 0%, rgba(234, 88, 12, 0.22) 100%);
  border-color: rgba(251, 146, 60, 0.3);
}

.header-home-menu__icon--copyright {
  color: #cbd5e1;
  background: linear-gradient(145deg, rgba(100, 116, 139, 0.42) 0%, rgba(71, 85, 105, 0.28) 100%);
  border-color: rgba(148, 163, 184, 0.28);
}

.header-home-menu__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.header-home-menu__chevron {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.42;
  color: currentColor;
  transform: rotate(180deg);
}

.header-home-menu__link--button {
  font-family: inherit;
}

.header-home-menu__link--primary {
  border-color: rgba(5, 184, 125, 0.45);
  background: linear-gradient(180deg, rgba(5, 184, 125, 0.2) 0%, rgba(5, 184, 125, 0.1) 100%);
  color: var(--green);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 8px 20px rgba(5, 184, 125, 0.14);
}

.header-home-menu__link--oge {
  border-color: rgba(244, 114, 182, 0.18);
}

.header-home-menu__link--ege {
  border-color: rgba(74, 222, 128, 0.16);
}

.header-home-menu__link--telemost {
  border-color: rgba(167, 139, 250, 0.16);
}

.header-home-menu__link--razbalka-oge {
  border-color: rgba(251, 146, 60, 0.16);
}

.header-home-menu__link--razbalka-ege {
  border-color: rgba(52, 211, 153, 0.16);
}

.header-home-menu__link--neuroshka {
  margin-top: 0.15rem;
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(180deg, rgba(168, 85, 247, 0.22) 0%, rgba(124, 58, 237, 0.14) 100%);
  color: #f3e8ff;
}

[data-theme="light"] .header-home-menu__link {
  color: #1e293b;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.92) 100%);
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 4px 14px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .header-home-menu__link:hover {
  border-color: rgba(5, 150, 105, 0.22);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 253, 245, 0.88) 100%);
}

[data-theme="light"] .header-home-menu__link--active,
[data-theme="light"] .header-home-menu__link--primary {
  border-color: rgba(5, 150, 105, 0.28);
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.82) 100%);
  color: #047857;
}

[data-theme="light"] .header-home-menu__icon--home {
  color: #047857;
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.95) 0%, rgba(167, 243, 208, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--oge {
  color: #be185d;
  background: linear-gradient(145deg, rgba(251, 207, 232, 0.95) 0%, rgba(244, 114, 182, 0.2) 100%);
}

[data-theme="light"] .header-home-menu__icon--ege {
  color: #047857;
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.95) 0%, rgba(187, 247, 208, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--trainers {
  color: #0f766e;
  background: linear-gradient(145deg, rgba(204, 251, 241, 0.95) 0%, rgba(186, 230, 253, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--telemost {
  color: #6d28d9;
  background: linear-gradient(145deg, rgba(233, 213, 255, 0.95) 0%, rgba(221, 214, 254, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--razbalka-oge {
  color: #c2410c;
  background: linear-gradient(145deg, rgba(255, 237, 213, 0.95) 0%, rgba(254, 215, 170, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--razbalka-ege {
  color: #047857;
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.95) 0%, rgba(167, 243, 208, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--calc {
  color: #1d4ed8;
  background: linear-gradient(145deg, rgba(219, 234, 254, 0.95) 0%, rgba(191, 219, 254, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--python {
  color: #a16207;
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.95) 0%, rgba(219, 234, 254, 0.72) 100%);
}

[data-theme="light"] .header-home-menu__icon--kumir {
  color: #c2410c;
  background: linear-gradient(145deg, rgba(255, 237, 213, 0.95) 0%, rgba(254, 215, 170, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--turing {
  color: #475569;
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--user {
  color: #0369a1;
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95) 0%, rgba(186, 230, 253, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--admin {
  color: #b45309;
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--logout {
  color: #b91c1c;
  background: linear-gradient(145deg, rgba(254, 226, 226, 0.95) 0%, rgba(254, 202, 202, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--login,
[data-theme="light"] .header-home-menu__icon--register {
  color: #047857;
  background: linear-gradient(145deg, rgba(209, 250, 229, 0.95) 0%, rgba(167, 243, 208, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--sitemap {
  color: #6d28d9;
  background: linear-gradient(145deg, rgba(233, 213, 255, 0.95) 0%, rgba(221, 214, 254, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--contacts {
  color: #0369a1;
  background: linear-gradient(145deg, rgba(224, 242, 254, 0.95) 0%, rgba(186, 230, 253, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--support {
  color: #be185d;
  background: linear-gradient(145deg, rgba(251, 207, 232, 0.95) 0%, rgba(244, 114, 182, 0.2) 100%);
}

[data-theme="light"] .header-home-menu__icon--privacy {
  color: #b45309;
  background: linear-gradient(145deg, rgba(254, 243, 199, 0.95) 0%, rgba(253, 230, 138, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--cookies {
  color: #c2410c;
  background: linear-gradient(145deg, rgba(255, 237, 213, 0.95) 0%, rgba(254, 215, 170, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__icon--copyright {
  color: #475569;
  background: linear-gradient(145deg, rgba(241, 245, 249, 0.95) 0%, rgba(226, 232, 240, 0.82) 100%);
}

[data-theme="light"] .header-home-menu__link--neuroshka {
  color: #6b21a8;
  background: linear-gradient(180deg, rgba(233, 213, 255, 0.85) 0%, rgba(243, 232, 255, 0.65) 100%);
}

.header-home-menu__neuroshka-icon {
  font-size: 1.1rem;
  line-height: 1;
}

body.header-home-menu-open {
  overflow: hidden;
}

.page--oge-home .header-home-menu__panel {
  border-left-color: rgba(236, 72, 153, 0.28);
}

.page--oge-home .header-home-menu__link:hover,
.page--oge-home .header-home-menu__link--active {
  border-color: rgba(236, 72, 153, 0.4);
  background: rgba(236, 72, 153, 0.1);
  color: #f9a8d4;
}

.page--oge-home .header-home-menu__link--primary {
  border-color: rgba(236, 72, 153, 0.45);
  background: rgba(236, 72, 153, 0.16);
  color: #f472b6;
}

/* Станции: компактная шапка при зуме 130%+ (≈1540px на Full HD) */
@media (max-width: 1540px) {
  body.page--ege-home .header-home-burger,
  body.page--oge-home .header-home-burger {
    display: inline-flex;
  }

  body.page--ege-home .header--home:has(.header-home-burger),
  body.page--oge-home .header--home:has(.header-home-burger) {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand . right burger";
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap !important;
    padding: calc(0.45rem * var(--header-scale)) 0.75rem;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__logo,
  body.page--oge-home .header--home:has(.header-home-burger) .header__logo {
    display: none;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header-home-burger,
  body.page--oge-home .header--home:has(.header-home-burger) .header-home-burger {
    grid-area: burger;
    justify-self: end;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__brand,
  body.page--oge-home .header--home:has(.header-home-burger) .header__brand {
    grid-area: brand;
    width: auto;
    justify-content: flex-start;
    justify-self: start;
    min-width: 0;
    gap: 0.35rem;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__site-nav,
  body.page--oge-home .header--home:has(.header-home-burger) .header__site-nav {
    display: none !important;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__right,
  body.page--oge-home .header--home:has(.header-home-burger) .header__right {
    grid-area: right;
    width: auto;
    justify-content: flex-end;
    justify-self: end;
    padding: 0;
    border-radius: 0;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__trainers-nav--inline,
  body.page--ege-home .header--home:has(.header-home-burger) .header__auth,
  body.page--oge-home .header--home:has(.header-home-burger) .header__trainers-nav--inline,
  body.page--oge-home .header--home:has(.header-home-burger) .header__auth {
    display: none !important;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header-theme-controls,
  body.page--oge-home .header--home:has(.header-home-burger) .header-theme-controls {
    flex-shrink: 0;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__exam-toggle,
  body.page--oge-home .header--home:has(.header-home-burger) .header__exam-toggle {
    flex-shrink: 0;
    padding: 0.12rem;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__exam-toggle-btn,
  body.page--oge-home .header--home:has(.header-home-burger) .header__exam-toggle-btn {
    min-width: 2.35rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.6875rem;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .header__exam-toggle-btn--active,
  body.page--oge-home .header--home:has(.header-home-burger) .header__exam-toggle-btn--active {
    min-width: 2.45rem;
    padding: 0.34rem 0.6rem;
    font-size: 0.71875rem;
    transform: none;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .theme-cycle-toggle,
  body.page--oge-home .header--home:has(.header-home-burger) .theme-cycle-toggle {
    --theme-toggle-seg: 1.55rem;
    transform: none;
    transform-origin: center right;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .theme-cycle-toggle__label,
  body.page--oge-home .header--home:has(.header-home-burger) .theme-cycle-toggle__label {
    display: none;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .theme-cycle-toggle__option,
  body.page--oge-home .header--home:has(.header-home-burger) .theme-cycle-toggle__option {
    min-height: 1.85rem;
    padding: 0.2rem 0.15rem;
    gap: 0;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .theme-cycle-toggle__preview,
  body.page--oge-home .header--home:has(.header-home-burger) .theme-cycle-toggle__preview {
    width: 0.85rem;
    height: 0.85rem;
  }

  body.page--ege-home .header--home:has(.header-home-burger) .theme-cycle-toggle__preview-crown,
  body.page--oge-home .header--home:has(.header-home-burger) .theme-cycle-toggle__preview-crown {
    width: 8px;
    height: 8px;
  }
}

@media (max-width: 1200px) {
  .header-home-burger {
    display: inline-flex;
  }

  .header-home-burger[aria-expanded="true"] {
    opacity: 0.92;
  }

  .header--home:has(.header-home-burger) {
    display: grid !important;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "brand . right burger";
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap !important;
    padding: calc(0.45rem * var(--header-scale)) 0.75rem;
  }

  .header--home:has(.header-home-burger) .header__logo {
    display: none;
  }

  .header--home:has(.header-home-burger) .header-home-burger {
    grid-area: burger;
    justify-self: end;
  }

  .header--home:has(.header-home-burger) .header__brand {
    grid-area: brand;
    width: auto;
    justify-content: flex-start;
    justify-self: start;
    min-width: 0;
  }

  .header--home:has(.header-home-burger) .header__site-nav {
    display: none !important;
  }

  .header--home:has(.header-home-burger) .header__right {
    grid-area: right;
    width: auto;
    justify-content: flex-end;
    justify-self: end;
    padding: 0;
    border-radius: 0;
    gap: 0.35rem;
    flex-wrap: nowrap;
  }

  .header--home:has(.header-home-burger) .header__trainers-nav--inline,
  .header--home:has(.header-home-burger) .header__auth {
    display: none !important;
  }

  .header--home:has(.header-home-burger) .header-theme-controls {
    flex-shrink: 0;
  }

  .header--home:has(.header-home-burger) .header__exam-toggle {
    flex-shrink: 0;
    padding: 0.12rem;
  }

  .header--home:has(.header-home-burger) .header__exam-toggle-btn {
    min-width: 2.35rem;
    padding: 0.3rem 0.55rem;
    font-size: 0.6875rem;
  }

  .header--home:has(.header-home-burger) .header__exam-toggle-btn--active {
    min-width: 2.45rem;
    padding: 0.34rem 0.6rem;
    font-size: 0.71875rem;
    transform: none;
  }

  .header--home:has(.header-home-burger) .theme-cycle-toggle {
    --theme-toggle-seg: 1.55rem;
    transform: none;
    transform-origin: center right;
  }

  .header--home:has(.header-home-burger) .theme-cycle-toggle__label {
    display: none;
  }

  .header--home:has(.header-home-burger) .theme-cycle-toggle__option {
    min-height: 1.85rem;
    padding: 0.2rem 0.15rem;
    gap: 0;
  }

  .header--home:has(.header-home-burger) .theme-cycle-toggle__preview {
    width: 0.85rem;
    height: 0.85rem;
  }

  .header--home:has(.header-home-burger) .theme-cycle-toggle__preview-crown {
    width: 8px;
    height: 8px;
  }

  .header--home:has(.header-home-burger) .header__brand {
    gap: 0.35rem;
  }

  .page--home .oge-seo-nav {
    display: none;
  }

  .page--home .footer-home-bar__chip--ghost,
  .page--home .footer-home-bar__chip--primary {
    display: none;
  }

  .page--home .footer-home-bar__sep:has(+ .footer-home-bar__chip--ghost) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .header-home-menu__panel {
    animation: none;
  }
}

