.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 25px 0;
  background: var(--header-light-text-stroke);
}

.header-title {
  width: 48px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 35px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 22px;
  text-align: center;
  color: var(--dark-text-stroke);
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  color: var(--green-sea);
  text-decoration: underline;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-svg {
  fill: none;
  stroke: #313131;
}

.menu-close {
  margin-left: auto;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 14px 0;
  }

  .header-container {
    display: flex;
    align-items: center;
    gap: 32px;
    justify-content: space-between;
  }

  .header-title {
    width: 56px;
    flex-shrink: 0;
    position: static;
    transform: translateX(0) translateY(0);
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  padding-top: 100px;
  z-index: 8;
  background-image: url(../img/border-fruit.png), url(../img/border-fruit.png),
    linear-gradient(180deg, #eeffd9 0%, #aaffe8 52.88%, #c6dcff 100%);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: normal;
  gap: 10px;

  .page-nav-link {
    font-size: 20px;
    display: block;
    padding: 4px;
    text-align: center;
    border-radius: 4px;
    box-shadow: inset -4px -6px 4px 0 rgba(78, 78, 78, 0.15),
      inset 2px 2px 6px 0 rgba(111, 111, 111, 0.15);
    background: var(--header-light-text-stroke);
  }
}

/* popup */

.page-popup {
  position: fixed;
  width: 100%;
  z-index: 10;
  bottom: 0;
  left: 0;
  padding: 16px;
  background: var(--header-light-text-stroke);
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: #313131;
  margin-bottom: 24px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  color: var(--dark-text-stroke);
  border-radius: 8px;
  padding: 12px 24px;
  text-transform: uppercase;
  box-shadow: inset -4px -6px 4px 0 rgba(78, 78, 78, 0.15),
    inset 2px 2px 6px 0 rgba(111, 111, 111, 0.15);
  background: var(--header-light-text-stroke);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: linear-gradient(180deg, #ffddc3 0%, #fffce6 52.88%, #f3ffdf 100%);
}

.popup-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 24px 0;
  }

  .popup-text {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .popup-btn {
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 24px;
    text-align: center;
    width: 420px;
  }

  .popup-wrap {
    flex-direction: row;
    justify-content: center;
    gap: 220px;
  }
}

/* hero  */

.dashboard {
  padding-top: 80px;
  background: linear-gradient(180deg, #eeffd9 0%, #aaffe8 52.88%, #c6dcff 100%);
}

.home-container {
  background-image: url(../img/border-fruit.png), url(../img/border-fruit.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

.page-hero-logo {
  width: 183px;
  margin: 0 auto;
  margin-bottom: 16px;
}

.page-hero-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  color: #313131;
  margin-bottom: 16px;
}

.page-hero-image {
  width: 247px;
  margin: 0 auto;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: #313131;
  margin-bottom: 20px;
}

.page-hero-link {
  width: 556px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 10px 26px;
  border-radius: 4px;
  box-shadow: inset -4px -6px 4px 0 rgba(78, 78, 78, 0.15),
    inset 2px 2px 6px 0 rgba(111, 111, 111, 0.15);
  background: var(--header-light-text-stroke);
  transition: background-image 0.3s ease;

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    color: #313131;
  }

  img {
    width: 32px;
  }
}

.page-hero-link:hover {
  background: linear-gradient(180deg, #ffddc3 0%, #fffce6 52.88%, #f3ffdf 100%);
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 120px;
  }

  .page-hero-logo {
    width: 223px;
    margin-bottom: 12px;
  }

  .page-hero-title {
    font-size: 48px;
    margin-bottom: 20px;
  }

  .page-hero-image {
    width: 500px;
    margin-bottom: 32px;
  }

  .page-hero-text {
    font-size: 24px;
    max-width: 870px;
    margin: 0 auto;
    margin-bottom: 28px;
  }

  .page-hero-link {
    padding: 26px;

    p {
      font-size: 24px;
    }

    img {
      width: 42px;
    }
  }
}

/* about  */

#about {
  background: linear-gradient(180deg, #c6dcff 0%, #b2dbff 52.88%, #dad1ff 100%);
}

.about-container {
  background-image: url(../img/border-cub.png), url(../img/border-cub.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

.about-img {
  display: none;
}

@media screen and (min-width: 1436px) {
  .about-img {
    display: block;
    margin: 0 auto;
    margin-top: 48px;
  }
}

/* how */

#how {
  background: linear-gradient(180deg, #dad1ff 0%, #eccfff 52.88%, #ffd6f4 100%);
}

.how-container {
  background-image: url(../img/border-cub.png), url(../img/border-cub.png);
  background-repeat: repeat-y;
  background-position: left, right;
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
  margin-top: 90px;

  li {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  img {
    width: 56px;
    flex-shrink: 0;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    color: #313131;
    border: 2px solid var(--header-light-text-stroke);
    border-radius: 4px;
    padding: 4px;
  }
}

@media screen and (min-width: 768px) {
  .how-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;

    li {
      width: calc((100% - 90px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  #how {
    .title-wrap {
      justify-content: flex-start;
    }

    .sub-title {
      text-align: start;
    }
  }

  .how-list {
    gap: 100px;

    li {
      width: calc((100% - 200px) / 3);
    }

    img {
      width: 80px;
    }

    p {
      font-size: 24px;
    }
  }
}

/* modes  */

#modes {
  background: linear-gradient(180deg, #ffd6f4 0%, #f6d6fc 52.88%, #ffddc3 100%);
}

.modes-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    border: 3px solid var(--header-light-text-stroke);
    border-radius: 4px;
    padding: 12px;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    color: var(--dark-text-stroke);
    margin-bottom: 13px;
  }

  img {
    width: 172px;
    margin: 0 auto;
    margin-bottom: 8px;
  }

  p {
    border: 2px solid var(--header-light-text-stroke);
    border-radius: 4px;
    padding: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #313131;
  }
}

@media screen and (min-width: 768px) {
  .modes-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 24px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  .modes-list {
    li {
      width: calc((100% - 72px) / 4);
      padding: 24px;
      border: 4px solid var(--header-light-text-stroke);
    }

    h5 {
      font-size: 24px;
      margin-bottom: 26px;
    }

    img {
      width: 220px;
      margin-bottom: 16px;
    }

    p {
      padding: 24px;
      font-size: 24px;
    }
  }
}

/* visual */

#visual {
  background: linear-gradient(180deg, #ffddc3 0%, #fffce6 52.88%, #f3ffdf 100%);
}

.visual-container {
  background-image: url(../img/border-fruit.png), url(../img/border-fruit.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

.gallery-swiper {
  perspective: 1200px; /* для 3D-ощущения */
  padding-bottom: 50px;
}

.gallery-swiper .swiper-slide {
  width: 220px; /* ширина «панели телефона» */
  height: 420px;
  border: 4px solid var(--dark-text-stroke);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18), 0 10px 10px rgba(0, 0, 0, 0.12);
  background: #111; /* на случай, если нет картинки */
  transform-origin: center bottom;
}

.gallery-swiper .slide-inner {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.gallery-swiper .swiper-slide-active {
  transform: translateZ(0) scale(1.06);
}

.gallery-swiper .swiper {
  padding: 24px 32px; /* внутренние поля контейнера */
}

.gallery-pagination {
  text-align: center;
  width: 120px;
  margin: 0 auto;
}

.swiper-pagination-bullet {
  display: inline-block;
  border-radius: 4px;
  width: 14px;
  height: 14px;
  box-shadow: inset -4px -6px 4px 0 rgba(78, 78, 78, 0.15),
    inset 2px 2px 6px 0 rgba(111, 111, 111, 0.15);
  background: var(--pink-plitka);
}

@media (max-width: 640px) {
  .gallery-swiper .swiper-slide {
    width: 170px;
    height: 340px;
  }
}

@media screen and (min-width: 1436px) {
  #visual {
    .title-wrap {
      justify-content: flex-start;
    }

    .sub-title {
      text-align: start;
    }
  }
  .gallery-pagination {
    width: 230px;
  }

  .swiper-pagination-bullet {
    width: 24px;
    height: 24px;
    border-radius: 8px;
  }
}

/* level */

#level {
  background: linear-gradient(180deg, #f3ffdf 0%, #e1ffa8 52.88%, #b9ffcd 100%);
}

.level-container {
  background-image: url(../img/border-cub.png), url(../img/border-cub.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

.level-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  div {
    padding: 39px 9px;
    border: 3px solid #898989;
    border-radius: 4px;
  }

  img {
    width: 172px;
    margin: 0 auto;
    margin-bottom: 8px;
  }

  p {
    padding: 12px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #313131;
    border: 2px solid #898989;
    border-radius: 4px;
  }
}

@media screen and (min-width: 1436px) {
  .level-list {
    gap: 75px;
    flex-direction: row;
    align-items: center;

    div {
      padding: 24px;
    }

    img {
      width: 220px;
      margin-bottom: 16px;
    }

    p {
      padding: 24px;
      font-size: 24px;
    }
  }
}

/* boosters */

#boosters {
  background: linear-gradient(180deg, #b9ffcd 0%, #d1fff3 52.88%, #c6dcff 100%);
}

.boosters-container {
  background-image: url(../img/border-fruit.png), url(../img/border-fruit.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

.boosters-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  img {
    width: 56px;
    flex-shrink: 09;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 24px;
    text-align: center;
    color: #313131;
    margin-bottom: 6px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #313131;
    padding: 36px 4px;
    border: 2px solid #767676;
    border-radius: 4px;
  }
}

.boosters-list {
  display: none;
}

.boosters-pagination {
  text-align: center;
  width: 120px;
  margin: 0 auto;
  margin-top: 40px;
}

@media screen and (min-width: 1436px) {
  .boosters-swiper {
    display: none;
  }

  .boosters-list {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0 118px;
  }

  .boosters-img {
    flex-shrink: 0;
  }

  .boosters-pagination {
    display: none;
  }

  .boosters-item {
    gap: 12px;
    h5 {
      font-size: 36px;
    }

    p {
      font-size: 24px;
      padding: 50px 4px;
      width: 156px;
    }

    img {
      width: 80px;
    }
  }
}

/* why */

.why-pagination {
  text-align: center;
  width: 120px;
  margin: 0 auto;
  margin-top: 40px;
}

.why-item {
  width: 247px;
  max-width: 100%;
  border: 3px solid var(--header-light-text-stroke);
  border-radius: 4px;
  padding: 12px 4px;

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    text-align: center;
    color: #313131;
    margin-bottom: 14px;
  }
  img {
    width: 170px;
    margin: 0 auto;
    margin-bottom: 10px;
  }

  p {
    border: 2px solid var(--header-light-text-stroke);
    border-radius: 4px;
    padding: 12px;

    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    text-align: center;
    color: #313131;
  }
}

@media screen and (min-width: 768px) {
  .why-item {
    width: 300px;
  }
}

@media screen and (min-width: 1436px) {
  .why-container {
    padding: 0 60px;
  }

  .why-pagination {
    display: none;
  }

  .why-item {
    width: calc((100% - 72px) / 4);
    padding: 24px 12px;
    min-height: 342px;
    border: 4px solid var(--header-light-text-stroke);

    h5 {
      font-size: 24px;
      margin-bottom: 26px;
    }

    img {
      width: 220px;
      margin-bottom: 16px;
    }

    p {
      padding: 28px 10px;
      font-size: 24px;
    }
  }
}

/* perfect */

.perfect-container {
  background-image: url(../img/border-cub.png), url(../img/border-cub.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

/* faq */

.faq-container {
  background-image: url(../img/border-cub.png), url(../img/border-cub.png);
  background-repeat: no-repeat;
  background-position: left, right;
  background-size: contain;
}

.faq-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.faq-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  text-align: center;
  color: #313131;
  margin-bottom: 8px;
}

.faq-wrap {
  border: 2px solid #767676;
  border-radius: 4px;
  padding: 4px;
  position: relative;
  overflow: hidden;
  width: 140px;
  cursor: pointer;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: #313131;
  transition: transform 1s ease;
  background: #ffd6f4;
  padding: 4px;
  padding-top: 24px;

  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: translateY(100%);
  z-index: 2;
}

.transform {
  transform: translateY(0);
}

.footer-images {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-desc {
  display: none;
}
.footer-logo {
  width: 166px;
}

@media screen and (min-width: 768px) {
  .faq-list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: normal;
  }

  .faq-item {
    width: calc((100% - 30px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .faq-list {
    align-items: normal;
    justify-content: center;
    gap: 40px 180px;
  }

  .faq-item {
    width: calc((100% - 360px) / 3);
  }

  .faq-wrap {
    width: 212px;
  }

  .faq-title {
    font-size: 24px;
    margin-bottom: 16px;
  }

  .faq-img {
    width: 100%;
  }

  .faq-text {
    font-size: 24px;
  }

  .footer-desc {
    display: block;
  }

  .footer-mob {
    display: none;
  }
  .footer-logo {
    width: 166px;
  }
}

/* footer */

.footer {
  padding: 20px 0;
  background: var(--header-light-text-stroke);
}

.footer-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  text-align: center;
  color: #313131;

  a:hover {
    text-decoration: underline;
  }
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  color: #313131;
  margin-top: 34px;
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 34px 0;
  }

  .footer-text {
    font-size: 16px;
    margin-top: 45px;
  }

  .footer-list {
    margin: 0;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    font-size: 24px;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #fff;
  border-top-color: #b9ffcd;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #fff;
  color: #fff;
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;

  svg {
    stroke: #fff;
  }
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.popup-click {
  transform: translateY(100%);
}

.overflow {
  overflow: hidden;
}
