/* pitermetro.ru — «Метро Петербурга». Оформление в духе навигации метро:
   цветные линии, табло, указатели направлений. Шрифты: Unbounded (заголовки), Onest (текст). */

:root {
  --bg: #eef2f8;
  --paper: #fff;
  --ink: #13213b;
  --ink-2: #26385a;
  --mute: #5b6680;
  --hair: #dbe2ed;
  --brand: #204982;   /* фирменный синий метрополитена (буква «М») */
  --brand-d: #173a6b;
  --brand-dd: #0f2a52;
  --sky: #0078c9;
  --amber: #8cc4ff;   /* светлый акцент на синем фоне */
  --r: 18px;
  --r-sm: 10px;
  --head: "Unbounded", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  --box: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--body); font-feature-settings: "tnum" 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; margin: 0; }
p { margin: 0 0 1em; }
kbd { font: 600 11px/1 var(--body); padding: 3px 6px; border: 1px solid currentColor; border-radius: 6px; opacity: .6; }
svg path, svg circle { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.box { width: min(var(--box), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.muted { color: var(--mute); font-size: 15px; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }

/* ---------- шапка ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px); }
.hd-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.rail { display: flex; height: 4px; }
.rail i { flex: 1; background: var(--lc); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand .mark { width: 40px; height: 40px; }
.brand .mark rect { fill: var(--brand); }
.brand .mark path { stroke: #fff; stroke-width: 4.2; }
.brand b { display: block; font: 700 15px/1.1 var(--head); }
.brand small { display: block; font-size: 12.5px; color: var(--mute); margin-top: 2px; }
.brand-inv .mark rect { fill: #fff; }
.brand-inv .mark path { stroke: var(--brand); }
.brand-inv small { color: #a9bddb; }

.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 500; font-size: 15.5px; padding: 8px 13px; border-radius: 99px; color: var(--ink-2); }
.menu a:hover { background: var(--bg); }
.menu a[aria-current] { background: var(--brand); color: #fff; }

.find-btn { display: flex; align-items: center; gap: 9px; border: 1.5px solid var(--hair); background: var(--paper); border-radius: 99px;
  padding: 8px 10px 8px 14px; font: 500 14.5px var(--body); color: var(--mute); cursor: pointer; }
.find-btn:hover { border-color: var(--brand); color: var(--brand); }
.find-btn svg { width: 18px; height: 18px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 12px; cursor: pointer; padding: 0 12px; }
.burger i { display: block; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.burger[aria-expanded="true"] i:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- поиск ---------- */
.finder { border: 0; padding: 0; width: min(640px, 100% - 24px); margin: 10vh auto auto; border-radius: 22px; background: var(--paper);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35); color: var(--ink); }
.finder::backdrop { background: rgba(15, 42, 82, .55); backdrop-filter: blur(3px); }
.finder-field { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hair); }
.finder-field svg { width: 22px; height: 22px; color: var(--mute); flex-shrink: 0; }
.finder-field input { flex: 1; border: 0; outline: 0; font: 500 19px var(--body); background: none; color: inherit; min-width: 0; }
.finder-res { list-style: none; margin: 0; padding: 8px; max-height: 52vh; overflow: auto; }
.finder-res:empty { display: none; }
.finder-res a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; text-decoration: none; }
.finder-res a b { font-weight: 600; }
.finder-res a small { color: var(--mute); margin-left: auto; font-size: 13.5px; text-align: right; }
.finder-res a .lns { display: flex; gap: 3px; min-width: 50px; }
.finder-res li.on a, .finder-res a:hover { background: var(--bg); }
.finder-res .empty { padding: 16px 14px; color: var(--mute); }
.finder-hint { margin: 0; padding: 10px 22px 14px; font-size: 12.5px; color: var(--mute); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.find-big { display: flex; align-items: center; gap: 14px; width: min(560px, 100%); padding: 8px 8px 8px 22px; border-radius: 99px;
  border: 0; background: var(--paper); color: var(--mute); font: 500 17px var(--body); cursor: pointer; text-align: left;
  box-shadow: 0 0 0 1.5px var(--hair); }
.find-big svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--brand); }
.find-big span { flex: 1; }
.find-big b { background: var(--brand); color: #fff; padding: 12px 22px; border-radius: 99px; font-weight: 600; }
.find-big:hover { box-shadow: 0 0 0 2px var(--brand); }

/* ---------- кружки линий ---------- */
.ln, .xn { display: inline-grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--lc); color: #fff;
  font: 700 11.5px/1 var(--head); width: 22px; height: 22px; }
