:root {
  color-scheme: light dark;
  --ink: #172019;
  --muted: #607066;
  --forest: #1f5a35;
  --forest-deep: #123b25;
  --leaf: #dfead9;
  --paper: #fffdf7;
  --canvas: #f2f5ed;
  --line: #d7e0d2;
  --ochre: #d79b2b;
  --warning: #fff6df;
  --danger: #9f351e;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 280px; }
a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-deep); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px max(18px, calc((100vw - 1100px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 780;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 5px 16px #10281724; }
.site-nav { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.site-nav a { padding: 8px 10px; border-radius: 999px; color: var(--ink); font-size: .9rem; font-weight: 650; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--leaf); color: var(--forest-deep); }

main { width: min(100% - 32px, 980px); margin: 0 auto; padding: 54px 0 76px; }
.hero { position: relative; overflow: hidden; padding: clamp(28px, 6vw, 58px); border: 1px solid var(--line); border-radius: 30px; background: linear-gradient(135deg, var(--paper), #edf4e8); box-shadow: 0 22px 70px #20352112; }
.hero::after { position: absolute; right: -65px; bottom: -85px; width: 230px; height: 230px; border: 42px solid color-mix(in srgb, var(--ochre) 22%, transparent); border-radius: 50%; content: ""; }
.eyebrow { margin: 0 0 10px; color: var(--forest); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
h1, h2, h3 { color: var(--forest-deep); line-height: 1.16; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.2rem, 7vw, 4.4rem); letter-spacing: -.055em; }
.hero-copy { max-width: 690px; margin: 18px 0 0; color: var(--muted); font-size: clamp(1.04rem, 2vw, 1.24rem); line-height: 1.62; }
.actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid var(--forest); border-radius: 12px; background: var(--forest); color: #fff; font-weight: 750; text-decoration: none; }
.button:hover { background: var(--forest-deep); color: #fff; }
.button.secondary { background: transparent; color: var(--forest); }
.button.secondary:hover { background: var(--leaf); color: var(--forest-deep); }

.language-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 24px 0 0; }
.language-nav a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: .9rem; font-weight: 700; text-decoration: none; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, article { scroll-margin-top: 84px; padding: clamp(22px, 4vw, 34px); border: 1px solid var(--line); border-radius: 22px; background: var(--paper); box-shadow: 0 10px 35px #2035210a; }
.card h2, article h2 { margin-top: 0; }
.card h3, article h3 { margin-top: 1.6em; }
.card p, .card li, article p, article li { line-height: 1.68; }
.card ul, article ul { padding-left: 1.25rem; }
.stack { display: grid; gap: 18px; margin-top: 22px; }
.notice { padding: 14px 16px; border-left: 4px solid var(--ochre); border-radius: 8px; background: var(--warning); }
.emergency { border-left-color: var(--danger); }
.meta { color: var(--muted); font-size: .9rem; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; font-size: clamp(1rem, 3vw, 1.2rem); font-weight: 780; overflow-wrap: anywhere; }

.site-footer { padding: 30px max(18px, calc((100vw - 980px) / 2)) 42px; border-top: 1px solid var(--line); color: var(--muted); }
.footer-links { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { font-weight: 650; }

@media (max-width: 760px) {
  .site-header { align-items: flex-start; flex-direction: column; gap: 7px; }
  .site-nav { justify-content: flex-start; }
  main { padding-top: 28px; }
  .grid, .grid.three { grid-template-columns: 1fr; }
  .hero { border-radius: 22px; }
}

@media (prefers-color-scheme: dark) {
  :root { --ink: #edf5e9; --muted: #adb9ae; --forest: #8ecb9b; --forest-deep: #d7f0dc; --leaf: #253a2a; --paper: #151d16; --canvas: #0e140f; --line: #334137; --warning: #2b2412; --danger: #f19b86; }
  .hero { background: linear-gradient(135deg, #182219, #111a13); }
  .button { color: #0b170d; }
  .button:hover { color: #0b170d; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
