:root { --bg: #fffaf0; --card: #fff; --ink: #1d1a14; --muted: #6b6455; --line: #e6dcc6; --honey: #f2a900; --honey-ink: #3a2a00; --bad: #c62828; --ok: #2e7d32; color-scheme: light; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; }
main { max-width: 860px; margin: 0 auto; padding: 16px 16px 48px; } main.narrow { max-width: 460px; padding-top: 48px; }
.top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; margin-bottom: 8px; } .top .brand { margin: 0; }
.brand img { width: 30px; height: 30px; padding: 3px; border-radius: 8px; background: var(--honey); }
h1 { font-size: 26px; margin: 12px 0 2px; } h2 { font-size: 21px; margin: 4px 0; } h3 { font-size: 17px; margin: 22px 0 6px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .nowrap { white-space: nowrap; }
a { color: #0b5cad; } label { display: block; font-weight: 600; margin: 14px 0; }
input[type=email] { display: block; width: 100%; margin-top: 6px; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
button, .btn { font: inherit; border: 0; border-radius: 10px; background: var(--honey); color: var(--honey-ink); font-weight: 700; padding: 10px 16px; cursor: pointer; text-decoration: none; display: inline-block; }
form > button { width: 100%; padding: 13px; } .btn { padding: 4px 12px; font-size: 14px; } button.link { background: none; color: var(--muted); font-weight: 400; padding: 4px; text-decoration: underline; }
.todo { border: 2px solid var(--honey); background: #fff8e6; border-radius: 12px; padding: 10px 14px; margin: 14px 0; }
.ti { margin: 8px 0; } .ti.late { color: var(--bad); } .ti.countersign { color: var(--ok); }
.note { border-left: 4px solid #1565c0; background: #eef4fb; padding: 8px 12px; border-radius: 6px; margin: 10px 0; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; padding-bottom: 12px; border-bottom: 2px solid var(--line); }
.tabs button { background: var(--card); border: 2px solid var(--line); color: var(--ink); font-weight: 400; text-align: left; display: flex; flex-direction: column; min-width: 150px; }
.tabs button span { font-size: 12px; color: var(--muted); } .tabs button.on { background: var(--honey); border-color: var(--honey); color: var(--honey-ink); } .tabs button.on span { color: var(--honey-ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.card { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--card); color: inherit; text-decoration: none; }
.card img, .card .noimg { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; flex: none; } .card .noimg { display: grid; place-items: center; background: var(--line); font-size: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; margin: 12px 0; }
.grid div { background: #fff8e6; border-radius: 10px; padding: 8px 10px; } .grid span { display: block; font-size: 13px; color: var(--muted); }
table.visits { width: 100%; border-collapse: collapse; } table.visits td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; } .gallery a { position: relative; display: block; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; } .gallery span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 1px 6px; border-radius: 6px; }
.contacts div { margin: 8px 0; } section.yard { margin-top: 8px; }
.routemap { width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; }
