/* === СТРАНИЦА ПРАВИЛ === */
#rules-page {
  min-height: 100vh;
  padding-top: 30px;
}

.rules-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.rules-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.rule-section {
  background: rgba(50, 25, 75, 0.7);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid rgba(199, 71, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.rule-section:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px rgba(199, 71, 255, 0.25);
}

.rule-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, var(--primary), var(--secondary));
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(144, 43, 255, 0.3);
}

.section-number {
  min-width: 55px;
  height: 55px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.7rem;
  color: white;
  box-shadow: 0 0 20px rgba(199, 71, 255, 0.4);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.section-title {
  font-size: 1.9rem;
  color: white;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.subsection {
  background: rgba(45, 15, 65, 0.6);
  border-radius: 15px;
  padding: 18px 25px;
  margin-bottom: 15px;
  border-left: 3px solid var(--secondary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.subsection:hover {
  background: rgba(55, 25, 75, 0.7);
  transform: translateX(2px);
  border-left-color: var(--primary);
  box-shadow: 0 4px 12px rgba(144, 43, 255, 0.2);
}

.subsection::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(199, 71, 255, 0.08), transparent);
  transition: all 0.3s ease;
  z-index: -1;
}

.subsection:hover::before {
  left: 100%;
}

.subsection-title {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subsection-title::before {
  content: "•";
  color: var(--secondary);
  font-size: 1.3rem;
}

.subsection-content {
  color: var(--text);
  line-height: 1.7;
  padding-left: 8px;
  font-size: 1rem;
}

.subsection-content strong {
  color: white;
}

/* Раскрывающиеся списки */
.collapsible-container {
  margin-top: 25px;
}

.collapsible-header {
  background: linear-gradient(135deg, rgba(55, 25, 80, 0.8), rgba(65, 30, 85, 0.8));
  border-radius: 15px;
  padding: 16px 25px;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
  margin-bottom: 10px;
  border: 1px solid rgba(199, 71, 255, 0.3);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
}

.collapsible-header:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.2);
  border-color: var(--primary);
}

.collapsible-header.active {
  background: linear-gradient(135deg, rgba(90, 35, 120, 0.9), rgba(75, 25, 105, 0.9));
  border-color: var(--primary);
  box-shadow: 0 5px 15px rgba(199, 71, 255, 0.3);
}

.arrow {
  font-size: 1.1rem;
  font-weight: bold;
  transition: transform 0.4s ease;
}

.collapsible-header.active .arrow {
  transform: rotate(180deg);
  color: var(--primary);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.7s ease, opacity 0.5s ease;
  opacity: 0;
  background: rgba(45, 15, 65, 0.8);
  border-radius: 0 0 15px 15px;
  margin-top: -1px;
  border: 1px solid rgba(199, 71, 255, 0.3);
  border-top: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.collapsible-content.show {
  max-height: 1000px;
  opacity: 1;
  transition: max-height 0.8s ease, opacity 0.5s ease;
}

.mod-list {
  padding: 22px;
}

.mod-list ul {
  list-style-type: none;
  padding-left: 15px;
}

.mod-list li {
  padding: 10px 0;
  border-bottom: 1px dashed rgba(144, 43, 255, 0.2);
  line-height: 1.6;
  padding-left: 18px;
  position: relative;
  font-size: 1rem;
}

.mod-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.mod-list li:last-child {
  border-bottom: none;
}

.forbidden {
  color: var(--danger);
  position: relative;
}

.forbidden::before {
  content: "✗";
  color: var(--danger);
  margin-right: 7px;
  font-weight: bold;
}

.allowed {
  color: var(--success);
  position: relative;
}

.allowed::before {
  content: "✓";
  color: var(--success);
  margin-right: 7px;
  font-weight: bold;
}

/* === СТРАНИЦА НОВОСТЕЙ === */
.news-full {
  max-width: 800px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(199, 71, 255, 0.15);
  margin-bottom: 40px;
}

.news-full h1 {
  font-size: 2.8rem;
  color: var(--primary);
  margin-bottom: 15px;
  text-align: center;
}

.news-full-header {
  text-align: center;
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(144, 43, 255, 0.3);
}

.news-full-date {
  background: rgba(144, 43, 255, 0.15);
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 600;
  margin-top: 8px;
}

.news-content-full {
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text);
}

.news-content-full b {
  color: white;
  font-weight: 700;
}

.news-content-full i {
  color: var(--accent);
  font-style: italic;
}

.wave-text {
  display: inline-block;
  white-space: nowrap;
}

.wave-text span {
  display: inline-block;
  animation: waveLetter 1.2s infinite ease-in-out;
}

@keyframes waveLetter {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}

.news-images {
  display: grid;
  gap: 15px;
  margin: 25px 0;
}

.news-images.one-image {
  grid-template-columns: 1fr;
}

.news-images.two-images {
  grid-template-columns: repeat(2, 1fr);
}

.news-images.three-images {
  grid-template-columns: repeat(2, 1fr);
}

.news-images.three-images img:nth-child(3) {
  grid-column: span 2;
}

.news-images.four-images {
  grid-template-columns: repeat(2, 1fr);
}

.news-images img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.news-images img:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 18px rgba(144, 43, 255, 0.3);
}

