:root {
  --bg: #0B0C10;
  --bg-panel: #1F2833;
  --text: #E8E8E8;
  --text-muted: #A0A0A0;
  --gold: #C5A55A;
  --karma-high: #4A90E2;
  --karma-low: #8B0000;
  --accent: var(--gold);
  
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 8px;
  --spacing: 1.5rem;
  --container: min(92%, 1100px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-align: center;
}

/* --- ГЛОБАЛЬНЫЕ ЧАСТИЦЫ --- */
#bg-particles {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 0; overflow: hidden;
}
.particle {
  position: absolute; bottom: -10px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 8px var(--gold), 0 0 16px rgba(197, 165, 90, 0.4);
  opacity: 0; animation: floatParticle linear infinite;
}
@keyframes floatParticle {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  15% { opacity: 0.6; }
  70% { opacity: 0.2; }
  100% { transform: translateY(-110vh) scale(1.1); opacity: 0; }
}

/* HEADER */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 100;
  background: rgba(11, 12, 16, 0.85); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--container); margin: 0 auto; padding: var(--spacing) 0;
}
.logo {
  font-family: var(--font-heading); font-size: clamp(1.2rem, 3vw, 1.8rem);
  color: var(--gold); text-decoration: none; letter-spacing: 2px;
}
.lang-toggle {
  background: transparent; border: 1px solid var(--gold); color: var(--gold);
  padding: 0.4rem 0.8rem; cursor: pointer; border-radius: var(--border-radius);
  font-family: var(--font-body); transition: var(--transition);
}
.lang-toggle:hover { background: var(--gold); color: var(--bg); }

.karma-bar { height: 3px; width: 100%; background: rgba(255,255,255,0.05); position: absolute; bottom: 0; left: 0; }
.karma-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--karma-low), var(--gold), var(--karma-high)); transition: width 0.1s linear; }

/* MAIN & SECTIONS */
main { position: relative; z-index: 2; }
section {
  padding: 6rem 1rem;
  max-width: var(--container);
  margin-inline: auto; /* Центрирует секцию */
}

.section-title {
  font-family: var(--font-heading); font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 3rem; position: relative;
}
.section-title::after {
  content: ''; display: block; width: 60px; height: 3px; background: var(--gold);
  margin: 0.5rem auto 0; border-radius: 2px;
}

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 6rem 1rem 3rem; position: relative;
  background: radial-gradient(circle at 50% 30%, rgba(197, 165, 90, 0.12) 0%, transparent 60%);
}
.hero-content { max-width: 800px; }
.hero-title { font-family: var(--font-heading); font-size: clamp(2.5rem, 8vw, 4.5rem); margin-bottom: 1rem; line-height: 1.1; }
.hero-subtitle { font-size: clamp(1rem, 2vw, 1.3rem); color: var(--text-muted); margin-bottom: 2rem; }
.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* BUTTONS */
.btn {
  padding: 0.8rem 1.8rem; border-radius: var(--border-radius); font-weight: 600;
  text-decoration: none; transition: var(--transition); display: inline-flex; align-items: center; gap: 0.5rem;
}
.btn-primary { background: var(--gold); color: var(--bg); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(197, 165, 90, 0.4); }
.btn-secondary { border: 1px solid var(--gold); color: var(--gold); }
.btn-secondary:hover { background: rgba(197, 165, 90, 0.1); }

