/* Перевал — клуб авторских экспедиций. Палитра: крафт-бумага, тушь, мох, ржавчина, охра. */
:root {
  --paper: #EEE5D0;
  --paper-2: #E4D7B9;
  --ink: #17241F;
  --ink-2: #44544B;
  --moss: #1C362C;
  --moss-2: #2B4D40;
  --rust: #C2502A;
  --rust-2: #A63F1E;
  --ochre: #E2AE48;
  --glacier: #9DB8B4;
  --line: rgba(23, 36, 31, .16);
  --ease-over: cubic-bezier(.34, 1.56, .64, 1);
  --ease-over-hard: cubic-bezier(.3, 1.9, .5, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gut: clamp(16px, 4vw, 140px);
  --f-disp: 'Oswald', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-text: 'Alegreya', Georgia, 'Times New Roman', serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: clamp(15px, calc(.55vw + 8px), 23px); -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; }
html.reduce, html.scenes { scroll-behavior: auto; } /* в режиме сцен прокруткой управляет GSAP — плавность браузера мешает */
body { background: var(--paper); color: var(--ink); font-family: var(--f-text); font-size: 1.06rem; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* зерно бумаги — фоном секций, а не слоем поверх экрана: так оно рисуется один раз */
:root { --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
.mono { font-family: var(--f-mono); letter-spacing: .02em; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--ink); color: var(--paper); padding: .6em 1em; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; }

.label { font-size: .74rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); display: flex; gap: .9em; align-items: center; }
.label b { color: var(--rust); font-weight: 500; }
.label::after { content: ''; flex: 0 0 3.5rem; height: 1px; background: currentColor; opacity: .4; }
.h2 { font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; line-height: .98; letter-spacing: -.005em; font-size: clamp(2.3rem, 5.2vw, 7.4rem); }
.kicker { font-size: .74rem; text-transform: uppercase; letter-spacing: .16em; }

.btn { display: inline-flex; align-items: center; gap: .6em; background: var(--rust); color: #FBF4E4; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--f-disp); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; font-size: .95rem; padding: 1.05em 1.7em; border-radius: 999px;
  position: relative; overflow: hidden; transition: transform .5s var(--ease-over), background .3s; }
.btn span { position: relative; z-index: 1; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .45s var(--ease-out); border-radius: inherit; }
.btn:hover { transform: translateY(-2px); }
.btn.is-magnet:hover { transform: none; }
.btn:hover::before { transform: none; }
.btn--big { font-size: 1.1rem; }
.link { font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .08em; font-size: .9rem; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: .15em; display: inline-flex; gap: .4em; }
.link i { font-style: normal; display: inline-block; transition: transform .5s var(--ease-over); }
.link:hover i { transform: translateX(.5em); }

/* ===== Навигация ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 80; display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1rem var(--gut); transition: background .4s, transform .5s var(--ease-out), color .4s; }
.nav.is-solid { background: rgba(238, 229, 208, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.nav.is-dark { color: var(--paper); }
.nav.is-dark.is-solid { background: rgba(28, 54, 44, .88); box-shadow: 0 1px 0 rgba(238, 229, 208, .12); }
.nav__logo { display: flex; align-items: center; gap: .6rem; text-decoration: none; font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; letter-spacing: .18em; font-size: 1.05rem; }
.nav__logo svg { width: 2.2rem; height: auto; }
.nav__links { display: flex; gap: 2rem; font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; }
.nav__links a { text-decoration: none; position: relative; }
.nav__links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--rust); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease-out); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; text-decoration: none; border: 1.5px solid currentColor; padding: .55em 1.2em; border-radius: 999px; transition: background .3s, color .3s; }
.nav__cta:hover { background: var(--rust); border-color: var(--rust); color: #FBF4E4; }

/* ===== Высотомер ===== */
.alti { position: fixed; right: clamp(10px, 1.4vw, 36px); top: 50%; transform: translateY(-50%); z-index: 70; display: flex; flex-direction: column; align-items: center; gap: .6rem; pointer-events: none; transition: color .4s; }
.alti__scale { width: 10px; height: 34vh; position: relative;
  background: repeating-linear-gradient(to top, currentColor 0 1px, transparent 1px 10px); opacity: .55; }
.alti__fill { position: absolute; left: 50%; bottom: 0; width: 3px; margin-left: -1.5px; height: 100%; background: var(--rust); transform-origin: bottom; transform: scaleY(0); }
.alti__val, .alti__top { font-size: .66rem; letter-spacing: .08em; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; }
.alti__val { color: var(--rust); font-weight: 500; }
.alti.is-dark { color: var(--paper); }

/* ===== 1. Герой ===== */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: var(--paper); }
#terrain { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(to top, rgba(238, 229, 208, .92) 0%, rgba(238, 229, 208, .6) 45%, rgba(238, 229, 208, 0)); pointer-events: none; z-index: 1; }
.hero__inner { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(4.5rem, 10vh, 9rem); z-index: 2; }
.hero__kicker { display: flex; gap: 2rem; color: var(--ink-2); margin-bottom: .6rem; }
.hero__kicker span + span::before { content: '◆'; color: var(--rust); margin-right: 2rem; font-size: .6em; vertical-align: .2em; }
.hero__title { font-family: var(--f-disp); font-weight: 700; line-height: .8; font-size: clamp(5.2rem, 19.5vw, 34rem); letter-spacing: -.01em; margin-left: -.04em; display: flex; }
.hero__title .ch { display: inline-block; will-change: transform; }
.hero__title .ch-mask, .foot__word .ch-mask { padding-top: .08em; margin-top: -.08em; }
.hero__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 3rem; margin-top: 1.6rem; opacity: calc(1 - var(--hp, 0) * 1.8); }
.hero__lead { max-width: 36em; font-size: clamp(1.05rem, 1.15vw, 1.5rem); line-height: 1.45; }
.hero__cta { display: flex; align-items: center; gap: 2rem; flex-shrink: 0; }
.hero__hud { position: absolute; top: 5.4rem; left: var(--gut); font-size: .7rem; letter-spacing: .1em; color: var(--ink-2); white-space: pre; z-index: 2; }
.hero__scroll { position: absolute; right: var(--gut); bottom: 1.6rem; font-size: .68rem; text-transform: uppercase; letter-spacing: .16em; display: flex; align-items: center; gap: .8rem; color: var(--ink-2); z-index: 2; }
.hero__scroll i { width: 1px; height: 2.4rem; background: currentColor; transform-origin: top; animation: drip 2.2s var(--ease-out) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }


