@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:ital,wght@1,100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Gravitas+One&family=Jost:wght@200&family=Roboto+Condensed:ital,wght@0,100..900;1,100..900&family=Saira:ital,wght@0,100..900;1,100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Rubik+Scribble&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
}

/* === ХЕДЕР === */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: relative;
  height: 80px;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  backdrop-filter: blur(10px);
  border-radius: 0 0 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

/* === НАВИГАЦИЯ === */
.nav-menu a {
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
  font-family: "Roboto Condensed", sans-serif;
  font-optical-sizing: auto;
  font-weight: 300;
}

.nav-menu a:hover {
  color: #a0d8ff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.nav-menu ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

/* === ЛОГОТИП ПО ЦЕНТРУ === */
.logo-container {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(255, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 12px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.logo-container:hover {
  transform: translate(-50%, -50%) scale(1.03);
}

.logo {
  height: 50px;
  width: auto;
}

.logo:hover {
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

/* === ИКОНКИ СПРАВА: ТГ, ДИСКОРД === */
.header-right {
  display: flex;
  align-items: center;
  gap: 14px; /* одинаковый отступ между иконками */
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.header-icon img {
  width: 20px;
  height: 20px;
  object-fit: cover;
  filter: brightness(1.3) saturate(1.1);
}

.header-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
/* === МОБИЛЬНАЯ НИЖНЯЯ НАВИГАЦИЯ === */
.mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  /* Показываем только на маленьких экранах */
  .mobile-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 0 10px;
  }

  .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #1188ff;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    gap: 2px;
  }

  .nav-link:hover,
  .nav-link.active {
    color: #0e66cc;
  }

  .nav-link span {
    font-size: 0.7rem;
  }

  /* Убираем верхнее меню на мобильных */
  .nav-menu ul {
    display: none !important;
  }
}
/* === СТИЛИ ДЛЯ ПРАВИЛ === */
.rules-container {
  max-width: 900px;
  margin: 80px auto 100px;
  padding: 20px;
  color: #fff;
  font-family: "Jost", sans-serif;
}

.rules-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 10px;
  background: linear-gradient(90deg, #66d9ff, #30a8ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rules-title span {
  font-weight: 700;
}

.rules-intro {
  text-align: center;
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 40px;
  line-height: 1.6;
}

/* === АККОРДЕОН С ПРАВИЛАМИ === */
.rules-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rule-item {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.rule-header {
  width: 100%;
  padding: 18px 20px;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  text-align: left;
  color: #ff0000;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.3s ease;
}

.rule-header:hover {
  background: rgba(255, 255, 255, 0.1);
}

.rule-icon {
  font-size: 1.4rem;
}

.arrow {
  margin-left: auto;
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.rule-content {
  padding: 0 20px;
  color: #000000;
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  background: rgba(0, 0, 0, 0.05);
}

.rule-content ul {
  margin: 15px 0;
  padding-left: 20px;
}

.rule-content li {
  margin-bottom: 8px;
}

.rule-content p {
  font-style: italic;
  color: #aaa;
  margin-top: 10px;
}

/* === МОБИЛЬНАЯ ВЕРСИЯ === */
@media (max-width: 768px) {
  .rules-container {
    margin: 70px auto 70px;
    padding: 15px;
  }

  .rules-title {
    font-size: 1.6rem;
  }

  .rules-intro {
    font-size: 1rem;
  }

  .rule-header {
    padding: 16px;
    font-size: 1rem;
  }

  .rule-icon {
    font-size: 1.2rem;
  }

  .rule-content {
    padding: 0 16px 16px;
  }
}
