:root {
  color-scheme: light;
  --ink: #142033;
  --muted: #5c6678;
  --soft: #eef3ef;
  --line: #dbe4dc;
  --paper: #fbfcf8;
  --surface: #ffffff;
  --brand: #0d1323;
  --green: #4f6f52;
  --gold: #d5b05f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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, 72px);
  background: rgba(251, 252, 248, 0.92);
  border-bottom: 1px solid rgba(20, 32, 51, 0.08);
  backdrop-filter: blur(16px);
}

.brand,
.header-nav,
.language-switcher,
.next-doc {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--brand);
}

.header-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.header-nav a,
.language-link,
.next-doc a {
  border: 1px solid rgba(20, 32, 51, 0.12);
  border-radius: 999px;
  padding: 8px 13px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.header-nav a.is-active,
.language-link.is-active,
.next-doc a {
  color: #ffffff;
  background: var(--brand);
  border-color: var(--brand);
}

main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 80px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 24px;
  padding: clamp(32px, 6vw, 56px);
  border-radius: 28px;
  color: #ffffff;
  background:
    radial-gradient(circle at 82% 14%, rgba(213, 176, 95, 0.32), transparent 30%),
    linear-gradient(135deg, var(--brand), #1c2c24 72%, #35533d);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.updated {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
}

.language-switcher {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.language-link {
  color: rgba(255, 255, 255, 0.82);
  border-color: rgba(255, 255, 255, 0.28);
}

.language-link.is-active {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--brand);
}

.notice,
.contact-panel,
.legal-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.notice {
  margin: 24px 0;
  padding: 22px 24px;
}

.notice h2,
.contact-panel h2 {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.35;
}

.notice p,
.contact-panel p {
  margin-bottom: 0;
  color: var(--muted);
}

.legal-body {
  display: grid;
  gap: 14px;
}

.legal-section {
  padding: clamp(20px, 4vw, 30px);
}

.legal-section h2 {
  margin-bottom: 10px;
  font-size: clamp(19px, 2.5vw, 24px);
  line-height: 1.35;
}

.legal-section p {
  margin-bottom: 0;
  color: #3f495a;
  font-size: 16px;
}

.contact-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
}

.contact-panel a {
  flex: 0 0 auto;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.next-doc {
  justify-content: center;
  margin-top: 26px;
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

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

  main {
    width: min(100% - 28px, 960px);
    padding-top: 22px;
  }

  .hero {
    grid-template-columns: 1fr;
    align-items: start;
    border-radius: 20px;
  }

  .language-switcher {
    justify-content: flex-start;
  }

  .contact-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}
