:root {
  --bg-primary: #080808;
  --accent: #ff6b00;
  --accent-alt: #ff8c1a;
  --text-light: #f0f0f0;
  --panel-bg: rgba(30, 30, 30, 0.75);
}

body {
  background: var(--bg-primary);
  font-family: 'Share Tech Mono', monospace;
  color: var(--text-light);
  margin: 0;
  overflow-x: hidden;
}

.hud-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 25px;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--accent);
}

.logo {
  height: 42px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.onion-btn {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.menu-toggle {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.container {
  display: flex;
  gap: 25px;
  padding: 25px;
}

.sidebar {
  width: 240px;
  background: var(--panel-bg);
  border-right: 1px solid var(--accent);
  padding: 20px;
}

.sidebar.open {
  transform: translateX(0);
}

.nav-title {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--accent);
}

.nav-link {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin: 5px 0;
  transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.status-panel {
  margin-top: 25px;
  font-size: 13px;
  color: #aaa;
}

.status-panel .online {
  color: #0f0;
}

main {
  flex: 1;
  min-width: 0;
}

.panel {
  margin-bottom: 40px;
  background: var(--panel-bg);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 0 10px rgba(255,107,0,0.2);
}

.panel-label {
  color: var(--accent);
  font-size: 13px;
  margin-bottom: 6px;
}

.card-grid {
  display: grid;
  gap: 20px;
}

.card-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.guide-card {
  background: rgba(20, 20, 20, 0.9);
  border-radius: 8px;
  padding: 15px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.guide-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(255,107,0,0.4);
}

.guide-card.primary { border-left: 3px solid var(--accent); }
.guide-card.success { border-left: 3px solid #00ff6a; }
.guide-card.warning { border-left: 3px solid #ffd500; }

.card-icon {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--accent);
}

.copy-btn {
  background: var(--accent-alt);
  color: #000;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: bold;
}

.site-footer {
  background: rgba(10, 10, 10, 0.9);
  padding: 40px 20px;
  border-top: 1px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-col h3 {
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 6px;
}

.footer-col a {
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #777;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 15px;
  }
  .sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    height: 100%;
    width: 230px;
    background: rgba(15,15,15,0.95);
    transform: translateX(-100%);
    transition: 0.3s;
    z-index: 1000;
  }
  .sidebar.open {
    transform: translateX(0);
  }
}
/* Logo & header adjustments */
.logo {
  height: 64px;
  transition: transform 0.3s;
}
.logo:hover {
  transform: scale(1.06);
}

/* Anchor link styling */
a {
  color: var(--accent);
  text-decoration: none;
  transition: 0.25s;
}
a:hover {
  color: var(--accent-alt);
  text-shadow: 0 0 10px var(--accent);
}

/* Hero section */
.hero-section {
  text-align: center;
  padding: 80px 20px 60px;
  background: radial-gradient(circle at center, rgba(255,107,0,0.12) 0%, transparent 70%);
  border-radius: 10px;
  box-shadow: 0 0 40px rgba(255,107,0,0.2);
  margin-bottom: 50px;
  position: relative;
}

.hero-title {
  font-size: 2.8rem;
  color: var(--text-light);
  text-shadow: 0 0 12px rgba(255,107,0,0.55);
  margin-bottom: 15px;
}

.hero-title .highlight {
  color: var(--accent);
}

.lead {
  max-width: 720px;
  margin: 0 auto 25px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #ccc;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.cta-btn {
  background: var(--accent);
  border: none;
  color: #000;
  padding: 12px 28px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.cta-btn:hover {
  background: var(--accent-alt);
  transform: translateY(-2px);
}

.cta-link {
  font-size: 0.95rem;
  color: #aaa;
}
.cta-link:hover {
  color: var(--accent);
  text-shadow: 0 0 8px var(--accent);
}

/* Mobile typography adjustments */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .lead {
    font-size: 1rem;
  }
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.footer-col.footer-brand {
  max-width: 280px;
}

.footer-brand h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: #aaa;
}
/* Гамбургер скрыт на десктопе */
.menu-toggle {
  display: none;
}

/* Адаптив под мобильные устройства */
@media (max-width: 900px) {
  /* Гамбургер показывается */
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .container {
    flex-direction: column;
    padding: 15px;
  }

  /* Сайдбар адаптивный */
  .sidebar {
    position: fixed;
    top: 65px;
    left: 0;
    height: 100%;
    width: 230px;
    background: rgba(15, 15, 15, 0.98);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1000;
    box-shadow: 5px 0 10px rgba(0,0,0,0.4);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  /* Затемнение фона при открытом меню */
  .sidebar.open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 230px;
    width: calc(100% - 230px);
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 500;
  }

  main {
    margin-top: 15px;
  }

  /* Корректировка логотипа и кнопок */
  .logo {
    height: 56px;
  }

  .onion-btn {
    padding: 9px 15px;
    font-size: 0.9rem;
  }

  .hud-header {
    position: sticky;
    top: 0;
    z-index: 1100;
  }
}
