:root {
  --primary: #c747ff;
  --secondary: #902bff;
  --accent: #e483ff;
  --dark-bg: #250036;
  --darker-bg: #190026;
  --card-bg: rgba(45, 15, 65, 0.8);
  --light: #f0e6ff;
  --text: #e0d0ff;
  --success: #5dcf91;
  --danger: #ff7a7a;
  --border-radius: 20px;
  --transition: all 0.3s ease;
  --shadow: 0 8px 30px rgba(138, 43, 226, 0.15);
  --shadow-hover: 0 12px 40px rgba(138, 43, 226, 0.25);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: linear-gradient(135deg, #150020, #250036);
  color: var(--light);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(144, 43, 255, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(199, 71, 255, 0.05) 0%, transparent 40%);
  z-index: -1;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.2;
}

.float {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 71, 255, 0.3), transparent 70%);
  animation: float 25s infinite ease-in-out;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  25% {
    transform: translateY(-30px) translateX(20px);
  }

  50% {
    transform: translateY(-15px) translateX(-15px);
  }

  75% {
    transform: translateY(-25px) translateX(10px);
  }
}

/* Шапка */
header {
  height: 100vh;
  background: linear-gradient(135deg, var(--dark-bg), var(--darker-bg));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
  position: relative;
  overflow: hidden;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 30% 30%, rgba(199, 71, 255, 0.1) 0%, transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(144, 43, 255, 0.1) 0%, transparent 60%);
  z-index: 0;
}

.server-name {
  font-size: 5.5rem;
  font-weight: 800;
  margin-bottom: 25px;
  position: relative;
  color: var(--light);
  text-shadow: 0 0 20px rgba(199, 71, 255, 0.4);
  font-family: 'Orbitron', sans-serif;
  letter-spacing: -0.5px;
  z-index: 2;
  background: linear-gradient(to right, #ffffff, #d9c0ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    text-shadow: 0 0 15px rgba(199, 71, 255, 0.3);
  }

  50% {
    text-shadow: 0 0 25px rgba(199, 71, 255, 0.5);
  }

  100% {
    text-shadow: 0 0 15px rgba(199, 71, 255, 0.3);
  }
}

.server-info {
  display: flex;
  gap: 45px;
  margin-bottom: 45px;
  justify-content: center;
  z-index: 2;
  backdrop-filter: blur(10px);
}

.info-block {
  background: rgba(255, 255, 255, 0.08);
  padding: 18px 40px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  min-width: 220px;
  text-align: center;
  border: 1px solid rgba(199, 71, 255, 0.2);
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}


.info-block:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.info-block p {
  font-weight: 700;
  font-size: 1.7rem;
  color: white;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

.server-tagline {
  font-size: 1.8rem;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  padding: 22px 45px;
  border-radius: var(--border-radius);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 2;
  border: 1px solid rgba(199, 71, 255, 0.2);
  box-shadow: var(--shadow);
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition);
}

.server-tagline:hover {
  box-shadow: var(--shadow-hover);
  background: rgba(255, 255, 255, 0.12);
}

/* Навигация */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(37, 0, 54, 0.92);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  z-index: 1000;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(199, 71, 255, 0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 8px 15px;
  border-radius: 30px;
  transition: var(--transition);
  position: relative;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: white;
  transform: translateY(-2px);
}

/* Основной контент */
main {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 0 20px;
}

.page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  margin-bottom: 65px;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  padding: 45px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(199, 71, 255, 0.15);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  z-index: 1;
}

section:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: var(--primary);
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.5px;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60%;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

p {
  line-height: 1.7;
  margin-bottom: 15px;
  font-size: 1.05rem;
  color: var(--text);
}

/* Как зайти */
.join-steps {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin: 30px 0;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  padding: 25px;
  background: rgba(50, 20, 70, 0.6);
  border-radius: var(--border-radius);
  transition: var(--transition);
  border-left: 4px solid var(--secondary);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(144, 43, 255, 0.08), transparent);
  z-index: -1;
}

.step:hover {
  transform: translateX(7px);
  box-shadow: 0 6px 20px rgba(144, 43, 255, 0.2);
  border-left-color: var(--primary);
}

