.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 16px 0;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.1);
}

.header-title {
  display: none;
}

.page-nav {
  display: none;
}

.menu-btn {
  display: block;
  margin-left: auto;
}

.menu-svg {
  fill: none;
  stroke: #fff;
  transition: stroke 0.3s ease;
}

.menu-btn:hover,
.menu-btn:focus {
  svg {
    stroke: #3b44f6;
  }
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 44px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  text-decoration: underline;
}

.active-link {
  text-decoration: underline;
}

@media screen and (min-width: 1436px) {
  .main-section {
    padding: 20px 0;
  }

  .page-nav {
    position: relative;
  }

  .header-title {
    display: block;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 16px;
    letter-spacing: -0.02em;
    text-align: center;
    background: linear-gradient(90deg, #fff 0%, rgba(255, 255, 255, 0.25) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.3s ease, background-image 0.3s ease;
  }

  .header-title:hover,
  .header-title:focus {
  }

  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 60px;
  padding-top: 120px;
  backdrop-filter: blur(32px);
  background: rgba(0, 0, 0, 0.55);
  z-index: 8;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  border: 1px solid #3b44f6;
  border-radius: 20px;
  padding: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 188%;
  margin-bottom: 37px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 113%;
  color: #3b44f6;
  border: 1px solid #3b44f6;
  border-radius: 56px;
  padding: 18px 26px;
  box-shadow: 0 4px 8px 0 rgba(74, 58, 255, 0.08);
  transition: color 0.2s ease, background-color 0.2s ease;
}

.popup-btn:hover {
  background: #3b44f6;
  color: #fff;
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 20px;
}

@media screen and (min-width: 1436px) {
  .page-popup {
    padding: 52px 138px;
  }

  .popup-text {
    font-size: 18px;
    margin: 0;
  }

  .popup-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 100px;
  }

  .popup-wrap {
    flex-shrink: 0;
  }
}

/* hero  */

.dashboard {
  padding: 250px 0;
  background-image: url(../img/home.jpg);
  background-position: center;
  background-size: cover;
}

.page-hero-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 30px;
  line-height: 113%;
  text-transform: uppercase;
  text-align: center;
  color: #fff;
  margin-bottom: 32px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  color: #fff;
  text-align: center;
  margin-bottom: 32px;
}

.hero-link {
  display: block;
  width: fit-content;
  margin: 0 auto;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  text-align: center;
  color: #000460;
  border: 1px solid var(--blue);
  border-radius: 8px;
  padding: 16px 32px;
  background-color: #fff;
  transition: background-color 0.3s ease, color 0.3s ease,
    border-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-link:hover,
.hero-link:focus {
  background-color: var(--blue);
  border-color: #fff;
  color: #fff;
  box-shadow: 5px 5px 10px #fff;
}

@media screen and (min-width: 1436px) {
  .page-hero-title {
    font-size: 52px;
    max-width: 777px;
    text-align: start;
  }

  .page-hero-text {
    font-size: 20px;
    max-width: 641px;
    text-align: start;
  }

  .hero-link {
    font-size: 18px;
    padding: 16px 32px;
    margin: 0;
  }
}

/* what */

.what-swiper {
  display: none;
}

.what-pagination {
  display: none;
}

.what-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}

@media screen and (min-width: 768px) {
  .what-list {
    display: none;
  }

  .what-swiper {
    display: block;
    margin-bottom: 24px;
  }

  .what-item {
    width: 800px;
  }

  .what-pagination {
    display: block;
    text-align: center;
    margin-bottom: 24px;
  }

  .swiper-pagination-bullet {
    opacity: 1;
  }
}

/* game  */

.game-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  li {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 21px;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 130%;
    text-align: center;
    color: #030809;
  }
}

@media screen and (min-width: 768px) {
  .game-list {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 60px;

    li {
      width: calc((100% - 60px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  .game-list {
    gap: 60px 80px;
    width: 916px;
    margin: 0 auto;

    li {
      width: calc((100% - 160px) / 3);
    }
  }
}

/* get  */

.get {
  background: linear-gradient(180deg, #f5f4f9 0%, #989cf7 47.6%, #3b44f6 100%);
}

.get-link {
  margin-top: 32px;
}

@media screen and (min-width: 1436px) {
  .get-link {
    margin: 0 auto;
    margin-top: 60px;
  }
}

/* ******************************************************* */

/* page 2  */

/* gallery  */

.gallery {
  padding: 280px 0;
  background-image: url(../img/gallery.jpg);
}

/* projects */

.projects-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-desc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;

  h5 {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    color: #030809;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    text-align: center;
    color: #030809;
  }
}

.projects-pagination {
  display: block;
  text-align: center;
  margin-top: 32px;
}

@media screen and (min-width: 768px) {
  .projects-item {
    flex-direction: row;
    align-items: center;
  }

  .ipad {
    width: 400px;
    flex-shrink: 0;
  }

  .project-desc {
    align-items: flex-start;

    h5,
    p {
      text-align: start;
    }
  }
}

@media screen and (min-width: 1436px) {
  .projects-item {
    gap: 39px;
  }

  .projects-container {
    width: 1162px;
  }

  .ipad {
    width: 478px;
    flex-shrink: 0;
  }
}

/* media  */

.media-pagination {
  display: block;
  text-align: center;
  margin-top: 32px;
}

@media screen and (min-width: 1436px) {
  .media-item {
    width: 800px;
  }
}

/* Built  */

.built {
  padding-bottom: 0;
}

.built-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  text-align: center;
  color: #030809;
  margin-bottom: 48px;
}

.people {
  margin: 0 auto;
}

@media screen and (min-width: 1436px) {
  .built-container {
    padding: 0 180px;
  }

  .built-wrapper {
    display: flex;
    align-items: center;
    gap: 48px;
  }

  .people {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }

  .built-text {
    text-align: start;
  }
}

/* submit */

.submit-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  text-align: center;
  color: #030809;
  margin-bottom: 22px;
}

.submit-link {
  background: #3b44f6;
  color: #fff;
}

@media screen and (min-width: 1436px) {
  .submit-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .submit-text {
    text-align: start;
  }
}

/* footer */

.footer {
  padding: 27px 0;
  background: #3b44f6;
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  text-align: center;
  color: #fff;
  margin-bottom: 22px;
}

.footer-list {
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.02em;
  color: #fff;

  a:hover {
    text-decoration: underline;
  }
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 50px 0;
  }

  .footer-text {
    margin-bottom: 29px;
  }

  .footer-list {
    flex-direction: row;
    justify-content: center;
    gap: 40px;
  }
}

/* loader */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(94, 95, 147, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.spinner {
  width: 70px;
  height: 70px;
  border: 8px solid #ccc;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;

  svg {
    stroke: #000;
  }
}

#scrollTopBtn.show {
  opacity: 0.5;
  transform: translateY(0);
  pointer-events: auto;
}

#scrollTopBtn:hover {
  opacity: 1;
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
