    #heroClassicStage {
      pointer-events: auto !important;
    }
    #heroMathCanvas {
      pointer-events: auto !important;
      cursor: default;
    }
    @media (min-width: 768px) {
      .hero-classic-stage.desktop-active {
        display: block !important;
        position: absolute !important;
        inset: 0 !important;
        width: 100% !important;
        height: 100% !important;
        pointer-events: auto !important;
        z-index: 10 !important;
      }
    }


    /* ОВЕРЛЕЙ КАРТКИ ЗНАНЬ */
    #cubeInspectOverlay {
      position: fixed;
      inset: 0;
      z-index: 10000;
      pointer-events: none;
      display: flex;
      justify-content: flex-end;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    }
    #cubeInspectOverlay.is-open {
      pointer-events: auto;
      opacity: 1;
      visibility: visible;
    }
    #cubeInspectBackdrop {
      position: absolute;
      inset: 0;
      background: rgba(15, 23, 42, 0.42);
    }

    /* КАРТКА ЗА ЗАМОВЧУВАННЯМ (ТЕМНА ТЕМА) З АПАРАТНИМ ПРИСКОРЕННЯМ */
    #cubeInspectCard {
      position: relative;
      z-index: 10;
      width: 100%;
      max-width: 500px;
      height: 100%;
      background: linear-gradient(165deg, rgba(15, 23, 42, 0.98) 0%, rgba(10, 20, 38, 0.99) 100%);
      border-left: 1px solid rgba(56, 189, 248, 0.35);
      box-shadow: -15px 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.2);
      padding: 2.25rem 2.25rem 2rem;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transform: translate3d(100%, 0, 0);
      will-change: transform;
      transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease, border-color 0.25s ease;
      overflow-y: auto;
      color: #f1f5f9;
      box-sizing: border-box;
    }
    #cubeInspectCard,
    #cubeInspectCard * {
      font-family: 'Montserrat', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif !important;
    }
    #cubeInspectOverlay.is-open #cubeInspectCard {
      transform: translate3d(0, 0, 0);
    }

    /* КАРТКА ДЛЯ СВІТЛОЇ ТЕМИ */
    html:not(.dark) #cubeInspectCard {
      background: linear-gradient(165deg, #ffffff 0%, #f0f9ff 100%);
      border-left: 1px solid rgba(2, 132, 199, 0.28);
      box-shadow: -15px 0 50px rgba(15, 23, 42, 0.14), 0 0 30px rgba(2, 132, 199, 0.12);
      color: #0f172a;
    }

    /* ЕЛЕГАНТНЕ СВІТЛОВЕ ВИДІЛЕННЯ КАТЕГОРІЇ (БЕЗ ГРУБИХ ПРЯМОКУТНИКІВ З ФОНОМ) */
    .cube-category-header {
      display: inline-flex;
      align-items: center;
      gap: 0.65rem;
      padding: 0;
      background: transparent;
      border: none;
    }
    .cube-category-pip {
      width: 9px;
      height: 9px;
      border-radius: 9999px;
      background: #38bdf8;
      box-shadow: 0 0 10px #38bdf8, 0 0 18px rgba(56, 189, 248, 0.8);
      animation: categoryPipPulse 2.4s ease-in-out infinite alternate;
    }
    html:not(.dark) .cube-category-pip {
      background: #0284c7;
      box-shadow: 0 0 10px #0284c7, 0 0 18px rgba(2, 132, 199, 0.6);
    }
    @keyframes categoryPipPulse {
      0% { transform: scale(0.9); opacity: 0.8; }
      100% { transform: scale(1.2); opacity: 1; }
    }
    .cube-category-label {
      font-size: 0.86rem;
      font-weight: 800;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      background: linear-gradient(135deg, #38bdf8 0%, #a5b4fc 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    html:not(.dark) .cube-category-label {
      background: linear-gradient(135deg, #0284c7 0%, #4338ca 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .cube-close-btn {
      width: 38px;
      height: 38px;
      border-radius: 9999px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(30, 41, 59, 0.65);
      border: 1px solid rgba(148, 163, 184, 0.25);
      color: #94a3b8;
      cursor: pointer;
      transition: all 0.2s ease;
    }
    html:not(.dark) .cube-close-btn {
      background: rgba(241, 245, 249, 0.85);
      border-color: rgba(203, 213, 225, 0.7);
      color: #64748b;
    }
    .cube-close-btn:hover {
      background: rgba(239, 68, 68, 0.15);
      border-color: rgba(239, 68, 68, 0.4);
      color: #ef4444;
      transform: scale(1.05);
    }

    .cube-badge-glow {
      min-width: 68px;
      min-height: 68px;
      max-width: 68px;
      max-height: 68px;
      border-radius: 18px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: linear-gradient(135deg, rgba(56, 189, 248, 0.16) 0%, rgba(129, 140, 248, 0.16) 100%);
      border: 1.5px solid rgba(56, 189, 248, 0.45);
      color: #38bdf8;
      font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
      font-weight: 900;
      line-height: 1;
      text-align: center;
      box-shadow: 0 0 25px rgba(56, 189, 248, 0.25);
      overflow: visible;
      flex-shrink: 0;
    }
    html:not(.dark) .cube-badge-glow {
      background: linear-gradient(135deg, rgba(2, 132, 199, 0.12) 0%, rgba(99, 102, 241, 0.12) 100%);
      border-color: rgba(2, 132, 199, 0.45);
      color: #0284c7;
      box-shadow: 0 0 25px rgba(2, 132, 199, 0.18);
    }

    .cube-card-title {
      font-size: 1.45rem;
      font-weight: 800;
      line-height: 1.25;
      letter-spacing: -0.02em;
      color: #ffffff;
      margin: 0;
    }
    html:not(.dark) .cube-card-title {
      color: #0f172a;
    }

    /* ФОРМУЛА В ОКРЕМОМУ ПІДРЯДКУ З ЧИСТИМ ЛЕГКИМ НАКРЕСЛЕННЯМ (БЕЗ ЖИРНОСТІ 900) */
    .cube-badge-glow {
      font-family: 'Noto Sans Math', 'Montserrat', sans-serif !important;
    }
    .cube-card-formula {
      font-family: 'Noto Sans Math', 'Montserrat', sans-serif !important;
      font-size: 1.02rem;
      font-weight: 500;
      line-height: 1.35;
      color: #38bdf8;
      letter-spacing: 0.02em;
      margin-top: 0.25rem;
      white-space: nowrap;
    }
    html:not(.dark) .cube-card-formula {
      color: #0284c7;
    }

    /* GOOGLE MATH TYPOGRAPHY: ЗНАЧКИ ТА ФУНКЦІЇ БІЛЬШОГО РОЗМІРУ */
    .math-sym {
      font-family: 'Noto Sans Math', 'Montserrat', sans-serif !important;
      font-size: 1.24em;
      line-height: 1;
      vertical-align: -0.06em;
      font-weight: 500;
      display: inline-block;
    }
    .math-fn {
      font-family: 'Times New Roman', 'Cambria Math', 'Noto Serif', serif !important;
      font-size: 1.08em;
      font-weight: normal;
      font-style: italic;
      letter-spacing: 0.02em;
      display: inline-block;
      white-space: nowrap;
    }

    /* АКУРАТНИЙ МАРКЕРОВАНИЙ СПИСОК ДЛЯ "ЦІКАВІ ФАКТИ" (ВИСЯЧИЙ ВІДСТУП + ІНТЕРВАЛИ МІЖ ПУНКТАМИ) */
    .cube-story-text {
      white-space: normal !important;
    }
    .cube-story-list {
      list-style: none;
      margin: 0;
      padding: 0;
      display: flex;
      flex-direction: column;
      gap: 0.72rem;
    }
    .cube-story-item {
      display: grid;
      grid-template-columns: 0.7rem 1fr;
      column-gap: 0.5rem;
      align-items: start;
      line-height: 1.56;
    }
    .cube-story-bullet {
      display: inline-block;
      width: 5px;
      height: 5px;
      border-radius: 50%;
      background-color: currentColor;
      margin-top: 0.58em;
      justify-self: center;
      opacity: 0.88;
    }
    .cube-story-body {
      min-width: 0;
    }
        .math-badge-serif {
      font-family: 'Times New Roman', 'Cambria Math', serif;
      font-style: italic;
      line-height: 1;
    }
    .math-badge-zeta {
      font-family: 'Times New Roman', 'Cambria Math', serif;
      font-style: italic;
      font-size: 1.75rem;
      line-height: 1;
    }
    .math-rad-svg {
      display: inline-block;
      vertical-align: -0.16em;
      height: 1.22em;
      width: auto;
      overflow: visible;
    }
    .math-inline {
      font-family: 'Noto Sans Math', 'Montserrat', sans-serif !important;
      white-space: nowrap;
      font-size: 1.05em;
      font-weight: 500;
      display: inline-block;
      vertical-align: baseline;
    }

    /* GOOGLE / WIKIPEDIA MATH RADICAL TYPOGRAPHY (КВАДРАТНІ ТА КУБІЧНІ КОРЕНІ) */
    .math-rad {
      display: inline-flex;
      align-items: baseline;
      white-space: nowrap;
      line-height: 1;
      font-family: 'Times New Roman', 'Cambria Math', 'Noto Serif', serif;
    }
    .math-rad-sym {
      font-family: 'Times New Roman', 'Cambria Math', 'Noto Serif', serif;
      font-style: normal;
      font-weight: normal;
      font-size: 1.15em;
      line-height: 1;
      vertical-align: -0.04em;
    }
    .math-rad-val {
      text-decoration: overline;
      text-decoration-thickness: max(1.3px, 0.08em);
      padding-left: 0.5px;
      line-height: 1;
    }
    .math-rad-idx {
      font-family: 'Times New Roman', 'Cambria Math', 'Noto Serif', serif;
      font-size: 0.58em;
      font-weight: 700;
      margin-right: -0.28em;
      vertical-align: 0.55em;
      line-height: 1;
    }

    /* ВЕКТОРНА ТИПОГРАФІКА */
    .math-vec {
      display: inline-block;
      position: relative;
      font-style: italic;
      padding-top: 0.15em;
      line-height: 1;
    }
    .math-vec::before {
      content: '→';
      position: absolute;
      top: -0.42em;
      left: 50%;
      transform: translateX(-50%) scaleX(0.85);
      font-style: normal;
      font-size: 0.72em;
      line-height: 1;
      font-family: 'Noto Sans Math', 'Montserrat', sans-serif;
    }

    /* ДИСПЛЕЙНА ФОРМУЛА З НОВОГО РЯДКА (DISPLAY MATH) */
    .math-display {
      display: block;
      margin: 0.75rem 0;
      padding: 0.65rem 1rem;
      font-family: 'Noto Sans Math', 'Montserrat', sans-serif !important;
      font-size: 1.05rem;
      font-weight: 400;
      line-height: 1.45;
      color: #38bdf8;
      background: rgba(56, 189, 248, 0.08);
      border-left: 3.5px solid #38bdf8;
      border-radius: 0 10px 10px 0;
      white-space: nowrap;
      overflow-x: auto;
    }
    html:not(.dark) .math-display {
      color: #0284c7;
      background: rgba(2, 132, 199, 0.08);
      border-left-color: #0284c7;
    }

    .cube-story-heading {
      font-size: 1.22rem;
      font-weight: 900;
      color: #38bdf8;
      letter-spacing: 0.05em;
      text-transform: uppercase;
      margin-bottom: 0.85rem;
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }
    html:not(.dark) .cube-story-heading {
      color: #0284c7;
    }

    .cube-story-text {
      font-size: 0.95rem;
      line-height: 1.68;
      color: #cbd5e1;
      white-space: pre-line;
      margin: 0;
      font-weight: 500;
    }
    html:not(.dark) .cube-story-text {
      color: #334155;
    }

    .cube-fact-box {
      margin-top: 1.25rem;
      padding: 1rem 1.15rem;
      border-radius: 14px;
      background: rgba(30, 41, 59, 0.6);
      border-left: 3.5px solid #0284c7;
    }
    html:not(.dark) .cube-fact-box {
      background: rgba(241, 245, 249, 0.8);
      border-left-color: #0284c7;
    }
    .cube-fact-label {
      font-size: 0.78rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      color: #38bdf8;
    }
    html:not(.dark) .cube-fact-label {
      color: #0284c7;
    }
    .cube-fact-text {
      font-size: 0.88rem;
      line-height: 1.55;
      color: #94a3b8;
      margin: 0;
      font-weight: 500;
    }
    html:not(.dark) .cube-fact-text {
      color: #475569;
    }

    .cube-close-footer-btn {
      width: 100%;
      padding: 0.85rem;
      border-radius: 14px;
      background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
      color: #ffffff;
      font-weight: 800;
      font-size: 0.95rem;
      border: none;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      transition: all 0.22s ease;
      box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
    }
    .cube-close-footer-btn:hover {
      box-shadow: 0 6px 24px rgba(56, 189, 248, 0.55);
      transform: translateY(-2px);
    }

    /* ВЕРТИКАЛЬНІ ДВОПОВЕРХОВІ ДРОБИ (MATH FRACTIONS) */
    .math-frac {
      display: inline-flex;
      flex-direction: column;
      vertical-align: middle;
      text-align: center;
      padding: 0 0.22em;
      line-height: 1.05;
      font-size: 0.92em;
    }
    .math-num {
      display: block;
      border-bottom: 1.6px solid currentColor;
      padding: 0 0.15em 0.12em 0.15em;
    }
    .math-den {
      display: block;
      padding: 0.12em 0.15em 0 0.15em;
    }
