/* ==========================================================
   RUSTY NAIL — BASE
   Токены, reset, общие утилиты
   ========================================================== */

:root {
  /* ===== ФОНЫ ===== */
  --bg: #1a1716;
  --bg-1: #211e1d;
  --bg-2: #282423;
  --bg-3: #302b2a;

  /* ===== ГРАНИЦЫ ===== */
  --border: rgba(255, 255, 255, 0.07);
  --border-2: rgba(255, 255, 255, 0.12);

  /* ===== ТЕКСТ ===== */
  --text: #f5f3f0;
  --text-2: #a8a19b;
  --text-3: #6e6761;

  /* ===== АКЦЕНТ ===== */
  --accent: #e0342c;
  --accent-hi: #f0483e;
  --accent-2: #ff5a3d;
  --accent-08: rgba(224, 52, 44, 0.08);
  --accent-15: rgba(224, 52, 44, 0.15);
  --accent-30: rgba(224, 52, 44, 0.30);
  --accent-grad: linear-gradient(135deg, #e0342c 0%, #ff5a3d 100%);

  /* ===== СТАТУСЫ ===== */
  --green: #7bc96f;

  /* ===== ГЕОМЕТРИЯ ===== */
  --r: 6px;

  /* ===== ШРИФТЫ ===== */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

/* ==========================================================
   RESET
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 500;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button, input, select, textarea { font-family: inherit; }

img { max-width: 100%; display: block; }

::selection { background: var(--accent-30); color: #fff; }

/* Скроллбар */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bg-3); border-radius: 100px; }
::-webkit-scrollbar-thumb:hover { background: var(--bg-2); }

/* ==========================================================
   АНИМАЦИИ
   ========================================================== */
@keyframes fadeInUp {
  0%   { opacity: 0; transform: translateY(8px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp .5s cubic-bezier(.22, 1, .36, 1) both;
}

.fade-in.delay-1 { animation-delay: .06s; }
.fade-in.delay-2 { animation-delay: .12s; }
.fade-in.delay-3 { animation-delay: .18s; }

.anim-item {
  animation: fadeInUp .4s cubic-bezier(.22, 1, .36, 1) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================
   ЛЕЙАУТ
   ========================================================== */
.main {
  flex: 1;
  padding: 20px 0 60px;
}

.layout {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 18px;
  align-items: start;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: 84px;
}

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 640px) {
  .layout { padding: 0 14px; }
  .main { padding: 14px 0 60px; }
}

/* ==========================================================
   EMPTY STATE
   ========================================================== */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
  grid-column: 1 / -1;
}

.empty-state i {
  font-size: 2.5rem;
  color: var(--text-3);
  margin-bottom: 14px;
  opacity: 0.5;
}

.empty-state-title {
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
}

.empty-state-text {
  font-size: 13px;
  color: var(--text-3);
  font-weight: 500;
}

/* ==========================================================
   КОНТЕЙНЕР ДЛЯ STUB-СТРАНИЦ
   ========================================================== */
.stub-container {
  max-width: 720px;
  margin: 60px auto;
  padding: 0 24px;
}