:root {
  --blue: #0a6cf0;
  --green: #2ca946;
  --primary: var(--blue);
  --primary-soft: #e8f1fe;
  --green-soft: #e7f6eb;
  --accent: #f5a524;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --text: #121a24;
  --muted: #5f6d80;
  --border: #e1e6ed;
  --error: #d13a37;
  --shadow: 0 10px 30px rgba(18, 26, 36, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --blue: #4c95ff;
    --green: #45c463;
    --primary-soft: #14243d;
    --green-soft: #12301c;
    --bg: #0d1218;
    --surface: #161e28;
    --text: #e9eef4;
    --muted: #9aa8b8;
    --border: #263241;
    --error: #ef6461;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--primary); }

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

header.site .inner,
main,
footer.site .inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand img { width: 34px; height: 34px; }
.brand .nuk { color: var(--blue); }
.brand .drive { color: var(--green); }

.lang a {
  margin-left: 12px;
  font-size: 14px;
  text-decoration: none;
}

.lang a[aria-current="page"] {
  color: var(--text);
  font-weight: 700;
}

main { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 30px; line-height: 1.25; margin: 0 0 8px; letter-spacing: -0.02em; }
h2 { font-size: 21px; margin: 36px 0 10px; letter-spacing: -0.01em; }
h3 { font-size: 17px; margin: 22px 0 6px; }

.lead { color: var(--muted); margin: 0 0 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin: 16px 0;
}

.card h2:first-child,
.card h3:first-child { margin-top: 0; }

.note {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
}

ul, ol { padding-left: 22px; }
li { margin: 4px 0; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}

.table-wrap { overflow-x: auto; }

.button {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 20px;
  border-radius: 12px;
}

footer.site {
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  padding: 20px 0 32px;
}

footer.site a { color: var(--muted); }
footer.site .links a { margin-right: 16px; }
