:root {
  color-scheme: dark;
  --blue: #0062fb;
  --bg: #070b14;
  --footer: #131212;
  --muted: #c1c1c1;
  --line: #232323;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Onest", sans-serif;
  background: var(--bg);
  color: #fff;
}
a { color: inherit; }
img { display: block; }

.hero {
  position: relative;
  min-height: 720px;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
}
.wrap {
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
}
.hero-inner {
  position: relative;
  padding: 32px 0 64px;
}
.bar, .contacts, .top, .auth {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contacts {
  gap: 24px;
  font-size: 16px;
  line-height: 24px;
}
.auth { gap: 8px; justify-content: flex-end; }
.top, .auth { flex-wrap: wrap; }
.contacts a { text-decoration: none; }
.contacts a:not(.button):hover { opacity: 0.8; }
.hero-copy {
  max-width: 840px;
  margin-top: 96px;
}
h1 {
  margin: 0;
  font-size: 40px;
  line-height: 48px;
  font-weight: 400;
}
.lead {
  margin: 24px 0 0;
  font-size: 18px;
  line-height: 28px;
}
.button, .cookie button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  cursor: pointer;
}
.button-lg {
  height: 44px;
  margin-top: 40px;
  padding: 0 20px;
  font-size: 16px;
  line-height: 24px;
}
.button-ghost {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 24%);
}
.button:hover, .cookie button:hover { background: rgb(0 98 251 / 80%); }
.button-ghost:hover { background: rgb(255 255 255 / 10%); }

.cookie, footer { background: var(--footer); }
.cookie-inner, footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.cookie p, .reqs, .copy, .doc p { color: var(--muted); font-size: 12px; line-height: 20px; }
footer .wrap {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding-bottom: 40px;
}
footer .reqs, footer .copy { font-size: 14px; line-height: 22px; }
.cookie a, .docs a { color: var(--blue); text-decoration: none; }
.cookie a:hover, .docs a:hover { text-decoration: underline; }
.docs { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 40px; font-size: 16px; line-height: 24px; }
.reqs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  margin: 16px 0;
}
.reqs p { margin: 0; }
footer .copy { color: #fff; margin: 0; padding-bottom: 0; }
.copy { display: flex; gap: 16px; padding-bottom: 40px; }
.copy a { color: var(--muted); text-decoration: none; }
.copy a:hover { color: #fff; }

.doc { width: min(768px, calc(100% - 48px)); margin: 0 auto; padding: 8px 0 64px; }
.doc h1 { font-size: 32px; line-height: 40px; }
.doc h2 { margin: 32px 0 0; font-size: 18px; font-weight: 400; color: #fff; }
.doc p { margin: 12px 0 0; font-size: 14px; line-height: 24px; }
.top { width: min(1360px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0; }

@media (min-width: 720px) {
  .hero { min-height: 872px; }
  .hero-inner { padding-top: 64px; }
  .hero-copy { margin-top: 160px; }
  h1 { font-size: 64px; line-height: 80px; }
  .lead { font-size: 24px; line-height: 32px; }
}
@media (max-width: 719px) {
  .bar, .contacts { align-items: flex-start; flex-direction: column; }
}
