:root {
    --green: #1e8449;
    --green-dark: #166536;
    --ink: #1f2328;
    --muted: #5f6b76;
    --line: #dfe3e8;
    --bg: #f6f7f8;
    --warn-bg: #fff4e5;
    --warn-ink: #8a4b00;
    --bad-bg: #fdecea;
    --bad-ink: #a32014;
    --ok-bg: #e8f5ee;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--ink);
    background: var(--bg);
}

.wrap { max-width: 860px; margin: 0 auto; padding: 0 16px; }

.top { background: #fff; border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.brand { font-weight: 700; font-size: 18px; color: var(--green); text-decoration: none; }
.top nav { display: flex; gap: 16px; align-items: center; }
.top nav a { color: var(--ink); text-decoration: none; }

main.wrap { padding-top: 32px; padding-bottom: 48px; }

h1 { font-size: 28px; line-height: 1.2; margin: 0 0 16px; }
h2 { font-size: 20px; margin: 32px 0 12px; }
p { margin: 0 0 16px; }
a { color: var(--green-dark); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; margin-bottom: 20px; }
.narrow { max-width: 440px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

label { display: block; font-weight: 600; margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=search] {
    width: 100%; padding: 10px 12px; font-size: 16px; border: 1px solid #b8c0c8; border-radius: 6px; margin-bottom: 16px;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 5px; }

.btn, button.btn {
    display: inline-block; padding: 10px 18px; font-size: 16px; font-weight: 600; border-radius: 6px; border: 1px solid var(--green);
    background: var(--green); color: #fff; text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
.btn.secondary { background: #fff; color: var(--green-dark); }
.btn.danger { background: #fff; color: var(--bad-ink); border-color: var(--bad-ink); }
button.link { background: none; border: 0; padding: 0; color: var(--ink); font: inherit; cursor: pointer; }
form.inline { display: inline; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; }
.notice.ok { background: var(--ok-bg); }
.notice.warn { background: var(--warn-bg); color: var(--warn-ink); }
.notice.bad { background: var(--bad-bg); color: var(--bad-ink); }
.errors { color: var(--bad-ink); margin: 0 0 16px; padding-left: 20px; }

.steps { list-style: none; padding: 0; margin: 0; }
.steps li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps .mark { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; flex: none; border: 2px solid var(--line); }
.steps .done .mark { background: var(--green); border-color: var(--green); color: #fff; }
.steps .text { flex: 1; }

.places { list-style: none; padding: 0; margin: 0 0 16px; }
.places li { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 8px; }
.places label { font-weight: 400; padding: 12px; margin: 0; cursor: pointer; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 600; color: var(--muted); font-size: 14px; }
td.num, th.num { text-align: right; }

.tag { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 13px; background: var(--bg); border: 1px solid var(--line); }
.tag.ok { background: var(--ok-bg); border-color: #b9dfc9; }
.tag.warn { background: var(--warn-bg); border-color: #f3d19c; }
.tag.bad { background: var(--bad-bg); border-color: #f2b8b2; }

.preview { width: 100%; height: 560px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

.hero { padding: 24px 0 8px; }
.hero h1 { font-size: 34px; }
.hero p { font-size: 18px; color: var(--muted); max-width: 620px; }

.foot { border-top: 1px solid var(--line); padding: 20px 0; font-size: 14px; color: var(--muted); }
