/* pskovtravelclub — ночной Псков: синий и графит, тёплый свет фонарей, известняк */
:root {
  --night: #0A111D;
  --night-2: #0E1726;
  --night-3: #142034;
  --line: rgba(233, 222, 200, .12);
  --line-2: rgba(233, 222, 200, .22);
  --cream: #F1E6CF;
  --text: #D9D3C6;
  --muted: #98A0AE;
  --lamp: #F2C46D;
  --lamp-2: #E2A645;
  --stone: #CDBB98;
  --water: #1F3A5C;
  --water-2: #2A4C74;
  --cond: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --sans: "Inter Tight", system-ui, sans-serif;
  --r: 6px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font: 400 16px/1.55 var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; font-family: var(--cond); font-weight: 800; color: var(--cream); text-transform: uppercase; letter-spacing: .005em; line-height: .95; }
h2 { font-size: clamp(38px, 4.2vw, 60px); }
p { margin: 0; }
button { font: inherit; color: inherit; }
svg { fill: currentColor; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.wrap { width: min(1312px, 100% - 64px); margin-inline: auto; }

/* ── шапка ── */
.top { position: absolute; inset: 0 0 auto; z-index: 5; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; }
.logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo b { font: 800 26px/1 var(--cond); text-transform: uppercase; color: var(--cream); letter-spacing: .01em; }
.logo span { font-size: 11.5px; line-height: 1.3; color: var(--muted); }
.menu { display: flex; gap: 30px; }
.menu a, .foot nav a { font-size: 14px; text-decoration: none; color: var(--text); }
.menu a:hover, .foot nav a:hover { color: var(--lamp); }

/* ── первый экран ── */
.hero { position: relative; min-height: min(760px, 100svh); display: flex; align-items: center; overflow: hidden; background: var(--night); }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero picture img { object-fit: cover; object-position: 72% 50%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 17, 29, .88) 0%, rgba(10, 17, 29, .55) 34%, rgba(10, 17, 29, 0) 60%), linear-gradient(0deg, var(--night) 0%, rgba(10, 17, 29, 0) 22%); }
.hero-in { position: relative; z-index: 1; padding: 130px 0 90px; }
.hero h1 { font-size: clamp(58px, 7.2vw, 108px); line-height: .9; color: #F4E2BE; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-lead { max-width: 440px; margin-top: 26px; font-size: 17px; color: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.tabs button { display: inline-flex; align-items: center; gap: 22px; min-width: 150px; justify-content: space-between; padding: 17px 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(10, 17, 29, .55); backdrop-filter: blur(6px); font-size: 17px; font-weight: 500; color: var(--cream); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.tabs button svg { width: 18px; height: 18px; opacity: 0; transition: opacity .2s; }
.tabs button:hover { border-color: var(--lamp); }
.tabs button[aria-selected="true"] { background: var(--lamp); border-color: var(--lamp); color: #1B1408; }
.tabs button[aria-selected="true"] svg { opacity: 1; }

/* ── маршрут ── */
.route { border-top: 1px solid var(--line); padding: 46px 0 34px; background: var(--night); scroll-margin-top: 0; }
.panel[hidden] { display: none; }
.route-head { display: grid; grid-template-columns: 1fr minmax(0, 640px); gap: 40px; align-items: end; }
.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--stone); margin-bottom: 12px; }
.route-head h2 { font-size: clamp(42px, 4.6vw, 66px); }
.lead { margin-top: 14px; max-width: 520px; font-size: 16.5px; color: var(--text); }
.notes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(20, 32, 52, .5); }
.note svg { flex: none; width: 30px; height: 30px; color: var(--cream); }
.note--warn svg { color: var(--lamp); }
.note b { display: block; font-size: 14.5px; font-weight: 600; color: var(--cream); margin-bottom: 4px; }
.note--warn b { color: var(--lamp); }
.note p { font-size: 13px; line-height: 1.45; color: var(--muted); }
.route-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 34px; align-items: start; }
.after { grid-column: 2; margin-top: -18px; font-size: 13.5px; color: var(--muted); border-left: 2px solid var(--lamp-2); padding-left: 14px; }
.map-credit { margin-top: 26px; font-size: 12px; color: #6E7685; }

/* карта */
.map { position: sticky; top: 24px; aspect-ratio: 640 / 600; border-radius: var(--r); overflow: hidden; background: radial-gradient(120% 90% at 40% 40%, #121D2F 0%, #0B1322 70%); border: 1px solid var(--line); }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-road path { fill: none; stroke: #2A3446; stroke-width: .8; stroke-linecap: round; stroke-linejoin: round; }
.m-road--major path { stroke: #3A4658; stroke-width: 1.6; }
.m-water path { fill: var(--water); stroke: none; }
.m-water--line path { fill: none; stroke: var(--water); stroke-linecap: round; stroke-linejoin: round; }
.m-water--thin path { stroke-width: 1.6; }
.m-border path { fill: none; stroke: #B5636B; stroke-width: 1.4; stroke-dasharray: 6 4; opacity: .8; }
.m-route path { fill: none; stroke: var(--lamp); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1 7; filter: drop-shadow(0 0 4px rgba(242, 196, 109, .45)); }
.m-route--opt path, .m-route--day2 path { stroke: var(--stone); stroke-dasharray: 1 6; stroke-width: 2.6; opacity: .85; filter: none; }
.m-route--walk path { stroke-dasharray: 1 5; stroke-width: 2.6; }
.m-scale path { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.m-scale text, .m-north text { font: 500 11px var(--sans); fill: var(--muted); }
.m-north path { fill: var(--muted); }
.m-note { position: absolute; transform: translate(-50%, -50%); font-size: 13px; pointer-events: none; white-space: nowrap; }
.m-note--river { font-style: italic; color: #6F8DB3; }
.m-note--area { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #5C6676; }
.m-note--rot { transform: translate(-50%, -50%) rotate(-62deg); }
.m-note--border { font-size: 11px; color: #B5636B; transform: translate(-50%, -50%) rotate(-70deg); }
.m-note--edge-l { transform: translate(4px, -130%); }
.m-note--edge-r { transform: translate(calc(-100% - 4px), -130%); }
.m-note--edge-t { transform: translate(-50%, 6px); }
.m-note--edge-b { transform: translate(-50%, calc(-100% - 6px)); }
.m-legend { position: absolute; right: 16px; bottom: 14px; display: grid; gap: 4px; padding: 8px 10px; background: rgba(10, 17, 29, .78); border-radius: 4px; font-size: 11.5px; color: var(--muted); }
.m-legend span { display: flex; align-items: center; gap: 8px; }
.m-legend i { width: 26px; height: 0; border-top: 3px dotted var(--lamp); }
.m-legend .m-lg-day2 { border-top: 3px dotted var(--stone); opacity: .85; }
.m-legend .m-lg-border { border-top: 2px dashed #B5636B; }
.m-note--edge { font-size: 12px; font-weight: 600; color: var(--lamp); background: rgba(10, 17, 29, .8); padding: 2px 6px; border-radius: 3px; }
.pin { position: absolute; transform: translate(-15px, -50%); display: flex; align-items: center; gap: 8px; padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.pin b { flex: none; display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 15px; background: var(--lamp); color: #1B1408; font: 700 14px/1 var(--sans); box-shadow: 0 0 0 4px rgba(242, 196, 109, .18); transition: transform .15s, box-shadow .15s; }
.pin span { font-size: 13.5px; font-weight: 600; line-height: 1.15; color: var(--cream); text-shadow: 0 1px 3px #0A111D, 0 0 10px #0A111D; max-width: 150px; }
.pin--l { flex-direction: row-reverse; transform: translate(calc(-100% + 15px), -50%); text-align: right; }
.pin--t { flex-direction: column-reverse; align-items: flex-start; gap: 4px; transform: translate(-15px, calc(-100% + 15px)); }
.pin--opt b { background: var(--night); color: var(--stone); box-shadow: inset 0 0 0 2px var(--stone); }
.pin:hover b, .pin.on b { transform: scale(1.15); box-shadow: 0 0 0 6px rgba(242, 196, 109, .3); }

/* лента остановок */
.stops { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.stop { position: relative; display: grid; grid-template-columns: 30px 64px minmax(0, 1fr) 120px; gap: 14px; align-items: start; padding: 14px 0 14px 20px; border-bottom: 1px solid var(--line); transition: background .2s; }
.stop:last-child { border-bottom: 0; }
.stop .num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lamp); color: #1B1408; font: 700 14px/1 var(--sans); }
.stop--opt .num { background: transparent; color: var(--stone); box-shadow: inset 0 0 0 2px var(--stone); }
.stop time { padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--stone); }
.stop h3 { font-size: 23px; line-height: 1.05; margin: 3px 0 6px; }
.stop h3 small { margin-left: 6px; font: 500 12px var(--sans); text-transform: none; color: var(--muted); letter-spacing: 0; }
.stop p { font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.stop img, .stop .tile { width: 120px; height: 76px; object-fit: cover; border-radius: 4px; }
.stop .tile { padding: 8px 10px; background: var(--night-3); color: var(--stone); border: 1px solid var(--line); }
.stop.on { background: linear-gradient(90deg, rgba(242, 196, 109, .09), rgba(242, 196, 109, 0)); }
.day { padding: 16px 0 6px 20px; font: 600 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--lamp); border-bottom: 1px solid var(--line); }
.link { padding: 0; border: 0; background: none; color: var(--lamp); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }

/* ── другие маршруты ── */
.others { padding: 60px 0 64px; background: var(--night-2); border-top: 1px solid var(--line); }
.others h2 { color: var(--lamp); margin-bottom: 26px; }
.others-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ocard { position: relative; display: block; min-height: 300px; border-radius: var(--r); overflow: hidden; text-decoration: none; border: 1px solid var(--line); }
.ocard[hidden] { display: none; }
.ocard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ocard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 17, 29, .95) 0%, rgba(10, 17, 29, .55) 45%, rgba(10, 17, 29, 0) 75%); }
.ocard:hover img { transform: scale(1.03); }
.ocard-in { position: absolute; z-index: 1; left: 24px; right: 70px; bottom: 22px; display: grid; gap: 6px; }
.badge { justify-self: start; padding: 4px 8px 2px; background: var(--lamp); color: #1B1408; font: 800 17px/1 var(--cond); text-transform: uppercase; border-radius: 2px; }
.ocard b { font: 800 30px/1 var(--cond); text-transform: uppercase; color: var(--cream); }
.ocard-in > span:not(.badge):not(.ocard-tip) { font-size: 14.5px; color: var(--text); max-width: 460px; }
.ocard-tip { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.ocard-tip svg { width: 18px; height: 18px; color: var(--lamp); }
.ocard-go { position: absolute; z-index: 1; right: 22px; bottom: 24px; width: 26px; height: 26px; color: var(--cream); }

/* ── как добраться ── */
.doroga { padding: 56px 0; border-top: 1px solid var(--line); background: var(--night); }
.doroga-in { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 0; }
.doroga-in > div:first-child { padding-right: 40px; }
.doroga-in > div:first-child p { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.doroga h2 { color: var(--lamp); }
.way { padding: 4px 30px; border-left: 1px solid var(--line-2); }
.way svg { width: 38px; height: 38px; color: var(--cream); }
.way b { display: block; margin: 12px 0 8px; font-weight: 600; color: var(--cream); }
.way p { font-size: 14px; color: var(--muted); }

/* ── сезоны ── */
.sezony { padding: 58px 0 64px; background: var(--night-2); border-top: 1px solid var(--line); }
.sec-head { display: flex; align-items: baseline; gap: 28px; flex-wrap: wrap; margin-bottom: 28px; }
.sec-head h2 { color: var(--lamp); }
.sec-head p { color: var(--muted); font-size: 14.5px; }
.seasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.season { display: flex; flex-direction: column; background: var(--night-3); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.season img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.season h3 { margin: 18px 18px 8px; font-size: 30px; color: var(--cream); text-transform: none; font-weight: 700; }
.season > p { margin: 0 18px 18px; font-size: 14px; color: var(--text); }
.season-note { display: flex; gap: 12px; align-items: center; margin: auto 10px 10px; padding: 11px 12px; background: rgba(10, 17, 29, .6); border-radius: 4px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.season-note svg { flex: none; width: 24px; height: 24px; color: var(--cream); }

/* ── ошибки ── */
.oshibki { padding: 60px 0; border-top: 1px solid var(--line); background: var(--night); }
.oshibki-in { display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.oshibki h2, .faq h2 { color: var(--lamp); font-size: clamp(38px, 3.6vw, 50px); }
.oshibki-in > div:first-child p { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.myths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.myth { display: flex; flex-direction: column; gap: 12px; padding: 12px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--night-2); }
.myth small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); margin-bottom: 3px; }
.myth-said { font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--cream); min-height: 62px; }
.myth img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; border-radius: 3px; }
.myth-true { font-size: 13px; line-height: 1.45; color: var(--text); }
.myth-true small { color: var(--lamp); font-weight: 600; }

/* ── вопросы ── */
.faq { padding: 52px 0 60px; border-top: 1px solid var(--line); background: var(--night-2); }
.faq-in { display: grid; grid-template-columns: 300px 1fr; gap: 32px; align-items: start; }
.faq-in > div:first-child p { margin-top: 12px; color: var(--muted); }
.faq-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
details { border: 1px solid var(--line-2); border-radius: var(--r); background: rgba(20, 32, 52, .45); }
summary { position: relative; list-style: none; padding: 15px 46px 15px 18px; font-size: 15px; font-weight: 500; color: var(--cream); cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid var(--muted); border-bottom: 1.6px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
details p { padding: 0 18px 16px; font-size: 14px; color: var(--muted); }

/* ── подвал ── */
.foot { border-top: 1px solid var(--line); background: #070C15; }
.foot-in { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; padding: 30px 0; }
.foot nav { display: flex; gap: 28px; justify-content: center; }
.foot p { max-width: 330px; font-size: 12px; line-height: 1.5; color: var(--muted); }
.foot p a { color: var(--cream); }

/* ── адаптив ── */
@media (max-width: 1180px) {
  .route-head { grid-template-columns: 1fr; align-items: start; }
  .route-body { grid-template-columns: 1fr; }
  .after { grid-column: 1; margin-top: 0; }
  .map { max-width: 720px; position: relative; top: 0; }
  .doroga-in { grid-template-columns: repeat(3, 1fr); row-gap: 28px; }
  .doroga-in > div:first-child { grid-column: 1 / -1; }
  .way:nth-child(2) { border-left: 0; padding-left: 0; }
  .seasons { grid-template-columns: repeat(2, 1fr); }
  .oshibki-in, .faq-in { grid-template-columns: 1fr; }
  .foot-in { grid-template-columns: 1fr; gap: 18px; }
  .foot nav { justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .menu { display: none; }
  .myths { grid-template-columns: repeat(2, 1fr); }
  .others-grid { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .top-in { padding: 16px 0; }
  .logo b { font-size: 22px; }
  .logo span { display: none; }
  .hero { min-height: 640px; align-items: flex-end; }
  .hero picture img { object-position: 68% 30%; }
  .hero::after { background: linear-gradient(0deg, var(--night) 0%, rgba(10, 17, 29, .82) 45%, rgba(10, 17, 29, .1) 80%); }
  .hero-in { padding: 120px 0 40px; }
  .hero-lead { font-size: 16px; }
  .tabs { gap: 8px; }
  .tabs button { min-width: 0; flex: 1; padding: 14px 10px; gap: 6px; font-size: 15px; justify-content: center; }
  .tabs button svg { display: none; }
  .notes { grid-template-columns: 1fr; }
  .route { padding-top: 36px; }
  .stop { grid-template-columns: 30px minmax(0, 1fr); gap: 4px 12px; padding-left: 14px; }
  .stop time { grid-column: 2; grid-row: 1; padding-top: 7px; }
  .stop > div { grid-column: 2; }
  .stop img, .stop .tile { grid-column: 2; width: 100%; height: 150px; margin-top: 6px; }
  .stop .tile { display: none; }
  .day { padding-left: 14px; }
  .pin span { display: none; }
  .m-legend { right: 8px; bottom: 8px; font-size: 10.5px; padding: 6px 8px; }
  .m-scale { display: none; }
  .pin b { min-width: 26px; height: 26px; font-size: 12.5px; }
  .pin { transform: translate(-13px, -50%); }
  .pin--l { transform: translate(calc(-100% + 13px), -50%); }
  .m-note { font-size: 11px; }
  .doroga-in { grid-template-columns: 1fr; }
  .way, .way:nth-child(2) { border-left: 0; border-top: 1px solid var(--line-2); padding: 18px 0 0; }
  .seasons, .myths { grid-template-columns: 1fr; }
  .myth-said { min-height: 0; }
  .ocard { min-height: 330px; }
  .ocard-in { left: 18px; right: 52px; }
}
