:root {
  color-scheme: light;
  --background: #f8f4e9;
  --surface: #fffdf7;
  --surface-strong: #edf7ef;
  --text: #203128;
  --muted: #617168;
  --primary: #287a52;
  --primary-dark: #1d5b3d;
  --border: #dce7de;
  --shadow: 0 16px 48px rgba(43, 77, 57, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a {
  color: var(--primary-dark);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--primary);
}

.shell {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 24px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 750;
  text-decoration: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
}

.language {
  padding-left: 16px;
  border-left: 1px solid var(--border);
}

main {
  padding: 24px 0 72px;
}

.hero,
.document {
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero {
  padding: clamp(36px, 8vw, 72px);
}

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

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.15rem, 7vw, 4.5rem);
  letter-spacing: -0.045em;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 24px;
}

.card {
  min-height: 188px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.18rem;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.document {
  padding: clamp(28px, 7vw, 64px);
}

.document-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.document h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.updated {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.document section {
  margin-top: 36px;
}

.document h2 {
  margin: 0 0 14px;
  font-size: 1.4rem;
}

.document h3 {
  margin: 24px 0 10px;
  font-size: 1.08rem;
}

.document p,
.document ul {
  margin-top: 10px;
  margin-bottom: 10px;
}

.document li + li {
  margin-top: 8px;
}

.notice {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid #cde3d3;
  border-radius: 18px;
  background: var(--surface-strong);
}

.contact-box {
  padding: 24px;
  border-radius: 18px;
  background: var(--surface-strong);
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.site-footer {
  padding: 28px 0 44px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

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

  .nav {
    justify-content: flex-start;
  }

  .language {
    padding-left: 0;
    border-left: 0;
  }

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

  .card {
    min-height: 0;
  }
}
