  
  /* Удалите фон шапки */
  header {
    background: none !important;
    padding: 20px 0 0 !important; /* ВЕРХ 20px | НИЗ 0 */
    overflow-y: auto;
  }
  
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Minecraft', Arial, sans-serif;
}

body {
    background: url('images/2025-05-01_11.47.55.png') no-repeat center center fixed;
    background-size: cover;
    color: #ffffff;
    position: relative;
    overflow-x: hidden;
}

body:before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(14, 14, 19, 0.85);
    z-index: -1;
}
/* Анимация падающих книг */
.falling-book {
    position: absolute;
    width: 40px;
    height: 40px;
    background: url('https://i.imgur.com/JqYeZ7m.png') no-repeat;
    background-size: contain;
    z-index: -1;
    animation: falling linear infinite;
    opacity: 0.7;
}

@keyframes falling {
    0% {
        top: -50px;
        transform: rotate(0deg);
    }
    100% {
        top: 100vh;
        transform: rotate(360deg);
    }
}

/* Шапка */
header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 0 0;
  min-height: auto; /* Убираем фиксированную высоту */
}

.logo-container {
    text-align: center;
    padding-top: 20px;
    order: 1; /* Первый элемент */
    margin-bottom: 5px;
  }
  
  .logo-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: inline-block;
  }
  
  .logo-btn img {
    max-width: 692px;
    width: 100%;
    height: auto;
  }

/* Навигация */
.nav-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
    position: relative;
    z-index: 10;
    margin: 0 auto 5px !important; /* Убираем верхний отступ, оставляем снизу 5px */
    padding: 20px 20px;
    margin-bottom: 0; /* Убираем отступ снизу */
    order: 2;
  }
  
  .nav-btn {
    display: inline-block;
    padding: 10px 25px;
    background: transparent;
    color: white;
    border: 3px solid #1100ff;
    border-radius: 20px;
    font-size: 24px;
    text-decoration: none;
    transition: all 0.3s;
    min-width: 150px;
    text-align: center;
  }
  .nav-btn:hover {
    background-color: #6b6b6b; 
    transform: scale(1.02); 
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); 
  }
  .nav-btn:active {
    transform: scale(0.98); 
  }
  
/* Основной контент */
.rules-container {
  max-width: 800px;
  margin: 10px auto 30px;
  padding: 20px;
  background: rgba(30, 30, 40, 0.8);
  border-radius: 15px;
  border: 2px solid #1100ff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.459);
  order: 3;
}

h1 {
  text-align: center;
  color: #d7d4ff;
  margin-bottom: 30px;
  font-size: 2.2rem;
}

/* Аккордеон правил */
.rules-accordion {
  margin-bottom: 30px;
}

.rule-category {
  margin-bottom: 10px;
}

.rule-header {
  background: rgba(70, 70, 90, 0.7);
  padding: 15px 20px;
  cursor: pointer;
  border-left: 4px solid #1100ff;
  font-size: 1.3rem;
  font-weight: bold;
  transition: all 0.3s;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rule-header:hover {
  background: rgba(90, 90, 110, 0.7);
}

.rule-header::after {
  content: '+';
  font-size: 1.5rem;
  transition: transform 0.3s;
}

.rule-header.active::after {
  content: '-';
}

.rule-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(40, 40, 50, 0.6);
}

.rule-content-inner {
  padding: 20px;
}

.rule-item {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.rule-item::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #d7d4ff;
  font-weight: bold;
}

.sub-rule {
  margin-left: 20px;
  margin-top: 10px;
  padding-left: 15px;
  border-left: 2px solid #555;
}

/* Футер */
footer {
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  color: #aaa;
}

/* Адаптивность */
@media (max-width: 768px) {
  .nav-container {
      flex-direction: column;
      align-items: center;
  }
  
  .rules-container {
      margin: 0 15px;
  }
  
  .rule-header {
      font-size: 1.1rem;
  }
}



