
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
:root { --bg:#ede0b8; --surface:#f8f0d8; --border:rgba(90,48,16,0.18); --text:#2e1a08; --muted:rgba(46,26,8,0.72); --accent:#965000; }
html { scroll-behavior:smooth; }
body { font-family:'Segoe UI',system-ui,sans-serif; background:var(--bg); color:var(--text); min-height:100vh; display:flex; flex-direction:column; }
[hidden] { display:none !important; }
a { color:var(--accent); text-decoration:none; }
a:hover { text-decoration:underline; }

.site-header { position:sticky; top:0; z-index:1000; background:#1c1208; border-bottom:1px solid rgba(200,128,0,0.28); padding:0 24px; min-height:56px; display:flex; align-items:center; gap:18px; flex-shrink:0; }
.brand { display:flex; align-items:center; gap:8px; text-decoration:none; }
.brand-name { font-size:17px; font-weight:800; color:#f0e4c0; letter-spacing:-0.3px; }
.brand-name span { color:#c87000; }
.site-nav { margin-left:auto; display:flex; align-items:center; gap:4px; }
.site-nav > a { color:rgba(240,228,192,.78); font-size:13px; font-weight:700; padding:9px 10px; border-radius:8px; white-space:nowrap; }
.site-nav > a:hover, .site-nav > a[aria-current="page"] { color:#fff2c3; background:rgba(248,240,216,.08); text-decoration:none; }
.site-nav .account-link { color:#fff2c3; border:1px solid rgba(240,228,192,.24); }
.lang-picker { margin-left:5px; background:#2a1c0a; color:#f0e4c0; border:1px solid rgba(200,140,0,.35); border-radius:7px; font:inherit; font-size:12px; min-height:34px; padding:5px 8px; cursor:pointer; }
.lang-picker:focus-visible, .nav-toggle:focus-visible, .site-nav a:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline:3px solid #df9700; outline-offset:2px; }
.lang-picker option { background:#1c1208; }
.nav-toggle { display:none; margin-left:auto; width:38px; height:36px; align-items:center; justify-content:center; background:rgba(248,240,216,.08); color:#f0e4c0; border:1px solid rgba(240,228,192,.24); border-radius:8px; font-size:19px; cursor:pointer; }
/* 940px fits the widest localized nav (ru needs 928px) — below it the header
   collapses to the hamburger instead of overflowing horizontally. */
@media(max-width:940px) {
  .site-header { min-height:56px; padding:0 12px; gap:10px; }
  .nav-toggle { display:inline-flex; }
  .site-nav { display:none; position:absolute; top:100%; left:0; right:0; margin:0; padding:7px 12px 12px; background:#1c1208; border-bottom:1px solid rgba(200,128,0,.28); box-shadow:0 14px 28px rgba(0,0,0,.35); flex-direction:column; align-items:stretch; gap:2px; }
  .site-header.nav-open .site-nav { display:flex; }
  .site-nav > a { padding:12px 10px; font-size:14px; }
  .site-nav .account-link { border:0; }
  .lang-picker { width:100%; margin:5px 0 0; min-height:42px; }
}

.breadcrumb { padding:12px 24px; font-size:12px; color:var(--muted); display:flex; gap:6px; align-items:center; flex-wrap:wrap; border-bottom:1px solid var(--border); background:var(--surface); }
.breadcrumb a { color:var(--muted); }
.breadcrumb a:hover { color:var(--accent); }
.sep { opacity:.5; }
.container { max-width:760px; margin:0 auto; padding:40px 24px; width:100%; }
footer { background:#1c1208; color:#cbbd9d; text-align:center; padding:20px; font-size:12px; margin-top:auto; border-top:1px solid rgba(200,128,0,0.15); }
footer a { color:#e59a32; }
.footer-links { display:flex; justify-content:center; gap:12px; flex-wrap:wrap; margin-bottom:8px; }
@media(max-width:600px) { .container { padding:24px 16px; } .breadcrumb { padding:10px 16px; } }

.route-filter-panel { margin:20px 0 22px; padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.route-search-row { display:flex; gap:8px; align-items:stretch; }
.route-search-row label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.route-search-input { min-width:0; flex:1; border:1px solid var(--border); border-radius:9px; background:#fffdf5; color:var(--text); padding:10px 12px; font:inherit; font-size:14px; }
.route-filter-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:8px; margin-top:10px; }
.route-filter-grid label { display:flex; flex-direction:column; gap:4px; color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:1px; font-weight:750; }
.route-filter-grid select { width:100%; min-width:0; border:1px solid var(--border); border-radius:8px; background:#fffdf5; color:var(--text); padding:8px 9px; font:inherit; font-size:12px; text-transform:none; letter-spacing:0; }
.route-filter-foot { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:10px; }
.route-result-count { color:var(--muted); font-size:12px; }
.filter-clear { border:0; background:transparent; color:var(--accent); font:inherit; font-size:12px; font-weight:750; cursor:pointer; padding:5px; }
.filter-empty { padding:20px; margin:12px 0; border:1px dashed var(--border); border-radius:10px; color:var(--muted); font-size:13px; line-height:1.6; text-align:center; }
.rl-badges { display:flex; flex-wrap:wrap; gap:5px; margin-top:7px; }
.rl-badge { display:inline-flex; padding:2px 7px; border-radius:999px; background:rgba(200,112,0,.08); border:1px solid rgba(200,112,0,.18); color:var(--muted); font-size:9px; font-weight:750; text-transform:uppercase; letter-spacing:.5px; }
@media(max-width:720px) { .route-filter-grid { grid-template-columns:1fr 1fr; } }
@media(max-width:420px) { .route-filter-grid { grid-template-columns:1fr; } }

h1 { font-size:32px; font-weight:900; letter-spacing:-.5px; margin-bottom:6px; }
.sub { font-size:14px; color:var(--muted); margin-bottom:32px; }
.route-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.route-link { display:flex; gap:14px; background:var(--surface); border:1px solid var(--border); border-radius:12px; padding:12px; transition:box-shadow .2s,transform .2s; align-items:stretch; }
.route-link.no-thumb { padding:16px 18px; }
.route-link:hover { box-shadow:0 6px 24px rgba(46,26,8,.14); transform:translateY(-2px); text-decoration:none; }
.rl-thumb { width:140px; height:auto; aspect-ratio:16/10; object-fit:cover; border-radius:8px; flex-shrink:0; background:var(--bg); }
.rl-text { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; }
.rl-name { display:block; font-size:17px; font-weight:800; color:var(--text); margin-bottom:3px; }
.rl-tier { display:inline-block; font-size:9px; font-weight:800; letter-spacing:0.6px; text-transform:uppercase; padding:2px 7px; border-radius:999px; border:1px solid; margin-right:7px; vertical-align:1px; }
.rl-tier-S { color:#8a4b00; border-color:rgba(200,128,0,.55); background:rgba(200,128,0,.12); }
.rl-tier-A { color:#705500; border-color:rgba(160,116,0,.45); background:rgba(160,116,0,.09); }
.rl-tier-B { color:#5e4a18; border-color:rgba(120,80,16,.34); background:rgba(120,80,16,.06); }
.rl-tier-C { color:#36634a; border-color:rgba(36,112,96,.38); background:rgba(36,112,96,.07); }
.rl-tier-D { color:#5a4218; border-color:rgba(90,66,24,.34); background:rgba(90,66,24,.06); }
.rl-meta { display:block; font-size:11px; text-transform:uppercase; letter-spacing:1px; color:var(--accent); margin-bottom:6px; }
.rl-desc { display:block; font-size:13px; color:var(--muted); line-height:1.55; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
@media(max-width:600px) {
  .route-link { flex-direction:column; padding:10px; gap:10px; }
  .rl-thumb { width:100%; aspect-ratio:16/9; }
  .rl-desc { -webkit-line-clamp:3; }
}
.back { display:inline-block; margin-bottom:28px; font-size:13px; color:var(--muted); }
.back:hover { color:var(--accent); }
