.page-nav {
  display: none;
}

.main-section {
  position: fixed;
  z-index: 9;
  width: 100%;
  padding: 18px;
  background-image: url(./photo/header.jpg);
  background-size: cover;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 18px;
  color: #5a3406;
  transition: color 0.3s ease;
  position: relative;
}

.page-nav-link::before {
  position: absolute;
  bottom: -10px;
  left: 50%;
  width: 120%;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 100%;
  content: "";
  background: #ece204;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.page-nav-link:hover::before {
  opacity: 1;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-open-svg {
  stroke-width: 3px;
  stroke: #5a3406;
  fill: #5a3406;
}

.menu-close-svg {
  stroke-width: 3px;
  stroke: #5a3406;
  fill: #5a3406;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 24px;
  }

  .page-nav {
    display: block;
  }

  .menu-open {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 75px;
  left: 0;
  z-index: 8;
  width: 100%;
  border-radius: 0 0 80px 0;
  background: #eba24e;
  opacity: 0.96;
  padding: 40px 20px;
  transform: translateY(-120%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  width: 96%;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  transition: transform 0.4s ease;
  border: 1px solid #d9dbe9;
  padding: 20px 14px;
  border-radius: 20px;
  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #fff;

  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #6f6c90;
  margin-bottom: 32px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #170f49;
  width: 196px;

  border: 1px solid #2170ac;
  border-radius: 56px;
  padding: 18px 28px;

  box-shadow: 0 4px 8px 0 rgba(74, 58, 255, 0.08);
  background: #fff;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  box-shadow: 0 3px 12px 0 rgba(74, 58, 255, 0.18);
  background: #2170ac;
  color: #fff;
}

.popup-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 40px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
  }

  .popup-text {
    font-size: 18px;
    text-align: start;
    margin: 0;
  }

  .popup-wrap {
    margin: 0;
    flex-direction: row;
  }
}

/* hero  */

.dashboard {
  padding: 10px;
  padding-top: 104px;
  padding-bottom: 0;
  background-image: url(./photo/hero.jpg);
  background-position: center;
  background-size: cover;
}

.page-hero-wrap {
  background-image: url(./photo/wrapper.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0 19px;

  div {
    width: 335px;
    max-width: 100%;
    margin: 0 auto;
  }
}

.logo {
  width: 292px;
  margin: 0 auto;
}

.page-hero-title {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 133%;
  text-align: center;
  color: #2170ac;
  margin-bottom: 16px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #2170ac;
}

.page-hero-link {
  width: 319px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, color 0.3s ease;
}

.page-hero-link:hover {
  transform: scale(1.03);
}

.hero-img {
  width: 232px;
  margin: 0 auto;
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 102px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 124px;
  }

  .hero-img {
    width: auto;
    margin: 0;
  }

  .page-hero-wrap {
    padding: 36px 24px;

    div {
      width: 545px;
    }
  }

  .logo {
    width: auto;
  }

  .page-hero-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .page-hero-text {
    font-size: 18px;
    margin-bottom: 40px;
  }

  .page-hero-link {
    width: 366px;
  }
}

/* gameplay */

#gameplay {
  position: relative;
  overflow: hidden;
}

.gameplay-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;

  li {
    padding: 32px 24px;
    width: 220px;
    max-width: 100%;
    min-height: 194px;
    background-image: url(./photo/paper.png);
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: translateX(-13px);

    font-family: var(--font-family);
    font-weight: 300;
    font-size: 18px;
    line-height: 156%;
    text-align: center;
    color: #5a3406;
  }

  .item2 {
    transform: translateX(25px);
  }
}

.green1 {
  position: absolute;
  max-width: max-content;
  top: 247px;
  left: -300px;
  z-index: -1;
  transform-origin: bottom center;
  animation: sway 3s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.green2 {
  display: none;
}

@keyframes sway {
  from {
    transform: rotate(-2deg);
  }
  to {
    transform: rotate(2deg);
  }
}

@media screen and (min-width: 1436px) {
  .gameplay-list {
    flex-direction: row;
    justify-content: center;
    gap: 36px;

    li {
      transform: translateX(0);
    }
    .item2 {
      transform: translateY(26px);
    }
  }

  .green1 {
    top: -50px;
    left: -250px;
  }

  .green2 {
    display: block;
    position: absolute;
    max-width: max-content;
    top: 50px;
    right: -100px;
    z-index: -1;
    animation: sway 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
  }
}

/* map */

.map-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 18px;
  line-height: 156%;
  color: #5a3406;
  text-align: center;
  margin-bottom: 32px;
}

