$font: 'Montserrat';

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: $font;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(../fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

@font-face {
  font-family: 'FontAwesome';
  src:  url('../fonts/acumatica-font-v1.eot?q9otuf');
  src:  url('../fonts/acumatica-font-v1.eot?q9otuf#iefix') format('embedded-opentype'),
  url('../fonts/acumatica-font-v1.woff2?q9otuf') format('woff2');
  font-weight: normal;
  font-style: normal;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #f9f9f9;
}

$particles: 50;
$width: 800;
$height: 800;
$box-shadow: ();
$box-shadow2: ();
@for $i from 0 through $particles {
  $box-shadow: $box-shadow,
  random($width)-$width / 2 + px
  random($height)-$height / 1.2 + px
  hsl(random(360), 100, 50);
  $box-shadow2: $box-shadow2, 0 0 #fff
}
@mixin keyframes ($animationName) {
  @-webkit-keyframes #{$animationName} {
    @content;
  }

  @-moz-keyframes #{$animationName} {
    @content;
  }

  @-o-keyframes #{$animationName} {
    @content;
  }

  @-ms-keyframes #{$animationName} {
    @content;
  }

  @keyframes #{$animationName} {
    @content;
  }
}

@mixin animation-delay ($settings) {
  -moz-animation-delay: $settings;
  -webkit-animation-delay: $settings;
  -o-animation-delay: $settings;
  -ms-animation-delay: $settings;
  animation-delay: $settings;
}

@mixin animation-duration ($settings) {
  -moz-animation-duration: $settings;
  -webkit-animation-duration: $settings;
  -o-animation-duration: $settings;
  -ms-animation-duration: $settings;
  animation-duration: $settings;
}

@mixin animation ($settings) {
  -moz-animation: $settings;
  -webkit-animation: $settings;
  -o-animation: $settings;
  -ms-animation: $settings;
  animation: $settings;
}

@mixin transform ($settings) {
  transform: $settings;
  -moz-transform: $settings;
  -webkit-transform: $settings;
  -o-transform: $settings;
  -ms-transform: $settings;
}

.pyro {
  display: none;
}


.pyro > .before, .pyro > .after {
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  box-shadow: $box-shadow2;
  @include animation((1s bang ease-out infinite backwards, 1s gravity ease-in infinite backwards, 5s position linear infinite backwards));
}

.pyro > .after {
  @include animation-delay((1.25s, 1.25s, 1.25s));
  @include animation-duration((1.25s, 1.25s, 6.25s));
}

@include keyframes(bang) {
  to {
    box-shadow:$box-shadow;
  }
}

@include keyframes(gravity)  {
  to {
    @include transform(translateY(200px));
    opacity: 0;
  }
}

@include keyframes(position) {
  0%, 19.9% {
    margin-top: 10%;
    margin-left: 40%;
  }
  20%, 39.9% {
    margin-top: 40%;
    margin-left: 30%;
  }
  40%, 59.9% {
    margin-top: 20%;
    margin-left: 70%
  }
  60%, 79.9% {
    margin-top: 30%;
    margin-left: 20%;
  }
  80%, 99.9% {
    margin-top: 30%;
    margin-left: 80%;
  }
}


#shadow-container {
  width: 100%;
  height: 100%;
  padding-top: 50px;
}

#container {
  width: 100%;
  height: 100%;
  display: flex;
}

.robot {
  position: absolute;
  top: -70px;
  right: -160px;
  animation: move-robot 2s ease-in-out 0s;
  animation-iteration-count: infinite;
  z-index: -1;
  width: 250px;
}

