.header, .welcome, .about, .gallery, .download-game, .review, .footer {
  max-width: 1440px;
  margin: 0 auto;
}

.title {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: bold;
  line-height: 75px;
  color: #000000;
  margin: 0 180px;
}

.title span {
  color: #6706E4;
}

.text {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  color: #000000;
  margin: 0 180px;
}

.header, .logo, .menu {
  display: flex;
}

.menu {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.menu nav .container-toggle {
  display: none;
}

.menu nav ul.toggle li {
  background: #000;
  height: 3px;
  width: 50px;
  margin: 7px;
  list-style: none;
}

.menu nav ul.menu-list li {
  display: flex;
  align-items: center;
  text-align: center;
  list-style: none;
  float: left;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  margin: 0 31px;
  padding: 20px 0;
}

.menu nav ul.menu-list li:last-child {
  background: #FFD782;
  border-radius: 16px;
  padding: 18px 40px;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 21px;
  color: #6706E4;
}

.welcome {
  background-image: url(../../media/welcome/roboto.svg);
  background-repeat: no-repeat;
  background-position: right;
  height: 725px;
}

.welcome .title {
  font-size: 65px;
}

.welcome .game {
  display: flex;
  text-align: center;
  align-items: baseline;
  margin: 100px 180px 0;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 18px;
  text-align: center;
}

.welcome .game div img {
  display: flex;
  margin: 0 10px 10px;
  border-radius: 22px;
  width: 132px;
  height: 132px;
}

.welcome .game div p {
  margin: 0 auto;
  width: 100px;
  text-align: center;
}

.welcome .game div:first-child img,
.welcome .game div:last-child img{
  width: 104.21px;
  height: 104.21px;
  background: linear-gradient(180deg, rgba(221, 216, 255, 0.44) 0%, #DDD8FF 100%);
}

.welcome .text {
  width: 500px;
}

.welcome .game .game-item,
.header .menu .menu-item,
.footer .menu .menu-item,
.download img,
.review .video {
  cursor: pointer;
}

.about {
  background-image: url(../../media/about/about.svg);
  background-repeat: no-repeat;
  background-position: left;
  height: 660px;
  margin-bottom: 85px;
}

.about .title {
  font-size: 46px;
  margin-right: 180px;
  text-align: right;
}

.about .text {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  margin: -50px 0 0 -180px;
  text-align: right;
}

.about .text p {
  width: 460px;
}

.gallery-background {
  background: #F6F4FF;
  padding-bottom: 1px;
}

.gallery .title {
  display: flex;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: bold;
  font-size: 46px;
  line-height: 53px;
  text-align: center;
  padding: 75px 0 55px;
}

.gallery .title p {
  margin: 0 auto;
}

.gallery .title span {
  display: block;
}

.gallery .game {
  display: flex;
  justify-content: space-between;
  margin:  0 180px 150px;
  padding: 20px;
}

.gallery .game .img img {
  width: 531px;
  height: auto;
  box-shadow: 4px 4px 5px rgba(135, 117, 158, 0.24);
  border-radius: 22px;
}

.gallery .game .desc {
  display: flex;
  width: 480px;
  flex-direction: column;
  justify-content: space-between;
}

.gallery .game .desc .title {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: bold;
  font-size: 32px;
  line-height: 37px;
  text-align: right;
  margin: 0;
  padding: 0;
  justify-content: flex-end;
}

.gallery .game .desc .title p {
  margin: 0 15px;
}

.gallery .game .desc img {
  width: 76px;
  height: 76px;
  box-shadow: 15px 15px 45px rgba(171, 180, 222, 0.74);
  border-radius: 16px;
}

.gallery .game .desc .text {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 22px;
  text-align: right;
  margin: 0;
}


.gallery .game:nth-child(2n) .desc .title {
  justify-content: flex-start;
}

.gallery .game:nth-child(2n) .desc .title p,
.gallery .game:nth-child(2n) .desc .text  {
  text-align: left;
}

.gallery .game:nth-child(2n) .desc .download {
  display: flex;
  justify-content: flex-start;
}

.gallery .game .desc .download {
  display: flex;
  justify-content: flex-end;
}

.gallery .game .desc .download img {
  width: 174px;
  height: 56px;
  box-shadow: unset;
}

.gallery .game .desc .download img:first-child {
  margin-right: 10px;
}

.download-game-background {
  background: #6706E4;
}

.download-game {
  display: flex;
  height: 596px;
  background-image: url(../../media/download/bg.svg);
  background-position: right;
  background-repeat: no-repeat;
  flex-direction: column;
  justify-content: center;
}

.download-game .title {
  width: min-content;
  font-family: Ubuntu;
  font-style: normal;
  font-weight: bold;
  font-size: 65px;
  line-height: 75px;
  color: #FFFFFF;
}

.download-game .title p {
  margin: 20px 0 60px;
}

.download-game .download {
  margin: 0 180px;
}

.download-game .download img:first-child{
  margin-right: 20px;
}

.review {
  background-image: url('../../media/review/bg.svg');
  background-repeat: no-repeat;
  background-position: bottom;
  height: 800px;
  margin: 90px auto;
}

.review .title {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: bold;
  font-size: 46px;
  line-height: 53px;
  text-align: center;
  color: #000000;
  margin: 90px;
}

.review .video {
  display: flex;
  width: 599px;
  height: 337px;
  background: url('../../media/review/video.svg');
  background-position: -30px -30px;
  box-shadow: 15px 15px 45px rgba(171, 180, 222, 0.74);
  border-radius: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 calc(100% - 600px);
}

.review .video iframe {
  width: 100%;
}

.review .video .play {
  background: url('../../media/review/play.svg');
  width: 120px;
  height: 120px;
}

footer {
  background: #000;
  padding: 80px 0 60px;
}

.footer {
  display: flex;
  color: #fff;
}

.footer .company {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.footer .company .copyright {
  width: max-content;
  font-family: Roboto;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  color: #A8A9BC;
}

.footer .menu ul li {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  color: #FFFFFF;
  float: left;
  list-style: none;
  margin: 0 12px;
}

.footer .menu {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer .contacts {
  font-family: Ubuntu;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 21px;
  text-align: right;
  letter-spacing: 0.07em;
}

.footer .address {
  width: max-content;
}

@media only screen and (max-width: 768px) {
  header {
      position: fixed;
      background: #fff;
      top: 0;
      width: 100%;
  }

  main {
    margin-top: 100px;
  }

  .logo {
    margin: 10px 15px;
  }

  .menu nav ul.toggle {
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    right: 10px;
  }

  .menu nav ul.menu-list {
    position: absolute;
    display: none;
    background: #fff;
    top: 50px;
    right: -15px;
    flex-direction: column;
    width: 100%;
    padding: 0p 0 25px;
  }

  .menu nav ul.menu-list li {
    display: block;
    padding: 10px 0;
    text-align: right;
    float: inherit;
  }

  .menu nav ul.menu-list li:last-child {
    background: #fff;
    padding: 10px 0;
  }

  .welcome {
    background-image: unset;
    height: auto;
  }

  .welcome .title {
    font-size: 65px;
    text-align: center;
    margin: 0 70px;
  }

  .welcome .text {
    text-align: center;
    margin: 0 auto;
    width: 80%;
  }

  .welcome .game {
    justify-content: center;
    margin: 100px auto;
  }

  .about {
    background-position: center 100%;
    background-size: 70%;
  }

  .about .title {
    margin: 0 10%;
    text-align: center;
  }

  .about .text {
    justify-content: center;
    margin: -50px auto;
    width: 80%;
    text-align: center;
  }

  .gallery .title {
    padding: 40px 0;
    width: 80%;
    margin: 0 auto;
  }

  .gallery .game .desc .title {
      margin: 0 auto;
      width: 100%;
  }

  .gallery .game {
    flex-direction: column;
    justify-content: center;
    width: 80%;
    margin: 0 auto;
  }

  .gallery .game:nth-child(2n) {
    flex-direction: column-reverse;
  }

  .gallery .game .desc {
    display: flex;
    width: auto;
    flex-direction: column;
    justify-content: flex-end;
  }

  .gallery .game .img img {
    display: block;
    width: 100%;
    margin: 0 auto 35px auto;
  }

  .gallery .game .desc .download,
  .gallery .game:nth-child(2n) .desc .download  {
    justify-content: center;
  }

  .review {
    background-image: unset;
    height: auto;
    margin: 40px auto 90px;
  }

  .review .title {
    margin: 0 10%;
  }

  .review .video {
    margin: 0 auto;
    width: 80%;
  }

  .download-game {
      background: unset;
      margin: 0 70px;
      padding-bottom: 30px;
      height: auto;
  }

  .download-game .title {
    margin: 20px auto;
    text-align: center;
  }

  .download-game .download {
      margin: 0 auto;
  }

  .download-game .download img:first-child {
    margin: 0 auto;
  }

  .footer {
    justify-content: space-between;
  }

  .footer .company .copyright {
    margin: 10px 15px;
  }

  .footer .menu {
      display: none;
  }

  .footer .contacts {
      margin-right: 15px;
  }

  /* GENERAL STYLES FOR MOBILE MENU TOGGLE */
  .visuallyHidden {
      position: absolute;
      overflow: hidden;
      clip: rect(0 0 0 0);
      height: 1px; width: 1px;
      margin: -1px; padding: 0; border: 0;
  }

  .menu nav .container-toggle {
      width: 70%;
      margin: 5px 15px auto;
      display: flex;
      justify-content: space-between;
  }

  .hamburger {
      margin: 0 auto;
      margin-top: 15px;
      width: 40px;
      height: 30px;
      position: relative;
  }

  .hamburger .bar {
      padding: 0;
      width: 40px;
      height: 4px;
      background-color: #000;
      display: block;
      border-radius: 4px;
      transition: all 0.4s ease-in-out;
      position: absolute;
  }

  .bar1 {
      top: 0;
  }

  .bar2,
  .bar3 {
      top: 13.5px;
  }

  .bar3 {
      right: 0;
  }

  .bar4 {
      bottom: 0;
  }


  /* HAMBURGER */

  .checkbox-toggle .bar4 {
      top: 13.5px;
  }

  .checkbox-toggle .bar5 {
      bottom: 0px;
  }

  .checkbox-toggle .bar {
      transition: all 0.4s ease-in-out, transform 0.4s ease-in-out 0.4s;
  }

  .checkbox-toggle .bar2 {
      width: 1px;
      transform: rotate(90deg);
      left: 13.5px;
  }

  .checkbox-toggle .bar3 {
      width: 1px;
      left: 13.5px;

  }

  .checkbox-toggle:checked + label > .checkbox-toggle > .bar1{
      top: 13.5px;
      background-color: transparent;
  }

  .checkbox-toggle:checked + label > .checkbox-toggle > .bar2{
      left: 0px;
      width: 40px;
      transform: rotate(45deg);
  }

  .checkbox-toggle:checked + label > .checkbox-toggle > .bar3{
      left: 0;
      width: 40px;
      transform: rotate(-45deg);
  }

  .checkbox-toggle:checked + label > .checkbox-toggle > .bar4{
      background-color: transparent;
  }

  .checkbox-toggle:checked + label > .checkbox-toggle > .bar5{
      bottom: 13.5px;
      background-color: transparent;
  }


}

@media only screen and (max-width: 495px) {
  .logo {
    margin: 10px 15px;
  }

  .footer {
    justify-content: center;
    flex-direction: column;
  }

  .footer .logo {
    margin: 10px auto;
  }

  .footer .company .copyright {
    margin: 0 auto;
  }

  .footer .address {
    margin: 0 auto;
    text-align: center;
  }

  .footer .contacts {
    margin-right: 0;
  }
}

@media only screen and (max-width: 410px) {
  .welcome .game div img {
      width: auto;
      height: 110px;
  }

  .welcome .game div:first-child img, .welcome .game div:last-child img {
    width: auto;
    height: 85px;
  }

  .gallery .title span {
    font-size: 17px;
  }

  .gallery .game .desc .download,
  .gallery .game:nth-child(2n) .desc .download {
    flex-direction: column;
    margin: 0 auto;
  }

  .gallery .game .desc .download img:first-child {
    margin-right: 0;
  }

  .download-game {
    margin: 0 auto;
  }
}
