.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 24px 0;
  background: #fff;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 18px;
  line-height: 145%;
  letter-spacing: -0.02em;
  color: #400bf5;
}

.page-nav {
  display: none;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  text-align: center;
  color: #141829;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  color: #400bf5;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;

  svg {
    fill: none;
    stroke: #400bf5;
    transition: stroke 0.4s ease;
  }
}

.google-link {
  display: block;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-align: center;
  color: #141829;

  border: 2px solid #6436ff;
  border-radius: 12px;
  padding: 12px 28px;
  background-color: #fff;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-image 0.3s ease;
}

.google-link:hover,
.google-link:focus {
  color: #fff;
  background-image: linear-gradient(180deg, #6436ff 0%, #3c2099 100%);
}

@media screen and (min-width: 1440px) {
  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* hero  */

.dashboard {
  padding-top: 154px;
  padding-bottom: 80px;
  background-color: #d8cdff;
  background-image: url(../images/home.webp);
  background-position: center;
  background-size: cover;
}

.page-hero-title {
  font-family: var(--second-family);
  font-weight: 700;
  font-size: 44px;
  line-height: 110%;
  letter-spacing: -0.02em;
  text-align: center;
  color: #400bf5;
  margin-bottom: 16px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 140%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #141829;
  margin-bottom: 32px;
}

.page-hero-link {
  display: block;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #141829;

  border: 2px solid #6436ff;
  border-radius: 12px;
  padding: 12px 28px;
  background-color: #fff;

  transition:
    color 0.3s ease,
    border-color 0.3s ease,
    background-image 0.3s ease;
}

.page-hero-link:hover,
.page-hero-link:focus {
  color: #fff;
  background-image: linear-gradient(180deg, #6436ff 0%, #3c2099 100%);
}

.hero-link-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media screen and (min-width: 1440px) {
  .dashboard {
    padding-top: 215px;
    padding-bottom: 120px;
  }

  .hero-main-content {
    width: 960px;
    margin: 0 auto;
  }

  .page-hero-title {
    font-size: 64px;
    margin-bottom: 24px;
  }

  .page-hero-text {
    font-size: 24px;
    margin-bottom: 48px;
  }

  .hero-link-wrapper {
    flex-direction: row;
    justify-content: center;
    gap: 16px;
  }

  .page-hero-link {
    width: 254px;
  }
}

/* what  */

.what-container {
  display: flex;
  flex-direction: column-reverse;
  gap: 32px;
}

.what-img {
  flex-shrink: 0;
}

@media screen and (min-width: 1440px) {
  .what-container {
    flex-direction: row;
    align-items: center;
    gap: 64px;

    .title {
      text-align: start;
    }
  }
}

/* advantages  */

.advantages-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.advantages-item {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 6px 12px 0 rgba(0, 0, 0, 0.03),
    0 4px 8px 0 rgba(0, 0, 0, 0.02);
  background: #fff;
  transition: color 0.3s ease;
}

.advantages-item {
  img {
    width: 100%;
  }

  div {
    padding: 24px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 140%;
    letter-spacing: -0.01em;
    color: #424242;
  }

  span {
    display: block;
    font-family: var(--second-family);
    font-weight: 600;
    font-size: 20px;
    line-height: 145%;
    letter-spacing: -0.01em;
    color: #141829;
    margin-bottom: 8px;
  }
}

@media screen and (min-width: 1440px) {
  .advantages-list {
    flex-direction: row;
    width: 1152px;
    margin: 0 auto;
  }

  .advantages-item {
    width: calc((100% - 64px) / 3);
  }
}

/* gameplay  */

/* specifications  */

.table {
  width: 894px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 20px;
  background: #fff;
  overflow: hidden;
}

.row {
  display: flex;
}

.cell {
  width: calc(100% / 3);
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;

  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 143%;
  color: #424242;
}

.header {
  background: #400bf5;

  .cell {
    font-family: var(--second-family);
    font-weight: 700;
    font-size: 14px;
    line-height: 143%;
    color: #fff;
    padding: 20px 16px;
  }
}

@media screen and (min-width: 1440px) {
  .header {
    .cell {
      font-size: 18px;
    }
  }
}

/* intensity */

/* ready  */

#ready {
  background-image: url(../images/ready.png);
  background-position: center;
  background-size: cover;
}

.ready-text {
  text-align: center;
  margin-bottom: 32px;
}

@media screen and (min-width: 1440px) {
  .ready-text {
    margin-bottom: 48px;
  }
}

/* footer */

.footer {
  padding: 40px 0;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.footer-title {
  display: flex;
  flex-direction: column;
  gap: 8px;

  a {
    display: block;
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 28px;
    line-height: 110%;
    letter-spacing: -0.02em;
    text-align: center;
    color: #400bf5;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 145%;
    letter-spacing: -0.01em;
    text-align: center;
    color: rgba(0, 0, 0, 0.55);
  }
}

.footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  width: 290px;
  margin: 0 auto;
  margin-bottom: 20px;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #000;

  li {
    width: calc((100% - 32px) / 2);
  }

  a {
    transition: color 0.3s ease;
  }

  a:hover,
  a:focus {
    color: #400bf5;
  }
}

.footer-list {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px 32px;
  width: 290px;
  margin: 0 auto;

  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  line-height: 145%;
  letter-spacing: -0.01em;
  text-align: center;
  color: rgba(0, 0, 0, 0.55);

  li {
    width: calc((100% - 32px) / 2);
  }

  a {
    transition: color 0.3s ease;
  }

  a:hover,
  a:focus {
    color: #400bf5;
  }
}

@media screen and (min-width: 768px) {
  .footer-list {
    width: auto;
    flex-wrap: nowrap;

    li {
      width: auto;
    }
  }

  .footer-nav {
    width: auto;
    flex-wrap: nowrap;

    li {
      width: auto;
    }
  }
}

@media screen and (min-width: 1440px) {
  .footer-container {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer-title {
    a,
    p {
      text-align: start;
    }
  }
  .footer-nav {
    align-items: center;
    justify-content: flex-start;
  }

  .footer-list {
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 50px;
  padding-top: 120px;
  z-index: 8;
  background: #cdbeff;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px 0;
  transition: transform 0.4s ease;
  background: #cdbeff;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #424242;
  text-align: center;
  margin-bottom: 34px;
}

.popup-btn {
}

.popup-btn:hover {
}

.popup-wrap {
  display: flex;
  justify-content: center;
  gap: 18px;
}

@media screen and (min-width: 1440px) {
  .popup-text {
    font-size: 20px;
    margin: 0;
    text-align: start;
  }

  .popup-container {
    display: flex;
    align-items: center;
    gap: 160px;
  }

  .popup-wrap {
    flex-shrink: 0;
  }
}

/* geo popup  */

.geo-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #271958;
  z-index: 999;
}

.geo-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.geo-content {
  width: 800px;
  max-width: 100%;

  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 49px 22px;

  background: #d8cdff;

  h2 {
    font-family: var(--second-family);
    font-weight: 900;
    font-size: 32px;
    line-height: 173%;
    text-align: center;
    color: #6436ff;
    margin-bottom: 44px;
  }
}

@media screen and (min-width: 1440px) {
  .geo-content {
    padding: 74px;

    h2 {
      font-size: 52px;
    }
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  border: 1px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  z-index: 7;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease,
    border-color 0.4s ease;

  svg {
    fill: none;
    stroke: #fff;
    transition: stroke 0.3s ease;
  }
}

#scrollTopBtn:hover,
#scrollTopBtn:focus {
  border-color: #400bf5;

  svg {
    stroke: #400bf5;
  }
}

#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;
}
