@import "reset.css";
@import "fonts.css";
@import url("https://fonts.googleapis.com/css2?family=Pacifico&display=swap");

.placeholder::-webkit-input-placeholder {
  color: #a5a5a5;
}

.placeholder::-moz-placeholder {
  color: #a5a5a5;
}

.placeholder:-moz-placeholder {
  color: #a5a5a5;
}

.placeholder:-ms-input-placeholder {
  color: #a5a5a5;
}

.placeholder:focus::-webkit-input-placeholder {
  color: transparent;
}

.placeholder:focus::-moz-placeholder {
  color: transparent;
}

.placeholder:focus:-moz-placeholder {
  color: transparent;
}

.placeholder:focus:-ms-input-placeholder {
  color: transparent;
}

.placeholder:focus {
  outline: none;
}

:focus {
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
}

b, strong {
  font-weight: 700;
}

html.success {
  font-size: calc(100vmax / 1500 * 100);
}

body {
  width: 100%;
  padding: 0;
  margin: 0;
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 150%;
  color: #fff;
  background: url("../img/bg.png") 50% 50% no-repeat #28124c;
  -o-background-size: cover;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  background-size: cover;
}

button,
textarea,
input {
  font-family: 'Montserrat', Arial, Helvetica, sans-serif;
}

.page {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.container {
  width: 980px;
  height: 100%;
  padding: 30px 20px;
  margin: 0 auto;
}

h2.title {
  font-size: 30px;
  font-weight: 800;
  line-height: 120%;
  letter-spacing: .65px;
  text-align: center;
  margin-bottom: 30px;
}

h2.title span {
  color: #fffc00;
}

.prize-photo__image {
  display: block;
  margin: 0 auto 15px;
}

.prize-photo__image--pc {
  height: 270px;
}

.prize-photo__image--tablet,
.prize-photo__image--mobile {
  display: none;
}

h3.title {
  font-size: 20px;
  font-weight: 700;
  line-height: 120%;
  letter-spacing: .4px;
  text-align: center;
  margin-bottom: 20px;
}

.steps {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  margin-bottom: 25px;
}

.steps__item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: .35px;
}

.steps__item:not(:last-child):after {
  content: '';
  display: block;
  background: url("../img/arrow-right.png") 0 0 no-repeat;
  width: 44px;
  height: 29px;
  margin: 0 40px;
}

.steps__item--active {
  font-weight: 600;
  color: #d8bbff;
}

.yellow-color {
  color: #fffc00;
}

.form {
  padding: 0 30px;
}

.form__item,
.form__item--show {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  opacity: 1;
  -webkit-transition: opacity .5s ease-in-out;
  -o-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;
}

.form__item--hidden {
  opacity: 0;
  height: 0;
  visibility: hidden;
}

.form__input {
  -webkit-box-flex: 1;
  -ms-flex-positive: 1;
  flex-grow: 1;
  display: block;
  height: 56px;
  font-size: 17px;
  color: #000;
  background: #fff;
  border: none;
  text-align: center;
  padding: 0 20px;
  margin-right: 20px;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;

}

.form__input.error {
  -moz-box-shadow: 0 0 0 3px red;
  -webkit-box-shadow: 0 0 0 3px red;
  box-shadow: 0 0 0 3px red;
}

.form__button {
  display: block;
  background: #fffc00;
  border: none;
  min-width: 260px;
  height: 56px;
  line-height: 56px;
  font-weight: 600;
  font-size: 19px;
  color: #401753;
  padding: 0 35px;
  cursor: pointer;
  text-align: center;
  -moz-border-radius: 20px;
  -webkit-border-radius: 20px;
  border-radius: 20px;
  -webkit-transition: background-color .2s ease;
  -o-transition: background-color .2s ease;
  transition: background-color .2s ease;
}

.form__button:hover {
  background: #ede900;
}

.alert-attention {
  width: 100%;
  font-size: 17px;
  padding: 15px;
  margin-top: 20px;
  text-align: center;
  background: url("../img/attention.svg") 30px 50% no-repeat, url("../img/attention.svg") calc(100% - 30px) 50% no-repeat rgba(119, 136, 153, .2);
  -o-background-size: 40px;
  -webkit-background-size: 40px;
  -moz-background-size: 40px;
  background-size: 40px;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
}

/*   popup   */

.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #e2aa01;
  z-index: 99;
}

.popup__container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: 100%;
}

