/* ====================== МОБИЛЬНАЯ АДАПТАЦИЯ АКАДЕМИИ ====================== */

.hamburger {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: background .15s;
  flex-shrink: 0;
}
.hamburger:hover { background: rgba(255,255,255,.15); }

.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 49;
}
.sidebar-overlay.active { display: block; }

@media (max-width: 768px) {

  /* === LAYOUT: одна колонка, sidebar убран из потока === */
  .app {
    display: flex !important;
    flex-direction: column !important;
    min-height: 100vh;
  }

  .sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 280px !important;
    height: 100vh !important;
    z-index: 50 !important;
    transform: translateX(-100%) !important;
    transition: transform .25s ease !important;
    box-shadow: 4px 0 24px rgba(0,0,0,.18);
    overflow-y: auto;
  }
  .sidebar.open {
    transform: translateX(0) !important;
  }

  .main {
    flex: 1 !important;
    width: 100% !important;
    min-height: 100vh;
    margin-left: 0 !important;
  }

  /* === TOPBAR === */
  .topbar {
    padding: 12px 16px !important;
    gap: 10px;
  }
  .hamburger {
    display: flex !important;
    align-items: center;
  }
  .topbar .crumb { font-size: 12px; flex: 1; min-width: 0; }
  .topbar .progress-pill {
    font-size: 11px !important;
    padding: 4px 10px !important;
    white-space: nowrap;
  }

  /* === CONTENT === */
  .content {
    padding: 12px 14px 80px !important;
    max-width: 100% !important;
  }

  .page-title { font-size: 20px !important; }
  .page-subtitle { font-size: 13px !important; }

  .quiz-actions {
    flex-direction: column !important;
    gap: 8px;
  }
  .quiz-actions .btn,
  .quiz-actions .btn-secondary,
  .quiz-actions .btn-ghost {
    width: 100% !important;
    text-align: center;
    box-sizing: border-box;
  }

  .content table {
    display: block !important;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  .quiz-option { padding: 12px 14px !important; font-size: 14px !important; }

  .nav-buttons {
    flex-direction: column !important;
    gap: 8px;
  }
  .nav-buttons .btn { width: 100% !important; }
}

@media (max-width: 480px) {
  .topbar { padding: 10px 12px !important; }
  .content { padding: 10px 10px 80px !important; }
  .page-title { font-size: 18px !important; }
}
