:root {
  color-scheme: light;
  --bg: #f7f5ef;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --text: #1f2626;
  --muted: #5d6967;
  --line: #d9dfda;
  --accent: #2f6f63;
  --accent-2: #b94e3b;
  --ink: #123b35;
  --shadow: 0 14px 34px rgba(31, 38, 38, 0.09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  background: var(--ink);
  color: white;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(247, 245, 239, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  background: var(--ink);
  color: white;
  font-size: 13px;
}
nav {
  display: flex;
  gap: 2px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 10px;
  border-radius: 6px;
}
nav a[aria-current="page"], nav a:hover {
  color: var(--ink);
  background: var(--surface-2);
}
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.hero, .page-title {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 34px;
  align-items: center;
  padding: 44px 0 28px;
}
.page-title { grid-template-columns: minmax(0, 780px); }
.hero img {
  width: 100%;
  aspect-ratio: 460 / 215;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-2);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}
h1 {
  margin: 0;
  max-width: 820px;
  color: var(--ink);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}
.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
  margin: 18px 0 0;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.button {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
  font-weight: 700;
}
.button.primary {
  color: white;
  border-color: var(--accent);
  background: var(--accent);
}
.facts {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--line);
  border-radius: 8px;
  margin: 10px 0 34px;
}
.facts div {
  background: var(--surface);
  padding: 14px;
  min-height: 92px;
}
.facts span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.facts strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 14px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-bottom: 54px;
}
.content-section, .side-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 18px;
}
h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.16;
}
h3 { margin: 0; color: var(--ink); font-size: 18px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding-left: 20px; }
li + li { margin-top: 7px; }
.card-grid, .entity-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.card, .entity {
  display: block;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  text-decoration: none;
}
.card span {
  display: block;
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 6px;
}
.card p, .entity p { color: var(--muted); font-size: 14px; margin: 0; }
.entity-top {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}
.entity-top span {
  flex: 0 0 auto;
  max-width: 140px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 12px;
}
.entity a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 800;
}
.pairs {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}
.pairs div {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  background: var(--surface-2);
  border-radius: 8px;
}
dt { color: var(--ink); font-weight: 800; }
dd { margin: 0; color: var(--muted); }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 15px;
  background: var(--surface-2);
}
.faq-list details + details { margin-top: 10px; }
summary {
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}
summary + p { margin-top: 10px; color: var(--muted); }
aside {
  position: sticky;
  top: 82px;
}
.side-panel {
  padding: 18px;
}
.side-panel h2 {
  font-size: 18px;
}
.side-panel a {
  display: block;
  padding: 8px 0;
  font-weight: 700;
}
footer {
  border-top: 1px solid var(--line);
  padding: 24px 16px 36px;
  color: var(--muted);
  text-align: center;
}
footer p { margin: 0; }

@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; padding: 12px 0; }
  nav { justify-content: flex-start; }
  .hero { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layout { grid-template-columns: 1fr; }
  aside { position: static; }
}

@media (max-width: 680px) {
  main, .header-inner { width: min(100% - 24px, 1180px); }
  .hero, .page-title { padding-top: 28px; gap: 22px; }
  h1 { font-size: 42px; }
  .lead { font-size: 17px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .card-grid, .entity-grid { grid-template-columns: 1fr; }
  .pairs div { grid-template-columns: 1fr; gap: 4px; }
  .content-section { padding: 18px; }
}
