*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --paper: #f6f7f4;
  --white: #ffffff;
  --ink: #17262b;
  --ink-soft: #4b5a5e;
  --line: #d5dad6;
  --green: #1e6b52;
  --green-dark: #15503d;
  --tag: #f4c84a;
  --error: #b3261e;
  --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', 'Segoe UI', system-ui, sans-serif;
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--tag);
  outline-offset: 2px;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; }
.brand svg { width: 30px; height: 30px; flex: none; }
.header-phone { font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.header-phone:hover { color: var(--green); }
.header-phone .short { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 8px; font-family: var(--body); font-weight: 700; font-size: 18px; text-decoration: none; border: 2px solid var(--green); cursor: pointer; }
.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-secondary { background: transparent; color: var(--green); }
.btn-secondary:hover { background: var(--white); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 15px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--ink); }

/* Legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: 56px 24px 72px; }
.legal h1 { font-family: var(--display); font-size: 40px; line-height: 1.1; margin-bottom: 8px; }
.legal .date { color: var(--ink-soft); font-size: 15px; margin-bottom: 32px; }
.legal h2 { font-family: var(--display); font-size: 22px; margin: 32px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); margin-bottom: 12px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.back-link { display: inline-block; margin-bottom: 28px; font-size: 16px; }
@media (max-width: 520px) {
  .brand { font-size: 18px; white-space: nowrap; gap: 8px; }
  .brand svg { width: 24px; height: 24px; }
  .header-phone .num, .header-phone .label { display: none; }
  .header-phone .short { display: inline; }
  .header-phone { font-size: 16px; background: var(--green); color: var(--white); padding: 8px 16px; border-radius: 8px; }
  .header-phone:hover { color: var(--white); background: var(--green-dark); }
}
