:root {
  --color-1: #fff;
  --color-2: #faf9fc;
  --color-3: #def5f6;
  --color-4: #00dbca;
  --color-5: #c3c6ca;
  --color-6: #1a202e;
  --color-7: #70757f;
}

@font-face {
  font-family: FuturaLight;
  src: url("/static/fonts/FuturaPTLight.otf") format("opentype");
}

@font-face {
  font-family: FuturaBook;
  src: url("/static/fonts/FuturaPTBook.otf") format("opentype");
}

@font-face {
  font-family: FuturaMedium;
  src: url("/static/fonts/FuturaPTMedium.otf") format("opentype");
}

@font-face {
  font-family: FuturaDemi;
  src: url("/static/fonts/FuturaPTDemi.otf") format("opentype");
}

@font-face {
  font-family: FuturaHeavy;
  src: url("/static/fonts/FuturaPTHeavy.otf") format("opentype");
}

@font-face {
  font-family: FuturaBold;
  src: url("/static/fonts/FuturaPTBold.otf") format("opentype");
}

@font-face {
  font-family: FuturaPTExtraBold;
  src: url("/static/fonts/FuturaPTExtraBold.otf") format("opentype");
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  color: var(--color-6);
  background-color: #fff;
  background: linear-gradient(180deg, rgba(244, 244, 249, 1) 0%, rgba(255, 255, 255, 1) 100%);
}

::selection {
  background-color: var(--color-4);
  color: #fff;
}

.container {
  max-width: 630px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 19px;
  padding-right: 19px;
  box-sizing: border-box;
}

.full-container {
  /* height: 100vh; */
  height: 100%;
}

.section {
  display: flex;
  flex-direction: column;
  /* height: 100vh; */
  height: 100%;
  text-align: center;
}

.header {
  margin-top: 17px;
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
}

.header .button2 {
  position: absolute;
  left: -9px;
  margin-top: -1px;
}

.input-phone {
  box-sizing: border-box;
  outline: none;
  padding-left: 20px;
  padding-right: 20px;
  height: 65px;
  color: var(--color-6);
  background-color: var(--color-1);
  border-radius: 15px;
  border: 1px solid #e2e3e5;
  /* box-shadow: 0px 0px 10px 4px rgb(242, 241, 244); */
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 25px;
  letter-spacing: 0.012em;
  caret-color: var(--color-4);
}

.input-phone.error {
  border-color: #dc3c3c;
}

.input-phone:focus {
  border: none;
  box-shadow: 0px 0px 10px 4px rgb(242, 241, 244);
}

.label {
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 17px;
  color: var(--color-7);
  letter-spacing: 0.015em;
}

.button {
  box-sizing: border-box;
  border: none;
  outline: none;
  display: block;
  height: 78px;
  cursor: pointer;
  border-radius: 15px;
  font-family: FuturaHeavy, Helvetica, Arial, sans-serif;
  font-size: 22px;
  letter-spacing: -0.016em;
  background-color: var(--color-4);
  color: var(--color-1);
}

.button2 {
  box-sizing: border-box;
  border: none;
  outline: none;
  padding: 0;
  display: block;
  width: 48px;
  height: 48px;
  cursor: pointer;
  background: url(/static/images/oschad/back.svg) no-repeat;
  background-size: 27px;
  background-position: center;
}

.button:disabled {
  background-color: var(--color-5);
  cursor: auto;
}

.phone {
  margin-top: 24px;
  position: relative;
  text-align: start;
}

.phone .label {
  position: absolute;
  z-index: 999;
  margin-left: 23px;
  top: -12px;
  user-select: none;
  pointer-events: none;
}

.phone .label::before {
  content: "";
  display: block;
  position: absolute;
  top: 12px;
  left: -5px;
  right: -5px;
  z-index: -1;
  height: 1px;
  background-color: var(--color-1);
}

.phone .input-phone {
  width: 100%;
}

.phone-desc {
  display: block;
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 0.024em;
  margin-top: 5px;
  margin-left: 20px;
  color: var(--color-7);
}

.title {
  margin-top: 48px;
  font-family: FuturaDemi, Helvetica, Arial, sans-serif;
  font-size: 23px;
  letter-spacing: 0.06em;
  color: var(--color-6);
  margin-top: 0;
  margin-bottom: 0;
}

.desc {
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 0.016em;
  color: var(--color-6);
  margin-top: 34px;
  margin-bottom: 0;
}

.desc.error {
  margin-top: 12px;
  color: #dc3c3c;
}

