/* Только «Мой путь»: отдельная сцена, общие страницы не переоформляем. */
body.in-journey .garden>img { opacity:.2; filter:blur(4px); }
body.in-journey .section-view { max-width:1400px; padding:22px 5.5% 50px; }
body.in-journey .section-heading { margin-bottom:22px; }
.journey-intro { color:var(--muted); max-width:620px; font-size:14px; line-height:1.9; }
.journey-intro p+p { margin-top:6px; font-size:12px; }
.journey-map { position:relative; height:2100px; margin:40px -20px 0; isolation:isolate; background:radial-gradient(ellipse at 15% 25%,#ecd4dc6b,transparent 35%),radial-gradient(ellipse at 88% 66%,#cbd4bd52,transparent 35%); }
.journey-trail { position:absolute; inset:0; width:100%; height:100%; z-index:-1; overflow:hidden; }
.journey-trail path { fill:none; stroke-linecap:round; }
.trail-edge { stroke:#e2d4cc; stroke-width:115; opacity:.45; }
.trail-center { stroke:#fff6eb; stroke-width:106; }
.journey-stop { position:absolute; left:var(--stop-x); top:var(--stop-y); width:250px; transform:translate(-50%,-50%); }
.journey-stone { position:absolute; width:150px; height:110px; border-radius:49% 57% 44% 53%; background:linear-gradient(145deg,#e0d1cb,#cbbab7); box-shadow:0 8px 15px #674f4312,inset 0 2px 5px #fff8; left:-55px; top:100px; display:flex; align-items:end; padding:0 0 12px 25px; font:italic 22px var(--serif); color:#816a70; }
.journey-card { position:relative; display:block; width:100%; padding:12px 12px 18px; background:#fffdf7; border:1px solid #d8c7bc88; box-shadow:5px 12px 24px #71515a18; text-align:left; transform:rotate(var(--card-turn)); transition:transform .35s,box-shadow .35s; }
.journey-card:hover,.journey-card:focus-visible { transform:rotate(0) translateY(-7px); box-shadow:5px 18px 30px #71515a28; }
.journey-photo { aspect-ratio:4/3; background:linear-gradient(145deg,#eee4d9,#dfc8cd); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#806b73; text-align:center; gap:4px; padding:16px; font:italic 14px var(--serif); }
.journey-stop:nth-of-type(even) .journey-photo { background:linear-gradient(145deg,#e8e7dc,#cbd5ca); }
.journey-photo small { max-width:210px; font:10px/1.5 'Segoe UI',sans-serif; opacity:.8; }
.journey-photo-sketch { font:42px/1.3 var(--serif); color:#b18f9c; }
.journey-card-period { display:block; margin:16px 0 6px; color:#916979; font-size:10px; letter-spacing:1.3px; text-transform:uppercase; }
.journey-card h2 { font:24px/1.15 var(--serif); }
.journey-read { display:block; margin-top:14px; color:#927581; font-size:10px; }
.journey-continues { position:absolute; bottom:8px; left:50%; transform:translateX(-50%); font:italic 20px var(--serif); color:var(--muted); white-space:nowrap; }
.journey-draft-note { color:var(--muted); text-align:center; font-size:12px; margin-top:30px; }
.journey-dialog { padding:0; width:1040px; max-width:calc(100% - 36px); max-height:90svh; overflow:auto; box-shadow:0 30px 100px #51333f33; background:#fffaf3 url('assets/images/paper-fibers.svg'); }
.journey-reader-bar { position:sticky; top:0; z-index:2; background:#fffaf3f5; display:flex; justify-content:space-between; align-items:center; border-bottom:1px solid var(--line); padding:15px 25px; font-size:12px; color:var(--muted); }
.journey-reader-bar button { padding:8px; }
.journey-reader-content { display:grid; grid-template-columns: .8fr 1.2fr; gap:40px; padding:40px; align-items:start; }
.journey-reader-photo { position:sticky; top:90px; transform:rotate(-2deg); padding:10px; background:#fffdf9; box-shadow:0 9px 24px #71515a16; }
.journey-reader-photo>.journey-photo { aspect-ratio:3/4; }
.journey-reader-photo .journey-photo-sketch { font-size:68px; }
.journey-story h2 { font:38px/1.1 var(--serif); margin:10px 0 25px; outline:0; }
.journey-story>p:not(.journey-card-period) { font-size:14px; line-height:1.95; margin-bottom:18px; }
.journey-story .journey-card-period { margin-top:0; }
.journey-story-links { display:flex; flex-wrap:wrap; gap:16px; margin-top:30px; }
.journey-story-links a { font-size:12px; color:var(--rose); text-decoration:underline; text-underline-offset:5px; }
.journey-future-link { border:1px dashed #bba3a8; padding:10px 14px; font-size:12px; color:#88727c; }
.journey-future-link small { display:block; font-size:10px; margin-top:4px; }
.journey-extra-photos { display:flex; gap:8px; margin-top:10px; }
.journey-extra-photos span { flex:1; padding:30px 8px; background:#eee5dc; text-align:center; font-size:10px; color:var(--muted); }
.journey-reader-nav { display:flex; align-items:center; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding:20px 30px; font-size:12px; }
.journey-reader-nav button { padding:8px 0; }
.journey-reader-nav button:disabled { opacity:.3; }
.journey-reader-count { color:var(--muted); font-size:10px; white-space:nowrap; }
@media(max-width:760px) {
  body.in-journey .section-view { padding:18px 7% 36px; }
  .journey-intro { font-size:13px; }
  .journey-map { height:auto; margin:35px 0 0; padding:20px 0 65px; background:none; }
  .journey-trail { width:calc(100% + 30px); left:-15px; }
  .journey-stop { position:relative; left:auto; top:auto; transform:none; width:76%; max-width:280px; margin:0 0 55px 18%; }
  .journey-stop:nth-of-type(even) { margin-left:6%; }
  .journey-stone { left:-30px; width:120px; height:100px; }
  .journey-card h2 { font-size:23px; }
  .journey-dialog { max-width:calc(100% - 20px); max-height:94svh; }
  .journey-reader-content { grid-template-columns:1fr; gap:30px; padding:25px; }
  .journey-reader-photo { position:static; max-width:270px; width:100%; margin:auto; }
  .journey-reader-photo>.journey-photo { aspect-ratio:4/3; }
  .journey-story h2 { font-size:32px; }
  .journey-reader-nav { padding:15px; font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .journey-card { transition:none; } }

/* Общий план: все семь остановок помещаются в один кадр. */
body:not(.in-garden) :is(.garden > img, .home-lantern-plane) { object-position:65% 100%; }
body.in-journey .section-view { max-width:1600px; padding:0 4% 20px; }
body.in-journey .back-link { margin-bottom:12px; }
body.in-journey .section-heading { display:flex; align-items:baseline; gap:22px; margin-bottom:10px; }
body.in-journey .section-heading .eyebrow { display:none; }
body.in-journey .section-heading h1 { font-size:42px; }
body.in-journey .section-heading>p:last-child { margin-top:0; font-size:12px; }
.journey-intro { max-width:none; font-size:12px; }
.journey-intro p+p { margin-top:0; font-size:11px; }
.journey-map { height:calc(100svh - 255px); min-height:300px; max-height:780px; margin:0; perspective:1200px; }
.journey-trail-phone { display:none; }
.journey-trail { overflow:visible; }
.trail-edge { stroke-width:115; }
.trail-center { stroke-width:105; }
.journey-stop { position:absolute; width:clamp(85px,10.5vw,154px); height:0; transform:translateX(-50%); }
.journey-card { position:absolute; bottom:30px; padding:7px 7px 10px; transform:none; }
.journey-card:hover,.journey-card:focus-visible { transform:translateY(-5px); }
.journey-stone { left:50%; top:0; transform:translate(-50%,-50%); width:82px; height:48px; padding:0; display:grid; place-items:center; border-radius:50%; font-size:16px; }
.journey-map .journey-photo { height:clamp(52px,7vw,100px); aspect-ratio:auto; padding:5px; gap:0; font-size:10px; }
.journey-map .journey-photo-sketch { font-size:25px; }
.journey-map .journey-photo small,.journey-map .journey-read { display:none; }
.journey-map .journey-card-period { font-size:8px; letter-spacing:.5px; margin:8px 0 4px; }
.journey-card h2 { font-size:clamp(12px,1.25vw,18px); line-height:1.15; }
.journey-continues { font-size:14px; bottom:0; left:auto; right:0; transform:none; }
.journey-draft-note { margin-top:5px; font-size:10px; }
body.in-journey .section-nav { margin-top:18px; padding-top:12px; }
.journey-map-arriving { transform-origin:50% 65%; animation:path-overhead 950ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes path-overhead { from { opacity:.1; transform:perspective(1000px) rotateX(54deg) rotateZ(-12deg) scale(.72); } to { opacity:1; transform:perspective(1000px) rotateX(0) rotateZ(0) scale(1); } }
@media(max-width:760px) {
  body.in-journey .section-view { padding:0 5% 18px; }
  body.in-journey .section-heading { gap:10px; }
  body.in-journey .section-heading h1 { font-size:32px; order:0; }
  body.in-journey .section-heading>p:last-child { font-size:10px; }
  .journey-intro p:first-child { display:none; }
  .journey-map { height:calc(100svh - 265px); min-height:435px; padding:0; margin-top:35px; }
  .journey-trail { display:none; }
  .journey-trail-phone { display:block; width:100%; left:0; }
  .journey-trail-phone .trail-edge { stroke-width:18; }
  .journey-trail-phone .trail-center { stroke-width:16; }
  .journey-stop,.journey-stop:nth-of-type(even) { position:absolute; left:var(--phone-x); top:var(--phone-y); width:100px; margin:0; transform:translateX(-50%); }
  .journey-card { bottom:10px; }
  .journey-map .journey-photo { height:40px; }
  .journey-map .journey-photo-sketch { font-size:18px; }
  .journey-map .journey-photo>span:not(.journey-photo-sketch) { display:none; }
  .journey-map .journey-card-period { font-size:7px; margin:4px 0; }
  .journey-card h2 { font-size:12px; }
  .journey-stone { width:70px; height:32px; font-size:12px; }
  .journey-continues { font-size:12px; }
}
