/* ---------- Токены ---------- */
:root {
  --bg:        #ffffff;
  --fg:        #16181d;
  --muted:     #6b7280;
  --line:      #e5e7eb;
  --accent:    #16181d;
  --accent-fg: #ffffff;
  --focus:     #2563eb;
  --radius:    8px;
  --step:      clamp(0.9rem, 0.85rem + 0.25vw, 1rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0f1115;
    --fg:        #e8eaed;
    --muted:     #9aa0a6;
    --line:      #262a31;
    --accent:    #e8eaed;
    --accent-fg: #0f1115;
    --focus:     #6ea8fe;
  }
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--fg);
  font: var(--step)/1.6 system-ui, -apple-system, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

/* ---------- Шапка ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.login {
  font-size: 0.925rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--fg);
  transition: opacity 0.15s ease;
}

.login:hover {
  opacity: 0.7;
}

/* ---------- Центр ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  max-width: 50rem;
  padding-inline: clamp(1rem, 5vw, 3rem);
  padding-block: clamp(3rem, 12vh, 7rem) clamp(4.5rem, 18vh, 10rem);
}

h1 {
  margin: 0;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
}

/* ---------- Подвал ---------- */
.foot {
  padding: 1.25rem clamp(1rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Доступность ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}