:root {
  --bg: #0b0b0c;
  --bg-2: #161618;
  --panel: #333038;
  --panel-active: #222124;
  --text: #ffffff;
  --muted: #b5b5b8;
  --accent: #1c59ff;
  --radius: 8px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
}

a { color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Меню ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 10px 20px;
  transition: background-color .3s;
}

.header--scrolled { background: rgba(0, 0, 0, .9); }

/* Три колонки: боковые растягиваются одинаково, поэтому логотип всегда ровно по центру */
.header__inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  min-height: 60px;
}

.header__logo {
  grid-column: 2;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 2px;
  text-decoration: none;
}

.nav {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav__link {
  font-weight: 600;
  text-decoration: none;
  transition: opacity .2s;
}

.nav__link:hover { opacity: .7; }

.nav__link--donate {
  padding: 0px 0px;
  border-radius: 20px;
  background: none;
}

.nav__link--donate:hover { opacity: .85; }

.socials {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 8px;
}

.socials__link {
  display: flex;
  padding: 4px;
  transition: opacity .2s;
}

.socials__link:hover { opacity: .7; }

.burger {
  grid-column: 1;
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}

.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  transition: transform .3s, opacity .3s;
}

.burger--open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- Обложка ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #000;
}

/* object-fit: cover обрезает края видео, чтобы оно закрывало весь экран без чёрных полос */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  background: #000;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
}

.hero__content {
  position: relative;
  padding-top: 120px;
  padding-bottom: 90px;
  text-align: center;
}

.hero__title {
  margin: 0 0 60px;
  font-size: clamp(40px, 8vw, 82px);
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, .5);
}

.hero__title span {
  display: block;
  font-size: .5em;
  font-weight: 600;
}

.hero__descr {
  max-width: 900px;
  margin: 0 auto;
  font-size: clamp(15px, 2vw, 20px);
  text-align: left;
}

.hero__descr p { margin: 0 0 12px; }

.hero__descr a { text-decoration: none; border-bottom: 1px solid currentColor; }

/* ---------- Секции ---------- */
.section { padding: 90px 0; }

.section__title {
  margin: 0 0 30px;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.2;
}

/* ---------- Проекты ---------- */
.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.projects__list {
  margin: 0;
  padding-left: 22px;
  font-size: 18px;
}

.projects__list li { margin-bottom: 14px; }

.projects__video { margin: 0; }

.projects__video figcaption { margin-top: 10px; font-size: 15px; }

.projects__video figcaption span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: #000 center / cover no-repeat;
  cursor: pointer;
}

.video-preview__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .65);
  transform: translate(-50%, -50%);
  transition: transform .2s, background-color .2s;
}

.video-preview__play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 13px 0 13px 22px;
  border-color: transparent transparent transparent #fff;
  transform: translate(-50%, -50%);
}

.video-preview:hover .video-preview__play,
.video-preview:focus-visible .video-preview__play {
  background: #f00;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-preview__note {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .7);
  color: #fff;
  font-size: 13px;
  white-space: nowrap;
}

/* ---------- Плейлист ---------- */
.playlist { background: var(--bg-2); }

.playlist__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  align-items: start;
}

.playlist__title { margin: 20px 0 8px; font-size: 24px; }

.playlist__descr { margin: 0; color: var(--muted); font-size: 17px; }

.playlist__side {
  background: var(--panel);
  border: 1px solid #000;
  border-radius: var(--radius);
  overflow: hidden;
}

.playlist__head {
  padding: 15px;
  border-bottom: 1px solid #000;
}

.playlist__head-title { font-size: 20px; font-weight: 600; }

.playlist__count { color: var(--muted); font-size: 14px; }

.playlist__items { list-style: none; margin: 0; padding: 0; }

.playlist__item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background: none;
  border: 0;
  border-bottom: 1px solid #000;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}

.playlist__item:hover,
.playlist__item--active { background: var(--panel-active); }

.playlist__num,
.playlist__time { color: var(--muted); font-size: 13px; flex-shrink: 0; }

.playlist__name { flex-grow: 1; }

/* ---------- Сетап ---------- */
/* Заголовок и описание — по центру, над карточками */
.setup .section__title { text-align: center; }

.setup__descr {
  max-width: 640px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 18px;
  text-align: center;
}

/* Карточки в ряд; фото вертикальные, поэтому ряд не растягиваем на всю ширину */
.setup__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.setup__card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--bg-2);
}

.setup__card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* Название поверх фото: затемнение снизу, чтобы белый текст читался на любом фоне */
.setup__name {
  position: absolute;
  inset: auto 0 0 0;
  padding: 60px 20px 18px;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), transparent);
  font-weight: 600;
  font-size: 18px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}

/* ---------- Донат ---------- */
.donate { padding-top: 0; }

.donate__card {
  max-width: 720px;
  margin: 0 auto;
  padding: 50px 30px;
  border: 1px solid #2a2a2e;
  border-radius: 16px;
  background: #a03788;
  text-align: center;
}

.donate__card .section__title { margin-bottom: 16px; }

.donate__text {
  max-width: 520px;
  margin: 0 auto 30px;
  color: var(--muted);
  font-size: 17px;
}

.donate__button {
  display: inline-block;
  padding: 14px 40px;
  border-radius: 30px;
  background: #0000004d;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
  border: 1px solid #ffffff;
}

.donate__button:hover { transform: translateY(-2px); }

/* Пока ссылка не подключена */
.donate__button--disabled {
  background: #3a3a3f;
  color: var(--muted);
  pointer-events: none;
}

.donate__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.donate__hint {
  max-width: 480px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Подвал ---------- */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  color: var(--muted);
}

.footer p { max-width: 600px; margin: 0 auto; }

.footer strong { color: var(--text); }

/* ---------- Кнопка «наверх» ---------- */
.to-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #000;
  box-shadow: 0 0 10px rgba(0, 0, 0, .2);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s, background-color .2s, color .2s;
}

.to-top--visible { opacity: 1; visibility: visible; }

.to-top:hover { background: var(--accent); color: #fff; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
  .header { background: #000; }

  .burger { display: flex; }

  .socials { margin-left: auto; }

  .nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: #000;
    transform: translateY(-150%);
    transition: transform .3s;
  }

  .nav--open { transform: translateY(0); }

  .projects__grid,
  .playlist__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 60px 0; }

  .header__inner { gap: 16px; }

  .hero__title { margin-bottom: 30px; }

  .setup__cards { gap: 12px; }

  .setup__name { padding: 40px 12px 12px; font-size: 14px; }
}
