@font-face {
  font-family: 'Avenir Next Bold';
  src:url('fonts/avenirnextcyr-bold.woff') format('woff'),
        url('fonts/avenirnextcyr-bold.woff2') format('woff2'),
        url('fonts/avenirnextcyr-bold.svg#avenirnextcyr-bold') format('svg'),
        url('fonts/avenirnextcyr-bold.eot'),
        url('fonts/avenirnextcyr-bold.eot?#iefix') format('embedded-opentype'),
        url('fonts/avenirnextcyr-bold.ttf') format('truetype');

  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next Med';
  src:url('fonts/avenirnextcyr-medium.woff') format('woff'),
        url('fonts/avenirnextcyr-medium.woff2') format('woff2'),
        url('fonts/avenirnextcyr-medium.svg#avenirnextcyr-medium') format('svg'),
        url('fonts/avenirnextcyr-medium.eot'),
        url('fonts/avenirnextcyr-medium.eot?#iefix') format('embedded-opentype'),
        url('fonts/avenirnextcyr-medium.ttf') format('truetype');

  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir Next Regular';
  src:url('fonts/avenirnextcyr-regular.woff') format('woff'),
        url('fonts/avenirnextcyr-regular.woff2') format('woff2'),
        url('fonts/avenirnextcyr-regular.svg#avenirnextcyr-regular') format('svg'),
        url('fonts/avenirnextcyr-regular.eot'),
        url('fonts/avenirnextcyr-regular.eot?#iefix') format('embedded-opentype'),
        url('fonts/avenirnextcyr-regular.ttf') format('truetype');

  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


* {
  /* font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif; */
  color: white;
  margin: 0px;
  padding: 0px;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.screen-mobile {
  display: none;
}
.main {
  width: 100vw;
  height: 100vh;
  font-family: 'Avenir Next Bold', sans-serif;
  background: url('images/bg-desktop.webp');
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0 20px;
}
.content {
  position: relative;
  z-index: 1;
}
.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 8vw;
  width: 40vw;
  height: 565px;
  background: url(images/zeus.png);
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
.logo-group {
  width: 100%;
  text-align: center;
  padding: 40px 20px;
}
.logo-group img {
  max-height: 112px;
  width: auto;
}
.offer {
  position: relative;
  display: flex;
  justify-content: space-between;
  max-width: 100%;
  max-height: calc(100vh - 200px); /* Account for logo and padding */
  /* overflow-y: auto; */
  margin: 0 auto;
  padding: 20px 0;
}

.offer-text {
  flex: 0 1 60%;
  min-width: 0; /* Allows flex items to shrink below content size */
  max-height: 100%;
}
.game-wrap {
  max-height: calc(100% - 23vh);
  /* overflow: hidden; */
  display: flex;
  align-items: normal;
  justify-content: center;
}

.game-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.offer-form {
  flex: 0 1 40%;
  min-width: 0; /* Allows flex items to shrink below content size */
  max-height: 100%;
}
.offer-form img {
  margin-left: -100px;
}
.title-wrap {
  position: relative;
  padding-left: 185px;
}
.title-wrap::before {
  content: '';
  position: absolute;
  top: -42px;
  left: 0;
  width: 100%;
  height: 150%;
  background: url('images/title-back.png');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  background-position: center;
}
.title-wrap img {
  max-width: 850px;
}
.offer-form {
  flex: 0 1 40%;
}
.candies {
  position: absolute;
}
.decor-1 {
  width: 55px;
  height: 55px;
  top: 30vh;
  left: 45vw;
}
.decor-2 {
  width: 210px;
  height: 214px;
  bottom: 20px;
  left: 20px;
}
.decor-3 {
  height: 182px;
  width: 144px;
  bottom: 40vh;
  left: 20px;
}
.decor-4 {
  left: 50vw;
  bottom: 25vh;
}
.decor-5, .decor-6, .decor-7 {
  display: none;
}
/* .landscape-message {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #000000;
  z-index: 9999;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 20px;
}

.landscape-message__icon {
  width: 64px;
  height: 64px;
  animation: rotate90 1.5s ease infinite;
}

@keyframes rotate90 {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
} */
@media (max-width: 1650px) {
  .content::before {
    width: 33vw;
    height: 508px;
    left: 8vw
  }
  .title-wrap img {
    max-width: 700px;
  }
  .offer-form {
    flex-basis: 35%;
  }
  .offer-text {
    flex-basis: 65%;
  }
  .decor-2 {
    width: 160px;
    height: unset;
    bottom: 0px;
    left: 20px;
  }
}
@media (max-width: 1300px) {
  .content::before {
    left: 0
  }
  .title-wrap img {
    max-width: 540px;
  }
}
@media (max-width: 1024px) {
  .content::before {
    width: 40vw;
    height: 565px;
  }
  .title-wrap {
    padding-left: 65px;
  }
  .offer-form {
    flex-basis: 39%;
  }
  .offer-text {
    flex-basis: 60%;
  }
  .decor-3 {
    width: 60px;
    height: unset;
    bottom: 30vh;
  }
  .decor-2 {
    bottom: -86px;
    left: -1px;
  }
  .decor-4 {
    width: 40px;
  }
  .offer-form img {
    margin-left: -50px;
  }
}
@media (max-width: 1024px) and (orientation: portrait) {
  /* .landscape-message {
    display: flex;
  }
  .main {
    display: none;
  } */
  .main {
    display: flex;
    background: url('images/bg-tablet.webp');
    padding: 0;
    background-position: center -30px;
    background-size: cover;
    
  }
  .content::before {
    width: 95vw;
    height: 829px;
    left: -87px;
  }
  .logo-group {
    text-align: right;
    padding-right: 50px;
    padding-bottom: 0;
  }
  .logo-group img {
    max-height: 128px;
    width: auto;
    margin-top: 99px;
  }
  .title-wrap img {
      max-width: 80%;
  }
  .title-wrap::before {
    top: 0;
    background: url('images/title-back-tablet.png');
    background-repeat: no-repeat;
    background-size: contain;
  }
  .game-wrap {
    max-height: unset;
    padding-right: 50px;
    margin-top: -106px;
  }
  .game-wrap img {
    max-width: 55%;
    margin-left: auto;
  }
   .offer {
    flex-direction: column;
   }
   .offer-form {
    max-height: 50vh;
    margin-top: -200px;
   }
   .offer-form img {
    max-width: 60%;
    margin: 0 auto;
    display: block;
   }
   .decor-1, .decor-2, .decor-3, .decor-4 {
    display: none;
  }
  .decor-5 {
    display: block;
    width: 130px;
    left: 0;
    bottom: 0;
  }
  .decor-6 {
    display: block;
    width: 200px;
    height: unset;
    bottom: 0;
    right: 0;
  }
  .decor-7 {
    display: block;
    width: 180px;
    height: unset;
    top: 760px;
    left: 0;
    z-index: 2;
  }
}
@media (max-width: 850px) and (orientation: portrait) {
  .main {
    background-position-y: -30px;
  }
  .content::before {
    width: 70vw;
    height: 829px;
    left: -87px;
    top: 70px
  }
  .logo-group img {
    margin-top: 50px;
  }
  .offer-form {
    max-height: 50vh;
    margin-top: -140px;
   }
   .offer-form img {
    max-width: 65%;
    margin: 0 auto;
    display: block;
   }
   .decor-7 {
    top: 520px
   }
}
@media (max-width: 650px) {
  .landscape-message {
    display: none;
  }
  .main {
    display: flex;
    background: url('images/bg-mobile.webp');
    background-position-y: -10px ;
    padding: 0;
  }
  .content {
    /* background: url('images/screen-mobile.png');
    background-size: contain;
    background-repeat: no-repeat; */
    width: 100%;
    height: 100%;
  }
  .screen-mobile {
    display: block;
    width: 100%;
  }
  .content::before {
    content: none;
  }
  .logo-group {
    display: none;
  }
  .offer {
    display: none;
  }
  .candies {
    display: none;
  }
}