.ln-lg { width: 36px; height: 36px; font-size: 16px; }
.xn { width: 17px; height: 17px; font-size: 9px; }

/* ---------- хлебные крошки ---------- */
.path { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; color: var(--mute); padding: 18px 0 0; }
.path a { text-decoration: none; }
.path a:hover { color: var(--brand); text-decoration: underline; }
.path > * + *::before { content: "›"; margin: 0 9px; color: #a7b2c6; }

/* ---------- главная: герой с табло ---------- */
.hero { background: radial-gradient(120% 140% at 85% 0%, #2a5a9c 0%, var(--brand) 45%, var(--brand-d) 100%); color: #fff; margin-top: -1px; overflow: hidden; position: relative; }
.hero::after { content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px; border-radius: 50%;
  border: 46px solid rgba(255, 255, 255, .06); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; padding: 72px 0 80px; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(38px, 5.6vw, 70px); margin: 14px 0 22px; }
.hero .lead { color: #d3def0; font-size: 19px; max-width: 34em; margin-bottom: 30px; }
.hero .find-big { box-shadow: none; }
.kicker { font: 600 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 0 0 12px; }
.hero .kicker { color: var(--amber); }

.tablo { background: var(--brand-dd); border-radius: 22px; padding: 26px 28px 22px; border: 1px solid #2b4c7e;
  box-shadow: inset 0 0 0 6px #0b2246, 0 24px 60px rgba(5, 20, 45, .45); }
.tablo-h { display: flex; justify-content: space-between; align-items: center; font: 500 13px var(--head); letter-spacing: .12em; text-transform: uppercase; color: #8fa6c8; margin-bottom: 14px; }
.tablo-h i { width: 9px; height: 9px; border-radius: 50%; background: #2fd36b; box-shadow: 0 0 12px #2fd36b; animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.tablo dl { margin: 0; }
.tablo dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px dashed #2b4c7e; }
.tablo dt { color: #cdd9ec; font-size: 15.5px; }
.tablo dd { margin: 0; font: 700 24px/1 var(--head); color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap;
  text-shadow: 0 0 18px rgba(140, 196, 255, .45); }
.tablo-links { display: flex; gap: 10px; margin: 16px 0 0; }
.tablo-links a { flex: 1; text-align: center; text-decoration: none; padding: 11px; border-radius: 12px; background: #1d4277; font-weight: 600; font-size: 15px; }
.tablo-links a:hover { background: #26518e; }

.nums { list-style: none; padding: 0; margin: -36px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper);
  border-radius: var(--r); position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(15, 42, 82, .08); }
.nums li { padding: 22px 26px; display: flex; align-items: baseline; gap: 10px; }
.nums li + li { border-left: 1px solid var(--hair); }
.nums b { font: 700 34px/1 var(--head); }
.nums span { color: var(--mute); font-size: 15px; }

.sec-h { font-size: clamp(22px, 2.4vw, 30px); margin: 56px 0 22px; }

/* ---------- линии и схема ---------- */
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; align-items: start; }
.line-card { background: var(--paper); border-radius: var(--r); overflow: hidden; border-top: 7px solid var(--lc); }
.line-card-hd { display: flex; gap: 12px; align-items: center; padding: 18px 20px 14px; text-decoration: none; border-bottom: 1px solid var(--hair); }
.line-card-hd b { display: block; font: 700 15.5px/1.2 var(--head); }
.line-card-hd small { display: block; color: var(--mute); font-size: 13px; margin-top: 4px; line-height: 1.35; }
.line-card-hd:hover b { text-decoration: underline; }
.line-card .track { padding: 12px 20px 16px; }

.track { list-style: none; margin: 0; padding: 0; }
.track li { position: relative; display: flex; align-items: center; gap: 6px; padding: 4px 0 4px 30px; min-height: 32px; }
.track li::before { content: ""; position: absolute; left: 9px; top: 0; bottom: 0; width: 5px; background: var(--lc); }
.track li:first-child::before { top: 50%; }
.track li:last-child::before { bottom: 50%; }
.track li::after { content: ""; position: absolute; left: 5px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px; border-radius: 50%;
  background: #fff; border: 3px solid var(--lc); }
.track li.is-x::after { width: 17px; height: 17px; margin-top: -8.5px; left: 3px; border: 4px solid var(--ink); }
.track a { text-decoration: none; font-size: 15.5px; line-height: 1.25; }
.track a:hover { text-decoration: underline; text-underline-offset: 3px; }
.track li.is-here a { font-weight: 700; }
.track li.is-here::after { background: var(--lc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--lc) 25%, transparent); }
.track-sm li { min-height: 28px; }
.track-sm a { font-size: 14.5px; }

.hubs { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.hubs li { background: var(--paper); border-radius: var(--r-sm); padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; }
.hub-n { grid-row: span 2; display: flex; gap: 3px; align-items: center; }
.hubs b { font-weight: 600; }
.hubs small { color: var(--mute); font-size: 14px; }

/* ---------- главная: новые станции, темы ---------- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.newest, .topics { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.newest a { display: flex; align-items: center; gap: 14px; background: var(--paper); border-radius: var(--r-sm); padding: 14px 18px;
  text-decoration: none; border-left: 5px solid var(--lc); }
.newest b { font-weight: 600; font-size: 17px; }
.newest time { margin-left: auto; color: var(--mute); font-size: 14.5px; font-variant-numeric: tabular-nums; }
.newest a:hover b, .topics a:hover b { text-decoration: underline; }
.topics a { display: grid; grid-template-columns: 1fr auto; align-items: center; background: var(--paper); border-radius: var(--r-sm); padding: 13px 18px; text-decoration: none; }
.topics b { font-weight: 600; }
.topics span { grid-column: 1; color: var(--mute); font-size: 14.5px; }
.topics svg { grid-row: 1 / span 2; grid-column: 2; width: 20px; height: 20px; color: var(--mute); }
.more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 600; text-decoration: none; }
.more svg { width: 18px; height: 18px; }
.more:hover { text-decoration: underline; }

/* ---------- шапка станции/линии ---------- */
.sign { background: linear-gradient(rgba(0, 0, 0, .16), rgba(0, 0, 0, .16)), var(--lc); color: #fff; margin-top: 14px; position: relative; overflow: hidden; }
.sign::after { content: ""; position: absolute; right: 6%; top: 50%; width: 360px; height: 360px; margin-top: -180px; border-radius: 50%;
  border: 38px solid rgba(255, 255, 255, .08); pointer-events: none; }
.sign .box { padding: 40px 0 70px; position: relative; z-index: 1; }
.sign-lines { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-weight: 500; }
.sign-lines .ln { box-shadow: 0 0 0 3px rgba(255, 255, 255, .9); }
.sign-lines span { margin-left: 8px; opacity: .9; }
.sign h1 { font-size: clamp(34px, 5.4vw, 64px); }
.sign h1 small { display: block; font: 500 15px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; opacity: .8; margin-bottom: 12px; }
.sign-year { margin: 16px 0 0; font: 500 18px var(--body); opacity: .9; }

.signs { display: grid; gap: 10px; margin-top: -38px; position: relative; z-index: 2; }
.dirs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; background: var(--brand); color: #fff;
  border-radius: 16px; padding: 10px; box-shadow: 0 14px 36px rgba(15, 42, 82, .25); }
.dir { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: 10px; text-decoration: none; min-width: 0; }
.dir svg { width: 26px; height: 26px; flex-shrink: 0; color: var(--amber); }
.dir small { display: block; font-size: 12.5px; color: #b5c7e3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir b { display: block; font: 700 17px/1.2 var(--head); }
.dir-r { justify-content: flex-end; text-align: right; }
.dir-end { color: #a9bddb; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; justify-self: center; }
a.dir:hover { background: var(--brand-d); }

/* ---------- колонки страниц ---------- */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding: 34px 0 20px; }
.col-side { position: sticky; top: 92px; display: grid; gap: 16px; }
.aside-card { background: var(--paper); border-radius: var(--r); padding: 18px 20px; }
.aside-h { display: flex; align-items: center; gap: 9px; font: 700 14px/1.2 var(--head); margin: 0 0 12px; }
.col-side .track { max-height: calc(100vh - 190px); overflow: auto; }
.rel { list-style: none; padding: 0; margin: 0; }
.rel li + li { border-top: 1px solid var(--hair); }
.rel a { display: block; padding: 9px 0; text-decoration: none; font-size: 15px; line-height: 1.35; }
.rel a:hover { text-decoration: underline; }

.xfers { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.xfer { display: flex; align-items: center; gap: 12px; background: var(--paper); border-radius: var(--r-sm); padding: 11px 16px; text-decoration: none;
  border-left: 5px solid var(--lc, var(--ink)); margin: 0; }
.xfer svg { width: 22px; height: 22px; }
.xfer small { display: block; font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.xfer b { font-weight: 600; }
a.xfer:hover b { text-decoration: underline; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 0 0 30px; background: var(--paper);
  border-radius: var(--r); overflow: hidden; border: 1px solid var(--hair); }
.facts div { padding: 14px 18px; box-shadow: 0 0 0 .5px var(--hair); }
.facts dt { font-size: 12px; color: var(--mute); text-transform: uppercase; letter-spacing: .09em; font-weight: 600; margin-bottom: 4px; }
.facts dd { margin: 0; font-weight: 500; line-height: 1.4; }

/* ---------- текст ---------- */
.doc { padding-bottom: 20px; }
.doc.box { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-top: 22px; }
.doc .col-main:only-child { grid-column: 1 / -1; max-width: 820px; }
.doc h1, .page-h { font-size: clamp(30px, 4vw, 46px); margin: 0 0 26px; }
.page-h { margin-top: 24px; }
.text { max-width: 760px; }
.text h2 { font-size: 22px; margin: 38px 0 14px; }
.text h3 { font-size: 18px; margin: 28px 0 10px; }
.text a { color: var(--brand); text-underline-offset: 3px; }
.text ul, .text ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.text li { margin-bottom: 6px; }
.text li::marker { color: var(--mute); }
.text blockquote { margin: 0 0 1.2em; padding: 14px 20px; background: var(--paper); border-left: 4px solid var(--brand); border-radius: 0 10px 10px 0; }
.text table, .tbl table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--r-sm); overflow: hidden; font-size: 15.5px; margin: 0 0 1.4em; }
.text th, .text td, .tbl th, .tbl td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--hair); vertical-align: top; }
.text th, .tbl th { font-size: 12.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); background: #f5f8fc; }
.text tr:last-child td, .tbl tr:last-child td { border-bottom: 0; }
.tbl { overflow-x: auto; }
.tbl td:last-child { white-space: nowrap; }
.tbl td .ln + .ln { margin-left: 3px; }
.tbl a { font-weight: 600; text-decoration: none; }
.tbl a:hover { text-decoration: underline; }
.text .price, .text .big { font: 700 1.05em var(--head); }
.tip { margin-top: 34px; padding: 18px 22px; border-radius: var(--r); background: #e8f1fc; border: 1px solid #c4d8f2; font-size: 15.5px; }
.tip b { display: block; font-family: var(--head); font-size: 14px; margin-bottom: 4px; }

/* ---------- списки станций ---------- */
.intro { padding: 30px 0 40px; }
.intro h1 { font-size: clamp(32px, 4.6vw, 54px); margin: 0 0 16px; max-width: 16em; }
.intro .lead { font-size: 19px; color: var(--ink-2); max-width: 40em; margin-bottom: 26px; }
.abc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 26px; }
.abc a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--paper); font: 700 15px var(--head); text-decoration: none; }
.abc a:hover { background: var(--brand); color: #fff; }
.azs { columns: 4 230px; column-gap: 28px; }
.az { break-inside: avoid; margin-bottom: 22px; }
.az h3 { font-size: 24px; color: #9fb2cf; margin-bottom: 6px; }
.az ul { list-style: none; padding: 0; margin: 0; }
.az li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--hair); }
.az li span { display: flex; gap: 3px; }
.az a { text-decoration: none; font-weight: 500; }
.az a:hover { text-decoration: underline; }
.cols-list { columns: 3 240px; padding: 0; list-style: none; margin: 0 0 10px; }
.cols-list li { padding: 5px 0; break-inside: avoid; }
.cols-list a { text-underline-offset: 3px; }

.btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.btn { display: inline-block; padding: 13px 24px; border-radius: 99px; background: var(--brand); color: #fff; text-decoration: none; font-weight: 600; }
.btn-o { background: transparent; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }

/* ---------- подвал ---------- */
.ft { background: var(--brand-dd); color: #d9e3f2; margin-top: 80px; font-size: 15px; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1.3fr 1fr 1fr; gap: 40px; padding: 50px 0 30px; }
.ft-about p { margin: 16px 0 0; color: #a9bddb; }
.ft-about .ft-note { font-size: 13.5px; color: #8fa6c8; }
.ft-h { font: 700 13px var(--head); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.ft ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ft a { text-decoration: none; }
.ft a:hover { color: #fff; text-decoration: underline; }
.ft-lines a { display: flex; align-items: center; gap: 10px; }
.ft-copy { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 0 30px; border-top: 1px solid #23457a; color: #8fa6c8; font-size: 13.5px; }

/* ---------- адаптив ---------- */
@media (max-width: 1080px) {
  .find-btn span, .find-btn kbd { display: none; }
  .find-btn { padding: 10px; }
  .menu a { padding: 8px 10px; font-size: 15px; }
}
@media (max-width: 900px) {
  .hd-in { gap: 10px; height: 62px; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 66px; background: var(--paper); flex-direction: column; padding: 10px 20px 18px;
    box-shadow: 0 20px 30px rgba(15, 42, 82, .12); }
  .menu.open { display: flex; }
  .menu a { padding: 13px 12px; font-size: 17px; }
  .find-btn { margin-left: auto; }
  .burger { display: block; }
  .hero-in, .cols, .doc.box, .duo { grid-template-columns: 1fr; }
  .hero-in { padding: 48px 0 70px; gap: 36px; }
  .col-side { position: static; }
  .col-side .track { max-height: none; }
  .nums { grid-template-columns: repeat(2, 1fr); }
  .nums li:nth-child(3) { border-left: 0; }
  .nums li:nth-child(n+3) { border-top: 1px solid var(--hair); }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  body { font-size: 16.5px; }
  .box { width: calc(100% - 28px); }
  .brand small { display: none; }
  .find-big { padding-left: 16px; }
  .find-big b { padding: 11px 16px; }
  .nums li { padding: 16px 18px; flex-direction: column; gap: 2px; }
  .nums b { font-size: 28px; }
  .dirs { grid-template-columns: 1fr 1fr; padding: 8px; gap: 6px; }
  .dirs .ln { display: none; }
  .dir { padding: 8px; gap: 8px; }
  .dir svg { width: 20px; height: 20px; }
  .dir b { font-size: 15px; }
  .sign .box { padding: 28px 0 62px; }
  .sign::after { display: none; }
  .ft-grid { grid-template-columns: 1fr; gap: 28px; }
  .tablo { padding: 20px; }
  .tablo dd { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .tablo-h i { animation: none; } }

/* правки мобильной версии */
.sign h1 { overflow-wrap: anywhere; hyphens: auto; }
.xfer svg { flex-shrink: 0; }
@media (max-width: 600px) {
  .sign h1 { font-size: clamp(26px, 7.4vw, 40px); }
  .sign-lines { flex-wrap: wrap; font-size: 15px; }
  .path { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; padding-bottom: 2px; }
  .path::-webkit-scrollbar { display: none; }
  .hero h1 { font-size: clamp(30px, 9vw, 44px); overflow-wrap: anywhere; }
}
@media (max-width: 600px) { .finder-res a small, .finder-hint { display: none; } .finder { margin-top: 4vh; } }

/* ---------- интерактивная схема линий ---------- */
.map-box { background: var(--paper); border-radius: var(--r); padding: 18px; box-shadow: 0 10px 30px rgba(15, 42, 82, .08); margin-bottom: 40px; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.map-legend button { display: inline-flex; align-items: center; gap: 8px; font: 500 14px/1 var(--body); color: var(--ink);
  background: var(--bg); border: 0; border-radius: 99px; padding: 7px 14px 7px 7px; cursor: pointer; transition: background .15s, color .15s; }
.map-legend button[data-l="0"] { padding-left: 14px; }
.map-legend button i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lc); color: #fff; font: 700 12px/1 var(--head); font-style: normal; }
.map-legend button:hover { background: var(--hair); }
.map-legend button.is-on { background: var(--brand); color: #fff; }
.map-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.metro-map { width: 100%; max-width: 960px; min-width: 680px; height: auto; display: block; margin: 0 auto; }
.metro-map .m-river { fill: none; stroke: #d9e8f7; stroke-width: 18; stroke-linejoin: round; stroke-linecap: round; }
.metro-map .m-line { fill: none; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity .2s; }
.metro-map .m-xfer { stroke: #13213b; stroke-width: 5; stroke-linecap: round; }
.metro-map .m-st circle { fill: #fff; stroke-width: 2.6; transition: r .15s; cursor: pointer; }
.metro-map .m-st.is-hub circle { stroke-width: 2.8; }
.metro-map .m-st:hover circle, .metro-map .m-st.is-act circle, .metro-map .m-st:focus-visible circle { r: 8.5; fill: var(--brand); stroke: #fff; }
.metro-map .m-st:focus { outline: none; }
.metro-map .m-lbl { font: 500 11.5px var(--body); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; pointer-events: none; transition: opacity .2s; }
.metro-map .m-lbl.is-hub { font-weight: 700; }
.metro-map[data-focus]:not([data-focus="0"]) .m-line, .metro-map[data-focus]:not([data-focus="0"]) .m-xfer,
.metro-map[data-focus]:not([data-focus="0"]) .m-lbl { opacity: .15; }
.metro-map[data-focus="1"] .m-line[data-l="1"], .metro-map[data-focus="2"] .m-line[data-l="2"], .metro-map[data-focus="3"] .m-line[data-l="3"],
.metro-map[data-focus="4"] .m-line[data-l="4"], .metro-map[data-focus="5"] .m-line[data-l="5"], .metro-map[data-focus="6"] .m-line[data-l="6"] { opacity: 1; }
.metro-map .m-st.is-dim { opacity: .2; }
.map-tip { position: absolute; z-index: 5; transform: translate(-50%, calc(-100% - 16px)); background: var(--brand-dd); color: #fff;
  border-radius: 12px; padding: 10px 14px; min-width: 170px; box-shadow: 0 14px 30px rgba(15, 42, 82, .3); font-size: 14px; }
.map-tip.is-left { transform: translate(calc(-100% + 24px), calc(-100% - 16px)); }
.map-tip b { display: block; font: 700 15px/1.25 var(--head); margin: 6px 0 4px; }
.map-tip a { color: var(--amber); text-decoration: none; font-weight: 600; }
.map-tip a:hover { text-decoration: underline; }
.map-tip .mt-n { display: flex; gap: 4px; }
.map-tip .mt-n i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: #fff; font: 700 11px/1 var(--head); font-style: normal; }
.map-hint { margin: 10px 2px 0; font-size: 14px; color: var(--mute); }
.map-hint a { color: var(--brand); }
@media (max-width: 600px) { .map-box { padding: 12px; margin-inline: -8px; } .map-legend button { font-size: 13px; } }

/* маршрут между двумя станциями */
.metro-map .m-route { fill: none; stroke-width: 11; stroke-linecap: round; stroke-linejoin: round; opacity: .95; pointer-events: none; }
.metro-map .m-route.is-walk { stroke: #13213b; stroke-width: 6; stroke-dasharray: 2 6; }
.metro-map.has-route .m-line, .metro-map.has-route .m-xfer { opacity: .18; }
.metro-map.has-route .m-st:not(.on-route) { opacity: .35; }
.metro-map.has-route .m-lbl:not(.on-route) { opacity: .3; }
.metro-map.has-route .m-lbl.on-route { font-weight: 700; }
.metro-map .m-st.is-a circle, .metro-map .m-st.is-b circle { r: 9; fill: var(--brand); stroke: #fff; stroke-width: 3; }
.metro-map .m-st.is-b circle { fill: #d6083b; }
.map-tip small { display: block; opacity: .8; font-size: 12px; margin-bottom: 4px; }
.map-route { margin-top: 14px; border-top: 1px solid var(--hair); padding-top: 14px; }
.mr-pick { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.mr-f { display: grid; gap: 6px; min-width: 0; --mk: var(--brand); }
.mr-fb { --mk: #d6083b; }
.mr-cap { font: 600 12px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-left: 2px; }
.mr-sel { position: relative; display: block; }
.mr-sel::after { content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px; pointer-events: none;
  border: solid var(--mute); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: border-color .15s; }
.mr-sel select { -webkit-appearance: none; appearance: none; width: 100%; height: 54px; padding: 0 46px 0 50px; margin: 0;
  font: 600 16px/1 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--hair); border-radius: 14px;
  cursor: pointer; text-overflow: ellipsis; transition: border-color .15s, box-shadow .15s; }
.mr-sel select:hover { border-color: #b9c6da; }
.mr-sel:hover::after { border-color: var(--ink); }
.mr-sel select:focus { outline: none; border-color: var(--mk); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mk) 16%, transparent); }
.mr-f:not(.is-set) select { color: var(--mute); font-weight: 500; }
.mr-sel select option, .mr-sel select optgroup { color: var(--ink); }
.mr-dot { position: absolute; left: 17px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; pointer-events: none;
  background: #fff; border: 4px solid var(--mk); transition: background .15s, border-color .15s; }
.mr-f.is-set .mr-dot { background: var(--lc); border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--lc); }
.mr-f.is-set select { border-color: color-mix(in srgb, var(--lc, var(--hair)) 45%, var(--hair)); }
.mr-swap { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 4px; border-radius: 50%; border: 2px solid var(--hair);
  background: #fff; color: var(--brand); cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .25s; }
.mr-swap svg { width: 20px; height: 20px; }
.mr-swap:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: rotate(180deg); }
.mr-out { margin-top: 14px; }
.mr-empty { margin: 0; color: var(--mute); font-size: 15px; }
.mr-total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; background: var(--brand-dd); color: #fff; border-radius: 14px; padding: 14px 18px; }
.mr-total b { font: 800 28px/1 var(--head); }
.mr-total span { font-size: 14px; opacity: .85; }
.mr-steps { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.mr-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.mr-steps li.is-walk { background: transparent; border: 1px dashed var(--hair); }
.mr-steps b { display: block; font-weight: 700; }
.mr-steps small { display: block; color: var(--mute); font-size: 13px; margin-top: 2px; }
.mr-l { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; color: #fff; font: 700 12px/1 var(--head); font-style: normal; vertical-align: middle; }
.mr-ico { flex: none; width: 24px; text-align: center; color: var(--brand); font-weight: 700; }
.mr-links { margin: 12px 0 0; font-size: 14px; }
.mr-links a { color: var(--brand); }
.mr-reset { border: 0; background: none; color: var(--mute); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
@media (max-width: 600px) { .mr-pick { grid-template-columns: 1fr; gap: 8px; } .mr-swap { justify-self: center; margin: 0; transform: rotate(90deg); } .mr-swap:hover { transform: rotate(270deg); } }

/* фото станции (Wikimedia Commons) */
.st-photo { margin: 0 0 22px; border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: 0 10px 30px rgba(15, 42, 82, .08); }
.st-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.st-photo figcaption { padding: 8px 14px 10px; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.st-photo figcaption a { color: var(--mute); }
.map-tip.is-right { transform: translate(-24px, calc(-100% - 16px)); }
.map-tip.is-below { transform: translate(-50%, 30px); }
.map-tip.is-below.is-left { transform: translate(calc(-100% + 24px), 30px); }
.map-tip.is-below.is-right { transform: translate(-24px, 30px); }

/* ---------- хроника: лента как линия метро ---------- */
.nw-lead { max-width: 760px; color: var(--ink-2); }
.nw-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 10px; position: sticky; top: 76px; z-index: 5; padding: 8px 0; background: var(--bg); }
.nw-nav a { font: 600 14px/1 var(--body); padding: 9px 14px; border-radius: 999px; background: var(--paper); text-decoration: none; border: 1px solid var(--hair); }
.nw-nav a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.nw-dec { scroll-margin-top: 140px; }
.nw-dec-h { display: flex; align-items: baseline; gap: 14px; font-size: clamp(24px, 2.6vw, 32px); margin: 46px 0 18px; }
.nw-dec-h small { font: 500 15px var(--body); color: var(--mute); }
.nw-list { list-style: none; margin: 0; padding: 0 0 0 34px; position: relative; display: grid; gap: 12px; }
.nw-list::before { content: ""; position: absolute; left: 10px; top: 8px; bottom: 8px; width: 6px; border-radius: 3px; background: var(--brand); opacity: .85; }
.nw-item { position: relative; background: var(--paper); border-radius: var(--r-sm); padding: 14px 20px 6px; }
.nw-item::before { content: ""; position: absolute; left: -31px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
.nw-item time { display: block; font: 600 13px/1.2 var(--body); letter-spacing: .06em; text-transform: uppercase; color: var(--mute); margin-bottom: 4px; }
.nw-item a { font: 700 17.5px/1.3 var(--head); text-decoration: none; }
.nw-item a:hover { text-decoration: underline; }
.nw-item p { margin: 6px 0 10px; color: var(--ink-2); font-size: 15.5px; line-height: 1.5; }
.nw-home { margin-top: 4px; }
.nw-text p:first-child { font-size: 19px; line-height: 1.55; }
.nw-st { margin: 26px 0 0; }
.nw-st-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nw-st-list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; background: var(--paper); border-radius: 999px;
  border-left: 5px solid var(--lc); text-decoration: none; font-weight: 600; font-size: 15px; }
.nw-st-list a:hover { text-decoration: underline; }
.nw-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0 10px; }
.nw-pn a { display: block; background: var(--paper); border-radius: var(--r-sm); padding: 14px 18px; text-decoration: none; }
.nw-pn small { display: block; color: var(--mute); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }
.nw-pn b { font-weight: 600; line-height: 1.35; }
.nw-pn a:hover b { text-decoration: underline; }
.nw-pn-next { grid-column: 2; text-align: right; }
.nw-rd { display: block; color: var(--mute); font-size: 12.5px; }
@media (max-width: 720px) {
  .nw-pn { grid-template-columns: 1fr; }
  .nw-pn-next { grid-column: 1; }
  .nw-nav { top: 64px; }
  .nw-list { padding-left: 28px; }
  .nw-list::before { left: 7px; }
  .nw-item::before { left: -27px; }
}