.bottom-place {
  padding-top: 24px;
  padding-bottom: 24px;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9997;
  background: linear-gradient(0deg, rgba(255, 255, 255, 1) 50%, rgba(255, 255, 255, 0) 100%);
}

.button-bottom {
  width: 100%;
  /* margin-top: auto; */
  /* margin-bottom: 24px; */
  text-transform: uppercase;
  /* flex-shrink: 0; */
  /* position: absolute; */
  /* left: 0; */
  /* right: 0; */
  /* bottom: 24px; */
  /* z-index: 999; */
}

.unvisable {
  display: none;
}

.pin-title {
  letter-spacing: 0.03em;
}

.pin-desc {
  margin-top: 25px;
}

.pin-view {
  display: flex;
  justify-content: center;
  gap: 9px;
  user-select: none;
}

.pin-view.error .pin-frame {
  border-color: #dc3c3c;
}

.pin-section .pin-view {
  margin-top: 22px;
}

.pin-frame {
  width: 60px;
  height: 60px;
  background-color: var(--color-1);
  border-radius: 15px;
  box-sizing: border-box;
  border: 1px solid #e2e3e5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pin-frame-done {
  border-color: var(--color-4);
}

.pin-frame-star {
  background: url(/static/images/oschad/star.svg) no-repeat;
  background-position: center;
  background-size: 16px;
  width: 40px;
  height: 40px;
}

.pin-frame-dash {
  width: 14px;
  height: 2px;
  background-color: var(--color-6);
}

.pin-frame-caret {
  width: 1px;
  height: 31px;
  background-color: var(--color-4);
}

.blink {
  animation: blink 1s step-end infinite;
}

.pin-keyboard {
  margin-top: auto;
  margin-bottom: 33px;
  align-self: center;
  display: grid;
  grid-template-columns: repeat(3, 69px);
  grid-template-rows: repeat(4, 69px);
  column-gap: 53px;
  row-gap: 28px;
}

.pin-keyboard-key {
  box-sizing: border-box;
  border: none;
  outline: none;
  padding: 0;
  display: block;
  width: 69px;
  height: 69px;
  border-radius: 50%;
  background-color: var(--color-1);
  border: 1px solid #f3f3f3;
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 25px;
  cursor: pointer;
  box-shadow: 0px 2px 12px 3px rgb(243, 243, 243);
}

.pin-keyboard-none {
  opacity: 0;
  pointer-events: none;
  user-select: none;
}

.pin-keyboard-backspace {
  box-sizing: border-box;
  border: none;
  outline: none;
  padding: 0;
  display: block;
  width: 69px;
  height: 69px;
  background-color: var(--color-1);
  cursor: pointer;
  background: url(/static/images/oschad/backspace.svg) no-repeat;
  background-position: center;
  background-size: 30px;
}

.code-view {
  display: flex;
  justify-content: center;
  gap: 9px;
  user-select: none;
  cursor: text;
}

.code-view.error .code-frame {
  border-color: #dc3c3c;
}

.code-section .code-view {
  margin-top: 19px;
}

.code-frame {
  width: 60px;
  height: 60px;
  background-color: var(--color-1);
  border-radius: 15px;
  box-sizing: border-box;
  border: 1px solid #e2e3e5;
  display: flex;
  justify-content: center;
  align-items: center;
}

.code-frame-done {
  border-color: var(--color-4);
}

.code-frame-digit {
  font-size: 24px;
}

.code-frame-dash {
  width: 14px;
  height: 2px;
  background-color: var(--color-6);
}

.code-frame-caret {
  width: 1px;
  height: 31px;
  background-color: var(--color-4);
}

.code-title {
  letter-spacing: 0.03em;
}

.code-desc1,
.code-desc2 {
  margin-top: 26px;
}

.input-code {
  margin: 0;
  border: none;
  padding: 0;
  /* fix for chrome */
  width: 1px;
  height: 0;
  opacity: 0;
}

.card {
  margin-top: 20px;
  background-color: #eeeff4;
  border-radius: 15px;
  padding-top: 16px;
  padding-left: 23px;
  padding-right: 23px;
  padding-bottom: 97px;
}

.card-logo {
  display: flex;
}

.card-logo-left {
  width: 97px;
  height: 24px;
  background-color: #c7ccd2;
}

.card-logo-left svg {
  width: 100%;
  max-width: 100%;
  height: auto;
}

