
*, *::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; } }

.hero { background:#1c1208; color:#f0e4c0; padding:40px 24px 36px; text-align:center; border-bottom:1px solid rgba(200,128,0,0.2); }
.hero-eyebrow { font-size:11px; text-transform:uppercase; letter-spacing:2.5px; color:rgba(200,112,0,0.8); margin-bottom:14px; }
.hero h1 { font-size:32px; font-weight:900; letter-spacing:-.6px; line-height:1.15; margin-bottom:10px; color:#f0e4c0; }
.hero-sub { font-size:14px; color:rgba(240,228,192,0.55); margin-bottom:28px; }
.hero-stats { display:flex; justify-content:center; gap:28px; margin-bottom:28px; }
.hero-stat { text-align:center; }
.hero-stat-n { font-size:28px; font-weight:900; color:#c87000; line-height:1; }
.hero-stat-l { font-size:10px; text-transform:uppercase; letter-spacing:1.5px; color:rgba(240,228,192,0.45); margin-top:3px; }
.hero-cta { display:inline-block; background:rgba(200,112,0,0.15); color:#f0e4c0; border:1px solid rgba(200,128,0,0.4); border-radius:10px; padding:13px 24px; font-size:14px; font-weight:700; transition:background .15s; }
.hero-cta:hover { background:rgba(200,112,0,0.28); text-decoration:none; }
.grid-label { font-size:10px; text-transform:uppercase; letter-spacing:2px; font-weight:700; color:var(--muted); padding:20px 24px 12px; }
.cont-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:0 16px 36px; }
.cont-card { display:block; background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:transform .2s,box-shadow .2s; text-decoration:none; }
.cont-card:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(46,26,8,.14); text-decoration:none; }
.cont-photo-wrap { position:relative; }
.cont-photo { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; background:var(--bg); }
.cont-photo-placeholder { background:linear-gradient(135deg, rgba(200,112,0,.18), rgba(28,18,8,.12)); }
.cont-bar { position:absolute; left:0; right:0; bottom:0; height:4px; background:var(--c); }
.cont-body { padding:12px 14px 14px; }
.cont-name { font-size:15px; font-weight:800; color:var(--text); margin-bottom:5px; line-height:1.2; }
.cont-desc { font-size:11px; color:var(--muted); line-height:1.5; margin-bottom:8px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.cont-count { font-size:11px; font-weight:700; color:var(--c); }
.cby-section { padding:8px 16px 36px; }
.cby-section h2 { font-size:10px; text-transform:uppercase; letter-spacing:2px; color:var(--muted); margin-bottom:14px; padding:0 4px; }
.cby-group { margin-bottom:14px; border-radius:10px; }
.cby-group[open] { margin-bottom:24px; }
.cby-group-title { font-size:13px; font-weight:800; color:var(--text); padding:10px 12px; display:flex; align-items:center; gap:8px; cursor:pointer; border-radius:10px; transition:background .15s; list-style:none; user-select:none; }
.cby-group-title::-webkit-details-marker { display:none; }
.cby-group-title:hover { background:var(--surface); }
.cby-group[open] > .cby-group-title { margin-bottom:10px; background:var(--surface); }
.cby-group-name { flex:0 0 auto; }
.cby-group-count { font-size:11px; font-weight:600; color:var(--muted); flex:1 1 auto; }
.cby-group-chev { font-size:12px; color:var(--muted); transition:transform .2s; line-height:1; flex:0 0 auto; }
.cby-group[open] > .cby-group-title > .cby-group-chev { transform:rotate(180deg); }
.cby-grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.cby-card { display:flex; align-items:center; gap:10px; background:var(--surface); border:1px solid var(--border); border-radius:10px; padding:8px; transition:box-shadow .2s,transform .2s; text-decoration:none; }
.cby-card:hover { transform:translateY(-1px); box-shadow:0 4px 14px rgba(46,26,8,.12); text-decoration:none; }
.cby-thumb { width:64px; height:auto; aspect-ratio:16/10; object-fit:cover; border-radius:6px; flex-shrink:0; background:var(--bg); }
.cby-thumb-placeholder { background:linear-gradient(135deg, rgba(200,112,0,.18), rgba(28,18,8,.12)); }
.cby-text { flex:1; min-width:0; }
.cby-name { font-size:13px; font-weight:700; color:var(--text); line-height:1.25; margin-bottom:2px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.cby-count { font-size:10px; text-transform:uppercase; letter-spacing:0.5px; color:var(--accent); font-weight:600; }
.theme-section { padding:8px 16px 36px; }
.theme-section h2 { font-size:10px; text-transform:uppercase; letter-spacing:2px; color:var(--muted); margin-bottom:14px; padding:0 4px; }
.theme-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.theme-card { display:block; background:var(--surface); border:1px solid var(--border); border-radius:12px; overflow:hidden; transition:transform .2s,box-shadow .2s; text-decoration:none; }
.theme-card:hover { transform:translateY(-2px); box-shadow:0 8px 28px rgba(46,26,8,.14); text-decoration:none; }
.theme-photo { width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; display:block; background:var(--bg); }
.theme-photo-placeholder { background:linear-gradient(135deg, rgba(200,112,0,.18), rgba(28,18,8,.12)); }
.theme-body { padding:10px 12px 12px; }
.theme-name { font-size:14px; font-weight:800; color:var(--text); margin-bottom:4px; line-height:1.2; }
.theme-count { font-size:11px; font-weight:700; color:var(--accent); }
.ar-section { padding:8px 16px 36px; }
.ar-section h2 { font-size:22px; color:var(--text); margin-bottom:7px; padding:0 4px; }
.ar-intro { color:var(--muted); font-size:13px; line-height:1.6; padding:0 4px; margin-bottom:14px; }
.directory-controls { padding:14px; margin-bottom:16px; background:var(--surface); border:1px solid var(--border); border-radius:12px; }
.directory-search { display:flex; align-items:stretch; gap:8px; }
.directory-search label { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.directory-search input { min-width:0; flex:1; border:1px solid var(--border); border-radius:9px; background:#fffdf5; color:var(--text); padding:11px 12px; font:inherit; font-size:15px; }
.directory-search button { flex:0 0 auto; border:1px solid #1c1208; border-radius:9px; background:#1c1208; color:#f0e4c0; padding:0 16px; font:inherit; font-size:13px; font-weight:800; cursor:pointer; }
.directory-filter-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; margin-top:10px; }
.directory-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; }
.directory-filter-grid select { width:100%; min-width:0; border:1px solid var(--border); border-radius:8px; background:#fffdf5; color:var(--text); padding:8px; font:inherit; font-size:11px; text-transform:none; letter-spacing:0; }
.directory-control-foot { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:10px; }
.directory-count { color:var(--muted); font-size:12px; }
.directory-clear { border:0; background:transparent; color:var(--accent); font:inherit; font-size:12px; font-weight:800; cursor:pointer; padding:5px; }
.ar-no-results { font-size:13px; color:var(--muted); padding:20px; border:1px dashed var(--border); border-radius:10px; text-align:center; line-height:1.7; }
.ar-no-results strong { display:block; color:var(--text); font-size:16px; margin-bottom:4px; }
.no-results-links { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; margin-top:12px; }
.no-results-links a, .no-results-links button { border:1px solid var(--border); border-radius:999px; background:#fffdf5; color:var(--text); padding:7px 10px; font:inherit; font-size:11px; font-weight:750; cursor:pointer; }
.filtered-route-list { list-style:none; display:grid; grid-template-columns:1fr 1fr; gap:8px; padding:0; }
.filtered-route-list li { background:var(--surface); border:1px solid var(--border); border-radius:9px; padding:0; }
.filtered-route-list a { display:block; height:100%; padding:11px 12px; color:var(--text); font-size:13px; line-height:1.45; }
.filtered-route-list a:hover { color:var(--accent); text-decoration:none; }
.ar-group { border:1px solid var(--border); border-radius:10px; background:var(--surface); margin-bottom:8px; }
.ar-group > summary { padding:10px 14px; cursor:pointer; list-style:none; display:flex; align-items:center; gap:10px; user-select:none; font-size:13px; font-weight:800; color:var(--text); }
.ar-group > summary::-webkit-details-marker { display:none; }
.ar-group > summary::after { content:'▾'; margin-left:auto; font-size:12px; color:var(--muted); transition:transform .2s; }
.ar-group[open] > summary::after { transform:rotate(180deg); }
.ar-group-count { font-size:11px; font-weight:600; color:var(--muted); }
.ar-list { list-style:none; padding:0 14px 12px; margin:0; columns:1; column-gap:18px; }
.ar-list li { break-inside:avoid; padding:5px 0; border-bottom:1px solid rgba(90,48,16,.08); }
.ar-list li:last-child { border-bottom:0; }
.ar-list a { display:block; color:var(--text); font-size:13px; line-height:1.4; }
.ar-list a:hover { color:var(--accent); text-decoration:none; }
.ar-list a strong { font-weight:700; }
.ar-meta { color:var(--muted); font-size:11px; }
@media(min-width:600px) {
  .cont-grid { grid-template-columns:1fr 1fr 1fr; padding:0 24px 44px; gap:14px; }
  .hero h1 { font-size:40px; }
  .cby-grid { grid-template-columns:repeat(3,1fr); }
  .cby-section { padding:8px 24px 44px; }
  .theme-section { padding:8px 24px 44px; }
  .theme-grid { grid-template-columns:repeat(3,1fr); }
  .ar-section { padding:8px 24px 44px; }
  .ar-list { columns:2; }
}
@media(min-width:900px) {
  .cont-grid { grid-template-columns:repeat(4,1fr); }
  .cby-grid { grid-template-columns:repeat(4,1fr); }
  .theme-grid { grid-template-columns:repeat(5,1fr); }
  .ar-list { columns:3; }
  .filtered-route-list { grid-template-columns:repeat(3,1fr); }
}
@media(max-width:900px) { .directory-filter-grid { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:600px) { .directory-filter-grid { grid-template-columns:1fr 1fr; } .filtered-route-list { grid-template-columns:1fr; } }
@media(max-width:400px) { .directory-filter-grid { grid-template-columns:1fr; } .directory-search button { padding:0 11px; } }
