* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    sans-serif;
  background: linear-gradient(135deg, #03001e 0%, #7303c0 50%, #ec38bc 100%);
  min-height: 100vh;
  padding: 1rem 0.5rem;
  overflow-x: hidden;
}

/* Фоновые слои: частицы и ноты */
.bg-elements,
.particles,
.music-notes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.particles {
  z-index: 2;
}
.music-notes {
  z-index: 3;
}

/* Контент поверх фона */
.invite-page {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
}

.invite-container {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 2rem 1.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.logo-section {
  text-align: center;
  margin-bottom: 1.5rem;
}

.logo-section h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #7303c0, #ec38bc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.2rem;
  color: #555;
  max-width: 600px;
  margin: 0 auto;
}

.features {
  margin: 2rem 0;
}

.features h2 {
  text-align: center;
  font-size: 1.8rem;
  color: #333;
  margin-bottom: 1.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature {
  background: #fff;
  padding: 1.5rem;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  border: 1px solid #f0f0f0;
}

.feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(115, 3, 192, 0.15);
  border-color: rgba(115, 3, 192, 0.2);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  color: #7303c0;
  margin-bottom: 0.75rem;
}

.feature p {
  color: #666;
  line-height: 1.5;
  font-size: 0.9rem;
}

.test-period {
  background: linear-gradient(135deg, #f9f0ff, #fff);
  border: 2px solid #7303c0;
  border-radius: 24px;
  padding: 2rem;
  text-align: center;
  margin: 1.5rem 0;
}

.test-badge {
  display: inline-block;
  background: #7303c0;
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.test-price {
  font-size: 2rem;
  font-weight: 700;
  color: #7303c0;
  margin-bottom: 0.5rem;
}

.test-desc {
  color: #666;
  font-size: 0.9rem;
}

.cta-section {
  text-align: center;
  margin: 1.5rem 0;
}

.btn-register {
  display: inline-block;
  background: linear-gradient(135deg, #7303c0, #9c27b0);
  color: #fff;
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(115, 3, 192, 0.4);
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(115, 3, 192, 0.5);
  background: linear-gradient(135deg, #9c27b0, #7303c0);
}

.small {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

.footer-note {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
  text-align: center;
}

.footer-note p {
  color: #777;
  font-size: 0.85rem;
  line-height: 1.6;
}

/* === АНИМАЦИИ ДЛЯ НОТ (ЛЕТАЮЩИЕ НОТЫ) === */
@keyframes noteFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.6;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

/* Стиль нот (будет создан скриптом, но можно задать по умолчанию) */
.note {
  position: absolute;
  font-size: 2rem;
  color: rgba(255, 255, 255, 0.4);
  animation: noteFloat 15s linear infinite;
}

/* Убедимся, что анимации для bg-elements и particles тоже определены (если script.js их использует) */
@keyframes float {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 0.3;
  }
  90% {
    opacity: 0.3;
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
    opacity: 0;
  }
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) translateX(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) translateX(calc(100vw * var(--random-x)));
    opacity: 0;
  }
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  animation: float 20s linear infinite;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: particleFloat 20s linear infinite;
}

@media (max-width: 768px) {
  .invite-container {
    padding: 1.5rem;
  }

  .logo-section h1 {
    font-size: 1.8rem;
  }

  .tagline {
    font-size: 1rem;
  }

  .features h2 {
    font-size: 1.4rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .test-price {
    font-size: 1.5rem;
  }

  .btn-register {
    font-size: 1rem;
    padding: 0.8rem 2rem;
  }
}