/* Страница "Все новости" */
.all-news-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.news-card {
  background: rgba(50, 20, 70, 0.6);
  border-radius: 15px;
  padding: 30px;
  transition: all 0.3s ease;
  border: 1px solid rgba(199, 71, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(144, 43, 255, 0.25);
  border-color: var(--primary);
}

.news-card h3 {
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.news-card-date {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 15px;
  display: block;
}

.news-card-content {
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Пагинация */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(90, 30, 115, 0.7);
  border: 1px solid var(--secondary);
  color: var(--light);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-color: var(--primary);
}

.pagination-btn:hover:not(.active) {
  background: rgba(144, 43, 255, 0.3);
  transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
  .news-full {
    padding: 30px 20px;
  }

  .news-full h1 {
    font-size: 2.2rem;
  }

  .news-content-full {
    font-size: 1rem;
  }

  .news-images img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .news-images {
    grid-template-columns: 1fr !important;
  }

  .news-images.three-images img:nth-child(3) {
    grid-column: span 1;
  }
}
/* === Страница фишечек === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.feature-card {
  background: rgba(50, 25, 75, 0.7);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(199, 71, 255, 0.2);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(199, 71, 255, 0.25);
}

/* ✅ Изображение: фиксированная высота, центрирование, без растяжения */
.feature-image {
  width: 100%;
  height: 220px; /* фиксированная высота */
  object-fit: cover; /* обрезка, а не растяжение */
  display: block;
  background-color: #1a0026; /* фон на случай загрузки */
}

.feature-info-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: rgba(104, 0, 170, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
  transition: background 0.3s;
}

.feature-info-btn:hover {
  background: rgba(144, 43, 255, 0.9);
}

.feature-description {
  padding: 18px;
  color: var(--text);
  line-height: 1.6;
}

/* ✅ Всплывающее описание — по клику, а не по ховеру */
.feature-tooltip {
  position: absolute;
  top: 45px;
  right: 12px;
  background: rgba(65, 35, 85, 0.95);
  color: var(--light);
  padding: 14px;
  border-radius: 10px;
  width: 280px; 
  font-size: 0.95rem;
  line-height: 1.5;
  z-index: 100;
  display: none; /* скрыто по умолчанию */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: 1px solid var(--secondary);
  /* ✅ разрешаем выход за пределы родителя */
  overflow: visible;
}

/* Треугольник указатель */
.feature-tooltip::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 16px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid rgba(144, 43, 255, 0.9);
}

/* ✅ Показываем только при наличии класса show */
.feature-tooltip.show {
  display: block;
}