.main-section {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100%;
  padding: 22px;
  background: #000;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.page-nav-link {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 32px;
  color: #fff;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  color: #f00;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-open-svg {
  stroke: #f00;
}

.menu-close-svg {
  stroke: #f00;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 18px;
  }

  .page-nav {
    display: block;
  }

  .page-nav-link {
    font-size: 20px;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  padding: 40px 20px;
  padding-top: 100px;
  padding-left: 90px;
  transform: translateX(100%);
  transition: transform 1s ease;
  background: #000;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 34px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  width: 100%;
  bottom: 0;
  left: 0;
  transition: transform 0.4s ease;
  padding: 40px 36px;
  background: #000;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 125%;
  text-align: center;
  color: #fff;
  margin-bottom: 18px;
}

.popup-btn {
  border-radius: 5px;
  padding: 9px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  color: #fe7474;
  text-transform: uppercase;
  text-decoration: underline;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  background: #f00;
  color: #fff;
  text-decoration: none;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 16px;
}

@media screen and (min-width: 1436px) {
  .popup-text {
    font-size: 18px;
    margin-bottom: 24px;
  }

  .popup-btn {
    font-size: 16px;
  }

  .popup-wrap {
    gap: 80px;
  }
}

/* hero  */

.dashboard {
  padding-top: 378px;
  background-image: linear-gradient(270deg, rgba(0, 0, 0, 0) 0%, #000 100%),
    url(../img/home.jpg);
  background-size: cover;
  background-position: center;
}

.hero-title {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 40px;
  line-height: 140%;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 24px;
  line-height: 117%;
  color: #f94848;
  margin-bottom: 50px;
}

.page-hero-desc {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 120%;
  color: #fff;
  margin-bottom: 43px;
}

.page-hero-link {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 18px;
  line-height: 113%;
  text-transform: uppercase;
  color: #fff;
  padding: 27px;
  background: #f00;
  display: block;
  text-align: center;
  margin: 0 auto;
  width: 330px;
  max-width: 100%;
  transition: background-color 0.3s ease;
}

.page-hero-link:hover {
  background: rgb(169, 8, 8);
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 182px;
    padding-bottom: 286px;
  }

  .page-hero-text {
    max-width: 788px;
  }

  .page-hero-desc {
    max-width: 760px;
  }
  .page-hero-link {
    margin: 0;
  }
}

/* about  */

/* story */

.about-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 18px;
  line-height: 111%;
  color: #fff;
}

@media screen and (min-width: 1436px) {
  .about-wrapper {
    display: flex;
    gap: 286px;
  }
}

/* puzzles */

#puzzles {
  background: linear-gradient(180deg, rgba(34, 38, 49, 0) 0%, #105c79 100%);
}

.puzzles-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  text-align: right;
  color: #fff;
  margin-bottom: 50px;
}

.puzzles-item {
  width: 292px;

  p {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 233%;
    text-transform: uppercase;
    text-align: right;
    color: #fe7474;
    margin-bottom: 30px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 111%;
    text-align: right;
    color: #fff;
  }
}

.boys {
  display: none;
}

.puzzles-right {
  display: block;
  width: 44px;
  margin-top: 36px;
  margin-left: auto;
  transition: transform 0.3s ease;
}

.puzzles-right:hover {
  transform: scale(1.1);
}

.dragon-wrap {
  width: 100%;
  margin-top: 94px;
  height: 325px;
  background-image: url(../img/dragon2.jpg);
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 1436px) {
  #puzzles {
    position: relative;
    padding-top: 100px;
  }
  .puzzles-text {
    width: 700px;
    margin-left: auto;
  }
  .puzzles-swiper {
    width: 700px;
    margin-left: auto;
    margin-right: 0;
  }

  .dragon-wrap {
    height: 546px;
  }

  .boys {
    display: block;
    position: absolute;
    bottom: 0;
    left: -100px;
  }
}

/* bonus */

.bonus-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  color: #fff;
  max-width: 525px;
  margin-bottom: 33px;
}

.bonus-item {
  padding: 64px 26px 18px 26px;
  width: 334px;
  max-width: 100%;
  min-height: 284px;
  background: linear-gradient(180deg, #000 0%, #105c79 100%);

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 18px;
    line-height: 111%;
    text-transform: uppercase;
    text-align: center;
    color: #fff;
    margin-bottom: 26px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 111%;
    text-align: center;
    color: #fff;
  }
}

/* enjoy */

#enjoy {
  padding-bottom: 352px;
  background-image: url(../img/enjoy.png);
  background-position: left -146px bottom;
  background-repeat: no-repeat;
}