.robot-container {
  position: absolute;
  top: -70px;
  right: 50px;
  scale: .6;
  animation: move-robot 3s ease-in-out 0s;
  animation-iteration-count: infinite;
  pointer-events: none;
  &.robot-container-off {
    & .hand {
      position: absolute;
      top: 103px;
      left: -53px;
      display: inline-block;
      transform: rotate(197deg);
      animation: hand-swing-off 4s ease-in-out infinite;
    }
    & .eye {
      transform-origin: center center; /* Точка трансформации */
      animation: eye-blink-off 6s infinite; /* Анимация моргания */
    }
    & .eye-second {
      transform-origin: center center; /* Точка трансформации */
      animation: eye-blink-off 6s infinite; /* Анимация моргания */
    }
    & .mouth {
      position: absolute;
      top: 181px;
      left: 104px;
      transform-origin: center; /* Центр трансформации */
      animation: mouth-talk 1.5s ease-out .3s; /* Однократная анимация */
    }
  }
  &.robot-container-success {
    animation: move-in 1s ease-out forwards, hover 1.5s ease-in-out infinite;
    animation-delay: 0s, 1s; /* Первая анимация начинается сразу, вторая запускается после 2 секунд */
    & .hand {
      animation: hand-swing-success 2s ease-in-out infinite;
    }
    & .hand-front {
      animation: hand-swing-second-success 2s ease-in-out infinite;
    }
  }
  & .hand {
    position: absolute;
    top: 105px;
    left: -70px;
    display: inline-block;
    transform: rotate(-40deg);
    animation: hand-swing 1.5s ease-in-out infinite;
  }
  & .robot-animation {
    position: absolute;
    top: 0;
    left: 0;
  }
  & .eye {
    position: absolute;
    top: 145px;
    left: 65px;
    display: inline-block;
    transform-origin: center center; /* Точка трансформации */
    animation: eye-blink 6s infinite; /* Анимация моргания */
  }
  & .eye-second {
    position: absolute;
    top: 142px;
    left: 135px;
    transform-origin: center center; /* Точка трансформации */
    animation: eye-blink 6s infinite; /* Анимация моргания */
  }
  & .hand-front {
    position: absolute;
    top: 109px;
    left: 65px;
    display: inline-block;
    transform: rotate(-30deg);
    animation: hand-swing-second 4s ease-in-out infinite;
  }
  & .mouth {
    position: absolute;
    top: 181px;
    left: 104px;
    transform-origin: center; /* Центр трансформации */
    animation: mouth-talk 1.5s ease-out 2.5s; /* Однократная анимация */
  }
}

@keyframes mouth-talk {
  0% {
    transform: scale(1, 1); /* Нейтральное положение */
  }
  10% {
    transform: scale(1.2, 0.2); /* Слегка вытянутый по горизонтали */
  }
  20% {
    transform: scale(1, 1); /* Слегка вытянутый по вертикали */
  }
  30% {
    transform: scale(1.2, 0.2); /* Широкое открытие */
  }
  40% {
    transform: scale(1, 1); /* Слегка вытянутый по вертикали */
  }
  50% {
    transform: scale(1.2, 0.6);/* Глубокое вертикальное движение */
  }
  60% {
    transform: scale(1, 1); /* Нейтральное положение */
  }
  70% {
    transform: scale(1.2, 0.2); /* Мягкое движение */
  }
  80% {
    transform: scale(1.2, 0.6); /* Ответное мягкое движение */
  }
  90% {
    transform: scale(1, 1); /* Возврат к нейтральному */
  }
  100% {
    transform: scale(1, 1); /* Конец анимации */
  }
}

@keyframes move-robot {
  0% {
    transform: translateY(15px);
  }
  50% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(15px);
  }
}

@keyframes move-in {
  0% {
    transform: translateX(100px) translateY(80px); /* Начальная позиция справа за экраном */
  }
  100% {
    transform: translateX(0) translateY(15px); /* Робот прилетает в центр */
  }
}

@keyframes hover {
  0% {
    transform: translateY(15px);
  }
  50% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(15px);
  }
}

@keyframes hand-swing-second {
  0% {
    transform: rotate(-30deg);
  }
  50% {
    transform: rotate(-40deg);
  }
  100% {
    transform: rotate(-30deg);
  }
}

@keyframes hand-swing-off {
  0% {
    transform: rotate(197deg);
  }
  50% {
    transform: rotate(203deg);
  }
  100% {
    transform: rotate(197deg);
  }
}

@keyframes hand-swing-second-success {
  0% {
    transform: rotate(70deg);
  }
  50% {
    transform: rotate(80deg);
  }
  100% {
    transform: rotate(70deg);
  }
}

@keyframes hand-swing-success {
  0% {
    transform: rotate(-70deg);
  }
  50% {
    transform: rotate(-80deg);
  }
  100% {
    transform: rotate(-70deg);
  }
}

@keyframes hand-swing {
  0% {
    transform: rotate(-40deg);
  }
  50% {
    transform: rotate(-60deg);
  }
  100% {
    transform: rotate(-40deg);
  }
}

