:root {
  --bg: #fbf8f5;
  --surface: #ffffff;
  --text: #1d1b26;
  --muted: #5d5a6b;
  --line: #e6e0da;
  --accent: #c43f7e;
  --accent-2: #5e2a8c;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15131d;
    --surface: #1f1c2a;
    --text: #f2eff7;
    --muted: #aaa5ba;
    --line: #2f2b3d;
    --accent: #ff8fb8;
    --accent-2: #c9a6ff;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

header.site {
  background: linear-gradient(180deg, #231a5c 0%, #5e2a8c 38%, #c43f7e 72%, #f9744e 100%);
  color: #fff;
  padding: 48px 0 40px;
}
header.site .brand { display: flex; align-items: center; gap: 18px; }
header.site img { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 6px 24px rgba(0,0,0,.3); }
header.site h1 { margin: 0; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; }
header.site p { margin: 6px 0 0; color: #fff; opacity: .9; }

nav.tabs { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
nav.tabs a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 7px 16px; border-radius: 999px; background: rgba(255,255,255,.16);
}
nav.tabs a[aria-current="page"] { background: #fff; color: #5e2a8c; }

main { padding: 36px 0 24px; }
h2 { font-size: 24px; letter-spacing: -0.01em; margin: 40px 0 12px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
p, li { color: var(--text); }
.muted { color: var(--muted); }
a { color: var(--accent); }

figure { margin: 24px 0; }
figure img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); }
figcaption { color: var(--muted); font-size: 14px; margin-top: 8px; }

ol.steps { padding-left: 0; list-style: none; counter-reset: step; }
ol.steps li {
  counter-increment: step; position: relative; padding: 14px 16px 14px 60px; margin: 10px 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
ol.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 700; font-size: 15px;
}

details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 10px 0;
}
details summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 2px; }

.contact {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-top: 16px;
}
.contact a.email { font-size: 20px; font-weight: 600; word-break: break-all; }

footer { border-top: 1px solid var(--line); padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
footer a { color: var(--muted); }

@media (max-width: 520px) {
  header.site h1 { font-size: 27px; }
  header.site img { width: 64px; height: 64px; }
  body { font-size: 16px; }
}
