.main-section {
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 16px;
  background: #fff;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 187%;
  color: #000;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  color: rgb(24, 155, 24);
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-open-svg {
  stroke: #000;
}

.menu-close-svg {
  stroke: #000;
}

@media screen and (min-width: 1422px) {
  .main-section {
    padding: 33px 38px;
  }

  .page-nav-list {
    gap: 16px;
    justify-content: center;
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  overflow: hidden;
  top: 0;
  right: 0;
  z-index: 8;
  width: 100%;
  padding: 50px;

  padding-top: 100px;
  transform: translateX(100%);
  transition: transform 1s ease;
  background: linear-gradient(180deg, #d3ee78 0%, #8eb51d 100%);
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  width: 96%;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.4s ease;
  padding: 32px;
  border: 1px solid #002919;
  border-radius: 20px;
  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #fff;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 187%;
  color: #002919;
  margin-bottom: 37px;
}

.popup-btn {
  border: 1px solid #002919;
  border-radius: 56px;
  padding: 18px 28px;
  box-shadow: 0 4px 8px 0 rgba(74, 58, 255, 0.08);
  background: #fff;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 112%;
  color: #002919;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #002919;
  color: #fff;
}

.popup-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

@media screen and (min-width: 1422px) {
  .page-popup {
    padding: 52px 138px;
    display: flex;
    gap: 170px;
    align-items: center;
  }

  .popup-text {
    font-size: 18px;
    margin: 0;
    text-align: start;
  }

  .popup-wrap {
    flex-direction: row;
    flex-shrink: 0;
  }
}

/* hero  */

.dashboard {
  padding-top: 60px;
  padding-bottom: 336px;
  background-image: url(../img/home.jpg);
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  width: 292px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 28px;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  text-shadow: 1px 2px 8px #002300;
  margin-bottom: 18px;
}

.hero-link {
  display: block;
  margin: 0 auto;
  width: 300px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.hero-link:hover {
  transform: scale(0.95);
}

.ipad {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  max-width: max-content;
  width: 473px;
}

@media screen and (min-width: 1422px) {
  .dashboard {
    padding: 134px 28px;
  }

  .hero-wrapper {
    max-width: 700px;
  }

  .hero-logo {
    width: auto;
  }

  .hero-title {
    font-size: 42px;
    margin-bottom: 29px;
  }

  .ipad {
    width: auto;
    left: 55%;
    bottom: 42px;
    transform: translateX(0);
  }
}

/* beginning */

.beginning-img {
  margin: 0 auto;
  margin-bottom: 40px;
}

.beginning-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  color: #000;
}

.beginning-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 30px;
  margin-top: 40px;

  li {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: #000;
  }
}

@media screen and (min-width: 1422px) {
  #beginning {
    padding-left: 140px;
    padding-right: 140px;

    .section-title {
      text-align: start;
    }
  }

  .beginning-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
  }

  .beginning-img {
    margin: 0;
    flex-shrink: 0;
  }

  .beginning-list {
    flex-direction: row;
    padding: 0;
    justify-content: center;
    margin-top: 60px;

    li {
      padding: 0 20px;
    }
  }
}

/* map */

#map {
  background-image: url(../img/map.jpg);
  background-position: center;
  background-size: cover;
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 18px;

  li {
    border: 2px solid #017e00;
    border-radius: 12px;
    padding: 22px;
    background: #ffea29;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: #000;
  }
}

@media screen and (min-width: 1422px) {
  #map {
    padding: 114px;
  }

  .map-list {
    width: 700px;
    margin: 0 auto;
    gap: 100px;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;

    li {
      width: calc((100% - 100px) / 2);
      padding: 22px;
    }
  }
}

/* features */

#features {
  padding-left: 0;
  padding-right: 0;
}

.features-list {
  display: none;
}

.features-item {
  border: 2px solid #017e00;
  border-radius: 22px;
  padding: 22px;
  width: 284px;
  max-width: 100%;
  background: #d3ee78;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  text-align: center;
  color: #000;
}

.features-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-align: center;
  color: #000;
  max-width: 590px;
  margin: 0 auto;
  padding: 0 20px;
  margin-top: 50px;
}

@media screen and (min-width: 1422px) {
  .features-list {
    display: flex;
    justify-content: center;
    gap: 32px;
  }

  .features-swiper {
    display: none;
  }

  .features-text {
    padding: 0;
  }
}

/* tales */

#tales {
  padding-left: 0;
  padding-right: 0;
  background-color: #fff;
  background-image: url(../img/sir-match-gameboard.png);
  background-size: cover;
}

.tales-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  text-align: center;
  color: #000;
  margin-bottom: 32px;
}

.tales-item {
  border: 2px solid #017e00;
  border-radius: 22px;
  padding: 22px;
  width: 335px;
  max-width: 100%;
  min-height: 397px;
  background: #d3ee78;

  h4 {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 133%;
    text-transform: uppercase;
    color: #000;
    margin-bottom: 12px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    text-transform: uppercase;
    color: #000;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000;
    margin-top: 12px;
  }

  .tales-item-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
  }
}

@media screen and (min-width: 1422px) {
  .tales-text {
    max-width: 724px;
    margin: 0 auto;
    margin-bottom: 42px;
  }

  .tales-item {
    width: 526px;
    min-height: 264px;

    .tales-item-wrap {
      flex-direction: row;
    }
  }
}

/* mechanics */

.mechanics-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  li {
    display: flex;
    align-items: center;
    gap: 18px;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    color: #000;
  }
}

.apple {
  margin: 0 auto;
  margin-top: 12px;
}

@media screen and (min-width: 1422px) {
  #mechanics {
    padding-left: 0;
  }
  .mechanics-wrap {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 30px;
    justify-content: flex-end;
    transform: translateX(-70px);
  }

  .apple {
    margin: 0;
    flex-shrink: 0;
  }
}

/* journal */

#journal {
  padding-left: 0;
  padding-right: 0;
}

.journal-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  text-align: center;
  color: #000;
  padding: 0 20px;
  margin-bottom: 32px;
}

.journal-item {
  width: 335px;
  max-width: 100%;
}

@media screen and (min-width: 1422px) {
  .journal-text {
    padding: 0;
    max-width: 574px;
    margin: 0 auto;
    margin-bottom: 60px;
  }
  .journal-item {
    width: 574px;
  }
}

/* challenges */

#challenges {
  background-image: url(../img/bg.png);
  background-position: bottom center;
  background-size: auto;
  background-repeat: no-repeat;
  padding-top: 187px;
  padding-bottom: 293px;
}

/* faq */

#faq {
  background-image: url(../img/faq.png);
  background-position: center;
  background-size: cover;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 26px;

  li {
    border: 2px solid #017e00;
    border-radius: 26px;
    padding: 22px;
    background: #d3ee78;
  }

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    color: #07032b;
    margin-top: 14px;
    margin-bottom: 6px;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #07032b;
  }
}

@media screen and (min-width: 1422px) {
  .faq-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

    li {
      width: calc((100% - 52px) / 3);
    }
  }
}

/* footer */

.footer {
  padding: 21px 10px;
  padding-top: 0;
  background: #6d9300;
}

.footer-logo {
  display: block;
  width: 180px;
  margin: 0 auto;
  margin-bottom: 12px;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  text-transform: lowercase;
  color: #000;
  margin-bottom: 22px;
  text-align: center;
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  color: #000;
}

@media screen and (min-width: 1439px) {
  .footer {
    padding: 0 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .footer-logo {
    margin: 0;
  }

  .footer-list {
    font-size: 16px;
  }

  .footer-text {
    margin: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
