:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --panel-soft: #eef4f8;
  --ink: #172033;
  --muted: #5b687a;
  --line: #d8e1ea;
  --accent: #0f766e;
  --accent-dark: #0b4f4a;
  --blue: #2563eb;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }

a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand strong,
.brand small { display: block; }

.brand strong { font-size: 1rem; letter-spacing: 0.02em; }
.brand small { color: var(--muted); font-size: 0.78rem; }

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 650;
}

.nav-links a:hover { color: var(--accent-dark); }

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

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.88fr);
  align-items: center;
  gap: 48px;
  padding: 54px 0 36px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  max-width: 800px;
  font-size: clamp(2.45rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

h3 { margin-bottom: 10px; font-size: 1.08rem; }

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.18rem;
}

.hero-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary { background: var(--accent); color: #fff; }
.button.secondary { border: 1px solid var(--line); background: #fff; color: var(--ink); }

.hero-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
}

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

.section.alt {
  margin-left: -24px;
  margin-right: -24px;
  padding-left: 24px;
  padding-right: 24px;
  background: var(--panel-soft);
  border-radius: 18px;
  border-top: 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-heading p { color: var(--muted); font-size: 1.05rem; }
.section-heading.compact { margin-bottom: 22px; }

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

.card,
.note-panel,
.contact-card,
.publication-card,
.tool-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.card { padding: 24px; }
.card p { color: var(--muted); margin-bottom: 0; }

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

.tool-list article {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px;
}

.tool-list span {
  color: var(--blue);
  font-weight: 900;
  font-size: 1.5rem;
}

.tool-list p { color: var(--muted); margin-bottom: 0; }

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

.publication-card {
  min-height: 190px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
}

.publication-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.publication-card span { color: var(--accent); font-size: 0.78rem; text-transform: uppercase; font-weight: 900; letter-spacing: 0.12em; }
.publication-card strong { font-size: 1.18rem; line-height: 1.25; }
.publication-card em { color: var(--muted); font-style: normal; }

.note-panel {
  margin-top: 18px;
  padding: 22px 24px;
  background: #fbfdff;
}
.note-panel p { color: var(--muted); margin-bottom: 0; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
}

.contact-section p { color: var(--muted); }

.contact-card {
  padding: 26px;
  display: grid;
  gap: 8px;
}

.contact-card a {
  color: var(--accent-dark);
  font-size: 1.25rem;
  font-weight: 900;
  text-decoration: none;
}

.contact-card span { color: var(--muted); }

footer {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 42px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 900px) {
  .nav { align-items: flex-start; flex-direction: column; }
  .nav-links { flex-wrap: wrap; gap: 14px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .grid.three,
  .publication-grid,
  .contact-section { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  main, .nav, footer { padding-left: 18px; padding-right: 18px; }
  .section { padding: 54px 0; }
  .tool-list article { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}
