/* Эксперимент «Высотомер» — общая основа страниц. Только светлая тема. */
@font-face { font-family: "Golos Text"; src: url("../fonts/golos-text.woff2") format("woff2"), url("../fonts/golos-text.woff") format("woff"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Piazzolla"; src: url("../fonts/piazzolla.woff2") format("woff2"), url("../fonts/piazzolla.woff") format("woff"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: #f6f3ec;
  --paper-2: #ece7dc;
  --paper-3: #e2dccf;
  --ink: #1b2430;
  --ink-2: #49535f;
  --ink-3: #5e6672;
  --line: #d8d1c3;
  --line-2: #c3bbab;
  --lake: oklch(60% 0.11 205);
  --lake-ink: oklch(40% 0.09 205);
  --lake-soft: oklch(93% 0.035 205);
  --sand: oklch(60% 0.11 50);
  --sand-ink: oklch(42% 0.1 50);
  --sand-soft: oklch(93% 0.035 60);
  --night: oklch(46% 0.08 285);
  --night-soft: oklch(93% 0.03 285);
  --serif: "Piazzolla", Georgia, "Times New Roman", serif;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1280px;
  --gut: clamp(16px, 4cqi, 56px);
  --r: 6px;
  --shadow: 0 1px 2px rgba(27, 36, 48, .06), 0 12px 32px -16px rgba(27, 36, 48, .25);
}

* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
/* Раскладка переключается по ширине страницы-контейнера, а не окна */
.page { container: page / inline-size; min-height: 100vh; margin-inline: auto; }
html.shot-390 .page { width: 390px; margin: 0; zoom: var(--shot-zoom, 1); }
html.shot-1440 .page { width: 1440px; margin: 0; zoom: var(--shot-zoom, 1); }
body { margin: 0; font: 400 17px/1.5 var(--sans); background: var(--paper); color: var(--ink); overflow-x: clip; font-feature-settings: "tnum" 1; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lake-ink); text-decoration-color: color-mix(in oklab, var(--lake-ink) 40%, transparent); text-underline-offset: .14em; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
b, strong { font-weight: 600; }
small { font-size: .85em; }
dialog { color: var(--ink); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--ink); color: #fff; border-radius: var(--r); }
.skip:focus { top: 12px; }

/* Шапка */
.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in oklab, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-in { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; display: flex; align-items: center; gap: 24px; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: .01em; }
.brand .tri { width: 14px; height: 14px; display: inline-block; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.hd-nav { margin-left: auto; display: flex; gap: 2px; flex-wrap: nowrap; justify-content: flex-end; }
.hd-nav a { font-size: 14px; color: var(--ink-2); text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.hd-nav a:hover { background: var(--paper-2); color: var(--ink); }
.hd-nav a[aria-current] { background: var(--ink); color: #fff; }
@container page (max-width: 1000px) { .hd-nav { display: none; } }

/* Крошки */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--ink-3); }
.crumbs li + li::before { content: "→"; margin: 0 10px; color: var(--line-2); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--ink); }

/* Первый экран */
.hero { position: relative; }
.hero-ph { margin: 0; position: relative; height: clamp(300px, 36cqi, 540px); background: var(--paper-2); overflow: hidden; }
.hero-ph img { width: 100%; height: 100%; object-fit: cover; }
.hero-ph figcaption { position: absolute; right: 14px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(27, 36, 48, .55); padding: 3px 8px; border-radius: 999px; }
.hero-ph figcaption:empty { display: none; }
.hero-t { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; padding: 28px 0 8px; }
.hero h1 { font-size: clamp(48px, 8cqi, 112px); font-weight: 300; line-height: .95; letter-spacing: -.025em; margin: 10px 0 0; }
.hero h1 .ele { display: inline-block; vertical-align: top; margin-left: .18em; margin-top: .16em; font: 500 .22em/1.2 var(--sans); color: var(--ink-3); letter-spacing: 0; white-space: nowrap; }
.lead { font-family: var(--serif); font-size: clamp(19px, 1.6cqi, 24px); line-height: 1.35; color: var(--ink-2); max-width: 36ch; text-wrap: pretty; }
.hero .lead { font-size: clamp(20px, 1.9cqi, 28px); }
@container page (max-width: 860px) { .hero-t { grid-template-columns: 1fr; gap: 12px; } }

/* Приборная строка: ключевые факты */
.kf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--ink); margin-top: 28px; }
.kf li { padding: 16px 20px 18px 0; border-right: 1px solid var(--line); margin-right: 20px; }
.kf li:last-child { border-right: 0; margin-right: 0; }
.kf b { display: block; font-size: clamp(22px, 2cqi, 30px); font-weight: 500; line-height: 1.1; letter-spacing: -.01em; }
.kf small { display: block; font-size: 14px; color: var(--ink-3); margin-top: 6px; line-height: 1.3; }
.kf .lvl { display: inline-flex; gap: 3px; vertical-align: 2px; margin-right: 8px; }
.kf .lvl i { width: 7px; height: 7px; border-radius: 1px; background: var(--line-2); display: block; }
.kf .lvl i.on { background: var(--sand); }
@container page (max-width: 860px) { .kf { grid-template-columns: repeat(2, minmax(0, 1fr)); } .kf li { border-right: 0; margin-right: 0; border-bottom: 1px solid var(--line); padding: 14px 0; } .kf li:nth-child(odd) { padding-right: 16px; } .kf li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } .kf li:last-child { border-bottom: 0; } }