.card-logo-right {
  position: relative;
  margin-left: 12px;
  padding-right: 6px;
  align-content: center;
  color: #c7ccd2;
  font-family: FuturaDemi, Helvetica, Arial, sans-serif;
  font-size: 6px;
  letter-spacing: 0.65px;
  pointer-events: none;
  user-select: none;
  text-transform: uppercase;
}

.card-logo-right::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  left: 100%;
  width: 1px;
  height: 100%;
  background-color: #c7ccd2;
}

.card-input-box {
  margin-top: 38px;
  display: flex;
  gap: 10px;
}

.card-input {
  box-sizing: border-box;
  outline: none;
  /* padding-left: 15px; */
  /* padding-right: 15px; */
  min-width: 0;
  width: 100%;
  height: 61px;
  color: var(--color-6);
  background-color: var(--color-1);
  border-radius: 15px;
  border: 1px solid #e0e1e5;
  box-shadow: 0px 2px 6px 6px #e9eaee;
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 25px;
  letter-spacing: 0.033333em;
  text-align: center;
  caret-color: var(--color-4);
}

.card-input.error {
  border-color: #dc3c3c;
}

.card-input::placeholder {
  color: var(--color-6);
}

.loader-blur {
  filter: blur(5px);
}

.loader-container {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 20%);
}

.loader {
  position: relative;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid #fff;
}

.loader::before {
  content: "";
  display: block;
  position: absolute;
  top: -4px;
  left: -4px;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 4px solid var(--color-4);
  animation:
    loader-spin1 1s infinite linear alternate,
    loader-spin2 2s infinite linear;
}

.notifications {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
}

.notification-list {
  position: relative;
}

.notification {
  box-sizing: border-box;
  padding: 8px 20px;
  position: absolute;
  width: 100%;
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 22px;
  text-align: center;
  opacity: 0;
  transition:
    opacity 0.4s ease-in,
    transform 0.4s ease-in;
}

.notification.error {
  background-color: #f5e5e6;
  border: 1px solid #eadddd;
  border-radius: 15px;
  color: #ce4241;
}

.notification.show {
  opacity: 1;
  transform: translateY(64px);
}

.answer {
  margin-top: 24px;
  position: relative;
  width: 100%;
  text-align: start;
}

.answer .label {
  position: absolute;
  z-index: 999;
  margin-left: 23px;
  top: -12px;
  user-select: none;
  pointer-events: none;
}

.answer .label::before {
  content: "";
  display: block;
  position: absolute;
  top: 12px;
  left: -5px;
  right: -5px;
  z-index: -1;
  height: 1px;
  background-color: var(--color-1);
}

.message-input {
  box-sizing: border-box;
  margin: 0;
  outline: none;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
  height: auto;
  min-height: 62px;
  max-height: 200px;
  overflow-y: auto;
  color: var(--color-6);
  background-color: var(--color-1);
  border-radius: 15px;
  border: 1px solid #e2e3e5;
  font-family: FuturaBook, Helvetica, Arial, sans-serif;
  font-size: 22px;
  letter-spacing: 0.012em;
  caret-color: var(--color-4);
  resize: none;
}

.message-input:focus {
  border: none;
  box-shadow: 0px 0px 10px 4px rgb(242, 241, 244);
}

.oschadik {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 48px;
  pointer-events: none;
  user-select: none;
}

.hello {
  font-family: FuturaMedium, Helvetica, Arial, sans-serif;
  font-size: min(10vw, 64px);
  letter-spacing: 0.06em;
  color: var(--color-6);
  margin-top: 0;
  margin-bottom: 0;
}

@keyframes loader-spin1 {
  0% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 50% 0%, 50% 0%, 50% 0%, 50% 0%);
  }
  12.5% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 0%, 100% 0%, 100% 0%);
  }
  25% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 100% 100%, 100% 100%);
  }
  50% {
    clip-path: polygon(50% 50%, 0 0, 50% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }
  62.5% {
    clip-path: polygon(50% 50%, 100% 0, 100% 0%, 100% 0%, 100% 100%, 50% 100%, 0% 100%);
  }
  75% {
    clip-path: polygon(50% 50%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 50% 100%, 0% 100%);
  }
  100% {
    clip-path: polygon(50% 50%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 50% 100%, 0% 100%);
  }
}

@keyframes loader-spin2 {
  0% {
    transform: scaleY(1) rotate(0deg);
  }
  49.99% {
    transform: scaleY(1) rotate(135deg);
  }
  50% {
    transform: scaleY(-1) rotate(0deg);
  }
  100% {
    transform: scaleY(-1) rotate(-135deg);
  }
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
