:root {
  color-scheme: dark;
  --bg: #181818;
  --card: #202020;
  --card-strong: #26242d;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f2f0ff;
  --muted: #a8afc0;
  --accent: #a998ff;
  --accent-strong: #7659df;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(107, 78, 214, 0.24), transparent 31rem),
    radial-gradient(circle at 92% 82%, rgba(185, 96, 233, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  line-height: 1.65;
}

a { color: inherit; }

.wrap {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; }

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.site-nav .open {
  border: 1px solid var(--line);
  color: var(--text);
}

main { padding: 46px 0 84px; }

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { color: var(--text); }

.hero { max-width: 880px; }

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

h2 {
  margin: 0 0 16px;
  font-size: clamp(27px, 4vw, 38px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }

.lead {
  max-width: 800px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 23px);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 750;
  text-decoration: none;
}

.button.secondary {
  border: 1px solid var(--line);
  background: var(--card);
}

.section { margin-top: 72px; }
.section-intro { max-width: 760px; margin: -4px 0 24px; color: var(--muted); font-size: 18px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(32, 32, 32, 0.86);
}

.card p { margin: 0; color: var(--muted); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(32, 32, 32, 0.72);
}

.steps li::before {
  content: counter(step);
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 15px;
  place-items: center;
  border-radius: 50%;
  background: rgba(169, 152, 255, 0.16);
  color: var(--accent);
  font-weight: 800;
}

.steps strong { display: block; margin-bottom: 5px; }
.steps span { color: var(--muted); }

.note {
  padding: 26px 28px;
  border: 1px solid rgba(169, 152, 255, 0.26);
  border-radius: 16px;
  background: rgba(107, 78, 214, 0.11);
}

.note h2 { font-size: 25px; }
.note p { margin: 0; color: var(--muted); }

.related {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related a {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--card-strong);
  font-weight: 700;
  text-decoration: none;
}

.related a:hover,
.related a:focus-visible { border-color: rgba(169, 152, 255, 0.5); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 820px) {
  .site-header { align-items: flex-start; }
  .site-nav a:not(.open) { display: none; }
  main { padding-top: 28px; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 660px) {
  h1 { font-size: clamp(38px, 12vw, 54px); }
  .card-grid, .related { grid-template-columns: 1fr; }
  .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
