@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@600;700&family=Public+Sans:wght@400;500;600;700&display=swap");

:root {
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #101828;
  --muted: #525c6b;
  --border: #dce2ea;
  --accent: #2b4bd8;
  --on-accent: #ffffff;
  --accent-soft: #eaeefd;
  --on-accent-soft: #1e39ae;
  --hero-from: #1e39ae;
  --hero-to: #2b4bd8;
  --note-bg: #fae8e7;
  --note-border: #f3c9c6;
  --note-text: #8e241f;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 12px 32px rgba(16, 24, 40, 0.08);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --surface: #151b23;
    --text: #e6eaf0;
    --muted: #9ba6b4;
    --border: #232b36;
    --accent: #6d8bff;
    --on-accent: #0d1117;
    --accent-soft: #1e2a5c;
    --on-accent-soft: #c6d2ff;
    --hero-from: #1e2a5c;
    --hero-to: #2b4bd8;
    --note-bg: #3a1b1a;
    --note-border: #5a2a28;
    --note-text: #ffd6d2;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.hero {
  padding: 56px 16px 120px;
  background:
    radial-gradient(circle at 85% 0%, rgba(255, 255, 255, 0.18), transparent 45%),
    linear-gradient(135deg, var(--hero-from), var(--hero-to));
  color: #ffffff;
  text-align: center;
}

.hero img {
  display: block;
  margin: 0 auto;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.hero .brand {
  margin: 18px 0 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.hero h1 {
  font-family: "Poppins", "Public Sans", system-ui, sans-serif;
  margin: 6px 0 10px;
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero .meta {
  display: inline-block;
  margin: 0;
  padding: 4px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 13px;
  font-weight: 500;
}

main {
  position: relative;
  max-width: 780px;
  margin: -80px auto 48px;
  padding: 48px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

main > p:first-child {
  margin-top: 0;
  font-size: 18px;
  color: var(--muted);
}

h2 {
  font-family: "Poppins", "Public Sans", system-ui, sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 12px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h2::before {
  content: "";
  flex: none;
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--accent);
}

h3 {
  margin: 24px 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
}

p {
  margin: 10px 0;
}

ul {
  padding-left: 0;
  list-style: none;
}

ul li {
  position: relative;
  margin: 8px 0;
  padding-left: 24px;
}

ul li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

strong {
  font-weight: 600;
}

a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

a:hover {
  opacity: 0.8;
}

code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--note-bg);
  color: var(--note-text);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 14px;
  font-weight: 700;
}

.steps {
  counter-reset: step;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

.steps li {
  counter-increment: step;
  position: relative;
  margin: 12px 0;
  padding: 16px 18px 16px 68px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 50%;
  left: 18px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  transform: translateY(-50%);
}

.note {
  margin: 24px 0;
  padding: 16px 20px;
  border: 1px solid var(--note-border);
  border-left: 5px solid var(--note-text);
  border-radius: 12px;
  background: var(--note-bg);
  color: var(--note-text);
}

.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.contacts li {
  margin: 0;
  padding: 0;
}

.contacts li::before {
  display: none;
}

.contacts a {
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--on-accent-soft);
  word-break: break-all;
}

footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

footer nav {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 8px;
}

footer nav a {
  border-bottom: none;
}

footer p {
  margin: 0;
}

@media (max-width: 640px) {
  .hero {
    padding: 40px 16px 88px;
  }

  .hero h1 {
    font-size: 30px;
  }

  main {
    margin: -56px 12px 24px;
    padding: 28px 20px;
    border-radius: 20px;
  }

  main > p:first-child {
    font-size: 16px;
  }

  h2 {
    font-size: 20px;
  }

  .steps li {
    padding: 14px 14px 14px 60px;
  }

  .steps li::before {
    left: 14px;
  }
}
