:root {
  --primary-color: #f73535;
  --primary-color-dark: #a50e0e;
  --primary-color-light: #ff9c9c;
  --secondary-color: #fff;
  --space-size-lg: 160px;
  --space-size-md: 80px;
  --space-size-sm: 40px;
  --space-size-xs: 20px;
}

*,
:after,
:before {
  margin: 0;
  padding: 0;
  outline: 0;
  border: 0;
  text-decoration: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: none;
  -webkit-font-variant-ligatures: none;
  font-variant-ligatures: none;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
  font-style: normal;
  color: var(--secondary-color);
  background: var(--primary-color);
}

img {
  display: block;
}

b {
  font-weight: 700;
}

input::-webkit-input-placeholder {
  color: var(--secondary-color);
  opacity: 1;
}

input::-moz-placeholder {
  color: var(--secondary-color);
  opacity: 1;
}

input:-ms-input-placeholder {
  color: var(--secondary-color);
  opacity: 1;
}

input::-ms-input-placeholder {
  color: var(--secondary-color);
  opacity: 1;
}

input::placeholder {
  color: var(--secondary-color);
  opacity: 1;
}

input:focus::-webkit-input-placeholder {
  color: rgba(255, 255, 255, 0);
}

input:focus::-moz-placeholder {
  color: rgba(255, 255, 255, 0);
}

input:focus:-ms-input-placeholder {
  color: rgba(255, 255, 255, 0);
}

input:focus::-ms-input-placeholder {
  color: rgba(255, 255, 255, 0);
}

input:focus::placeholder {
  color: rgba(255, 255, 255, 0);
}

.main {
  width: 100%;
  background-color: var(--primary-color);
  background-image: url(../images/background.png?v=0);
  background-position: top center;
  background-repeat: repeat-y;
  background-size: 100%;
  position: relative;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
  overflow: hidden;
}