.map-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  li {
    display: flex;
    align-items: center;
    gap: 28px;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: #5a3406;
  }
}

.map-wrap {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.stone {
  display: none;
}

@media screen and (min-width: 1436px) {
  #map {
    position: relative;
  }

  .map-wrap {
    flex-direction: row;
  }

  .map-text {
    margin: 0;
  }

  .map-list {
    gap: 68px;
  }

  .stone {
    display: block;
    position: absolute;
    bottom: 0;
    right: 160px;
  }
}

/* tools */

#tools {
  position: relative;
  overflow: hidden;
}

.green3 {
  position: absolute;
  max-width: max-content;
  width: 182px;
  top: -34px;
  left: -50px;
  transform-origin: top center;
  animation: sway 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.green4 {
  position: absolute;
  max-width: max-content;
  width: 268px;
  right: -34px;
  bottom: -134px;
  transform-origin: bottom center;
  animation: sway 3s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.tools-list {
  display: flex;
  flex-direction: column;
  gap: 24px;

  li {
    border: 1px solid #61a9f7;
    border-radius: 20px;
    padding: 20px 32px;
    box-shadow: 0 0 12px 0 rgba(255, 255, 255, 0.5);
    background: #ffcd03;

    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 133%;
    text-align: center;
    color: #5a3406;
  }
}

@media screen and (min-width: 1436px) {
  .tools-list {
    width: 828px;
    margin: 0 auto;
    gap: 36px;
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 36px) / 2);
    }
  }
  .green3 {
    width: auto;
  }

  .green4 {
    width: auto;
    bottom: -200px;
  }
}

/* life */

#life {
  padding-left: 0;
  padding-right: 0;
  position: relative;
  overflow: hidden;
}

.green5 {
  position: absolute;
  max-width: max-content;
  width: 242px;
  top: -70px;
  left: -80px;
  transform-origin: top center;
  animation: sway 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.green6 {
  position: absolute;
  max-width: max-content;
  width: 327px;
  right: -44px;
  bottom: -92px;
  transform-origin: bottom center;
  animation: sway 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  margin-top: 36px;
}

.swiper-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  padding: 0;
  transition: transform 0.3s ease;
}

.swiper-btn:hover {
  transform: scale(1.07);
}

.life-item {
  width: 335px;
  max-width: 100%;
  padding: 20px;
  min-height: 280px;

  background-image: url(./photo/frame.png);
  background-size: contain;
  background-repeat: no-repeat;

  div {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    text-align: center;
    color: #101010;
  }

  span {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 16px;
    line-height: 150%;
    color: #3c3d42;
  }
}

@media screen and (min-width: 1436px) {
  .life-item {
    padding: 25px;
    width: 364px;
    min-height: 292px;
  }

  .swiper-btn {
    width: 68px;
  }

  .green5 {
    width: auto;
    top: -300px;
    left: -300px;
    z-index: 1;
  }

  .green6 {
    width: auto;
    bottom: -150px;
    right: -50px;
    z-index: 1;
  }
}

/* field */

