/* Лендинг и юридические страницы. Один файл без внешних ресурсов:
   системные шрифты, светлая и тёмная темы через prefers-color-scheme. */

:root {
  color-scheme: light dark;
  --accent: #0a73ff;
  --accent-hover: #0062db;
  --accent-soft: #eaf2ff;
  --on-accent: #ffffff;
  --link: #0062db;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #11151c;
  --muted: #5b6573;
  --border: #e3e7ed;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", "Liberation Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-soft: #10223d;
    --link: #5aa2ff;
    --bg: #0e1116;
    --surface: #161a21;
    --text: #e9edf2;
    --muted: #9aa4b2;
    --border: #262c36;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

main {
  flex: 1 0 auto;
}

.container {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* Типографика */

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.75rem, 1.2rem + 2.6vw, 2.5rem);
  font-weight: 700;
}

h2 {
  margin: 2.5rem 0 0.75rem;
  font-size: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  font-weight: 700;
}

h3 {
  margin-bottom: 0.375rem;
  font-size: 1.125rem;
  font-weight: 600;
}

p,
ul,
ol {
  margin: 0 0 1rem;
}

ul,
ol {
  padding-left: 1.4em;
}

li + li {
  margin-top: 0.4rem;
}

strong {
  font-weight: 600;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 12px;
  z-index: 10;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Шапка */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 14px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
  line-height: 1;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 4px;
  margin-inline: -10px;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--surface);
  color: var(--text);
}

.site-nav a[aria-current="page"] {
  background: var(--accent-soft);
  color: var(--link);
}

/* Кнопки */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.button:hover {
  background: var(--accent-hover);
}

.button-secondary {
  border-color: var(--border);
  background: transparent;
  color: var(--link);
}

.button-secondary:hover {
  background: var(--surface);
}

/* Главная */

.hero {
  padding-block: 56px 8px;
}

.eyebrow {
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 600;
}

.hero h1 {
  margin-bottom: 0.75rem;
  font-size: clamp(2.25rem, 1.3rem + 4.4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.tagline-en {
  margin-bottom: 1.25rem;
  color: var(--muted);
  font-size: 1.25rem;
}

.lead {
  max-width: 34em;
  margin-bottom: 1.75rem;
  font-size: 1.1875rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.features li + li {
  margin-top: 0;
}

.feature {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--link);
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.steps {
  display: grid;
  gap: 18px;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  min-height: 36px;
  margin: 0;
  padding-left: 52px;
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: -2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--link);
  font-weight: 700;
}

.note {
  padding: 14px 18px;
  border-left: 3px solid var(--accent);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}

.beta {
  margin-top: 3rem;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--accent-soft);
}

.beta h2 {
  margin-top: 0;
}

.beta > :last-child {
  margin-bottom: 0;
}

.small {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Документы: политика, условия, поддержка */

.doc {
  padding-block: 40px 8px;
}

.meta {
  margin-bottom: 1.5rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.doc h2 {
  margin-top: 2.25rem;
}

.notfound {
  padding-block: 72px 8px;
}

/* Подвал */

.site-footer {
  margin-top: 64px;
  padding-block: 28px 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9375rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 14px;
}

.footer-nav a {
  color: var(--muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.site-footer p {
  margin: 0 0 4px;
}

/* Узкие экраны (от 360px) */

@media (max-width: 460px) {
  .site-nav {
    display: grid;
    grid-template-columns: auto auto;
    justify-content: start;
    justify-items: start;
  }

  .actions .button {
    flex: 1 1 100%;
  }
}

@media (max-width: 400px) {
  .container {
    padding-inline: 16px;
  }

  .beta {
    padding: 24px 18px;
  }
}
