@keyframes spring {
  0% {
    margin-top: -30px;
  }
  70% {
    margin-top: 30px;
  }
  100% {
    margin-top: -30px;
  }
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
}

.wrapper {
  position: relative;
  overflow: hidden;
  background: url("../images/bg.jpg") center no-repeat;
  background-size: cover;
  min-height: 100vh;
  width: 100%;
}

.container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: space-between;
  min-height: 100vh;
}
.container > div {
  width: 100%;
}

.logo {
  text-align: center;
  margin-top: 48px;
}

.brands {
  margin-bottom: 80px;
}
.brands__row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  margin: 0;
}
.brands__col {
  padding: 0 20px;
}

.center {
  text-align: center;
  color: #ffffff;
  padding: 30px 30px 9vh;
}

.star-1 {
  position: absolute;
  left: 50%;
  top: 50%;
  background: url("../images/star-1.png") center no-repeat;
  background-size: cover;
  width: 412px;
  height: 412px;
  transform: translate(-872px, -440px);
  animation: spring 2.5s infinite;
}

.star-2 {
  position: absolute;
  left: 50%;
  top: 50%;
  background: url("../images/star-2.png") center no-repeat;
  background-size: cover;
  width: 211px;
  height: 211px;
  transform: translate(540px, -570px);
  animation: spring 4.5s infinite;
}

.watermelon {
  position: absolute;
  left: 50%;
  top: 50%;
  background: url("../images/watermelon.png") center no-repeat;
  background-size: cover;
  width: 280px;
  height: 280px;
  transform: translate(-651px, 4px);
  animation: spring 3.5s infinite;
}

.diamond {
  position: absolute;
  left: 50%;
  top: 50%;
  background: url("../images/diamond.png") center no-repeat;
  background-size: cover;
  width: 412px;
  height: 412px;
  transform: translate(368px, -201px);
  animation: spring 2.2s infinite;
}

.bonus__1 {
  font-size: 32px;
  line-height: 1.25;
  color: #ea5b0c;
  text-transform: uppercase;
  margin-top: 24px;
}
.bonus__2 {
  font-size: 64px;
  line-height: 0.62;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  color: #ffffff;
}

.get-code {
  margin-top: 15vh;
}
.get-code__1 {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
.get-code__1__1 {
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #4bc9f3;
  cursor: pointer;
}
.get-code__1__2 {
  padding-left: 16px;
}
.get-code__1__2 span {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.24);
  border-radius: 80px;
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #ffffff;
  padding: 8px 16px;
  cursor: pointer;
  position: relative;
  transition: background-color 0.3s;
}
.get-code__1__2 span:hover {
  background-color: rgba(222, 0, 153, 0.24);
}
.get-code__1__2 span::after {
  content: attr(attr-text);
  position: absolute;
  bottom: 100%;
  margin-bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  transition: 0.3s;
  font-size: 12px;
  line-height: 1.67;
  font-family: "Roboto", sans-serif;
  text-transform: none;
  opacity: 0;
}
.get-code__1__2 span.active::after {
  opacity: 1;
}
.get-code__2 {
  margin-top: 48px;
}
.get-code__3 {
  margin-top: 48px;
  padding-top: 16px;
  position: relative;
}

.popup__terms {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  line-height: 1.67;
  text-align: center;
  color: #ffffff;
  background: rgba(174, 91, 247, 0.56);
  width: 511px;
  padding: 44px 16px 16px 16px;
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 1;
  border-radius: 16px;
  display: none;
}

.button-1 {
  background: #ea5b0c;
  border-radius: 46px;
  padding: 18px 62px;
  font-size: 20px;
  line-height: 1.4;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  transition: box-shadow 0.3s;
}
.button-1:hover {
  box-shadow: 0 0 40px #ea5b0c;
}

.button-2 {
  font-family: "Roboto", sans-serif;
  color: #ffffff;
  text-decoration: none;
  display: inline-block;
  position: relative;
  font-size: 12px;
  line-height: 1.67;
  padding-right: 20px;
  z-index: 2;
}
.button-2::after {
  content: "";
  display: block;
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -1px;
  background: url("../images/arrow.svg") center no-repeat;
  background-size: cover;
  width: 10px;
  height: 4px;
  transform: rotate(180deg);
  transition: 0.3s;
}
.button-2.open::after {
  transform: rotate(0);
}

