/* =========================================================
   Accueil narratif — Sclérose en Piste
   ========================================================= */

/* ---------- Héros immersif ---------- */
.xhero {
  position: relative; height: 100svh; min-height: 620px; overflow: hidden;
  background: var(--navy); color: #fff; isolation: isolate;
}
.xhero__bg { position: absolute; inset: -4%; z-index: -3; will-change: transform; }
.xhero__bg video, .xhero__bg img { width: 100%; height: 100%; object-fit: cover; }
.xhero__shade {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 30% 45%, rgba(14,42,71,.25), rgba(14,42,71,.75) 70%),
    linear-gradient(180deg, rgba(14,42,71,.55) 0%, rgba(14,42,71,.15) 35%, rgba(14,42,71,.35) 70%, rgba(14,42,71,.95) 100%);
}
.xhero__grain {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.xhero__inner {
  position: relative; z-index: 3; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding-top: var(--header-h); padding-bottom: 18vh;
}
.xhero__kicker {
  display: inline-flex; align-items: center; gap: 12px; align-self: flex-start;
  font-size: .8rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: #cfe8f7;
  padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); margin: 0 0 22px;
}
.xhero__kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(242,140,40,.7); animation: kick 2s infinite; }
@keyframes kick { 70% { box-shadow: 0 0 0 10px rgba(242,140,40,0); } 100% { box-shadow: 0 0 0 0 rgba(242,140,40,0); } }

