.am1 {
  position: relative;
  max-width: 100%;
  height: 100dvh;
  display: flex;
  background-image: url(../img/am2/bg_mobile.jpg);
  background-repeat: repeat;
  animation: bgScroll 35s linear infinite;
}

.wrapper_block {
  width: 100%;
  display: flex;
  justify-content: center;
  margin: auto;
}

.active {
  display: flex !important;
}

.btn_global.animated {
  animation: 1s linear infinite alternate pulse;
}

.btn_global {
  width: 85%;
  height: 50px;
  margin: 24px auto;
  color: #fff;
  font-family: "Manrope";
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.18px;
  border-radius: 40px;
  background: #754de0;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  cursor: pointer;
}

.next_btn {
  margin: 24px 0 0 0;
  width: 100%;
  height: 56px;
}

.block_quiz_am {
  display: none;
  width: 297px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 16px 24px 16px;
  border-radius: 16px;
  background: #fff;
}
.block_quiz_am .title_end {
  color: rgba(13, 10, 22, 0.8);
  font-family: "Manrope";
  font-size: 16px;
  font-weight: 400;
  margin-top: 16px;
}
.block_quiz_am .text_btn {
  display: flex;
  flex-direction: column;
}
.block_quiz_am .photos {
  border-radius: 8px;
  width: 296px;
  height: 266px;
  background-size: cover;
  background-image: url(../img/am2/main.jpg);
}
.block_quiz_am p {
  color: #0d0a16;
  font-family: "Manrope";
  font-size: 22px;
  font-style: normal;
  font-weight: 700;
  line-height: 132%;
}

.quiz_am {
  display: none;
  flex-direction: column;
  padding: 16px;
  width: 85%;
  border-radius: 16px;
  background: #fff;
}
.quiz_am span {
  color: rgba(13, 10, 22, 0.4);
}
.quiz_am .question_title p {
  color: #0d0a16;
  font-family: "Manrope";
  font-size: 20px;
  font-weight: 700;
  margin: 16px 0 14px 0;
}
.quiz_am .question_choose {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}
.quiz_am .question_choose .custom_checkbox {
  display: flex;
  align-items: center;
  width: 84%;
  border-radius: 40px;
  border: 1px solid rgba(13, 10, 22, 0.16);
  background: rgba(13, 10, 22, 0.02);
  padding: 16px 24px;
  cursor: pointer;
  margin: 8px 0 8px 0;
}
.quiz_am .question_choose .custom_checkbox:hover {
  border: 1px solid rgba(117, 77, 224, 0.4);
  background: rgba(117, 77, 224, 0.08);
}
.quiz_am .question_choose .custom_checkbox:focus {
  border: 1px solid rgba(117, 77, 224, 0.4);
  background: rgba(117, 77, 224, 0.08);
}
.quiz_am .question_choose .custom_checkbox p {
  color: #0d0a16;
  font-family: "Manrope";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 26px;
}
.quiz_am .question_choose .custom_checkbox.selected {
  border: 1px solid rgba(117, 77, 224, 0.4);
  background: rgba(117, 77, 224, 0.08);
}

.br_mobile {
  display: block;
}

.br_dekstop {
  display: none;
}

.footer_am1 {
  padding: 16px;
  background-color: white;
  display: flex;
  gap: 12px;
  flex-direction: column-reverse;
  align-items: center;
  justify-content: space-around;
}
.footer_am1 p {
  color: rgba(13, 10, 22, 0.6);
  text-align: center;
  font-family: "Manrope";
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}
.footer_am1 .links {
  gap: 24px;
  display: flex;
}
.footer_am1 .links a {
  color: #0d0a16;
  font-family: "Manrope";
  font-size: 16px;
  text-decoration: none;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}
.footer_am1 .links a:hover {
  text-decoration: underline;
}

@media (min-width: 600px) {
  .am1 {
    animation: bgScroll 30s linear infinite;
    background-repeat: repeat;
    background-image: url(../img/am2/bg_tablet.jpg) !important;
  }
  .next_btn {
    width: 225px !important;
    height: 58px !important;
  }
  .block_quiz_am {
    width: 625px;
    height: 360px;
    padding: 16px 32px 16px 16px;
    display: none;
    justify-content: left;
    flex-direction: row;
  }
  .block_quiz_am .photos {
    width: 304px;
    height: 358px;
    margin-right: 32px;
  }
  .block_quiz_am .text_btn {
    width: 51%;
  }
  .block_quiz_am p {
    font-family: "Manrope";
    font-size: 28px;
    font-weight: 700;
    line-height: 130%;
  }
  .block_quiz_am button {
    width: 225px;
    height: 55px;
    margin: 40px 0px;
    font-size: 22px;
  }
  .block_quiz_am button:hover {
    background-color: #5c33c6;
  }
  .block_quiz_am #end_btn_am1 {
    width: 280px;
    height: 55px;
  }
  .wrapper_block .quiz_am {
    width: 450px;
    padding: 32px;
  }
  .wrapper_block .quiz_am .question_choose .custom_checkbox {
    width: 400px;
    height: 24px;
  }
  .footer_am1 {
    flex-direction: row !important;
    width: 100%;
    height: 54px;
  }
  .br_mobile {
    display: none;
  }
  .br_dekstop {
    display: block;
  }
}
@media (min-width: 1100px) {
  .am1 {
    animation: bgScroll 30s linear infinite;
    background-repeat: repeat;
    background-image: url(../img/am2/bg_desktop.jpg) !important;
  }
  #end_btn_am1 {
    width: 330px !important;
    height: 55px;
  }
  .footer_am1 {
    flex-direction: row !important;
    width: 100%;
    height: 54px;
  }
  .block_quiz_am {
    width: 730px;
    height: 405px;
    padding: 16px 32px 16px 16px;
    display: none;
    justify-content: left;
    flex-direction: row;
  }
  .block_quiz_am .text_btn {
    width: 50%;
  }
  .block_quiz_am .photos {
    width: 340px;
    height: 405px;
    margin-right: 30px;
  }
  .block_quiz_am p {
    font-family: "Manrope";
    font-size: 32px;
    font-weight: 700;
    line-height: 130%;
  }
  .block_quiz_am button {
    width: 225px !important;
    height: 55px;
    margin-top: 40px;
    font-size: 22px;
  }
  .block_quiz_am button:hover {
    background-color: #5c33c6;
  }
  .wrapper_block .quiz_am {
    width: 450px;
    padding: 32px;
  }
  .wrapper_block .quiz_am .question_choose .custom_checkbox {
    width: 400px;
    height: 24px;
  }
  .wrapper_block .quiz_am .question_choose .custom_checkbox p {
    font-size: 18px;
  }
  .wrapper_block .quiz_am .question_title p {
    font-size: 28px;
  }
  .br_mobile {
    display: none;
  }
  .br_dekstop {
    display: block;
  }
}
@keyframes pulse {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}
@keyframes bgScroll {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -2000px 0;
  }
}