:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #16202c;
  --muted: #566476;
  --brand: #0b5fff;
  --brand-dark: #0847c0;
  --border: #dde3ea;
  --radius: 10px;
  --max: 1080px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

* { box-sizing: border-box; }
body { margin: 0; }
img { max-width: 100%; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); background: var(--bg); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.logo { font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; letter-spacing: -0.01em; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }

/* Sections */
.hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, var(--surface), var(--bg)); }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.15; margin: 0 0 1rem; letter-spacing: -0.02em; max-width: 22ch; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 60ch; margin: 0 0 2rem; }
section { padding: 3.5rem 0; }
section h2 { font-size: 1.75rem; margin: 0 0 0.75rem; letter-spacing: -0.01em; }
.lead { color: var(--muted); max-width: 65ch; margin: 0 0 2rem; }
.page-head { padding: 3.5rem 0 1rem; }
.page-head h1 { font-size: 2.25rem; margin: 0 0 0.5rem; }

.btn { display: inline-block; background: var(--brand); color: #fff; padding: 0.75rem 1.4rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; border: 0; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--brand-dark); color: #fff; }
.btn.secondary { background: transparent; color: var(--brand); border: 1px solid var(--brand); margin-left: 0.5rem; }

.grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; background: var(--bg); }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 0.75rem 0 0; padding-left: 1.1rem; color: var(--muted); }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.steps li { counter-increment: step; border-left: 3px solid var(--brand); padding: 0.25rem 0 0.25rem 1rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--brand); }
.steps strong { display: block; }

.band { background: var(--surface); }
.cta { text-align: center; }
.cta p { color: var(--muted); }

.prose { max-width: 72ch; }
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.prose table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
.prose th, .prose td { border: 1px solid var(--border); padding: 0.5rem 0.75rem; text-align: left; vertical-align: top; }
.prose th { background: var(--surface); }

.diagram { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; overflow-x: auto; font-size: 0.9rem; }

/* Form */
form.contact { display: grid; gap: 1rem; max-width: 560px; }
form.contact label { font-weight: 600; display: grid; gap: 0.35rem; }
form.contact input, form.contact select, form.contact textarea { font: inherit; padding: 0.65rem 0.75rem; border: 1px solid var(--border); border-radius: 8px; }
form.contact textarea { min-height: 140px; resize: vertical; }
form.contact .consent { font-weight: 400; display: flex; gap: 0.5rem; align-items: flex-start; }
form.contact .consent input { margin-top: 0.35rem; }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.5rem; font-weight: 600; }
.form-status.ok { color: #13795b; }
.form-status.err { color: #b42318; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.95rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
