.main-section {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9;
  width: 100%;
  padding: 20px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: block;
  width: 66px;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 45px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  color: #000;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-open-svg {
  stroke: #000;
}

.menu-close-svg {
  stroke: #000;
}

@media screen and (min-width: 1436px) {
  .main-section {
    gap: 48px;
  }

  .header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
  }

  .page-nav {
    display: block;
  }

  .page-nav-link {
    color: var(--primary-text);
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  padding: 180px 20px;
  transform: translateY(-100%);
  background-image: url(../img/modal.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  width: 100%;
  bottom: 0;
  left: 0;
  transition: transform 0.4s ease;
  border-top: 2px solid #02bcb6;
  background: #fff;
  padding: 40px 0;
}

.popup-title {
  font-family: var(--font4);
  font-weight: 400;
  font-size: 24px;
  line-height: 92%;
  text-align: center;
  color: #000;
  margin-bottom: 24px;
}

.popup-text {
  font-family: var(--third-family);
  font-weight: 400;
  font-size: 14px;
  line-height: 150%;
  color: #000;
  margin-bottom: 24px;
}

.popup-btn {
  border: 1px solid #000;
  border-radius: 8px;
  padding: 11px;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 1px 3px 0 #87614c;
  display: block;

  font-family: var(--font3);
  font-weight: 400;
  font-size: 16px;
  color: #000;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #02bcb6;
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media screen and (min-width: 1436px) {
  .popup-title {
    font-size: 36px;
  }

  .popup-text {
    font-size: 24px;
    max-width: 1120px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 24px;
  }

  .popup-wrap {
    flex-direction: row;
    justify-content: center;
  }

  .popup-btn {
    font-size: 16px;
    padding: 18px;
    width: 269px;
  }
}

/* hero  */

.dashboard {
  padding-top: 82px;
  position: relative;
  overflow: hidden;
  background-image: url(../img/bg.png);
  background-position: center;
  background-repeat: no-repeat;
}

.dragon-title {
  width: 219px;
  margin-bottom: 86px;
}

.tramer-title {
  width: 179px;
  margin-left: auto;
  margin-bottom: 197px;
}

.dragon {
  position: absolute;
  top: 82px;
  width: 400px;
  max-width: max-content;
  left: 50%;
  transform: translateX(-50%);
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 24px;
  line-height: 150%;
  color: #000;
  margin-bottom: 13px;
}

.page-hero-desc {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 150%;
  color: #000;
  max-width: 157px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  width: 157px;
  height: 157px;
  background-image: url(../img/btn.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease;
  transform: translateY(-40px);

  img {
    width: 88px;
  }
}

.page-link:hover {
  background-image: url(../img/btn-hover.png);
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 100px;
    background-position: left;
    padding-bottom: 174px;
  }

  .dragon {
    top: 90px;
    width: auto;
    left: 50%;
    transform: translateX(-100px);
  }

  .dragon-title {
    width: auto;
    margin: 0 auto;
    margin-bottom: 72px;
  }

  .tramer-title {
    width: auto;
    margin-left: auto;
    margin: 0;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
  }

  .home-text-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row-reverse;
  }

  .page-hero-text {
    font-size: 40px;
    margin-bottom: 24px;
  }

  .page-hero-desc {
    font-size: 20px;
    max-width: 317px;
  }

  .page-link {
    width: 270px;
    height: 270px;
    margin: 0 auto;
    transform: translateY(0) translateX(200px);

    img {
      width: auto;
    }
  }
}

/* summary */

#summary {
  background-image: url(../img/star.png), url(../img/star.png);
  background-position: top 5% right 10%, bottom 5% left 10%;
  background-repeat: no-repeat;
  background-size: 40px;
}

.summary-text {
  font-family: var(--font-family);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  line-height: 200%;
  text-align: center;
  color: #000;

  img {
    display: inline;
    width: 30px;
  }

  span {
    font-weight: 500;
    background: linear-gradient(
      90deg,
      #f00 0%,
      #ffa500 16.83%,
      #ff0 34.13%,
      #0f0 50%,
      #0ff 67.31%,
      #00f 83.65%,
      #8b00ff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }
}

@media screen and (min-width: 1436px) {
  #summary {
    background-size: auto;
  }
  .summary-text {
    font-size: 28px;

    img {
      width: auto;
    }
  }
}

/* advantages */

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    border-radius: 24px;
    padding: 24px;
    background: #f1dd9c;
  }
  img {
    width: 60px;
    margin: 0 auto;
    margin-bottom: 26px;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #000;
    margin-bottom: 13px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #000;
  }
}

@media screen and (min-width: 1436px) {
  .advantages-list {
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;

    li {
      padding: 24px 28px;
      width: calc((100% - 96px) / 4);
    }
  }
}

/* gallery */

.gallery-swiper {
  width: 335px;
  max-width: 100%;
  height: 843px;
}

.gallery-item {
  height: 189px;
  transition: all 0.3s ease;
}

.gallery-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #02bcb6;
  transition: background-color 0.3s ease;
  display: none;
}

.gallery-next:hover {
  background-color: #f1dd9c;
}

.gallery-prev {
  transform: rotate(90deg);
}

.gallery-next {
  transform: rotate(-90deg);
}

@media screen and (min-width: 1436px) {
  .gallery-container {
    position: relative;
  }

  .gallery-btn {
    display: flex;
  }

  .gallery-prev {
    position: absolute;
    top: 50%;
    left: 0;
  }

  .gallery-next {
    position: absolute;
    top: 50%;
    right: 0;
  }

  .gallery-swiper {
    width: 100%;
    height: auto;
  }

  .gallery-item {
    width: 650px;
    height: 422px;

    img {
      width: 100%;
    }
  }
}

/* how */

#how {
  background-image: url(../img/how-dragon.png);
  background-position: top 60px center;
  background-repeat: no-repeat;
  background-size: 336px;
}

.how-tite {
  margin-bottom: 409px;
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;

  li {
    width: 287px;
    max-width: 100%;
    display: flex;
    align-items: center;
  }

  div {
    width: 237px;
    height: 237px;
    background-image: url(../img/btn.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    padding: 63px 34px;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
  }

  span {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 121px;
    line-height: 150%;
    text-align: center;
    color: #000;
    transform: translateX(30px);
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #000;
    margin-bottom: 16px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #000;
  }
}

@media screen and (min-width: 1436px) {
  #how {
    background-position: center;
    background-size: auto;
  }

  .how-tite {
    margin-bottom: 40px;
  }
  .how-list {
    gap: 86px 502px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;

    li {
      width: calc((100% - 502px) / 2);
    }
  }
}

/* reviews  */

#reviews {
  background: #f1dd9c;
}

.uswer-img {
  margin: 0 auto;
  margin-bottom: 16px;
}

.review-slide {
  width: 320px;
  max-width: 100%;

  h4 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #000;
    margin-bottom: 10px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #000;
    margin-bottom: 12px;
  }
}

@media screen and (min-width: 1436px) {
  .review-slide {
    width: 517px;
  }
}

/* footer */

.footer {
  padding: 25px 0;
  background: #02bcb6;
}

.footer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #000;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.01em;
  color: #000;
  text-align: center;
  margin-top: 24px;
}

@media screen and (min-width: 1436px) {
  .footer-list {
    flex-direction: row;
    gap: 19px;
    justify-content: center;
    font-size: 18px;
  }

  .footer-text {
    font-size: 20px;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ffffff99;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #ccc;
  border-top-color: #02bcb6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(100%);
}

.overflow {
  overflow: hidden;
}
