/* Сайт «Спутник Квант». Цвета и отступы — те же временные токены, что в приложении
   (docs/design-system.md): когда значения в приложении поменяются, меняются переменные ниже.
   Один системный шрифт, без внешних шрифтов и скриптов: как у сайта «Спутника», страница
   должна открываться и при ограниченном доступе в сеть. */

:root {
  --accent: #0088cc;
  --accent-bg: #d9f0fb;
  --text: #1f2933;
  --text-2: #3e4c59;
  --muted: #7b8794;
  --bg: #e8f4fb;
  --surface: #ffffff;
  --line: #e1e7ef;

  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --radius: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.wrap {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 var(--sp-md);
}

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

/* Шапка */
.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.top__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  color: var(--text);
  text-decoration: none;
}

.brand__name {
  font-weight: 700;
}

.top__link {
  text-decoration: none;
  font-weight: 600;
}

/* Первый экран */
.hero {
  padding: var(--sp-xl) 0;
}

.badge {
  display: inline-block;
  margin: 0 0 var(--sp-md);
  padding: var(--sp-xs) var(--sp-md);
  border-radius: 999px;
  background: var(--accent-bg);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

h1 {
  margin: 0 0 var(--sp-md);
  font-size: 32px;
  line-height: 1.2;
}

.lead {
  margin: 0;
  max-width: 640px;
  color: var(--text-2);
  font-size: 18px;
}

/* Разделы */
.section {
  padding: var(--sp-xl) 0;
}

.section--tint {
  background: var(--accent-bg);
}

h2 {
  margin: 0 0 var(--sp-lg);
  font-size: 24px;
}

h3 {
  margin: 0 0 var(--sp-xs);
  font-size: 18px;
}

.steps {
  display: grid;
  gap: var(--sp-md);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: var(--sp-md) var(--sp-md) var(--sp-md) 64px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-md);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
}

.steps p {
  margin: 0;
  color: var(--text-2);
}

.facts {
  display: grid;
  gap: var(--sp-md);
  margin: 0 0 var(--sp-lg);
  padding: 0;
  list-style: none;
}

.facts li {
  padding: var(--sp-md);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.note {
  margin: 0;
  color: var(--text-2);
  font-size: 14px;
}

/* Подвал */
.foot {
  padding: var(--sp-lg) 0;
  color: var(--muted);
  font-size: 14px;
}

.foot p {
  margin: 0;
}

@media (min-width: 720px) {
  h1 {
    font-size: 40px;
  }
}