.popup__content {
  max-width: 750px;
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

.popup__title {
  font-family: "Pacifico", sans-serif;
  font-size: 70px;
  letter-spacing: 2px;
  line-height: 100%;
  color: #fff;
  text-shadow: 6px 4px #735b13;
  margin-bottom: 60px;
}

.popup__text {
  font-size: 20px;
  line-height: 150%;
  color: #111;
}

.popup__text strong {
  font-size: 24px;
  color: #3d2e00;
}

.popup__text p:not(:last-child) {
  margin-bottom: 15px;
}

[class^=firework-] {
  position: absolute;
  width: 0.1rem;
  height: 0.1rem;
  -moz-border-radius: 50%;
  -webkit-border-radius: 50%;
  border-radius: 50%;
}

.firework-1 {
  -webkit-animation: firework-lg 1.2s both infinite;
  animation: firework-lg 1.2s both infinite;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  top: 55%;
  left: 70%;
}

.firework-2 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 0.9s;
  animation-delay: 0.9s;
  top: 50%;
  left: 20%;
}

.firework-3 {
  -webkit-animation: firework-lg 1.2s both infinite;
  animation: firework-lg 1.2s both infinite;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  top: 70%;
  left: 80%;
}

.firework-4 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
  top: 20%;
  left: 15%;
}

.firework-5 {
  -webkit-animation: firework-sm 1.2s both infinite;
  animation: firework-sm 1.2s both infinite;
  -webkit-animation-delay: 0.2s;
  animation-delay: 0.2s;
  top: 60%;
  left: 85%;
}

.firework-6 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 0.9s;
  animation-delay: 0.9s;
  top: 20%;
  left: 25%;
}

.firework-7 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  top: 70%;
  left: 20%;
}

.firework-8 {
  -webkit-animation: firework-lg 1.2s both infinite;
  animation: firework-lg 1.2s both infinite;
  -webkit-animation-delay: 1.4s;
  animation-delay: 1.4s;
  top: 15%;
  left: 25%;
}

.firework-9 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 0.6s;
  animation-delay: 0.6s;
  top: 25%;
  left: 15%;
}

.firework-10 {
  -webkit-animation: firework-sm 1.2s both infinite;
  animation: firework-sm 1.2s both infinite;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  top: 45%;
  left: 25%;
}

.firework-11 {
  -webkit-animation: firework-sm 1.2s both infinite;
  animation: firework-sm 1.2s both infinite;
  -webkit-animation-delay: 0.8s;
  animation-delay: 0.8s;
  top: 45%;
  left: 20%;
}

.firework-12 {
  -webkit-animation: firework-lg 1.2s both infinite;
  animation: firework-lg 1.2s both infinite;
  -webkit-animation-delay: 1.4s;
  animation-delay: 1.4s;
  top: 90%;
  left: 70%;
}

.firework-13 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 0.3s;
  animation-delay: 0.3s;
  top: 90%;
  left: 25%;
}

.firework-14 {
  -webkit-animation: firework-sm 1.2s both infinite;
  animation: firework-sm 1.2s both infinite;
  -webkit-animation-delay: 1s;
  animation-delay: 1s;
  top: 80%;
  left: 55%;
}

.firework-15 {
  -webkit-animation: firework-md 1.2s both infinite;
  animation: firework-md 1.2s both infinite;
  -webkit-animation-delay: 1.5s;
  animation-delay: 1.5s;
  top: 25%;
  left: 25%;
}

@-webkit-keyframes firework-sm {
  0%, 100% {
    opacity: 0;
  }
  10%, 70% {
    opacity: 1;
  }
  100% {
    box-shadow: -0.5rem 0rem 0 #fff, 0.5rem 0rem 0 #fff, 0rem -0.5rem 0 #fff, 0rem 0.5rem 0 #fff, 0.35rem -0.35rem 0 #fff, 0.35rem 0.35rem 0 #fff, -0.35rem -0.35rem 0 #fff, -0.35rem 0.35rem 0 #fff;
  }
}

@keyframes firework-sm {
  0%, 100% {
    opacity: 0;
  }
  10%, 70% {
    opacity: 1;
  }
  100% {
    box-shadow: -0.5rem 0rem 0 #fff, 0.5rem 0rem 0 #fff, 0rem -0.5rem 0 #fff, 0rem 0.5rem 0 #fff, 0.35rem -0.35rem 0 #fff, 0.35rem 0.35rem 0 #fff, -0.35rem -0.35rem 0 #fff, -0.35rem 0.35rem 0 #fff;
  }
}
@-webkit-keyframes firework-md {
  0%, 100% {
    opacity: 0;
  }
  10%, 70% {
    opacity: 1;
  }
  100% {
    box-shadow: -0.7rem 0rem 0 #fff, 0.7rem 0rem 0 #fff, 0rem -0.7rem 0 #fff, 0rem 0.7rem 0 #fff, 0.49rem -0.49rem 0 #fff, 0.49rem 0.49rem 0 #fff, -0.49rem -0.49rem 0 #fff, -0.49rem 0.49rem 0 #fff;
  }
}
@keyframes firework-md {
  0%, 100% {
    opacity: 0;
  }
  10%, 70% {
    opacity: 1;
  }
  100% {
    box-shadow: -0.7rem 0rem 0 #fff, 0.7rem 0rem 0 #fff, 0rem -0.7rem 0 #fff, 0rem 0.7rem 0 #fff, 0.49rem -0.49rem 0 #fff, 0.49rem 0.49rem 0 #fff, -0.49rem -0.49rem 0 #fff, -0.49rem 0.49rem 0 #fff;
  }
}
@-webkit-keyframes firework-lg {
  0%, 100% {
    opacity: 0;
  }
  10%, 70% {
    opacity: 1;
  }
  100% {
    box-shadow: -0.9rem 0rem 0 #fff, 0.9rem 0rem 0 #fff, 0rem -0.9rem 0 #fff, 0rem 0.9rem 0 #fff, 0.63rem -0.63rem 0 #fff, 0.63rem 0.63rem 0 #fff, -0.63rem -0.63rem 0 #fff, -0.63rem 0.63rem 0 #fff;
  }
}
@keyframes firework-lg {
  0%, 100% {
    opacity: 0;
  }
  10%, 70% {
    opacity: 1;
  }
  100% {
    box-shadow: -0.9rem 0rem 0 #fff, 0.9rem 0rem 0 #fff, 0rem -0.9rem 0 #fff, 0rem 0.9rem 0 #fff, 0.63rem -0.63rem 0 #fff, 0.63rem 0.63rem 0 #fff, -0.63rem -0.63rem 0 #fff, -0.63rem 0.63rem 0 #fff;
  }
}