.step-number {
  min-width: 50px;
  height: 50px;
  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;
  flex-shrink: 0;
  color: white;
  box-shadow: 0 0 15px rgba(199, 71, 255, 0.5);
  position: relative;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.step-content h3 {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.6rem;
  position: relative;
}

.step-content h3::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 0;
  width: 45px;
  height: 2px;
  background: var(--secondary);
  border-radius: 1px;
}

.action-buttons {
  display: flex;
  gap: 25px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  padding: 14px 60px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  z-index: -1;
  transition: var(--transition);
  transform-origin: 0 0;
}

.btn:hover::before {
  transform: scaleX(1.1) scaleY(1.3);
  background: rgba(255, 255, 255, 0.15);
}

.btn-discord {
  background: linear-gradient(45deg, #5865F2, #4752c4);
  color: white;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 7px 20px rgba(88, 101, 242, 0.4);
}

.btn-rules {
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(199, 71, 255, 0.3);
}

.btn-rules:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 7px 20px rgba(199, 71, 255, 0.4);
}

.btn-copy {
  background: linear-gradient(45deg, rgba(90, 30, 115, 0.7), rgba(65, 20, 90, 0.7));
  color: var(--light);
  border: 1px solid var(--secondary);
  box-shadow: 0 4px 12px rgba(144, 43, 255, 0.2);
}

.btn-copy:hover {
  background: linear-gradient(45deg, rgba(144, 43, 255, 0.6), rgba(110, 30, 180, 0.6));
  transform: translateY(-3px);
}

.btn-copied {
  background: linear-gradient(45deg, #5dcf91, #48b87d) !important;
  color: white !important;
  box-shadow: 0 4px 15px rgba(93, 207, 145, 0.4) !important;
}

/* Статистика */
.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.stat-card {
  background: rgba(50, 20, 70, 0.6);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  border: 1px solid rgba(199, 71, 255, 0.2);
  transition: var(--transition);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(144, 43, 255, 0.2);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 1.1rem;
  color: var(--text);
  font-weight: 500;
}

/* Команда */
.team-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.team-member {
  background: rgba(50, 20, 70, 0.6);
  border-radius: 15px;
  padding: 25px 20px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid rgba(199, 71, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(144, 43, 255, 0.25);
}

.member-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 0 15px rgba(199, 71, 255, 0.4);
}

.member-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.member-role {
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
}

.member-desc {
  margin-top: 10px;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* Галерея */
.gallery-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.gallery-item {
  border-radius: 15px;
  overflow: hidden;
  height: 200px;
  position: relative;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(144, 43, 255, 0.3);
}

.gallery-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, #7e57c2, #5e35b1);
  opacity: 0.8;
  transition: var(--transition);
}

.gallery-item:hover::before {
  opacity: 0.6;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 12px 15px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
}

.gallery-item:hover .gallery-caption {
  background: rgba(144, 43, 255, 0.8);
}

/* Поддержка */
.support-section {
  text-align: center;
  background: linear-gradient(135deg, rgba(55, 25, 80, 0.8), rgba(45, 20, 70, 0.8));
  position: relative;
  overflow: hidden;
}

.support-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(199, 71, 255, 0.07), transparent 50%);
  z-index: 0;
}

.support-title {
  font-size: 2.2rem;
  margin-bottom: 25px;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.donate-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.donate-btn {
  padding: 16px 45px;
  border-radius: 55px;
  font-weight: 700;
  font-size: 1.25rem;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
  min-width: 230px;
  letter-spacing: 0.5px;
  text-decoration: none !important;
}

.donate-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  z-index: -1;
  transition: var(--transition);
}

.donate-btn:hover::before {
  transform: scale(1.08);
}

.donate-btn i {
  font-size: 1.4rem;
  min-width: 23px;
  text-align: center;
}

.donate-yoomoney {
  background: linear-gradient(45deg, #0080e0, #00bbff);
  color: white;
  box-shadow: 0 6px 22px rgba(0, 128, 224, 0.35);
}

.donate-yoomoney:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 28px rgba(0, 128, 224, 0.5);
}

