* { box-sizing: border-box; }
body { margin: 0; font-family: system-ui, sans-serif; background: #14191d; color: #eee; }
header { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; background: #1d252b; flex-wrap: wrap; gap: 8px; }
h1 { margin: 0; font-size: 20px; }
h1 span { font-size: 13px; color: #9bb; margin-left: 8px; font-weight: normal; }
button { padding: 7px 12px; border: 0; border-radius: 5px; background: #345; color: #fff; cursor: pointer; margin: 2px; }
button.active, button:hover { background: #3a8d6b; }
.tab { display: none; padding: 12px 16px; }
.tab.active { display: block; }
#sbs { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; max-width: 1500px; margin: 10px auto; }
#sbs figure { margin: 0; position: relative; }
#sbs img { display: block; width: 100%; height: auto; max-height: calc(100vh - 290px); object-fit: contain; background: #0e1215; border-radius: 6px; }
#sbs figcaption { position: absolute; top: 10px; left: 10px; padding: 4px 12px; border-radius: 4px; background: rgba(0,0,0,.65); font-size: 13px; font-weight: 700; }
#sbs figure:last-child figcaption { background: rgba(58,141,107,.9); }
#caption { text-align: center; color: #bcd; }
#pairs { text-align: center; }
.panel { max-width: 1000px; margin: 0 auto; }
.panel h2 { font-size: 26px; margin: 8px 0; }
.lead { font-size: 17px; line-height: 1.55; color: #cdd9de; max-width: 760px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 20px 0; }
.card { background: #1d252b; border: 1px solid #2b3840; border-radius: 10px; padding: 14px 16px; }
.card:hover { border-color: #3a8d6b; }
.card .ico { font-size: 26px; }
.card h3 { margin: 6px 0 4px; font-size: 16px; color: #8fdcb8; }
.card p { margin: 0; font-size: 14px; line-height: 1.45; color: #bcc9cf; }
.small { font-size: 13px; color: #8fa0a8; max-width: 760px; }
.btn { display: inline-block; padding: 9px 16px; border-radius: 6px; background: #3a8d6b; color: #fff; text-decoration: none; }
.btn:hover { background: #46a57f; }
.hero { padding: 18px 16px 6px; background: linear-gradient(135deg, #1d3a33 0%, #1d252b 70%); border-bottom: 1px solid #2b3840; }
.hero-text { max-width: 900px; margin: 0 auto 16px; font-size: 15px; line-height: 1.5; color: #d5e3e0; text-align: center; }
.hero-text b { color: #8fdcb8; }
.timeline { list-style: none; display: flex; gap: 0; margin: 0 auto 14px; padding: 0; max-width: 1100px; overflow-x: auto; }
.timeline li { flex: 1 0 140px; position: relative; padding: 18px 8px 0; text-align: center; font-size: 12.5px; color: #9fb0b6; }
.timeline li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 3px; background: #3a4a52; }
.timeline li::after { content: ""; position: absolute; top: 0; left: 50%; width: 13px; height: 13px; margin-left: -7px; border-radius: 50%; background: #14191d; border: 3px solid #3a4a52; }
.timeline li.done::before, .timeline li.done::after { border-color: #3a8d6b; background: #3a8d6b; }
.timeline li.done::before { background: #3a8d6b; }
.timeline li.now::after { border-color: #ffd166; background: #ffd166; box-shadow: 0 0 0 5px rgba(255,209,102,.25); }
.timeline li.tbd::before { background: repeating-linear-gradient(90deg, #3a4a52 0 6px, transparent 6px 12px); }
.timeline time { display: block; font-weight: 700; color: #e8f1ef; font-size: 13.5px; margin-bottom: 2px; }
.timeline li.now time { color: #ffd166; }
#mapwrap { display: flex; gap: 12px; height: calc(100vh - 330px); min-height: 460px; }
#maplibre { flex: 1; border-radius: 8px; overflow: hidden; }
#mapctl { width: 260px; background: #1d252b; border: 1px solid #2b3840; border-radius: 8px; padding: 12px 14px; font-size: 14px; }
#mapctl h3 { margin: 0 0 10px; font-size: 15px; color: #8fdcb8; }
.planrow { display: block; margin: 8px 0; }
.planrow small { display: block; margin-left: 22px; color: #8fa0a8; font-size: 12px; }
#mapctl > label { display: block; margin: 14px 0 6px; }
#opacity { width: 100%; }
@media (max-width: 800px) { #mapwrap { flex-direction: column-reverse; height: auto; } #maplibre { height: 60vh; } #mapctl { width: auto; } }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 22px 0; }
.kpi { position: relative; background: #1d252b; border: 1px solid #2b3840; border-radius: 12px; padding: 16px 18px 14px 22px; overflow: hidden; }
.kpi > i { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.kpi h3 { margin: 0; font-size: 14px; color: #9bb; text-transform: uppercase; letter-spacing: .06em; }
.kpi .big { font-size: 46px; font-weight: 800; margin: 6px 0; }
.kpi.up .big { color: #5fd49b; } .kpi.down .big { color: #ff7b72; }
.kpi p { margin: 0; color: #cdd9de; } .kpi small { color: #8fa0a8; }
.bars { margin: 26px 0 14px; }
.barrow { display: flex; align-items: center; gap: 14px; margin: 12px 0; }
.barrow > b { width: 80px; }
.bar { display: flex; flex: 1; height: 46px; border-radius: 8px; overflow: hidden; }
.bar > div { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #111; transition: width .6s; }
.c-car { background: #e0605a; } .c-bike { background: #c77dd6; } .c-walk { background: #f0c05a; } .c-green { background: #6fbf73; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: #cdd9de; font-size: 14px; margin-bottom: 16px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; }

.hsum { display: flex; gap: 8px; text-decoration: none; color: #cdd9de; font-size: 13px; flex-wrap: wrap; }
.hsum span { background: #2a343b; border-radius: 16px; padding: 4px 11px; }
.hsum b { margin-left: 4px; }
.hsum .up b { color: #5fd49b; } .hsum .down b { color: #ff7b72; }
.hsum:hover span { background: #34424b; }
.kpi .big .u { font-size: 20px; font-weight: 600; }
