@font-face{font-family:"Road";src:url(/assets/fonts/road-condensed.woff2) format("woff2");font-weight:500 800;font-display:swap}
@font-face{font-family:"Bitter";src:url(/assets/fonts/bitter.woff2) format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Bitter";src:url(/assets/fonts/bitter-italic.woff2) format("woff2");font-weight:400 500;font-style:italic;font-display:swap}

:root{
  --ink:#1F3E8F;--text:#1C2340;--muted:#56607A;--sky:#DCEAFF;--hill:#A9C4F5;
  --line:#4D7BEA;--sun:#FFCF5C;--paper:#FFFFFF;--rule:#D6DFEF;--tip:#FFF7E0;
  --road:"Road","Roboto Condensed","Arial Narrow",sans-serif;
  --serif:"Bitter","PT Serif",Georgia,serif;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--paper);color:var(--text);font:400 17px/1.72 var(--serif);font-feature-settings:"onum" 0}
img,svg{display:block;max-width:100%}
a{color:var(--ink);text-decoration-thickness:1px;text-underline-offset:3px}
a:hover{text-decoration-thickness:2px}
:focus-visible{outline:3px solid var(--line);outline-offset:3px;border-radius:2px}
h1,h2,h3{font-family:var(--road);color:var(--ink);font-weight:700;line-height:1.05;margin:0}
h2{font-size:34px;margin:56px 0 14px}
h3{font-size:24px}
p{margin:0 0 1em}
.wrap{max-width:1040px;margin:0 auto;padding:0 24px}
.skip{position:absolute;left:-999px;top:8px;background:var(--ink);color:#fff;padding:8px 14px;z-index:10}
.skip:focus{left:12px}

/* шапка */
.top{border-bottom:1px solid var(--rule);background:var(--paper)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:64px;flex-wrap:wrap}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font:700 26px/1 var(--road);color:var(--ink)}
.brand svg{width:34px;height:34px}
.top nav{display:flex;gap:22px;font:500 19px/1 var(--road)}
.top nav a{color:var(--text);text-decoration:none;padding:6px 0;border-bottom:3px solid transparent}
.top nav a:hover{border-bottom-color:var(--hill)}
.top nav a[aria-current]{border-bottom-color:var(--sun)}

