@font-face { font-family: Golos; src: url(/golos-cyr.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Golos; src: url(/golos-lat.woff2) format('woff2'); font-weight: 400 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
:root { --bg: #f3f5f1; --ink: #18221c; --soft: #55645a; --line: #cdd5cd; --hair: #e6eae5; --main: #1d4d3a; --done: #e7f2e6; --ok: #14643f; --warn: #8a5400; --bad: #a32a1c; }
* { box-sizing: border-box; margin: 0; }
body { font: 15px/1.45 Golos, 'Segoe UI', Arial, sans-serif; background: var(--bg); color: var(--ink); min-height: 100vh; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--main); }
:focus-visible { outline: 3px solid #d9962b; outline-offset: 2px; }
h1 { font-size: 24px; font-weight: 600; } h2 { font-size: 17px; font-weight: 600; } h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.soft { color: var(--soft); } .small { font-size: 13px; } .warn { color: var(--warn); } .bad { color: var(--bad); }

.btn { border: 1px solid var(--main); background: #fff; border-radius: 6px; padding: 7px 14px; min-height: 38px; font-weight: 500; }
.btn:hover { background: var(--done); } .btn:disabled { opacity: .5; cursor: default; }
.btn.fill { background: var(--main); color: #fff; } .btn.fill:hover { background: #163d2e; }
.btn.plain { border-color: var(--line); }
.link { border: 0; background: none; padding: 6px 0; color: var(--main); text-decoration: underline; text-align: left; }
input, select, textarea { border: 1px solid #aab5ab; background: #fff; border-radius: 6px; padding: 8px 12px; min-height: 42px; width: 100%; }
textarea { min-height: 80px; resize: vertical; display: block; }
input[type=checkbox] { width: 18px; height: 18px; min-height: 0; accent-color: var(--main); flex: none; }
label.f { display: block; color: var(--soft); font-size: 13px; } label.f > * { margin-top: 4px; color: var(--ink); font-size: 15px; }
label.c { display: flex; gap: 8px; align-items: center; padding: 5px 0; }

.top { background: var(--main); color: #fff; display: flex; align-items: center; gap: 26px; padding: 0 28px; min-height: 64px; }
.top b { font-size: 18px; font-weight: 600; margin-right: 8px; }
.top nav { display: flex; gap: 22px; flex: 1; overflow-x: auto; }
.top button { background: none; border: 0; border-bottom: 2px solid transparent; color: #d4e3da; padding: 8px 0; white-space: nowrap; }
.top button[aria-current=page] { color: #fff; border-color: #fff; }
.top .me { display: flex; align-items: center; gap: 10px; color: #fff; border: 0; }
.ava { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: #d7e5d6; color: var(--main); display: inline-grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.ava.big { width: 72px; height: 72px; font-size: 26px; }
.off { background: #fbe3b5; color: #4d3200; padding: 8px 28px; }

main { padding: 18px 28px 60px; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(150px, 190px)) 1fr; gap: 10px; align-items: end; }
.count { padding: 14px 2px 10px; color: var(--soft); }
.table { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.row { display: grid; grid-template-columns: 2.1fr 1.1fr .8fr 1.1fr 1.3fr 2.6fr; gap: 16px; align-items: center; padding: 6px 18px; min-height: 52px; border-top: 1px solid var(--hair); }
.row:first-child { border: 0; }
.row.h { min-height: 38px; color: var(--soft); font-size: 13px; }
.row > * { min-width: 0; overflow-wrap: anywhere; }
.row .n { border: 0; background: none; text-align: left; font-weight: 600; padding: 6px 0; }
.row .n:hover { text-decoration: underline; }
.row.d { background: var(--done); } .row.d > *:not(.st) { color: #56665b; } .row.d a { color: inherit; }
.st { line-height: 1.3; } .st .ok { color: var(--ok); font-weight: 600; display: block; }
.row a { text-decoration: none; } .row a:hover { text-decoration: underline; }
.empty { padding: 34px 18px; color: var(--soft); }
.more { margin-top: 16px; }
.sec { margin: 26px 0 10px; } .sec:first-child { margin-top: 6px; }

dialog { border: 0; padding: 0; background: #fff; color: var(--ink); }
dialog::backdrop { background: rgb(16 30 22 / .45); }
#card { margin: 0 0 0 auto; width: min(580px, 100vw); height: 100dvh; max-height: none; max-width: none; overflow-y: auto; }
#box { margin: auto; width: min(560px, calc(100vw - 28px)); border-radius: 10px; padding: 24px; max-height: 90dvh; overflow-y: auto; }
.in { padding: 24px 28px 40px; }
.headline { display: flex; justify-content: space-between; gap: 14px; align-items: start; } .headline > *:first-child { overflow-wrap: anywhere; }
.banner { margin: 16px 0; padding: 12px 16px; border-radius: 8px; background: #fbf0db; color: #6a4200; } .banner.d { background: var(--done); color: var(--ok); font-weight: 600; } .banner.f { background: #eef1ed; color: var(--ink); }
.phones { display: grid; gap: 8px; margin: 14px 0; } .phones a { background: var(--main); color: #fff; padding: 11px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 17px; }
.block { padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--hair); }
.block ul { padding-left: 20px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.pick button { border: 1px solid #aab5ab; background: #fff; border-radius: 6px; min-height: 44px; padding: 6px 10px; }
.pick button[aria-pressed=true] { background: var(--main); color: #fff; border-color: var(--main); }
.script p { margin-bottom: 8px; } .script { background: #f6f8f4; border-radius: 8px; padding: 14px 16px; }
.stack > * + * { margin-top: 12px; }
.hist { list-style: none; padding: 0 !important; } .hist li { padding: 8px 0; border-top: 1px solid var(--hair); overflow-wrap: anywhere; } .hist li:first-child { border: 0; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pane { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; } fieldset.pane legend { float: left; width: 100%; font-weight: 600; margin-bottom: 8px; } fieldset.pane label { clear: both; }
.panes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; max-width: 1150px; }
.scroll { overflow-x: auto; } table { border-collapse: collapse; width: 100%; background: #fff; } th, td { padding: 11px 16px; text-align: left; border-top: 1px solid var(--hair); white-space: nowrap; } th { color: var(--soft); font-weight: 400; font-size: 13px; border: 0; } td { font-variant-numeric: tabular-nums; }
.who { display: flex; align-items: center; gap: 12px; }
.person { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 12px 18px; border-top: 1px solid var(--hair); } .person:first-child { border: 0; }

.login { min-height: 100vh; display: grid; place-items: center; background: var(--main); padding: 16px; } .login form { background: #fff; border-radius: 10px; padding: 30px; width: min(380px, 100%); }
#toast { position: fixed; inset: auto auto 24px 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px; max-width: calc(100vw - 32px); border: 0; margin: 0; }

@media (max-width: 800px) {
  .top { flex-wrap: wrap; gap: 4px 16px; padding: 10px 16px 0; } .top b { flex: 1; } .top nav { order: 3; flex-basis: 100%; } .top .me { padding: 2px 0; } .top nav button { padding: 11px 0; }
  main { padding: 14px 14px 60px; } .off { padding: 8px 16px; }
  .filters { grid-template-columns: 1fr 1fr; } .filters .q { grid-column: 1 / -1; }
  .row.h { display: none; } .row { grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 14px; } .row .name, .row .st { grid-column: 1 / -1; } .row .reg { text-align: right; } .row .ph { text-align: right; } .row .st { margin-top: 6px; } .row .ph a { display: inline-block; padding: 6px 0; } .row .sitecell { align-self: center; }
  .btn { min-height: 44px; } input, select, textarea { font-size: 16px; min-height: 44px; } .in { padding: 18px 16px 40px; } .grid2 { grid-template-columns: 1fr; } .person { grid-template-columns: 1fr; }
}