.xhero__title {
  font-size: clamp(3.6rem, 12.5vw, 11.5rem); line-height: .86; letter-spacing: -.01em;
  text-transform: uppercase; color: #fff; margin: 0 0 26px; font-weight: 400;
  text-shadow: 0 10px 40px rgba(0,0,0,.25);
}
.xhero__title .row { display: block; white-space: nowrap; }
.xhero__title .row--2 { padding-left: .55em; }
.xhero__title .outline { color: transparent; -webkit-text-stroke: 2px rgba(255,255,255,.9); text-shadow: none; }
.xhero__title .sky { color: var(--sky); }
.xhero__title .ch {
  display: inline-block; transform-origin: 50% 100%;
  transition: transform .35s cubic-bezier(.3,1.6,.5,1), color .3s;
}
.js-anim .xhero__title .ch { opacity: 0; transform: translateY(70%) rotate(8deg); }
.xhero__title .ch:hover { transform: translateY(-.08em) rotate(-4deg) !important; color: var(--orange); -webkit-text-stroke-color: var(--orange); }
.xhero__tag { font-size: clamp(1.05rem, 1.8vw, 1.4rem); color: #dcebf7; max-width: 560px; margin: 0 0 32px; }
.xhero__tag b { color: #fff; font-weight: 600; }
.js-anim .xhero__fade { opacity: 0; transform: translateY(24px); }

/* Montagnes en couches */
.xhero__layers { position: absolute; left: 0; right: 0; bottom: -2px; height: 46vh; z-index: 2; pointer-events: none; }
.xhero__layers svg { position: absolute; left: -4%; width: 108%; bottom: 0; height: 100%; will-change: transform; }
.layer-far { opacity: .55; }
.mini-runner .runner-svg { width: 26px; height: 36px; animation-duration: .22s; }
.mini-runner .limb { stroke: #fff; stroke-width: 12; stroke-linecap: round; fill: none; }
.mini-runner .head { fill: #fff; }
.xhero__sun { filter: drop-shadow(0 0 30px rgba(31,169,230,.8)); }

.xhero__scroll {
  position: absolute; z-index: 4; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: #cfe0f0;
}
.xhero__scroll span { width: 2px; height: 46px; background: linear-gradient(#fff, transparent); position: relative; overflow: hidden; border-radius: 2px; }
.xhero__scroll span::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--orange); animation: drip 1.6s infinite; }
@keyframes drip { to { top: 110%; } }

/* ---------- Navigation des chapitres ---------- */
.chapters-nav {
  position: fixed; right: 22px; top: 50%; z-index: 90; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px; opacity: 0; pointer-events: none; transition: opacity .4s;
}
.chapters-nav.show { opacity: 1; pointer-events: auto; }
.chapters-nav a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; color: var(--navy); font-size: .78rem; font-weight: 600; }
.chapters-nav a span { opacity: 0; transform: translateX(8px); transition: all .3s var(--ease); background: rgba(255,255,255,.92); padding: 4px 10px; border-radius: 999px; box-shadow: var(--shadow); white-space: nowrap; }
.chapters-nav a:hover span, .chapters-nav a.active span { opacity: 1; transform: none; }
.chapters-nav a i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--sky); background: rgba(255,255,255,.7); transition: all .3s var(--ease); flex: none; }
.chapters-nav a.active i { background: var(--orange); border-color: var(--orange); transform: scale(1.35); }
.chapters-nav.on-dark a span { background: rgba(14,42,71,.85); color: #fff; }

/* ---------- Chapitres communs ---------- */
.chapter { position: relative; overflow-x: clip; }
.chapter__label {
  display: inline-flex; align-items: baseline; gap: 14px; margin-bottom: 20px;
  font-family: var(--font-title); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky);
}
.chapter__label b { font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px var(--sky); font-weight: 400; }

/* Chapitre 1 : la maladie */
.ch-disease { background: var(--navy); color: #cfe0f0; padding: clamp(90px, 12vw, 150px) 0; }
.ch-disease__statement {
  font-family: var(--font-title); font-size: clamp(2.2rem, 5.6vw, 5rem); line-height: 1.05; color: #fff; margin: 0 0 50px; max-width: 1050px;
}
.ch-disease__statement .wd { display: inline-block; opacity: .14; transition: opacity .2s; margin-right: .22em; }
.ch-disease__statement .hl { color: var(--sky); }
.ch-disease__statement .hl2 { color: var(--orange); }
.disease-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 40px; }
.dstat { padding: 26px 24px; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.12); background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); }
.dstat b { display: block; font-family: var(--font-title); font-weight: 400; font-size: clamp(2.4rem, 4vw, 3.4rem); color: #fff; line-height: 1; margin-bottom: 8px; }
.dstat span { font-size: .95rem; color: #a9c3dc; }
.ch-disease__quote { display: flex; gap: 18px; align-items: center; color: #fff; font-size: clamp(1.1rem, 2vw, 1.4rem); max-width: 760px; }
.ch-disease__quote::before { content: ""; flex: none; width: 46px; height: 4px; border-radius: 4px; background: var(--orange); }

/* Chapitre 2 : le défi */
.ch-challenge { background: var(--bg); padding-bottom: clamp(80px, 10vw, 130px); }
.ch-challenge__band { background: linear-gradient(180deg, var(--navy), #143a63); padding-bottom: 150px; margin-bottom: -110px; }
.ch-challenge__top { padding: clamp(40px, 6vw, 70px) 0 0; color: #dcebf7; }
.challenge-grid { position: relative; z-index: 2; }
.challenge-story { background: #fff; border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.ch-challenge__top h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 900px; }
.challenge-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(30px, 6vw, 80px); align-items: start; margin-top: 50px; }
.big-numbers { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 30px); }
.big-num {
  background: var(--white); border-radius: var(--radius-lg); padding: 26px 30px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
}
.big-num b { font-family: var(--font-title); font-weight: 400; font-size: clamp(3.4rem, 7vw, 6rem); line-height: .9; color: var(--navy); }
.big-num b small { font-size: .45em; color: var(--sky); margin-left: 4px; }
.big-num > span { color: var(--muted); font-size: .95rem; }
.challenge-story { color: var(--text); }
.challenge-story p { font-size: 1.06rem; }
.challenge-photos { position: relative; height: 520px; margin: 40px 0; }
.challenge-photos figure { position: absolute; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 6px solid #fff; will-change: transform; }
.challenge-photos img { width: 100%; height: 100%; object-fit: cover; }
.challenge-photos .p1 { width: 62%; height: 64%; left: 0; top: 0; transform: rotate(-3deg); }
.challenge-photos .p2 { width: 52%; height: 58%; right: 0; top: 18%; transform: rotate(4deg); z-index: 2; }
.challenge-photos .p3 { width: 44%; height: 42%; left: 14%; bottom: 0; transform: rotate(-1deg); z-index: 3; }
.ch-challenge .elevation { margin-top: 10px; }

/* Chapitre 3 : le parcours */
.ch-route { background: var(--navy); color: #cfe0f0; }
.route-intro { padding: clamp(80px, 10vw, 120px) 0 30px; }
.route-intro h2 { color: #fff; font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 900px; }
.route-intro p { max-width: 640px; color: #a9c3dc; font-size: 1.08rem; }
.route-stage { height: 100svh; display: flex; align-items: center; }
.route-stage .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 5vw, 70px); align-items: center; width: min(var(--container), 100% - 40px); }
.route-map { position: relative; border-radius: 28px; overflow: hidden; background: #0b2440; box-shadow: 0 30px 80px rgba(0,0,0,.35); aspect-ratio: 600 / 620; max-height: 78svh; margin-inline: auto; width: 100%; }
.route-map svg { width: 100%; height: 100%; display: block; }
.route-map .road { stroke: #1f4569; stroke-width: 6; fill: none; stroke-linecap: round; }
.route-map .road.s { stroke-width: 3; }
.route-map .field { fill: #16405f; }
.route-map .park { fill: #1d5a4a; opacity: .55; }
.route-map .house { fill: #24507a; }
.route-map .route-base { stroke: rgba(255,255,255,.18); stroke-width: 9; fill: none; stroke-linecap: round; stroke-dasharray: 2 14; }
.route-map .route-trail { stroke: var(--sky); stroke-width: 9; fill: none; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(31,169,230,.7)); }
.route-map .stop circle.ring { fill: none; stroke: #fff; stroke-width: 2.5; opacity: .5; }
.route-map .stop circle.dot { fill: #0b2440; stroke: #fff; stroke-width: 3; transition: fill .3s; }
.route-map .stop text { fill: #fff; font: 600 13px var(--font-body); text-anchor: middle; }
.route-map .stop.done circle.dot { fill: var(--orange); stroke: var(--orange); }
.route-map .stop.current circle.ring { animation: ringPulse 1.4s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ringPulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.route-map .runner-dot circle { fill: var(--orange); stroke: #fff; stroke-width: 4; }
.route-map .runner-dot .halo { fill: rgba(242,140,40,.3); stroke: none; animation: halo 1.2s infinite; transform-box: fill-box; transform-origin: center; }
@keyframes halo { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }
.route-map__hud {
  position: absolute; left: 16px; top: 16px; right: 16px; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none;
}
.hud-km { background: rgba(14,42,71,.85); border: 1px solid rgba(255,255,255,.15); border-radius: 14px; padding: 8px 14px; color: #fff; backdrop-filter: blur(6px); }
.hud-km b { font-family: var(--font-title); font-weight: 400; font-size: 1.9rem; line-height: 1; }
.hud-km small { display: block; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #9fbbd6; }
.hud-tag { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: #9fbbd6; background: rgba(14,42,71,.7); padding: 6px 10px; border-radius: 999px; }
.route-progress { position: absolute; left: 16px; right: 16px; bottom: 16px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.12); overflow: hidden; }
.route-progress i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--sky), var(--orange)); }

.route-steps { position: relative; min-height: 470px; }
.route-step {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(30px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none;
}
.route-step.active { opacity: 1; transform: none; pointer-events: auto; }
.route-step__photo { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 22px; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.route-step__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.route-step.active .route-step__photo img { transform: scale(1); }
.route-step__num { font-family: var(--font-title); color: var(--orange); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.route-step h3 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 10px; }
.route-step p { color: #b7cde2; font-size: 1.02rem; margin: 0; }
.route-dots { display: flex; gap: 8px; margin-top: 22px; }
.route-dots i { height: 6px; flex: 1; border-radius: 6px; background: rgba(255,255,255,.15); transition: background .3s; }
.route-dots i.on { background: var(--orange); }
.route-outro { padding: 30px 0 clamp(80px, 10vw, 120px); text-align: center; }
.route-outro .tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 0 0 26px; }
.route-outro .tags span { border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 8px 16px; color: #fff; font-weight: 500; font-size: .92rem; }
.route-outro .tags span b { color: var(--sky); font-family: var(--font-title); font-weight: 400; font-size: 1.15rem; margin-right: 4px; }

/* Chapitre 4 : l'impact */
.ch-impact { padding: clamp(90px, 11vw, 140px) 0 0; }
.ch-impact h2 { font-size: clamp(2.2rem, 5vw, 4.2rem); max-width: 900px; }
.impact-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 50px 0 80px; }
.istat { position: relative; padding: 30px 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s; }
.istat:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.istat::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(31,169,230,.18), transparent 70%); }
.istat b { display: block; white-space: nowrap; font-family: var(--font-title); font-weight: 400; font-size: clamp(2.4rem, 4.2vw, 3.8rem); line-height: 1; color: var(--navy); margin-bottom: 10px; }
.istat b .unit { color: var(--sky); }
.istat > span { color: var(--muted); font-size: .95rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .chapters-nav { display: none; }
  .impact-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .challenge-grid { grid-template-columns: 1fr; }
  .big-numbers { position: static; grid-template-columns: 1fr 1fr; }
  .big-num { padding: 20px; }
  .challenge-photos { height: 420px; }
  .route-stage { height: 100svh; min-height: 0; padding: 78px 0 16px; align-items: flex-start; }
  .route-stage .container { grid-template-columns: 1fr; gap: 18px; }
  .route-map { max-height: 42svh; aspect-ratio: auto; height: 42svh; }
  .route-steps { min-height: 330px; }
  .route-step__photo { aspect-ratio: 16 / 7; margin-bottom: 12px; }
  .route-steps { min-height: 0; height: calc(58svh - 150px); }
  .route-dots { margin-top: 10px; }
  .disease-stats { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .xhero__title { font-size: clamp(3rem, 16.5vw, 6rem); }
  .xhero__title .row--2 { padding-left: 0; }
  .xhero__layers { height: 34vh; }
  .xhero__inner { padding-bottom: 22vh; }
  .xhero__scroll { display: none; }
  .big-numbers { grid-template-columns: 1fr; }
  .challenge-photos { height: 340px; }
  .impact-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .istat { padding: 22px 16px; }
  .route-step h3 { font-size: 1.5rem; }
  .route-step p { font-size: .9rem; }
  .route-step h3 { margin-bottom: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .js-anim .xhero__title .ch, .js-anim .xhero__fade { opacity: 1; transform: none; }
  .ch-disease__statement .wd { opacity: 1; }
  .route-step { position: relative; opacity: 1; transform: none; margin-bottom: 30px; }
  .route-steps { min-height: 0; }
}

/* ---------- Transition chapitre 1 → 2 : la phrase clé ---------- */
.ch-bridge { margin-top: clamp(70px, 10vw, 130px); padding-top: clamp(40px, 6vw, 70px); border-top: 1px solid rgba(255,255,255,.12); text-align: center; }
.ch-bridge__q { font-family: var(--font-title); color: #fff; font-size: clamp(2.3rem, 6vw, 5.4rem); line-height: 1.04; margin: 0 auto 18px; max-width: 1100px; }
.ch-bridge__q em { font-style: normal; color: var(--orange); position: relative; white-space: nowrap; }
.ch-bridge__q em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .1em; border-radius: 99px; background: var(--orange); opacity: .35; transform-origin: left; transform: scaleX(var(--u, 1)); }
.ch-bridge__a { font-family: var(--font-title); color: #a9c3dc; font-size: clamp(1.5rem, 3.4vw, 2.8rem); margin: 0; }
.ch-bridge__a span { color: var(--sky); }
.ch-bridge__arrow { display: block; width: 2px; height: 90px; margin: 44px auto 0; background: linear-gradient(var(--orange), transparent); position: relative; }
.ch-bridge__arrow::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 12px; height: 12px; margin-left: -6px; border-right: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(45deg); opacity: .7; animation: bridgeBob 1.8s ease-in-out infinite; }
@keyframes bridgeBob { 50% { transform: translateY(8px) rotate(45deg); } }

/* ---------- Chapitre 2 : l'association (missions) ---------- */
.missions { display: grid; gap: 14px; position: sticky; top: calc(var(--header-h) + 30px); }
.mission { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; box-shadow: var(--shadow); transition: transform .4s var(--ease), box-shadow .4s; }
.mission:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.mission > b { font-family: var(--font-title); font-weight: 400; font-size: 2.2rem; line-height: 1; color: var(--orange); min-width: 48px; }
.mission h3 { margin: 2px 0 6px; font-size: 1.3rem; color: var(--navy); }
.mission p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Chapitre 3 : médias multiples par étape ---------- */
.route-step__photo { background: #0b2440; }
.route-step__photo .rm { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease, transform 1.2s var(--ease); transform: scale(1.06); }
.route-step__photo .rm.on { opacity: 1; transform: scale(1); }
.route-step__photo img.rm { transform: scale(1.06); }
.route-step.active .route-step__photo img.rm.on { transform: scale(1); }
.rm-dots { position: absolute; z-index: 2; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; }
.rm-dots i { width: 22px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.45); transition: background .3s, width .3s; }
.rm-dots i.on { background: #fff; width: 34px; }

/* ---------- Formats de course ---------- */
.race-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 34px; text-align: left; }
.race-formats > div { border-radius: var(--radius); padding: 26px 24px; border: 1px solid rgba(255,255,255,.14); background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02)); transition: transform .4s var(--ease), border-color .4s; }
.race-formats > div:hover { transform: translateY(-6px); border-color: var(--orange); }
.race-formats b { display: block; font-family: var(--font-title); font-weight: 400; color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; margin-bottom: 8px; }
.race-formats > div:nth-child(-n+2) b { color: var(--sky); }
.race-formats span { color: #a9c3dc; font-size: .95rem; }
@media (max-width: 900px) {
  .race-formats { grid-template-columns: 1fr 1fr; }
  .missions { position: static; }
}
@media (max-width: 420px) { .race-formats b { font-size: 1.7rem; } .race-formats > div { padding: 20px 16px; } }
@media (max-width: 700px) {
  .ch-bridge__q em { white-space: normal; }
  .ch-bridge__q em::after { display: none; }
}

/* ---------- Chapitre 3 : mise en page resserrée + médias verticaux ---------- */
.route-intro { padding-bottom: 0; }
.route-intro p { margin-bottom: 0; }
.route-outro { padding-top: 6px; }
@media (min-width: 901px) {
  .route-stage { height: auto; padding: 34px 0 24px; }
  .route-map { max-height: min(620px, calc(100svh - 150px)); }
  .route-steps { min-height: 0; height: calc(min(52svh, 440px) + 190px); }
  .route-step { justify-content: flex-start; }
  .route-step__photo { aspect-ratio: 4 / 5; height: min(52svh, 440px); width: auto; max-width: 100%; margin-bottom: 18px; align-self: flex-start; }
}
@media (max-width: 900px) {
  .route-step { display: grid; grid-template-columns: 40% 1fr; grid-template-rows: auto auto 1fr; column-gap: 14px; align-content: center; }
  .route-step__photo { grid-row: 1 / 4; aspect-ratio: 4 / 5; margin: 0; }
  .route-step__num { align-self: end; }
  .route-steps { height: calc(58svh - 120px); }
}
@media (max-width: 900px) {
  .route-map { height: 44svh; max-height: 44svh; }
  .route-step { grid-template-columns: 46% 1fr; }
  .route-steps { height: min(260px, calc(100svh - 44svh - 150px)); }
}