.main.visible {
  opacity: 1;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.title {
  margin: 0 0 var(--space-size-sm) 0;
  font-family: 'Bebas Neue Pro', Arial, sans-serif;
  font-size: 148px;
  line-height: 1;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  text-align: center;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

.text {
  font-size: 28px;
  line-height: 38px;
}

.text.md {
  font-size: 18px;
  line-height: 24px;
}

.text p {
  margin: 0 0 var(--space-size-xs) 0;
}

.text p:last-child {
  margin: 0;
}

.question {
  margin: 0 0 var(--space-size-md) 0;
  font-family: 'Bebas Neue Pro', Arial, sans-serif;
  font-size: 78px;
  line-height: 82px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
}

.button,
.answer {
  min-width: 300px;
  height: 70px;
  padding: 0 var(--space-size-sm);
  border-radius: 6px;
  background-color: var(--secondary-color);
  color: var(--primary-color);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  cursor: pointer;
}

.answer {
  background-color: var(--primary-color-dark);
  -webkit-transition: background-color 0.3s;
  -o-transition: background-color 0.3s;
  transition: background-color 0.3s;
}

.answer.checked {
  background-color: var(--primary-color-light);
}

.button-text,
.answer-text {
  padding: 0 0 4px 0;
  text-align: center;
}

.button-text {
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.answer-text {
  font-weight: 600;
  color: var(--secondary-color);
}

/***** Header *****/
.header {
  width: 100%;
  height: 100vh;
  padding: var(--space-size-md);
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

@supports (height: 100svh) {
  .header {
    height: 100svh;
  }
}

.header>.image {
  width: 100%;
  height: calc(100% - 20px);
  position: absolute;
  top: 0;
  left: 0;
  background-image: url(../images/image.jpg?v=0);
  background-position: top -60px center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-mask-image: url(../images/mask.svg);
  mask-image: url(../images/mask.svg);
  -webkit-mask-position: center bottom;
  mask-position: center bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 3840px;
  mask-size: 3840px;
  pointer-events: none;
  z-index: 1;
}

.header>.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
  z-index: 2;
}

.header>.logo {
  width: 250px;
  z-index: 2;
}

.arrow {
  width: 50px;
  height: 50px;
  border-radius: 50px;
  background-color: var(--secondary-color);
  background-image: url(../images/arrow.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 24px;
  position: relative;
  z-index: 2;
  -webkit-animation: bounce 2s infinite;
  animation: bounce 2s infinite;
  cursor: pointer;
}

/***** Background *****/
.border {
  width: 100%;
  position: relative;
  bottom: -2px;
}

.border img {
  width: 100%;
}

/***** Content *****/
.content {
  width: 100%;
  padding: 0 var(--space-size-md) var(--space-size-lg) var(--space-size-md);
  background-color: var(--secondary-color);
  color: var(--primary-color);
  position: relative;
}

.content>.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.content>.container>.logo {
  width: 100%;
  max-width: 425px;
  margin: 0 0 var(--space-size-sm) 0;
}

.content>.container>.text {
  text-align: center;
}

/***** Answers *****/
.answers {
  width: 100%;
  gap: var(--space-size-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.answers-content {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.answers-text {
  margin: 0 0 var(--space-size-lg) 0;
  text-align: center;
}

/***** Form *****/
.form {
  width: 100%;
  min-height: 300px;
  padding: var(--space-size-md);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
}

.form>.container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -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;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.form>.container:nth-child(1) {
  margin: 0 0 var(--space-size-lg) 0;
}

.form-fields,
.form-terms {
  width: 100%;
  gap: var(--space-size-sm);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.form-fields {
  margin: 0 0 var(--space-size-sm) 0;
}

.form-terms {
  margin: 0 0 var(--space-size-md) 0;
}

.form-field,
.form-term {
  width: 100%;
}

.form-term {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.form-term:nth-child(1) {
  -webkit-box-pack: end;
  -ms-flex-pack: end;
  justify-content: flex-end;
}

.form-field input {
  width: 100%;
  height: 70px;
  padding: 0 var(--space-size-sm) 4px var(--space-size-sm);
  background: rgba(255, 255, 255, 0);
  border: 3px solid var(--secondary-color);
  border-radius: 6px;
  font-family: 'Montserrat', Arial, sans-serif;
  font-weight: 600;
  color: var(--secondary-color);
}

.form-field:last-child,
.form-term:last-child {
  margin: 0;
}

.form-term-checkbox {
  width: 40px;
  height: 40px;
  margin: 0 40px 0 0;
  background: rgba(255, 255, 255, 0);
  border: 3px solid var(--secondary-color);
  border-radius: 6px;
  -ms-flex-negative: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.form-term-checkbox.checked {
  background-image: url(../images/check.svg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
}

.form-term-text {
  font-weight: 500;
}

.form-countdown {
  margin: var(--space-size-sm) 0 0 0;
  opacity: 0;
  -webkit-transition: opacity 0.3s;
  -o-transition: opacity 0.3s;
  transition: opacity 0.3s;
}

.form-countdown.visible {
  opacity: 1;
}

.form-countdown,
.form-countdown-time {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
}

.form-countdown-divider {
  width: 1px;
  height: 18px;
  margin: 0 5px;
  background: var(--secondary-color);
}

.form-countdown-text,
.form-countdown-number {
  padding: 0 5px;
  font-weight: 500;
  -ms-flex-negative: 0;
  flex-shrink: 0;
}

.form-countdown-number>span {
  min-width: 24px;
  display: inline-block;
  text-align: center;
}

/***** Success *****/
.success {
  width: 100%;
}

.success-text {
  width: 100%;
  font-weight: 700;
  text-align: center;
}

/***** Footer *****/
.footer {
  width: 100%;
  background: #e9e9ea;
  padding: var(--space-size-sm);
}

.footer-text {
  width: 100%;
  font-size: 12px;
  color: #a9a9ae;
  text-transform: uppercase;
  text-align: center;
}

/***** Media *****/
@media only screen and (max-height: 1080px) {
  .header>.image {
    height: calc(100% - (-70px));
  }

  .arrow {
    position: absolute;
    bottom: var(--space-size-md);
    left: var(--space-size-md);
  }

  .title {
    margin: 0;
  }
}

@media only screen and (max-width: 1920px) {
  :root {
    --space-size-lg: 120px;
    --space-size-md: 60px;
  }

  .main {
    background-size: 1920px;
  }
}

@media only screen and (max-width: 1440px) {
  .header>.logo {
    width: 200px;
  }

  .header>.image {
    height: calc(100% - (-105px));
    background-position: top -30px center;
  }

  .title {
    font-size: 128px;
  }

  .question {
    font-size: 68px;
    line-height: 72px;
  }

  .content>.container>.logo {
    max-width: 400px;
  }
}

@media only screen and (max-width: 1366px) {
  :root {
    --space-size-lg: 80px;
    --space-size-md: 40px;
  }

  .container {
    max-width: 1000px;
  }

  .header>.logo {
    width: 180px;
  }

  .header>.image {
    height: calc(100% - (-165px));
  }

  .button,
  .answer,
  .form-field input {
    height: 60px;
  }

  .title {
    font-size: 108px;
  }

  .question {
    font-size: 48px;
    line-height: 52px;
  }

  .text {
    font-size: 22px;
    line-height: 32px;
  }

  .text.md {
    font-size: 16px;
    line-height: 22px;
  }

  .content>.container>.logo {
    max-width: 320px;
  }

  .form-term-checkbox {
    margin: 0 var(--space-size-xs) 0 0;
  }
}

@media only screen and (max-width: 1200px) {
  .border {
    height: 250px;
  }

  .border>img {
    width: 1200px;
    position: absolute;
    left: 50%;
    bottom: 0;
    -webkit-transform: translateX(-50%);
    -ms-transform: translateX(-50%);
    transform: translateX(-50%);
  }
}

@media only screen and (max-width: 1000px) {
  .header {
    min-height: 1080px;
  }

  .header>.image {
    height: calc(100% - (-75px));
    background-image: url(../images/image-mobile.jpg?v=0);
    background-position: top right;
    /*background-attachment: scroll;*/
  }

  .arrow {
    position: relative;
    bottom: unset;
    left: unset;
  }

  .title {
    margin: 0 0 var(--space-size-sm) 0;
  }
}

@media only screen and (max-width: 820px) {
  .header>.image {
    height: calc(100% - (-95px));
  }

  .header>.logo {
    width: 160px;
  }

  .title {
    font-size: 98px;
  }

  .content>.container>.logo {
    max-width: 280px;
  }
}

@media only screen and (max-width: 768px) {
  .header {
    min-height: 1024px;
  }
}

@media only screen and (max-width: 740px) {
  :root {
    --space-size-sm: 20px;
  }

  .header {
    min-height: 568px;
  }

  .header>.logo {
    width: 120px;
  }

  .header>.image {
    height: calc(100% - (-160px));
  }

  .arrow {
    width: 40px;
    height: 40px;
    background-size: 20px;
  }

  .title {
    font-size: 68px;
    margin: 0 0 var(--space-size-md) 0;
  }

  .question {
    font-size: 38px;
    line-height: 42px;
  }

  .text {
    font-size: 18px;
    line-height: 28px;
  }

  .text.md {
    font-size: 14px;
    line-height: 18px;
  }

  .content>.container>.logo {
    max-width: 240px;
  }

  .answers {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .button,
  .answer {
    min-width: 380px;
  }

  .form-fields,
  .form-terms {
    max-width: 380px;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .form-term:nth-child(1) {
    -webkit-box-pack: start;
    -ms-flex-pack: start;
    justify-content: flex-start;
  }
}

@media only screen and (max-width: 620px) {
  .header {
    max-height: 926px;
  }

  .header>.image {
    background-size: 620px;
  }
}

@media only screen and (max-width: 540px) {
  .header>.logo {
    width: 120px;
  }

  .header {
    padding: var(--space-size-sm) var(--space-size-sm) var(--space-size-md) var(--space-size-sm);
  }

  .form {
    padding: var(--space-size-sm) var(--space-size-sm) 0 var(--space-size-sm);
  }

  .content {
    padding: 0 var(--space-size-sm) var(--space-size-lg) var(--space-size-sm);
  }

  .border {
    height: 200px;
  }

  .border>img {
    width: 935px;
  }
}

@media only screen and (max-width: 500px) {
  .header>.logo {
    width: 110px;
  }

  .header>.image {
    height: calc(100% - (-185px));
  }

  .title {
    font-size: 56px;
  }

  .question {
    font-size: 32px;
    line-height: 38px;
  }
}

@media only screen and (max-width: 420px) {

  .button,
  .answer,
  .form-field input {
    min-width: 100%;
  }
}

@media only screen and (max-width: 410px) {
  .header>.image {
    height: calc(100% - (-200px));
    background-size: 575px;
  }

  .title {
    font-size: 48px;
  }
}

@media only screen and (max-width: 375px) {
  .header {
    max-height: 812px;
    padding: var(--space-size-sm);
  }

  .header>.image {
    height: calc(100% - (-240px));
    background-size: 520px;
  }

  .title {
    margin: 0 0 var(--space-size-sm) 0;
  }

  .form-countdown-text {
    padding: 0 20px;
    margin: 0 0 5px 0;
  }
}

@media only screen and (max-width: 360px) {
  .header {
    max-height: 740px;
  }
}

@media only screen and (max-width: 350px) {
  .header>.image {
    height: calc(100% - (-250px));
    background-size: 480px;
  }

  .title {
    font-size: 42px;
  }
}

@media only screen and (max-height: 480px) {
  .header {
    min-height: 650px;
  }

  .header>.image {
    background-image: url(../images/image.jpg?v=0);
    background-position: top center;
  }
}

/***** Other *****/
.medium {
  font-weight: 500;
}

.semibold {
  font-weight: 600;
}

.bold {
  font-weight: 700;
}

.uppercase {
  text-transform: uppercase;
}

.error {
  border: 3px solid var(--primary-color-dark) !important;
}

.link,
.link:visited {
  color: var(--secondary-color);
  text-decoration: underline;
  cursor: pointer;
}

.link:hover,
.link:active {
  text-decoration: none;
}

@-webkit-keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }

  60% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }

  40% {
    -webkit-transform: translateY(-20px);
    transform: translateY(-20px);
  }

  60% {
    -webkit-transform: translateY(-10px);
    transform: translateY(-10px);
  }
}

.loader {
  width: 50px;
  height: 50px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  -webkit-animation: rotation 1s linear infinite;
  animation: rotation 1s linear infinite;
}

@-webkit-keyframes rotation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes rotation {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }

  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.invisible {
  visibility: hidden;
}

.hidden {
  display: none !important;
}