/* главная: панорама */
.hero{position:relative;min-height:clamp(440px,62vw,640px);overflow:hidden;background:#D6E4FF}
.hero-art{position:absolute;inset:0}
.hero-art svg{width:100%;height:100%}
.hero-text{position:relative;padding-top:clamp(36px,7vw,84px)}
.hero h1{font-size:clamp(58px,10.5vw,128px);line-height:.88;font-weight:800;letter-spacing:-.01em;color:var(--ink)}
.hero p{max-width:30em;margin-top:22px;font-size:18px;color:var(--text)}
.hero .sun{transform-box:fill-box;transform-origin:center;animation:rise 1.8s cubic-bezier(.2,.7,.2,1) both}
@keyframes rise{from{transform:translateY(70px);opacity:.3}to{transform:none;opacity:1}}

.block{padding-bottom:24px}
.block h2:first-child{margin-top:64px}
.page-title{font-size:clamp(40px,6vw,64px);margin:56px 0 16px}
.intro{max-width:38em;color:var(--muted)}
.lead{font-size:20px;line-height:1.6;max-width:36em}

/* ось маршрутов: дорога и километровые столбы */
.axis{list-style:none;margin:36px 0 0;padding:0;position:relative}
.axis::before{content:"";position:absolute;left:35px;top:0;bottom:0;width:18px;background:var(--ink)}
.axis::after{content:"";position:absolute;left:43px;top:10px;bottom:10px;width:2px;
  background:repeating-linear-gradient(to bottom,#fff 0 18px,transparent 18px 38px)}
.ax-row{display:grid;grid-template-columns:88px 1fr;align-items:center;padding:18px 0;position:relative;z-index:1}
.post{display:inline-flex;align-items:center;justify-content:center;min-width:62px;height:42px;padding:0 8px;
  background:#fff;border:2px solid var(--text);border-radius:4px;color:var(--text);
  font:700 26px/1 var(--road);font-variant-numeric:tabular-nums lining-nums;justify-self:center}
.ax-item{display:grid;grid-template-columns:240px 1fr;gap:24px;align-items:center;text-decoration:none;color:var(--text)}
.ax-item img{width:240px;height:104px;object-fit:cover;border-radius:6px;background:var(--sky)}
.ax-text{display:flex;flex-direction:column;gap:4px}
.ax-title{font:700 27px/1.1 var(--road);color:var(--ink)}
.ax-item:hover .ax-title{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:4px}
.ax-sum{max-width:34em}
.ax-time{font:500 17px/1.3 var(--road);color:var(--muted)}
.ax-end{height:28px}

/* заметки */
.notes{list-style:none;margin:20px 0 0;padding:0;border-top:1px solid var(--rule)}
.notes li{display:flex;justify-content:space-between;align-items:baseline;gap:24px;padding:18px 0;border-bottom:1px solid var(--rule)}
.notes a{text-decoration:none;display:flex;flex-direction:column;gap:2px}
.n-title{font:700 23px/1.15 var(--road)}
.notes a:hover .n-title{text-decoration:underline}
.n-sum{color:var(--muted)}
.notes time{font:500 17px/1 var(--road);color:var(--muted);white-space:nowrap}

/* страница маршрута */
.route-art img{width:100%;height:clamp(220px,36vw,440px);object-fit:cover}
.route-head{display:grid;grid-template-columns:auto 1fr;gap:28px;align-items:start}
.post-lg{min-width:96px;height:62px;font-size:40px;margin-top:-31px;border-width:3px}
.route-head h1{font-size:clamp(38px,5.4vw,62px);margin-top:22px}
.facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:24px 0 36px;padding-top:16px;border-top:1px solid var(--rule)}
.facts div{margin:0}
.facts dt{font:500 16px/1.2 var(--road);color:var(--muted)}
.facts dd{margin:4px 0 0;font-weight:600}
.route .lead,.route p,.route .stops{max-width:40em}

.strip{list-style:none;margin:20px 0 32px;padding:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);counter-reset:st}
.strip li{position:relative;padding:40px 14px 0 0}
.strip li::before{content:"";position:absolute;left:0;right:0;top:15px;height:6px;background:var(--ink)}
.strip li:last-child::before{right:auto;width:24px}
.strip li::after{counter-increment:st;content:counter(st);position:absolute;left:0;top:4px;width:28px;height:28px;border-radius:50%;
  background:#fff;border:3px solid var(--ink);box-sizing:border-box;display:flex;align-items:center;justify-content:center;
  font:700 15px/1 var(--road);color:var(--ink)}
.strip li.st-start::after{content:"";background:var(--sun);counter-increment:none}
.st-km{display:block;font:700 18px/1.2 var(--road);color:var(--ink);font-variant-numeric:tabular-nums}
.st-name{display:block;font-size:15px;line-height:1.4;color:var(--muted)}

.stops{list-style:none;margin:0;padding:0;counter-reset:sp}
.stops li{position:relative;padding:0 0 8px 48px;margin-bottom:22px}
.stops li::before{counter-increment:sp;content:counter(sp);position:absolute;left:0;top:-2px;width:32px;height:32px;border-radius:50%;
  background:var(--ink);color:#fff;display:flex;align-items:center;justify-content:center;font:700 17px/1 var(--road)}
.stops h3{margin-bottom:6px}

.tip{background:var(--tip);border-left:6px solid var(--sun);padding:18px 24px 6px;margin:36px 0;max-width:40em}
.tip h2{font-size:24px;margin:0 0 8px}
.upd{color:var(--muted);font-size:15px}
.pn{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:40px 0 64px;padding-top:24px;border-top:1px solid var(--rule)}
.pn a{text-decoration:none;font:700 23px/1.15 var(--road)}
.pn a:hover{text-decoration:underline}
.pn small{display:block;font:500 16px/1.4 var(--road);color:var(--muted)}
.pn-next{text-align:right}

.note{max-width:760px;padding-bottom:64px}
.note ul{padding-left:1.2em;max-width:38em}
.note li{margin-bottom:.5em}
.note-date{margin:56px 0 0;font:500 18px/1 var(--road);color:var(--muted)}
.note-date + .page-title{margin-top:12px}
.back{margin-top:32px}
.nf .post-lg{margin-top:64px}

/* подвал */
.foot{background:var(--ink);color:var(--sky);margin-top:72px;padding:40px 0 48px;font-size:15px}
.foot p{max-width:44em}
.foot-name{font:800 34px/1 var(--road);color:#fff;margin-bottom:14px}
.home .foot{margin-top:40px}

@media (max-width:760px){
  body{font-size:16.5px}
  .top nav{gap:16px;font-size:17px}
  .hero{min-height:0}
  .hero-text{padding-bottom:150px}
  .hero .sun{display:none}
  .hero-art svg{position:absolute;left:-30%;bottom:0;width:160%;max-width:none;height:auto}
  .axis::before{left:22px;width:14px}
  .axis::after{left:28px}
  .ax-row{grid-template-columns:64px 1fr;align-items:start}
  .post{min-width:50px;height:36px;font-size:21px}
  .ax-item{grid-template-columns:1fr;gap:10px}
  .ax-item img{width:100%;height:120px}
  .facts{grid-template-columns:repeat(2,minmax(0,1fr))}
  .route-head{grid-template-columns:1fr;gap:0}
  .route-head h1{margin-top:14px}
  .strip{grid-auto-flow:row;grid-auto-columns:auto}
  .strip li{padding:0 0 18px 44px}
  .strip li::before{left:11px;right:auto;top:0;bottom:0;width:6px;height:auto}
  .strip li:last-child::before{height:14px;width:6px}
  .strip li::after{top:0}
  .notes li{flex-direction:column;gap:6px}
  .pn{grid-template-columns:1fr}
  .pn-next{text-align:left}
}
@media (prefers-reduced-motion:reduce){.hero .sun{animation:none}}