.enjoy-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  color: #fff;
  max-width: 525px;
  margin-bottom: 17px;
}

.enjoy-list {
  display: none;
}

@media screen and (min-width: 1436px) {
  .enjoy-swiper {
    display: none;
  }

  .enjoy-list {
    display: flex;
    gap: 32px;
    flex-direction: row;
    flex-wrap: wrap;
    width: 680px;
    margin-left: auto;

    div {
      width: calc((100% - 32px) / 2);
    }
  }

  .enjoy-text {
    margin-bottom: 59px;
  }

  #enjoy {
    padding-bottom: 0;
    display: flex;
    background-position: left bottom;
  }
}

/* features */

#features {
  padding-bottom: 510px;
  position: relative;
  overflow: hidden;
}

.dragon {
  position: absolute;
  bottom: 0;
  max-width: max-content;
  left: 50%;
  transform: translateX(-50%);
  width: 940px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 4px;

  li {
    display: flex;
    flex-direction: column;
  }

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 20px;
    line-height: 280%;
    text-transform: uppercase;
    color: #fff;
  }
  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 311%;
    color: #fff;
  }
}

@media screen and (min-width: 1436px) {
  #features {
    padding-top: 110px;
    padding-bottom: 130px;
  }

  .dragon {
    bottom: -120px;
    left: 50%;
    transform: translateX(0);
    width: auto;
  }

  .features-list {
    width: 1012px;

    li {
      flex-direction: row;
      gap: 59px;
    }

    p {
      width: 300px;
    }
  }
}

/* how */

.how-item {
  width: 285px;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 21px;

  span {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 128px;
    line-height: 44%;
    text-transform: uppercase;
    background: linear-gradient(180deg, #000 0%, #105c79 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  h5 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 24px;
    line-height: 233%;
    text-transform: uppercase;
    background: linear-gradient(180deg, #000 0%, #105c79 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
  }

  p {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 111%;
    color: #fff;
  }
}

@media screen and (min-width: 1436px) {
  .how-item {
    width: 325px;
  }
}

/* gallery */

.gallery-item {
  width: 476px;
  max-width: 100%;
}

@media screen and (min-width: 1436px) {
  .gallery-item {
    width: 896px;
    max-width: 100%;
  }
}

/* system */

.system-list {
  display: flex;
  flex-direction: column;
  gap: 22px;

  li {
    display: flex;
    align-items: center;
    gap: 30px;
  }

  p {
    width: 143px;
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 20px;
    line-height: 280%;
    text-transform: uppercase;
    color: #fff;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 311%;
    color: #fff;
  }
}
@media screen and (min-width: 1436px) {
  .system-wrap {
    display: flex;
    align-items: flex-start;
    gap: 193px;
  }

  .system-list {
    width: 436px;
    flex-shrink: 0;
  }
}

/* what */

.what-list {
  li {
    flex-direction: column;
    gap: 0;
    align-items: flex-end;
  }

  p {
    width: auto;
  }

  span {
    display: block;
  }
}

@media screen and (min-width: 1436px) {
  .what-list {
    width: auto;
    align-items: flex-start;

    li {
      flex-direction: row;
      gap: 30px;
    }

    p {
      width: 184px;
    }
  }
}

/* download */

.download-title {
  text-align: center;
}

.download-text {
  font-family: var(--second-family);
  font-weight: 400;
  font-size: 36px;
  line-height: 156%;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 20px;
}

@media screen and (min-width: 1436px) {
  .download-title,
  .download-text {
    text-align: start;
  }
}

/* contact */

.contact-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  color: #fff;
  margin-bottom: 40px;
}

.contact-sub-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 18px;
  line-height: 111%;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.contact-sub-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 111%;
  color: #fff;
  margin-bottom: 34px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 120px;

  li {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 18px;
    line-height: 111%;
    color: #fff;
  }

  a,
  span {
    font-weight: 400;
  }

  a:hover {
    text-decoration: underline;
  }
}

.follow-list {
  display: flex;
  gap: 16px;
  margin-bottom: 91px;
}

.footer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;

  li {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 18px;
    line-height: 111%;
    text-transform: uppercase;
    text-decoration-skip-ink: none;
    color: #105c79;
  }

  a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1436px) {
  .contact-wrap {
    display: flex;
    align-items: flex-start;
    gap: 123px;
  }
  .follow-list,
  .contact-list {
    margin: 0;
  }

  .footer-list {
    flex-direction: row;
    justify-content: center;
    gap: 200px;
    margin-top: 112px;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(100%);
}

.overflow {
  overflow: hidden;
}
