/* ------------------------------------------------------------------
   Музей исчезнувших звуков — общий стиль
   ------------------------------------------------------------------ */

:root {
  --bg: #0f0e11;
  --surface: #17151c;
  --surface-2: #1e1b24;
  --ink: #ece7db;
  --muted: #a89f90;
  --accent: #e0a83e;
  --accent-2: #7fb7a3;
  --line: #2b2733;
  --max: 72rem;
  --radius: 14px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1.0625rem/1.65 "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 0.6em;
}

a { color: var(--accent-2); }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------------- Шапка и навигация ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav__brand {
  font-family: Georgia, serif;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav__list {
  display: flex;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__link {
  display: block;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav__link:hover { color: var(--ink); }

.nav__link--active,
.nav__link[aria-current="page"] {
  color: var(--bg);
  background: var(--accent);
}

/* ---------------- Герой ---------------- */

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 6rem 1.25rem 4rem;
  text-align: center;
}

.hero__title {
  font-size: clamp(2.4rem, 6.5vw, 4.5rem);
  letter-spacing: -0.01em;
}

.hero__lede {
  max-width: 38rem;
  margin: 0 auto 2.2rem;
  color: var(--muted);
  font-size: 1.15rem;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* Анимированная звуковая волна */

.wave {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  height: 56px;
  margin-bottom: 2rem;
}

.wave__bar {
  width: 5px;
  height: 18px;
  border-radius: 3px;
  background: var(--accent);
  animation: pulse 1.6s ease-in-out infinite;
}

.wave__bar:nth-child(odd)  { background: var(--accent-2); }
.wave__bar:nth-child(1) { animation-delay: 0.00s; }
.wave__bar:nth-child(2) { animation-delay: 0.13s; }
.wave__bar:nth-child(3) { animation-delay: 0.26s; }
.wave__bar:nth-child(4) { animation-delay: 0.39s; }
.wave__bar:nth-child(5) { animation-delay: 0.52s; }
.wave__bar:nth-child(6) { animation-delay: 0.65s; }
.wave__bar:nth-child(7) { animation-delay: 0.52s; }
.wave__bar:nth-child(8) { animation-delay: 0.39s; }
.wave__bar:nth-child(9) { animation-delay: 0.26s; }
.wave__bar:nth-child(10) { animation-delay: 0.13s; }
.wave__bar:nth-child(11) { animation-delay: 0.00s; }
.wave__bar:nth-child(12) { animation-delay: 0.13s; }

@keyframes pulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.55; }
  50%      { transform: scaleY(1.6); opacity: 1; }
}

.wave--broken .wave__bar:nth-child(5),
.wave--broken .wave__bar:nth-child(6) {
  animation: none;
  transform: scaleY(0.15);
  opacity: 0.25;
}

@media (prefers-reduced-motion: reduce) {
  .wave__bar { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Секции и сетка ---------------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.5rem 1.25rem;
  border-top: 1px solid var(--line);
}

.section--accent {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.section__text {
  max-width: 42rem;
  color: var(--muted);
  margin: 0 0 1rem;
}

.section--accent .section__text { color: var(--ink); }

.page-head {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.25rem 2rem;
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
}

.page-head__lede {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1rem;
}

/* ---------------- Карточки и экспонаты ---------------- */

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid--wide { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.grid--two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card__title { font-size: 1.3rem; }

.card__text { color: var(--muted); }

.card__more {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.exhibit {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.exhibit__art {
  height: 64px;
  color: var(--accent-2);
  margin-bottom: 1rem;
}

.exhibit__art svg { width: 120px; height: 64px; }

.exhibit:hover .exhibit__art { color: var(--accent); }

.exhibit__title { font-size: 1.35rem; }

.exhibit__text { color: var(--muted); margin: 0; }

/* ---------------- Кнопки, ссылки, панели ---------------- */

.button {
  display: inline-block;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  background: var(--accent-2);
  color: var(--bg);
  transform: translateY(-2px);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.button--ghost:hover {
  background: var(--surface-2);
  color: var(--ink);
}

.link { font-weight: 600; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.panel__title { font-size: 1.4rem; }

.hours {
  width: 100%;
  border-collapse: collapse;
}

.hours th {
  text-align: left;
  font-weight: 600;
  padding: 0.55rem 0.75rem 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.hours td {
  color: var(--muted);
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
}

.principles {
  max-width: 42rem;
  padding-left: 1.2rem;
  color: var(--muted);
}

.principles li { margin-bottom: 0.6rem; }

/* ---------------- 404 ---------------- */

.notfound {
  max-width: 46rem;
  margin: 0 auto;
  padding: 5rem 1.25rem 4rem;
  text-align: center;
}

.notfound__code {
  font-family: Georgia, serif;
  font-size: clamp(5rem, 18vw, 10rem);
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.notfound__zero { color: var(--surface-2); -webkit-text-stroke: 2px var(--accent); }

.notfound__title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

.notfound__text {
  color: var(--muted);
  max-width: 32rem;
  margin: 0 auto 2rem;
}

.notfound__cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ---------------- Подвал ---------------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p { margin: 0.25rem 0; }

.site-footer__fine {
  color: color-mix(in srgb, var(--muted) 65%, transparent);
  font-size: 0.85rem;
}