/* GRIDS */
.about-grid, .media-grid {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.about-card, .media-item {
  background: var(--bg-panel); padding: 1.5rem; border-radius: var(--border-radius);
  border: 1px solid rgba(255,255,255,0.05); transition: var(--transition);
}
.about-card:hover, .media-item:hover { transform: translateY(-4px); border-color: var(--gold); }
.about-card h3 { font-family: var(--font-heading); margin-bottom: 0.5rem; color: var(--gold); }
.media-item { aspect-ratio: 16/9; display: flex; align-items: center; justify-content: center; }
.media-item span { color: var(--text-muted); opacity: 0.7; font-size: 0.9rem; }
.media-item.video::before { content: '▶'; position: absolute; font-size: 2rem; opacity: 0.2; }

/* COMMUNITY (ИСПРАВЛЕНО ЦЕНТРИРОВАНИЕ) */
.community-wrapper {
  display: grid; gap: 2rem; width: 100%;
  max-width: 900px; margin-inline: auto; /* Жёсткое центрирование */
}
.socials { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.social-link {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); border-radius: 50%; transition: var(--transition);
}
.social-link svg { width: 22px; height: 22px; color: var(--text-muted); }
.social-link:hover { background: var(--gold); transform: scale(1.1); }
.social-link:hover svg { color: var(--bg); }

.subscribe-form, .press-kit {
  background: var(--bg-panel); padding: 2rem; border-radius: var(--border-radius);
  width: 100%; max-width: 450px; margin-inline: auto; /* Центрирование блоков */
  border: 1px solid rgba(255,255,255,0.05); text-align: center;
}
#newsletter-form { display: flex; flex-direction: column; gap: 0.8rem; margin: 1rem 0; }
#newsletter-form input {
  padding: 0.8rem; background: var(--bg); border: 1px solid rgba(255,255,255,0.1);
  color: var(--text); border-radius: var(--border-radius); font-size: 1rem; width: 100%;
}
#newsletter-form input:focus { outline: none; border-color: var(--gold); }
#newsletter-form button {
  padding: 0.8rem; background: var(--gold); color: var(--bg); border: none;
  border-radius: var(--border-radius); cursor: pointer; font-weight: 600; width: 100%;
  transition: var(--transition);
}
.form-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.5rem; }
.form-success { color: var(--gold); margin-top: 0.5rem; font-weight: 600; }
.hidden { display: none; }

.press-kit ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; align-items: center; }
.press-kit a {
  color: var(--karma-high); text-decoration: none; border-bottom: 1px dotted currentColor;
  transition: var(--transition); padding-bottom: 2px;
}
.press-kit a:hover { color: var(--gold); border-color: var(--gold); }

/* FOOTER (ИСПРАВЛЕНО ЦЕНТРИРОВАНИЕ) */
.footer {
  padding: 3rem 1rem;
  max-width: var(--container);
  margin-inline: auto;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted); font-size: 0.9rem;
}
.footer-links { margin-top: 1rem; display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }

/* ANIMATIONS */
.fade-up { opacity: 0; transform: translateY(20px); transition: all 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (min-width: 768px) {
  .community-wrapper { grid-template-columns: 1fr 1fr; }
  .press-kit { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .subscribe-form, .press-kit { max-width: 500px; }
}
/* --- Обновлённые стили соцсетей --- */
.socials { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.social-link {
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-panel); border-radius: 50%; transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.05);
}
.social-link svg { width: 20px; height: 20px; color: var(--text-muted); transition: var(--transition); }
.social-link:hover { background: var(--gold); transform: scale(1.1); border-color: var(--gold); }
.social-link:hover svg { color: var(--bg); }

/* --- Дребезжащие струны --- */
/* --- Дребезжащие струны --- */
#bg-strings {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1; overflow: hidden;
}
.string {
  position: absolute; 
  top: -50%; 
  left: var(--pos, 50%);
  width: 1px; 
  height: 200%;
  background: linear-gradient(to bottom, 
    transparent 0%, 
    rgba(197, 165, 90, 0.15) 40%, 
    rgba(197, 165, 90, 0.4) 50%, 
    rgba(197, 165, 90, 0.15) 60%, 
    transparent 100%);
  box-shadow: 0 0 8px rgba(197, 165, 90, 0.3);
  opacity: 0.15;
  transform-origin: center center;
  transform: rotate(var(--rotate, 65deg));
  animation: stringVibrate var(--dur, 6s) ease-in-out infinite var(--delay, 0s);
}
@keyframes stringVibrate {
  0%, 100% { transform: rotate(var(--rotate, 65deg)) scaleX(1) translateX(0); opacity: 0.15; }
  20%      { transform: rotate(calc(var(--rotate, 65deg) + 2deg)) scaleX(1.8) translateX(-1px); opacity: 0.3; }
  40%      { transform: rotate(calc(var(--rotate, 65deg) - 1deg)) scaleX(0.7) translateX(0.5px); opacity: 0.2; }
  60%      { transform: rotate(calc(var(--rotate, 65deg) + 1.5deg)) scaleX(2) translateX(-0.5px); opacity: 0.35; }
  80%      { transform: rotate(calc(var(--rotate, 65deg) - 0.5deg)) scaleX(0.8) translateX(0.3px); opacity: 0.22; }
}

/* Адаптив для струн: на мобильных чуть прозрачнее */
@media (max-width: 768px) {
  .string { opacity: 0.08; }
}

/* Адаптив для струн: на мобильных чуть прозрачнее, чтобы не мешать чтению */
@media (max-width: 768px) {
  .string { opacity: 0.08; }
}
