/* Aspabota — styles.
   Palette comes from the place: Mangystau chalk, the Caspian, bronze patina, garnet inlay, gold foil. */
:root {
  --chalk: #eef0eb;
  --paper: #f9faf7;
  --tint: #e2e8e4;
  --ink: #12272d;
  --ink-2: #41565c;
  --ink-3: #66797f;
  --sea: #0f3440;
  --sea-2: #174a5b;
  --foam: #cfe0e2;
  --patina: #3a8572;
  --garnet: #9b1c31;
  --gold: #c8a14b;
  --plate: #d8dcde;
  --line: rgba(18, 39, 45, .16);
  --line-sea: rgba(255, 255, 255, .22);
  --display: "Forum", "Aspabota Greek", Georgia, "Times New Roman", serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --greek: "Aspabota Greek", "Forum", Georgia, serif;
  --wrap: 1240px;
  --gut: clamp(18px, 4vw, 48px);
  --bar: 60px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--chalk); color: var(--ink); font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.greek { font-family: var(--greek); }
.frac { white-space: nowrap; font-size: .82em; }
.frac sup, .frac sub { font-size: .9em; line-height: 0; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 16px; border-radius: 2px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }
.wrap--narrow { max-width: 860px; }

/* ---------- top bar ---------- */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar); display: flex; align-items: center; gap: 20px; padding-inline: var(--gut); color: #fff; transition: background-color .25s, color .25s, box-shadow .25s; }
.bar.is-solid { background: rgba(238, 240, 235, .94); color: var(--ink); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(10px); }
.bar__mark { font-size: 24px; text-decoration: none; line-height: 1; white-space: nowrap; }
.bar__nav { display: flex; gap: clamp(10px, 1.5vw, 22px); margin-left: auto; font-size: 15px; }
.bar__nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.bar__nav a:hover { border-bottom-color: currentColor; }
.bar__nav a.is-here { border-bottom-color: var(--gold); }
.bar__menu { display: none; margin-left: auto; background: none; border: 1px solid currentColor; border-radius: 2px; padding: 6px 12px; font-size: 15px; }
.lang { display: flex; border: 1px solid currentColor; border-radius: 2px; overflow: hidden; flex: none; }
.lang button { background: none; border: 0; padding: 5px 10px; font-size: 14px; line-height: 1.4; }
.lang button + button { border-left: 1px solid currentColor; }
.lang button[aria-pressed="true"] { background: #fff; color: var(--sea); }
.bar.is-solid .lang button[aria-pressed="true"] { background: var(--sea); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(640px, 100svh); display: flex; flex-direction: column; justify-content: flex-end; color: #fff; background: var(--sea); overflow: hidden; isolation: isolate; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; z-index: -3; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  linear-gradient(90deg, rgba(15, 52, 64, .94) 0%, rgba(15, 52, 64, .8) 34%, rgba(15, 52, 64, .28) 66%, rgba(15, 52, 64, 0) 88%),
  linear-gradient(0deg, rgba(15, 52, 64, .92) 0%, rgba(15, 52, 64, 0) 34%),
  linear-gradient(180deg, rgba(15, 52, 64, .55) 0%, rgba(15, 52, 64, 0) 18%); }
.hero__grid { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .2; }
.hero__body { padding-top: calc(var(--bar) + 40px); padding-bottom: clamp(28px, 5vh, 56px); }
.hero__greek { font-size: clamp(24px, 3.2vw, 42px); color: var(--gold); line-height: 1; margin-bottom: clamp(6px, 1vw, 12px); }
.hero__name { font: 400 clamp(60px, 13.2vw, 196px)/.86 var(--display); text-transform: uppercase; letter-spacing: .015em; margin-left: -.04em; }
.hero__tag { font: 400 clamp(21px, 2.3vw, 30px)/1.25 var(--display); max-width: 27em; margin-top: clamp(18px, 3vw, 34px); }
.hero__sub { max-width: 40em; margin-top: 14px; color: var(--foam); font-size: 16.5px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero__quote { border-top: 1px solid var(--line-sea); padding-top: 16px; padding-bottom: 22px; display: flex; flex-wrap: wrap; gap: 4px 28px; align-items: baseline; }
.hero__quote p { font: 400 clamp(17px, 1.6vw, 21px)/1.3 var(--display); }
.hero__quote cite { font-style: normal; font-size: 14px; color: var(--foam); }

.btn { display: inline-block; padding: 12px 20px; border-radius: 2px; border: 1px solid transparent; text-decoration: none; font-weight: 500; font-size: 16px; line-height: 1.25; background: none; }
.btn--light { background: #fff; color: var(--sea); }
.btn--light:hover { background: var(--foam); }
.btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--line { border-color: var(--ink); color: var(--ink); padding: 9px 16px; font-size: 15px; }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--solid { background: var(--sea); color: #fff; }
.btn--solid:hover { background: var(--sea-2); }
.btn[disabled] { opacity: .35; cursor: default; pointer-events: none; }
.btn--gold { background: var(--gold); color: #1b1608; }
.btn--gold:hover { background: #d9b566; }
.bar__nav a.is-tour { border: 1px solid var(--gold); border-radius: 2px; padding: 5px 10px; color: inherit; }
.bar__nav a.is-tour:hover { background: var(--gold); color: #1b1608; }
.tourcta { position: relative; display: block; margin-top: clamp(40px, 5vw, 64px); border-radius: 3px; overflow: hidden; color: #fff; text-decoration: none; background: var(--sea); isolation: isolate; }
.tourcta img { width: 100%; height: clamp(300px, 34vw, 460px); object-fit: cover; object-position: 60% 50%; transition: transform .6s; }
.tourcta:hover img { transform: scale(1.03); }
.tourcta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15, 52, 64, .92) 0%, rgba(15, 52, 64, .7) 36%, rgba(15, 52, 64, 0) 68%); z-index: 1; }
.tourcta__body { position: absolute; z-index: 2; left: clamp(18px, 4vw, 48px); top: 50%; transform: translateY(-50%); max-width: min(460px, 82%); display: grid; gap: 12px; justify-items: start; }
.tourcta__h { font: 400 clamp(28px, 3.6vw, 46px)/1.05 var(--display); }
.tourcta__p { font-size: 16.5px; line-height: 1.5; color: var(--foam); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(64px, 9vw, 128px); }
.sec--tint { background: var(--tint); }
.sec--sand { background: var(--paper); padding-top: 0; }
.sec--sea { background: var(--sea); color: #fff; }
.sec h2 { font: 400 clamp(38px, 5.4vw, 72px)/1.02 var(--display); letter-spacing: -.005em; max-width: 16em; }
.lede { font-size: clamp(18.5px, 1.65vw, 21.5px); line-height: 1.5; color: var(--ink-2); max-width: 44em; margin-top: 18px; }
.lede--s { font-size: 18px; margin-top: 8px; }
.sec--sea .lede { color: var(--foam); }
.sub { font: 400 clamp(26px, 2.6vw, 34px)/1.1 var(--display); margin-top: clamp(48px, 6vw, 80px); margin-bottom: 20px; }
.sub--tight { margin-top: 0; margin-bottom: 14px; font-size: clamp(23px, 2.1vw, 27px); }
.prose p + p { margin-top: 1em; }
.prose { max-width: 40em; }
.note { margin-top: 18px; font-size: 14.5px; color: var(--ink-3); max-width: 60em; }

.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.split .prose { margin-top: 26px; }
.split--top { margin-top: clamp(36px, 5vw, 60px); }
.split__media { display: grid; gap: 22px; }

/* ---------- figures ---------- */
.fig img { width: 100%; background: var(--plate); border-radius: 2px; }
.fig__btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 2px; }
.fig figcaption { margin-top: 9px; font-size: 13.5px; line-height: 1.45; color: var(--ink-3); max-width: 46em; }
.fig--onsea figcaption { color: var(--foam); }
.pair { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; align-items: start; }
.pair--maps { margin-top: clamp(36px, 5vw, 64px); grid-template-columns: minmax(0, 641fr) minmax(0, 620fr); gap: clamp(18px, 3vw, 40px); }
.pair--gap { margin-top: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pair--gap .fig img { aspect-ratio: 3 / 2; object-fit: cover; }
.pair--gap .fig[data-img="room"] img { object-fit: contain; background: #fff; }
.fig--wide { margin-top: clamp(36px, 5vw, 64px); max-width: 980px; }

/* ---------- discovery: the search ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; counter-reset: none; }
.steps li { border-top: 1px solid var(--line); padding: 16px 0 26px; position: relative; }
.steps li::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; border-radius: 50%; background: var(--garnet); }
.steps b { display: block; font: 400 30px/1.1 var(--display); color: var(--garnet); margin-bottom: 6px; }
.steps span { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* ---------- ptolemy ---------- */
.ptol { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(36px, 5vw, 64px); align-items: start; }
.pull p { font: 400 clamp(24px, 2.6vw, 36px)/1.22 var(--display); }
.pull cite { display: block; margin-top: 10px; font-style: normal; font-size: 14px; color: var(--foam); }
.pull--s { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-sea); }
.pull--s p { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.3; }
.pull--ink p { font-size: clamp(21px, 2.1vw, 28px); }
.pull--ink { margin-top: clamp(40px, 5vw, 64px); max-width: 44em; padding-left: 22px; border-left: 3px solid var(--garnet); }
.pull--ink cite { color: var(--ink-3); }
.ptol__map { display: grid; gap: 20px; }
.fig--inset { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; align-items: end; }
.fig--inset img { box-shadow: 0 0 0 1px var(--gold); }
.fig--inset figcaption { margin: 0; }
.ptol2 { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(40px, 5vw, 64px); }
.ptol2 .prose { color: #e9f0f0; }
.gloss { display: grid; grid-template-columns: auto 1fr; gap: 0 22px; }
.gloss dt, .gloss dd { padding: 9px 0; border-top: 1px solid var(--line-sea); }
.gloss dt { font: 400 20px/1.3 var(--display); color: var(--gold); }
.gloss dd { color: var(--foam); font-size: 15.5px; }

.calc { margin-top: clamp(44px, 6vw, 80px); border: 1px solid var(--line-sea); border-radius: 2px; padding: clamp(20px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 4vw, 60px); background: rgba(255, 255, 255, .035); }
.calc h3 { font: 400 clamp(24px, 2.4vw, 31px)/1.12 var(--display); margin-bottom: 10px; }
.calc__text > p { color: var(--foam); font-size: 16px; }
.calc__label { display: flex; justify-content: space-between; align-items: baseline; margin-top: 24px; font-size: 15px; color: var(--foam); }
.calc__label output { font: 400 30px/1 var(--display); color: #fff; }
.calc input[type="range"] { width: 100%; margin: 14px 0 6px; accent-color: var(--gold); height: 28px; }
.calc__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.calc__result { font-size: 15px; color: var(--foam); display: flex; align-items: baseline; gap: 14px; }
.calc__result strong { font: 400 clamp(46px, 5.4vw, 72px)/1 var(--display); color: #fff; }
.lat { position: relative; height: 112px; margin: 18px 6px 8px; }
.lat__line { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--line-sea); }
.lat__tick { position: absolute; top: 41px; width: 1px; height: 11px; background: rgba(255, 255, 255, .5); }
.lat__tick span { position: absolute; top: 15px; left: 0; transform: translateX(-50%); font-size: 12px; color: var(--foam); }
.lat__mark { position: absolute; top: 46px; width: 0; }
.lat__mark::before { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--foam); }
.lat__mark span { position: absolute; bottom: 12px; left: 0; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; color: var(--foam); }
.lat__mark--b span { bottom: 28px; }
.lat__mark--b::after { content: ""; position: absolute; left: 0; bottom: 6px; height: 20px; width: 1px; background: var(--line-sea); }
.lat__mark--kar::before { background: var(--gold); }
.lat__mark--kar span { color: var(--gold); bottom: auto; top: 36px; }
.lat__now { position: absolute; top: 34px; width: 2px; height: 25px; background: #fff; transition: left .2s; }
.lat__now::before { content: ""; position: absolute; left: -6px; top: -7px; border: 7px solid transparent; border-top-color: #fff; }
.calc__note { font-size: 14.5px; line-height: 1.55; color: var(--foam); margin-top: 18px; }
.calc__formula { font-size: 13px; color: rgba(207, 224, 226, .75); margin-top: 10px; }

.chip { border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 6px 14px; font-size: 14.5px; line-height: 1.35; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--sea); border-color: var(--sea); color: #fff; }
.chip--onsea { background: none; border-color: var(--line-sea); color: #fff; }
.chip--onsea:hover { border-color: #fff; }
.chip--onsea[aria-pressed="true"] { background: #fff; color: var(--sea); border-color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- city ---------- */
.passport { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
.passport dt, .passport dd { padding: 12px 0; border-top: 1px solid var(--line); }
.passport dt { color: var(--ink-2); font-size: 15.5px; padding-right: 16px; }
.passport dd { font: 400 21px/1.25 var(--display); }
.passport--rev { grid-template-columns: auto minmax(0, 1fr); }
.passport--rev dt { font: 400 26px/1.15 var(--display); color: var(--garnet); white-space: nowrap; }
.passport--rev dd { font: 400 16px/1.5 var(--text); color: var(--ink-2); padding-top: 16px; }

.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.trio--text { margin-top: 0; }
.trio h4 { font: 400 25px/1.15 var(--display); margin: 16px 0 8px; }
.trio--text h4 { margin-top: 0; padding-top: 14px; border-top: 3px solid var(--sea); }
.trio p { font-size: 16px; color: var(--ink-2); }
.trio .fig img { aspect-ratio: 16 / 10; object-fit: cover; }

.phases { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(24px, 4vw, 56px); margin-top: 26px; align-items: start; }
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 18px 10px 0; margin-right: 18px; font: 400 22px/1.2 var(--display); color: var(--ink-3); display: flex; gap: 10px; align-items: baseline; }
.tabs button i { font-style: normal; font-size: 15px; font-family: var(--text); color: var(--ink-3); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--garnet); }
.phase { padding-top: 22px; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 26px; align-items: start; }
.phase p { font-size: 17px; }
.phase .fig img { aspect-ratio: 3 / 2; object-fit: cover; }
.phases__plan img { background: #fff; padding: 12px; }

/* ---------- timeline ---------- */
.tl { margin-top: clamp(30px, 4vw, 48px); overflow-x: auto; padding-bottom: 6px; }
.tl__in { position: relative; min-width: 940px; height: 178px; }
.tl__phase { position: absolute; top: 96px; height: 30px; display: flex; align-items: center; padding: 0 10px; font-size: 13px; line-height: 1.1; color: #fff; background: var(--sea); border-radius: 2px; overflow: hidden; white-space: nowrap; }
.tl__phase--hyp { background: repeating-linear-gradient(135deg, var(--sea-2) 0 8px, #2a6377 8px 16px); }
.tl__phase--gap { background: none; color: var(--ink-3); border: 1px dashed var(--ink-3); justify-content: center; padding: 0; }
.tl__axis { position: absolute; left: 0; right: 0; top: 138px; height: 1px; background: var(--ink-3); }
.tl__tick { position: absolute; top: 138px; width: 1px; height: 8px; background: var(--ink-3); }
.tl__cent { position: absolute; top: 152px; font-size: 13.5px; color: var(--ink-2); transform: translateX(-50%); white-space: nowrap; }
.tl__ev { position: absolute; width: 30px; height: 30px; margin-left: -15px; padding: 0; border: 0; background: none; }
.tl__ev::before { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; background: var(--ink-3); height: var(--stem); opacity: .6; }
.tl__ev i { position: absolute; inset: 7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: transform .15s, background-color .15s; }
.tl__ev:hover i { background: var(--gold); }
.tl__ev[aria-pressed="true"] i { background: var(--garnet); border-color: var(--garnet); transform: scale(1.35); }
.tl__card { margin-top: 22px; background: var(--paper); border-radius: 2px; padding: clamp(20px, 3vw, 36px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px 30px; align-items: end; border-left: 3px solid var(--garnet); }
.tl__date { font-size: 15px; color: var(--garnet); font-weight: 500; }
.tl__card h3 { font: 400 clamp(26px, 2.8vw, 36px)/1.1 var(--display); margin: 4px 0 10px; }
.tl__card p { max-width: 46em; }
.tl__nav { display: flex; gap: 8px; }

/* ---------- map ---------- */
.map { display: grid; gap: 14px; margin-top: clamp(30px, 4vw, 48px); }
.map__canvas { background: #b7d3d9; border-radius: 2px; overflow: hidden; position: relative; }
.map__canvas svg { width: 100%; height: auto; }
.m-land { fill: #f6f7f2; stroke: #8fa9ac; stroke-width: .7; }
.m-lake { fill: #b7d3d9; stroke: #9fb4b6; stroke-width: .7; }
.m-grat { fill: none; stroke: var(--sea); stroke-opacity: .13; stroke-width: .6; }
.m-gratl { font: 10.5px var(--text); fill: var(--sea); fill-opacity: .5; }
.m-river { fill: none; stroke: #7fb0ba; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.m-river--dash { stroke-dasharray: 4 3; }
.m-water { font: italic 400 13px var(--text); fill: #2f6f80; text-anchor: middle; }
.m-water--big { font: italic 400 17px var(--display); letter-spacing: .04em; fill: #205c6d; }
.m-region { font: 400 14px var(--display); fill: var(--ink-3); text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.m-far { font: italic 400 13px var(--text); fill: var(--ink-3); text-anchor: middle; }
.m-route path { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: opacity .3s, stroke-width .3s; }
.m-route .seg-l { stroke-dasharray: 9 6; stroke-linecap: butt; }
.m-route .seg-s { stroke-dasharray: 1 7; }
.m-route.is-dim path { opacity: .13; }
.m-route.is-on path { stroke-width: 4.6; }
.m-route .halo { stroke: #fff; stroke-width: 7; opacity: .0; stroke-dasharray: none; }
.m-route.is-on .halo { opacity: .55; stroke-width: 8.5; }
.m-dot { fill: #fff; stroke-width: 2.5; }
.m-place circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; transition: r .2s; }
.m-place text { font: 500 13px var(--text); fill: var(--ink); paint-order: stroke; stroke: #f3f4ef; stroke-width: 3.5px; stroke-linejoin: round; }
.m-place.is-dim { opacity: .35; }
.m-place--main circle { fill: var(--garnet); stroke: #fff; stroke-width: 2.5; }
.m-place--main text { font: 400 21px var(--display); letter-spacing: .01em; }
.m-place--main .ring { fill: none; stroke: var(--garnet); stroke-width: 1.2; opacity: .5; }
.map__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rbtn { display: grid; grid-template-columns: 30px 1fr; gap: 2px 10px; align-items: center; text-align: left; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 9px 12px; }
.rbtn:hover { border-color: var(--ink-2); }
.rbtn[aria-pressed="true"] { background: var(--paper); border-color: var(--ink); box-shadow: inset 3px 0 0 var(--c, var(--ink)); }
.rbtn svg { grid-row: span 2; }
.rbtn b { font-weight: 500; font-size: 15.5px; line-height: 1.25; }
.rbtn small { font-size: 13px; color: var(--ink-3); line-height: 1.3; }
.rbtn--all { grid-template-columns: 1fr; }
.map__foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 40px; align-items: start; margin-top: 6px; }
.map__info { font-size: 16.5px; line-height: 1.55; color: var(--ink-2); min-height: 7.5em; max-width: 52em; }
.map__info h4 { font: 400 27px/1.15 var(--display); color: var(--ink); margin-bottom: 6px; }
.map__kinds { display: grid; gap: 6px; margin-top: 6px; font-size: 13.5px; color: var(--ink-3); }
.map__kinds span { display: inline-flex; align-items: center; gap: 7px; }
.flows { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.flows__list h4 { font: 400 23px/1.15 var(--display); padding-top: 14px; border-top: 1px solid var(--line); }
.flows__list p { font-size: 16px; color: var(--ink-2); margin: 6px 0 20px; }

/* ---------- finds ---------- */
.filters { margin-top: clamp(26px, 4vw, 44px); display: grid; gap: 12px; }
.filters__row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; align-items: start; }
.filters__label { font-size: 14px; color: var(--ink-3); padding-top: 7px; }
.filters__count { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; margin-top: 22px; }
.tile { display: flex; flex-direction: column; text-align: left; padding: 0; border: 0; background: var(--paper); border-radius: 2px; overflow: hidden; }
.tile__img { aspect-ratio: 1; background: var(--plate); display: grid; place-items: center; padding: 12px; overflow: hidden; }
.tile__img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; transition: transform .25s; }
.tile:hover .tile__img img { transform: scale(1.05); }
.tile__t { padding: 10px 12px 13px; font-size: 14.5px; line-height: 1.35; font-weight: 500; }
.tile__c { display: block; font-weight: 400; font-size: 12.5px; color: var(--ink-3); margin-top: 3px; }
.empty { grid-column: 1 / -1; background: var(--paper); padding: 32px; border-radius: 2px; text-align: center; }
.empty p { margin-bottom: 14px; }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px) clamp(28px, 5vw, 72px); margin-top: clamp(30px, 4vw, 52px); }
.chart { border-top: 3px solid var(--sea); padding-top: 16px; }
.chart h3 { font: 400 27px/1.12 var(--display); }
.chart__s { font-size: 14px; color: var(--ink-3); margin: 4px 0 16px; }
.chart__rows { display: grid; gap: 7px; }
.crow { display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 12px; align-items: center; font-size: 14.5px; }
.crow__l { color: var(--ink-2); line-height: 1.25; }
.crow__b { position: relative; height: 24px; display: flex; align-items: center; }
.crow__b i { display: block; height: 100%; min-width: 3px; background: var(--sea-2); border-radius: 0 4px 4px 0; transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.crow:hover .crow__b i { background: var(--garnet); }
.crow__b b { margin-left: 8px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.chart__note { margin-top: 14px; font-size: 14px; color: var(--ink-3); }
.chart__toggle { margin-top: 10px; background: none; border: 0; padding: 0; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.chart table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.chart td, .chart th { text-align: left; padding: 6px 0; border-top: 1px solid var(--line); font-weight: 400; }
.chart td:last-child { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- tourism ---------- */
.band { position: relative; margin-bottom: clamp(48px, 7vw, 96px); }
.band img { width: 100%; height: clamp(180px, 30vw, 380px); object-fit: cover; object-position: 50% 42%; }
.band figcaption { position: absolute; right: var(--gut); bottom: 10px; font-size: 12.5px; color: #fff; background: rgba(15, 52, 64, .78); padding: 3px 9px; border-radius: 2px; }
.road { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); margin-top: 26px; align-items: start; }
.road__map { background: #b7d3d9; border-radius: 2px; overflow: hidden; }
.road__map svg { width: 100%; height: auto; }
.r-land { fill: #f6f7f2; stroke: #8fa9ac; stroke-width: .8; }
.r-road { fill: none; stroke: #c3bda6; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.r-leg { fill: none; stroke: var(--garnet); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke-width .2s; }
.r-leg--track { stroke-dasharray: 2 9; stroke-width: 5; }
.r-leg.is-on { stroke-width: 7.5; }
.r-halo { fill: none; stroke: #fff; stroke-width: 9; stroke-linecap: round; opacity: .7; }
.r-alt { fill: none; stroke: var(--patina); stroke-width: 2.5; stroke-dasharray: 5 6; }
.r-place circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.r-place text { font: 500 14.5px var(--text); fill: var(--ink); paint-order: stroke; stroke: #f6f7f2; stroke-width: 4px; stroke-linejoin: round; }
.r-place--minor text { font-weight: 400; font-size: 13px; fill: var(--ink-2); }
.r-place--minor circle { stroke: var(--ink-3); stroke-width: 1.5; }
.r-place--end circle { fill: var(--garnet); stroke: #fff; stroke-width: 2.5; }
.r-place--end text, .r-place--start text { font: 400 21px var(--display); }
.r-water { font: italic 400 15px var(--display); fill: #205c6d; text-anchor: middle; letter-spacing: .04em; }
.r-scale { font: 12px var(--text); fill: var(--ink-2); }
.r-car { fill: #fff; stroke: var(--garnet); stroke-width: 3; }
.road__total { font: 400 clamp(30px, 3.4vw, 44px)/1.08 var(--display); margin: 18px 0 6px; }
.road__total small { display: block; font: 400 15px/1.4 var(--text); color: var(--ink-3); margin-top: 6px; }
.road__legs { margin-top: 16px; }
.road__legs li { display: grid; grid-template-columns: 44px 1fr auto; gap: 4px 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--line); cursor: default; }
.road__legs li svg { align-self: center; }
.road__legs b { font-weight: 500; }
.road__legs span { grid-column: 2; font-size: 14.5px; color: var(--ink-2); }
.road__legs em { grid-row: 1; grid-column: 3; font: 400 21px/1 var(--display); font-style: normal; white-space: nowrap; }
.road__alt { padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--ink-2); }
.sites__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin-top: clamp(48px, 6vw, 80px); margin-bottom: 18px; }
.sites__head .sub { margin: 0; }
.sites { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 22px 18px; }
.site .fig img { aspect-ratio: 4 / 3; object-fit: cover; }
.site h4 { font: 400 21px/1.15 var(--display); margin: 10px 0 3px; }
.site p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; }
.site small { font-size: 12.5px; color: var(--patina); font-weight: 500; }
.site--arch small { color: var(--garnet); }
.plan { columns: 2; column-gap: clamp(28px, 5vw, 72px); counter-reset: plan; }
.plan li { break-inside: avoid; counter-increment: plan; display: grid; grid-template-columns: 44px 1fr; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.plan li::before { content: counter(plan); font: 400 26px/1 var(--display); color: var(--garnet); }

/* ---------- quiz ---------- */
.quiz { margin-top: 28px; background: var(--paper); border-radius: 2px; padding: clamp(20px, 4vw, 44px); }
.quiz__p { font-size: 14px; color: var(--ink-3); }
.quiz__bar { height: 3px; background: var(--line); margin: 8px 0 22px; }
.quiz__bar i { display: block; height: 100%; background: var(--garnet); transition: width .3s; }
.quiz h3 { font: 400 clamp(25px, 2.8vw, 34px)/1.15 var(--display); margin-bottom: 18px; }
.quiz__opts { display: grid; gap: 8px; }
.opt { text-align: left; background: none; border: 1px solid var(--line); border-radius: 2px; padding: 12px 16px; font-size: 16.5px; display: flex; gap: 12px; align-items: baseline; }
.opt:hover:not([disabled]) { border-color: var(--ink); }
.opt[disabled] { cursor: default; }
.opt.is-right { border-color: var(--patina); background: #e3f0ea; }
.opt.is-wrong { border-color: var(--garnet); background: #f5e3e5; }
.opt em { font-style: normal; font-size: 13px; font-weight: 500; margin-left: auto; white-space: nowrap; }
.quiz__fb { margin-top: 16px; font-size: 16px; }
.quiz__fb b { font-weight: 600; }
.quiz__next { margin-top: 18px; }
.quiz__score { font: 400 clamp(40px, 6vw, 68px)/1 var(--display); margin-bottom: 12px; }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); margin-top: 30px; }
.about .prose { color: #e9f0f0; }
.about__team p { color: var(--foam); font-size: 15.5px; margin-bottom: 26px; }
.team { display: grid; grid-template-columns: auto 1fr; gap: 0 20px; margin-bottom: 30px; }
.team dt, .team dd { padding: 9px 0; border-top: 1px solid var(--line-sea); }
.team dt { color: var(--foam); font-size: 14.5px; }
.team dd { font: 400 20px/1.3 var(--display); }
.sources { counter-reset: src; max-width: 64em; }
.sources li { counter-increment: src; display: grid; grid-template-columns: 34px 1fr; padding: 10px 0; border-top: 1px solid var(--line-sea); font-size: 15px; color: #e9f0f0; }
.sources li::before { content: counter(src); color: var(--gold); font: 400 20px/1.2 var(--display); }
.credits { color: var(--foam); font-size: 15px; max-width: 60em; }
.foot { background: #0b2832; color: var(--foam); font-size: 14px; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; padding-block: 22px; }
.foot .greek { font-size: 22px; color: var(--gold); }
.foot__in span:last-child { margin-left: auto; }

/* ---------- dialog + tooltip ---------- */
.dlg { border: 0; padding: 0; width: min(1040px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border-radius: 3px; background: var(--paper); color: var(--ink); overflow: auto; }
.dlg::backdrop { background: rgba(11, 40, 50, .82); }
.dlg__in { position: relative; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.dlg__in.is-photo { grid-template-columns: 1fr; }
.dlg__img { background: var(--plate); display: grid; place-items: center; padding: clamp(14px, 3vw, 34px); min-height: 280px; }
.dlg__img img { max-height: min(74dvh, 820px); width: auto; max-width: 100%; }
.dlg__in.is-photo .dlg__img { padding: 0; background: #0b2832; }
.dlg__in.is-photo .dlg__img img { max-height: 78dvh; }
.dlg__text { padding: clamp(20px, 3vw, 40px); padding-right: clamp(44px, 5vw, 60px); display: flex; flex-direction: column; gap: 12px; }
.dlg__in.is-photo .dlg__text { padding-block: 16px 20px; }
.dlg__text h3 { font: 400 clamp(26px, 2.8vw, 36px)/1.1 var(--display); }
.dlg__in.is-photo h3 { display: none; }
.dlg__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.dlg__tags span { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; color: var(--ink-2); }
.dlg__ref { font-size: 13.5px; color: var(--ink-3); }
.dlg__nav { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; }
.dlg__close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(249, 250, 247, .92); font-size: 26px; line-height: 1; color: var(--ink); }
.dlg__close:hover { background: var(--foam); }
.tip { position: fixed; z-index: 80; background: var(--ink); color: #fff; font-size: 13.5px; line-height: 1.35; padding: 6px 10px; border-radius: 3px; pointer-events: none; max-width: 260px; }

/* ---------- responsive ---------- */
@media (max-width: 1340px) {
  .bar__nav { position: fixed; inset: var(--bar) 0 auto 0; flex-direction: column; gap: 0; background: var(--paper); color: var(--ink); padding: 8px var(--gut) 18px; box-shadow: 0 12px 24px rgba(0, 0, 0, .18); display: none; max-height: calc(100dvh - var(--bar)); overflow: auto; font-size: 17px; }
  .bar__nav.is-open { display: flex; }
  .bar__nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .bar__nav a.is-tour { margin-top: 12px; padding: 10px 12px; text-align: center; background: var(--gold); color: #1b1608; border-color: var(--gold); }
  .bar__menu { display: block; }
}
@media (max-width: 980px) {
  .split, .ptol, .ptol2, .calc, .phases, .flows, .about, .map__foot, .road { grid-template-columns: minmax(0, 1fr); }
  .map__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .map__kinds { display: flex; flex-wrap: wrap; gap: 6px 16px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio { grid-template-columns: minmax(0, 1fr); }
  .trio--text { gap: 8px; }
  .charts { grid-template-columns: minmax(0, 1fr); }
  .phases__plan { max-width: 420px; }
  .map__info { min-height: 0; }
  .dlg__in { grid-template-columns: minmax(0, 1fr); }
  .dlg__img img { max-height: 52dvh; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; }
  .steps, .phase, .pair { grid-template-columns: minmax(0, 1fr); }
  .plan { columns: 1; }
  .passport { grid-template-columns: minmax(0, 1fr); }
  .map__list { grid-template-columns: minmax(0, 1fr); }
  .passport:not(.passport--rev) dt { padding-bottom: 0; }
  .passport:not(.passport--rev) dd { border-top: 0; padding-top: 2px; }
  .passport--rev dt { font-size: 22px; }
  .filters__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .filters__label { padding-top: 0; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fig--small { max-width: 100%; }
  .tl__card { grid-template-columns: minmax(0, 1fr); }
  .tabs button { font-size: 19px; margin-right: 10px; padding-right: 0; }
  .hero__img { object-position: 58% 50%; }
  .tourcta::after { background: linear-gradient(0deg, rgba(15, 52, 64, .95) 0%, rgba(15, 52, 64, .75) 55%, rgba(15, 52, 64, .15) 100%); }
  .tourcta__body { top: auto; bottom: 18px; transform: none; }
  .tourcta img { height: 420px; }
  .hero::before { background: linear-gradient(0deg, rgba(15, 52, 64, .96) 0%, rgba(15, 52, 64, .82) 48%, rgba(15, 52, 64, .35) 78%, rgba(15, 52, 64, .5) 100%); }
  .crow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .foot__in span:last-child { margin-left: 0; }
  .lang button { padding: 5px 8px; }
  .map__canvas { overflow-x: auto; }
  .road__map { overflow-x: auto; }
  .road__map svg { width: 640px; max-width: none; }
  .map__canvas svg { width: 760px; max-width: none; }
  .bar { gap: 10px; }
  .bar__mark { font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .m-dot { display: none; }
}
@media print {
  .bar, .hero__cta, .dlg, .tip, .calc input, .chart__toggle { display: none !important; }
  .sec--sea { background: #fff; color: #000; }
}
