.main-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  padding: 16px 0;
  background: linear-gradient(0deg, rgba(32, 99, 255, 0.05) 0%, #133c99 100%);
}

.header-title {
  display: none;
}

.page-nav {
  display: none;
}

#header-game-link {
  display: none;
}

.menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
}

.menu-svg {
  fill: none;
  stroke: #fff;
}

.page-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.page-nav-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 167%;
  color: #fff;
  transition: color 0.3s ease;
}

.page-nav-link:hover {
  color: #d1ff01;
}

@media screen and (min-width: 1436px) {
  .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .header-title {
    display: block;
    font-family: var(--font-family);
    font-style: italic;
    font-weight: 900;
    font-size: 28px;
    line-height: 107%;
    color: #cef65f;
    transition: text-shadow;
  }

  .header-title:hover,
  .header-title:focus {
    text-shadow: 2px 2px 4px #d1ff01;
  }

  #header-game-link {
    display: block;
    margin: 0;
  }
  .page-nav {
    display: block;
  }

  .menu-btn {
    display: none;
  }
}

/* modal  */

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 60px;
  padding-top: 115px;
  padding-left: 20px;
  background: #04338f;
  z-index: 8;
  transform: translateY(-100%);
  transition: transform 1s ease;
}

.menu-nav-list {
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.modal-logo {
  width: 58px;
  margin: 0 auto;
  margin-bottom: 44px;
}

/* popup */

.page-popup {
  position: fixed;
  z-index: 10;
  bottom: 20px;
  border: 1px solid #0343bf;
  border-radius: 20px;
  padding: 20px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 14px 42px 0 rgba(8, 15, 52, 0.06);
  background: #fff;
  transition: transform 0.4s ease;
}

.popup-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 188%;
  color: #0343bf;
  margin-bottom: 37px;
}

.popup-btn {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 113%;
  color: #0343bf;

  border: 1px solid #0343bf;
  border-radius: 56px;
  padding: 18px 26px;
  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 {
  color: #fff;
  background: #0343bf;
}

.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-top: 144px;
  padding-bottom: 254px;
  background-image: url(../img/home.png);
  background-position: center;
  background-size: cover;
}

.page-hero-title {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 42px;
  text-transform: uppercase;
  text-align: center;
  color: #cef65f;
  margin-bottom: 31px;
}

.page-hero-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  text-align: center;
  color: #fff;
  margin-bottom: 31px;
}

.page-hero-link {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 18px;
  line-height: 150%;
  color: #0c0809;
  text-align: center;

  display: block;
  width: 200px;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px;
  border-radius: 12px;
  background: #cef65f;
  transition: background-color 0.3s ease;
}

.page-hero-link:hover,
.page-hero-link:focus {
  background: #8daa3c;
}

@media screen and (min-width: 1436px) {
  .dashboard {
    padding-top: 225px;
    padding-bottom: 144px;
  }

  .page-hero-title {
    font-size: 68px;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 31px;
  }

  .page-hero-text {
    font-size: 20px;
    max-width: 700px;
    margin: 0 auto;
    margin-bottom: 31px;
  }
}

/* gallery */

.gallery-swiper {
  margin-bottom: 32px;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  padding: 0px 0px 38px 0px;
  width: 330px;
  max-width: 100%;
  box-shadow: 0 2px 12px -2px rgba(0, 0, 0, 0.35);
  background: #fff;

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 23px;
    line-height: 139%;
    text-align: center;
    color: #0c0809;
    margin-top: 28px;
  }
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  width: 64px;
  height: 64px;
  box-shadow: 0 0 24px 0 rgba(0, 44, 255, 0.4);
  background: #fff;
  transition: background-color 0.25s ease;
}

.swiper-svg {
  fill: none;
  stroke: #000;
  transition: stroke 0.3s ease;
}

.btn:hover {
  background-color: #cef65f;
}

.btn-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-bottom: 32px;
}

.gallery-prev {
  svg {
    transform: rotate(-90deg);
  }
}

.gallery-next {
  svg {
    transform: rotate(90deg);
  }
}

@media screen and (min-width: 1436px) {
  .gallery-container {
    position: relative;
  }
  .gallery-prev {
    position: absolute;
    left: 0;
    top: 50%;
  }

  .gallery-next {
    position: absolute;
    right: 0;
    top: 50%;
  }
}

/* who */

.who-text {
  margin-bottom: 20px;
}

.who-link {
  width: 145px;
  margin: 0;
}

.who-img {
  margin: 0 auto;
  margin-top: 45px;
}

@media screen and (min-width: 1436px) {
  .who-container {
    display: flex;
    align-items: center;
    gap: 45px;
  }

  .who-img {
    margin: 0;
    flex-shrink: 0;
  }
}

/* focuc */

#focus {
  padding-bottom: 0;
}

.focuc-img {
  width: 262px;
  margin: 0 auto;
  animation: flipX 6s ease-in-out infinite;
}

