/* Jaqyn — лендинг. Цвета и шрифт те же, что в приложении. */
:root {
  --ink: #14282c;
  --muted: #505e61;
  --line: #d3dbdc;
  --bg: #f5f7f7;
  --surface: #ffffff;
  --cyan: #0b7a8c;
  --danger: #cd3a50;
  --tint-cyan: #dceff2;
  --tint-blue: #e3ecfb;
  --tint-red: #fae7ea;
  --wrap: 1040px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Mulish, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.logo img {
  display: block;
  height: 22px;
  width: auto;
}

.lang {
  display: inline-flex;
  padding: 2px;
  border-radius: 22px;
  background: #e7eced;
}

.lang button {
  min-width: 52px;
  height: 40px;
  border: 0;
  border-radius: 20px;
  background: none;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.lang button[aria-pressed='true'] {
  background: var(--ink);
  color: #fff;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
}

.btn:hover {
  background: #1f3a40;
}

.btn:focus-visible,
.lang button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}

/* Первый экран */
.hero {
  padding-top: 56px;
  padding-bottom: 72px;
}

.eyebrow {
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 {
  max-width: 16ch;
  margin-top: 12px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 34em;
  margin: 20px 0 28px;
  color: var(--muted);
  font-size: 19px;
}

.hero-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
}

/* Разделы */
section {
  padding: 64px 0;
}

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

h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.card {
  padding: 22px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.card li {
  color: var(--muted);
  font-size: 16px;
}

.card li + li {
  margin-top: 4px;
}

/* Шаги */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  counter-reset: step;
}

.steps li {
  padding: 22px;
  border-radius: 18px;
  background: var(--tint-cyan);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 8px;
  font-size: 40px;
  line-height: 1;
  font-weight: 800;
}

.steps li:nth-child(2) {
  background: var(--tint-blue);
}

.steps li:nth-child(3) {
  background: var(--tint-red);
}

/* Два списка с точками */
.cols {
  display: grid;
  gap: 40px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.points li {
  position: relative;
  padding-left: 18px;
}

.points li + li {
  margin-top: 10px;
}

.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.emergency {
  margin-top: 40px;
  padding: 18px 22px;
  border-radius: 14px;
  background: var(--tint-red);
  font-weight: 600;
}

.emergency a {
  color: var(--danger);
  white-space: nowrap;
}

/* Подвал */
footer {
  padding: 40px 0 56px;
  background: var(--ink);
  color: #fff;
}

footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
}

footer img {
  display: block;
  height: 20px;
  width: auto;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 15px;
}

footer a {
  color: #dceff2;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Страница с документом */
.doc {
  max-width: 760px;
  padding-top: 32px;
  padding-bottom: 72px;
}

.doc h1 {
  max-width: none;
  font-size: clamp(30px, 5vw, 44px);
}

.doc .meta {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 15px;
}

.doc h2 {
  margin: 40px 0 12px;
  font-size: 22px;
}

.doc p,
.doc li {
  color: #26393d;
}

.doc p + p,
.doc ul + p,
.doc ol + p,
.doc p + ul {
  margin-top: 12px;
}

.doc ul {
  padding-left: 22px;
  list-style: disc;
}

.doc ol {
  padding-left: 22px;
  list-style: decimal;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: var(--cyan);
}

.draft {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--tint-red);
  font-size: 15px;
}

mark {
  padding: 1px 4px;
  border-radius: 4px;
  background: #ffe9a8;
  color: inherit;
}

@media (max-width: 520px) {
  .hero {
    padding-top: 32px;
    padding-bottom: 48px;
  }

  section {
    padding: 48px 0;
  }

  .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