.donate-boosty {
  background: linear-gradient(45deg, #ff4f8e, #ff9552);
  color: white;
  box-shadow: 0 6px 22px rgba(255, 79, 142, 0.35);
}

.donate-boosty:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 10px 28px rgba(255, 79, 142, 0.5);
}

.important-note {
  margin-top: 35px;
  padding: 22px;
  background: rgba(60, 30, 85, 0.7);
  border-radius: var(--border-radius);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  border-left: 4px solid var(--primary);
  position: relative;
  overflow: hidden;
}

.important-note::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(199, 71, 255, 0.08), transparent);
  z-index: -1;
}

.important-note p {
  font-size: 1.15rem;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.important-note strong {
  color: var(--primary);
  font-weight: 700;
}

/* Новости — превью на главной */
.news-container {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 30px;
}

.news-item {
  background: rgba(50, 20, 70, 0.6);
  border-radius: 15px;
  padding: 25px;
  border-left: 4px solid var(--secondary);
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-item:hover {
  transform: translateX(5px);
  box-shadow: 0 6px 18px rgba(144, 43, 255, 0.25);
  border-left-color: var(--primary);
}

.news-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 10px;
}

.news-title {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 700;
}

.news-date {
  background: rgba(144, 43, 255, 0.15);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--light);
  font-weight: 500;
}

.news-content {
  line-height: 1.7;
  color: var(--text);
}

.read-more {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.read-more:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* Общие элементы */
.back-button-container {
  text-align: center;
  margin-top: 30px;
  margin-bottom: 40px;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 900px) {
  .server-name {
    font-size: 4.2rem;
  }

  .server-info {
    gap: 25px;
  }

  .info-block p {
    font-size: 1.4rem;
  }

  .server-tagline {
    font-size: 1.5rem;
    padding: 18px 35px;
  }

  .nav-links {
    gap: 25px;
  }

  section {
    padding: 35px 25px;
  }

  h2 {
    font-size: 2.1rem;
  }
}

@media (max-width: 768px) {
  .server-name {
    font-size: 3.5rem;
  }

  .server-info {
    flex-direction: column;
    gap: 20px;
  }

  .info-block {
    width: 100%;
    max-width: 300px;
  }

  .info-block p {
    font-size: 1.3rem;
  }

  .server-tagline {
    font-size: 1.3rem;
    padding: 15px 25px;
  }

  .nav-links {
    gap: 20px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 1rem;
    padding: 6px 10px;
  }

  section {
    padding: 30px 20px;
  }

  h2 {
    font-size: 1.9rem;
  }

  .step {
    flex-direction: column;
    text-align: center;
  }

  .step-number {
    margin: 0 auto;
  }

  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .donate-btn {
    width: 100%;
    max-width: 350px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .server-name {
    font-size: 2.7rem;
  }

  .nav-container {
    overflow-x: auto;
    padding: 0 10px;
  }
}

.donate-icon {
  width: 2rem;
  height: auto;
  vertical-align: middle;
  margin-right: 1px;
  display: inline-block;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card-bg);
  border-radius: 20px;
  margin: 5% auto;
  padding: 30px;
  border: 1px solid var(--primary);
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: white;
}

.yoomoney-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.yoomoney-buttons iframe {
  border: none !important;
  border-radius: 12px;
  overflow: hidden;
}

.feature-media {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  pointer-events: none;
}

.feature-card:hover .feature-media {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(144, 43, 255, 0.3);
}

/* Стили для ссылок внутри описаний (фишки, новости и т.д.) */
.feature-tooltip a,
.news-content-full a,
.subsection-content a,
.feature-description a {
  color: var(--accent); /* #e483ff — мягкий розово-фиолетовый */
  text-decoration: underline;
  font-weight: 600;
  transition: color 0.2s ease;
}

.feature-tooltip a:hover,
.news-content-full a:hover,
.subsection-content a:hover,
.feature-description a:hover {
  color: var(--primary); /* #c747ff — насыщенный розовый */
  text-decoration: none;
}