:root {
  --ink: #0F2A44;
  --muted: #5C7290;
  --bg: #F7F9FC;
  --surface: #FFFFFF;
  --border: rgba(15, 42, 68, 0.10);
  --brand: #185FA5;
  --brand-dark: #124A82;
  --sans: -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}
a { color: var(--brand); text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header/Footer ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.3px; }
.site-header nav { display: flex; gap: 24px; }
.site-header nav a { color: var(--muted); font-weight: 600; font-size: 15px; }
.site-header nav a:hover { color: var(--brand); }

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 64px;
  padding: 32px 0;
  color: var(--muted);
  font-size: 14px;
}

main { max-width: 1080px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 48px; text-align: center; }
.hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.5px;
  text-wrap: balance;
  max-width: 18ch;
  margin: 0 auto 16px;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 auto;
}

/* ---------- Products ---------- */
.products { padding: 32px 0; }
.products h2, .news-preview h2, .news-list-page h1 {
  font-size: 26px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 24px;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -12px rgba(15, 42, 68, 0.18);
  border-color: var(--brand);
}
.product-icon { font-size: 32px; }
.product-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.product-desc { font-size: 14px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; background: var(--brand); color: #fff; border-radius: 20px;
  padding: 2px 9px; vertical-align: middle;
}
.empty { color: var(--muted); }

/* ---------- News ---------- */
.news-preview { padding: 32px 0; }
.news-list-page { padding: 48px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 180ms ease;
}
.news-card:hover { box-shadow: 0 12px 28px -12px rgba(15, 42, 68, 0.18); }
.news-card a { color: inherit; display: block; }
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card h2, .news-card h3 { font-size: 18px; margin: 16px 16px 6px; }
.news-card p { font-size: 14px; color: var(--muted); margin: 0 16px 12px; }
.news-card time { display: block; font-size: 12px; color: var(--muted); margin: 0 16px 16px; }
.see-all { display: inline-block; margin-top: 16px; font-weight: 600; }

/* ---------- Article ---------- */
.news-article { padding: 48px 0; max-width: 720px; margin: 0 auto; }
.news-article h1 { font-size: 34px; font-weight: 800; letter-spacing: -0.3px; margin-bottom: 8px; }
.news-article time { color: var(--muted); font-size: 14px; }
.news-article .cover { width: 100%; border-radius: 16px; margin: 24px 0; }
.article-body { font-size: 17px; margin-top: 24px; }
.article-body p { margin: 0 0 18px; }
.article-body img { border-radius: 12px; margin: 24px 0; }
.article-body h2 { font-size: 24px; margin: 32px 0 12px; }

@media (max-width: 640px) {
  .site-header nav { gap: 14px; }
  .hero { padding: 48px 0 32px; }
}
