@font-face {
  font-family: "Futura Book";
  src: url("../fonts/FuturaPTBook.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Futura Bold";
  src: url("../fonts/FuturaPTBold.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next";
  src: url("../fonts/AvenirNextCyr-Regular.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Avenir Next";
  src: url("../fonts/AvenirNextCyr-Demi.woff") format("woff");
  font-weight: 600;
  font-display: swap;
}

:root {
  --blue: #217ee1;
  --blue-light: #399cf0;
  --yellow: #ffd42e;
  --text: #404040;
  --dark: #202020;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: #5a76ff; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  min-height: 940px;
  color: #fff;
  background: var(--blue) url("../img/bg_header.png") bottom center no-repeat;
  background-size: auto;
}

.topbar {
  position: absolute;
  top: 27px;
  left: 50%;
  display: flex;
  width: min(90%, 1175px);
  justify-content: space-between;
  transform: translateX(-50%);
}

.logo {
  display: block;
  width: 84px;
  height: 24px;
  overflow: hidden;
  text-indent: -9999px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.logo--light { background-image: url("../img/ukit-ai-logo.svg"); }
.logo--color { background-image: url("../img/ukit-ai-logo-color.svg"); }

.language {
  color: #fff;
  font-size: 14px;
  text-decoration: underline;
}

.language span {
  display: inline-block;
  width: 24px;
  height: 12px;
  margin: 4px 10px 0 0;
  vertical-align: top;
  background: url("../img/eng.svg") center/cover no-repeat;
}

.language--russian span { background-image: url("../img/rus.svg"); }

.hero__content {
  width: min(90%, 1175px);
  margin: 0 auto;
  padding-top: 175px;
  text-align: center;
}

.hero h2 {
  margin: 0 0 13px;
  color: #fbfcff;
  font: 400 40px/1.6 "Futura Book", sans-serif;
}

.hero h1 {
  margin: 0 0 17px;
  color: #fbfcff;
  font: 400 54px/1.15 "Futura Book", sans-serif;
}

.typed-word {
  display: inline-block;
  min-width: 290px;
  color: var(--yellow);
  font-family: "Futura Bold", sans-serif;
  text-align: left;
}

.typed-word::after {
  content: "|";
  margin-left: 3px;
  animation: blink .75s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.hero__subtitle {
  margin: 0 0 54px;
  color: #fbfcff;
  font-size: 25px;
}

.hero--en .hero__content { padding-top: 120px; }

.hero--en .hero__headline { margin-bottom: 14px; }

.hero--en .hero__subtitle { margin-bottom: 12px; }

.hero__typed-line {
  min-height: 64px;
  margin: 0 0 43px;
  color: #fbfcff;
  font: 400 50px/1.2 "Futura Book", sans-serif;
}

.hero__typed-line .typed-word {
  display: block;
  width: 100%;
  min-width: 0;
  text-align: center;
}

.site-form {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  width: min(760px, 100%);
  height: 68px;
  margin: 0 auto;
  padding: 8px 8px 8px 22px;
  border: 2px solid rgba(255, 255, 255, .18);
  border-radius: 70px;
  background: rgba(255, 255, 255, .09);
  backdrop-filter: blur(4px);
  transition: border-color .2s, box-shadow .2s;
}

.site-form:focus-within {
  border-color: rgba(255, 255, 255, .55);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.site-form.has-error {
  border-color: #ff9b95;
  box-shadow: 0 0 0 4px rgba(255, 83, 73, .15);
}

.site-form__icon {
  display: inline-flex;
  flex: 0 0 20px;
  opacity: .55;
}

.site-form__icon svg { stroke: #fff; stroke-width: 2; }

.site-form__input {
  min-width: 0;
  flex: 1;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: 18px/22px "Avenir Next", sans-serif;
}

.site-form__input::placeholder { color: rgba(255, 255, 255, .52); }

.site-form__button,
.cta {
  border: 0;
  border-radius: 70px;
  color: var(--dark);
  background: var(--yellow);
  font: 600 16px/1 "Avenir Next", sans-serif;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.site-form__button {
  display: inline-flex;
  height: 48px;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 0 28px;
  white-space: nowrap;
}

.site-form__button svg { stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.site-form__button:hover, .cta:hover { background: #ffdf61; }
.site-form__button:active, .cta:active { transform: translateY(1px); }

.site-form__error {
  position: absolute;
  top: calc(100% + 9px);
  left: 24px;
  display: none;
  margin: 0;
  color: #fff;
  font-size: 14px;
  text-align: left;
}

.site-form.has-error .site-form__error { display: block; }

.description {
  position: relative;
  padding: 322px 0 100px;
  text-align: center;
}

.content {
  width: min(90%, 750px);
  margin: 0 auto;
}

.intro p {
  margin: 0 0 97px;
  font-size: 25px;
  line-height: 1.36;
}

.comparison {
  position: absolute;
  top: -350px;
  left: 50%;
  width: min(1040px, calc(100% - 40px));
  aspect-ratio: 1040 / 606;
  padding: 36px;
  transform: translateX(-50%);
  background: url("../img/slider_bg.png") center/100% 100% no-repeat;
  filter: drop-shadow(0 0 40px rgba(35, 64, 100, .20));
}

.comparison__screen {
  position: absolute;
  inset: 36px;
  border-radius: 15px;
  background-position: center;
  background-size: cover;
}

.comparison__screen--after { background-image: url("../img/site_after_d.png"); }

.comparison__screen--before {
  background-image: url("../img/site_before_d.png");
  clip-path: inset(0 70% 0 0);
}

.comparison__line {
  position: absolute;
  top: 36px;
  bottom: 36px;
  left: calc(36px + (100% - 72px) * .3);
  width: 7px;
  transform: translateX(-50%);
  background: var(--yellow);
  box-shadow: 0 0 6px rgba(51, 51, 51, .5);
  pointer-events: none;
}

.comparison__handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: block;
  width: 48px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  color: #000;
  background: var(--yellow);
  box-shadow: 0 0 12px rgba(51, 51, 51, .5);
}

.comparison__handle::before,
.comparison__handle::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  margin-top: -6px;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.comparison__handle::before {
  left: 8px;
  border-right: 7px solid #000;
}

.comparison__handle::after {
  right: 8px;
  border-left: 7px solid #000;
}

.comparison__range {
  position: absolute;
  inset: 36px;
  width: calc(100% - 72px);
  height: calc(100% - 72px);
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

.comparison__label {
  position: absolute;
  top: 24px;
  z-index: 3;
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
  text-align: left;
  background-position: bottom;
  background-repeat: no-repeat;
}

.comparison__label--before {
  left: -65px;
  width: 70px;
  height: 108px;
  background-image: url("../img/arrow_l.png");
  background-position-x: right;
}

.comparison__label--after {
  right: -105px;
  width: 116px;
  height: 108px;
  padding-left: 16px;
  background-image: url("../img/arrow_r.png");
  background-position-x: left;
}

.how h2 {
  margin: 0 0 58px;
  color: var(--dark);
  font-size: 40px;
}

.steps {
  position: relative;
  margin: 0 0 27px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps::before {
  content: "";
  position: absolute;
  top: 35px;
  bottom: 80px;
  left: 24px;
  border-left: 2px dashed var(--blue-light);
}

.steps li {
  position: relative;
  min-height: 120px;
  padding: 3px 0 0 170px;
  font-size: 25px;
  line-height: 1.36;
  text-align: left;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -8px;
  left: -8px;
  width: 65px;
  height: 65px;
  border: 8px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--blue-light);
  font-size: 18px;
  line-height: 49px;
  text-align: center;
}

.steps p { margin: -10px 0 20px; }
.steps li:first-child p { margin-top: 0; }

.steps__icon {
  position: absolute;
  top: -8px;
  left: 78px;
  width: 65px;
  height: 65px;
  border: 8px solid #fff;
  background: #fff center/contain no-repeat;
}

.steps__icon--1 { background-image: url("../img/1.svg"); }
.steps__icon--2 { background-image: url("../img/2.svg"); }
.steps__icon--3 { background-image: url("../img/3.svg"); }
.steps__icon--4 { background-image: url("../img/4.svg"); }

.cta {
  display: inline-flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  padding: 0 36px;
  font-size: 21px;
  text-decoration: none;
}

.conclusion {
  padding: 93px 15px 65px;
  color: #f9fcfd;
  background: #2381e3 url("../img/conclusion_bg.png") center no-repeat;
  text-align: center;
}

.conclusion p {
  width: min(90%, 745px);
  margin: 0 auto 35px;
  font-size: 25px;
  line-height: 1.36;
}

.footer { padding: 43px 0 37px; background: #f0f1f5; }
.footer__content { position: relative; width: min(90%, 1175px); margin: 0 auto; }
.footer .logo { margin-bottom: 24px; }
.footer nav { position: absolute; top: 0; right: 0; }
.footer nav a { margin-left: 35px; text-decoration: none; }
.footer p { max-width: 560px; margin: 0 0 23px; color: #808189; font-size: 15px; line-height: 1.6; }
.footer a { text-decoration: none; }
.footer__contacts { position: absolute; right: 0; bottom: 0; text-align: right; }

@media (max-width: 1100px) {
  .hero { min-height: 790px; }
  .hero__content { padding-top: 150px; }
  .description { padding-top: 260px; }
  .comparison { top: -285px; }
  .comparison__label { display: none; }
}

@media (max-width: 820px) {
  .hero { min-height: 720px; background-color: var(--blue); }
  .hero__content { padding-top: 135px; }
  .hero h1 { font-size: 46px; }
  .typed-word { min-width: 245px; }
  .hero--en .hero__content { padding-top: 120px; }
  .hero--en .hero__headline { font-size: 44px; }
  .hero__typed-line { min-height: 54px; font-size: 40px; }
  .hero__typed-line .typed-word { min-width: 0; }
  .site-form { gap: 12px; padding-left: 18px; }
  .site-form__button { padding: 0 20px; }
  .description { padding-top: 200px; }
  .comparison { top: -220px; padding: 24px; }
  .comparison__screen, .comparison__range { inset: 24px; }
  .comparison__range { width: calc(100% - 48px); height: calc(100% - 48px); }
  .comparison__line { top: 24px; bottom: 24px; left: calc(24px + (100% - 48px) * .3); }
  .footer__contacts { position: static; text-align: left; }
}

@media (max-width: 620px) {
  .hero { min-height: 640px; }
  .topbar { width: calc(100% - 40px); }
  .hero__content { width: calc(100% - 24px); padding-top: 115px; }
  .hero h2 { font-size: 30px; }
  .hero h1 { min-height: 95px; font-size: 36px; }
  .typed-word { display: block; min-width: 0; text-align: center; }
  .hero--en .hero__content { padding-top: 105px; }
  .hero--en .hero__headline { min-height: 0; font-size: 34px; }
  .hero--en .hero__subtitle { margin-bottom: 15px; }
  .hero__typed-line { min-height: 75px; margin-bottom: 24px; font-size: 30px; }
  .hero__subtitle { margin-bottom: 35px; font-size: 19px; }
  .site-form { height: 60px; gap: 9px; padding: 6px 6px 6px 15px; }
  .site-form__icon { display: none; }
  .site-form__input { padding: 10px 0; font-size: 14px; }
  .site-form__button { height: 44px; padding: 0 15px; font-size: 0; }
  .site-form__button::before { content: "Создать"; font-size: 14px; }
  .site-form__button svg { display: none; }
  .site-form__error { left: 16px; font-size: 12px; }
  .description { padding: 120px 0 70px; }
  .comparison { top: -120px; width: calc(100% - 20px); padding: 10px; }
  .comparison__screen, .comparison__range { inset: 10px; border-radius: 8px; }
  .comparison__range { width: calc(100% - 20px); height: calc(100% - 20px); }
  .comparison__line { top: 10px; bottom: 10px; left: calc(10px + (100% - 20px) * .3); width: 4px; }
  .comparison__handle { width: 38px; height: 38px; font-size: 15px; }
  .intro p { margin-bottom: 60px; font-size: 20px; text-align: left; }
  .how h2 { margin-bottom: 45px; font-size: 34px; }
  .steps::before { left: 24px; }
  .steps li { min-height: 105px; padding-left: 78px; font-size: 17px; }
  .steps__icon { display: none; }
  .conclusion { padding: 70px 10px 35px; background-image: url("../img/conclusion_bg_480.jpg"); }
  .conclusion p { font-size: 20px; }
  .footer { text-align: center; }
  .footer .logo { margin-right: auto; margin-left: auto; }
  .footer nav { position: static; margin-bottom: 25px; }
  .footer nav a { margin: 0 12px; }
  .footer p, .footer__contacts { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