#field {
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
}
.lilia {
  position: absolute;
  top: 168px;
  left: 70%;
  z-index: -1;
  animation: spin 7s linear infinite;
  transform-origin: center center;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.green7 {
  position: absolute;
  max-width: max-content;
  width: 540px;
  bottom: -200px;
  left: -200px;
  z-index: -1;
  transform-origin: bottom center;
  animation: sway 2.5s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.field-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 24px;

  li {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 18px;
    line-height: 156%;
    color: #fff;

    border: 1px solid #61a9f7;
    border-radius: 20px;
    padding: 20px;
    width: 280px;
    box-shadow: 0 0 12px 0 rgba(255, 255, 255, 0.5);
    background: rgba(16, 116, 147, 0.8);
    transform: translateX(-16px);
  }

  .item3 {
    transform: translateX(32px);
  }
}

.field-img {
  width: 283px;
  transform: scaleX(-1);
  margin-top: 40px;
}

@media screen and (min-width: 1436px) {
  #field {
    padding-left: 20px;
  }

  .lilia {
    top: 68px;
    left: 80%;
  }

  .field-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-direction: row-reverse;
    gap: 154px;
  }

  .field-img {
    width: auto;
    margin: 0;
  }

  .field-list {
    gap: 12px;

    li {
      width: 546px;
      min-height: 129px;
      transform: translateX(-110px);
    }

    .item3 {
      transform: translateX(220px);
    }
  }

  .green7 {
    max-width: 100%;
    width: 850px;
  }
}

/* vision */

#vision {
  background-color: #35a9f3;
  background-image: url(./photo/gallery.png);
  background-size: cover;
}

.gallery-swiper {
  width: 335px;
  max-width: 100%;
}

.vision-list {
  width: 281px;
  max-width: 100%;
  margin: 0 auto;
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 18px;
  line-height: 156%;
  color: #5a3406;
}

@media screen and (min-width: 1436px) {
  #vision {
    position: relative;

    .section-title,
    .section-sub-title {
      text-align: start;
    }
  }

  .gallery-button-wrap {
    position: absolute;
    top: 96px;
    right: 88px;
    margin: 0;
  }

  .gallery-swiper {
    width: 668px;
  }

  .vision-list {
    gap: 36px 60px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    width: 905px;
    margin: 0 auto;
    margin-top: 48px;
  }
}

/* tides */

#tides {
  position: relative;
  overflow: hidden;
}

.tides-wrap {
  position: relative;
  width: 335px;
  max-width: 100%;
  margin: 0 auto;
  padding: 42px 12px;
}

.tides-lilia {
  position: absolute;
  width: 111px;
  top: -55px;
  left: -55px;
}

.tides-wrap-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.tides-list {
  display: flex;
  flex-direction: column;
  list-style: disc;
  padding-left: 20px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 18px;
  line-height: 156%;
  color: #2170ac;
  margin-bottom: 36px;
}

.tides-link {
  display: block;
  width: 311px;
  margin: 0 auto;
  max-width: 100%;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #fff;
  text-align: center;
  padding: 24px 10px;
  background: radial-gradient(
    50.46% 49.79% at 50.09% 50.15%,
    #7df5fd 2%,
    #35a9f3 99%
  );
  border: 1px solid #ffcd03;
  border-radius: 20px;
  transition: box-shadow 0.3s ease;
}

.tides-link:hover {
  box-shadow: 0 0 12px 4px rgba(255, 223, 0, 0.8); /* мягкое солнечное свечение */
}

.green8 {
  position: absolute;
  bottom: 0;
  right: -200px;
  width: 500px;
  max-width: max-content;
  z-index: -2;
  transform-origin: right center;
  animation: sway 3s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

.green9 {
  position: absolute;
  max-width: max-content;
  z-index: -2;
  left: 0;
  width: 370px;
  bottom: -100px;
  transform-origin: right bottom;
  animation: sway 2s cubic-bezier(0.4, 0, 0.6, 1) infinite alternate;
}

@media screen and (min-width: 1436px) {
  .tides-wrap {
    width: 1295px;
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 52px;
  }

  .tides-lilia {
    width: 168px;
  }

  .green8 {
    width: 900px;
    bottom: -500px;
    right: -300px;
  }

  .green9 {
    width: auto;
    bottom: -300px;
  }
}

/* footer */

.last {
  padding: 40px 10px;
  background: #00293a;
}

.last-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 10px;
  line-height: 160%;
  color: #fff;
  text-align: center;
  margin-top: 28px;
}

.last-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.last-link {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 150%;
  text-align: center;
  color: #fff;
}

.link:hover {
  text-decoration: underline;
}

@media screen and (min-width: 1436px) {
  .last {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 177px;
  }

  .last-text {
    margin: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  transform: rotate(0);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