@keyframes eye-blink {
  0% {
    transform: scaleY(1); /* Открытый глаз */
  }
  10% {
    transform: scaleY(0.2); /* Почти закрытый глаз */
  }
  12% {
    transform: scaleY(0.05); /* Полностью закрытый глаз */
  }
  15% {
    transform: scaleY(0.2); /* Почти открытый глаз */
  }
  20% {
    transform: scaleY(1); /* Полностью открытый глаз */
  }
  50% {
    transform: scaleY(1); /* Длинный промежуток открытого глаза */
  }
  52% {
    transform: scaleY(0.1); /* Быстрое моргание */
  }
  55% {
    transform: scaleY(1); /* Открытый глаз */
  }

  75% {
    transform: scaleY(1); /* Открытый глаз */
  }
  100% {
    transform: scaleY(1); /* Конец цикла */
  }
}

@keyframes eye-blink-off {
  0% {
    transform: scaleY(1); /* Открытый глаз */
  }
  10% {
    transform: scaleY(1);/* Почти закрытый глаз */
  }
  12% {
    transform: scaleY(0.05); /* Полностью закрытый глаз */
  }
  15% {
    transform: scaleY(1); /* Почти открытый глаз */
  }
  20% {
    transform: scaleY(1);  /* Полностью открытый глаз */
  }
  48% {
    transform: scaleY(1);  /* Полностью открытый глаз */
  }
  50% {
    transform: scaleY(0.05); /* Длинный промежуток открытого глаза */
  }
  52% {
    transform: scaleY(1); /* Быстрое моргание */
  }
  55% {
    transform:  scaleY(0.05); /* Открытый глаз */
  }
  60% {
    transform: scaleY(1); /* Открытый глаз */
  }
  75% {
    transform: scaleY(1); /* Открытый глаз */
  }
  100% {
    transform: scaleY(1); /* Конец цикла */
  }
}

.next-button {
  z-index: 999999999999999;
  display: none;
}

.button-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  cursor: pointer;
  display: none;
  &.hide-animation {
    &:before {
      display: none!important;
    }
  }
  &:before {
    position: absolute;
    top: 0;
    left: -75%;
    z-index: 2;
    display: block;
    content: "";
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(0, 225, 255, 0.62) 100%);
    -webkit-transform: skewX(-25deg);
    transform: skewX(-25deg);
    -webkit-animation: shine 1s;
    animation: shine 1s;
    animation-iteration-count: infinite;
    -moz-animation-iteration-count: infinite;
    -webkit-animation-iteration-count: infinite
  }
}

.hide-button {
  display: none!important;
}

@-webkit-keyframes shine {
  100% {
    left: 125%
  }
}

@keyframes shine {
  100% {
    left: 125%
  }
}

#tooltip {
  border: 3px solid black;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 999999;
  background: rgba(255, 255, 255, 0.4);
}

#iframe-container {
  margin-right: 20px;
}

#content-container {
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  color: #182946;
  pointer-events: none;
  font-family: $font;
  & .step-content {
    pointer-events: auto;
  }
  & #next-button {
    pointer-events: auto;
  }
}

#step-content {
  margin-bottom: 20px;
}

