@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/Montserrat-400.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/Montserrat-500.woff2") format("woff2");
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Montserrat-600.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  font-family: "Montserrat", Arial, sans-serif;
  font-synthesis: none;
  --blue: #425fe9;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 280px;
  background: #050a1b;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 3px solid #7192ff;
  outline-offset: 5px;
}

.site-header {
  flex: none;
  height: var(--header-height);
  background: #fafafa;
  color: #15135f;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1224px, calc(100% - 40px));
  height: 100%;
  margin-inline: auto;
}

.brand {
  display: block;
  flex-shrink: 0;
  width: 263px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(0);
}

.language-switch {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 6px;
  font-family: Arial, sans-serif;
  font-size: 22px;
  line-height: 1;
}

.language-switch a {
  display: grid;
  place-items: center;
  width: 68px;
  height: 48px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: #e3eef8;
}

.language-switch a[aria-current="page"] {
  border-color: #438cff;
  background: transparent;
}

.hero {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 744px;
  padding: 120px 24px 126px;
  background-color: #050a1b;
  background-image:
    linear-gradient(180deg, #000 0%, #000 16%, rgb(0 0 0 / 88%) 35%, rgb(0 0 0 / 58%) 60%, rgb(0 0 0 / 45%) 100%),
    url("background.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  text-align: center;
}

.notice {
  width: 100%;
  max-width: 1208px;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(42px, 4.44445vw, 64px);
  font-weight: 600;
  line-height: 1.125;
  letter-spacing: 2px;
}

.headline-main,
.headline-accent {
  display: block;
}

.headline-accent {
  color: var(--blue);
}

.intro,
.description {
  max-width: 1080px;
  margin-inline: auto;
  font-size: clamp(20px, 1.80556vw, 26px);
  line-height: 30px;
}

.intro {
  margin-top: 40px;
  font-weight: 500;
}

.description {
  margin-top: 10px;
  font-weight: 400;
}

.app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  max-width: 100%;
  margin-top: 94px;
  padding: 17px 32px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 26px;
  letter-spacing: .35px;
  text-align: center;
  touch-action: manipulation;
  transition: background-color 150ms ease;
}

@media (hover: hover) {
  .app-button:hover {
    background: #3552db;
  }

  .language-switch a:hover {
    border-color: #438cff;
  }
}

@media (min-width: 768px) and (max-width: 1100px) {
  .hero {
    min-height: 650px;
    padding-block: 96px;
  }

  .intro,
  .description {
    line-height: 1.25;
  }

  .app-button {
    margin-top: 72px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 56px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand {
    width: clamp(146px, 49.067vw, 184px);
  }

  .language-switch {
    gap: 4px;
    font-size: 12px;
  }

  .language-switch a {
    width: 38px;
    height: 30px;
    border-radius: 3px;
  }

  .hero {
    place-items: start center;
    min-height: 460px;
    padding: 44px 20px max(48px, env(safe-area-inset-bottom));
    background-image:
      linear-gradient(180deg, #000 0%, #000 8%, rgb(0 0 0 / 85%) 24%, rgb(0 0 0 / 55%) 52%, rgb(0 0 0 / 45%) 100%),
      url("background.webp");
    text-align: left;
  }

  h1 {
    font-size: clamp(20px, 7.4667vw, 28px);
    line-height: 1.12;
    letter-spacing: clamp(0px, calc(1.8182vw - 5.8182px), 1px);
  }

  html[lang="kk"] .headline-main,
  html[lang="kk"] .headline-accent {
    display: inline;
  }

  .intro,
  .description {
    margin-inline: 0;
    font-size: 16px;
    line-height: 18px;
  }

  .intro {
    max-width: 310px;
    margin-top: 24px;
  }

  html[lang="kk"] .intro {
    max-width: 300px;
  }

  .description {
    margin-top: 18px;
  }

  html[lang="ru"] .description {
    max-width: 300px;
  }

  .mobile-keep {
    white-space: nowrap;
  }

  .desktop-break {
    display: none;
  }

  .app-button {
    display: flex;
    width: fit-content;
    min-height: 42px;
    margin: 60px auto 0;
    padding: 11px 28px;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    letter-spacing: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
