/* Shared styles for the inner pages (privacy, contact). The home page keeps its own inline styles; keep the tokens in step with index.html. */
:root {
  --bg: #f6f4ee; --surface: #ffffff; --tint: #e7f1ec; --text: #1b2422; --muted: #4c5955;
  --line: #dfdcd2; --accent: #0f6b5c; --accent-ink: #ffffff; --accent-soft: #d5ebe3;
  --shadow: 0 1px 2px rgba(20,40,35,.06), 0 8px 28px rgba(20,40,35,.08); --radius: 20px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1513; --surface: #151f1c; --tint: #14231f; --text: #e7eeeb; --muted: #a5b4af;
    --line: #263330; --accent: #63d2b8; --accent-ink: #052a22; --accent-soft: #183530;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; z-index: 10; }
.skip:focus { top: 12px; }

header.site { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); text-decoration: none; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; }
nav.main { margin-left: auto; }
nav.main ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
nav.main a { display: block; padding: 8px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); background: var(--tint); }

.page { padding: 64px 0 88px; }
.prose { max-width: 760px; }
.kicker { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-size: clamp(32px, 4.6vw, 48px); line-height: 1.1; letter-spacing: -.025em; margin: 0 0 16px; font-weight: 750; }
.lead { font-size: clamp(18px, 2vw, 20px); color: var(--muted); margin: 0 0 12px; }
.meta { font-size: 14.5px; color: var(--muted); margin: 0 0 40px; }
h2 { font-size: 24px; line-height: 1.25; letter-spacing: -.01em; margin: 44px 0 10px; }
h3 { font-size: 18px; margin: 24px 0 6px; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.note { background: var(--tint); border: 1px solid var(--line); border-radius: 16px; padding: 18px 22px; margin: 28px 0; }
.note p { margin: 0; }
address { font-style: normal; }

.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0 0; }
.contact { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.contact:hover { border-color: var(--accent); transform: translateY(-2px); }
.contact strong { display: block; font-size: 16px; }
.contact span { display: block; color: var(--muted); font-size: 14.5px; margin: 2px 0 8px; }
.contact code { font: 600 15px/1.4 inherit; font-family: inherit; color: var(--accent); overflow-wrap: anywhere; }
.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; margin: 40px 0 0; max-width: 760px; }
.facts div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts div:first-child { padding-top: 0; }
.facts dt { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.facts dd { margin: 2px 0 0; }

footer.site { border-top: 1px solid var(--line); padding: 44px 0 52px; font-size: 14.5px; color: var(--muted); }
footer.site .wrap { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; }
footer.site p { margin: 0 0 6px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; align-content: start; }
footer.site strong { color: var(--text); }

@media (max-width: 900px) {
  .contacts { grid-template-columns: 1fr 1fr; }
  footer.site .wrap { grid-template-columns: 1fr; }
  footer.site ul { justify-content: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 18px; }
  .page { padding: 40px 0 60px; }
  header.site .wrap { gap: 12px; }
  .brand { font-size: 17px; gap: 8px; }
  .brand svg { width: 28px; height: 28px; }
  nav.main ul { flex-wrap: nowrap; gap: 0; }
  nav.main a { padding: 6px 8px; font-size: 14px; }
  .contacts { grid-template-columns: 1fr; }
  .facts { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
