:root {
  --ink: #1c2230;
  --muted: #5b6472;
  --rule: #cfd5de;
  --band: #f3f5f8;
  --accent: #1f4e8c;
  --accent-ink: #ffffff;
  --footer-bg: #1c2230;
  --footer-ink: #d6dbe3;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.5;
}
.wrap { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 20px; }
main.wrap { flex: 1; padding-top: 28px; padding-bottom: 56px; }

/* header */
.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; }
.brand img { display: block; width: 72px; height: 72px; object-fit: contain; }
.top-nav { display: flex; gap: 18px; }
.top-nav a { color: var(--accent); text-decoration: none; font-size: 15px; }
.top-nav a:hover { text-decoration: underline; }

/* title block */
.title-block { display: flex; align-items: center; gap: 24px; margin-bottom: 28px; }
.title-block img { width: 180px; height: auto; flex: 0 0 auto; border: 1px solid var(--rule); }
h1 { margin: 0 0 4px; font-size: 30px; letter-spacing: .06em; }
.subtitle { margin: 0; max-width: 780px; font-size: 17px; color: var(--muted); }

/* filters */
form { margin-bottom: 20px; }
.filters { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr auto; gap: 8px; align-items: end; }
label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 3px; }
input[type="text"] { width: 100%; padding: 7px 9px; font: inherit; font-size: 15px; border: 1px solid var(--rule); border-radius: 3px; }
input[type="text"]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.actions { display: flex; gap: 6px; }
button, .btn-link {
  padding: 8px 16px; font: inherit; font-size: 15px;
  border: 1px solid var(--accent); border-radius: 3px;
  background: var(--accent); color: var(--accent-ink);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-link { background: #fff; color: var(--accent); }

/* table */
.meta { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); font-weight: 700; }
tbody tr:nth-child(even) { background: var(--band); }
td.plate { white-space: nowrap; font-family: "Courier New", monospace; }
td.empty { text-align: center; color: var(--muted); padding: 32px 10px; }

/* pager */
.pager { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin: 20px 0 0; }
.pager a, .pager span { padding: 5px 10px; border: 1px solid var(--rule); border-radius: 3px; text-decoration: none; color: var(--accent); font-size: 14px; }
.pager span.current { background: var(--accent); border-color: var(--accent); color: #fff; }

.note { margin-top: 28px; font-size: 14px; color: var(--muted); }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); margin-top: auto; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.footer-logo { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 6px; padding: 6px; }
.footer-text p { margin: 0 0 4px; }
.footer-org { font-weight: 700; font-size: 16px; color: #fff; }
.footer-copy { font-size: 14px; }
.footer-links { font-size: 14px; }
.footer-links a { color: var(--footer-ink); margin-right: 16px; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 12px; }
.social a { color: #fff; text-decoration: none; font-size: 14px; border: 1px solid #4a5567; border-radius: 3px; padding: 5px 10px; }
.social a:hover { background: #2c3546; }

@media (max-width: 760px) {
  .filters { grid-template-columns: 1fr 1fr; }
  .actions { grid-column: 1 / -1; }
  h1 { font-size: 24px; }
  table { font-size: 14px; }
  th, td { padding: 6px; }
  .title-block { flex-direction: column; align-items: flex-start; }
  .brand span { display: none; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
