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

:root {
  --deep-blue: #08091e;
  --night-blue: #0e1442;
  --violet: #2a0a5e;
  --purple: #4a1a8a;
  --gold: #c9832a;
  --gold-light: #f0b84a;
  --gold-soft: #e8c87a;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(232, 200, 122, 0.2);
  --text-main: #f0e8d8;
  --text-soft: #b8a888;
}

body {
  min-height: 100vh;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-main);
  background: var(--deep-blue);
  overflow-x: hidden;
}

/* Небо — чистое тёмное сверху, плавно темнеет вниз */
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(74, 26, 138, 0.7) 0%, transparent 55%),
    radial-gradient(ellipse at 25% 40%, rgba(42, 10, 94, 0.4) 0%, transparent 40%),
    radial-gradient(ellipse at 75% 40%, rgba(42, 10, 94, 0.4) 0%, transparent 40%),
    linear-gradient(180deg,
      #06071a 0%,
      #0a0e38 30%,
      #180844 55%,
      #0a0610 100%
    );
}

/* Пейзаж — canvas */
.landscape {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 46vh;
  z-index: 2;
  pointer-events: none;
  display: block;
}

/* Звёзды */
.stars {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.star {
  position: absolute;
  border-radius: 50%;
  background: #fff;
  animation: twinkle var(--d) ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.1; }
  to   { opacity: 0.9; }
}


/* Контент поверх фона */
.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
}

/* Навигация */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 40px;
}

.logo {
  font-size: 1.5rem;
  letter-spacing: 0.15em;
  color: var(--gold-light);
  text-shadow: 0 0 20px rgba(240, 184, 74, 0.4);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--gold-light);
}

/* Правая часть nav — кнопки вертикально */
.nav-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

.nav-btn {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.07em;
  line-height: 1.3;
  transition: color 0.3s;
  font-family: Georgia, serif;
}

.nav-btn:hover {
  color: var(--gold-light);
}

/* Убрать .back-link стиль (больше не используется) */

/* Стеклянная карточка */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 20px;
}

/* Главная страница */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5vh 20px 0;
  text-align: center;
}

.hero-title {
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-shadow:
    0 0 40px rgba(240, 184, 74, 0.5),
    0 0 80px rgba(240, 184, 74, 0.2);
  margin-bottom: 12px;
  animation: fadeDown 1.2s ease both;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  color: var(--text-soft);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: calc(10vh - 12px);
  animation: fadeDown 1.4s ease both;
}

.cards {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 1.6s ease both;
}

.card-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 220px;
  text-decoration: none;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.card-btn:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(201, 131, 42, 0.25);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(240, 184, 74, 0.5));
}

.card-label {
  font-size: 1.15rem;
  color: var(--text-main);
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.4;
}

/* Внутренние страницы */
.inner-hero {
  text-align: center;
  padding: 60px 20px 40px;
}

.page-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 400;
  color: var(--gold-light);
  letter-spacing: 0.15em;
  text-shadow: 0 0 30px rgba(240, 184, 74, 0.4);
  margin-bottom: 12px;
}

.page-sub {
  color: var(--text-soft);
  font-size: 1rem;
  letter-spacing: 0.2em;
}

/* Секции soul */
.sections {
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 24px 100px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.section-block {
  padding: 36px 40px;
}

.section-title {
  font-size: 1.4rem;
  color: var(--gold-soft);
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-icon {
  font-size: 1.6rem;
  filter: drop-shadow(0 0 8px rgba(201, 131, 42, 0.4));
}

/* Аудиоплеер */
.playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.track {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(232,200,122,0.1);
  border-radius: 12px;
  transition: background 0.3s, border-color 0.3s;
  cursor: pointer;
}

.track:hover {
  background: rgba(201, 131, 42, 0.1);
  border-color: rgba(232,200,122,0.3);
}

.track-play {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--purple));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: white;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.track-play:hover {
  transform: scale(1.1);
  box-shadow: 0 0 16px rgba(201, 131, 42, 0.4);
}

.track-info {
  flex: 1;
  min-width: 0;
}

.track-name {
  font-size: 1rem;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-duration {
  font-size: 0.8rem;
  color: var(--text-soft);
  margin-top: 3px;
}

.audio-placeholder {
  text-align: center;
  padding: 24px;
  color: var(--text-soft);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.05em;
}

/* Тег типа файла */
.item-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(201,131,42,0.15);
  border: 1px solid rgba(232,200,122,0.25);
  color: var(--gold-soft);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

/* Brain — заглушка */
.brain-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  text-align: center;
  padding: 40px 24px;
}

.brain-icon {
  font-size: 5rem;
  margin-bottom: 28px;
  animation: pulse 3s ease-in-out infinite;
  filter: drop-shadow(0 0 20px rgba(240,184,74,0.3));
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%       { transform: scale(1.06); opacity: 1; }
}

.brain-text {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--text-soft);
  letter-spacing: 0.05em;
  line-height: 1.7;
  max-width: 500px;
}

.brain-text span {
  color: var(--gold-soft);
}

/* Кнопка «назад» */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 10px 20px;
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  transition: color 0.3s, border-color 0.3s;
  margin: 0 0 0 40px;
}

.back-link:hover {
  color: var(--gold-light);
  border-color: rgba(240,184,74,0.4);
}

/* Анимации появления */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Десктоп */
@media (min-width: 601px) {
  .hero {
    min-height: 100vh;
    padding: 5vh 20px 54vh;
  }
  .hero-sub { margin-bottom: 0; }
  .cards { margin-top: auto; flex-wrap: nowrap; gap: 38px; }
  .card-btn {
    width: 370px;
    height: 80px;
    flex-direction: row;
    padding: 0 28px;
    gap: 20px;
  }
  .card-icon { font-size: 2.2rem; margin-bottom: 0; }
  .card-label { text-align: left; font-size: 1.1rem; white-space: nowrap; }
}

/* Мобильные */
@media (max-width: 600px) {
  .nav { padding: 14px 16px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 0.78rem; letter-spacing: 0.04em; }
  .logo { font-size: 1.1rem; }

  .hero { padding: 5vh 16px 0; min-height: 100vh; }
  .hero-title { margin-bottom: 10px; }
  .hero-sub { margin-bottom: calc(10vh - 5px); }

  .cards {
    flex-direction: column;
    align-items: stretch;
    gap: 22px;
    width: 100%;
    max-width: 320px;
  }

  .card-btn {
    width: 100%;
    height: auto;
    flex-direction: row;
    justify-content: flex-start;
    padding: 20px 24px;
    gap: 20px;
    border-radius: 16px;
  }

  .card-icon { font-size: 2.2rem; margin-bottom: 0; }
  .card-label { font-size: 1.1rem; text-align: left; }

  .section-block { padding: 20px 16px; }
  .sections { padding: 10px 12px 80px; gap: 20px; }
  .inner-hero { padding: 40px 16px 24px; }

  .back-link { margin: 0 0 0 16px; font-size: 0.85rem; }

  .track { padding: 12px 14px; gap: 12px; }
  .track-play { width: 34px; height: 34px; font-size: 0.8rem; }
  .track-name { font-size: 0.9rem; }

  .brain-icon { font-size: 4rem; }
  .brain-text { font-size: 1rem; }
}
