:root {
  --navy: #15233d;
  --navy-2: #1c2f52;
  --gold: #c4a04a;
  --gold-2: #d4b56a;
  --bg: #f3f5f9;
  --white: #fff;
  --text: #243044;
  --muted: #5c6b80;
  --line: #e2e7ef;
  --card: #fff;
  --header-bg: rgba(255,255,255,.96);
  --input-bg: #fff;
  --avatar-bg: #e8edf5;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(21, 35, 61, 0.08);
  --header-h: 68px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
header.site {
  position: sticky; top: 0; z-index: 60;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: var(--header-h); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.logo-mark { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--navy); display: grid; place-items: center; }
.brand-name { font-weight: 800; letter-spacing: .04em; color: var(--navy); line-height: 1.1; }
.brand-sub { font-size: 11px; color: var(--muted); white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 20px; margin-left: auto; font-size: 15px; color: var(--navy); }
.menu a { padding: 8px 0; }
.menu a:hover { color: var(--gold); }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 0; cursor: pointer; font-weight: 600; border-radius: 999px; padding: 12px 20px; font-size: 14px; min-height: 44px; text-align: center; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--card); color: var(--navy); border: 1px solid var(--line); }
.menu-toggle {
  display: none; background: var(--card); border: 1px solid var(--line);
  width: 52px; height: 52px; border-radius: 12px; color: var(--navy);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px; padding: 0;
}
.menu-toggle span {
  display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hero { padding: clamp(36px, 7vw, 80px) 0 12px; }
.kicker { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .12em; }
.hero h1 { font-family: Georgia, Palatino, serif; font-size: clamp(32px, 7.2vw, 68px); line-height: 1.08; color: var(--navy); margin: 12px 0 16px; max-width: 16ch; }
.lead { max-width: 58ch; color: var(--muted); font-size: clamp(16px, 2vw, 18px); }
.hero-actions { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 36px 0 8px; overflow: hidden; }
.stat { text-align: center; padding: 22px 10px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: clamp(26px, 4vw, 36px); color: var(--navy); }
.stat span { font-size: 11px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
section { padding: clamp(40px, 7vw, 72px) 0; }
.section-label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h2 { font-size: clamp(24px, 4.5vw, 40px); color: var(--navy); margin: 8px 0 14px; }
h3 { color: var(--navy); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
#news-list { align-items: stretch; }
#news-list .card { height: 100%; }
.grid-2 { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 8px; }
.muted { color: var(--muted); }
.list { display: grid; gap: 10px; }
.person { display: flex; gap: 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.avatar { width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%; background: var(--avatar-bg); color: var(--navy); display: grid; place-items: center; font-weight: 700; }
.empty { color: var(--muted); font-style: italic; }
form { display: grid; gap: 12px; }
input, textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--input-bg); color: var(--text); font-size: 16px; }
textarea { min-height: 120px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--navy); }
.links-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.link-card {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); color: var(--navy);
  transition: border-color .15s, transform .15s;
}
.link-card:hover { border-color: var(--gold); transform: translateY(-2px); }
.link-card strong { font-size: 16px; }
.link-card span { color: var(--muted); font-size: 13px; line-height: 1.45; }
footer { background: var(--navy); color: #d7deea; padding: 28px 0; }
footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notice { background: #fff8e8; border: 1px solid #ead9a8; color: #6b5a32; padding: 10px 12px; border-radius: 10px; margin: 12px 0; font-size: 14px; }
.tight { padding-top: 0; }
.doc-wrap { width: min(800px, calc(100% - 32px)); margin: 0 auto; }
.doc-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 32px; box-shadow: var(--shadow); }
.doc-toc ol { padding-left: 22px; color: var(--navy); }
.doc-toc a { color: var(--navy); }
.doc-toc a:hover { color: var(--gold); }
.doc-section { padding: 8px 0 28px; border-bottom: 1px solid var(--line); }
.doc-section:last-of-type { border-bottom: 0; }
.doc-section h3 { margin: 12px 0 10px; }
.doc-section p { margin: 0 0 12px; color: var(--text); }
.doc-section ul { margin: 0 0 14px; padding-left: 20px; color: var(--muted); }
.doc-defs dt { font-weight: 700; color: var(--navy); margin: 16px 0 4px; }
.doc-defs dd { color: var(--muted); margin: 0 0 8px; }
.back-top { display: inline-block; margin-top: 8px; color: var(--navy); font-weight: 600; }
@media (max-width: 1100px) {
  .menu { gap: 14px; font-size: 14px; }
}
@media (max-width: 980px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  header.site { z-index: 70; background: #fff; }
  .nav-tools { margin-left: auto; }
  .menu-toggle { display: flex; position: relative; z-index: 80; }
  .menu {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    background: #ffffff !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h) + env(safe-area-inset-top) + 8px) 0 calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 65;
    box-shadow: none;
    border: 0;
  }
  .menu.open { display: flex !important; }
  .menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    text-align: center;
    box-sizing: border-box;
  }
  .menu a.menu-cta {
    margin: 12px 20px 0;
    width: calc(100% - 40px);
    min-height: 58px;
    font-size: 18px;
    font-weight: 700;
    color: #c4a04a;
    border-bottom: 0;
  }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
  body.menu-lock { overflow: hidden; touch-action: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(1120px, calc(100% - 24px)); }
  .brand-sub { display: none; }
  .grid-3, .two, .links-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  footer .wrap { flex-direction: column; }
}
@media (max-width: 380px) { .hero h1 { font-size: 28px; } }
@media (hover: none) {
  .link-card:hover { transform: none; }
}