.bg {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  background: rgba(138, 170, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  &.bg-pointer {
    pointer-events: auto;
  }
  &.hide-bg {
    animation: hide-bg 0.5s ease-out 0s forwards;
  }
}

@keyframes hide-bg {
  0% {
    opacity: 1;
    visibility: inherit;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.form-button {
  height: 45px;
  padding: 0 35px;
  border-radius: 100px;
  margin-top: 10px;
  background: #1c3666;
  color: #fff;
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  display: inline-block;
  font-family: $font;
  &:hover {
    background: #162c54;
  }
  &.form-button-link {
    display: flex;
    width: 220px;
    margin: 10px auto 0;
    align-items: center;
    justify-content: center;
    text-decoration: none;
  }
}

.form-input {
  height: 50px;
  padding: 0 10px;
  border: 2px solid #c6d5fc;
  border-radius: 5px;
  outline: none;
  background: #fff;
  text-align: center;
  font-size: 18px;
  color: #182946;
  margin-bottom: 10px;
  &:focus {
    border-color: #6289df;
  }
}

.step-content {
  animation: move-block .3s ease-out .3s forwards;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  width: 420px;
  position: absolute;
  box-shadow: 0 50px 200px rgba(25, 65, 125, 0.55);
  z-index: 2;
  opacity: 0;
  display: none;
  &.show-step {
    display: block;
  }
  &.first-step-content {
    opacity: 0;
    animation: move-block 0.5s ease-out 2s forwards;
  }
  & p {
    font-size: 17px;
  }
  &.step-content-top-small {
    position: absolute;
    left: 0;
    margin: 0 auto;
    bottom: 190%;
    z-index: 3;
    box-shadow: 0 -50px 200px rgba(25, 65, 125, 0.55);
    & .block-arrow {
      position: absolute;
      &.block-left {
        left: 30px;
        bottom: 10px;
        &::before {
          content: '';
          position: absolute;
          width: 20px;
          height: 20px;
          background: rgba(255, 255, 255, 0.98);
          z-index: -1;
          transform: rotate(45deg);
        }
      }
    }
  }
  &.step-content-top-right-small {
    position: absolute;
    right: 70%;
    margin: 0 auto;
    bottom: 150%;
    z-index: 3;
    box-shadow: 0 -50px 200px rgba(25, 65, 125, 0.35);
    & .block-arrow {
      position: absolute;
      &.block-left {
        right: 50px;
        bottom: 10px;
        &::before {
          content: '';
          position: absolute;
          width: 20px;
          height: 20px;
          background: rgba(255, 255, 255, 0.98);
          z-index: -1;
          transform: rotate(45deg);
        }
      }
    }
  }
  &.step-content-bottom-center {
    position: absolute;
    left: 0;
    right: 0;
    margin: 15px auto 0;
    top: 100%;
    z-index: 3;
    box-shadow: 0 50px 200px rgba(25, 65, 125, 0.35);
    & .block-arrow {
      position: absolute;
      &.block-left {
        left: 0;
        top: -10px;
        right: 0;
        margin: 0 auto;
        &::before {
          content: '';
          position: absolute;
          width: 20px;
          height: 20px;
          background: rgba(255, 255, 255, 0.98);
          z-index: -1;
          transform: rotate(45deg);
        }
      }
    }
  }
  &.step-content-right {
    position: absolute;
    left: 100%;
    margin-left: 15px;
    margin-top: -13px;
    z-index: 3;
    &.step-content-small {
      margin-top: -27px;
    }
    & .block-arrow {
      position: absolute;
      &.block-left {
        left: -10px;
        top: 30px;
        &::before {
          content: '';
          position: absolute;
          width: 20px;
          height: 20px;
          background: rgba(255, 255, 255, 0.98);
          z-index: -1;
          transform: rotate(45deg);
        }
      }
    }
  }
}


@keyframes move-block {
  0% {
    opacity: 0;
    scale: .8;
    transform: translateY(15px);
  }
  100% {
    opacity: 1;
    scale: 1;
    transform: translateY(0px);
  }
}

#rating-container span {
  font-size: 2rem;
  color: #ccc;
  cursor: pointer;
  user-select: none;
}

#rating-container span.active {
  color: gold;
}
@media (max-width: 500px) {
  .step-content-mobile {
    left: 0!important;
    right: 0!important;
    top: 100%!important;
    width: 95%!important;
    margin: 6px auto 0!important;
    & .block-arrow {
      top: -10px!important;
      left: 0!important;
      right: 0!important;
      margin: 0 auto!important;
    }
    & .robot {
      right: -80px!important;
    }
  }
  #leftColumn {
    display: none;
  }
}

.load-screen {
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  background: #fff;
  z-index: 9999999999999999999999999999;
  animation: move 1s ease-in-out 2s forwards;
  box-shadow: 0 100px 70px rgba(25, 65, 125, .1);
}
.load-screen .load-logo {
  position: relative;
  width: 152px;
  height: 124px;
}
.load-screen .load-logo svg {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}
.load-screen .load-logo .load-1 {
  animation: load 1s ease-in-out 0.2s forwards;
}
.load-screen .load-logo .load-2 {
  animation: load 1s ease-in-out 0.4s forwards;
}
.load-screen .load-logo .load-3 {
  animation: load 1s ease-in-out 0.6s forwards;
}
.load-screen .load-logo .load-4 {
  animation: load 1s ease-in-out 0.8s forwards;
}

.feedback-title {
  font-size: 17px;
  text-align: center;
  display: block;
  margin-top: 10px;
}

#feedback-input {
  margin: 20px auto 10px;
  width: 334px;
  height: 100px;
  max-height: 200px;
  max-width: 100%;
  min-width: 100%;
  min-height: 100px;
  text-align: left;
  padding: 10px;
}

@keyframes load {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes move {
  0% {
    transform: translateY(0px);
  }
  100% {
    transform: translateY(-130%);
  }
}

.shadow-section {
  width: 100%;
  height: 100%;
}