@media screen and (min-width: 768px) {
  .focuc-img {
    width: 362px;
  }
}

@media screen and (min-width: 1436px) {
  .focus-container {
    display: flex;
    align-items: center;
    gap: 155px;
  }

  .focuc-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* data */

#data {
  padding-top: 0;
}

.data-img {
  width: 262px;
  margin: 0 auto;
  width: 352px;
  max-width: 100%;
  margin: 0 auto;
  animation: flipX 6s ease-in-out infinite;
}

@keyframes flipX {
  0% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(-1);
  }
  100% {
    transform: scaleX(1);
  }
}

@media screen and (min-width: 768px) {
  .data-img {
    width: 462px;
  }
}

@media screen and (min-width: 1436px) {
  .data-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 65px;
  }

  .data-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* team */

.team-img {
  width: 303px;
  margin: 0 auto;
  margin-top: 45px;
}

@media screen and (min-width: 768px) {
  .team-img {
    width: 403px;
  }
}

@media screen and (min-width: 1436px) {
  .team-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: 82px;
    margin-bottom: 100px;
  }

  .team-img {
    width: auto;
    margin: 0;
    flex-shrink: 0;
  }
}

/* partners */

.partners {
  width: 1064px;
  max-width: 100%;
  margin: 0 auto;
  padding: 60px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 38px 80px;
  flex-wrap: wrap;
}

/* games */

#games {
  padding: 268px 0;
  background-image: url(../img/games.png);
  background-size: cover;
}

.games-title {
  max-width: 760px;
}

@media screen and (min-width: 1436px) {
  #games {
    padding-top: 225px;
    padding-bottom: 341px;
  }
}

/* hit */

.swiper-wrapper {
  padding-bottom: 7px;
  margin-top: 22px;
}

.hit-item {
  border-radius: 7px;
  padding: 0px 0px 23px 0px;
  width: 280px;
  max-width: 100%;
  overflow: hidden;
  box-shadow: 0 1px 7px -1px rgba(0, 0, 0, 0.35);
  background: #fff;

  h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 14px;
    line-height: 143%;
    color: #0c0809;
    padding: 0 10px;
    margin-top: 8px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 146%;
    background: linear-gradient(10deg, #0093fe 0%, #0331a8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 10px;
    margin-top: 8px;
  }
}

.hit-link-wrap {
  display: flex;
  gap: 5px;
  padding: 0 10px;
  margin-top: 8px;
}

.hit-link {
  width: 15px;
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.hit-link:hover,
.hit-link:focus {
  opacity: 1;
  transform: scale(1.2);
}

.hit-list {
  display: none;
}

@media screen and (min-width: 1436px) {
  .hit-swiper3,
  .hit-swiper2,
  .hit-swiper1 {
    display: none;
  }

  .hit-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px 12px;
    margin-top: 60px;
  }

  .hit-item {
    width: calc((100% - 60px) / 6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .hit-item:hover,
  .hit-item:focus {
    transform: scale(1.1);
    box-shadow: 0 1px 7px -1px rgba(0, 0, 255, 0.35);
  }
}

/* career */

#career {
  padding: 299px 0;
  background-image: url(../img/career.png);
  background-position: center;
  background-size: cover;
}

@media screen and (min-width: 1436px) {
  #career {
    padding: 309px 0;
  }
}

/* we  */

.we-text {
  text-align: center;
  width: 878px;
  max-width: 100%;
  margin: 0 auto;
  margin-bottom: 40px;
}

.we-img {
  width: 100%;
}

/* adventure-list */

.adventure-list {
  display: flex;
  flex-direction: column;
  gap: 22px;

  h4 {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 22px;
    line-height: 218%;
    color: #000;
    margin-bottom: 22px;
  }
}