/* ===== 2. Направления ===== */
.dest { position: relative; padding: clamp(5rem, 12vh, 11rem) var(--gut) clamp(4rem, 10vh, 9rem); }
.dest__head { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 2.5rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.dest__head .label { grid-column: 1 / -1; }
.dest__head .h2 { grid-column: 1 / 3; }
.dest__note { color: var(--ink-2); font-size: 1.05rem; max-width: 26em; }
.flip-words .w { display: inline-block; perspective: 600px; white-space: nowrap; }
.flip-words .wi { display: inline-block; transform-origin: 50% 100%; }

.dest__row { display: flex; gap: clamp(10px, 1vw, 22px); height: clamp(460px, 72vh, 1100px); }
.card { position: relative; flex: 1 1 0; min-width: 0; border-radius: 14px; overflow: hidden; color: #FBF4E4; background: var(--moss); transition: flex-grow .9s var(--ease-out); isolation: isolate; }
.card .card__art { transition: transform 1.2s var(--ease-out); }
.card:hover .card__art, .card:focus-within .card__art { transform: scale(1.045); }
.card__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.card__art .lyr { will-change: transform; }
.card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18, 24, 20, .82) 0%, rgba(18, 24, 20, .35) 38%, transparent 62%); z-index: 1; pointer-events: none; }
.card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1rem, 1.6vw, 2.2rem); }
.card__num { font-size: .66rem; letter-spacing: .14em; opacity: .8; }
.card h3 { font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.8rem, 2.6vw, 3.6rem); line-height: 1; margin: .35rem 0 .5rem; }
.card p { font-size: .96rem; line-height: 1.4; max-width: 24em; opacity: .92; }
.card__meta { display: flex; gap: 1.2rem; margin-top: .9rem; font-size: .7rem; flex-wrap: wrap; }
.card__meta dt { opacity: .6; text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; }
.card__meta dd { font-weight: 500; white-space: nowrap; }
.card__link { display: inline-block; margin-top: .9rem; font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; color: var(--ochre); text-decoration: none; }
/* ирис-маска */

