* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background: #000618;
  font-family: 'Jost', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
}

#stage {
  position: relative;
  min-height: 100vh;
  padding: 120px 60px;
}

#list {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin-left: auto;
  margin-right: 20%;
  gap: 8px;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

#list.dimmed {
  transform: translateX(-400px);
  opacity: 0.3;
  pointer-events: none;
}

.item {
  display: inline-block;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 42px;
  line-height: 1.4;
  color: #ffffff;
  text-decoration: none;
  background: transparent;
  border: none;
  padding: 12px 0;
  letter-spacing: 0.01em;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

.item .prefix {
  display: inline-block;
  margin-right: 6px;
}

.item:hover {
  color: #ffc84a;
  transform: translateX(8px);
}

/* подсписок */

#sub {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: auto;
}

#sub[hidden] {
  display: none;
}

#sub-list {
  display: flex;
  flex-direction: column;
  max-width: 900px;
  margin-left: auto;
  margin-right: 20%;
  gap: 8px;
}

#back {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: 20%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: 'Jost', sans-serif;
  font-size: 42px;
  font-weight: 500;
  line-height: 1.4;
  padding: 0;
  text-align: left;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

#back:hover {
  color: #ffc84a;
}