:root {
  --bg: #f7faf9;
  --surface: #ffffff;
  --text: #12201e;
  --muted: #5b6b68;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --line: #dbe5e2;
  --soft: #e6f4f1;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1413;
    --surface: #131e1c;
    --text: #e6efed;
    --muted: #93a6a2;
    --accent: #2dd4bf;
    --accent-ink: #062622;
    --line: #243532;
    --soft: #12302c;
  }
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    17px/1.6 system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
}
.wrap {
  width: min(1040px, 100% - 32px);
  margin-inline: auto;
}

header.top {
  border-bottom: 1px solid var(--line);
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
}
.brand img {
  width: 28px;
  height: 28px;
}
nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
nav a.link:hover {
  color: var(--text);
}
@media (max-width: 640px) {
  nav a.link {
    display: none;
  }
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn:hover {
  filter: brightness(1.08);
}
.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn.ghost:hover {
  border-color: var(--accent);
}

.hero {
  padding: 72px 0 40px;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pulse {
  margin-top: 44px;
  width: 100%;
  height: 70px;
  color: var(--accent);
}
.pulse path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  animation: draw 3.2s ease-out forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pulse path {
    animation: none;
    stroke-dashoffset: 0;
  }
  html {
    scroll-behavior: auto;
  }
}

section {
  padding: 56px 0;
}
section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
section p.sub {
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 62ch;
}

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
}
.tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 2px 9px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--accent);
  margin-bottom: 10px;
}

.band {
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.points li {
  padding-left: 30px;
  position: relative;
}
.points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 14px;
  height: 8px;
  border-left: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  transform: rotate(-45deg);
}
.points b {
  color: var(--text);
}

.steps {
  counter-reset: s;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0;
  list-style: none;
  margin: 0;
}
.steps li {
  counter-increment: s;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.steps li::before {
  content: counter(s);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  margin-bottom: 10px;
}
.steps b {
  display: block;
  margin-bottom: 4px;
}
.steps span {
  color: var(--muted);
  font-size: 0.97rem;
}

.note {
  font-size: 0.92rem;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 14px;
  max-width: 70ch;
}

footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}
footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
footer a {
  color: var(--muted);
}

/* юридические страницы */
.doc {
  padding: 48px 0 24px;
  max-width: 760px;
}
.doc h1 {
  font-size: clamp(1.8rem, 4.5vw, 2.4rem);
  margin: 0 0 6px;
}
.doc h2 {
  font-size: 1.3rem;
  margin: 36px 0 8px;
}
.doc .date {
  color: var(--muted);
  margin: 0 0 24px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin: 4px 0;
}
.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  margin: 12px 0;
}
.doc th,
.doc td {
  text-align: left;
  border: 1px solid var(--line);
  padding: 8px 10px;
  vertical-align: top;
}
.doc th {
  background: var(--soft);
}