@media (max-width: 1400px) {
  .logo {
    text-align: center;
    margin-top: 32px;
  }

  .center {
    text-align: center;
    color: #ffffff;
    padding: 30px 30px 19vh;
  }

  .brands {
    margin-bottom: 40px;
  }

  .bonus__1 {
    font-size: 32px;
    line-height: 1.25;
    margin-top: 16px;
  }
  .bonus__2 {
    font-size: 48px;
    line-height: 0.83;
  }

  .get-code {
    margin-top: 8vh;
  }
  .get-code__2 {
    margin-top: 24px;
  }
  .get-code__3 {
    margin-top: 24px;
    padding-top: 16px;
  }

  .popup__terms {
    width: 670px;
  }

  .star-1 {
    width: 300px;
    height: 300px;
    transform: translate(-580px, -364px);
  }

  .star-2 {
    width: 150px;
    height: 150px;
    transform: translate(340px, -450px);
    animation: spring 4.5s infinite;
  }

  .watermelon {
    width: 200px;
    height: 200px;
    transform: translate(-438px, -15px);
  }

  .diamond {
    width: 300px;
    height: 300px;
    transform: translate(252px, -233px);
  }
}
@media (max-width: 1025px) {
  .popup__terms {
    width: 768px;
  }

  .get-code__3 {
    margin-top: 16px;
    padding-top: 16px;
  }

  .brands {
    margin-bottom: 40px;
  }
  .brands__item img {
    max-width: 168px;
    height: 37px;
  }

  .center {
    text-align: center;
    color: #ffffff;
    padding: 30px 30px 14vh;
  }

  .bonus__2 {
    font-size: 40px;
  }

  .star-1 {
    width: 240px;
    height: 240px;
    transform: translate(-442px, -290px);
  }

  .star-2 {
    width: 100px;
    height: 100px;
    transform: translate(270px, -280px);
    animation: spring 4.5s infinite;
  }

  .watermelon {
    width: 150px;
    height: 150px;
    transform: translate(-331px, 30px);
  }

  .diamond {
    width: 240px;
    height: 240px;
    transform: translate(190px, -143px);
  }
}
@media (min-width: 769px) {
  .diamond-img {
    display: none;
  }
}
@media (min-width: 768px) {
  .bonus__2 br {
    display: none;
  }
}
@media (max-width: 767px) {
  .wrapper {
    background-position: center top;
    background-size: auto;
  }

  .diamond-img {
    background: url("../images/diamond-2x.png") center no-repeat;
    background-size: cover;
    width: 160px;
    height: 160px;
    margin: 0 auto -25px;
  }

  .brands {
    margin-bottom: 25px;
  }

  .brands__col {
    padding: 0 15px;
  }

  .brands__item img {
    max-width: 134px;
    height: 22px;
  }

  .bonus__1 {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 4px;
  }

  .bonus__2 {
    font-size: 28px;
    line-height: 1.14;
  }

  .get-code__1__2 span {
    padding: 3px 16px;
  }
  .get-code__1__2 span:hover {
    background-color: rgba(255, 255, 255, 0.24);
  }
  .get-code__1__2 span.active {
    background-color: rgba(37, 170, 214, 0.24) !important;
  }

  .get-code {
    margin-top: 40px;
  }

  .get-code__2 {
    margin-top: 18px;
  }

  .get-code__3 {
    margin-top: 20px;
    padding-top: 8px;
  }

  .center {
    text-align: center;
    color: #ffffff;
    padding: 34px 30px 36px;
  }

  .popup__terms {
    width: 100%;
    position: relative;
    top: 8px;
    padding-top: 16px;
  }

  .logo {
    margin-top: 18px;
  }

  .button-2 {
    font-size: 15px;
  }
}
@media (max-width: 330px) {
  .get-code__1__1,
  .get-code__1__2 span {
    font-size: 17px;
  }
}
