/* Тема «riviera» (site.THEME = "riviera"): тёмно-синяя шапка, терракотовый акцент, песочный фон, скругления
   средние, у табло тёмно-синяя полоса с переключателями и терракотовая отметка ближайшего рейса.
   Подключается после style.css и меняет только вид. */
:root {
  --bg: #f6f1e9;
  --card: #ffffff;
  --text: #13253a;
  --muted: #5a6573;
  --faint: #959ca6;
  --line: #e4dccf;
  --line-2: #f0e9de;
  --brand: #0b3a5b;
  --brand-ink: #ffffff;
  --brand-soft: #e3edf5;
  --accent: #c8553d;
  --accent-soft: #f8e5df;
  --accent-ink: #96331f;
  --hdr-bg: #0b3a5b;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(19, 37, 58, .05), 0 8px 24px rgba(19, 37, 58, .06);
  --riviera: linear-gradient(110deg, #0b3a5b 0%, #12507a 70%, #1b6694 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d141c; --card: #141e29; --text: #e8edf2; --muted: #a3afbb; --faint: #6e7b88; --line: #26333f;
    --line-2: #1b2632; --brand: #7fb8e0; --brand-ink: #0a1a28; --brand-soft: #18324a; --accent: #e07a62;
    --accent-soft: #3a1f19; --accent-ink: #f3b3a3; --hdr-bg: #0a2236; --shadow: none;
  }
}

.theme-riviera h1 { font-weight: 800; letter-spacing: -.015em; }

/* шапка: тёмно-синяя, знак — терракотовый квадрат */
.theme-riviera .hdr { background: var(--hdr-bg); color: #fff; }
.theme-riviera .logo, .theme-riviera .logo__text small { color: #fff; }
.theme-riviera .logo__text small { opacity: .75; }
.theme-riviera .logo__mark { background: var(--accent); color: #fff; border-radius: 8px; }
.theme-riviera .nav a, .theme-riviera .nav summary { color: rgba(255, 255, 255, .88); border-radius: 8px; }
.theme-riviera .nav a:hover, .theme-riviera .nav summary:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.theme-riviera .nav a[aria-current], .theme-riviera .nav summary[aria-current] { background: rgba(255, 255, 255, .16); color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent); }
.theme-riviera .nav__drop { border-radius: 12px; border: 1px solid var(--line); }
.theme-riviera .nav__drop a { color: var(--text); border-radius: 8px; box-shadow: none; }
.theme-riviera .nav__drop a:hover { background: var(--line-2); color: var(--text); }

/* карточки: иконки в терракотовых квадратах, кнопки терракотой */
.theme-riviera .card__h > .ic, .theme-riviera .kf__in .ic, .theme-riviera .ways .ic { border-radius: 8px; background: var(--accent-soft); color: var(--accent); }
.theme-riviera .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-riviera .btn--ghost { background: none; color: var(--accent-ink); }
.theme-riviera .tag { background: var(--brand-soft); color: var(--brand); }
.theme-riviera .term { border-color: var(--accent); color: var(--accent-ink); }
.theme-riviera .zone { background: var(--riviera); }
.theme-riviera .cta { background: var(--riviera); }
.theme-riviera .cta .btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.theme-riviera .tile__price, .theme-riviera .plist__price { color: var(--accent-ink); }

/* табло: тёмно-синяя полоса с переключателями */
.theme-riviera .board { padding: 0 0 12px; overflow: visible; }
.theme-riviera .board__bar { background: var(--riviera); margin: 0 0 12px; padding: 14px 16px; border-radius: var(--radius) var(--radius) 0 0; }
.theme-riviera .board__tools, .theme-riviera .board .board__pane, .theme-riviera .board__foot { padding-left: 16px; padding-right: 16px; }
.theme-riviera .board__foot { margin-left: 0; margin-right: 0; }
.theme-riviera .board__mini { background: var(--riviera); margin: 0 0 calc(-1 * var(--mini-h, 0px)); padding: 6px 16px; }
.theme-riviera .board .seg { background: rgba(255, 255, 255, .14); }
.theme-riviera .board .seg button { color: rgba(255, 255, 255, .9); }
.theme-riviera .board .seg button:hover { color: #fff; }
.theme-riviera .board .seg button.is-on { background: #fff; color: var(--brand); box-shadow: none; }
.theme-riviera .board .seg small { color: inherit; opacity: .8; }
.theme-riviera .board .seg__n { background: rgba(255, 255, 255, .22); }
.theme-riviera .board .seg button.is-on .seg__n { background: var(--accent-soft); color: var(--accent-ink); }   /* button: у липкой копии панели тоже есть is-on */
.theme-riviera .board .switch { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }
.theme-riviera .board .switch:hover { background: rgba(255, 255, 255, .24); }
.theme-riviera .t-time b { color: var(--brand); }
.theme-riviera .tablo tr.is-next td { background: var(--accent-soft); }
.theme-riviera .tablo tr.is-next td:first-child { box-shadow: inset 4px 0 0 var(--accent); }
@media (max-width: 680px) {
  .theme-riviera .board { padding: 0 0 10px; }
  .theme-riviera .board__bar { padding: 10px; }
  .theme-riviera .board__mini { padding: 5px 10px; }
  .theme-riviera .board__tools, .theme-riviera .board .board__pane, .theme-riviera .board__foot { padding-left: 10px; padding-right: 10px; }
}

/* подвал — как шапка */
.theme-riviera .foot { background: #0a2236; color: #b9c7d4; border-top: 0; }
.theme-riviera .foot a, .theme-riviera .foot .linklike { color: #e6eef5; }
.theme-riviera .foot__col a { color: #b9c7d4; }
.theme-riviera .foot__col a:hover { color: #fff; }
.theme-riviera .foot__h, .theme-riviera .foot__brand, .theme-riviera .foot__about b { color: #fff; }
.theme-riviera .foot__src { border-top-color: #1d3b54; }
