@font-face {
  font-family: Inter;
  src: url("assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0020-007F, U+00A0-00BF, U+20A0-20CF;
  font-weight: 1 999;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Inter;
  src: url("assets/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0410-044F, U+0404, U+0454, U+0406-0407, U+0456-0457, U+0401, U+0451, U+040E, U+045E, U+0490-0491;
  font-weight: 1 999;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("assets/lato-latin.woff2") format("woff2");
  unicode-range: U+0020-007F, U+00A0-00BF, U+20A0-20CF;
  font-weight: 1 999;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url("assets/lato-cyrillic.woff2") format("woff2");
  unicode-range: U+0410-044F, U+0404, U+0454, U+0406-0407, U+0456-0457, U+0401, U+0451, U+040E, U+045E, U+0490-0491;
  font-weight: 1 999;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #6462dd;
  --muted: #a0a0a0;
  --text: #000;
  --bg-gray: #f3f3f3;
}

*, *::before, *::after {
  box-sizing: border-box;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  margin: 0;
  outline: none;
  border: none;
  text-decoration: none;
  box-shadow: none;
  vertical-align: inherit;
  min-height: 0;
  min-width: 0;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
}

body {
  font-family: Lato, Helvetice, sans-serif;
  background-color: #fff;
}

.main-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  min-height: 100vh;
  min-width: 800px;
}

.main-wrapper.front::before {
  content: "";
  width: 50%;
  min-height: 100%;
  height: auto;
  position: absolute;
  background: linear-gradient(195.75deg, #617be3 9.67%, #701cdb 91.27%);
  transform: scaleX(-1);
  top: 0;
  left: 0;
  z-index: -1;
}

.main-wrapper.front::after {
  content: "";
  width: 50%;
  min-height: 100%;
  height: auto;
  position: absolute;
  background: #fff;
  top: 0;
  right: 0;
  z-index: -1;
}

.header {
  background-color: transparent;
  border-bottom: none;
  padding: 0 70px;
}

.page-header--layout {
  padding: 27px 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 100%;
}

.header-logo {
  margin-right: 24px;
  color: #fff;
  position: relative;
  display: flex;
  flex: 0 0 auto;
}

.header-logo-el {
  width: 100%;
  max-width: 200px;
}

.header-logo svg {
  width: 100%;
}

.lang-wrapper {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}

.help-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  cursor: pointer;
}

.help-link .icon {
  font-size: 20px;
  color: #777;
  display: inline-flex;
  align-items: center;
}

.help-link svg {
  width: 20px;
  height: 20px;
}

.help-link .button-text {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}

.content-wrapper {
  width: 100%;
  margin: 0 auto;
  padding: 0 70px;
  background-color: transparent;
  flex-grow: 1;
}

.layout {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 58px 0 41px;
}

.text-wrap {
  width: 50%;
  padding-right: 74px;
  padding-left: 20px;
}

.text-item {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.text-item h1 {
  max-width: 624px;
  width: 100%;
  font-weight: 900;
  font-size: 40px;
  line-height: 48px;
  color: #fff;
}

.lottie-player {
  margin-top: 72px;
  max-height: 480px;
  max-width: 580px;
  height: 53dvh;
  width: 100%;
}

.lottie-player #cat-lottie,
.lottie-player canvas {
  width: 100%;
  height: 100%;
}

.authorization-wrap {
  align-self: center;
  width: 50%;
  padding-left: 70px;
}

.authorization-block {
  box-sizing: content-box;
  margin: 0 auto;
  border-radius: 16px;
  padding: 0 32px 40px;
  max-width: 296px;
  width: 100%;
  background: #fff;
  position: relative;
}

.auth-step--wait {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.authorization-block.is-waiting .auth-step--phone,
.authorization-block.is-waiting .no-account {
  display: none;
}

.authorization-block.is-waiting .auth-step--wait {
  display: flex;
}

.authorization-block.is-approved .auth-step--phone,
.authorization-block.is-approved .auth-step--wait,
.authorization-block.is-approved .no-account {
  display: none;
}

.authorization-block.is-approved .auth-step--approved {
  display: flex;
}

.wait-phone {
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #777;
  margin-top: -8px;
}

.change-phone {
  margin-top: 6px;
  margin-bottom: 24px;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #3f3f3f;
  cursor: pointer;
}

.change-phone:hover {
  text-decoration: underline;
}

.countdown {
  height: 200px;
  width: 200px;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.countdown svg {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring {
  stroke-width: 16px;
  stroke: #f3f3f3;
  fill: none;
}

.ring-progress {
  stroke-dasharray: 502px;
  stroke-dashoffset: 0px;
  stroke-linecap: round;
  stroke-width: 16px;
  stroke: #6462dd;
  fill: none;
  transition: stroke-dashoffset 1s linear;
}

.countdown-number {
  text-align: center;
}

.countdown-number .number {
  color: #1b1b1b;
  font-family: Inter, sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 48px;
}

.countdown-number .unit {
  color: #000;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 30px;
  margin-top: -5px;
}

.wait-hint {
  font-family: Lato, sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 22px;
  color: #a0a0a0;
}

.auth-step--approved {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0 8px;
}

.approved-icon {
  font-size: 42px;
  line-height: 1;
}

.approved-text {
  font-family: Lato, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: #1b1b1b;
}

.auth-status {
  min-height: 20px;
  margin-top: 8px;
  text-align: center;
  font-family: Lato, sans-serif;
  font-size: 13px;
  line-height: 18px;
  color: #c62828;
}

@media (max-width: 1200px) {
  .header {
    padding: 0 40px;
  }

  .content-wrapper {
    padding: 0 40px;
  }

  .text-wrap {
    padding-right: 40px;
  }

  .authorization-wrap {
    padding-left: 40px;
  }
}

@media (max-width: 960px) {
  .header {
    padding: 0 32px;
  }

  .content-wrapper {
    padding: 0 32px;
  }

  .text-wrap {
    padding-right: 32px;
  }

  .authorization-wrap {
    padding-left: 32px;
  }
}

.title {
  color: #000;
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
}

.m-b-32 {
  margin-bottom: 32px;
}

.input-wrapper {
  margin-bottom: 32px;
}

.phone-input {
  --ls: 1px;
  width: 100%;
  font-weight: 600;
  font-size: 14px;
  line-height: 24px;
  position: relative;
}

.phone-input .label-text {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  color: #a0a0a0;
  background: #fff;
  transition: all 0.2s ease;
  transition-property: transform, font-size, padding, color;
  transform-origin: left;
  position: absolute;
  z-index: 1;
  left: 16px;
  top: 12px;
  padding: 0 0;
}

.phone-input .border {
  width: 100%;
  height: 100%;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 8px;
  padding: 12px 16px;
  transition: border-color 0.3s ease;
}

.phone-input:hover .border {
  border-color: rgba(0, 0, 0, 0.5);
}

.phone-input.focused .border {
  border-color: var(--accent);
}

.phone-input.not-empty .label-text {
  color: rgba(0, 0, 0, 0.6);
  transform: translate(-8px, -25px);
  font-size: 12px;
  padding: 0 8px;
}

.phone-input.focused .label-text {
  color: var(--accent);
  transform: translate(-8px, -25px);
  font-size: 12px;
  padding: 0 8px;
}

.phone-input input {
  width: 100%;
  padding: 12px 8px 12px 16px;
  position: relative;
  z-index: 2;
  letter-spacing: var(--ls);
}

.phone-input input::placeholder {
  color: #000;
  opacity: 0;
}

.phone-input.focused input::placeholder {
  opacity: 1;
}

.button {
  --custom-color: currentColor;
  position: relative;
  user-select: none;
  background: #000;
  border-radius: 32px;
  width: 100%;
  height: 48px;
  font-weight: 700;
  font-size: 14px;
  line-height: 26px;
  color: #fff;
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-continue {
  margin-bottom: 24px;
}

.button:hover {
  box-shadow: 0 1px 16px rgba(0, 0, 0, 0.2);
  background: #202020;
}

.button:disabled {
  opacity: 1;
  background: #ccc;
  cursor: default;
  box-shadow: none;
}

.button.light {
  background: #f3f3f3;
  color: #000;
  border: 1px solid #e5e5e5;
}

.button.light:hover {
  background: #ebebeb;
  box-shadow: 0 1px 16px rgba(233, 232, 232, 0.2);
}

.button .icon {
  width: 16px;
  font-size: 16px;
  object-fit: contain;
  display: block;
  line-height: 1;
  color: var(--custom-color);
}

.no-account {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  color: #777;
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 20px;
  margin-top: 24px;
}

.no-account__icon {
  font-size: 16px;
  line-height: 1;
}

.no-account__link {
  color: var(--accent);
  font-family: Lato, sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  text-decoration: none;
  text-decoration-skip-ink: auto;
  transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.no-account__link:hover,
.no-account__link:focus-visible {
  text-decoration-line: underline;
}

@media (max-width: 800px) {
  body {
    overflow: hidden;
  }

  .main-wrapper {
    min-width: unset;
    background: #fff;
    min-height: 100dvh;
    align-items: center;
  }

  .main-wrapper.front::before,
  .main-wrapper.front::after {
    display: none;
  }

  .header {
    padding: 0 24px;
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .header-logo {
    color: #000;
  }

  .header-logo-el {
    max-width: 127px;
  }

  .content-wrapper {
    display: flex;
    flex-direction: column;
    padding: 0 24px;
    background-color: #fff;
    min-height: calc(100dvh - 76px);
  }

  .layout {
    width: 100%;
    margin: 0 auto;
    padding: 0 0 24px;
    flex: 1;
  }

  .header .layout.page-header--layout {
    max-width: none;
    margin: 0;
    padding: 27px 0;
    align-items: center;
    justify-content: flex-start;
  }

  .text-wrap {
    display: none;
  }

  .authorization-wrap {
    padding: unset;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .authorization-block {
    max-width: 320px;
    width: 100%;
    margin: 0 auto;
    background-color: transparent;
    padding: 0;
    border-radius: 0;
  }

  .countdown {
    width: 180px;
    height: 180px;
  }

  .countdown-number .number {
    font-size: 40px;
    line-height: 44px;
  }

  .countdown-number .unit {
    font-size: 18px;
  }

  .no-account {
    position: static;
    margin-top: 32px;
    flex-wrap: wrap;
  }
}
