:root {
  color-scheme: light;
  --background: #f7f8fc;
  --surface: #ffffff;
  --text: #202331;
  --muted: #626779;
  --accent: #6b56c9;
  --accent-soft: #eeeafd;
  --border: #e2e4ec;
  --shadow: 0 16px 40px rgba(35, 27, 76, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
}

.header-inner,
.page {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
}

.header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  font-size: 1.35rem;
  font-weight: 750;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.language-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.95rem;
}

.language-switch a,
.language-switch span {
  border-radius: 999px;
  padding: 5px 10px;
  text-decoration: none;
}

.language-switch .active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 650;
}

.page { padding: 48px 0 64px; }

.hero,
.document {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.hero { padding: clamp(28px, 6vw, 56px); }
.document { padding: clamp(24px, 5vw, 48px); }

h1, h2, h3 {
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 6vw, 3.35rem);
}

h2 {
  margin: 2.2rem 0 0.7rem;
  font-size: 1.35rem;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.08rem;
}

p { margin: 0.75rem 0; }
ul, ol { padding-left: 1.4rem; }
li + li { margin-top: 0.35rem; }

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

.meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.card {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 1.08rem;
}

.card span { color: var(--muted); }

.notice {
  margin: 1.5rem 0;
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: var(--accent-soft);
}

.steps li { padding-left: 0.25rem; }

.footer {
  width: min(100% - 32px, 920px);
  margin: 0 auto;
  padding: 0 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

@media (max-width: 640px) {
  .header-inner { min-height: 60px; }
  .page { padding-top: 24px; }
  .cards { grid-template-columns: 1fr; }
}

