/* =========================
   ОБЩИЕ НАСТРОЙКИ
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  background-color: #0e0b14;
  color: #e4e2eb;
  font-family: 'Poppins', sans-serif;
  line-height: 1.8;
  text-align: center;
}

/* =========================
   ШАПКА (без изменений)
========================= */
header {
  background-color: #1b1429;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2.5rem;
  border-bottom: 2px solid #3a2b58;
  position: sticky;
  top: 0;
  z-index: 10;
}

.logo a {
  color: #c7a7ff;
  font-weight: 700;
  font-size: 1.6rem;
  text-decoration: none;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar a {
  text-decoration: none;
  color: #e4e2eb;
  font-weight: 500;
  transition: 0.3s;
}

.navbar a:hover,
.navbar a.active {
  color: #c7a7ff;
}

/* =========================
   КНОПКИ
========================= */
.btn-connect,
.btn-secondary {
  display: inline-block;
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 2rem;
  border-radius: 8px;
  transition: 0.3s;
  margin: 1rem;
}

.btn-connect {
  background-color: #4b2e83;
  color: #fff;
}

.btn-connect:hover {
  background-color: #5c3c9b;
}

.btn-secondary {
  background-color: transparent;
  border: 1px solid #5c3c9b;
  color: #c7a7ff;
}

.btn-secondary:hover {
  background-color: #3a2b58;
}

/* =========================
   КОНТЕЙНЕРЫ И СЕКЦИИ
========================= */
.container {
  max-width: 1100px;
  margin: 5rem auto;
  padding: 0 1.5rem;
}

section {
  margin-bottom: 5rem;
}

/* Главный заголовок и подзаголовок */
.page-header {
  margin-bottom: 3.5rem;
}

.page-header h1 {
  color: #c7a7ff;
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
}

.page-header .lead {
  color: #b8b3cc;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.9;
}

/* =========================
   КАРТОЧКИ
========================= */
.card,
.job-card,
.news-item,
.rule-card,
.team-card,
.contact-box {
  background-color: #1b1429;
  border: 1px solid #3a2b58;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2rem auto;
  max-width: 800px;
  transition: all 0.3s ease;
}

.card:hover,
.job-card:hover,
.news-item:hover,
.rule-card:hover,
.team-card:hover,
.contact-box:hover {
  background-color: #241a38;
  transform: translateY(-3px);
}

/* Заголовки и текст внутри карточек */
.card h2,
.job-card h3,
.news-item h3,
.rule-card h3,
.team-card h3,
.contact-box h2 {
  color: #c7a7ff;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.card p,
.job-card p,
.news-item p,
.rule-card p,
.team-card p,
.contact-box p {
  color: #bcb6d1;
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

/* =========================
   ГАЛЕРЕЯ
========================= */
.gallery-empty {
  background-color: #1b1429;
  border: 1px solid #3a2b58;
  border-radius: 10px;
  padding: 6rem 2rem;
  margin: 4rem auto;
  max-width: 800px;
}

.gallery-empty h2 {
  color: #c7a7ff;
  margin-bottom: 1rem;
  font-size: 1.8rem;
}

.gallery-empty p {
  color: #b8b3cc;
  font-size: 1.1rem;
}

/* =========================
   CTA
========================= */
.cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* =========================
   ПОДВАЛ
========================= */
footer {
  text-align: center;
  padding: 2.5rem 1rem;
  background-color: #1b1429;
  border-top: 2px solid #3a2b58;
  color: #b8b3cc;
  margin-top: 5rem;
}

footer a {
  color: #c7a7ff;
  text-decoration: none;
  transition: 0.3s;
}

footer a:hover {
  color: #fff;
}

/* =========================
   ГАМБУРГЕР-МЕНЮ (АНИМАЦИЯ)
========================= */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  opacity: 0;
  transform: translateY(-20px);
  animation: burgerFadeIn 0.8s forwards;
}

.burger span {
  height: 3px;
  width: 25px;
  background: #e4e2eb;
  margin-bottom: 5px;
  border-radius: 3px;
  transition: all 0.5s ease;
}

.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.burger.open span:nth-child(2) {
  opacity: 0;
}
.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Анимация появления */
@keyframes burgerFadeIn {
  0% {opacity: 0; transform: translateY(-20px);}
  100% {opacity: 1; transform: translateY(0);}
}

/* =========================
   МОБИЛЬНОЕ МЕНЮ
========================= */
@media (max-width: 768px) {
  .navbar ul {
    flex-direction: column;
    background-color: #1b1429;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    display: flex;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    border-top: 2px solid #3a2b58;
    padding: 1.5rem 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
  }

  .navbar.active ul {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .burger {
    display: flex;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
}

/* =========================
   ПЛАВНЫЕ HOVER ЭФФЕКТЫ
========================= */
a, button {
  transition: 0.3s ease;
}

.job-card h3,
.rule-card h3 {
  color: #c7a7ff;
  margin-bottom: 0.5rem;
}

.job-card p,
.rule-card p {
  color: #bcb6d1;
  font-size: 1rem;
  line-height: 1.6;
}