.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;
  border-radius: 17px;
  width: 50px;
  height: 50px;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
  color: #fff;
  border: 1px solid #919aba;
  padding: 10px;
  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 {
    max-width: 1440px;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 28px;
    border: 1px solid #919aba;

    padding: 18px 0;
    gap: 48px;
    background: linear-gradient(
      90deg,
      rgba(94, 95, 147, 0.9) 0%,
      rgba(94, 95, 147, 0.9) 8.21%,
      rgba(94, 95, 147, 0.9) 93.11%,
      rgba(94, 95, 147, 0.9) 100%
    );
  }

  .header-logo {
    display: none;
  }

  .header-container {
    justify-content: center;
  }

  .page-nav {
    display: block;
  }

  .page-nav-link {
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 118px;
  left: 50%;
  z-index: 8;
  border-radius: 28px;
  padding: 43px;
  background: rgba(94, 95, 147, 0.9);
  transform: translateX(-50%) translateY(-160%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: center;
  gap: 44px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  width: 100%;
  bottom: 0;
  left: 0;
  transition: transform 0.4s ease;
  border-top: 2px solid #5e5f93;
  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: #5e5f93;
  color: #fff;
}

.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: 173px;
  padding-bottom: 343px;
  background-image: url(../img/bg.jpg);
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.home-text-wrap {
  position: relative;
  padding: 18px 35px;
  width: 596px;
  max-width: 100%;
  margin: 0 auto;
}

.home-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.girl {
  position: absolute;
  width: 250px;
  bottom: 0;
  left: 40%;
}

.man {
  display: none;
}

.page-hero-text {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 26px;
  line-height: 150%;
  letter-spacing: 0.03em;
  text-align: center;
  color: #000;
  margin-bottom: 15px;
}

.page-hero-desc {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
  color: #000;
  margin-bottom: 15px;
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  margin: 0 auto;
  max-width: 100%;
  background-repeat: no-repeat;
  transition: transform 0.4s ease;
}

.page-link:hover {
  transform: scale(1.05);
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 223px;
    padding-bottom: 181px;
  }

  .girl {
    width: auto;
    left: auto;
    right: 0;
  }

  .man {
    position: absolute;
    display: block;
    width: auto;
    bottom: 0;
    left: 0;
  }
  .home-text-wrap {
    padding: 18px 40px;
    padding-bottom: 176px;
  }

  .home-bg {
    opacity: 0.4;
    -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  .page-hero-text {
    font-size: 40px;
    margin-bottom: 15px;
  }

  .page-hero-desc {
    font-size: 20px;
  }

  .page-link {
    width: 270px;
  }
}

/* about */

.about-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.01em;
  text-align: center;
  color: #000;
}

@media screen and (min-width: 1436px) {
  .about-text {
    max-width: 800px;
    margin: 0 auto;
  }
}

/* feature */

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 32px;

  li {
    padding: 20px 26px;
    background: #fff;
    height: 195px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  p {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0.01em;
    color: #000;
  }

  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    color: #000;
  }

  .anime {
    background: linear-gradient(90deg, #5e5f93 0%, #f2ecec 100%);

    p,
    span {
      color: fff;
    }
  }
}

@media screen and (min-width: 1436px) {
  .feature-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 64px) / 3);
    }

    .anime {
      width: 704px;
    }
  }
}

/* gallery */

.gallery-item {
  width: 303px;
}

@media screen and (min-width: 1436px) {
  .gallery-item {
    width: 474px;
  }
}

/* gameplay */

.gameplay-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.gameplay-item {
  border-radius: 172px;
  padding: 40px;
  width: 336px;
  height: 336px;
  background: #5e5f93;

  display: flex;
  align-items: center;
  flex-direction: column;

  span {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 79px;
    line-height: 102%;
    letter-spacing: 0.03em;
    text-align: center;
    color: #fff;
    margin-bottom: 34px;
  }

  h4 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 150%;
    letter-spacing: 0.01em;
    text-align: center;
    color: #fff;
    margin-bottom: 16px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    letter-spacing: 0.01em;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 1436px) {
  .gameplay-list {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* faq */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  width: 100%;
}

.faq-btn {
  flex-shrink: 0;
  transform: rotate(180deg);
  transition: background-color 0.3s ease, transform 0.4s ease;
}

.faq-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  gap: 16px;
  border-bottom: 1px solid #000;
}

.faq-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  line-height: 150%;
  color: #000;
}

.faq-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #000;
  margin-top: 16px;
}

@media screen and (min-width: 1436px) {
  .faq-list {
    width: 695px;
    margin: 0 auto;
  }
  .faq-item {
    padding: 16px;
  }
}

/* footer */

.footer {
  padding: 25px 0;
  box-shadow: 0 -4px 20px 0 rgba(0, 0, 0, 0.15);
  background: #5e5f93;
}

.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: #fff;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 14px;
  line-height: 150%;
  letter-spacing: 0.01em;
  color: #fff;
  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: 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 #ccc;
  border-top-color: #5e5f93;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  border: 1px solid #5e5f93;
  background-color: #5e5f9366;
  color: #fff;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  z-index: 999;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0) translateX(-50%);
}

.click {
  transform: rotate(0);
}

.popup-click {
  transform: translateY(100%);
}

.overflow {
  overflow: hidden;
}