@media screen and (max-width: 979px) {

  body {
    background-image: url("../img/bg-tablet.png");
  }

  .container {
    width: 660px;
  }

  h2.title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  h3.title {
    font-size: 19px;
    margin-bottom: 15px;
  }

  .prize-photo__image--pc {
    display: none;
  }

  .prize-photo__image--tablet {
    display: block;
    height: 270px;
  }

  .steps {
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-bottom: 20px;
  }

  .steps__item {
    font-size: 17px;
  }

  .steps__item:not(:last-child):after {
    display: none;
  }

  .form {
    padding: 0;
  }

  .form__button {
    font-size: 19px;
  }

  .popup__title {
    font-size: 60px;
    letter-spacing: 1px;
  }

  .popup__text {
    line-height: 130%;
  }

  .popup__text strong {
    font-size: 22px;
  }

  .alert-attention {
    background: url(../img/attention.svg) 20px 50% no-repeat rgba(119, 136, 153, .2);
    -o-background-size: 36px;
    -webkit-background-size: 36px;
    -moz-background-size: 36px;
    background-size: 36px;
    text-align: left;
    padding: 15px 15px 15px 70px;
    line-height: 130%;
    font-size: 16px;
  }

}

@media screen and (max-width: 659px) {

  body {
    background-image: url("../img/bg-mobile.png");
  }

  .container {
    width: 320px;
    padding: 20px 15px;
  }

  h2.title {
    font-size: 19px;
    font-weight: 700;
  }

  h3.title {
    font-size: 17px;
    line-height: 130%;
    padding: 0 30px;
    margin-bottom: 15px;
  }

  .prize-photo {
    margin-bottom: 10px;
  }

  .prize-photo__image--tablet {
    display: none;
  }

  .prize-photo__image--mobile {
    display: block;
    height: 150px;
    margin-bottom: 0;
  }

  .steps {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-bottom: 20px;
  }

  .steps__item {
    font-size: 15px;
    line-height: 1em;
    margin-bottom: 10px;
  }

  .steps__item:last-child {
    margin-bottom: 0;
  }

  .form__item {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .form__input {
    font-size: 16px;
    height: 50px;
    margin-right: 0;
    margin-bottom: 10px;
    -moz-border-radius: 25px;
    -webkit-border-radius: 25px;
    border-radius: 25px;
  }

  .form__button {
    font-size: 17px;
    height: 50px;
    line-height: 50px;
    -moz-border-radius: 25px;
    -webkit-border-radius: 25px;
    border-radius: 25px;
  }

  .popup__content {
    max-width: 320px;
    padding: 20px 15px;
  }

  .popup__title {
    font-size: 36px;
    letter-spacing: 0;
    text-shadow: 2px 3px #735b13;
    margin-bottom: 40px;
  }

  .popup__text {
    line-height: 140%;
    font-size: 17px;
  }

  .popup__text strong {
    font-size: 20px;
    line-height: 120%;
  }

  .alert-attention {
    position: relative;
    background: rgba(119, 136, 153, .2);
    text-align: center;
    padding: 30px 15px 20px;
    margin-top: 30px;
    line-height: 140%;
    font-size: 15px;
  }

  .alert-attention:before {
    position: absolute;
    left: calc(50% - 20px);
    top: -20px;
    display: block;
    width: 40px;
    height: 40px;
    background: url("../img/attention.svg") 50% 50% no-repeat #1b0833;
    background-size: 20px;
    border-radius: 50%;
    content: '';
  }

  .alert-attention p:not(:last-child) {
    margin-bottom: 10px;
  }

}