:root {
  color-scheme: light;
  --bg: #f4f3ee;
  --card: #fff;
  --ink: #1a231e;
  --muted: #737c74;
  --line: #dfe2da;
  --lime: #d9efad;
  --accent: #ef633e;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    15px/1.5 system-ui,
    sans-serif;
}
body.dark {
  color-scheme: dark;
  --bg: #141b16;
  --card: #202a23;
  --ink: #edf2e9;
  --muted: #a0afa2;
  --line: #39463c;
  --lime: #536b30;
}
header,
main,
footer,
#notice {
  max-width: 1080px;
  margin: auto;
  padding: 22px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
header b {
  font-size: 23px;
  letter-spacing: -1px;
}
header i {
  display: inline-block;
  background: var(--accent);
  color: white;
  padding: 0 9px;
  border-radius: 9px;
  margin-right: 5px;
}
header span,
footer {
  color: var(--muted);
  font-size: 12px;
}
h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.12;
  letter-spacing: -1.1px;
}
h2 {
  font-size: 23px;
  margin: 8px 0 16px;
}
h3 {
  font-size: 18px;
}
p {
  color: var(--muted);
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.card {
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 20px;
  margin: 14px 0;
}
.grid .card {
  margin: 0;
}
.hero {
  background: var(--lime);
}
.hero p {
  color: var(--ink);
}
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.muted,
small {
  color: var(--muted);
}
small {
  font-size: 12px;
}
button,
input,
select {
  font: inherit;
}
button {
  background: var(--ink);
  color: var(--card);
  border: 0;
  border-radius: 10px;
  padding: 12px 17px;
  cursor: pointer;
  min-height: 44px;
}
button.alt {
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--card);
}
button.active {
  background: var(--accent);
  color: white;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
nav {
  display: flex;
  gap: 7px;
  overflow: auto;
  margin: 20px 0;
  padding-bottom: 5px;
}
nav button {
  white-space: nowrap;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 16px 0 0;
}
label {
  display: block;
  margin: 12px 0;
}
input,
select {
  display: block;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  margin-top: 5px;
}
input[type="number"] {
  max-width: 100%;
}
.day {
  display: grid;
  grid-template-columns: 40px 1.5fr 90px 90px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.day label {
  font-size: 11px;
}
.day input,
.day select {
  font-size: 13px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
td,
th {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.scroll {
  overflow: auto;
  max-height: 420px;
}
.highlight {
  background: var(--lime);
}
.metric {
  font-size: 30px;
  display: block;
}
.badge {
  display: inline-block;
  background: var(--lime);
  border-radius: 20px;
  padding: 5px 10px;
  font-size: 12px;
}
.error {
  background: #ffe7dd;
  color: #6c221b;
  padding: 16px;
  border-radius: 10px;
}
.ok {
  background: var(--lime);
  padding: 12px;
  border-radius: 10px;
}
#notice:empty {
  display: none;
}
.city-map {
  position: relative;
  height: 320px;
  background: linear-gradient(30deg, var(--bg), var(--card));
  border: 1px dashed var(--line);
  border-radius: 15px;
  overflow: hidden;
}
.city-map button {
  position: absolute;
  font-size: 11px;
  padding: 6px 9px;
  max-width: 115px;
}
.moscow {
  left: 30%;
  top: 70%;
}
.nn {
  right: 3%;
  top: 75%;
}
.yaroslavl {
  left: 49%;
  top: 25%;
}
.suzdal {
  left: 58%;
  top: 53%;
}
.spb {
  left: 5%;
  top: 8%;
}
a {
  color: var(--accent);
}
.progress {
  height: 8px;
  background: var(--line);
  border-radius: 5px;
}
progress {
  width: 100%;
  accent-color: var(--accent);
}
.hidden {
  display: none;
}
@media (max-width: 600px) {
  header,
  main,
  footer,
  #notice {
    padding: 16px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 18px;
  }
  .day {
    grid-template-columns: 28px minmax(0, 1fr) 64px 64px;
    gap: 5px;
  }
  .day select {
    font-size: 11px;
    padding: 7px 2px;
  }
  .day input {
    padding: 7px 4px;
  }
  header span {
    font-size: 10px;
  }
  nav {
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 5;
    padding: 8px 0;
  }
  nav button {
    font-size: 12px;
    padding: 9px 12px;
  }
  .city-map button {
    max-width: 90px;
    font-size: 10px;
  }
  .nn {
    top: 82%;
  }
  .suzdal {
    left: 60%;
  }
}
