/* The pulse connects the identity, the walk and the reading rhythm. */
html{scroll-behavior:smooth}
body{transition:background-color .8s,color .8s}
.header,.footer,.workspace .panel,.workspace .map-card,.workspace .scene-health,.workspace .overview-health,.workspace .route-modes,.workspace .walk-map{transition:background-color .9s,color .9s,border-color .9s}
.pulse-rail{position:fixed;left:0;top:0;width:3px;height:var(--reading-progress,0%);max-height:100vh;background:#c4a263;z-index:50;pointer-events:none;transition:height .15s linear}
.photo-pair{position:relative;isolation:isolate;width:100%;height:100%;overflow:hidden;background:#183d31}
.photo-pair>img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity 1.1s ease!important}
.photo-pair>.photo-day{opacity:1}.photo-pair>.photo-night{opacity:0}
body[data-mode=night] .photo-pair>.photo-day{opacity:0}body[data-mode=night] .photo-pair>.photo-night{opacity:1}
.hero-photo-pair{position:absolute;inset:0;z-index:-3}
.hero-photo-pair>img{object-position:60% center;animation:forest-breath 24s ease-in-out infinite alternate}
@keyframes forest-breath{from{transform:scale(1.015)}to{transform:scale(1.055) translateX(-.3%)}}
.hero-light-drift{position:absolute;inset:-15%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 75% 20%,#e9d29520,transparent 55%);animation:forest-light 18s ease-in-out infinite alternate;transition:opacity 1s}
@keyframes forest-light{from{opacity:.25;transform:translate(-2%,-1%)}to{opacity:.8;transform:translate(3%,1%)}}
body[data-mode=night] .hero-light-drift{opacity:0;animation:none}
.hero-pulse{position:absolute;right:8%;bottom:155px;color:#e2c995;width:clamp(190px,23vw,330px);pointer-events:none;transition:transform .7s,filter .7s}
.hero-pulse svg{width:100%;height:auto;overflow:visible}
.hero-pulse path{fill:none;stroke:currentColor;stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 0 8px #d4b77745)}
.hero-ecg-static{display:none}
.hero-pulse>span{display:block;font-size:9px;letter-spacing:1px;text-align:center;color:#ede2c4b8;margin-top:10px}
.premium-hero:has(.hero-actions .primary-button:hover) .hero-pulse{filter:drop-shadow(0 0 10px #e2c99575);transform:translateY(7px)}
.hero-pulse-tail{position:absolute;bottom:0;left:8%;height:55px;width:1px;background:linear-gradient(transparent,#d7b97e);transform-origin:top;animation:pulse-tail 1.2s ease-out both}
.is-departing .hero-pulse{transform:translateY(80svh);opacity:0;transition:transform .35s ease-in,opacity .35s}
.is-departing .hero-pulse-tail{height:90%;transition:height .3s}
@keyframes pulse-tail{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.home-editorial,.home-health-story,.home-bottom-cta{position:relative}
.home-editorial:before,.home-health-story:before,.home-bottom-cta:before{content:"";position:absolute;left:5%;top:0;width:1px;height:34px;background:linear-gradient(#b99a60,transparent)}
.home-scene-photo{height:280px;border-radius:12px;overflow:hidden}
.home-scene .photo-pair img{transition:opacity 1.1s ease,transform .7s ease!important}
.home-scene:hover .photo-pair img{transform:scale(1.035)}
.scene-frame>.photo-pair{height:clamp(220px,24vw,330px)}
.scene-frame.portrait>.photo-pair{height:380px}
.scene-frame.wide>.photo-pair{height:auto;aspect-ratio:1672/469;min-height:175px;max-height:310px}
.scene-frame .photo-pair>img{height:100%;max-height:none;min-height:0;aspect-ratio:auto}
.scene-frame:is(.wide,.portrait) .photo-pair>img{object-fit:contain}
.map-evening-shade{position:absolute;inset:0;background:#082719;opacity:0;z-index:1;pointer-events:none;transition:opacity 1s}
body[data-mode=night] .map-evening-shade{opacity:.46}
.map-lamps{opacity:0;fill:#ffe3a0;filter:drop-shadow(0 0 7px #ffd37a);transition:opacity 1s}
body[data-mode=night] .map-lamps{opacity:1}
.map-routes .route-progress{display:none;stroke:#f2d292;stroke-width:9;stroke-dasharray:100;stroke-dashoffset:100;opacity:1;transition:stroke-dashoffset 1.1s ease}
.map-routes .forest-branch{stroke:#f6f6ef}
.map-routes .forest-branch.is-visited{stroke:#f2d292;stroke-width:8!important;stroke-dasharray:none!important}
.current-map-dot{fill:#edcf91;stroke:#fff4d8;stroke-width:3;filter:drop-shadow(0 0 6px #e6c483b0);transform-box:fill-box;transform-origin:center;animation:map-dot-pulse 3.4s ease-in-out infinite}
@keyframes map-dot-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.35)}}
.walk-map :is(.named-pin,.side-chip).active{transform:translate(-50%,-50%) scale(1.035)}
.map-routes .section.active{animation:route-pulse 3.4s ease-in-out infinite;stroke:#f1d196}
@keyframes route-pulse{0%,100%{opacity:.5;filter:drop-shadow(0 0 2px #e3be74)}50%{opacity:.95;filter:drop-shadow(0 0 7px #e3be7480)}}
.named-pin.active,.side-chip.active{animation:pin-pulse 3.4s ease-in-out infinite}
@keyframes pin-pulse{0%,100%{box-shadow:0 0 0 2px #d5b57533,0 3px 12px #0002}50%{box-shadow:0 0 0 7px #d5b57515,0 3px 12px #0002}}
.location-marker[hidden]{display:none}
.workspace-modes{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:25px;flex-wrap:wrap}
.route-modes{display:inline-flex;gap:4px;border:1px solid #cfd7c5;background:#edf0e6;border-radius:40px;padding:5px}
.route-modes>button{border-radius:30px;padding:12px 20px;background:transparent;color:#53644c;font-size:11px;min-height:44px}
.route-modes>button.selected{background:#183d31;color:#f7f4ed;box-shadow:0 2px 7px #183d311a}
.workspace-modes .mode-switch{position:static;background:#e8ecdf}
.walk-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin:10px 0 45px}
.walk-heading h1{font-family:Georgia,serif;font-weight:400;font-size:clamp(36px,4vw,62px);letter-spacing:-1.8px;line-height:1.1;margin:20px 0}
.walk-heading>div>p:last-child{font-size:13px;line-height:1.8;color:var(--muted);max-width:520px}
.walk-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(360px,1.2fr);gap:7%;align-items:start}
.walk-map{position:sticky;top:22px;display:flex;flex-direction:column;align-items:center}
.walk-map-inner{width:100%;max-width:calc((100svh - 220px)*.755)}
.walk-map .map-card{position:static;width:100%;margin:0;padding:12px;border-radius:12px}
.walk-map .map-tools{display:none}
.walk-map .map-viewport{max-height:none;overflow:hidden}
.walk-map .map-canvas{width:100%!important}
.walk-map .map-topline{padding:3px 3px 12px}
.walk-map .map-topline>strong{font-size:11px}
.walk-map .map-caption{font-size:9px;padding:12px 3px 2px;line-height:1.7}
.walk-map .map-caption>span{display:none}
.walk-map .map-caption{font-size:0}
.walk-map .map-caption:after{content:"Нажмите на точку, чтобы перейти к остановке";font-size:9px}
.walk-map .route-progress{display:block}
.walk-position{width:100%;display:flex;gap:13px;align-items:center;padding:17px 3px 12px;border-bottom:1px solid var(--line);max-width:calc((100svh - 220px)*.755)}
.walk-position>span{font-size:11px;letter-spacing:1px;color:#947644;white-space:nowrap}
.walk-position>div{flex:1;min-width:0}
.walk-position strong{display:block;font-size:12px;font-weight:500}
.walk-position small{display:block;font-size:9px;color:var(--muted);margin-top:6px}
.walk-next{border:1px solid #c6d1bc;border-radius:50%;background:transparent;color:inherit;width:44px;height:44px;display:grid;place-items:center;flex-shrink:0}
.walk-next svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.5;transform:rotate(90deg)}
.walk-light{padding-top:13px}
.walk-light .mode-switch{position:static;background:#e5eadc}
.walk-chapters{min-width:0;position:relative}
.walk-chapters:before{content:"";position:absolute;top:0;bottom:0;left:-26px;width:1px;background:linear-gradient(#c9ac73,#dcd5c2 92%,transparent);pointer-events:none}
.walk-chapter{padding:30px 0 65px;min-height:86svh;scroll-margin-top:30px;position:relative}
.walk-chapter:before{content:"";position:absolute;left:-30px;top:39px;border:1px solid #b89b65;border-radius:50%;width:9px;height:9px;background:#f7f4ed;transition:background .6s,box-shadow .6s}
.walk-chapter.is-current:before{background:#b89b65;box-shadow:0 0 0 5px #b89b651c}
.walk-chapter-top{display:flex;align-items:center;gap:18px}
.walk-chapter-top>span{font-family:Georgia,serif;font-size:15px;color:#9b7e47}
.walk-chapter h2{font-family:Georgia,serif;font-weight:400;font-size:clamp(31px,3.3vw,48px);line-height:1.12;letter-spacing:-1px;margin:22px 0 28px}
.walk-photo{position:relative;height:clamp(230px,29vw,420px);border-radius:12px;overflow:hidden;background:#183d31}
.walk-photo img{object-fit:contain}
.walk-photo>span{position:absolute;left:18px;bottom:16px;font-size:9px;letter-spacing:.3px;color:#f2efdf;background:#142f25d6;border:1px solid #f2efdf25;border-radius:30px;padding:7px 11px;z-index:1}
.walk-text{font-size:15px;line-height:1.9;color:var(--muted);margin:25px 0 13px;max-width:570px}
.walk-chapter-links{display:flex;align-items:center;justify-content:space-between;gap:15px}
.walk-chapter-links .text-button{font-size:11px}
.walk-finish{border-top:1px solid var(--line);margin-top:15px;padding:65px 0 25px;text-align:center}
.walk-finish h2{font-family:Georgia,serif;font-size:clamp(38px,5vw,66px);font-weight:400;line-height:1.1;letter-spacing:-1.5px;margin:25px 0 30px}
.walk-finish h2 em{color:#82956c}
.walk-finish>div{display:flex;gap:24px;align-items:center;justify-content:center;flex-wrap:wrap}
.health-intro-compact{display:flex;align-items:center;justify-content:space-between;gap:50px;padding:20px 0 60px}
.health-intro-compact h1{font-size:clamp(44px,5.7vw,77px);max-width:850px}
.health-intro-compact h1 em{color:#82956c}
.health-intro-compact .health-lead{font-size:15px;line-height:1.8;max-width:580px;margin-top:25px}
.health-pulse-mark{width:190px;flex-shrink:0}
.health-pulse-mark svg{width:100%;fill:none;stroke:#b89960;stroke-width:1.2;stroke-dasharray:550;animation:health-line 2s ease-out both}
@keyframes health-line{from{stroke-dashoffset:550}to{stroke-dashoffset:0}}
.health-visual{background:#183d31;color:#f6f1e2;border-radius:14px;padding:40px 40px 48px;margin-bottom:15px}
.health-visual>.eyebrow{color:#d4be91}
.health-visual>h2{font-family:Georgia,serif;font-weight:400;font-size:clamp(28px,3vw,40px);line-height:1.2;margin:20px 0 12px}
.benefits-hint{font-size:11px;line-height:1.7;color:#bdcbb4}
.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:35px;margin-top:35px;align-items:start}
.benefit-card{border-top:1px solid #f6f1e237;padding-top:15px}
.benefit-card summary{list-style:none;cursor:pointer;position:relative}
.benefit-card summary::-webkit-details-marker{display:none}
.benefit-number{font-family:Georgia,serif;font-weight:400;font-size:clamp(78px,9vw,126px);line-height:1;color:#e0c797;letter-spacing:-5px;display:block;transition:color .5s,transform .5s;transform-origin:left}
.benefit-card:hover .benefit-number{transform:translateY(-4px);color:#f3dbac}
.benefit-card h3{font-family:Georgia,serif;font-size:25px;line-height:1.2;font-weight:400;margin:24px 25px 17px 0;color:#f6f1e2}
.benefit-plus{position:absolute;right:0;bottom:5px;font-size:20px;color:#c5b084;font-weight:300;transition:transform .3s}
.benefit-card[open] .benefit-plus{transform:rotate(45deg)}
.benefit-copy{animation:benefit-in .5s ease both}
.benefit-copy p{font-size:12px;line-height:1.85;color:#c5d0bd}
@keyframes benefit-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
.health-archive{border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:28px;padding:19px 0}
.health-archive>summary{font-size:13px;line-height:1.7;list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:15px}
.health-archive>summary::-webkit-details-marker{display:none}
.health-archive>summary>span{font-size:22px;color:#9a845a;transition:transform .3s}
.health-archive[open]>summary>span{transform:rotate(45deg)}
.health-community-compact>p:not(.eyebrow){font-size:14px;line-height:1.9;max-width:600px;color:var(--muted);margin-top:22px}
.health-community-compact .project-goals{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;padding:30px;margin-top:20px}
.health-community-compact .project-goals>p{grid-column:1/-1}
.health-sources{font-size:10px;line-height:1.9;color:#77806f;max-width:850px;padding:25px 0 15px}
.health-sources p+p{margin-top:12px}
.health-sources a{color:inherit;text-underline-offset:3px}
/* Evening colours stay local to the route, keeping editorial pages readable. */
body[data-mode=night]:is([data-view=map],[data-view=walk],[data-view=start],[data-view=right],[data-view=top],[data-view=left],[data-view=bottom],[data-view=forest],[data-view=entrance]){background:#10271f;color:#e9ebdf;--muted:#b1c0ac;--line:#355044}
body[data-mode=night] .workspace .eyebrow{color:#c4b68c}
body[data-mode=night] .workspace :is(h1,h2,h3){color:#ecebdc}
body[data-mode=night] .workspace .panel{background:#1c362a;border-color:#385342}
body[data-mode=night] .workspace .map-card{background:#1d382b;color:#e9ebdf}
body[data-mode=night] .workspace :is(.scene-intro,.scene-details,.scene-location,.map-caption,.overview>p,.walk-heading>div>p:last-child){color:#b6c6b0}
body[data-mode=night] .workspace :is(.scene-health,.overview-health,.direction-button){background:#294332;color:#e6e8d9}
body[data-mode=night] .workspace :is(.scene-health>p,.direction-button small,.scene-health .source-note){color:#c2cfb7}
body[data-mode=night] .workspace .text-button{color:#e0c58e}
body[data-mode=night] .workspace .route-modes{background:#1d382b;border-color:#405c47}
body[data-mode=night] .workspace .route-modes>button{color:#c4d0b9}
body[data-mode=night] .workspace .route-modes>button.selected{background:#d8c08e;color:#173b2b}
body[data-mode=night] .workspace .mode-switch{background:#dfe5d6}
body[data-mode=night] .walk-chapter:before{background:#10271f}
body[data-mode=night] .walk-chapter.is-current:before{background:#c4a263}
body[data-mode=night]:is([data-view=map],[data-view=walk],[data-view=start],[data-view=right],[data-view=top],[data-view=left],[data-view=bottom],[data-view=forest],[data-view=entrance]) .header-nav .nav-link{color:#d4ddc8}
body[data-mode=night]:is([data-view=map],[data-view=walk],[data-view=start],[data-view=right],[data-view=top],[data-view=left],[data-view=bottom],[data-view=forest],[data-view=entrance]) .brand svg{stroke:#d7c28e}
body[data-mode=night]:is([data-view=map],[data-view=walk],[data-view=start],[data-view=right],[data-view=top],[data-view=left],[data-view=bottom],[data-view=forest],[data-view=entrance]) .footer{color:#c8d1bc}
body[data-mode=night]:is([data-view=map],[data-view=walk],[data-view=start],[data-view=right],[data-view=top],[data-view=left],[data-view=bottom],[data-view=forest],[data-view=entrance]) .footer{background:#162f24}
body[data-mode=night]:is([data-view=map],[data-view=walk],[data-view=start],[data-view=right],[data-view=top],[data-view=left],[data-view=bottom],[data-view=forest],[data-view=entrance]) .footer :is(strong,button){color:#d8ddc8}
@media(max-width:1050px){.walk-heading{align-items:start;flex-direction:column;gap:10px}.walk-layout{gap:7%;grid-template-columns:minmax(250px,.85fr) minmax(300px,1.15fr)}.hero-pulse{right:6%;width:220px;bottom:190px}.home-scene-photo{height:235px}.health-intro-compact{gap:30px}.health-pulse-mark{width:135px}.health-visual{padding:32px}.benefit-grid{gap:25px}.benefit-card h3{font-size:22px}}
@media(max-width:760px){
  .hero-pulse{right:7%;bottom:95px;width:150px}.hero-pulse>span{display:none}.hero-pulse svg{max-height:65px}.hero-pulse-tail{left:7%;height:27px}.hero-light{max-width:190px;font-size:9px;line-height:1.5;text-align:left}.hero-bottom{align-items:end}.hero-photo-pair>img{object-position:62% center}.hero-actions{gap:13px}.home-scene-photo{height:250px}.home-scene .photo-pair{width:100%}
  .workspace-modes{gap:15px;align-items:start;margin-top:20px}.route-modes{width:100%;justify-content:stretch;max-width:410px}.route-modes>button{flex:1;padding:11px 12px;font-size:10px}.workspace-modes>.mode-switch{margin-left:auto}.scene-frame.portrait>.photo-pair{height:350px}.scene-frame>.photo-pair{height:260px}.scene-frame.wide>.photo-pair{height:auto;aspect-ratio:1672/650;min-height:175px}
  .walk-heading{gap:15px;margin:5px 0 24px}.walk-heading h1{font-size:38px;letter-spacing:-1.2px;margin:18px 0}.walk-heading>div>p:last-child{font-size:12px}.walk-layout{display:block}.walk-map{top:0;z-index:8;background:#f7f4edf5;backdrop-filter:blur(16px);display:grid;grid-template-columns:105px 1fr;grid-template-rows:1fr auto;column-gap:17px;padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:12px;min-height:153px;align-items:center}
  .walk-map-inner{width:105px;max-width:none;grid-row:1/3}.walk-map .map-card{padding:4px;border-radius:7px}.walk-map .map-topline,.walk-map .map-caption,.walk-map .side-chip,.walk-map .named-pin,.walk-map .location-marker{display:none}.walk-map .map-canvas{aspect-ratio:725/960}.walk-map .map-viewport{border-radius:4px}.walk-map .section{stroke-width:16}.walk-map .route-progress{stroke-width:13}.walk-map .map-lamps circle{r:6px}
  .walk-position{width:100%;max-width:none;border:0;padding:0;gap:10px;align-self:end}.walk-position>span{font-size:9px}.walk-position strong{font-size:11px;line-height:1.45}.walk-position small{font-size:8px;line-height:1.5}.walk-next{width:38px;height:38px}.walk-light{padding-top:11px;align-self:start;justify-self:start}.walk-light .mode-switch>button{font-size:10px;min-height:36px;padding:8px 13px}
  .walk-chapters{padding-left:17px}.walk-chapters:before{left:0}.walk-chapter{scroll-margin-top:185px;min-height:75svh;padding:30px 0 48px}.walk-chapter:before{left:-21px;top:38px}.walk-chapter h2{font-size:34px;line-height:1.12;margin:20px 0 23px}.walk-photo{height:270px;border-radius:9px}.walk-text{font-size:13px;line-height:1.85;margin-top:22px}.walk-chapter-top{gap:12px}.walk-chapter-top>.eyebrow{font-size:9px;letter-spacing:1px}.walk-chapter-links{gap:12px;flex-wrap:wrap}.walk-chapter-links .text-button{font-size:10px}.walk-finish{padding-top:40px}.walk-finish h2{font-size:43px}.walk-finish>div{gap:13px;flex-direction:column}
  .health-intro-compact{display:block;padding:12px 0 35px}.health-intro-compact h1{font-size:45px}.health-intro-compact .health-lead{font-size:13px;margin-top:20px}.health-pulse-mark{width:140px;margin:25px 0 0 auto}.health-visual{padding:30px 25px;border-radius:10px}.health-visual>h2{font-size:31px}.benefit-grid{grid-template-columns:1fr;gap:25px;margin-top:28px}.benefit-card{padding-top:17px}.benefit-card summary{display:grid;grid-template-columns:95px 1fr;gap:20px;align-items:center;min-height:95px}.benefit-number{font-size:85px;letter-spacing:-4px}.benefit-card h3{font-size:23px;margin:0 20px 0 0}.benefit-plus{bottom:10px}.benefit-copy p{padding-top:12px;font-size:12px}.health-archive>summary{font-size:12px}.health-community-compact .project-goals{display:block;padding:23px}.health-community-compact .project-goals>div{margin-top:20px}.health-sources{font-size:9px}
  body[data-mode=night] .walk-map{background:#10271ff5}
}
@media(max-width:360px){.walk-map{grid-template-columns:88px 1fr;column-gap:12px;min-height:140px}.walk-map-inner{width:88px}.walk-position>span{display:none}.walk-chapter{scroll-margin-top:165px}.walk-photo{height:235px}.walk-chapter h2{font-size:30px}.health-intro-compact h1{font-size:40px}.benefit-card summary{grid-template-columns:80px 1fr;gap:14px}.benefit-number{font-size:75px}.benefit-card h3{font-size:21px}.hero-light{max-width:150px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*:before,*:after{animation:none!important;transition:none!important}.hero-ecg-morph{display:none}.hero-ecg-static{display:block}.hero-photo-pair>img{transform:none!important}}
@media print{.pulse-rail{display:none}}
