:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f6;
  --text: #18202a;
  --muted: #5b6573;
  --border: #d9dee6;
  --primary: #1f4b7a;
  --primary-2: #173858;
  --success: #0f6a43;
  --warning: #8a5b10;
  --danger: #8b1e2d;
  --shadow: 0 18px 44px rgba(12, 22, 33, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  background: linear-gradient(180deg, #f5f7fa 0%, #eef2f6 100%);
  color: var(--text);
  line-height: 1.62;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 222, 230, 0.85);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 78px; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand img { width: 52px; height: 52px; object-fit: contain; border-radius: 14px; background: #fff; border: 1px solid var(--border); padding: 6px; }
.brand-title { font-size: 1.05rem; font-weight: 700; margin: 0; }
.brand-subtitle { margin: 2px 0 0; color: var(--muted); font-size: 0.92rem; }
.nav-links {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end;
}
.nav-links a {
  padding: 10px 14px; border-radius: 999px; color: var(--text); font-weight: 600;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--surface-2); text-decoration: none;
}
.hero { padding: 68px 0 34px; }
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.95fr; gap: 22px; align-items: stretch;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-main { padding: 34px; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px; background: #eef4fa; color: var(--primary-2);
  border: 1px solid #d4e1ef; padding: 8px 12px; border-radius: 999px; font-weight: 700; font-size: 0.84rem;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -0.03em; }
.hero p.lead { font-size: 1.08rem; color: var(--muted); margin: 0 0 24px; max-width: 68ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border);
  background: #fff; color: var(--text); font-weight: 700; text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-2); }
.hero-side { padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 11px 0; border-bottom: 1px solid var(--border); }
.list-clean li:last-child { border-bottom: 0; }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 24px; }
.stat {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px;
}
.stat strong { display: block; font-size: 1.5rem; letter-spacing: -0.03em; }
.section { padding: 18px 0 34px; }
.section h2 { font-size: clamp(1.4rem, 2vw, 2rem); margin: 0 0 10px; letter-spacing: -0.02em; }
.section p.section-intro { color: var(--muted); margin: 0 0 18px; max-width: 70ch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.link-card { padding: 22px; }
.link-card h3 { margin: 0 0 10px; font-size: 1.14rem; }
.link-card p { margin: 0 0 14px; color: var(--muted); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border); font-size: 0.82rem; font-weight: 700; color: var(--muted);
}
.content-wrap { padding: 44px 0 64px; }
.page-grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.sidebar {
  position: sticky; top: 94px; padding: 18px; background: rgba(255,255,255,0.88);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sidebar h3 { margin: 0 0 10px; font-size: 0.98rem; }
.sidebar ul { list-style: none; padding: 0; margin: 0; }
.sidebar li a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); font-weight: 600;
}
.sidebar li a:hover { background: var(--surface-2); text-decoration: none; }
.article { padding: 30px; }
.article h1 { font-size: clamp(2rem, 3.2vw, 2.85rem); line-height: 1.08; margin: 0 0 12px; letter-spacing: -0.03em; }
.meta { color: var(--muted); font-size: 0.94rem; margin-bottom: 24px; }
.article section + section { margin-top: 28px; }
.article h2 { font-size: 1.35rem; margin: 0 0 10px; }
.article h3 { font-size: 1.06rem; margin: 16px 0 8px; }
.article p, .article li { color: #26313d; }
.article ul, .article ol { padding-left: 22px; }
.notice {
  border-radius: 14px; padding: 14px 16px; margin: 16px 0; border: 1px solid var(--border); background: var(--surface-2);
}
.notice-warning { border-color: #ead8b1; background: #fff8e9; color: #6b5116; }
.notice-success { border-color: #bfe4d3; background: #edf8f2; color: #225c42; }
.notice-danger { border-color: #eac0c5; background: #fff2f3; color: #7c2330; }
.table-wrap { overflow-x: auto; margin: 14px 0; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
th { background: var(--surface-2); }
.footer {
  padding: 28px 0 44px; color: var(--muted); border-top: 1px solid rgba(217, 222, 230, 0.9); margin-top: 24px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.footer h4 { margin: 0 0 10px; color: var(--text); }
.small { font-size: 0.92rem; }
.cookie-banner {
  position: fixed; inset: auto 16px 16px 16px; z-index: 50; background: rgba(17,24,39,0.97); color: #fff;
  border-radius: 18px; padding: 18px; box-shadow: 0 16px 48px rgba(0,0,0,0.3); max-width: 860px; margin: 0 auto;
}
.cookie-banner p { margin: 0 0 14px; color: rgba(255,255,255,0.88); }
.cookie-banner .actions { justify-content: flex-end; }
.cookie-banner .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,0.22); }
.cookie-banner .btn-primary { background: #fff; color: #101827; border-color: #fff; }
.hidden { display: none !important; }
.code-box {
  background: #101827; color: #eaf1fb; border-radius: 14px; padding: 16px; overflow: auto; font-family: Consolas, monospace; font-size: 0.92rem;
}
@media (max-width: 1040px) {
  .hero-grid, .page-grid, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 760px) {
  .hero { padding-top: 38px; }
  .nav { flex-direction: column; align-items: stretch; padding: 10px 0 12px; }
  .nav-links { justify-content: flex-start; }
  .hero-main, .hero-side, .article { padding: 22px; }
  .cookie-banner { inset: auto 10px 10px 10px; }
}
