*, *::before, *::after {
  box-sizing: border-box;
}

* {
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: url("/assets/bg.jpg") center/cover no-repeat;
  background-color: #0A0A0D;
  cursor: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"%3E%3Cpath fill="%23FFF" stroke="%23000" stroke-width="2" d="M5.5 3.21V20.8c0 .45.54.67.85.35l4.86-4.86a.5.5 0 0 1 .35-.15h6.87a.5.5 0 0 0 .35-.85L6.35 2.85a.5.5 0 0 0-.85.35Z"%3E%3C/path%3E%3C/svg%3E'), auto;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
}

.wrapper {
  width: 768px;
  height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 0 clamp(16px, 3vw, 24px);
  pointer-events: none;
}

.wrapper > * {
  pointer-events: auto;
}

.header-fixed {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 24px clamp(16px, 3vw, 24px) 0 clamp(16px, 3vw, 24px);
  z-index: 100;
  pointer-events: none;
}

.header-fixed > * {
  pointer-events: auto;
}

.scroll-container {
  position: absolute;
  top: 50px;
  left: clamp(16px, 3vw, 24px);
  right: clamp(16px, 3vw, 24px);
  bottom: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 64px;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}

.scroll-container::-webkit-scrollbar {
  display: none;
}

.scroll-container::-webkit-scrollbar-track {
  background: transparent;
}

.scroll-container::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.scroll-container::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.placeholder {
  width: 100%;
}

.bottom-blur {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 96px;
  pointer-events: none;
  z-index: 50;
}

.bottom-blur::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

.bottom-blur::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  mask-image: linear-gradient(to top, black 0%, transparent 100%);
}

.fp {
  padding-bottom: 100px;
}

.mobile-nav {
  display: none;
}

.mob-header {
  display: none;
}

/* Планшеты и средние экраны */
@media screen and (max-width: 950px) and (min-width: 509px) {
  body {
    align-items: flex-start;
  }

  .wrapper {
    max-height: none;
  }

  .scroll-container {
    gap: 64px;
  }
}

/* Мобильные устройства */
@media screen and (max-width: 508px) {
  body {
    align-items: flex-start;
  }

  .wrapper {
    height: 100vh;
    max-height: none;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .mob-header {
    display: flex;
    padding-top: 24px;
    flex-shrink: 0;
  }

  .header-fixed {
    display: none;
  }

  /*.scroll-container {*/
  /*  position: relative;*/
  /*  top: auto;*/
  /*  left: 0;*/
  /*  right: 0;*/
  /*  bottom: auto;*/
  /*  flex: 1;*/
  /*  overflow-y: auto;*/
  /*  overflow-x: hidden;*/
  /*  display: flex;*/
  /*  flex-direction: column;*/
  /*  gap: 48px;*/
  /*  padding-bottom: 80px;*/
  /*}*/

  .scroll-container {
    position: relative;
    top: auto;
    left: 0;
    right: 0;
    bottom: auto;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 80px;
  }

  .scroll-container > .mob-header {
    margin-bottom: 20px;
  }

  .scroll-container > .placeholder {
    margin-bottom: 48px;
  }

  .scroll-container > .placeholder:last-child {
    margin-bottom: 0;
  }

  /*.bottom-blur {*/
  /*  display: none;*/
  /*}*/

  .fp {
    padding-bottom: 0;
  }

  .mobile-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 624px;
    height: 48px;
    background-color: var(--dark-color-60);
    border-radius: 100px;
    border: 1px solid var(--dark-color-10);
    padding: 6px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 101;
  }

  .mob-nav {
    display: flex;
    gap: 8px;
    width: 168px;
    height: 36px;
  }

  .mob-controls {
    width: 80px;
    height: 36px;
    gap: 8px;
    display: flex;
  }
}