:root {
  --navy: #163a5f;
  --navy-dark: #0f2a45;
  --blue: #2f6f9f;
  --accent: #c47b2d;
  --bg: #f5f7fa;
  --card: #ffffff;
  --text: #243041;
  --muted: #5d6b7c;
  --line: #d9e1ea;
  --max: 1080px;
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 0.7rem; color: var(--navy); }
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.container { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  background: var(--navy-dark);
  color: #d7e4f0;
  font-size: 0.85rem;
  padding: 0.45rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.topbar a { color: #fff; text-decoration: none; }

.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}
.brand {
  text-decoration: none;
  color: var(--navy);
}
.brand strong { display: block; font-size: 1.1rem; }
.brand span { display: block; font-size: 0.78rem; color: var(--muted); }
.nav { display: flex; gap: 0.35rem 1.1rem; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.2rem 0;
}
.nav a.active {
  color: var(--navy);
  border-bottom: 2px solid var(--accent);
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  padding: 2.5rem 0 2rem;
}
.hero-copy h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.8rem;
}
.hero-copy p { color: var(--muted); font-size: 1.05rem; }
.hero-actions { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; }
.hero-photo {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(22, 58, 95, 0.12);
}
.hero-photo img { width: 100%; height: 320px; object-fit: cover; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.15rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--navy);
  border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--blue); color: var(--blue); }

.facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  width: min(var(--max), calc(100% - 2rem));
  margin: 0.5rem auto 2rem;
  justify-content: center;
  align-items: stretch;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.95rem 0.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
}
.fact span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.fact strong {
  color: var(--navy);
  font-size: 0.92rem;
  line-height: 1.3;
  white-space: nowrap;
  max-width: 100%;
}
.fact strong.email {
  font-size: 0.78rem;
  letter-spacing: -0.01em;
}

.section { padding: 2.2rem 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title { margin-bottom: 0.4rem; }
.section-lead { color: var(--muted); max-width: 42rem; margin-bottom: 1.4rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.card img { width: 100%; height: 170px; object-fit: cover; }
.card .body { padding: 1rem 1.05rem 1.2rem; }
.card h3 { font-size: 1.1rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0.6rem; }
.card .more { color: var(--blue); font-weight: 700; font-size: 0.9rem; margin-top: auto; }

.page-hero {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 2rem 0 1.4rem;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); }
.page-hero p { color: var(--muted); max-width: 44rem; }

.content { padding: 2rem 0 2.5rem; }
.two-col { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 1.4rem; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1.2rem 1.25rem;
}
.panel h2 { font-size: 1.25rem; }
.meta-row { margin-bottom: 0.75rem; }
.meta-row span { display: block; color: var(--muted); font-size: 0.8rem; }
.meta-row strong { color: var(--navy); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li {
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
}
.list-plain li:last-child { border-bottom: 0; }
.list-plain time { display: block; color: var(--muted); font-size: 0.82rem; }
.list-plain h3 { font-size: 1.05rem; margin: 0.15rem 0 0.3rem; }

.news-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 0.9rem;
}
.news-item img { width: 100%; height: 100%; min-height: 120px; object-fit: cover; }
.news-item .body { padding: 0.9rem 1rem; }
.news-item time { color: var(--muted); font-size: 0.82rem; }

.site-footer {
  background: var(--navy-dark);
  color: #c9d7e6;
  padding: 2rem 0 1.4rem;
  margin-top: 1rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.2rem;
}
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.35rem; }
.footer-bottom {
  margin-top: 1.4rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero, .grid-3, .two-col, .footer-grid, .news-item {
    grid-template-columns: 1fr;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .hero-photo img { height: 220px; }
}
@media (max-width: 560px) {
  .facts {
    grid-template-columns: 1fr;
  }
  .fact strong,
  .fact strong.email {
    white-space: normal;
    font-size: 0.9rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }
}
