@font-face{font-family:"Golos Text";src:url(assets/golos-0.ttf) format("truetype");font-weight:400;font-display:swap}
@font-face{font-family:"Golos Text";src:url(assets/golos-1.ttf) format("truetype");font-weight:500;font-display:swap}
@font-face{font-family:"Golos Text";src:url(assets/golos-2.ttf) format("truetype");font-weight:600;font-display:swap}
:root {
  color-scheme: light;
  --ink: #163747;
  --muted: #526875;
  --navy: #123746;
  --yellow: #ffe04b;
  --ground: #f5f7f4;
  --line: #d6dfdf;
  --white: #fff;
  --sea: #6aa5b2;
  --focus: #08749a;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: "Golos Text", system-ui, sans-serif; font-size: 16px; line-height: 1.55; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-underline-offset: .19em; }
a:focus-visible, button:focus-visible, h2:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { background: var(--yellow); color: var(--navy); }
p, h1, h2, figure { margin: 0; }
img { display: block; max-width: 100%; }
svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icons { position: absolute; width: 0; height: 0; overflow: hidden; }
.shell { width: min(1320px, calc(100% - 72px)); margin-inline: auto; }

.masthead { background: var(--navy); color: var(--white); }
.masthead-inner { display: flex; min-height: 67px; align-items: center; gap: 22px; }
.masthead img { width: 115px; height: auto; }
.masthead span { padding-left: 22px; border-left: 1px solid #74959d; color: #e4eeec; font-size: 14px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 22px 48px; margin-block: 33px 25px; }
.intro h1 { font-size: clamp(42px, 5vw, 76px); line-height: 1.02; font-weight: 500; letter-spacing: -.04em; }
.intro-copy { width: min(100%, 49ch); min-width: 0; }
.intro p { padding-block-end: 2px; color: var(--muted); line-height: 1.48; }
.film-jump { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; min-height: 40px; color: var(--ink); font-size: 14px; font-weight: 600; }
.film-jump svg { width: 16px; height: 16px; transform: rotate(90deg); }
.film-jump:hover { color: var(--focus); }

.guide { display: grid; grid-template-columns: minmax(0,1fr) clamp(285px, 27vw, 350px); align-items: start; gap: 20px; }
.stage { min-width: 0; background: var(--navy); border-radius: 12px; overflow: hidden; }
.viewport { height: clamp(440px, 60vh, 670px); position: relative; isolation: isolate; background: var(--sea); }
.map, .fallback { position: absolute; inset: 0; }
.fallback { background: var(--sea) center/cover no-repeat; }
.map { opacity: 0; transition: opacity .2s ease-out; }
.viewport[data-mode="live"] .map { opacity: 1; }
.viewport:not([data-mode="live"]) .compass { display: none; }
.maplibregl-canvas { cursor: default; }
.map-marker { padding: 0; border: 0; background: transparent; }
.map-marker > span { display: flex; align-items: center; min-height: 42px; gap: 8px; padding: 7px 11px 7px 8px; background: var(--white); color: var(--navy); border: 1px solid #254d59; border-radius: 7px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.map-marker > span::before { content: ""; width: 9px; height: 9px; background: var(--yellow); border: 1px solid #536468; border-radius: 50%; }
.map-marker:hover > span { background: var(--yellow); }
.point-label { padding: 4px 8px; color: var(--navy); background: #fff; border: 1px solid #a5bcbb; border-radius: 5px; white-space: nowrap; font-size: 12px; font-weight: 600; pointer-events: none; }
.poi-marker { pointer-events: none; }
.poi-marker::after { content: ""; position: absolute; left: calc(50% - 3px); bottom: -8px; width: 6px; height: 6px; background: var(--yellow); border: 1px solid var(--navy); border-radius: 50%; }
.sea-label { color: #103b48; letter-spacing: .12em; font-size: 12px; pointer-events: none; white-space: nowrap; }
.viewport[data-basemap="satellite"] { --sea: #182a33; }
.viewport[data-basemap="satellite"] .sea-label { color: #f5f7f4; text-shadow: 0 1px 4px #102d3c; }
.compass { position: absolute; top: 14px; right: 14px; display: grid; justify-items: center; padding: 5px; width: 40px; background: #f5f7f4; color: var(--ink); border: 1px solid #a5bcbb; border-radius: 7px; font-size: 11px; font-weight: 600; pointer-events: none; }
.compass svg { width: 18px; height: 18px; fill: var(--navy); }
.map-note { position: absolute; top: 12px; left: 12px; padding: 4px 8px; background: var(--ground); color: var(--navy); border-radius: 4px; font-size: 12px; }
.credits { position: absolute; right: 0; bottom: 0; max-width: 100%; padding: 2px 6px; background: #f5f7f4; color: var(--ink); font-size: 11px; line-height: 1.4; }
.credits a { text-decoration: none; }
.credits a:hover { text-decoration: underline; }
.caption { position: absolute; left: 16px; bottom: 24px; display: flex; gap: 14px; align-items: end; justify-content: space-between; max-width: calc(100% - 32px); padding: 12px 13px 12px 16px; background: var(--navy); color: var(--white); border-radius: 8px; }
.caption p { color: #d4e8e9; font-size: 12px; }
.caption strong { display: block; font-size: 18px; font-weight: 500; line-height: 1.25; }
.caption-open { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 9px; color: var(--yellow); background: transparent; border: 1px solid #81a6ac; border-radius: 6px; white-space: nowrap; font-size: 13px; }
.caption-open:hover { background: #235568; }
.caption-open svg { width: 16px; height: 16px; }

.controls { display: flex; align-items: center; gap: 18px; min-height: 84px; padding: 14px 17px; color: white; }
.control-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; }
.primary { color: var(--navy); background: var(--yellow); }
.primary:hover { background: #f5cf20; }
.primary:disabled { cursor: default; background: #cedbd9; }
.overview { color: white; border-color: #81a6ac; background: var(--navy); }
.overview:hover { background: #235568; }
.controls :focus-visible, .caption :focus-visible { outline-color: var(--yellow); }
.journey { flex: 1; min-width: 110px; padding: 2px 4px 0 0; }
.journey-line { position: relative; height: 2px; margin-block-end: 9px; background: #75959d; }
.journey-line > div { height: 100%; width: 0%; background: var(--yellow); }
.journey-line i { position: absolute; width: 7px; height: 7px; top: -2.5px; background: #e4eeec; border-radius: 50%; }
.journey p { color: #e4eeec; font-size: 12px; line-height: 1.3; }

.side { min-width: 0; padding: 23px 20px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.side h2 { font-size: clamp(23px, 2.2vw, 30px); font-weight: 500; line-height: 1.13; letter-spacing: -.03em; }
.side p { margin-block-start: 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.stop-list { display: grid; margin-block-start: 18px; }
.stop { display: grid; grid-template-columns: 65px minmax(0, 1fr) 17px; align-items: center; gap: 11px; min-height: 77px; width: 100%; padding: 9px 0; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.stop:hover { color: #08749a; }
.stop img { width: 65px; height: 54px; object-fit: cover; border-radius: 5px; }
.stop strong, .stop small { display: block; }
.stop strong { font-size: 16px; font-weight: 600; }
.stop small { margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.3; }
.stop svg { width: 17px; height: 17px; }
.stop[data-current] strong::after { content: ""; display: inline-block; vertical-align: 2px; margin-left: 7px; width: 7px; height: 7px; background: #08749a; border-radius: 50%; }
.back { display: inline-flex; gap: 7px; align-items: center; min-height: 44px; margin: -8px 0 3px; padding: 0; background: transparent; border: 0; color: var(--muted); font-size: 13px; }
.back:hover { color: var(--focus); }
.back svg { width: 17px; height: 17px; }
.district figure { margin-block: 12px; }
.district figure img { width: 100%; height: auto; aspect-ratio: 1.74; object-fit: cover; border-radius: 7px; }
.district figcaption { margin-top: 4px; color: var(--muted); font-size: 11px; }
.district .tip { padding-top: 11px; margin-top: 12px; border-top: 1px solid var(--line); }
.district .button { width: 100%; margin-top: 16px; }
.detail-next { margin: 8px 0 0; }
.detail-actions { display: flex; flex-wrap: wrap; column-gap: 16px; }
.films { margin-block: clamp(50px, 8vw, 104px) 48px; scroll-margin-top: 20px; }
.films-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px 28px; margin-bottom: 24px; }
.films-heading h2 { font-size: clamp(28px, 4vw, 54px); font-weight: 500; line-height: 1.06; letter-spacing: -.035em; }
.films-heading p { max-width: 43ch; color: var(--muted); }
.film-layout { display: grid; grid-template-columns: minmax(0,1fr) clamp(250px, 25vw, 320px); align-items: start; gap: 20px; }
.film-player { overflow: hidden; border-radius: 12px; background: var(--navy); color: var(--white); }
.film-player video { display: block; width: 100%; aspect-ratio: 16 / 9; background: var(--navy); }
.film-player video:focus-visible { outline: 3px solid var(--yellow); outline-offset: -4px; }
.film-caption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 18px; }
.film-caption p { font-weight: 600; }
.film-caption a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 14px; }
.film-caption a:focus-visible { outline-color: var(--yellow); }
.film-error { padding: 0 18px 14px; font-size: 14px; }
.film-options { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px; }
.film-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 8px; min-height: 49px; font-weight: 500; text-decoration: none; }
.film-option + .film-option { border-top: 1px solid var(--line); }
.film-option:hover { color: var(--focus); text-decoration: underline; }
.film-option[aria-current] { color: var(--focus); font-weight: 600; }
.film-option span + span { color: var(--muted); font-size: 12px; }
.film-sources { margin-top: 12px; max-width: 70ch; color: var(--muted); font-size: 14px; }
.film-sources summary { display: list-item; cursor: pointer; padding-block: 12px; color: var(--ink); font-weight: 600; }
.film-sources summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.viewport[data-mode="live"] .fallback { visibility: hidden; }
.viewport:not([data-mode="live"]) .map { visibility: hidden; }
.footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 15px 20px; margin-block-start: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
@media (max-width: 1060px) {
  .shell { width: calc(100% - 44px); }
  .guide { gap: 14px; }
  .controls { flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 57px; gap: 13px; }
  .masthead img { width: 97px; }
  .masthead span { padding-left: 13px; font-size: 12px; line-height: 1.25; }
  .intro { display: block; margin-block: 23px 18px; }
  .intro h1 { font-size: clamp(39px, 10vw, 60px); }
  .intro p { margin-top: 10px; font-size: 14px; }
  .guide { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .films-heading { display: block; }
  .films-heading p { margin-top: 9px; }
  .film-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .viewport { height: clamp(300px, 46vh, 425px); }
  .controls { padding: 11px 12px 13px; min-height: auto; }
  .control-actions { width: 100%; }
  .control-actions .button { min-height: 44px; padding: 8px 10px; gap: 5px; font-size: 13px; }
  .control-actions .button svg { width: 17px; height: 17px; }
  .journey { min-width: 100%; }
  .side { padding: 17px; }
  .stop-list { margin-block-start: 13px; }
  .stop { min-height: 78px; }
  .caption { flex-wrap: wrap; align-items: start; gap: 7px; left: 9px; bottom: 20px; padding: 8px 10px; max-width: calc(100% - 18px); }
  .caption strong { font-size: 16px; }
  .caption-open { min-height: 40px; }
  .point-label { font-size: 11px; }
  .map-marker > span { padding-inline: 6px; gap: 4px; font-size: 12px; }
}
@media (max-width: 355px) {
  .shell { width: calc(100% - 24px); }
  .control-actions .button { padding-inline: 8px; }
  .caption-open { min-height: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  .map { transition: none; }
}
@media (min-width: 761px) {
  .caption-open[aria-expanded="true"] { display: none; }
}
