* {
  box-sizing: border-box;
}

:root {
  --bg: #f4f8ff;
  --panel: #ffffff;
  --text: #1b2430;
  --muted: #667085;
  --line: #d9e2f2;
  --accent: #2364ff;
  --accent-2: #13a3ff;
  --shadow: 0 18px 45px rgba(35, 100, 255, 0.10);
  --radius: 22px;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, #dff0ff 0, transparent 28%),
    linear-gradient(180deg, #eef6ff 0%, #f7faff 30%, #fbfdff 100%);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 28px 0 18px;
}

.hero__content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 360px;
}

.hero__text {
  padding: 34px 16px 34px 34px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eaf2ff;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}

h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.02;
  margin: 0 0 14px;
}

.lead {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 18px;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn {
  border: 0;
  border-radius: 14px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
  box-shadow: 0 10px 25px rgba(35, 100, 255, 0.25);
}

.btn--ghost {
  background: white;
  color: var(--text);
  border: 1px solid var(--line);
}

.status-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
  background: #f7faff;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, 0.15);
}

.hero__art {
  position: relative;
  min-height: 360px;
  background: linear-gradient(180deg, #8fccff 0%, #cfe9ff 58%, #eff7ff 58%, #eff7ff 100%);
}

.sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
}

.sun {
  position: absolute;
  right: 70px;
  top: 34px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff4be 0%, #ffd75a 60%, #ffb200 100%);
  box-shadow: 0 0 0 16px rgba(255, 215, 90, 0.18);
}

.cloud {
  position: absolute;
  background: rgba(255,255,255,0.86);
  border-radius: 40px;
  height: 24px;
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}

.cloud--1 {
  left: 52px;
  top: 66px;
  width: 94px;
}

.cloud--1::before { width: 30px; height: 30px; left: 12px; top: -14px; }
.cloud--1::after { width: 42px; height: 42px; left: 40px; top: -18px; }

.cloud--2 {
  left: 180px;
  top: 110px;
  width: 84px;
}

.cloud--2::before { width: 26px; height: 26px; left: 10px; top: -12px; }
.cloud--2::after { width: 34px; height: 34px; left: 36px; top: -14px; }

.city {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 112px;
  height: 116px;
}

.building {
  position: absolute;
  bottom: 0;
  background: linear-gradient(180deg, #90add6, #698bbd);
  border-radius: 10px 10px 0 0;
}

.b1 { left: 36px; width: 70px; height: 90px; }
.b2 { left: 120px; width: 58px; height: 120px; }
.b3 { right: 110px; width: 72px; height: 95px; }
.b4 { right: 42px; width: 54px; height: 132px; }

.road {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 112px;
  background: linear-gradient(180deg, #454c59, #313845);
}

.road::before {
  content: "";
  position: absolute;
  left: 30px;
  right: 30px;
  top: 54px;
  height: 6px;
  background: repeating-linear-gradient(90deg, #ffe89b 0 38px, transparent 38px 70px);
  border-radius: 999px;
}

.bus-stop {
  position: absolute;
  left: 64px;
  bottom: 95px;
  width: 80px;
  height: 124px;
}

.pole {
  position: absolute;
  left: 10px;
  bottom: 0;
  width: 6px;
  height: 118px;
  background: #4c5f87;
  border-radius: 999px;
}

.sign {
  position: absolute;
  left: 0;
  top: 8px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: white;
  border: 5px solid #4c5f87;
}

.sign::after {
  content: "BUS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: #4c5f87;
}

.bench {
  position: absolute;
  left: 24px;
  bottom: 0;
  width: 48px;
  height: 8px;
  background: #f59e0b;
  border-radius: 999px;
}

.bench::before,
.bench::after {
  content: "";
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 14px;
  background: #6b7280;
}

.bench::before { left: 10px; }
.bench::after { right: 10px; }

.bus {
  position: absolute;
  right: 42px;
  bottom: 40px;
  width: 270px;
  height: 110px;
  border-radius: 26px 26px 18px 18px;
  background: linear-gradient(135deg, #2f6fff, #33b2ff);
  box-shadow: 0 18px 30px rgba(25, 64, 166, 0.28);
}

.bus::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 196px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(180deg, #d9f1ff, #b8e2ff);
}

.bus__window {
  position: absolute;
  top: 24px;
  width: 42px;
  height: 26px;
  border-radius: 10px;
  background: rgba(255,255,255,0.6);
}

.w1 { left: 30px; }
.w2 { left: 82px; }
.w3 { left: 134px; }

.bus__door {
  position: absolute;
  right: 26px;
  top: 22px;
  width: 34px;
  height: 60px;
  border-radius: 10px;
  background: rgba(255,255,255,0.78);
}

.bus__wheel {
  position: absolute;
  bottom: -12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #202632;
  border: 8px solid #6d7685;
}

.wheel1 { left: 44px; }
.wheel2 { right: 42px; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin: 18px 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 24px;
}

.controls-grid,
.stats-grid {
  display: grid;
  gap: 16px;
}

.controls-grid {
  grid-template-columns: 2fr 1fr 1fr;
}

.stats-grid {
  grid-template-columns: repeat(3, 1fr);
}

.field {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.field input,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  font-size: 15px;
  background: #fbfdff;
}

.stat-card {
  background: linear-gradient(180deg, #fbfdff, #f5f9ff);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
}

.stat-card__label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  font-size: 14px;
}

.stat-card strong {
  font-size: 32px;
}

.panel__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.panel__hint {
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

thead {
  background: #f6f9ff;
}

th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

tbody tr:hover {
  background: #fafcff;
}

.line-btn {
  border: 0;
  background: linear-gradient(135deg, #2364ff, #2aa7ff);
  color: white;
  padding: 9px 12px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  min-width: 58px;
}

.line-btn:hover {
  filter: brightness(1.04);
}

.line-btn.is-active {
  box-shadow: 0 0 0 4px rgba(35, 100, 255, 0.16);
}

.muted {
  color: var(--muted);
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
}

@media (max-width: 900px) {
  .hero__content,
  .controls-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero__text {
    padding: 24px 20px 8px;
  }

  .hero__art {
    min-height: 290px;
  }

  .bus {
    right: 18px;
    width: 220px;
    transform: scale(0.9);
    transform-origin: bottom right;
  }
}
