:root {
  --bg: #f7f8fa;
  --bg-alt: #eef1f5;
  --surface: #ffffff;
  --text: #121826;
  --muted: #4b5567;
  --border: #dde2ea;
  --accent: #1f5eff;
  --accent-ink: #ffffff;
  --radius: 14px;
  --wrap: 1120px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-alt: #121821;
    --surface: #161d28;
    --text: #e8ecf3;
    --muted: #9aa5b8;
    --border: #253041;
    --accent: #5b8cff;
    --accent-ink: #0d1117;
    color-scheme: dark;
  }
}

* { 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;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: inherit; }

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

.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; text-decoration: none; }
.brand__mark { width: 30px; height: 30px; }
.brand__mark rect { fill: var(--accent); }
.brand__mark path { fill: none; stroke: var(--accent-ink); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }

.lang { display: flex; border: 1px solid var(--border); border-radius: 999px; padding: 2px; }
.lang button {
  border: 0; background: transparent; color: var(--muted);
  font: 600 13px/1 inherit; padding: 7px 11px; border-radius: 999px; cursor: pointer;
}
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.hero { padding: 96px 0 80px; }
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 13px; }
.hero h1 { font-size: clamp(34px, 5.5vw, 58px); max-width: 17ch; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

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

.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.section h2 { font-size: clamp(26px, 3.5vw, 36px); margin-bottom: 36px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 30px; height: 30px; margin-bottom: 16px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding-top: 16px; border-top: 2px solid var(--accent); }
.steps li::before { content: "0" counter(step); display: block; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.steps p { color: var(--muted); margin: 0; }

.contact { text-align: center; }
.contact .lead { margin: 0 auto 28px; }

.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }

@media (max-width: 640px) {
  .nav { display: none; }
  .lang { margin-left: auto; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 56px 0; }
}
