:root {
  --primary: #c747ff;
  /* --primary2: #e789ff; */
  --primary2: #c896eb;
  --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: 'Geist', sans-serif;
  font-synthesis: none;
}

body {
  background: linear-gradient(135deg, #1c0329, #1c0329);
  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;
} */

/* Шапка */
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: 6.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: 'Kumar One', sans-serif;
  letter-spacing: -5.5px;
  z-index: 2;
  background: linear-gradient(to right, #ffffff, #d9c0ff, #ffffff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.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);
  font-family: "Unbounded";
}

.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;
  position: relative;
}

.nav-links {
  width: fit-content;
  display: flex;
  list-style: none;
  gap: 30px;
  /* justify-content: center; */
  /* padding: 0 20px; */
  margin: 0;
  position: relative;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 10px 20px;
  border-radius: 14px;
  transition: color 0.2s ease;
  position: relative;
  z-index: 2;
  letter-spacing: 0.5px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.35s cubic-bezier(0.3, 0, 0, 1);
}

/* Hover-эффект на ссылку */
.nav-links a:hover,
.nav-links a.active {
  color: white;
  transform: translateY(-2px);
}

.nav-hover-indicator {
  position: absolute;
  top: 50%;
  height: 44px;
  border-radius: 14px;
  background: rgba(199, 71, 255, 0.12);
  pointer-events: none;
  z-index: 1;

  transform: translate3d(0, -50%, 0);
  opacity: 0;

  transition:
    transform 0.35s cubic-bezier(0.3, 0, 0, 1),
    width 0.35s cubic-bezier(0.3, 0, 0, 1),
    opacity 0.15s ease;
}

.nav-active-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
  transform: translateX(0);
  transition: transform 0.35s cubic-bezier(0.3, 0, 0, 1);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.nav-active-indicator.visible {
  opacity: 1;
}

/* Основной контент */
main {
  max-width: 1200px;
  margin: 100px auto 50px;
  padding: 0 20px;
}

.page {
  display: none;
  animation: fadeIn 0.5s ease;
}

.page.active {
  display: block;
  padding-top: 90px;
}

@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(--primary));
  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.10rem;
  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(--primary));
  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(--primary2);
  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, 0, 251, 0.25);
}

.btn-discord {
  /* background: linear-gradient(45deg, #5865F2, #5865F2); */
  background: linear-gradient(45deg, #5985ea, #5985ea);
  color: white;
  /* box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3); */
  width: 350px;
  min-width: 280px;
  max-width: 350px;
}

/* 
.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(--secondary), 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(90, 30, 115, 0.7));
  color: var(--light);
  border: 1px solid var(--secondary);
  /* box-shadow: 0 4px 12px rgba(144, 43, 255, 0.2); */
  width: 350px;
  min-width: 280px;
  max-width: 350px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  justify-content: center;
}

.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, #48b87d, #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);
  /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.team-member:hover {
  border: 1px solid rgba(199, 71, 255, 0.2);
  transform: translateY(-7px);
  /* 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(--secondary), 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: var(--primary2);
  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, #5e35b1, #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 !important;
  background: linear-gradient(135deg, rgba(50, 25, 75, 0.9), rgba(45, 20, 70, 0.9)) !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 65px !important;
  background: var(--card-bg) !important;
  border-radius: var(--border-radius) !important;
  padding: 45px !important;
  /* box-shadow: var(--shadow); */
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(199, 71, 255, 0.15) !important;
  position: relative !important;
  overflow: hidden !important;
  transition: var(--transition) !important; 
}

.support-section::before {
  content: "" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: radial-gradient(circle at 30% 30%, rgba(199, 71, 255, 0.07), transparent 50%) !important;
  z-index: 0 !important;
}

.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::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;
}

.donate-yoomoney:hover::before {
  /* transform: scaleX(1.1) scaleY(1.3); */
  background: rgba(255, 0, 251, 0.25);
}

.donate-yoomoney {
  background: linear-gradient(45deg, #14AAF3, #14AAF3);
  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, #FF6398, #FF6398);
  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);
} */

.donate-boosty::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;
}

.donate-boosty:hover::before {
  /* transform: scaleX(1.1) scaleY(1.3); */
  background: rgba(255, 0, 251, 0.25);
}

.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);
  border-right: 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(7px); */
  /* box-shadow: 0 6px 18px rgba(144, 43, 255, 0.25); */
  border-left: 9px solid 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(--primary2);
  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;
  }

  .join-steps h3::after {
    display: none
  }
}

@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 {
    display: flex;
    list-style: none;
    gap: 24px;
    align-items: center;
    position: relative;
  }

  .nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 20px;
    border-radius: 14px;
    transition: color 0.2s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
  }

  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);
  text-decoration: none;
}

/* === Кастомный скроллбар — без прозрачности, под фон сайта === */

/* WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

::-webkit-scrollbar-track {
  background: var(--dark-bg);
  border-radius: 0 7px 7px 0;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--primary), var(--primary));
  border: 4px solid var(--dark-bg);
  border-radius: 10px;
  background-clip: padding-box;
  min-height: 80px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(to bottom, var(--secondary), var(--secondary));
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--dark-bg);
}

section {
  margin: 80px 0;
  padding: 0 20px;
  position: relative;
  background: none !important;
  box-shadow: none !important;
  border: none !important;
  backdrop-filter: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  margin: 200px 0;
}

section::after {
  content: "";
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--secondary), transparent);
  z-index: -1;
  bottom: -100px;
}

section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: none !important;
  z-index: 1;
}

section:last-of-type::after {
  display: none;
}

h2::after {
  display: none;
}
