:root {
  --blue: #0e4d92;
  --blue-deep: #0a3870;
  --blue-soft: #e8f0f8;
  --ink: #122033;
  --muted: #5b6b7c;
  --line: #d7e0ea;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --max: 1120px;
  --header: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button, .btn { font-family: inherit; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; z-index: 80; background: #fff; padding: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--blue);
  color: #fff;
  font-size: 13px;
}
.topbar-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.topbar a { color: #fff; text-decoration: none; }

.news-ticker {
  display: flex;
  align-items: stretch;
  background: #0a3870;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.08);
  min-height: 38px;
}
.news-ticker-label {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: #08305f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
}
.news-ticker-mask {
  overflow: hidden;
  flex: 1;
  display: flex;
  align-items: center;
}
.news-ticker-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker 42s linear infinite;
}
.news-ticker-track a {
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  padding: 0 4px;
}
.news-ticker-track a:hover { text-decoration: underline; }
.news-dot { padding: 0 16px; opacity: 0.45; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.news-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.news-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  min-height: 100%;
}
.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: var(--blue-soft);
}
.news-card-body { padding: 16px 18px 20px; }
.news-card h3 { font-size: 18px; margin: 6px 0 8px; }
.news-card:hover { border-color: var(--blue); }
.news-card--featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.news-card--featured img { height: 100%; min-height: 260px; }

@media (max-width: 900px) {
  .news-list { grid-template-columns: 1fr; }
  .news-card--featured { grid-template-columns: 1fr; }
  .news-card--featured img { min-height: 180px; height: 200px; }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { display: flex; align-items: center; gap: 20px; }
.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.header-tools { display: flex; align-items: center; gap: 8px; }
.lang { display: flex; border: 1px solid var(--line); }
.lang button {
  border: 0;
  background: #fff;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--muted);
}
.lang button.active { background: var(--blue); color: #fff; }

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  width: 40px;
  height: 40px;
  cursor: pointer;
}

.hero {
  background: var(--blue);
  color: #fff;
  padding: 56px 0 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: center;
  padding-bottom: 48px;
}
.hero-logo {
  width: 220px;
  height: auto;
  background: #fff;
  padding: 16px;
}
.kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
  margin-bottom: 12px;
}
h1, h2, h3 {
  margin: 0 0 12px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
h1 { font-size: clamp(40px, 6vw, 64px); }
h2 { font-size: clamp(26px, 3vw, 34px); }
h3 { font-size: 20px; }
.lead {
  font-size: 18px;
  max-width: 560px;
  opacity: 0.88;
}
.hero .lead { color: #d7e6f5; }

.hero-meta-row {
  background: var(--blue-deep);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-meta-row div {
  padding: 16px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
  font-size: 13px;
}
.hero-meta-row b { display: block; font-size: 14px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 11px 18px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.hero .btn-primary { background: #fff; color: var(--blue); }
.hero .btn-primary:hover { background: var(--blue-soft); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.hero .btn-ghost {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.hero .btn-ghost:hover { background: rgba(255,255,255,0.12); color: #fff; }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--blue); color: var(--blue); }
.btn-solid { background: var(--blue); color: #fff; }
.btn-solid:hover { background: var(--blue-deep); }

.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 28px;
}
.muted { color: var(--muted); }
.tiny { font-size: 13px; color: var(--muted); }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 0;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card, .stat, .doc, .person, .news, .notice, .symbol-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px;
}
.card, .stat { border-right: 0; }
.grid-4 > :last-child,
.grid-3 > :last-child,
.grid-2 > :last-child { border-right: 1px solid var(--line); }

.level-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-right: 0;
  background: #fff;
}
.grid-4 .level-card:last-child { border-right: 1px solid var(--line); }
.level-num {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
}

.stat b {
  display: block;
  font-size: 28px;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
}

.page-hero {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.page-hero .lead { color: var(--muted); opacity: 1; }
.page-hero + .section { padding-top: 36px; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { text-decoration: none; color: var(--blue); }

.doc {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  margin-bottom: -1px;
}
.doc small { color: var(--muted); }
.doc:hover { background: var(--blue-soft); }

.list { padding-left: 18px; }
.list li { margin: 8px 0; }

.notice { background: var(--blue-soft); border-color: #c5d8ec; }

.site-footer {
  background: #0b2f59;
  color: #d7e6f5;
  padding: 48px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
}
.site-footer a { color: #d7e6f5; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-logo {
  width: 110px;
  height: auto;
  background: #fff;
  padding: 8px;
  margin-bottom: 14px;
}
.site-footer h4 {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8fb4d8;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.copyright {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 13px;
  color: #8fb4d8;
}

.symbols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.symbol-card { border-right: 0; min-height: 200px; }
.symbols .symbol-card:last-child { border-right: 1px solid var(--line); }
.flag {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: #00afca;
  margin-bottom: 16px;
  position: relative;
}
.flag:before {
  content: "☀";
  position: absolute;
  left: 14px;
  top: 12px;
  color: #ffd200;
  font-size: 26px;
}

@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .footer-grid, .symbols, .section-head, .hero-meta-row {
    grid-template-columns: 1fr;
  }
  .card, .stat, .level-card, .symbol-card {
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }
  .grid-4 > :last-child,
  .grid-3 > :last-child,
  .grid-2 > :last-child,
  .symbols .symbol-card:last-child { border-bottom: 1px solid var(--line); }
  .hero-logo { width: 140px; }
  .nav {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(36px + var(--header));
    background: #fff;
    border: 1px solid var(--line);
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }
  .nav.open { display: flex; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner { position: relative; }
}
