
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --text: #172033;
  --muted: #5f6b7a;
  --primary: #1f66d1;
  --primary-dark: #154a9a;
  --accent: #8d4fc7;
  --border: #dfe5ee;
  --success: #177245;
  --danger: #a43131;
  --shadow: 0 14px 40px rgba(23, 32, 51, .09);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #eef4ff 0, var(--bg) 260px);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.66;
}
a { color: var(--primary); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
header { padding: 22px 20px 52px; }
.nav {
  max-width: 1160px; margin: 0 auto; display: flex; align-items: center;
  justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); font-weight: 800; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; font-size: 20px;
  box-shadow: 0 8px 20px rgba(31,102,209,.22);
}
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-links a { text-decoration: none; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 650; }
.nav-links a:hover, .nav-links a[aria-current="page"] { background: #e7efff; color: var(--primary-dark); }
.hero { max-width: 980px; margin: 36px auto 0; text-align: center; }
.eyebrow { display: inline-block; padding: 6px 11px; border-radius: 999px; background: #e7efff; color: var(--primary-dark); font-weight: 750; font-size: .85rem; }
h1 { font-size: clamp(2rem, 5vw, 3.35rem); line-height: 1.12; margin: 16px 0 14px; letter-spacing: -.035em; }
.hero p { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.08rem; }
main { max-width: 980px; margin: -20px auto 70px; padding: 0 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: clamp(22px, 5vw, 46px); box-shadow: var(--shadow); }
.notice { border-left: 4px solid var(--primary); background: #f1f6ff; padding: 15px 18px; border-radius: 12px; margin: 22px 0; }
.notice.success { border-color: var(--success); background: #effaf4; }
.notice.warning { border-color: #ad6a00; background: #fff8e8; }
.notice.danger { border-color: var(--danger); background: #fff2f2; }
.toc { background: #f8fafc; border: 1px solid var(--border); border-radius: 15px; padding: 18px 22px; margin: 26px 0; }
.toc strong { display: block; margin-bottom: 8px; }
.toc ol { columns: 2; column-gap: 34px; margin: 0; padding-left: 20px; }
section { scroll-margin-top: 20px; }
h2 { margin-top: 42px; font-size: 1.48rem; line-height: 1.25; }
h3 { margin-top: 28px; font-size: 1.12rem; }
p, li { color: #2c3748; }
ul, ol { padding-left: 24px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; min-width: 680px; background: white; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
th { background: #f4f7fb; color: var(--text); }
tr:last-child td { border-bottom: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0; }
.mini-card { border: 1px solid var(--border); border-radius: 16px; padding: 20px; background: #fff; }
.mini-card h2, .mini-card h3 { margin-top: 0; }
.button, button {
  appearance: none; border: 0; border-radius: 12px; padding: 12px 18px; background: var(--primary);
  color: white; font-weight: 750; cursor: pointer; text-decoration: none; display: inline-block;
}
.button:hover, button:hover { background: var(--primary-dark); color: white; }
.button.secondary { background: #e7efff; color: var(--primary-dark); }
form { margin-top: 28px; }
label { display: block; font-weight: 720; margin: 16px 0 7px; }
input, select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid #bfc9d8; border-radius: 10px; font: inherit; background: white; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(31,102,209,.16); border-color: var(--primary); }
textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; }
.checkbox input { width: auto; margin-top: 6px; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.meta { color: var(--muted); font-size: .94rem; }
.lang-switch { margin-top: 18px; }
footer { border-top: 1px solid var(--border); background: white; padding: 30px 20px; }
.footer-inner { max-width: 980px; margin: auto; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); }
.footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
code { background: #f1f4f8; padding: 2px 6px; border-radius: 6px; }
@media (max-width: 720px) {
  .toc ol { columns: 1; }
  .grid { grid-template-columns: 1fr; }
  header { padding-bottom: 38px; }
  main { margin-top: -10px; }
  .card { border-radius: 16px; padding: 22px 18px; }
  .nav-links { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .nav-links a { white-space: nowrap; }
}
@media print {
  body { background: white; }
  header .nav-links, footer, .lang-switch { display: none; }
  main { margin: 0 auto; }
  .card { box-shadow: none; border: 0; }
}
