@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%;
}

.frog {
  position: absolute;
  background: url("../images/frog.png") center no-repeat;
  background-size: cover;
  width: 775px;
  height: 621px;
  bottom: 0;
  left: 50%;
  transform: translateX(200px);
  z-index: 1;
}

.q_low {
  position: absolute;
  background: url("../images/q_low.png") center no-repeat;
  background-size: cover;
  width: 341px;
  height: 371px;
  top: 50%;
  left: 50%;
  transform: translate(-800px, -450px);
  z-index: 1;
  animation: spring 2.5s infinite;
}

.microphone {
  position: absolute;
  background: url("../images/microphone.png") center no-repeat;
  background-size: cover;
  width: 495px;
  height: 496px;
  top: 50%;
  left: 50%;
  transform: translate(-700px, -130px);
  z-index: 1;
  animation: spring 3.5s infinite;
}

.guitar {
  position: absolute;
  background: url("../images/guitar.png") center no-repeat;
  background-size: cover;
  width: 397px;
  height: 400px;
  top: 50%;
  left: 50%;
  transform: translate(350px, -420px);
  z-index: 1;
  animation: spring 4.5s infinite;
}

.container {
  position: relative;
  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: 60px;
}
.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;
  transform: translate(0px, -5vh);
  position: relative;
  z-index: 1;
}

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

.get-code {
  margin-top: 17vh;
}
.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: #25aad6;
  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: #57a205;
}
.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: 16px;
}
.get-code__3 {
  margin-top: 16px;
  padding-top: 16px;
  position: relative;
}

.popup__terms {
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.67;
  text-align: center;
  color: #ffffff;
  background: #57a205;
  width: 456px;
  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: 1440px) {
  .logo {
    text-align: center;
    margin-top: 32px;
  }

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

  .brands {
    margin-bottom: 40px;
  }

  .bonus__1 {
    font-size: 24px;
    line-height: 1.25;
  }
  .bonus__2 {
    font-size: 40px;
  }

  .get-code {
    margin-top: 10vh;
  }

  .popup__terms {
    width: 800px;
  }

  .frog {
    width: 542px;
    height: 434px;
    transform: translateX(138px);
  }

  .q_low {
    width: 190px;
    height: 207px;
    transform: translate(-550px, -285px);
  }

  .microphone {
    width: 276px;
    height: 277px;
    transform: translate(-434px, -80px);
  }

  .guitar {
    width: 238px;
    height: 240px;
    transform: translate(325px, -280px);
  }
}
@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;
  }

  .bonus__2 {
    font-size: 40px;
  }
}
@media (min-width: 769px) {
  .car-img {
    display: none;
  }
}
@media (min-width: 768px) {
  .bonus__2 br {
    display: none;
  }
}
@media (max-width: 767px) {
  .wrapper {
    background-image: url("../images/bg_mob.jpg");
    background-position: center top;
  }

  .car-img {
    background: url("../images/car.png") center no-repeat;
    background-size: cover;
    width: 244px;
    height: 230px;
    margin: -18px auto -25px;
  }

  .brands {
    margin-bottom: 25px;
  }

  .brands__col {
    padding: 0 15px;
  }

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

  .bonus {
    display: flex;
    flex-wrap: wrap;
  }

  .bonus__1 {
    font-size: 18px;
    line-height: 1.4;
    margin-top: 4px;
    width: 100%;
    order: 1;
  }

  .bonus__2 {
    font-size: 28px;
    line-height: 1.14;
    margin-top: 8px;
    width: 100%;
    order: 2;
  }

  .get-code__1__2 span {
    padding: 3px 16px;
    font-size: 18px;
  }
  .get-code__1__2 span:hover {
    background-color: #57a205;
  }
  .get-code__1__2 span.active {
    background-color: #57a205 !important;
  }

  .get-code__1__1 {
    color: #25aad6;
    font-size: 18px;
  }

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

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

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

  .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;
  }

  .center {
    transform: none;
  }

  .frog,
  .q_low,
  .microphone,
  .guitar {
    display: none;
  }
}
@media (max-width: 345px) {
  .get-code__1__1,
  .get-code__1__2 span {
    font-size: 16px;
  }
}