@media screen and (min-width: 768px) {
  .adventure-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .adventure-item {
    width: calc((100% - 22px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .adventure-item {
    width: calc((100% - 66px) / 4);
  }
}

/* values-list */

.values-list {
  display: flex;
  flex-direction: column;
  gap: 22px;

  h5 {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 22px;
    line-height: 218%;
    text-align: center;
    color: #fff;
    margin-bottom: 22px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 768px) {
  .values-list {
    align-items: flex-start;
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 22px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  .values-list {
    li {
      width: calc((100% - 44px) / 4);
    }
  }
}

/* figures */

#figures {
  background-image: url(../img/figure.png);
  background-position: center;
  background-size: cover;
}

.figures-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.figures-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 211px;
}

.figure-value {
  font-family: var(--font-family);
  font-weight: 900;
  font-size: 66px;
  line-height: 73%;
  text-align: center;
  color: #2063ff;
}

.figure-description {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  line-height: 144%;
  text-align: center;
  color: #000;
}

@media screen and (min-width: 1436px) {
  .figures-list {
    width: 600px;
    margin: 0 auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
  }

  .figures-item {
    width: 280px;
  }
}

/* why-list */

.why-us-list {
  display: flex;
  flex-direction: column;
  gap: 22px;

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 22px;
    color: #fff;
    margin-bottom: 22px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    color: #fff;
  }
}

@media screen and (min-width: 768px) {
  .why-us-list {
    flex-direction: row;
    flex-wrap: wrap;

    li {
      width: calc((100% - 22px) / 2);
    }
  }
}

@media screen and (min-width: 1436px) {
  .why-us-list {
    li {
      width: calc((100% - 66px) / 4);
    }
  }
}

/* join-item */

.join-item {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 260px;
  max-width: 100%;

  div {
    border: 1px solid #fff;
    border-radius: 22px;
    padding: 12px 24px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 22px;
    line-height: 136%;
    text-align: center;
    color: #fff;
    margin-bottom: 10px;
  }

  span {
    display: block;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    text-align: center;
    color: #fff;
  }
}

@media screen and (min-width: 1436px) {
  .join-swiper {
    width: 860px;
  }
}

/* about */

#about {
  padding-top: 225px;
  padding-bottom: 473px;
  background-image: url(../img/about.png);
  background-position: center;
  background-size: cover;
}

.about-title {
  max-width: 100%;
}

/* spirit-text */

.spirit-text {
  margin-bottom: 20px;
  color: #000;
}

.spirit-img {
  margin: 0 auto;
  margin-top: 40px;
  animation: flipX 6s ease-in-out infinite;
}

@media screen and (min-width: 1436px) {
  .spirit-container {
    display: flex;
    align-items: center;
    gap: 45px;
    flex-direction: row-reverse;
  }

  .spirit-img {
    margin: 0;
    flex-direction: 0;
  }
}

/* history-list */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 150px;
  padding-left: 48px;
  background-image: url(../img/border.png);
  background-position: left;
  background-size: contain;
  background-repeat: no-repeat;

  h5 {
    font-family: var(--font-family);
    font-weight: 900;
    font-size: 48px;
    line-height: 100%;
    color: #000;
    margin-bottom: 40px;
  }
}

@media screen and (min-width: 1436px) {
  .history-list {
    flex-direction: row;
    align-items: flex-start;
    gap: 200px 92px;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0;
    background-position: center;
    padding-bottom: 200px;

    li {
      width: calc((100% - 92px) / 2);
    }

    .item1 {
      h5,
      p {
        text-align: end;
      }
    }
  }

  .item2 {
    transform: translateY(200px);
  }
}

/* contact */

#contact {
  background-image: url(../img/contact-banner.png);
  background-position: center;
  background-size: cover;
  padding: 260px 0;
}

.contact-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  width: 831px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  color: #fff;
}

/* mail-list */

.mail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 144%;
    color: #000;
  }

  a,
  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 144%;
    color: #000;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.contact-img {
  margin: 0 auto;
}

@media screen and (min-width: 1436px) {
  .mail-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
  }

  .contact-img {
    margin: 0;
    flex-shrink: 0;
  }
}

.contact-mail {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 163%;
  color: #343434;
  display: block;
  margin-bottom: 40px;
}

.contact-mail:hover,
.contact-mail:focus {
  text-decoration: underline;
}

/* form  */

#consultation-form {
  display: flex;
  flex-direction: column;
  width: 430px;
  max-width: 100%;
  margin: 0 auto;
  gap: 28px;

  input,
  textarea {
    border: none;
    border-bottom: 1px solid #fff;
    padding: 10px 8px;
    width: 100%;
    background: none;
    resize: none;
    outline: none;
    width: 100%;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: #fff;
    transition: background-color 0.3s ease;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    color: #fff;
  }
}

.modal-form {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-form.show {
  opacity: 1;
}

@media screen and (min-width: 1436px) {
  .form-container {
    display: flex;
    align-items: center;
    gap: 208px;
    padding-top: 100px;
  }

  #consultation-form {
    width: 706px;
  }

  .form-title {
    font-size: 78px;
    margin: 0;
    flex-shrink: 0;
  }
}

/* footer */

.footer {
  padding: 28px 0;
}

.footer-mail {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 33px;
  margin-bottom: 12px;

  a {
    display: block;
    width: 24px;
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
  }

  a:hover,
  a:focus {
    opacity: 1;
    transform: scale(1.1);
  }
}

.footer-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  text-align: center;
  margin-bottom: 24px;
  color: #fff;

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.footer-list {
  display: flex;
  align-items: center;
  flex-direction: column;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.3s ease;
  color: #fff;

  a:hover {
    color: #d1ff01;
  }
}

@media screen and (min-width: 1436px) {
  .footer {
    padding: 38px 0;
  }

  .footer-mail {
    a {
      width: 30px;
    }
  }

  .footer-list {
    flex-direction: row;
    justify-content: center;
    gap: 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 #ccc;
  border-top-color: #cef65f;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* scroll */

#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 20px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid #cef65f;

  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: #cef65f;
  }
}

#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;
}
