@font-face {
  font-family: 'Druk Wide Cyr';
  src: url('../fonts/DrukWideCyr/DrukWideCyr.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'Nunito';
  src: url('../fonts/Nunito/Nunito.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
} 

* {
  font-size: 24px;
  margin: 0;
  padding: 0;
  font-weight: 500;
  box-sizing: border-box;
}

body {
  font-family: 'Druk Wide Cyr', sans-serif;
  color: hsla(0, 0%, 100%, 1);
}

img {
  max-width: 100%;
}

button {
  outline: none;
  border: none;
}

.layout {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 92px 40px;
  height: 100dvh;
  background-color: hsl(0, 0%, 0%);
}

.bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
}

.bg__cloud-b-m {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.bg__cloud-l-m {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 80%;
  pointer-events: none;
  user-select: none;
}

.bg__cloud-b-d {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  user-select: none;
}

.bg__cloud-l-d {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  pointer-events: none;
  user-select: none;
}

.bg__cloud-r-d {
  display: none;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30%;
  pointer-events: none;
  user-select: none;
}

.bg__label-l {
  display:none;
  position: absolute;
  top: 274px;
  left: 11%;
}

.bg__label-r {
  display:none;
  position: absolute;
  top: 207px;
  right: 12%;
}

.bg__label-l-skydiver {
  position: absolute;
  top: 25%;
  left: 33%;
  pointer-events: none;
  user-select: none;
}

.bg__label-r-skydiver {
  position: absolute;
  bottom: -130%;
  left: 26%;
  pointer-events: none;
  user-select: none;
}

.bg__label-l-text {
  transform: rotate(-22.26deg)
}

.bg__label-r-text {
  transform: rotate(19.42deg)
}

.bg__star-s-l {
  display: none;
  position: absolute;
  top: 156px;
  left: 7.8%;
  width: 12px;
  height: 12px;
  transform: rotate(-23.52deg);
  pointer-events: none;
  user-select: none;
}

.bg__star-m-l {
  display: none;
  position: absolute;
  top: 252px;
  left: 25.5%;
  pointer-events: none;
  user-select: none;
}

.bg__star-s-r {
  display: none;
  position: absolute;
  top: 91px;
  right: 13%;
  width: 12px;
  height: 12px;
  pointer-events: none;
  user-select: none;
}

.bg__star-m-r {
  display: none;
  position: absolute;
  top: 253px;
  right: 29.6%;
  pointer-events: none;
  user-select: none;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  z-index: 2;
}

.hero__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 9px;
  font-size: 24px;
  font-weight: bold;
}

.logo__sep {
  font-weight: 500;
  color: hsl(0, 0%, 37%);
}

.title {
  line-height: 36px;
  text-transform: uppercase;
  margin-top: 51px;
  background-color: hsla(0, 0%, 0%, 0.3);
}

.loader {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 223px;
  height: 223px;
  margin-top: 45px;
}

.content {
  margin-top: 19px;
  margin-right: -35px;
  margin-left: -35px;
}

.content__title {
  margin-bottom: 24px;
  line-height: 56px;
  color: hsl(150, 100%, 34%);
}

.content__title-value {
  font-size: 48px;
  line-height: 56px
}


.first-step, .second-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.loader__spinner {
  width: 185px;
  height: 185px;
  position: absolute;
  animation: spin 2s linear infinite;
}

.loader__icon {
  position: absolute;
  font-size: 24px;
  color: #3498db;
}

.label {
  font-weight: 500;
  line-height: 15px;
  padding: 10px;
  border-radius: 12px;
  background-color: hsl(150, 100%, 34%);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.button {
  font-family: 'Nunito', sans-serif;
  line-height: 20px;
  font-weight: 700;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.3s;
  color: hsla(0, 0%, 100%, 1);
  background-color: hsl(150, 100%, 34%);
  box-shadow: 0px 8px 16px 0px hsla(150, 100%, 34%, 0.25)
}

.button--size-m {
  width: 294px;
}

.button--block {
  width: 100%;
}

.button:hover {
  background-color: hsl(150, 100%, 22%);
  transform: scale(1.05);
}

.modal {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  align-items: center;
  justify-content: center;
  padding: 7px;
  background-color: hsla(0, 0%, 0%, 0.5);
  backdrop-filter: blur(10px);
  z-index: 10;
}

.modal__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 397px;
  padding: 52px 8px;
  border-radius: 12px;
  background: linear-gradient(180deg, hsl(152, 100%, 13%) 0%, hsl(0, 0%, 0%) 100%);
}

.modal__title {
  font-size: 20px;
  font-weight: 500;
  line-height: 24px;
}

.modal__description {
  font-weight: 500;
  line-height: 33px;
  text-transform: uppercase;
  margin-top: 8px;
  color: hsl(150, 100%, 43%);
}

.modal__nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 24px;
}

