:root {
  --bg: #f7f8f5;
  --ink: #17201b;
  --muted: #59645d;
  --line: #d8ded5;
  --panel: #ffffff;
  --accent: #245f46;
  --accent-soft: #e6efe9;
  --gold: #b97b31;
}

* {
  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",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  font-weight: 800;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a {
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

.language-switch {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
}

.language-switch button {
  min-width: 38px;
  min-height: 34px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  background: var(--ink);
  color: #fff;
}

.language-switch button:focus-visible,
a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--gold) 65%, transparent);
  outline-offset: 3px;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

.hero {
  min-height: 76vh;
  display: grid;
  align-content: center;
  padding: 80px 0 48px;
}

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

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.7rem, 7vw, 5.9rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lead {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

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

.summary-grid article,
.timeline article,
.case-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.summary-grid span {
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
}

.summary-grid h2,
.timeline h3,
.case-grid h3 {
  margin: 10px 0 8px;
  line-height: 1.15;
}

.summary-grid p,
.timeline p,
.case-grid p {
  color: var(--muted);
}

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

.section.accent {
  margin-inline: calc(clamp(20px, 5vw, 64px) * -1);
  padding-inline: clamp(20px, 5vw, 64px);
  background: var(--accent-soft);
}

.section-title {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 28px;
}

.section-title h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1.05;
}

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

.period {
  color: var(--gold);
  font-weight: 800;
  font-size: 0.92rem;
}

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

.principles {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--line);
}

footer h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

footer p {
  color: var(--muted);
}

address {
  display: grid;
  gap: 8px;
  font-style: normal;
  text-align: right;
}

address a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 760px) {
  .site-header,
  footer,
  .section-title {
    display: block;
  }

  nav {
    margin-top: 12px;
  }

  .language-switch {
    margin-top: 14px;
  }

  .summary-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  address {
    margin-top: 24px;
    text-align: left;
  }
}
