:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1b2130;
  --muted: #5f6878;
  --border: #e1e5ec;
  --accent: #3d6df2;
  --accent-text: #ffffff;
  --hero: #1f2633;
  --hero-text: #f2f4f8;
  color-scheme: light;
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12161e;
    --panel: #1a202b;
    --text: #e6e9ef;
    --muted: #9aa3b2;
    --border: #2a3140;
    --accent: #5b85f5;
    --hero: #0d1118;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
}

a {
  color: var(--accent);
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

header.top {
  background: var(--hero);
  color: var(--hero-text);
}

header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.5px;
  color: inherit;
  text-decoration: none;
}

.top a.login {
  color: var(--hero-text);
  opacity: 0.85;
  text-decoration: none;
}

.hero {
  background: var(--hero);
  color: var(--hero-text);
  padding: 56px 0 72px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.15;
  margin: 0 0 16px;
  max-width: 640px;
}

.hero p {
  font-size: 18px;
  opacity: 0.85;
  max-width: 560px;
  margin: 0 0 28px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
}

.btn.secondary {
  background: transparent;
  color: inherit;
  border: 1px solid currentColor;
  margin-left: 8px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: -36px 0 48px;
}

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

.feature h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
}

.steps {
  margin-bottom: 56px;
}

.steps h2,
.doc h1 {
  font-size: 24px;
  margin: 0 0 16px;
}

.steps ol {
  padding-left: 20px;
  margin: 0;
}

.steps li {
  margin-bottom: 8px;
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

/* Документы */

.doc {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px clamp(16px, 4vw, 40px);
  margin: 32px auto 48px;
  max-width: 820px;
}

.doc h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.doc .meta {
  color: var(--muted);
  font-size: 14px;
}

.todo {
  background: #fff4d6;
  color: #6b4e00;
  border-radius: 4px;
  padding: 0 4px;
}

@media (prefers-color-scheme: dark) {
  .todo {
    background: #4a3a10;
    color: #ffe39a;
  }
}

@media (max-width: 520px) {
  .btn.secondary {
    margin: 10px 0 0;
  }
}
