:root {
  color-scheme: light dark;
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef2f0;
  --text: #151918;
  --muted: #606966;
  --line: #dce2df;
  --accent: #087f55;
  --accent-ink: #ffffff;
  --max: 1024px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101312;
    --surface: #181c1b;
    --surface-2: #202624;
    --text: #f1f5f3;
    --muted: #a7b0ad;
    --line: #303735;
    --accent: #63dda8;
    --accent-ink: #092318;
  }
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 7px;
  color: var(--accent-ink);
  background: var(--accent);
}
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 86%, transparent);
  background: color-mix(in srgb, var(--bg) 91%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.header-inner,
.page,
.footer-inner {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 18px;
  font-weight: 680;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand img { width: 34px; height: 34px; }

.nav-wrap,
.nav-links,
.language-switch { display: flex; align-items: center; }
.nav-wrap { gap: 24px; }
.nav-links { gap: 20px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 560;
  text-decoration: none;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.language-switch {
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}
.language-switch button {
  min-width: 38px;
  min-height: 30px;
  padding: 3px 8px;
  border: 0;
  border-radius: 5px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.language-switch button[aria-pressed="true"] {
  color: var(--text);
  background: var(--surface-2);
}

.page { padding: 72px 0 88px; }
.page-narrow { max-width: 760px; }

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.025em; }
h1 { margin: 0; font-size: clamp(36px, 6vw, 64px); max-width: 830px; }
h2 { margin: 0 0 18px; font-size: 26px; }
h3 { margin: 0 0 7px; font-size: 17px; }
p { margin: 0 0 16px; }

.lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.section { margin-top: 64px; }
.section-rule { padding-top: 32px; border-top: 1px solid var(--line); }

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.support-card {
  min-height: 168px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}
.support-card p { color: var(--muted); font-size: 15px; }
.support-card a { font-weight: 620; }

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}
.contact-panel p { margin: 4px 0 0; color: var(--muted); }
.button {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 7px;
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 650;
  text-decoration: none;
}

.document-header { margin-bottom: 50px; }
.document-header h1 { font-size: clamp(34px, 5vw, 52px); }
.document-section {
  padding: 31px 0;
  border-top: 1px solid var(--line);
}
.document-section p,
.document-section li { color: var(--muted); }
.document-section strong { color: var(--text); }
.document-section ul { margin: 12px 0 0; padding-left: 23px; }
.document-section li + li { margin-top: 9px; }
.notice {
  margin: 0 0 34px;
  padding: 18px 20px;
  border-left: 3px solid var(--accent);
  background: var(--surface-2);
  color: var(--muted);
}

.site-footer { border-top: 1px solid var(--line); }
.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 13px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); }

[data-lang-panel][hidden] { display: none !important; }

@media (max-width: 720px) {
  .header-inner, .page, .footer-inner { width: min(calc(100% - 28px), var(--max)); }
  .header-inner { min-height: 62px; }
  .nav-links { display: none; }
  .nav-wrap { gap: 8px; }
  .page { padding: 48px 0 64px; }
  .lead { font-size: 17px; }
  .section { margin-top: 48px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-card { min-height: auto; }
  .contact-panel { align-items: flex-start; flex-direction: column; }
  .footer-inner { padding: 22px 0; align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
