:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --ink: #102033;
  --muted: #5f6c7b;
  --line: #dbe3ee;
  --primary: #0f5f9b;
  --primary-dark: #093f68;
  --success: #147a4d;
  --warning: #b96516;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.nav {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 15px;
  font-weight: 600;
}

.hero {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 56px 0;
}

.hero h1,
.page h1 {
  margin: 0;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  margin: 18px 0 0;
  font-size: 20px;
  color: var(--muted);
}

.hero-card,
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 16px 38px rgba(15, 38, 66, 0.08);
}

.hero-card img {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  display: block;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid var(--primary);
}

.button.primary {
  color: white;
  background: var(--primary);
}

.button.secondary {
  color: var(--primary);
  background: transparent;
}

.section {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card h2,
.card h3,
.page h2 {
  margin-top: 0;
  line-height: 1.2;
}

.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(20, 122, 77, 0.12);
  color: var(--success);
  font-size: 13px;
  font-weight: 800;
}

.page {
  width: min(880px, calc(100% - 32px));
  margin: 0 auto;
  padding: 44px 0 64px;
}

.page .meta {
  color: var(--muted);
  font-weight: 600;
  margin: 8px 0 28px;
}

.page section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  margin: 16px 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 760px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
