/* buslist.ru - минималистичная тема
   Палитра: фон #FFFFFF, текст #14181D, вторичный #5C6672, линии #E7EAEE, акцент #0A57C2 */

:root {
  --ink: #14181D;
  --muted: #5C6672;
  --line: #E7EAEE;
  --bg-soft: #F5F7F9;
  --accent: #0A57C2;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1 { font-size: 26px; line-height: 1.25; margin: 18px 0 10px; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 28px 0 12px; letter-spacing: -0.01em; }
h3 { font-size: 16px; margin: 18px 0 8px; }
.lead { color: var(--muted); margin-top: 0; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; }
.logo { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.logo:hover { text-decoration: none; }
.logo-dot { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-radius: 2px; background: var(--accent); }
.nav { display: flex; gap: 14px; }
.nav a { color: var(--ink); font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover { text-decoration: none; border-bottom-color: var(--line); }
.nav a.active { border-bottom-color: var(--accent); }
.search { display: flex; gap: 6px; margin-left: auto; }
.search input { width: 130px; }

input[type="text"], textarea {
  font: inherit;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
input[type="text"]::placeholder, textarea::placeholder { color: #9AA3AD; }

button {
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
button:hover { background: #0947A0; }

/* Герой */
.hero { padding: 26px 0 8px; }
.hero h1 { font-size: 28px; max-width: 640px; }
.hero-sub { color: var(--muted); max-width: 560px; margin-top: 0; }
.hero-search { display: flex; gap: 8px; margin: 16px 0 8px; max-width: 460px; }
.hero-search input { flex: 1; padding: 11px 12px; font-size: 17px; }
.hero-search button { padding: 11px 16px; white-space: nowrap; }

/* Блоки */
.block { margin: 26px 0; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.more { font-size: 14px; white-space: nowrap; }

/* Фишка: цветная маршрутная плашка */
.plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 3px 9px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}
.plate-lg { min-width: 64px; padding: 8px 12px; font-size: 24px; border-radius: 10px; }

/* Списки маршрутов */
.route-list { display: flex; flex-direction: column; }
.route-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.route-row:hover { text-decoration: none; background: var(--bg-soft); }
.route-dir { flex: 1; min-width: 0; }
.route-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }

/* Чипы станций и городов */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 14px;
  background: #fff;
}
.chip:hover { text-decoration: none; border-color: #C6CDD5; background: var(--bg-soft); }
.chip-cnt { color: var(--muted); font-size: 12px; }
.chips-lg .chip { font-size: 15px; padding: 9px 14px; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot-lg { width: 12px; height: 12px; margin-right: 8px; }
.line-title { display: flex; align-items: center; font-size: 17px; }

/* Хлебные крошки */
.crumbs { font-size: 13px; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); }
.crumbs-sep { margin: 0 6px; color: #C6CDD5; }

/* Страница маршрута */
.route-head { display: flex; align-items: flex-start; gap: 14px; margin-top: 10px; }
.route-head h1 { margin: 2px 0 6px; }
.route-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
}
.tag:hover { text-decoration: none; color: var(--ink); }

.next-bus {
  margin: 16px 0;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}

.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.facts > div { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); width: 140px; flex-shrink: 0; }
.facts dd { margin: 0; }

/* Расписание */
.sched { margin-bottom: 18px; }
.sched-note { color: var(--muted); font-size: 14px; margin: 4px 0; }
.tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; margin: 6px 0 10px; }
.tab { background: #fff; color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 14px; border-radius: 0; }
.tab:hover { background: var(--bg-soft); color: var(--ink); }
.tab.on { background: var(--ink); color: #fff; }
.times { display: flex; flex-wrap: wrap; gap: 6px; }
.t {
  font-variant-numeric: tabular-nums;
  font-size: 15px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.t-next { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 14px; }

/* Фишка: лента остановок с цветной осью маршрута */
.stops { list-style: none; margin: 8px 0 0; padding: 0 0 0 22px; position: relative; }
.stops::before {
  content: "";
  position: absolute;
  left: 5px; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--route-c, var(--accent));
}
.stops li { position: relative; padding: 5px 0; }
.stops li::before {
  content: "";
  position: absolute;
  left: -21px; top: 12px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--route-c, var(--accent));
}
.stops li:first-child::before, .stops li:last-child::before { background: var(--route-c, var(--accent)); }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 600; padding: 8px 0; list-style-position: inside; }
.faq p { color: var(--muted); margin: 0 0 10px 18px; }

/* Форма */
.feedback-form { max-width: 480px; display: flex; flex-direction: column; gap: 12px; }
.feedback-form label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--muted); }
.feedback-form button { align-self: flex-start; }
.hp { position: absolute; left: -9999px; }
.ok { color: #1B7A43; }
.err { color: #C0392B; }

.seo-text { color: #3A424B; max-width: 680px; }
.seo-text h2 { color: var(--ink); }

/* Подвал */
.site-footer { border-top: 1px solid var(--line); margin-top: 44px; padding: 24px 0 8px; color: var(--muted); font-size: 14px; }
.footer-row { display: flex; gap: 32px; flex-wrap: wrap; justify-content: space-between; }
.footer-row p { max-width: 460px; margin-top: 6px; }
.footer-logo { font-weight: 800; color: var(--ink); }
.footer-row nav { display: flex; flex-direction: column; gap: 6px; }
.copyright { padding-top: 16px; padding-bottom: 16px; font-size: 13px; }

@media (min-width: 640px) {
  h1 { font-size: 30px; }
  .hero h1 { font-size: 34px; }
  .facts { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .search input { width: 170px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