/* ===== 3. Маршрут ===== */
/* маршрут больше не тянется прокруткой: сцена ровно в экран, линия проигрывается сама */
.route { position: relative; background: var(--paper-2); }
.route__stage { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; }
.route .topo { position: absolute; inset: -4% -4%; width: 108%; height: 108%; }
.route__map { position: absolute; top: 0; bottom: 0; right: 0; left: 34%; }
.route__map svg { width: 100%; height: 100%; }
.route__camwrap { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.route__camwrap svg { position: absolute; inset: 0; }
.map-static { pointer-events: none; }

.map__river { fill: none; stroke: #7FA3A6; stroke-width: 5; stroke-linecap: round; opacity: .75; }
.map__river--thin { stroke-width: 3; }
.map__lake { fill: #A9C6C6; stroke: #7FA3A6; stroke-width: 2; }
.map__peaks path { fill: var(--ink); opacity: .78; }
.map__labels text { font-size: 13px; fill: var(--ink-2); letter-spacing: .12em; }
.route__ghost { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; opacity: .35; }
.route__line { fill: none; stroke: var(--rust); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.route__head circle { fill: var(--rust); }
.route__pulse { fill: none !important; stroke: var(--rust); stroke-width: 2; animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { transform: scale(.4); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
.mark { transform-box: fill-box; }
.mark__dot { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.mark__flag { fill: var(--ink); }
.mark__txt { font-family: var(--f-mono); font-size: 15px; font-weight: 500; fill: var(--paper); }
.mark__g { transform: scale(0); transform-origin: 0 0; transition: transform .7s var(--ease-over-hard); }
.mark.on .mark__g { transform: scale(1); }
.mark.on .mark__flag { fill: var(--rust); }
.route__panel { position: absolute; left: var(--gut); top: 0; bottom: 0; width: min(36%, 40rem); display: flex; flex-direction: column; justify-content: center; gap: 2rem; z-index: 2; padding: 6rem 0 5rem; }
.route__panel::before { content: ''; position: absolute; top: 0; bottom: 0; left: calc(-1 * var(--gut)); right: -4rem; background: linear-gradient(90deg, var(--paper-2) 80%, rgba(228, 215, 185, 0)); z-index: -1; }
.route__day { display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: start; }
.route__dnum { font-family: var(--f-disp); font-weight: 700; font-size: clamp(5rem, 9vw, 13rem); line-height: .8; color: var(--rust); display: block; min-width: 1.15em; }
.route__dtext h3 { font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 2.1vw, 2.9rem); line-height: 1.02; margin-bottom: .7rem; }
.route__dtext p { color: var(--ink-2); font-size: 1.02rem; max-width: 30em; min-height: 6.2em; }
.route__stats { display: flex; gap: 1.8rem; margin-top: 1.2rem; font-size: .78rem; flex-wrap: wrap; }
.route__stats dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.route__stats dd { font-weight: 500; }
.route__day.swap .route__dnum { animation: dnum .8s var(--ease-over-hard); }
.route__day.swap .route__dtext > * { animation: dtext .7s var(--ease-out) both; }
.route__day.swap .route__dtext > *:nth-child(2) { animation-delay: .06s; }
.route__day.swap .route__dtext > *:nth-child(3) { animation-delay: .12s; }
@keyframes dnum { from { transform: translateY(40%) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes dtext { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.route__more { align-self: flex-start; }
.route__bar { position: absolute; left: 34%; right: calc(var(--gut) + 1.5rem); bottom: 2.2rem; height: 2px; background: rgba(23, 36, 31, .2); z-index: 2; }
.route__barfill { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: var(--rust); transform-origin: left; transform: scaleX(0); }
.route__ticks button { position: absolute; top: -1.9rem; width: 2.4rem; margin-left: -1.2rem; height: 2.8rem; background: none; border: 0; cursor: pointer; font: inherit; font-size: .62rem; color: var(--ink-2); padding: 0; }
.route__ticks button::after { content: ''; position: absolute; left: 50%; bottom: .55rem; width: 1px; height: calc(.9rem + 2px); background: var(--ink); }
.route__ticks button b { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-weight: 500; white-space: nowrap; transition: color .3s; }
.route__ticks button.on b { color: var(--rust); }
.route__ticks button:hover b, .route__ticks button:focus-visible b { color: var(--ink); }

/* ===== 4. Как это проходит ===== */
.how { position: relative; padding: clamp(6rem, 14vh, 12rem) var(--gut); overflow: hidden; }
.how__head { display: grid; grid-template-columns: 1fr auto; gap: 2rem 3rem; align-items: end; margin-bottom: clamp(3rem, 8vh, 7rem); }
.how__head .label { grid-column: 1 / -1; }
.pack { width: auto; height: clamp(13rem, 30vh, 30rem); fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; margin-right: clamp(0rem, 4vw, 6rem); }
.pack .pack__mat { stroke: var(--rust); fill: rgba(194, 80, 42, .12); }
.pack .pack__axe { stroke: var(--moss-2); stroke-width: 3; }
.pack .pack__trail { stroke-dasharray: .012 .02; opacity: .5; }
.reduce .pack path { stroke-dashoffset: 0 !important; opacity: 1 !important; }
.wipe__line { display: block; position: relative; width: -webkit-fit-content; width: -moz-fit-content; width: fit-content; max-width: 100%; }
.wipe__bar { position: absolute; inset: -.02em -.12em; background: var(--rust); transform: scaleX(0); transform-origin: left; z-index: 2; pointer-events: none; }
@keyframes wipe { 0% { transform: scaleX(0); transform-origin: left; } 49% { transform: scaleX(1); transform-origin: left; } 51% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.wipe__line:nth-child(2) { color: var(--rust); }

.how__steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 2.5vw, 4rem); border-top: 1px solid var(--line); }
.step { position: relative; padding-top: 2.2rem; }
.step__line { position: absolute; top: -1px; left: 0; width: 100%; height: 3px; background: var(--ink); }
.step__ico { width: 3.4rem; height: 3.4rem; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 1.4rem; }
.step__n { position: absolute; right: 0; top: 1.6rem; font-family: var(--f-disp); font-weight: 700; font-size: clamp(3rem, 4.6vw, 6.4rem); line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--rust); }
.step h3 { font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 1.6vw, 2.1rem); margin-bottom: .6rem; }
.step p { color: var(--ink-2); max-width: 24em; }

.how__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; margin: clamp(4rem, 10vh, 8rem) 0; padding: clamp(2rem, 4vh, 3.5rem) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat b { display: block; font-family: var(--f-disp); font-weight: 700; font-size: clamp(3.4rem, 7vw, 10rem); line-height: .9; color: var(--moss); font-variant-numeric: tabular-nums; }
.stat span { display: block; margin-top: .6rem; color: var(--ink-2); max-width: 15em; }
.how__incl { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(2rem, 5vw, 8rem); }
.incl__h { font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.4rem, 1.8vw, 2.4rem); margin-bottom: 1.2rem; }
.incl ul { list-style: none; }
.incl li { display: flex; gap: 1rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.08rem; }
.incl li svg { width: 1.5rem; height: 1.5rem; flex: none; fill: none; stroke: var(--moss-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.incl--no li { color: var(--ink-2); }
.incl--no li svg { stroke: var(--rust); }

/* ===== 5. Истории ===== */
.stories { position: relative; background: var(--moss); color: var(--paper); padding: clamp(6rem, 14vh, 12rem) var(--gut) clamp(6rem, 14vh, 12rem); overflow: hidden; }
.stories .topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.stories .label { color: rgba(238, 229, 208, .7); }
.stories__head { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem 4rem; align-items: end; margin-bottom: clamp(3rem, 8vh, 6rem); }
.stories__head .label { grid-column: 1 / -1; }
.stories__lead { font-size: 1.15rem; max-width: 28em; opacity: .85; font-style: italic; }
.focus-letters .ch { display: inline-block; }
.stories__table { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(1.2rem, 2.2vw, 3.2rem); align-items: start; }
.snap { grid-column: span 2; background: #F6EEDC; color: var(--ink); padding: clamp(.7rem, .9vw, 1.2rem) clamp(.7rem, .9vw, 1.2rem) 1.4rem; border-radius: 3px; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .55), 0 2px 0 rgba(0, 0, 0, .1); will-change: transform; }
.snap:nth-child(4) { grid-column: 2 / span 2; }
.snap:nth-child(2) { margin-top: 4rem; }
.snap:nth-child(5) { margin-top: -2rem; }
.snap__art { width: 100%; aspect-ratio: 4 / 3; height: auto; background: var(--glacier); }
.snap figcaption { padding: 1rem .3rem 0; }
.snap__where { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.snap blockquote { font-style: italic; font-size: clamp(1.05rem, 1.2vw, 1.5rem); line-height: 1.35; margin: .5rem 0 .8rem; }
.snap cite { font-style: normal; font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--ink-2); }

/* ===== 6. Подбор ===== */
.pick { position: relative; padding: clamp(6rem, 14vh, 12rem) var(--gut); overflow: hidden; }
.pick .fit__in { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2rem, 6vw, 9rem); align-items: start; }
.pick__left { position: -webkit-sticky; position: sticky; top: 6rem; }
.rise-lines em { font-style: normal; color: var(--rust); }
.rise-lines .rl-mask { padding-bottom: .06em; }
.pick .h2 { margin: 1.6rem 0 2rem; font-size: clamp(2.2rem, 4.2vw, 6.4rem); }
.compass { position: relative; width: min(100%, 30rem); }
.compass svg { width: 100%; height: auto; overflow: visible; }
.compass__ring { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.compass__ring--in { stroke-dasharray: 2 6; opacity: .6; }
.compass__ticks line { stroke: var(--ink); stroke-width: 1.2; }
.compass__rose path { fill: none; stroke: var(--ink-2); stroke-width: 1.2; }
.compass__letters text { font-size: 20px; text-anchor: middle; fill: var(--ink); font-weight: 500; }

.needle__n { fill: var(--rust); }
.needle__s { fill: var(--ink); }
.compass__needle circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.compass__bearing { margin-top: 1rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }

.pick__form { display: grid; gap: 2rem; background: #F5EDDA; border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.4rem, 3vw, 3.6rem); position: relative; box-shadow: 0 30px 60px -40px rgba(23, 36, 31, .45); }
.pick__form fieldset { border: 0; }
.pick__form legend, .field > span { display: block; font-family: var(--f-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); margin-bottom: .8rem; }
.chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: .62em 1.15em; border: 1.5px solid var(--ink); border-radius: 999px; font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .06em; font-size: .92rem; transition: background .25s, color .25s, transform .45s var(--ease-over); }
.chips label:hover span { transform: translateY(-2px); }
.chips input:checked + span { background: var(--ink); color: var(--paper); transform: scale(1.05); }
.chips input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 3px; }
.pick__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.field { display: block; }
.field output { color: var(--rust); font-weight: 500; margin-left: .4em; }
.field input[type=text], .field select { width: 100%; font: inherit; font-size: 1.05rem; color: var(--ink); background: transparent; border: 0; border-bottom: 1.5px solid var(--ink); padding: .5em 0; border-radius: 0; -webkit-appearance: none; appearance: none; }
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 6px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 1.6rem; }
.field input[type=text]:focus, .field select:focus { outline: none; border-bottom-color: var(--rust); }
.field input.bad { border-bottom-color: var(--rust); }
.field input[type=range] { width: 100%; accent-color: var(--rust); margin-top: .6rem; }
.field__err { color: var(--rust-2); min-height: 1.2em; margin-top: -1.2rem; font-size: .95rem; }
.pick__demo { font-size: .68rem; color: var(--ink-2); letter-spacing: .08em; margin-top: -1rem; }
.pick__form .btn { justify-self: start; }
.result { position: relative; border-top: 1.5px dashed var(--ink); padding-top: 2rem; }
.result[hidden] { display: none; }
.result__stamp { position: absolute; right: 0; top: 1.2rem; width: 8.5rem; height: 8.5rem; border: 3px solid var(--rust); border-radius: 50%; display: grid; place-items: center; color: var(--rust); transform: rotate(-14deg); }
.result__stamp::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--rust); border-radius: 50%; }
.result__stamp span { font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: 1.05rem; }
.result.show .result__stamp { animation: stamp .7s var(--ease-over-hard) both; }
.result.show > p, .result.show > h3 { animation: dtext .8s var(--ease-out) both; }
@keyframes stamp { 0% { transform: rotate(-30deg) scale(2.6); opacity: 0; } 60% { opacity: 1; } 100% { transform: rotate(-14deg) scale(1); opacity: 1; } }
.result__hi { font-style: italic; color: var(--ink-2); padding-right: 9rem; }
.result__title { font-family: var(--f-disp); text-transform: uppercase; font-weight: 600; font-size: clamp(1.6rem, 2.2vw, 2.8rem); line-height: 1.04; margin: .4rem 0 .8rem; padding-right: 9rem; }
.result__text { max-width: 34em; }
.result__note { margin-top: 1rem; font-size: .68rem; color: var(--rust-2); letter-spacing: .08em; }

/* ===== 7. Подвал ===== */
.foot { position: relative; background: var(--ink); color: var(--paper); padding: clamp(5rem, 12vh, 9rem) var(--gut) 2rem; overflow: hidden; }
.foot .topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.foot .label { color: rgba(238, 229, 208, .65); }
.foot__top { position: relative; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 3rem; }
.foot__big { font-size: clamp(1.3rem, 1.8vw, 2.4rem); line-height: 1.3; margin-top: 1.4rem; max-width: 22em; }
.foot__links { display: flex; flex-direction: column; gap: .5rem; font-family: var(--f-disp); text-transform: uppercase; letter-spacing: .08em; padding-top: 2.6rem; }
.foot__links a { text-decoration: none; opacity: .8; transition: opacity .3s, transform .4s var(--ease-over); }
.foot__links a:hover { opacity: 1; transform: translateX(.4em); color: var(--ochre); }
.foot__contacts { display: flex; flex-direction: column; gap: .6rem; font-size: .8rem; padding-top: 2.6rem; opacity: .85; word-break: break-word; }
.foot__word { position: relative; font-family: var(--f-disp); font-weight: 700; font-size: clamp(5rem, 23vw, 40rem); line-height: .78; letter-spacing: -.01em; margin: clamp(3rem, 8vh, 6rem) 0 1.4rem; display: flex; justify-content: space-between; color: var(--paper); }
.foot__word .ch { display: inline-block; }
.foot__bottom { position: relative; display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; font-size: .66rem; letter-spacing: .06em; opacity: .7; border-top: 1px solid rgba(238, 229, 208, .2); padding-top: 1.2rem; }

/* ===== Пейзажи: живые детали ===== */
.mist { animation: mist 14s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
@keyframes mist { from { transform: translateX(-4%); } to { transform: translateX(5%); } }
.plume { animation: plume 10s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: 0 100%; }
@keyframes plume { from { transform: skewX(-2deg) scale(.98); } to { transform: skewX(3deg) scale(1.03); } }
.lava-glow { animation: lava 2.4s ease-in-out infinite alternate; }
@keyframes lava { from { opacity: .55; } to { opacity: 1; } }
.ray { animation: ray 2.8s ease-in-out infinite alternate; }
@keyframes ray { to { opacity: .1; } }
.flame { animation: flame .45s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1, 1) skewX(-3deg); } to { transform: scale(.92, 1.12) skewX(4deg); } }
.spark { animation: spark 2.6s linear infinite; transform-box: fill-box; }
@keyframes spark { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
.smoke circle { animation: smoke 8s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes smoke { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: .75; } 100% { transform: translate(60px, -150px) scale(2.4); opacity: 0; } }
.aurora { animation: aur 9s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.aurora.a1 { animation-duration: 12s; animation-delay: -3s; }
.aurora.a2 { animation-duration: 7s; animation-delay: -5s; }
@keyframes aur { from { transform: skewX(-8deg) translateX(-10px); opacity: .35; } to { transform: skewX(8deg) translateX(14px); opacity: .9; } }
.twinkle { animation: tw 3s ease-in-out infinite alternate; }
@keyframes tw { to { opacity: .15; } }
.glow { animation: glow 2.6s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: .6; } }

/* ===== Адаптив ===== */
@media (max-width: 1280px) {
  .nav__links { gap: 1.3rem; }
  .how__steps { grid-template-columns: repeat(2, 1fr); row-gap: 3.5rem; }
}
@media (max-width: 1100px) {
  .alti { display: none; }
  .nav__links { display: none; }
  .dest__head { grid-template-columns: 1fr; }
  .dest__head .h2 { grid-column: auto; }
  .dest__row { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; }
  .card { height: clamp(380px, 52vh, 620px); }
  .card:last-child { grid-column: 1 / -1; }
  .route__panel { width: 44%; }
  .route__map { left: 40%; }
  .route__bar { left: 44%; }
  .stories__head { grid-template-columns: 1fr; }
  .stories__table { grid-template-columns: repeat(2, 1fr); }
  .snap, .snap:nth-child(4) { grid-column: auto; }
  .snap:nth-child(2), .snap:nth-child(5) { margin-top: 0; }
  .snap:nth-child(5) { grid-column: 1 / -1; width: min(100%, 34rem); justify-self: center; }
  .pick .fit__in { grid-template-columns: 1fr; }
  .pick__left { position: relative; top: 0; display: grid; grid-template-columns: 1fr minmax(12rem, 18rem); gap: 0 2rem; align-items: end; }
  .pick__left .label, .pick__left .h2 { grid-column: 1; }
  .compass { grid-column: 2; grid-row: 1 / span 2; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__top .foot__col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav { padding-top: .8rem; padding-bottom: .8rem; }
  .nav__logo { font-size: .95rem; }
  .nav__cta { font-size: .74rem; padding: .5em .95em; }
  .hero { min-height: 600px; }
  .hero__inner { bottom: 4.6rem; }
  .hero__kicker { flex-direction: column; gap: .2rem; font-size: .66rem; }
  .hero__kicker span + span::before { display: none; }
  .hero__title { font-size: 22.5vw; }
  .hero__row { flex-direction: column; align-items: flex-start; gap: 1.4rem; margin-top: 1.1rem; }
  .hero__lead { font-size: 1rem; }
  .hero__cta { flex-wrap: wrap; gap: 1rem 1.6rem; }
  .hero__hud { font-size: .6rem; white-space: normal; right: var(--gut); top: 4.4rem; line-height: 1.6; }
  .hero__scroll { display: none; }
  .dest__row { grid-template-columns: 1fr; }
  .card { height: min(118vw, 500px); }
  .card:last-child { grid-column: auto; }
  .route__map { left: 0; top: 3.4rem; bottom: 46%; }
  .route__panel { left: 0; right: 0; width: auto; top: auto; bottom: 0; padding: 1.6rem var(--gut) 3.6rem; justify-content: flex-start; gap: 1rem; background: var(--paper-2); border-top: 1px solid var(--line); height: 46%; }
  .route__panel::before { display: none; }
  .route__panel > .label { display: none; }
  .route__day { gap: .9rem; }
  .route__dnum { font-size: 3.6rem; }
  .route__dtext h3 { font-size: 1.3rem; margin-bottom: .4rem; }
  .route__dtext p { font-size: .92rem; min-height: 0; }
  .route__stats { gap: 1.1rem; margin-top: .7rem; }
  .route__more { display: none; }
  .route__bar { left: var(--gut); right: var(--gut); bottom: 1.4rem; }
  .route__ticks span b { font-size: .56rem; }
  .how__steps { grid-template-columns: 1fr; }
  .how__head { grid-template-columns: 1fr; }
  .pack { height: 11rem; justify-self: end; margin: -1rem 0 0; }
  .how__stats { grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
  .how__incl { grid-template-columns: 1fr; }
  .stories__table { grid-template-columns: 1fr; gap: 2rem; }
  .snap:nth-child(5) { grid-column: auto; width: auto; }
  .pick__left { display: block; }
  .compass { width: min(70%, 16rem); margin: 0 auto; }
  .pick__row { grid-template-columns: 1fr; }
  .result__stamp { width: 6.4rem; height: 6.4rem; top: .8rem; }
  .result__stamp span { font-size: .8rem; }
  .result__hi, .result__title { padding-right: 6.6rem; }
  .foot__top { grid-template-columns: 1fr; gap: 1rem; }
  .foot__links, .foot__contacts { padding-top: 1rem; }
  .foot__bottom { flex-direction: column; }
}

/* ===== Без анимации ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.reduce .hero__title .ch > span, .reduce .flip-words .wi, .reduce .card, .reduce .card .card__body > *, .reduce .wipe__line > span,
.reduce .step h3, .reduce .step p, .reduce .step__n, .reduce .focus-letters .ch, .reduce .rise-lines .rl > span, .reduce .compass,
.reduce .hero__kicker, .reduce .hero__row > * { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; -webkit-clip-path: none !important; }
.reduce .step__ico *, .reduce .incl li svg path { stroke-dashoffset: 0 !important; }
.reduce .step::before { transform: none; }
.reduce .hero__title .chw, .reduce .hero__row { transform: none !important; opacity: 1 !important; }

/* ===================== Страница тура ===================== */
.t-hero { position: relative; height: 100vh; height: 100svh; min-height: 600px; overflow: hidden; background: #101C19; color: var(--paper); }
.t-hero__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 15, .8), rgba(10, 18, 15, 0) 55%), linear-gradient(100deg, rgba(10, 18, 15, .62) 0%, rgba(10, 18, 15, .25) 45%, rgba(10, 18, 15, 0) 70%); pointer-events: none; }
.t-hero__inner { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(2.5rem, 7vh, 6rem); z-index: 2; }
.t-hero__kicker { opacity: .8; margin-bottom: 1rem; }
.t-hero__title { font-family: var(--f-disp); font-weight: 700; text-transform: uppercase; line-height: 1; font-size: clamp(3.4rem, 9.6vw, 17rem); }
.t-hero__title .tl { display: block; overflow: hidden; padding-top: .12em; margin-top: -.16em; }
.t-hero__title .tl > span { display: inline-block; }
.t-hero__title .tl:nth-child(3) { color: var(--ochre); }
/* декорации выезжают снизу по слоям */
.t-meta { display: flex; flex-wrap: wrap; gap: 1rem clamp(1.5rem, 3.5vw, 5rem); margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid rgba(238, 229, 208, .3); font-size: .85rem; }
.t-meta dt { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.t-meta dd { font-weight: 500; }
.dots { display: inline-block; width: 3.4em; height: .6em; vertical-align: .05em; background: radial-gradient(circle, var(--ochre) 45%, transparent 50%) 0 0 / .68em .6em repeat-x; -webkit-mask: linear-gradient(90deg, #000 calc(var(--n) * 20%), rgba(0, 0, 0, .3) 0); mask: linear-gradient(90deg, #000 calc(var(--n) * 20%), rgba(0, 0, 0, .3) 0); }


.t-profile { padding: clamp(6rem, 14vh, 12rem) var(--gut) clamp(3rem, 8vh, 6rem); }
.t-profile__head, .t-program__head { display: grid; gap: 1.6rem; margin-bottom: clamp(2.5rem, 7vh, 5rem); max-width: 80rem; }
.t-profile .h2, .t-program .h2 { font-size: clamp(2.1rem, 4.4vw, 6.6rem); }
.profile { position: relative; height: clamp(260px, 42vh, 620px); }
.profile svg { width: 100%; height: 100%; overflow: visible; }
.profile__grid line { stroke: var(--line); stroke-dasharray: 4 6; vector-effect: non-scaling-stroke; }
.profile__area { fill: url(#pf); opacity: 0; transition: opacity 1.2s 1.2s; }
.profile__line { fill: none; stroke: var(--rust); stroke-width: 3.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.profile.in .profile__area, .reduce .profile__area { opacity: 1; }
.profile__dots circle { fill: var(--paper); stroke: var(--ink); stroke-width: 3; vector-effect: non-scaling-stroke; }
.profile__labels { position: absolute; inset: 0; pointer-events: none; }
.profile__labels span { position: absolute; transform: translate(-50%, calc(-100% - 16px)); text-align: center; white-space: nowrap; font-size: .7rem; line-height: 1.3; }
.profile__labels span b { display: block; font-weight: 500; color: var(--ink); }
.profile__labels span em { font-style: normal; color: var(--ink-2); font-size: .62rem; letter-spacing: .06em; }
.profile__labels i { position: absolute; left: 0; transform: translateY(-120%); font-style: normal; font-size: .6rem; color: var(--ink-2); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.profile__labels span:first-of-type { transform: translate(-12px, calc(-100% - 16px)); text-align: left; }
.profile__labels span:last-of-type { transform: translate(calc(-100% + 12px), calc(-100% - 16px)); text-align: right; }

.t-program { padding: clamp(4rem, 10vh, 8rem) var(--gut) clamp(6rem, 14vh, 12rem); }
.prog { list-style: none; position: relative; max-width: 92rem; }
.prog__rail { position: absolute; left: calc(clamp(4.5rem, 7vw, 10rem) / 2); top: 1rem; bottom: 1rem; width: 2px; background: var(--line); }
.prog__fill { position: absolute; inset: 0; background: var(--rust); transform-origin: top; transform: scaleY(0); }
.pday { position: relative; display: grid; grid-template-columns: clamp(4.5rem, 7vw, 10rem) 1fr; gap: clamp(1rem, 3vw, 4rem); padding: clamp(1.6rem, 4vh, 3rem) 0; border-bottom: 1px solid var(--line); }
.pday__n { position: relative; z-index: 1; justify-self: center; font-family: var(--f-disp); font-weight: 700; font-size: clamp(1.6rem, 2.6vw, 3.6rem); line-height: 1; background: var(--paper); padding: .3em 0; color: var(--ink-2); transition: color .4s, transform .6s var(--ease-over-hard); }
.pday.on .pday__n { color: var(--rust); transform: scale(1.15); }
.pday h3 { font-family: var(--f-disp); font-weight: 600; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 3.3rem); line-height: 1.02; margin-bottom: .6rem; }
.pday p { max-width: 44em; color: var(--ink-2); font-size: 1.08rem; }
.pday dl { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1rem; font-size: .8rem; }
.pday dt { font-size: .62rem; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.pday dd { font-weight: 500; }

.t-dates { position: relative; background: var(--moss); color: var(--paper); padding: clamp(6rem, 14vh, 12rem) var(--gut); overflow: hidden; }
.t-dates .topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.t-dates .label { color: rgba(238, 229, 208, .7); }
.t-dates__in { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 9rem); align-items: end; }
.t-dates .h2 { margin: 1.4rem 0; font-size: clamp(2.2rem, 4.6vw, 6.8rem); }
.t-dates__note { opacity: .82; max-width: 30em; }
.dates { list-style: none; border-top: 1px solid rgba(238, 229, 208, .25); }
.dates li { display: grid; grid-template-columns: 1fr auto auto; gap: 1.5rem; align-items: baseline; padding: 1.3rem 0; border-bottom: 1px solid rgba(238, 229, 208, .25); }
.dates__d { font-family: var(--f-disp); text-transform: uppercase; font-size: clamp(1.3rem, 1.9vw, 2.6rem); }
.dates__s { font-size: .72rem; opacity: .75; }
.dates__s--last { color: var(--ochre); opacity: 1; }
.dates b { font-family: var(--f-disp); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 2rem); }
.t-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-top: clamp(4rem, 10vh, 8rem); padding-top: 2.5rem; border-top: 1px solid rgba(238, 229, 208, .25); }
.t-cta__q { font-size: clamp(1.4rem, 2.4vw, 3.2rem); font-style: italic; }
.foot--short { padding-top: 2rem; }
.foot--short .foot__word { margin-top: 1rem; }

@media (max-width: 1100px) {
  .t-dates__in { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .t-hero__title { font-size: 15vw; }
  .t-meta { gap: .9rem 1.6rem; font-size: .78rem; }
  .profile { height: 300px; }
  .profile__labels span em, .profile__labels i { display: none; }
  .profile__labels span { font-size: .6rem; }
  .profile__labels span:nth-of-type(even) { transform: translate(-50%, 18px); }
  .pday dl { gap: 1.2rem; }
  .dates li { grid-template-columns: 1fr auto; }
  .dates__s { grid-column: 1; grid-row: 2; }
  .dates b { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
}
.reduce .t-words .tl > span, .reduce .t-hero__art .lyr > *, .reduce .t-meta, .reduce .t-slide, .reduce .dates li, .reduce .pday > div,
.reduce .profile__labels span, .reduce .profile__dots circle { opacity: 1 !important; transform: none !important; }
.reduce .profile__line { stroke-dashoffset: 0 !important; }

/* ===================== Итерация 2: сцены, прелоадер, курсор ===================== */
/* прелоадер: кольцо изолинии → знак перевала, счётчик высоты */
.preload { position: fixed; inset: 0; z-index: 300; background: var(--ink); color: var(--paper); display: grid; place-items: center; align-content: center; gap: 1rem; clip-path: inset(0% 0% 0% 0%); }
.preload__mark { width: clamp(90px, 9vw, 160px); height: auto; overflow: visible; }
.preload__shape { fill: none; stroke: var(--paper); stroke-width: 3; stroke-linejoin: round; }
.preload__count { font-size: clamp(2rem, 4vw, 4.4rem); font-weight: 500; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.preload__count span { color: var(--ochre); }
.preload__cap { font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }
html:not(.js) .preload, .reduce .preload { display: none; }

/* туман из изолиний, который проходит через кадр при смене сцены */
.veil { position: fixed; left: 0; right: 0; top: 0; height: 150vh; z-index: 75; pointer-events: none; transform: translateY(110vh);
  background: linear-gradient(to bottom, rgba(238, 229, 208, 0), rgba(238, 229, 208, .93) 30%, rgba(238, 229, 208, .97) 50%, rgba(238, 229, 208, .93) 70%, rgba(238, 229, 208, 0));
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent); }
.veil .topo { position: absolute; inset: 0; width: 100%; height: 100%; }
html:not(.snap-on) .veil { display: none; }

/* курсор-компас и лупа над картой */
.cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; display: none; will-change: transform; contain: layout style; }
.cursor__ring, .cursor__needle { will-change: transform; }
.has-cursor .cursor { display: block; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor .card { cursor: none; }
.has-cursor input[type=text], .has-cursor select { cursor: text; }
.cursor__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 1.5px solid var(--ink); border-radius: 50%; transition: width .35s var(--ease-out), height .35s var(--ease-out), left .35s var(--ease-out), top .35s var(--ease-out), background .3s, border-color .3s, opacity .2s; mix-blend-mode: multiply; }
.cursor__needle { position: absolute; left: 50%; top: 50%; width: 2px; height: 26px; margin: -13px 0 0 -1px; background: linear-gradient(var(--rust) 50%, var(--ink) 50%); border-radius: 2px; }
.cursor.is-link .cursor__ring { width: 64px; height: 64px; left: -32px; top: -32px; background: rgba(194, 80, 42, .14); border-color: var(--rust); }
.cursor.is-hide .cursor__ring { opacity: 0; }
.cursor__lens { position: absolute; left: -110px; top: -110px; width: 220px; height: 220px; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, .5), inset 0 0 0 6px rgba(238, 229, 208, .7); background: var(--paper-2); transform: scale(0); transition: transform .45s var(--ease-over); }
.cursor__lens svg { width: 100%; height: 100%; }
.cursor.is-lens .cursor__lens { transform: scale(1); }
.cursor.is-lens .cursor__ring { opacity: 0; }
.nav.is-dark ~ .cursor .cursor__ring { border-color: var(--paper); }

/* облака героя (PixiJS) */
#clouds { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero__inner { z-index: 3; }
.hero__hud, .hero__scroll { z-index: 3; }

/* вписывание сцены в экран */
.fit { position: relative; width: 100%; }
.scenes [data-scene] { height: 100vh; min-height: 0; overflow: hidden; }
.scenes [data-fit] { padding-top: 5.6rem; padding-bottom: 1.6rem; }
.scenes .dest { display: flex; flex-direction: column; padding-top: 6.2rem; padding-bottom: 2.4rem; }
.scenes .dest__head { margin-bottom: clamp(1.2rem, 3vh, 2.6rem); }
.scenes .dest__head .h2 { font-size: clamp(2.2rem, 4.4vw, 6.6rem); }
.scenes .dest__row { flex: 1 1 auto; min-height: 0; height: auto; }
.scenes .stories__table { grid-template-columns: repeat(5, 1fr); gap: clamp(1rem, 1.6vw, 2.6rem); }
.scenes .snap { grid-column: auto !important; margin-top: 0 !important; }
.scenes .snap:nth-child(even) { margin-top: 3rem !important; }
.scenes .snap blockquote { font-size: clamp(.95rem, 1vw, 1.35rem); }
.scenes .pick__left { position: relative; top: 0; }
.scenes .foot { display: flex; flex-direction: column; }
.scenes .how { padding-left: var(--gut); padding-right: var(--gut); }

/* управление днями маршрута и подсказка над флажком */
.route__ctrl { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.rbtn { font: inherit; font-family: var(--f-disp); font-size: 1.1rem; width: 2.8rem; height: 2.8rem; border-radius: 50%; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; transition: background .3s, color .3s; }
.rbtn:hover, .rbtn:focus-visible { background: var(--ink); color: var(--paper); }
.rbtn--wide { width: auto; border-radius: 999px; padding: 0 1.1rem; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.route__count { font-size: .76rem; letter-spacing: .1em; min-width: 7.5em; text-align: center; }
.mark { cursor: pointer; }
.mark__hit { fill: transparent; }
.route__tip { position: absolute; z-index: 4; transform: translate(-50%, -100%); margin-top: -14px; background: var(--ink); color: var(--paper); padding: .6rem .85rem; border-radius: 8px; font-size: .72rem; line-height: 1.4; pointer-events: none; opacity: 0; white-space: nowrap; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .5); }
.route__tip b { display: block; font-weight: 500; color: var(--ochre); }

/* карточки направлений: раскрытие по щелчку (Flip) */
.card { cursor: pointer; }
.card__more { list-style: none; display: none; margin-top: 1rem; border-top: 1px solid rgba(251, 244, 228, .3); padding-top: .8rem; font-size: .9rem; }
.card__more li { padding: .25rem 0 .25rem 1.2rem; position: relative; }
.card__more li::before { content: ''; position: absolute; left: 0; top: .78em; width: .6rem; height: 1.5px; background: var(--ochre); }
.card.is-open { flex-grow: 3.2 !important; }
.card.is-open .card__more { display: block; }
.dest__row.has-open .card:not(.is-open) .card__body p, .dest__row.has-open .card:not(.is-open) .card__meta { display: none; }


/* «таблетка» выбранного варианта переезжает между чипами */
.chips label { position: relative; }
.chips__ind { position: absolute; inset: 0; border-radius: 999px; background: var(--ink); z-index: 0; pointer-events: none; }
.chips span { position: relative; z-index: 1; }
.chips input:checked + span { background: transparent; color: var(--paper); }

/* рюкзак и компас от руки */
.pack { height: clamp(14rem, 34vh, 32rem); }
.pack path { vector-effect: non-scaling-stroke; }
.compass__hand path { vector-effect: non-scaling-stroke; }
.route__head { pointer-events: none; }
.map__labels text { paint-order: stroke; stroke: var(--paper-2); stroke-width: 4px; }

/* страница тура в режиме сцен: программа — сетка 3×3 */
.scenes .prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 2.4rem; max-width: none; }
.scenes .prog__rail { display: none; }
.scenes .pday { grid-template-columns: auto 1fr; gap: 1rem; padding: 1.2rem 0; }
.scenes .pday p { font-size: .92rem; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.scenes .pday h3 { font-size: clamp(1.2rem, 1.5vw, 2rem); }
.scenes .pday dl { gap: 1.2rem; margin-top: .6rem; }
.scenes .foot--short { justify-content: center; }
.pday > div { opacity: .35; transition: opacity .6s; }
.pday.on > div { opacity: 1; }
.reduce .pday > div { opacity: 1; }

@media (max-width: 760px) {
  .route__stage { min-height: 640px; }
  .route__ctrl { gap: .5rem; }
  .rbtn { width: 2.4rem; height: 2.4rem; font-size: 1rem; }
  .rbtn--wide { display: none; }
  .route__ticks button { width: 1.8rem; margin-left: -.9rem; }
}

/* «Как это проходит» в режиме сцен: две колонки, чтобы сцена жила в экране крупно */
.scenes .how .fit__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); grid-template-areas: "head steps" "stats steps" "stats incl"; gap: 2.4rem clamp(3rem, 5vw, 8rem); align-items: start; }
.scenes .how__head { grid-area: head; margin-bottom: 0; }
.scenes .how .h2 { font-size: clamp(2rem, 3.4vw, 5.2rem); }
.scenes .pack { height: clamp(10rem, 22vh, 20rem); margin-right: 0; }
.scenes .how__steps { grid-area: steps; grid-template-columns: 1fr 1fr; row-gap: 2.4rem; }
.scenes .how__stats { grid-area: stats; grid-template-columns: 1fr 1fr; margin: 0; row-gap: 2rem; }
.scenes .stat b { font-size: clamp(3rem, 5vw, 7.4rem); }
.scenes .how__incl { grid-area: incl; grid-template-columns: 1fr 1fr; gap: 2.4rem; }
.scenes .incl li { font-size: .95rem; padding: .55rem 0; }

/* бумажное зерно на светлых сценах */
.hero, .dest, .route__stage, .how, .pick, .t-profile, .t-program { background-image: var(--grain); background-size: 180px 180px; }
/* живые детали пейзажей играют, когда на них смотрят: при наведении и раскрытии.
   В покое SVG не перерисовывается каждый кадр — это главный резерв частоты кадров */
.card__art *, .snap__art *, .t-hero__art * { animation-play-state: paused !important; }
/* живые детали — у раскрытой карточки; при наведении только мягкий зум (без перерисовки SVG) */
.card.is-open .card__art * { animation-play-state: running !important; }
.veil { visibility: hidden; }
.veil.is-run { visibility: visible; }

.card__art { will-change: transform; transform-origin: 50% 70%; }

/* ирис карточек направлений (см. main.js) */
.card__iris { position: absolute; left: 50%; top: 64%; border-radius: 50%; overflow: hidden; will-change: transform; z-index: 0; }
.card__iris-in { position: absolute; transform-origin: 50% 64%; will-change: transform; }
.card__iris-in .card__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.card.iris-done .card__iris, .card:not(.iris-run) .card__iris { position: absolute; inset: 0; left: 0; top: 0; width: auto; height: auto; margin: 0; border-radius: 0; overflow: visible; transform: none; }
.card.iris-done .card__iris-in, .card:not(.iris-run) .card__iris-in { inset: 0; left: 0; top: 0; width: 100%; height: 100%; transform: none; }
.card.iris-run { background: transparent; }
.card.iris-run::after { opacity: 0; }
.card::after { transition: opacity .8s .9s; }

#nightsky { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stories .fit, .stories__head, .stories__table { position: relative; z-index: 1; }

.route__camwrap svg { overflow: visible; }
.foot__nav { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; flex-wrap: wrap; padding-top: 1rem; }
.foot__nav p { font-size: clamp(1.2rem, 1.8vw, 2.4rem); font-style: italic; max-width: 24em; }

/* иконки шагов — рисунки тушью, без заливок по умолчанию */
.step__ico { width: 4rem; height: 4rem; fill: initial; stroke: initial; overflow: visible; }
.step__ico path { vector-effect: non-scaling-stroke; }
.stat__ul { display: block; width: 62%; height: 14px; margin: .2rem 0 .1rem; overflow: visible; }
/* полароиды: полоска скотча */
.snap { position: relative; }
.snap::before { content: ''; position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; transform: rotate(-4deg); background: rgba(236, 226, 196, .72); box-shadow: 0 1px 2px rgba(0, 0, 0, .15); z-index: 2;
  -webkit-mask: linear-gradient(90deg, transparent 0 3px, #000 3px calc(100% - 3px), transparent calc(100% - 3px)); }
.snap:nth-child(even)::before { transform: rotate(5deg); left: 30%; }

/* заголовок тура читается чисто: тёмная подложка под текстом */
.t-hero::before { content: ''; position: absolute; left: 0; bottom: 0; width: 72%; height: 78%; z-index: 1; pointer-events: none;
  background: radial-gradient(120% 90% at 0% 100%, rgba(8, 14, 12, .82) 0%, rgba(8, 14, 12, .55) 42%, rgba(8, 14, 12, 0) 72%); }
/* карта маршрута не заходит под текст дня: правее, плотная подложка под панелью */
.route__map { left: 40%; }
.route__panel::before { right: -6rem; background: linear-gradient(90deg, var(--paper-2) 0%, var(--paper-2) calc(100% - 6rem), rgba(228, 215, 185, 0)); }
.route__dtext p { max-width: 26em; }
@media (max-width: 1100px) { .route__map { left: 44%; } }
@media (max-width: 760px) { .route__map { left: 0; } }

/* два слоя букв: жирный держит ширину, тонкий — поверх, по центру */
.hero__title .ch, .foot__word .ch { position: relative; }
.g-b { display: inline-block; }
.g-t { position: absolute; left: 50%; top: 0; transform: translateX(-50%); font-weight: 200; opacity: 0; pointer-events: none; white-space: nowrap; }
/* кольцо курсора растёт трансформацией, а не шириной */
.cursor__ring { transition: transform .45s var(--ease-out), background .3s, border-color .3s, opacity .2s !important; }
.cursor.is-link .cursor__ring { width: 36px !important; height: 36px !important; left: -18px !important; top: -18px !important; transform: scale(1.75); }

.cursor__lens { isolation: isolate; }
.cursor:not(.is-lens) .cursor__lensimg { display: none; }
.cursor__lensimg { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.cursor__lens svg { position: absolute; inset: 0; }

/* курсор v3: один SVG, без смешивания и переходов — движется только transform */
.cursor__ring { position: absolute; left: -20px; top: -20px; width: 40px !important; height: 40px !important; border: 0 !important; border-radius: 0 !important; background: none !important; mix-blend-mode: normal !important; transition: opacity .2s !important; color: var(--ink); overflow: visible; max-width: none; }
.cursor.is-link .cursor__ring { left: -20px !important; top: -20px !important; transform: none; color: var(--rust); }
.cursor__needle { position: static; width: auto; height: auto; margin: 0; background: none; border-radius: 0; }
.cursor.is-hide .cursor__ring, .cursor.is-lens .cursor__ring { opacity: 0; }
.nav.is-dark ~ .cursor .cursor__ring { color: var(--paper); }
