:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c1b19;
  --muted: #5d5a54;
  --line: #e6e2da;
  --accent: #b5561c;
  --accent-soft: #f6e7dc;
  --good: #2f7a4f;
  --radius: 14px;
  --max: 1080px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141312;
    --surface: #1d1c1a;
    --text: #f1eee8;
    --muted: #aaa59c;
    --line: #34312d;
    --accent: #f08a4b;
    --accent-soft: #3a261a;
    --good: #6cc592;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
nav.site { display: flex; gap: 18px; font-size: 15px; }
nav.site a { color: var(--muted); text-decoration: none; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
@media (max-width: 620px) { nav.site .optional { display: none; } }

.hero { padding: 72px 0 40px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; padding-top: 44px; } }
.eyebrow { color: var(--accent); font-weight: 650; letter-spacing: .02em; font-size: 15px; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 18px; }
h2 { font-size: clamp(26px, 3.6vw, 36px); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: 20px; color: var(--muted); max-width: 36em; margin: 0 0 26px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; border: 0; font-size: 16px; cursor: pointer;
}
.button.secondary { background: var(--accent-soft); color: var(--accent); }
.note { color: var(--muted); font-size: 14px; }

.phones { display: flex; gap: 16px; justify-content: center; }
.phones img { width: 46%; max-width: 250px; border-radius: 28px; border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.12); }
.phones img:nth-child(2) { margin-top: 48px; }

section { padding: 56px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); }
.icon { font-size: 26px; line-height: 1; margin-bottom: 12px; display: block; }

.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.shots figure { margin: 0; }
.shots img { border-radius: 22px; border: 1px solid var(--line); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 32px; padding: 0; list-style: none; }
.principles li { padding-left: 28px; position: relative; }
.principles li::before { content: "✓"; position: absolute; left: 0; color: var(--good); font-weight: 700; }

form.stack { display: grid; gap: 12px; max-width: 520px; }
label { font-weight: 600; font-size: 15px; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
.hidden { position: absolute; left: -10000px; }

.doc { max-width: 760px; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc p, .doc li { color: var(--text); }
.doc .updated { color: var(--muted); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
.doc th { color: var(--muted); font-weight: 600; }
.table-scroll { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 16px; }
footer.site a { color: var(--muted); }
