:root {
  color-scheme: light;
  --font-body: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --ink: #142128;
  --muted: #57666d;
  --line: #d4ded9;
  --line-strong: #aebdb7;
  --paper: #f5f4ef;
  --white: #fffefa;
  --green: #087263;
  --green-dark: #075448;
  --blue: #2c719d;
  --focus: #1e81b0;
  --radius-sm: 12px;
  --radius-md: 18px;
  --shadow-soft: 0 12px 34px rgba(20, 33, 40, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--paper); line-height: 1.7; text-rendering: optimizeLegibility; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.shell { width: min(980px, calc(100% - 36px)); margin-inline: auto; }

.site-header { background: rgba(255, 254, 250, 0.96); border-bottom: 1px solid var(--line); }
.nav { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { min-height: 44px; display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; }
.brand-logo { display: block; width: 50px; height: 50px; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.92rem; font-weight: 700; }
.nav-links a { min-height: 44px; display: inline-flex; align-items: center; color: var(--muted); text-decoration: underline; text-decoration-color: transparent; }

.hero { padding: clamp(46px, 8vw, 68px) 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(255,255,255,0.38), transparent); }
.kicker { margin: 0 0 12px; color: var(--green); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.11em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.025em; text-wrap: balance; }
h1 { max-width: 760px; font-size: clamp(2.25rem, 6vw, 4rem); }
.lead { max-width: 760px; margin: 18px 0 0; color: var(--muted); font-size: 1.08rem; }
.updated { margin-top: 14px; color: var(--muted); font-size: 0.92rem; }

main { padding: 36px 0 76px; }
.doc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.card, .section, .notice { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.card { min-height: 180px; padding: 24px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-soft); }
.card h2 { font-size: 1.2rem; }
.card p { margin: 12px 0 0; color: var(--muted); }
.notice { padding: 22px; margin: 0 0 20px; border-left: 5px solid var(--green); border-radius: 6px var(--radius-sm) var(--radius-sm) 6px; }
.notice p { margin: 0; }
.section { padding: clamp(22px, 4vw, 30px); margin-top: 18px; }
.section h2 { font-size: 1.35rem; }
.section h3 { margin-top: 18px; font-size: 1.05rem; }
.section p { margin: 12px 0 0; color: var(--muted); }
ul { margin: 12px 0 0; padding-left: 22px; color: var(--muted); }
li + li { margin-top: 8px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid var(--ink); border-radius: var(--radius-sm); background: var(--ink); color: var(--white); text-decoration: none; font-weight: 800; }
.button.secondary { background: transparent; color: var(--ink); }
.back-link { min-height: 44px; display: inline-flex; align-items: center; margin-bottom: 18px; color: var(--green-dark); font-weight: 800; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }

footer { padding: 30px 0; background: var(--ink); color: var(--white); }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
footer a { min-height: 44px; display: inline-flex; align-items: center; color: #d7e5e1; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }

@media (hover: hover) {
  .nav-links a:hover, footer a:hover { color: var(--ink); text-decoration-color: currentColor; }
  footer a:hover { color: var(--white); }
  .card:hover { border-color: rgba(44, 113, 157, 0.55); transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20, 33, 40, 0.1); }
  .button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(20, 33, 40, 0.16); }
}
.nav-links a, footer a, .card, .button { transition: color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, text-decoration-color 180ms ease; }

@media (max-width: 780px) {
  .nav { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  .doc-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 42px; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 28px, 980px); }
  .actions { display: grid; }
  .button { width: 100%; }
  .footer-links { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
