.nav {
  display: none;
}

.header {
  position: fixed;
  z-index: 9;
  width: 100%;
  background: #0242ff;
  padding: 0 16px;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 19px;
  text-align: center;
  color: #fff;
  padding: 12px;
  border: 1.22px solid #fff;
  display: block;
  width: 194px;
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
}

.nav-link:hover {
  color: #ff0b0b;
  border-color: #000;
  background-color: #fff;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-left: auto;
}

.menu-svg {
  stroke: #002d68;
  fill: #002d68;
}

@media screen and (min-width: 1382px) {
  .header {
    padding: 17px 116px;
    background: #fff;
  }

  .nav {
    display: block;
  }

  .nav-link {
    width: 159px;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    background: #0242ff;
  }

  .menu-open {
    display: none;
  }
}

/* modal  */

.modal {
  position: fixed;
  top: 60px;
  left: 0;
  z-index: 8;
  width: 100%;
  padding: 50px 10px;
  background: #0242ff;
}

.menu-nav-list {
  flex-direction: column;
  gap: 20px;
}

/* popup */

.popup {
  position: fixed;
  z-index: 10;
  bottom: 10px;
  left: 50%;
  width: 95%;
  transform: translateX(-50%);
  padding: 40px 30px;
  border: 1px solid #fff;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 125%;
  text-align: center;
  color: #000;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 19px;
  text-align: center;
  color: #fff;
  padding: 12px;
  border: 1.22px solid #fff;
  background: #0242ff;
  box-shadow: 0 5px 5px 0 rgba(0, 0, 0, 0.25);
  transition: color 0.3s ease, border-color 0.3s ease,
    background-color 0.3s ease;
  transition: color 0.3s ease, background-color 0.3s ease;
}

.popup-btn:hover {
  color: #ff0b0b;
  border-color: #000;
  background-color: #fff;
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

@media screen and (min-width: 1382px) {
  .popup {
    gap: 44px;
  }

  .popup-text {
  }

  .popup-wrap {
    gap: 60px;
  }
}

/* home  */

.hero {
  background-image: url(./images/bg.jpg);
  background-size: cover;
  background-position: center;
  padding-top: 60px;
  padding-bottom: 102px;
}

.hero-logo {
  width: 335px;
  margin: 0 auto;
  margin-bottom: 41px;
}

.hero-title {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 900;
  font-size: 34px;
  text-align: center;
  background: linear-gradient(180deg, #000 0%, #0242ff 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 35px;
}

.hero-link {
  margin: 0 auto;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 323px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.hero-link:hover {
  transform: scale(1.04);
}

.hero-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 111%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1382px) {
  .hero {
    padding-top: 124px;
    padding-bottom: 378px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 41px;
  }

  .hero-logo {
    width: auto;
    margin: 0;
  }

  .hero-title {
    font-size: 40px;
    margin-bottom: 41px;
    text-align: start;
  }

  .hero-link {
    width: 376px;
    margin: 0;
    margin-bottom: 32px;
  }

  .hero-text {
    color: #0242ff;
    max-width: 539px;
    text-align: start;
  }
}

/* about */

#about {
  padding-top: 58px;
}

.about-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.about-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1382px) {
  #about {
    padding: 0;
  }
  .about-wrap {
    width: 800px;
    margin: 0 auto;
    padding: 96px;
  }

  .about-wrapper {
    transform: translateY(-200px);
  }
}

/* features */

#features {
  padding-top: 58px;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 110px;
}

.features-title {
  text-transform: uppercase;
  color: #fff;
  padding: 0 10px;
}

.features-wrapper {
  padding: 22px 0;
}

.features-item {
  width: 375px;
  max-width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 32px;

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 20px;
    line-height: 140%;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 20px;
  }
  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 125%;
    color: #000;
  }
}

.features-text {
  border-radius: 50px;
  padding: 39px 35px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 700;
  font-size: 20px;
  line-height: 140%;
  text-align: center;
  color: #000;
  margin-top: 64px;
}

@media screen and (min-width: 1382px) {
  #features {
    padding-top: 0;
    padding-bottom: 68px;
  }

  .features-title {
    color: #0242ff;
  }

  .features-item {
    width: 396px;
  }

  .features-text {
    max-width: 1200px;
    padding: 39px 45px;
    margin: 0 auto;
    margin-top: 44px;
  }
}

