:root {
  --text: #e5e5e5;
  --bg: #0b0b0b;
  --glass: rgba(0, 0, 0, 0.42);
  --stroke: rgba(229, 229, 229, 0.18);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

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

/* Общий экран */

.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--text);
}

.hero.home {
  background: url("./assets/rock.jpg") center center / cover no-repeat;
}

.hero.blog {
  background: url("./assets/hero.jpg") center center / cover no-repeat;
}

.hero.gallery {
  background-image: url("./assets/contact.jpeg");
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero.contact {
  background: url("./assets/gallery.jpeg") center center / cover no-repeat;
}

/* Затемнение фона */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 0;

  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.62),
      rgba(0, 0, 0, 0.18) 38%,
      rgba(0, 0, 0, 0.72)
    );

  pointer-events: none;
}

/* Интерфейс поверх затемнения */

.top,
.content,
.footer {
  position: relative;
  z-index: 1;
}

/* Верхняя строка */

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;

  /*
    Логотип, языки и звук спущены примерно на 12 px.
    Слева и справа одинаковый отступ 24 px.
  */
  padding: 49px 43px 18px;
}

.brand {
  color: var(--text);
  font-family: "Special Elite", cursive;
  font-size: 22px;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: lowercase;
  opacity: 1;
}

.brand:hover {
  opacity: 0.72;
}

/* Языки и звук */

.lang {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-btn {
  margin: 0;
  padding: 0;

  color: var(--text);
  background: none;
  border: 0;
  border-radius: 0;

  font-family: "Special Elite", cursive;
  font-size: 14px;

  cursor: pointer;
  opacity: 0.62;
}

.lang-btn:hover,
.lang-btn.active {
  opacity: 1;
}

#music-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;

  color: var(--text);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;

  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;
  opacity: 0.62;
}

#music-btn:hover,
#music-btn.playing {
  opacity: 1;
}

#music-btn svg {
  display: block;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

/* Основная раскладка */

.content {
  display: grid;
  flex: 1;

  grid-template-columns: 150px minmax(0, 1fr);
  gap: 36px;
  align-items: start;

  /*
    Меню спущено примерно на 12 px.
    Левый отступ 24 px совпадает с логотипом.
  */
  padding: 46px 43px 48px;
}

/* Главное меню */

.menu {
  position: sticky;
  top: 28px;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.menu .btn {
  width: auto;
  margin: 0;
  padding: 0;

  color: var(--text);
  background: none;
  border: 0;
  border-radius: 0;

  font-family: "Inter", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;

  text-decoration: none;
  cursor: pointer;
  opacity: 0.76;
}

.menu .btn:hover {
  opacity: 1;
}

/* Контентная панель */

.panel {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 22px 24px;

  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: 18px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.panel-wide {
  width: min(1100px, 100%);
}

/* Используется для скрытия панели на Home */

.panel-hidden {
  display: none;
}

.box {
  margin: 0;
  padding: 0;
  border: 0;
}

.box[hidden] {
  display: none;
}

/* Тексты */

h1,
h2 {
  margin: 0 0 16px;
  font-family: "Special Elite", cursive;
  font-weight: 400;
}

h1 {
  font-size: 34px;
}

h2 {
  font-size: 24px;
}

p {
  margin: 0 0 16px;
}

.muted {
  opacity: 0.9;
  line-height: 1.55;
}

.small {
  font-size: 13px;
}

/* Форма */

.form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

label span {
  display: block;
  margin-bottom: 7px;
}

input,
textarea {
  width: 100%;
  padding: 10px 12px;

  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--stroke);
  border-radius: 10px;

  font: inherit;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: rgba(229, 229, 229, 0.45);
}

textarea {
  resize: vertical;
}

.honeypot {
  display: none;
}

/* Кнопка формы */

.form .btn.primary {
  width: auto;
  justify-self: start;
  padding: 9px 15px;

  color: var(--text);
  background: rgba(229, 229, 229, 0.11);
  border: 1px solid var(--stroke);
  border-radius: 10px;

  font-family: "Inter", Arial, sans-serif;
  cursor: pointer;
}

.form .btn.primary:hover {
  background: rgba(229, 229, 229, 0.18);
}

/* Ссылки */

a {
  color: var(--text);
}

.link {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link:hover {
  opacity: 0.72;
}

/* Юридические страницы */

.legal {
  font-size: 14px;
}

.legal h2 {
  font-size: 21px;
}

/* Галерея */

.video-gallery {
  display: flex;
  flex-direction: column;
  gap: 42px;
  width: 100%;
}

.video-item {
  width: 100%;
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;

  background: #000;
  border-radius: 12px;
  overflow: hidden;

  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

.video-frame:hover {
  filter: grayscale(0%);
}

.video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Футер */

.footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;

  /*
    Больший нижний отступ поднимает содержимое футера
    и даёт ему больше воздуха от нижнего края.
  */
  padding: 16px 24px 36px;
}

.footer-copy {
  justify-self: start;
}

.footer-links {
  display: flex;
  justify-self: end;
  gap: 16px;
}

.footer-links a {
  color: var(--text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 12px;
  text-decoration: none;
  opacity: 0.65;
}

.footer-links a:hover {
  opacity: 1;
}

/* Социальные сети */

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 17px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 19px;
  height: 19px;

  color: var(--text);
  text-decoration: none;
  opacity: 0.62;

  transition: opacity 0.2s ease;
}

.social-links a:hover {
  opacity: 1;
}

.social-links svg {
  display: block;
  width: 100%;
  height: 100%;

  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-links .icon-fill {
  fill: currentColor;
  stroke: none;
}

.social-links .icon-dot {
  fill: currentColor;
  stroke: none;
}

/* Мобильная версия */

@media (max-width: 700px) {
  .hero.home {
  background-position: 30% center;
}
  .hero.gallery {
  background-attachment: scroll;
  background-position: center top;
}
  .top {
    padding: 24px 18px 16px;
  }

  .brand {
    font-size: 19px;
  }

  .content {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px 18px 36px;
  }

  .menu {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 18px;
  }

  .panel,
  .panel-wide {
    width: 100%;
  }

  .footer {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 14px;
    padding: 18px 18px 30px;
  }

  .footer-copy,
  .footer-links {
    justify-self: center;
  }

  /*
    На телефоне превью сразу цветное,
    поскольку нормального наведения курсором там нет.
  */
  .video-frame,
  .video-frame:hover {
    filter: none;
    -webkit-filter: none;
  }
}

@media (hover: none), (pointer: coarse) {
  .video-frame,
  .video-frame:hover {
    filter: none;
    -webkit-filter: none;
  }
  html[lang="uk"] h1,
html[lang="uk"] h2 {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: 0;
}
}