/* Общие заголовки разделов */
.sec { padding: clamp(56px, 8cqi, 112px) 0 0; }
.sec-h { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px 48px; align-items: end; margin-bottom: clamp(24px, 4cqi, 48px); }
.sec-h h2 { font-size: clamp(32px, 4cqi, 56px); font-weight: 300; letter-spacing: -.02em; }
.eyebrow { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
@container page (max-width: 860px) { .sec-h { grid-template-columns: 1fr; } }

/* Статусы и чипы */
.st { display: inline-block; font: 500 12px/1 var(--sans); padding: 5px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; letter-spacing: .01em; }
.st-date { color: var(--sand-ink); background: var(--sand-soft); border: 1px solid color-mix(in oklab, var(--sand) 40%, transparent); }
.st-gap { color: var(--ink-2); background: transparent; border: 1px dashed var(--line-2); }
.st-demo { color: var(--ink-3); background: var(--paper-2); font-weight: 500; }
.chip { display: inline-flex; align-items: center; gap: 6px; font: 500 13px/1 var(--sans); padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); }
.chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.chip-walk::before { background: var(--lake); }
.chip-drive::before { background: var(--sand); }
.chip-night::before { background: var(--night); }
.chip-look::before { background: var(--ink); }
.chip-meal::before { background: var(--sand-ink); }
.badge { font: 500 12px/1 var(--sans); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.badge.in { background: var(--lake-soft); color: var(--lake-ink); }
.badge.edge { background: var(--sand-soft); color: var(--sand-ink); }
.badge.out { background: var(--paper-2); color: var(--ink-3); }

/* Маршрут: прибор слева, главы справа */
.route { padding-top: clamp(40px, 6cqi, 80px); }
.route-grid { display: grid; grid-template-columns: minmax(300px, 400px) minmax(0, 1fr); gap: 0 clamp(32px, 5cqi, 80px); align-items: start; }
.inst { position: sticky; top: 72px; }
.inst-map { position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.inst-map img { width: 100%; }
.inst-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.inst-map .osm { position: absolute; right: 8px; bottom: 6px; font-size: 10px; color: var(--ink-2); background: rgba(246, 243, 236, .8); padding: 2px 6px; border-radius: 999px; }
.trk-road { fill: none; stroke: var(--sand); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14 12; }
.trk-walk { fill: none; stroke: var(--lake); stroke-width: 8; stroke-linecap: round; stroke-linejoin: round; }
.trk-halo { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.trk-done { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.pin circle { fill: #fff; stroke: var(--ink); stroke-width: 4; }
.pin.night circle { fill: var(--night); stroke: #fff; }
.pin text { font: 700 30px var(--sans); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.pin.night text { fill: #fff; }
.pin.is-on circle { fill: var(--ink); stroke: #fff; }
.pin.is-on text { fill: #fff; }
.mlab { font: 500 30px var(--sans); fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 8; stroke-linejoin: round; }
.mlab.lake { fill: var(--lake-ink); font-style: italic; font-family: var(--serif); font-size: 34px; }
.mlab.peak { font-size: 26px; fill: var(--ink-2); }
.cur { fill: var(--ink); stroke: #fff; stroke-width: 5; }
.cur-ring { fill: none; stroke: var(--ink); stroke-width: 3; opacity: .35; }
.inst-prof { margin-top: 14px; }
.inst-prof svg { width: 100%; height: auto; display: block; overflow: visible; }
.pf-area { fill: var(--paper-2); }
.pf-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.pf-done { fill: var(--lake-soft); }
.pf-grid { stroke: var(--line); stroke-width: 1; }
.pf-txt { font: 500 22px var(--sans); fill: var(--ink-3); }
.pf-day { font: 500 22px var(--sans); fill: var(--ink-2); letter-spacing: .1em; }
.pf-day-line { stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.pf-stop { fill: var(--ink); }
.pf-stop.night { fill: var(--night); }
.pf-cur { fill: var(--ink); stroke: #fff; stroke-width: 4; }
.pf-cur-l { stroke: var(--ink); stroke-width: 2; }
.inst-read { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--ink); }
.inst-read b { display: block; font-size: 26px; font-weight: 500; line-height: 1; letter-spacing: -.01em; }
.inst-read small { display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; text-transform: uppercase; letter-spacing: .08em; }
.inst-now { margin-top: 12px; font-family: var(--serif); font-size: 18px; color: var(--ink-2); min-height: 1.4em; }
.inst-now b { color: var(--ink); font-weight: 500; }
.inst-cap { margin-top: 12px; font-size: 12px; color: var(--ink-3); display: grid; gap: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 22px; height: 0; border-top: 3px solid var(--lake); border-radius: 2px; }
.legend .lg-drive i { border-top-style: dashed; border-color: var(--sand); }
.legend .lg-night i { width: 10px; height: 10px; border: 0; border-radius: 50%; background: var(--night); }

.chapters { counter-reset: ch; }
.ch { padding: 0 0 clamp(48px, 7cqi, 96px); scroll-margin-top: 80px; }
.ch:first-child { padding-top: 0; }
.ch figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.ch figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.ch figure button { position: absolute; inset: 0; width: 100%; border: 0; background: transparent; cursor: zoom-in; border-radius: var(--r); }
.ch figure button:focus-visible { outline-offset: -4px; }
.ch figure .taken { position: absolute; left: 12px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(27, 36, 48, .64); padding: 3px 8px; border-radius: 999px; pointer-events: none; }
.ch-body { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 20px; padding-top: 20px; }
.ch-n { font: 300 44px/1 var(--serif); color: var(--ink-3); letter-spacing: -.02em; padding-top: 2px; }
.ch-k { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; display: flex; gap: 14px; flex-wrap: wrap; }
.ch-k .count { color: var(--ink-3); }
.ch h3 { font-size: clamp(26px, 2.6cqi, 36px); font-weight: 400; }
.ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 12px; }
.ch-meta .time { font-size: 14px; color: var(--ink-2); }
.ch-text { font-family: var(--serif); font-size: clamp(18px, 1.4cqi, 21px); line-height: 1.45; color: var(--ink-2); max-width: 56ch; text-wrap: pretty; }
.ch-gap { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 56ch; }
.ch-next { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--ink-3); text-decoration: none; }
.ch-next b { color: var(--ink); font-weight: 500; }
.ch-next:hover b { text-decoration: underline; }
.ch.is-on .ch-n { color: var(--ink); }
.ch-day { font: 500 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding: 10px 0 0; border-top: 1px solid var(--ink); margin-bottom: 20px; }

/* Телефон: прибор — узкая липкая строка */
.strip { display: none; }
@container page (max-width: 960px) {
  .hd { position: static; backdrop-filter: none; }
  .route-grid, .route-grid-day, .route-grid-walk, .route-grid-base, .route-grid-ring { grid-template-columns: minmax(0, 1fr); }
  .inst, .chapters, .trips { min-width: 0; }
  .strip, .strip .s-t { min-width: 0; }
  .inst { position: static; margin-bottom: 28px; }
  .inst-read b { font-size: 20px; }
  .inst-map { max-width: 520px; }
  .strip { display: flex; position: sticky; top: 0; z-index: 25; align-items: center; gap: 12px; margin: 0 calc(-1 * var(--gut)); padding: 8px var(--gut); background: color-mix(in oklab, var(--paper) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); font-size: 13px; min-height: 48px; }
  .strip .s-ele { font-size: 20px; font-weight: 500; letter-spacing: -.01em; min-width: 72px; }
  .strip .s-t { color: var(--ink-2); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .strip .s-t b { color: var(--ink); font-weight: 500; }
  .strip svg { width: 110px; height: 30px; flex: none; overflow: visible; }
  .strip button { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 7px 12px; font-size: 13px; min-height: 36px; cursor: pointer; }
  .ch-body { grid-template-columns: 44px minmax(0, 1fr); gap: 0 12px; }
  .ch-n { font-size: 32px; }
}

/* Сезоны */
.seasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sp figure { margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); }
.sp figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.sp figure.tone-cold img { filter: saturate(.75) hue-rotate(-12deg) brightness(1.04); }
.sp .stub { position: absolute; left: 10px; top: 10px; font: 500 11px/1 var(--sans); padding: 5px 8px; border-radius: 999px; background: rgba(246, 243, 236, .92); color: var(--ink-2); }
.sp-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 16px 0 10px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; }
.sp-h h3 { font-size: 28px; }
.sp-h span { font-size: 13px; color: var(--ink-3); }
.sp-look { font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--ink-2); text-wrap: pretty; }
.sp-hike { margin-top: 8px; font-size: 14px; color: var(--ink); }
.sm { margin-top: 14px; border-top: 1px solid var(--line); }
.sm li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.sm li b { font-weight: 500; text-transform: capitalize; }
.sm li .badge { justify-self: end; }
.sm .t { grid-column: 1 / -1; display: flex; gap: 14px; flex-wrap: wrap; color: var(--ink-2); font-size: 13px; }
.sm .t span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--lake); vertical-align: 0; }
.sm .t span.k::before { background: var(--sand); }
@container page (max-width: 1100px) { .seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 560px) { .seasons { grid-template-columns: 1fr; } }

/* Подходит ли */
.fit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.card h3 { font-size: 24px; margin-bottom: 14px; }
.card ul.dots li { position: relative; padding-left: 20px; margin: 8px 0; color: var(--ink-2); font-size: 16px; }
.card ul.dots li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--lake); }
.card.no ul.dots li::before { background: var(--sand); border-radius: 1px; }
.dist { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 40px; border-top: 1px solid var(--ink); }
.dist > div { padding: 18px 0; border-right: 1px solid var(--line); padding-right: 24px; }
.dist > div:last-child { border-right: 0; }
.dist-k { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.dist-v { font-size: clamp(36px, 4cqi, 56px); font-weight: 300; font-family: var(--serif); letter-spacing: -.02em; line-height: 1.05; margin: 10px 0 8px; }
.dist p:last-child { color: var(--ink-2); font-size: 15px; }
@container page (max-width: 760px) { .fit-grid, .dist { grid-template-columns: 1fr; } .dist > div { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; } .dist > div:last-child { border-bottom: 0; } }

/* В дорогу */
.legs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: leg; margin-bottom: 32px; }
.legs.legs-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.legs.legs-1 { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
.leg { position: relative; padding: 18px 20px 20px 0; border-top: 3px solid var(--line-2); }
.leg-walk { border-top-color: var(--lake); }
.leg-drive { border-top-color: var(--sand); border-top-style: dashed; }
.leg-bus { border-top-color: var(--ink); }
.leg-k { font: 500 12px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.leg b { display: block; font-size: 18px; font-weight: 500; margin: 8px 0 6px; line-height: 1.2; }
.leg p:last-child { color: var(--ink-2); font-size: 14px; line-height: 1.45; }
@container page (max-width: 960px) { .legs, .legs.legs-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; } }
@container page (max-width: 560px) { .legs, .legs.legs-4 { grid-template-columns: 1fr; } }
.trip-sub { font-size: 24px; margin: 0 0 18px; }
.trip-grid, .before-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
@container page (max-width: 860px) { .trip-grid, .before-grid { grid-template-columns: minmax(0, 1fr); } }
.price > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.price dt { color: var(--ink-2); font-size: 15px; }
.price dd { margin: 0; text-align: right; font-weight: 500; font-size: 18px; white-space: nowrap; }
@container page (max-width: 560px) { .price > div { align-items: flex-start; flex-direction: column; gap: 2px; } .price dd { text-align: left; white-space: normal; } }
.price dd small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-3); white-space: normal; }
.price { margin: 0; }
.trip-note { margin-top: 14px; font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.safe li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.safe li b { color: var(--ink); }
.sos { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.sos b { font-size: 34px; font-weight: 500; letter-spacing: -.02em; }
.sos span { font-size: 14px; color: var(--ink-2); max-width: 30ch; }
.pack { margin-top: 24px; }
.pack-hd { display: flex; align-items: baseline; gap: 16px; }
.pack-hd h3 { margin: 0; }
.pack-count { font-size: 14px; color: var(--ink-3); }
.pack-reset { margin-left: auto; border: 0; background: none; color: var(--lake-ink); text-decoration: underline; cursor: pointer; font-size: 14px; }
.pack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.pack-grid fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.pack-grid legend { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 0; margin-bottom: 10px; }
.pack-grid label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; font-size: 15px; border-bottom: 1px solid var(--line); cursor: pointer; min-height: 44px; }
.pack-grid input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.pack-grid input:checked + span { color: var(--ink-3); text-decoration: line-through; }
@container page (max-width: 960px) { .pack-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 520px) { .pack-grid { grid-template-columns: 1fr; } }
.checklist li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.checklist .who { color: var(--ink-3); font-size: 13px; text-align: right; flex: none; max-width: 45%; }
.card.unknown { background: transparent; border-style: dashed; }
.card.unknown ul li { padding: 6px 0; color: var(--ink-2); font-size: 15px; }
.card.unknown ul li::before { content: "— "; color: var(--ink-3); }

/* Плёнка */
.film { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.film li { margin: 0; }
.film .ph { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.film .ph img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .4s ease; }
.film .ph:hover img { transform: scale(1.03); }
.film-cap { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); font-feature-settings: "tnum" 1; }
@container page (max-width: 1100px) { .film { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container page (max-width: 560px) { .film { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Связано */
.rel-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rel { display: block; height: 100%; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
a.rel:hover { border-color: var(--ink); }
.rel-media { display: block; aspect-ratio: 16 / 10; background: var(--paper-2); overflow: hidden; }
.rel-media img { width: 100%; height: 100%; object-fit: cover; }
.rel-none { display: grid; place-items: center; }
.rel-none svg { width: 72px; height: auto; fill: var(--line-2); }
.rel-count { display: grid; place-items: center; height: 100%; font: 300 64px/1 var(--serif); color: var(--ink-3); }
.rel-body { display: block; padding: 14px 16px 18px; }
.rel-k { display: block; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.rel b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 1.15; }
.rel-t { display: block; margin-top: 6px; font-size: 14px; color: var(--ink-2); line-height: 1.45; }
.rel em { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
@container page (max-width: 1000px) { .rel-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 520px) { .rel-grid { grid-template-columns: 1fr; } }

/* Подвал */
.ft { margin-top: clamp(64px, 9cqi, 128px); border-top: 1px solid var(--line); padding: 24px 0 48px; font-size: 13px; color: var(--ink-3); }
.ft-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.ft a { color: var(--ink-2); }
.ft-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }

/* Лайтбокс */
.lb { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lb::backdrop { background: rgba(27, 36, 48, .92); }
.lb figure { margin: 0; width: 100%; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; padding: 56px 16px 24px; }
.lb img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 4px; }
.lb figcaption { color: #fff; font-size: 14px; text-align: center; padding-top: 12px; opacity: .9; max-width: 70ch; }
.lb button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 24px; cursor: pointer; }
.lb .lb-prev, .lb .lb-next { top: 50%; transform: translateY(-50%); font-size: 30px; }
.lb .lb-prev { left: 12px; right: auto; }
.lb .lb-next { right: 12px; }
.lb button:hover { background: rgba(255, 255, 255, .28); }
.mapdlg { border: 0; padding: 0; background: var(--paper); border-radius: var(--r); width: min(96vw, 720px); max-height: 94vh; overflow: auto; box-shadow: var(--shadow); }
.mapdlg::backdrop { background: rgba(27, 36, 48, .6); }
.mapdlg-hd { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mapdlg-hd h2 { font-size: 22px; }
.mapdlg-hd p { color: var(--ink-3); font-size: 13px; margin-left: auto; }
.mapdlg-x { border: 0; background: var(--paper-2); width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.mapdlg .inst-map { border-radius: 0; box-shadow: none; }
.mapdlg-note { padding: 10px 16px 14px; font-size: 12px; color: var(--ink-3); }
.ctx { font-size: 13px; color: var(--ink-3); margin-top: 10px; }
.ctx button { border: 0; background: none; text-decoration: underline; cursor: pointer; color: var(--ink-2); }

/* Векторные карты из данных OSM */
.vmap { aspect-ratio: var(--ar, 1); }
.vmap svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vm-bg { fill: #ece7db; }
.vm-woods polygon { fill: oklch(86% 0.045 140); }
.vm-res polygon { fill: oklch(90% 0.012 70); stroke: oklch(84% 0.015 70); stroke-width: .02; }
.vm-rivers polyline { fill: none; stroke: oklch(72% 0.07 215); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.vm-roads polyline { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vm-area { fill: color-mix(in oklab, var(--sand) 18%, transparent); stroke: var(--sand); stroke-width: 1; stroke-dasharray: 3 3; }
.vm-halo { fill: none; stroke: #fff; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.vm-seg { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.vm-drive { stroke: var(--sand); }
.vm-walk { stroke: var(--lake); }
.vm-spur { stroke: var(--lake); stroke-dasharray: 2 5; }
.vm-back { stroke: var(--sand); stroke-width: 2; stroke-dasharray: 6 6; }
.vm-done { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.vm-ray { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.vm-ray.is-on { stroke: var(--ink); stroke-width: 4; }
.vm-look { stroke: var(--ink-3); stroke-width: 1; stroke-dasharray: 2 3; }
.vm-off { stroke: var(--ink); stroke-width: 2; }
.vm-arrowhead { fill: var(--ink); }
.vm-lab { font-family: var(--sans); font-weight: 500; fill: var(--ink-2); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: .18; stroke-linejoin: round; }
.vm-lab-town { fill: var(--ink); }
.vm-lab-town.big { font-weight: 600; }
.vm-lab-r, .mp-lab-r, .mp-lab-lake { fill: oklch(55% 0.08 215); font-style: italic; font-weight: 400; }
.mp-lab-lake { font-family: var(--serif); }
.vm-lab-peak { fill: var(--ink-3); }
.vm-lab-off { fill: var(--ink); }
.vm-peak { fill: var(--ink-3); }
.vm-town { fill: var(--ink); stroke: #fff; stroke-width: .08; }
.vpin circle { fill: #fff; stroke: var(--ink); stroke-width: 2; }
.vpin.approx circle { stroke-dasharray: 3 2; }
.vpin.night circle { fill: var(--night); stroke: #fff; }
.vpin text { font-family: var(--sans); font-weight: 700; fill: var(--ink); }
.vpin.night text { fill: #fff; }
.vpin.is-on circle { fill: var(--ink); stroke: #fff; }
.vpin.is-on text { fill: #fff; }
.vmap .cur { stroke-width: 2.5; }
.vmap .cur-ring { stroke-width: 1.5; }

/* Лента часов дня */
.ribbon svg { width: 100%; height: auto; overflow: visible; }
.rb { fill: var(--line-2); }
.rb-drive { fill: var(--sand); }
.rb-look { fill: var(--ink); }
.rb-walk { fill: var(--lake); }
.rb-meal { fill: var(--sand-ink); }
.rb-fade { opacity: .45; }
.rb-t { font: 500 20px var(--sans); fill: var(--ink-2); }
.rb-h { font: 500 22px var(--sans); fill: var(--ink-3); }
.rb-h.pub { fill: var(--ink); }
.rb-tick { stroke: var(--line-2); stroke-width: 1.5; }
.rb-hand { stroke: var(--ink); stroke-width: 3; }
.rb-hand-c { fill: var(--ink); stroke: #fff; stroke-width: 3; }
.legend .lg-back i { border-top-style: dashed; border-color: var(--sand); }
.route-grid-day { grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); }
.hero h1 .thin { font-weight: 200; color: var(--ink-2); }

/* Объект культуры: порядок обхода, карточки-факты, история */
.route-grid-walk { grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); }
.walk-plan { border-top: 1px solid var(--ink); padding-top: 12px; }
.walk-h { display: flex; justify-content: space-between; font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.walk-h span { color: var(--ink); }
.walk-zone { font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.walk-zone::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); }
.walk-zone.zn-garden::before { background: oklch(60% 0.11 140); }
.walk-zone.zn-out::before { background: var(--sand); }
.walk-zone.zn-gallery::before { background: var(--sand-ink); }
.walk-zone.zn-in::before { background: var(--night); }
.walk-i a { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 7px 8px 7px 0; border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: 15px; border-bottom: 1px solid var(--line); }
.walk-i a:hover { color: var(--ink); }
.walk-n { font: 400 15px/1 var(--serif); color: var(--ink-3); }
.walk-m { font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.walk-i.is-done a { color: var(--ink-3); }
.walk-i.is-on a { color: var(--ink); font-weight: 500; background: #fff; box-shadow: inset 3px 0 0 var(--ink); padding-left: 10px; }
.walk-i.is-on .walk-n { color: var(--ink); }
.chip-zn-garden::before { background: oklch(60% 0.11 140); }
.chip-zn-out::before { background: var(--sand); }
.chip-zn-gallery::before { background: var(--sand-ink); }
.chip-zn-in::before { background: var(--night); }
.ch figure.tall img { aspect-ratio: 3 / 2; object-fit: contain; position: relative; }
.ch figure.tall img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) saturate(.8); transform: scale(1.15); opacity: .8; }
.fact { margin-top: 20px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); max-width: 56ch; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 20px; align-items: baseline; }
.fact-k { grid-column: 1 / -1; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.fact-fig b { display: block; font: 300 40px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.fact-fig span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 4px; max-width: 18ch; }
.fact-t { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.fact-find { grid-column: 1 / -1; margin-top: 8px; padding-top: 10px; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--ink-2); }
.fact-find b { color: var(--ink); font-weight: 500; }
.fact-find::before { content: "⌕"; display: inline-block; margin-right: 6px; font-size: 16px; color: var(--ink); transform: scaleX(-1); }
@container page (max-width: 600px) { .fact { grid-template-columns: 1fr; } }
.hist { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; border-top: 1px solid var(--ink); padding-top: 18px; }
.hist-i { position: relative; display: grid; grid-template-rows: auto auto auto 1fr; align-content: start; }
.hist-i > .hist-y { order: 1; } .hist-i > .ph, .hist-i.no-ph::before { order: 2; } .hist-i > b { order: 3; } .hist-i > p { order: 4; }
.hist-y { display: block; font: 300 36px/1 var(--serif); letter-spacing: -.02em; margin-bottom: 12px; }
.hist-i .ph { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; margin-bottom: 12px; }
.hist-i .ph img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hist-i.no-ph::before { content: ""; display: block; aspect-ratio: 4 / 3; border-radius: var(--r); border: 1px dashed var(--line-2); margin-bottom: 12px; background: repeating-linear-gradient(135deg, transparent 0 10px, var(--paper-2) 10px 11px); }
.hist-i b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.2; margin-bottom: 6px; }
.hist-i p { font-size: 14px; color: var(--ink-2); line-height: 1.45; }
@container page (max-width: 1100px) { .hist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container page (max-width: 600px) { .hist { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .hist-y { font-size: 28px; } }
.then-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.then-now figure { margin: 0; }
.then-now .ph { display: block; width: 100%; padding: 0; border: 0; background: var(--paper-2); border-radius: var(--r); overflow: hidden; cursor: zoom-in; box-shadow: var(--shadow); }
.then-now .ph img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.then-now figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.then-now figcaption b { font: 500 22px/1 var(--sans); margin-right: 10px; color: var(--ink); }
@container page (max-width: 600px) { .then-now { grid-template-columns: 1fr; } }
.pack-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@container page (max-width: 520px) { .pack-grid-2 { grid-template-columns: 1fr; } }

/* База: лучи, линейка расстояний, карта жилья */
.route-grid-base { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }
.chip-bus::before { background: var(--ink); }
.chip-trek::before { background: var(--lake-ink); }
.legend .lg-trek i { border-top-style: dotted; border-color: var(--lake-ink); }
.vm-water polygon { fill: oklch(86% 0.05 215); }
.vm-streets polyline { fill: none; stroke: #fff; stroke-width: .8; opacity: .9; }
.vm-rayg .vm-halo { stroke-width: 5; opacity: .7; }
.vm-rayg .vm-ray { stroke-width: 2; opacity: .55; }
.vm-rayg .vm-trek { stroke: var(--lake-ink); stroke-dasharray: 2 4; }
.vm-rayg .vm-bus { stroke: var(--ink-2); }
.vm-rayg.is-on .vm-ray { stroke: var(--ink); stroke-width: 3.5; opacity: 1; }
.vm-rayg.is-on .vm-halo { stroke-width: 8; opacity: 1; }
.vm-center { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.ruler svg { width: 100%; height: auto; overflow: visible; }
.rl-axis { stroke: var(--ink); stroke-width: 2; }
.rl-tick { stroke: var(--line-2); stroke-width: 2; }
.rl-t { font: 500 22px var(--sans); fill: var(--ink-3); }
.rl-pin circle { fill: #fff; stroke: var(--ink); stroke-width: 2.5; r: 18px; }
.rl-pin text { font: 700 19px var(--sans); fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.rl-stem { stroke: var(--line-2); stroke-width: 1.5; }
.rl-pin.is-on circle { fill: var(--ink); }
.rl-pin.is-on text { fill: #fff; }
.rl-pin.is-on .rl-stem { stroke: var(--ink); }
.ch-more { margin-top: 12px; font-size: 15px; }
.stay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@container page (max-width: 860px) { .stay-grid { grid-template-columns: 1fr; } }
.stay-map { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stay-map svg { display: block; width: 100%; height: auto; }
.stay-map figcaption { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); }
.stay-map figcaption span { display: inline-flex; align-items: center; gap: 6px; }
.stay-map .osm-c { margin-left: auto; color: var(--ink-3); font-size: 11px; }
.st-key { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.st-guest_house { background: oklch(60% 0.11 140); }
.st-hostel { background: var(--lake); }
.st-hotel { background: var(--sand); }
.st-other { background: var(--ink-3); }
.st-key.st-bus { background: var(--ink); border-radius: 2px; }
.st-bg { fill: #efeadf; }
.st-res { fill: oklch(91% 0.012 70); }
.st-street { fill: none; stroke: #fff; stroke-width: 1.2; stroke-linecap: round; }
.st-street.main { stroke-width: 3; }
.st-ring { fill: none; stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 4 5; }
.st-ring-t { font: 500 12px var(--sans); fill: var(--ink-2); }
.st-dot { stroke: #fff; stroke-width: 1; }
.st-dot.st-guest_house { fill: oklch(60% 0.11 140); } .st-dot.st-hostel { fill: var(--lake); } .st-dot.st-hotel { fill: var(--sand); } .st-dot.st-other { fill: var(--ink-3); }
.st-mark rect { fill: var(--ink); }
.st-mark text { font: 500 12px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3; }
.st-center circle { fill: var(--ink); stroke: #fff; stroke-width: 2; }
.st-center text { font: 600 13px var(--sans); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 3; }
.st-bar-h { font-size: 15px; color: var(--ink-2); }
.st-bar-h b { font: 300 40px/1 var(--serif); color: var(--ink); margin-right: 6px; }
.st-bar-row { display: flex; gap: 2px; height: 14px; border-radius: 3px; overflow: hidden; margin: 12px 0 10px; }
.st-seg { display: block; min-width: 2px; }
.st-bar-k { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.st-bar-k span { display: inline-flex; align-items: center; gap: 6px; }

/* Сводная: вопрос, карточки поездок, месяц */
.hero-q { padding-top: 28px; }
.hero-q .crumbs { margin-bottom: 20px; }
.hero-q-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px 64px; align-items: start; }
.hero-q h1 { font-size: clamp(36px, 4.6cqi, 68px); font-weight: 300; line-height: 1.02; letter-spacing: -.02em; }
.hero-q .answer { font-size: clamp(18px, 1.5cqi, 22px); max-width: none; color: var(--ink); }
.hero-q .answer b { font-weight: 600; }
.updated { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.kf-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@container page (max-width: 860px) { .hero-q-grid { grid-template-columns: 1fr; } .kf-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.when { margin-top: 14px; border-top: 1px solid var(--ink); padding-top: 10px; }
.when-k { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.months { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 3px; }
.months button { width: 100%; min-height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font: 500 11px/1 var(--sans); color: var(--ink-2); cursor: pointer; padding: 0 2px; }
.months button:hover { border-color: var(--ink); color: var(--ink); }
.months button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.trips { display: grid; gap: 20px; }
.trip-card { display: grid; grid-template-columns: 200px 44px minmax(0, 1fr); gap: 0 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; scroll-margin-top: 80px; transition: opacity .25s ease; }
.trip-card.is-on { border-color: var(--ink); }
.trip-card.is-out { opacity: .45; }
.trip-card.is-out:hover, .trip-card.is-out:focus-within { opacity: 1; }
.tc-ph { display: block; aspect-ratio: 4 / 3; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.tc-ph img { width: 100%; height: 100%; object-fit: cover; }
.tc-num { display: grid; place-items: center; height: 100%; font: 300 36px/1 var(--serif); color: var(--ink-3); }
.tc-n { font: 300 40px/1 var(--serif); color: var(--ink-3); text-align: center; padding-top: 2px; }
.trip-card.is-on .tc-n { color: var(--ink); }
.tc-k { font: 500 12px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.tc-body h3 { font-size: 26px; margin-bottom: 8px; }
.tc-body h3 a { color: inherit; text-decoration: none; }
.tc-body h3 a:hover { text-decoration: underline; }
.tc-t { font-family: var(--serif); font-size: 18px; line-height: 1.4; color: var(--ink-2); margin-bottom: 12px; }
.tc-dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; font-size: 14px; }
.tc-dl > div { display: contents; }
.tc-dl dt { color: var(--ink-3); }
.tc-dl dd { margin: 0; color: var(--ink-2); line-height: 1.5; }
.tc-dl dd b { color: var(--ink); }
.tc-state { margin-top: 12px; font: 500 13px/1 var(--sans); padding: 6px 10px; border-radius: 999px; display: inline-block; }
.tc-in { background: var(--lake-soft); color: var(--lake-ink); }
.tc-edge { background: var(--sand-soft); color: var(--sand-ink); }
.tc-out { background: var(--paper-2); color: var(--ink-3); }
@container page (max-width: 760px) { .trip-card { grid-template-columns: 36px minmax(0, 1fr); } .tc-ph { grid-column: 1 / -1; order: -1; margin-bottom: 12px; aspect-ratio: 16 / 9; } .tc-n { font-size: 30px; } .tc-dl { grid-template-columns: 1fr; gap: 2px; } .tc-dl dt { margin-top: 6px; } }
.mini, .longer { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.mini li, .longer li { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.mini a { text-decoration: none; color: inherit; display: block; }
.mini a:hover b { text-decoration: underline; }
.mini b { display: block; font-family: var(--serif); font-size: 20px; font-weight: 400; margin-bottom: 4px; }
.mini span { font-size: 14px; color: var(--ink-2); }
.longer li { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; }
.longer img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.longer h3 { font-size: 22px; margin-bottom: 6px; }
.longer p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
@container page (max-width: 760px) { .mini, .longer { grid-template-columns: 1fr; } }
.tbl-wrap { overflow: auto hidden; -webkit-overflow-scrolling: touch; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.tbl th, .tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font: 500 11px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.tbl td.num { font-size: 20px; font-weight: 500; white-space: nowrap; }
.tbl.mx th[scope="row"] { white-space: nowrap; font-weight: 500; }
.tbl.mx td { text-align: center; font-size: 11px; color: var(--ink-3); padding: 8px 4px; min-width: 30px; }
.tbl.mx td.in { background: var(--lake-soft); color: var(--lake-ink); }
.tbl.mx td.edge { background: var(--sand-soft); color: var(--sand-ink); }
.tbl.mx td.ski { background: var(--night-soft); color: var(--night); }
.tbl.mx thead th[data-m] { text-align: center; }
.mx-lg { margin-top: 10px; font-size: 13px; color: var(--ink-2); display: flex; gap: 6px 14px; flex-wrap: wrap; align-items: center; }
.mx-lg i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; background: var(--paper-2); margin-right: -8px; }
.mx-lg i:nth-of-type(1) { background: var(--lake-soft); border: 1px solid var(--lake); }
.mx-lg i:nth-of-type(2) { background: var(--sand-soft); border: 1px solid var(--sand); }
.mx-lg i:nth-of-type(3) { background: var(--night-soft); border: 1px solid var(--night); }
.mx-lg i:nth-of-type(4) { border: 1px solid var(--line-2); }
.rules li { padding: 12px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 19px; line-height: 1.4; color: var(--ink-2); }
.rules b { color: var(--ink); font-weight: 500; }
.practical-facts { border-top: 1px solid var(--ink); }
.practical-facts > div { display: grid; grid-template-columns: minmax(180px, .65fr) minmax(0, 1.8fr); gap: 16px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.practical-facts dt { font: 400 19px/1.35 var(--serif); color: var(--ink); }
.practical-facts dd { color: var(--ink-2); line-height: 1.55; max-width: 78ch; }
.practical-facts dd .st { margin-left: 6px; }
@container page (max-width: 680px) { .practical-facts > div { grid-template-columns: 1fr; gap: 8px; } }
.gseasons { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.gseasons li { border-top: 1px solid var(--ink); padding-top: 12px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.gseasons b { display: block; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--ink); }
.gseasons small { display: block; font-size: 13px; color: var(--ink-3); margin: 2px 0 10px; }
@container page (max-width: 760px) { .gseasons { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 0; font-family: var(--serif); font-size: 20px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 300 26px/1 var(--sans); color: var(--ink-3); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 14px; max-width: 70ch; color: var(--ink-2); line-height: 1.5; }
.help-box { background: transparent; border-style: dashed; }
.help-tag { font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.help-box h2 { font-size: 28px; margin-bottom: 8px; }
.help-box p:last-child { color: var(--ink-2); max-width: 60ch; }

/* Область: кольцо, все места, базы */
.hero-relief img { object-position: center 40%; }
.hero-relief { background: #e9e4d8; }
.route-grid-ring { grid-template-columns: minmax(320px, 520px) minmax(0, 1fr); }
.vmap-relief img { width: 100%; display: block; }
.rg-region { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-dasharray: 3 3; opacity: .6; }
.rg-lake { fill: oklch(80% 0.07 215); fill-opacity: .3; stroke: oklch(55% 0.08 215); stroke-width: .8; }
.rg-road { fill: none; stroke: #fff; stroke-linecap: round; stroke-linejoin: round; }
.rg-trunk { stroke-width: 1.8; }
.rg-primary { stroke-width: 1.1; opacity: .9; }
.rg-secondary { stroke-width: .6; opacity: .7; }
.rg-seg { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke: var(--sand); }
.rg-m-ring { stroke: var(--ink-2); }
.rg-m-road { stroke: var(--sand); }
.rg-m-trail { stroke: var(--lake); stroke-dasharray: 2 4; }
.rg-m-off, .rg-m-back { stroke: var(--sand); stroke-dasharray: 5 5; stroke-width: 2; }
.rg-pl { stroke: #fff; stroke-width: 1; }
.rg-c-route { fill: var(--lake); }
.rg-c-culture { fill: var(--sand); }
.rg-c-base { fill: var(--ink); }
.rg-town { fill: var(--ink); stroke: #fff; stroke-width: .6; }
.rg-town-t { font-family: var(--sans); font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: rgba(255, 255, 255, .85); stroke-width: 2.2; stroke-linejoin: round; }
.rg-town-t.pr1 { font-weight: 600; }
.rg-town-t.pr3, .rg-town-t.pr4 { fill: var(--ink-2); }
.rg-lake-t { font-family: var(--serif); font-style: italic; fill: oklch(40% 0.08 215); paint-order: stroke; stroke: rgba(255, 255, 255, .6); stroke-width: 2; }
.legend .lg-route i { border-top-color: var(--lake); }
.legend .lg-culture i { border-top-color: var(--sand); }
.legend .lg-base i { border-top-color: var(--ink); }
.legend .lg-road i { border-top-color: #fff; border-top-width: 4px; box-shadow: 0 0 0 1px var(--line-2); }
.rg-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); vertical-align: 0; margin-right: 6px; }
.rg-dot.rg-route { background: var(--lake); }
.rg-dot.rg-culture { background: var(--sand); }
.rg-dot.rg-base { background: var(--ink); }
.chapters-compact .ch { padding-bottom: clamp(32px, 4cqi, 56px); }
.chapters-compact .ch figure { max-width: 520px; }
.chapters-compact .ch figure img { aspect-ratio: 16 / 10; }
.ch figure.ch-thumb { aspect-ratio: 16 / 10; }
.ch figure.ch-thumb .rg-thumb { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapters-compact .ch h3 { font-size: clamp(24px, 2.2cqi, 30px); }
.chapters-compact .ch-text { font-size: 18px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 28px; padding: 14px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 8px 12px; font: 500 13px/1 var(--sans); color: var(--ink-2); cursor: pointer; min-height: 36px; }
.fchip { display: inline-flex; align-items: center; gap: 2px; }
.fchip small { color: var(--ink-3); margin-left: 4px; }
.fchip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.fchip[aria-pressed="true"] small { color: rgba(255, 255, 255, .7); }
.fsel { font-size: 14px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px; }
.fsel select { font: inherit; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; color: var(--ink); min-height: 36px; }
.shown { font-size: 13px; color: var(--ink-3); margin-left: auto; }
.rg-zone { margin-top: 32px; }
.rg-zone h3 { display: flex; align-items: baseline; gap: 10px; font-size: 28px; border-bottom: 1px solid var(--ink); padding-bottom: 8px; margin-bottom: 16px; }
.rg-zone h3 small { font: 400 14px var(--sans); color: var(--ink-3); }
.rg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@container page (max-width: 1100px) { .rg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container page (max-width: 760px) { .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* phone: two cards a row with short captions, not one long column (07.10.2026) */
@container page (max-width: 480px) {
  .rg-grid { gap: 10px; }
  .rg-grid .rg-media { aspect-ratio: 4 / 3; }
  .rg-grid .rg-body { padding: 9px 10px 11px; }
  .rg-grid .rg-k { font-size: 10px; letter-spacing: .05em; margin-bottom: 4px; }
  .rg-grid .rg-body b { font-size: 16px; }
  .rg-grid .rg-t { font-size: 12px; margin-top: 4px; }
  .rg-grid .rg-f { margin-top: 5px; }
}
.rg-card[hidden] { display: none; }
.rg-in { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; color: inherit; text-decoration: none; }
a.rg-in:hover { border-color: var(--ink); }
.rg-media { display: block; aspect-ratio: 16 / 10; background: var(--paper-2); position: relative; overflow: hidden; }
.rg-media img { width: 100%; height: 100%; object-fit: cover; }
.rg-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rg-nophoto { position: absolute; left: 10px; bottom: 8px; font: 500 11px/1 var(--sans); color: var(--ink-3); background: rgba(246, 243, 236, .9); padding: 4px 7px; border-radius: 999px; }
.rg-body { display: block; padding: 12px 14px 14px; }
.rg-k { display: block; font: 500 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.rg-body b { display: block; font-family: var(--serif); font-size: 19px; font-weight: 400; line-height: 1.2; }
.rg-t { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.rg-f { display: block; margin-top: 8px; font-size: 12px; color: var(--ink-3); }
.rg-go { color: var(--lake-ink); }
.rg-grid + .rg-rows { margin-top: 20px; }
.rg-rows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; border-top: 1px solid var(--line); }
@container page (max-width: 1100px) { .rg-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 560px) { .rg-rows { grid-template-columns: 1fr; } }
.rg-row > a, .rg-row > span { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 8px; align-items: baseline; align-content: start; padding: 10px 2px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; height: 100%; }
.rg-row .rg-dot { grid-row: 1; align-self: start; margin-top: 6px; }
.rg-row b { grid-column: 2; font-family: var(--serif); font-size: 17px; font-weight: 400; line-height: 1.25; }
.rg-row small { grid-column: 2; font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.rg-row .rg-go { grid-column: 3; grid-row: 1 / 3; align-self: center; }
.rg-row > a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.rg-empty { font-size: 14px; color: var(--ink-3); padding: 8px 0; }
.bases-fig { margin: 0 0 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.bases-fig svg { display: block; width: 100%; min-width: 760px; height: auto; }
.rs-lake { fill: oklch(86% 0.05 215); }
.rs-lake-t { font: italic 400 22px var(--serif); fill: oklch(40% 0.08 215); }
.rs-line { fill: none; stroke: var(--ink-2); stroke-width: 2; }
.rs-side { font: 500 11px var(--sans); letter-spacing: .1em; text-transform: uppercase; fill: var(--ink-3); }
.rs-tick { stroke: var(--line-2); }
.rs-st circle { fill: #fff; stroke: var(--ink-3); stroke-width: 1.5; }
.rs-st.has circle { fill: var(--ink); stroke: var(--ink); }
.rs-n { font: 700 11px var(--sans); fill: #fff; text-anchor: middle; dominant-baseline: central; }
.rs-t { font: 500 12px var(--sans); fill: var(--ink); }
.rs-lead { stroke: var(--line-2); }
.rs-branch { fill: none; stroke: var(--ink-2); stroke-width: 1.5; stroke-dasharray: 4 4; }
.rs-km { font: 400 11px var(--sans); fill: var(--ink-3); }
.rg-bases { margin-bottom: 16px; }
.mx-card { margin-top: 28px; }
.mx-card h3 { font-size: 22px; margin-bottom: 12px; }
.tbl.mtab { border: 0; }
.tbl.mtab th[scope="row"] { white-space: nowrap; font-weight: 500; }
.tbl.mtab th[scope="row"] small { color: var(--ink-3); margin-left: 6px; font-weight: 400; }
.tbl.mtab td { text-align: center; padding: 6px 2px; }
.tbl.mtab td span { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 4px; font-size: 12px; background: var(--paper-2); color: var(--ink-2); }
.tbl.mtab td span:empty { background: transparent; border: 1px dashed var(--line); }
.tbl.mtab td span:not(:empty) { background: var(--lake-soft); color: var(--lake-ink); }
.mapdlg-wide { width: min(96vw, 1100px); }

/* Страна */
.hero-country img { object-position: center 55%; }
.vmap-country { overflow: hidden; }
.cn-country { fill: none; stroke: var(--ink); stroke-width: 1.4; opacity: .7; }
.cn-reg { fill: transparent; stroke: var(--ink-2); stroke-width: .8; stroke-dasharray: 3 3; opacity: .8; transition: fill .3s ease; }
.cn-reg.is-on { fill: color-mix(in oklab, var(--lake) 22%, transparent); stroke: var(--ink); stroke-dasharray: none; stroke-width: 1.6; opacity: 1; }
.cn-lakes { fill: oklch(80% 0.07 215); fill-opacity: .45; }
.cn-pl { stroke: #fff; stroke-width: .8; opacity: .85; }
.cn-pl.main { stroke-width: 1.2; opacity: 1; }
.cn-c-route { fill: var(--lake); }
.cn-c-culture { fill: var(--sand); }
.cn-c-base { fill: var(--ink); }
.legend .lg-main i { width: 10px; height: 10px; border: 2px solid var(--ink); border-radius: 50%; background: #fff; }
.chip-cn-route::before { background: var(--lake); }
.chip-cn-culture::before { background: var(--sand); }
.chip-cn-base::before { background: var(--ink); }
.inst-read .span2 { grid-column: span 2; }
.cn-rgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cn-nopage { color: var(--ink-3); font-style: italic; }
.tbl.ctab th[scope="row"] small { display: block; font-size: 11px; color: var(--ink-3); margin: 0; }
.tbl.ctab td span { min-width: 34px; }
.tbl.ctab td span:not(:empty) { background: var(--paper-2); color: var(--ink); }
@container page (max-width: 1100px) { .cn-rgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container page (max-width: 760px) { .cn-rgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.rel-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lead-col { display: grid; gap: 16px; }
@container page (max-width: 1000px) { .rel-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 520px) { .rel-grid-3 { grid-template-columns: 1fr; } }

/* Телефон: узкая колонка без распора (после всех вариантов сетки, чтобы перекрыть их) */
@container page (max-width: 960px) {
  .route-grid, .route-grid-day, .route-grid-walk, .route-grid-base, .route-grid-ring { grid-template-columns: minmax(0, 1fr); }
  .inst, .chapters, .trips, .strip, .strip .s-t { min-width: 0; }
}

/* Движение */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* «Карта» in the header of every page (owner, 06.10.2026): the map of the country is one click away */
.hd-map { margin-left: 6px; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; color: var(--ink); text-decoration: none; padding: 6px 13px 6px 11px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.hd-map svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linejoin: round; }
.hd-map:hover { border-color: var(--ink); background: var(--paper-2); }
@container page (max-width: 1000px) { .hd-map { margin-left: auto; } }

/* Страницы мест из пакетов (build-packages.mjs → vy-place.template.html, 06.10.2026): блоки, которых нет у ручных страниц */
@container page (min-width: 861px) { .kf-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .kf-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.legs.legs-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.legs.legs-3, .legs.legs-alt { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; }
@container page (max-width: 960px) { .legs.legs-3, .legs.legs-alt { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 560px) { .legs.legs-2, .legs.legs-3, .legs.legs-alt { grid-template-columns: 1fr; } }
.trip-grid-eq { align-items: start; }
.ch figure.ch-none { aspect-ratio: 3 / 2; display: grid; place-items: center; }
.ch figure.ch-none img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) saturate(.7); transform: scale(1.12); opacity: .75; }
.ch figure.ch-none-blank { background: repeating-linear-gradient(135deg, var(--paper-2) 0 10px, var(--paper) 10px 20px); box-shadow: none; border: 1px dashed var(--line-2); }
.ch-none-t { position: relative; font: 500 13px/1 var(--sans); color: var(--ink-2); background: rgba(246, 243, 236, .92); padding: 7px 12px; border-radius: 999px; }
.chapters-compact .ch figure.ch-none, .chapters-compact .ch figure.ch-thumb { aspect-ratio: 16 / 10; }
.sp figure.sp-none { aspect-ratio: 4 / 3; box-shadow: none; background: color-mix(in srgb, var(--s, var(--ink-3)) 9%, var(--paper)); }
.sp figure.sp-none svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp figure.sp-none .r2 { fill: var(--s, var(--ink-3)); opacity: .22; }
.sp figure.sp-none .r1 { fill: var(--s, var(--ink-3)); opacity: .38; }
.sp figure .ph { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
@container page (min-width: 1101px) {
  .hist:has(> .hist-i:nth-child(4):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hist:has(> .hist-i:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .hist:has(> .hist-i:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.in-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.in-tile { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); }
.in-tile span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.in-tile b { font-size: 16px; font-weight: 500; line-height: 1.2; }
.in-tile small { font-size: 13.5px; line-height: 1.35; color: var(--ink-2); }
.in-fig { font: 300 26px/1 var(--serif) !important; letter-spacing: -.02em; }
.in-ic { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--lake-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.in-note { background: var(--sand-soft); }
.in-note .in-ic { stroke: var(--sand-ink); }
@container page (max-width: 1100px) { .in-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container page (max-width: 560px) { .in-grid { grid-template-columns: 1fr; } }
/* «Где это»: маленькая карта страны с точкой места, факты и ссылка в Карты */
.wh-sec { padding: clamp(56px, 8cqi, 112px) 0 0; }
.wh-sec + .sec { padding-top: 48px; }
.wh-card { display: grid; grid-template-columns: minmax(240px, 380px) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.wh-map { width: 100%; height: auto; display: block; }
.wh-country { fill: var(--paper-2); stroke: var(--line-2); stroke-width: 3; stroke-linejoin: round; }
.wh-region { fill: var(--lake-soft); stroke: var(--lake); stroke-width: 3; stroke-linejoin: round; }
.wh-lake { fill: oklch(86% 0.05 220); stroke: oklch(76% 0.06 220); stroke-width: 1.5; }
.wh-halo { fill: color-mix(in oklab, var(--sand) 25%, transparent); }
.wh-dot { fill: var(--sand); stroke: #fff; stroke-width: 4; }
.wh-body h2 { font-size: 30px; margin-bottom: 14px; }
.wh-dl { margin: 0 0 14px; display: grid; gap: 7px; }
.wh-dl div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.45; }
.wh-dl dt { color: var(--ink-3); }
.wh-dl dd { margin: 0; }
.wh-maps { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; white-space: nowrap; }
.wh-ext { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.wh-hubs { margin: 4px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.wh-hubs-k { margin: 0 0 6px; font: 500 11px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.wh-hubs ul { display: grid; gap: 4px; }
@container page (max-width: 720px) { .wh-card { grid-template-columns: 1fr; padding: 18px; gap: 16px; } .wh-dl div { grid-template-columns: 96px minmax(0, 1fr); font-size: 14px; } }
.fact-fig-long b { font-size: 26px; white-space: normal; max-width: 16ch; }
.hist-y { overflow-wrap: anywhere; }
@container page (max-width: 600px) { .hist-y { font-size: 24px; } .fact-fig b { white-space: normal; } }
.hist-noph .hist-i.no-ph::before { display: none; }

/* Сводные из build-guides.mjs: легенда матрицы по классам (без лыж — три отметки), таблица сравнения, климат */
.mx-lg i.lg-in { background: var(--lake-soft); border: 1px solid var(--lake); }
.mx-lg i.lg-edge { background: var(--sand-soft); border: 1px solid var(--sand); }
.mx-lg i.lg-ski { background: var(--night-soft); border: 1px solid var(--night); }
.mx-lg i.lg-out { background: var(--paper-2); border: 1px solid var(--line-2); }
.tbl.cmp th[scope="row"], .tbl.clim th[scope="row"] { font-weight: 500; color: var(--ink); white-space: nowrap; }
.tbl.cmp thead th a { color: inherit; }
.tbl td.t2 { white-space: nowrap; }
@container page (max-width: 600px) {
  .tbl.cmp, .tbl.cmp tbody, .tbl.clim, .tbl.clim tbody { display: block; border: 0; background: transparent; }
  .tbl.cmp thead, .tbl.clim thead { display: none; }
  .tbl.cmp tr, .tbl.clim tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; }
  .tbl.cmp th[scope="row"], .tbl.clim th[scope="row"] { display: block; padding: 0 0 4px; border: 0; white-space: normal; font: 400 19px/1.25 var(--serif); }
  .tbl.cmp td, .tbl.clim td { display: block; padding: 6px 0 0; border: 0; }
  .tbl.cmp td::before, .tbl.clim td::before { content: attr(data-col); display: block; font: 500 11px/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px; }
}

/* Авторы фото (site-parts.mjs → vyCredits) */
.cr { padding-top: 28px; }
.cr .crumbs { margin-bottom: 20px; }
.cr h1 { font-size: clamp(36px, 4.6cqi, 60px); font-weight: 300; line-height: 1.05; letter-spacing: -.02em; }
.cr-sec { margin-top: 28px; max-width: 86ch; }
.cr-sec h2 { font-size: 26px; margin-bottom: 14px; }
.cr-sec .note { color: var(--ink-2); line-height: 1.5; }
.credits { list-style: decimal; padding-left: 1.8em; display: grid; gap: 10px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.credits li::marker { color: var(--ink-3); font-size: 13px; }
.credits b { color: var(--ink); font-weight: 500; }
.credits a { color: var(--lake-ink); overflow-wrap: anywhere; }
.sp figure .taken { position: absolute; left: 10px; bottom: 10px; font-size: 12px; color: #fff; background: rgba(27, 36, 48, .64); padding: 3px 8px; border-radius: 999px; pointer-events: none; }
/* Страницы областей: четыре сезона над таблицей температур */
.rg-seasons { margin-bottom: 32px; }
.rg-seasons .sp-look { font-size: 16px; }
.rg-seasons .sp-look b { color: var(--ink); font-weight: 500; }
@container page (max-width: 860px) { .seasons.rg-seasons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }

/* Missing media keeps the same slot as a prepared photo. */
.photo-placeholder { display: grid; place-items: center; width: 100%; height: 100%; min-height: 120px; aspect-ratio: 3 / 2; background: color-mix(in oklab, var(--ink-3) 12%, var(--white, #fff)); color: var(--ink-3); font: 400 14px/1.4 var(--sans); text-align: center; box-shadow: none; }
.photo-placeholder > span { padding: 16px; }
.hero-ph > .photo-placeholder { aspect-ratio: auto; }
.ch figure.ch-none, .sp figure.sp-none { background: none; box-shadow: none; }
.sp figure.sp-none .photo-placeholder { aspect-ratio: 4 / 3; }
.rel-none > .photo-placeholder { aspect-ratio: auto; }
.photo-placeholder.sl-img { position: absolute; inset: 0; }
.route-grid-known { grid-template-columns: minmax(0, 1fr); }
.route-grid-known .chapters { max-width: 860px; margin-inline: auto; width: 100%; }
