body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
  overflow-x: hidden;
}

.container {
  max-width: 960px;
  padding: 2rem;
  margin: 0 auto;
}

/* Навигация (не изменяем размеры) */
.nav {
  width: 100%;
  background: #111;
  position: fixed;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
}

.nav-link {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link[active] {
  color: var(--accent-color, #00ffff);
}

/* AUTH Buttons */
.auth-btn {
  padding: 0.5rem 1rem;
  background: var(--accent-color, #00ffff);
  color: #000;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.auth-btn:hover {
  background: #00cccc;
}

/* Хедер с частицами */
header#hero {
  position: relative;
  background: #0f0f0f;
  padding-top: 0rem; /* отступ под навигацией */
  overflow: hidden;
  z-index: 1;
}
#faq-hero {
  margin-top: -40px; /* подними блок вверх */
}



.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent-color, #00ffff);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #ccc;
}

.hero-image {
  max-width: 300px;
  width: 100%;
  margin: 2rem auto;
  display: block;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0, 255, 255, 0.2);
}

.hero-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-color, #00ffff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}
.hero-btn:hover {
  background: #00cccc;
}

/* FAQ Секция */
#faq {
  background-color: #1a1a1a;
  padding: 4rem 2rem;
  z-index: 1;
  position: relative;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: var(--accent-color, #00ffff);
}

.faq-grid {
  display: grid;
  gap: 1.5rem;
}

.faq-item {
  background: #222;
  border-left: 4px solid var(--accent-color, #00ffff);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  transition: background 0.3s ease;
}

.faq-item:hover {
  background: #2a2a2a;
}

.faq-question {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  width: 100%;
  padding: 0;
  margin-bottom: 0.5rem;
}

.faq-answer {
  display: none;
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

/* Модальные окна */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.modal-content {
  background: #111;
  padding: 2rem;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
}

.modal-content h2 {
  color: var(--accent-color, #00ffff);
  margin-bottom: 1rem;
}

.modal-content input {
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  background: #222;
  color: #fff;
}

.modal-content button {
  width: 100%;
  padding: 0.75rem;
  background: var(--accent-color, #00ffff);
  color: #000;
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* Кнопка закрытия */
.close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: #ccc;
  font-size: 1.5rem;
  cursor: pointer;
}
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0; /* ниже всего */
  pointer-events: none; /* клики проходят сквозь */
}

#particles-js canvas {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
header#hero,
#faq,
.nav,
.container,
.faq-grid,
.faq-item {
  position: relative;
  z-index: 10; /* достаточно высокий, чтобы быть поверх */
}

/* Адаптивность */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-image {
    max-width: 250px;
  }
}