:root {
  color-scheme: light;
  --blue: #2563eb;
  --blue-soft: #eff6ff;
  --line: #d7dde8;
  --ink: #172033;
  --muted: #667085;
  --danger: #dc2626;
  --ok: #16a34a;
  --plate: #facc15;
}

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Lora";
  src: url("/assets/fonts/Lora.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "LicensePlate";
  src: url("/assets/fonts/LicensePlate.woff2") format("woff2");
  font-display: swap;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
}
a { color: #1d4ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.topbar { border-bottom: 1px solid #e5e7eb; background: #f9fafb; position: sticky; top: 0; z-index: 6; }
.nav { max-width: 576px; margin: 0 auto; padding: 8px 16px; display: flex; gap: 16px; align-items: center; }
.logo {
  display: inline-grid; place-items: center; min-width: 74px; padding: 7px 7px 5px;
  border: 2px solid #111827; border-radius: 4px; background: var(--plate); color: #111827;
  font-weight: 900; letter-spacing: .04em; box-shadow: 0 0 0 2px #facc15; line-height: 1;
  font-family: "LicensePlate", "Inter", sans-serif;
}
select, input, button {
  font: inherit; border: 1px solid #d1d5db; border-radius: 6px; min-height: 42px; padding: 8px 12px; background: white;
}
button { border-color: #3b82f6; background: #3b82f6; color: #fff; cursor: pointer; font-weight: 600; border-radius: 8px; }
button:hover { background: #2563eb; }
.nav select { flex: 1; max-width: 420px; }
.shell { min-height: calc(100vh - 64px); }
.hero { max-width: 640px; margin: 0 auto; padding: 32px 16px 20px; text-align: center; }
h1 { font-size: 1.875rem; line-height: 1.5; margin: 0 0 12px; letter-spacing: 0; font-weight: 400; }
h2 { margin: 0 0 16px; font-size: 1.4rem; }
h3 { margin: 0; }
.muted { color: var(--muted); }
.query { max-width: 448px; margin: 0 auto 42px; background: #eff6ff; border: 1px solid #93c5fd; border-radius: 6px; padding: 24px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.form-grid label { display: grid; gap: 6px; text-align: left; font-weight: 500; }
.form-grid .wide, .form-grid button, .result { grid-column: 1 / -1; }
.result { display: grid; gap: 4px; padding: 14px; border-radius: 7px; text-align: left; }
.result-ok { background: #f0fdf4; border: 1px solid #bbf7d0; }
.result-stop { background: #fef2f2; border: 1px solid #fecaca; }
.cards { max-width: 1500px; margin: 0 auto 48px; padding: 0 16px; display: flex; flex-wrap: wrap; justify-content: center; align-items: stretch; gap: 32px; }
.card { width: 100%; max-width: 448px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-bottom: 4px solid var(--blue); border-radius: 6px; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(15, 23, 42, .16); }
.card.restricted { border-top-color: var(--danger); border-bottom-color: var(--danger); }
.card.free { border-top-color: var(--ok); border-bottom-color: var(--ok); }
.card-head { padding: 16px; color: white; background: #3b82f6; font-weight: 700; text-align: center; }
.card-head h2 { margin: 0; font-size: 1.25rem; line-height: 1.35; }
.card-head a { color: #fff; }
.card-body { padding: 20px; display: grid; justify-items: center; gap: 12px; min-height: 150px; text-align: center; }
.card-body p { margin: 0 0 4px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-wrap: balance; }
.card-foot { padding: 16px; background: #eff6ff; border-top: 1px solid var(--line); text-align: center; font-size: .92rem; }
.plate { display: inline-grid; place-items: center; min-width: 58px; padding: 9px 10px 6px; border: 2px solid #111827; border-radius: 4px; background: var(--plate); font-weight: 900; color: #111827; font-family: "LicensePlate", "Inter", sans-serif; }
.sections { max-width: 960px; margin: 0 auto; padding: 0 16px 48px; display: grid; gap: 28px; }
.section { border-top: 1px solid var(--line); padding-top: 24px; }
.section ul { margin: 0; padding-left: 22px; line-height: 1.8; }
.section blockquote { font-family: "Lora", serif; background: #f3f4f6; padding: 12px 16px; border-radius: 7px; margin: 18px 0; }
.city-list { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.breadcrumbs { max-width: 1120px; margin: 0 auto; padding: 24px 16px 0; color: var(--muted); font-size: .92rem; display: none; }
.route-switch { position: sticky; top: 49px; z-index: 5; background: #f9fafb; border-bottom: 1px solid #e5e7eb; padding: 8px 16px; }
.route-switch > div { max-width: 640px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .92rem; }
.route-switch select { min-height: 30px; padding: 2px 30px 2px 8px; }
.live-dot { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 700; color: #374151; white-space: nowrap; }
.ping-dot { position: relative; display: inline-flex; width: 8px; height: 8px; border-radius: 999px; background: #2563eb; }
.ping-dot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #60a5fa; opacity: .75; animation: ping 1.4s cubic-bezier(0, 0, .2, 1) infinite; }
.live-dot .live-users { color: #4b5563; font-weight: 600; }
.footer { border-top: 1px solid var(--line); background: #f8fafc; padding: 32px 16px; text-align: center; display: grid; gap: 8px; }
.category-article { max-width: 760px; width: 100%; margin: 0 auto 36px; padding: 0 16px; text-align: center; }
.category-intro { font-size: 1.125rem; margin: 0 auto 18px; text-wrap: balance; }
.today-card { max-width: 448px; margin: 0 auto 18px; border-radius: 7px; border: 1px solid #dbeafe; overflow: hidden; background: #fff; box-shadow: 0 4px 12px rgba(15,23,42,.16); border-top: 4px solid var(--danger); border-bottom: 4px solid var(--danger); }
.today-card.free { border-top-color: var(--ok); border-bottom-color: var(--ok); }
.today-top { background: #3b82f6; color: #fff; padding: 16px; display: grid; gap: 7px; justify-items: center; font-weight: 700; text-transform: uppercase; }
.today-top .date { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 500; text-transform: none; }
.today-body { padding: 20px; display: grid; gap: 14px; justify-items: center; }
.today-body .plate { font-size: 1.35rem; }
.hours-title { font-weight: 800; font-size: 1.125rem; }
.card-hours { display: grid; gap: 6px; justify-items: center; }
.hours-lines { display: grid; gap: 3px; }
.countdown { color: #4b5563; font-size: .95rem; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.time-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 208px;
  padding: 7px 14px;
  border: 1px solid #ef4444;
  border-radius: 6px;
  color: #dc2626;
  background: #fff;
  font-size: .9rem;
  line-height: 1;
}
.time-badge strong { font-weight: 700; }
.time-badge-green { border-color: #22c55e; color: #16a34a; }
.time-badge-red { border-color: #ef4444; color: #dc2626; min-width: auto; }
.status-pulse { position: relative; display: inline-flex; width: 12px; height: 12px; border-radius: 999px; background: #ef4444; }
.status-pulse::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #fca5a5; opacity: .75; animation: ping 1.25s cubic-bezier(0, 0, .2, 1) infinite; }
.status-pulse.ok { background: #4ade80; }
.status-pulse.ok::before { background: #bbf7d0; }
.days-list { max-width: 448px; margin: 0 auto; display: grid; gap: 0; border: 1px solid #e5e7eb; border-radius: 7px; overflow: hidden; background: #fff; }
.day-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; text-align: left; }
.day-row:last-child { border-bottom: 0; }
.day-label { display: grid; gap: 2px; }
.day-label strong { text-transform: uppercase; font-size: .8rem; color: #374151; }
.day-label span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #4b5563; font-size: .9rem; }
.day-row .plate { min-width: 72px; justify-self: end; background: #fff; }
.day-row.restricted .plate { background: var(--plate); }
.days-more { border: 0; border-top: 1px solid #e5e7eb; border-radius: 0; background: #eff6ff; color: #1d4ed8; width: 100%; }
.extra-day[hidden] { display: none; }
.digit-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.digit-grid a { min-width: 36px; min-height: 36px; display: grid; place-items: center; border: 1px solid #d1d5db; border-radius: 6px; color: #1f2937; background: #fff; }
.prose-like { max-width: 672px; margin: 32px auto 64px; padding: 0 16px; line-height: 1.65; }
.prose-like h2 { margin-top: 28px; font-size: 1.35rem; }
.prose-like blockquote { font-family: "Lora", serif; background: #f3f4f6; padding: 12px 16px; border-radius: 7px; margin: 18px 0; }
@keyframes ping {
  75%, 100% { transform: scale(2.35); opacity: 0; }
}
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 420px; margin: 18px auto; }
.calendar span { border: 1px solid var(--line); border-radius: 6px; padding: 8px 4px; text-align: center; }
.calendar .hit { background: #fee2e2; border-color: #fca5a5; color: #991b1b; font-weight: 800; }
@media (max-width: 680px) {
  .nav { flex-wrap: wrap; }
  .nav select { max-width: none; width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
}