.language-selector {
  position: fixed;
  top: 9px;
  right: 8px;
  z-index: 3;
}

.language-selector__button {
  background: white;
  border-radius: 8px;
  background-color: hsl(214, 24%, 11%);
  padding: 12px;
  width: 48px;
  height: 48px;
  cursor: pointer;
  user-select: none;
}

.language-selector__button:hover {
  background-color: hsla(211, 22%, 22%, 1)
}

.language-options {
  display: none;
  list-style: none;
  padding: 4px 0;
  margin: 5px 0 0;
  background-color: hsl(211, 22%, 22%);
  border-radius: 8px;
  overflow: hidden;
}

.language-option {
  padding: 4px 12px;
  cursor: pointer;
}

.language-option:hover {
  background-color: hsl(214, 24%, 11%);
}

.language-selector.show .language-options {
  display: block;
}

@media (min-width: 768px) {
  .layout {
    position: relative;
    display: flex;
    justify-content: center;
    padding: 48px 40px 79px;
    height: 100vh;
    background-color: hsl(0, 0%, 0%);
  }

  .bg__cloud-b-m {
    display: none;
  }

  .bg__cloud-l-m {
    display: none
  }

  .bg__cloud-l-d {
    display: block;
  }

  .bg__cloud-r-d {
    display: block;
  }

  .bg__cloud-b-d {
    display: block;
  }

  .bg__star-s-l {
    display: block;
  }

  .bg__star-m-l {
    display: block;
  }

  .bg__star-s-r {
    display: block;
  }

  .bg__star-m-r {
    display: block;
  }

  .bg__label-l {
    display: block;
  }

  .bg__label-r {
    display: block;
  }

  .title {
    font-size: 36px;
    line-height: 56px;
    text-transform: uppercase;
    max-width: 800px;
    margin-top: 28px;
  }

  .loader {
    margin-top: 74px;
  }


  .hero__logo {
    margin-bottom: 28px;
  }

  .content {
    position: relative;
    margin-top: 77px;
  }

  .content__title {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%)
  }

  .content__img {
    transform: translate(8%, -7%);
  }

  .modal__content {
    padding: 52px 26px;
  }

  .language-selector {
    top: 36px;
    right: 42px;
  }
}

@keyframes jiggle {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.star-jiggle {
  display: inline-block;
  animation: jiggle 0.5s ease-in-out infinite;
}

@keyframes jiggle-slow {
  0%, 100% {
    transform: rotate(0deg);
  }
  25% {
    transform: rotate(5deg);
  }
  50% {
    transform: rotate(0deg);
  }
  75% {
    transform: rotate(-5deg);
  }
}

.star-jiggle-slow {
  display: inline-block;
  animation: jiggle-slow 1.5s ease-in-out infinite;
}

@keyframes jiggle-bounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  20% {
    transform: translateY(-3px) rotate(6deg);
  }
  40% {
    transform: translateY(0) rotate(0deg);
  }
  60% {
    transform: translateY(3px) rotate(-6deg);
  }
  80% {
    transform: translateY(0) rotate(0deg);
  }
}

.star-jiggle-bounce {
  display: inline-block;
  animation: jiggle-bounce 0.7s ease-out infinite;
}

.flex { display: flex; }
.hidden { display: none; }
#modal { display: none; }
#modal.active { display: flex; }