@font-face {
  font-family: 'DrukTextWide';
  src: url('fonts/DrukTextWideCyr-Medium.woff2') format('woff2'),
       url('fonts/DrukTextWideCyr-Medium.woff')  format('woff'),
       url('fonts/DrukTextWideCyr-Medium.otf')   format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: 'DrukTextWide', sans-serif;
}

#parallax-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

#bg {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background: url('img/bc.webp') center center/cover no-repeat;
  filter: brightness(0.85);
  will-change: transform;
}

#content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #c10215;
  will-change: transform;
}

#logo {
  max-width: 300px;
  margin: 0 auto 1rem;
  width: 100%;
  height: auto;
  display: block;
}

#title {
  margin: 0;
  padding: 0;
  font-size: 3rem;
}

#subtitle {
  margin: 0 0 0.5rem 0;
  padding: 0;
  font-size: 1.75rem;
}

.titles {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#social {
  margin-top: 0.5rem !important;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

#social a {
  display: inline-block;
  transition: transform 0.3s ease;
}

#social img {
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

#social a:hover img {
  transform: scale(1.1);
  filter: brightness(0) invert(1);
}

#footer {
  position: absolute;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: #ccc;
}

#footer a {
  color: #c10215;
  text-decoration: none;
  transition: color .3s;
}

#footer a:hover {
  color: #ffffff;
}

.scroll-buffer {
  display: none;
}

/* Мобильная версия */
@media (max-width: 768px) {
  html, body {
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    overflow-x: hidden;
  }

  #parallax-container {
    min-height: 100vh;
    position: relative;
    box-sizing: border-box;
    padding: 0;
  }

  #bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
  }

  #content {
    position: static !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    width: 100vw;
    max-width: 420px;
    margin: 10vh auto 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
  }

  .titles {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  #title {
    font-size: clamp(1.2rem, 6vw, 2.2rem);
    font-weight: bold;
    color: #c10215;
    white-space: nowrap;
    text-align: center;
  }

  #subtitle {
    color: #c10215;
    font-size: clamp(0.8rem, 4vw, 1.1rem);
    margin: 0;
    width: 100%;
    text-align: center;
    white-space: nowrap;
  }

  #social {
    gap: 1rem;
  }

  #footer {
    margin-top: 2rem;
    padding: 1.2rem 0 1.5rem 0;
    font-size: 0.7rem;
    text-align: center;
    color: #ccc;
    width: 100vw;
    max-width: 420px;
    background: none;
    position: static;
    box-sizing: border-box;
  }

  .scroll-buffer {
    display: block;
    width: 100%;
    height: 2px;
    pointer-events: none;
    opacity: 0;
  }
}

/* Small mobile devices */
@media (max-width: 360px) {
  #content {
    padding: 0.25rem;
    gap: 0.25rem;
  }
  
  #logo {
    max-width: 70vw;
  }
  
  #social {
    gap: 0.5rem;
  }
  
  #social img {
    width: 28px;
    height: 28px;
  }
  
  #footer {
    font-size: 0.65rem;
    padding: 0.15rem 0 1rem 0;
  }
}

#rave-container {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: #8ACE00;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#rave-logo {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: brightness(0);
  margin-bottom: 1rem;
}

#rave-container .titles {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#rave-container #title {
  margin: 0;
  padding: 0;
  font-size: 2rem;
  color: #000;
}