/* demo */

.iframe-wrap {
  position: relative;
  width: 335px;
  max-width: 100%;
  height: 203px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  margin-top: 60px;
}

@media screen and (min-width: 768px) {
  .iframe-wrap {
    width: 500px;
    height: 290px;
  }
}

@media screen and (min-width: 1200px) {
  .iframe-wrap {
    min-width: 837px;
    height: 490px;
  }
}

.close-button-frame {
  position: absolute;
  top: 0;
  right: 0;
  transform: translateY(-40px) translateX(10px);
  border: none;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
  background-color: transparent;
  z-index: 20;
  .menu-svg {
    fill: #fff;
    stroke: #fff;
  }
}

.close-button-frame:hover {
  .menu-svg {
    fill: blue;
    stroke: blue;
  }
}

#gameIframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media screen and (min-width: 1382px) {
  .demo-open {
    margin: 0 auto;
    margin-top: 40px;
  }
}

/* how */

#how {
  padding-left: 0;
  padding-right: 0;
}

.how-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  color: #fff;
  margin-bottom: 40px;
}

.how-item {
  width: 220px;
  max-width: 100%;
  min-height: 284px;
  border-radius: 26px;
  padding: 14px 24px;
  background: #fff;
  opacity: 0.5;

  img {
    width: 108px;
    margin: 0 auto;
    margin-bottom: 21px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 10px;
    line-height: 120%;
    text-align: center;
    color: #0242ff;
    margin-bottom: 11px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 10px;
    line-height: 120%;
    text-align: center;
    color: #000;
  }
}

.how-swiper {
  max-width: 842px;
  margin: 0 auto;
}

.how-wrapper {
  display: flex;
  align-items: center;

  .swiper-slide-active {
    width: 319px;
    opacity: 1;
    min-height: 500px;

    img {
      width: auto;
      margin-bottom: 40px;
    }

    p {
      font-size: 20px;
      margin-bottom: 20px;
    }

    span {
      font-size: 20px;
    }
  }
}

/* devices */

.devices-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  color: #000;
  margin-bottom: 44px;
}

.devices-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 16px;
  line-height: 125%;
  text-align: center;
  color: #000;
}

@media screen and (min-width: 1382px) {
  .devices-list {
    flex-direction: row;
    gap: 80px;
    align-items: flex-start;
    justify-content: center;
  }
}

/* community */

.ship {
  width: 335px;
  margin: 0 auto;
  margin-bottom: 80px;
}
.community-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 120%;
  text-align: center;
  color: #000;
  margin-bottom: 20px;
}

@media screen and (min-width: 1382px) {
  #community {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 93px;
  }
  .ship {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .community-title {
    text-align: end;
  }

  .community-text {
    text-align: end;
  }

  .community-link {
    margin-left: auto;
  }
}

/* desclimer */

.desclimer {
  border: 8.71px solid #ff0b0b;
  padding: 36px 38px;
  background-image: url(./images/bg.jpg);
  background-size: cover;
  background-position: center;
}

.desclimer-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 31px;
  line-height: 70%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ff0b0b;
  margin-bottom: 16px;
}

.desc-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 19px;
  line-height: 117%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-align: justify;
  color: #0242ff;
}

@media screen and (min-width: 1382px) {
  .desclimer {
    border: 8.71px solid #ff0b0b;
    padding: 50px 116px;
  }
  .desclimer-title {
    font-size: 40px;
    margin-bottom: 21px;
  }

  .desc-text {
    font-size: 24px;
  }
}

/* footer */

.footer {
  padding: 100px 15px;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 8px;
  line-height: 200%;
  text-transform: uppercase;
  color: #ff0b0b;
  margin-top: 18px;
}

.footer-wrap {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.footer-link {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 22px;
  line-height: 70%;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #0242ff;
}

@media screen and (min-width: 1382px) {
  .footer {
    padding: 40px 116px;
    padding-top: 138px;
  }

  .footer-wrap {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 67px;
  }

  .footer-link {
    font-size: 36px;
  }

  .footer-text {
    font-size: 14px;
    margin-top: 27px;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.popup-click {
  transform: translateY(120%) translateX(-50%);
}
