:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #18212f;
  --muted: #5f6b7a;
  --line: #dce2ea;
  --brand: #2266b0;
  --brand-dark: #164779;
  --accent: #2f8f6d;
  --warn: #c67b22;
  --shadow: 0 12px 28px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.logo {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.nav a {
  color: var(--text);
  padding: 7px 9px;
  border-radius: 6px;
  font-size: 14px;
}

.nav a.active,
.nav a:hover {
  background: #e8f0fa;
  text-decoration: none;
}

.search {
  display: flex;
  gap: 6px;
}

.search input,
input,
textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
  background: #fff;
}

.search input {
  width: 190px;
}

button,
.button {
  border: 0;
  border-radius: 6px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
}

button:hover,
.button:hover {
  background: var(--brand-dark);
  text-decoration: none;
}

.hero {
  background: #eaf1f8;
  border-bottom: 1px solid var(--line);
}

.hero-inner,
.content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 34px;
  align-items: center;
}

.hero h1,
.page-title h1 {
  margin: 0 0 14px;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  max-width: 720px;
}

.hero-art {
  width: 100%;
  border-radius: 8px;
  box-shadow: var(--shadow);
  background: #fff;
}

.section {
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.section:first-child {
  border-top: 0;
}

h2 {
  margin: 0 0 14px;
  font-size: 28px;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
  letter-spacing: 0;
}

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

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.card p,
.card ul {
  margin-bottom: 0;
}

.card pre,
pre.card {
  overflow-x: auto;
  white-space: pre-wrap;
}

.tag {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  padding: 16px;
}

.stat strong {
  display: block;
  font-size: 28px;
  color: var(--brand-dark);
}

.example-list {
  display: grid;
  gap: 12px;
}

.example {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.timeline {
  display: grid;
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}

.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.media {
  width: 100%;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

th {
  background: #eef4fa;
}

.download-list,
.resource-list {
  display: grid;
  gap: 12px;
}

.download-item,
.resource-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form {
  display: grid;
  gap: 12px;
  max-width: 680px;
}

textarea {
  min-height: 130px;
  resize: vertical;
}

.note {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 900px) {
  .topbar,
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .search input {
    width: 100%;
  }

  .grid,
  .grid.two,
  .gallery,
  .stat-row {
    grid-template-columns: 1fr;
  }

  .hero h1,
  .page-title h1 {
    font-size: 32px;
  }
}
