    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
      background: #f5f7fb;
      color: #1e293b;
      line-height: 1.4;
      overflow-x: hidden;
    }

    /* ---------- APP LAYOUT (основная структура) ---------- */
    .app {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* ========== HEADER (адаптивный, стильный) ========== */
    .header {
      background: #ffffff;
      box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
      position: sticky;
      top: 0;
      z-index: 20;
      backdrop-filter: blur(0px);
      border-bottom: 1px solid #eef2f6;
    }

    .header__container {
      max-width: 100%;
      margin: 0 auto;
      padding: 0 1.25rem;
      height: 70px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 1rem;
    }

    /* левая группа: бургер + лого */
    .header__left {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    /* кнопка бургер (только на мобильных/планшетах, на десктопе скрыта) */
    .burger-btn {
      background: transparent;
      border: none;
      cursor: pointer;
      width: 50px;
      height: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      transition: background 0.2s ease;
      color: #3a80f1;
    }

    .burger-btn:hover {
      background: #f1f5f9;
    }

    .burger-icon {
      width: 28px;
      height: 20px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      position: relative;
    }

    .burger-icon span {
      display: block;
      height: 2.5px;
      width: 100%;
      background: currentColor;
      border-radius: 4px;
      transition: all 0.25s ease;
    }

    /* анимация открытия/закрытия бургера (опционально для состояния open) */
    .burger-btn.active .burger-icon span:nth-child(1) {
      transform: translateY(10px) rotate(45deg);
    }
    .burger-btn.active .burger-icon span:nth-child(2) {
      opacity: 0;
      transform: scaleX(0);
    }
    .burger-btn.active .burger-icon span:nth-child(3) {
      transform: translateY(-11px) rotate(-45deg);
    }

    /* логотип */
    .logo {
      font-weight: 700;
      font-size: 1.5rem;
      letter-spacing: -0.02em;
      background: linear-gradient(135deg, #3e78f6, #3a6aed);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
      text-decoration: none;
    }

    /* десктопная навигация (по умолчанию скрыта на мобильных) */
    .nav-desktop {
      display: none;
      align-items: center;
      gap: 1.75rem;
    }

    .nav-desktop a {
      text-decoration: none;
      font-weight: 500;
      color: #334155;
      transition: color 0.2s;
    }

    .nav-desktop a:hover {
      color: #2563eb;
    }

    /* правая зона (иконка/аватар) */
    .header__right {
      display: flex;
      align-items: center;
      gap: 0.75rem;
    }

    .avatar {
      width: 40px;
      height: 40px;
      background: linear-gradient(145deg, #e2e8f0, #cbd5e1);
      border-radius: 999px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-weight: 600;
      color: #1e293b;
      cursor: pointer;
      transition: transform 0.1s;
    }

    /* ========== SIDEBAR (мобильное боковое меню) ========== */
    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      width: 280px;
      max-width: 85vw;
      height: 100%;
      background: #ffffff;
      box-shadow: 2rem 0 3rem rgba(0, 0, 0, 0.1);
      z-index: 30;
      transform: translateX(-100%);
      transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
      display: flex;
      flex-direction: column;
      will-change: transform;
    }

    .sidebar.open {
      transform: translateX(0);
    }

    /* затемнение (оверлей) */
    .sidebar-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(3px);
      z-index: 25;
      visibility: hidden;
      opacity: 0;
      transition: opacity 0.25s ease, visibility 0s linear 0.25s;
    }

    .sidebar-overlay.visible {
      visibility: visible;
      opacity: 1;
      transition: opacity 0.25s ease, visibility 0s linear 0s;
    }

    /* контент внутри сайдбара */
    .sidebar__header {
      padding: 1.5rem 1.25rem;
      border-bottom: 1px solid #edf2f7;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .sidebar__logo {
      font-weight: 700;
      font-size: 1.35rem;
      background: linear-gradient(135deg, #2563eb, #7c3aed);
      background-clip: text;
      -webkit-background-clip: text;
      color: transparent;
    }

    .close-sidebar {
      background: #f1f5f9;
      border: none;
      width: 36px;
      height: 36px;
      border-radius: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.5rem;
      cursor: pointer;
      color: #475569;
      transition: background 0.2s;
    }

    .close-sidebar:hover {
      background: #e2e8f0;
    }

    .sidebar__nav {
      flex: 1;
      padding: 1rem 0;
      display: flex;
      flex-direction: column;
    }

    .sidebar__nav a {
      padding: 0.9rem 1.5rem;
      text-decoration: none;
      font-size: 1rem;
      font-weight: 500;
      color: #334155;
      display: flex;
      align-items: center;
      gap: 0.875rem;
      transition: background 0.2s;
      border-left: 3px solid transparent;
    }

    .sidebar__nav a i.emoji-icon {
      font-style: normal;
      width: 24px;
      display: inline-block;
    }

    .sidebar__nav a:hover {
      background: #f8fafc;
      color: #2563eb;
      border-left-color: #2563eb;
    }

    /* простая секция с подвалом в сайдбаре */
    .sidebar__footer {
      padding: 1rem 1.5rem;
      border-top: 1px solid #edf2f7;
      font-size: 0.8rem;
      color: #64748b;
    }

    /* ========== ОСНОВНОЙ КОНТЕНТ (пример) ========== */
    .main-content {
      flex: 1;
      max-width: 1280px;
      margin: 0 auto;
      padding: 2rem 1.5rem;
      width: 100%;
    }

    .hero {
      background: white;
      border-radius: 1.5rem;
      padding: 2rem;
      box-shadow: 0 1px 3px rgba(0,0,0,0.05);
      border: 1px solid #eef2ff;
    }

    .hero h1 {
      font-size: 1.8rem;
      margin-bottom: 0.75rem;
    }

    .card-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 1.5rem;
      margin-top: 2rem;
    }

    .card {
      background: white;
      border-radius: 1rem;
      padding: 1.25rem;
      border: 1px solid #eef2ff;
      transition: all 0.2s;
    }

    .card h3 {
      margin-bottom: 0.5rem;
    }

    /* ========== АДАПТИВНОСТЬ (desktop first, но меню мобильное) ========== */
    /* Планшеты и десктоп: показываем горизонтальную навигацию, скрываем бургер */
    @media (min-width: 768px) {
      .burger-btn {
        display: none;
      }
      .nav-desktop {
        display: flex;
      }
      /* сайдбар на широких экранах не должен мешать, но оверлей и само меню остаются опционально.
         Чтобы меню появлялось только по клику — оставляем как есть (по желанию можно добавить медиа для трансформации).
         Поскольку это компонент с мобильным меню, на десктопе оно также может открываться,
         но обычно для чистоты кода оставляем как поведение оверлея. */
    }

    /* на очень маленьких устройствах чуть меньше отступы */
    @media (max-width: 480px) {
      .header__container {
        padding: 0 1rem;
        height: 60px;
      }
      .main-content {
        padding: 1.25rem;
      }
      .hero {
        padding: 1.25rem;
      }
      .hero h1 {
        font-size: 1.5rem;
      }
    }

    /* утилиты */
    .text-muted {
      color: #5b6e8c;
    }
    button {
      background: none;
      border: none;
    }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0,0,0,0);
      border: 0;
    }