/* «Штамп» — отчёт на данных: бумага, чернила и три цвета серий.
   Бумага #EDF1EC, чернила #17252A; красный — самолёты, бирюзовый — поезда, охра — отели и прочее.
   Дисплей — Gambarino (Fontshare, ITF Free Font License; файл лежит у нас, не на CDN),
   текст — системный шрифт. */
@font-face {
  font-family: "Gambarino";
  src: url("/static/fonts/gambarino-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #edf1ec;
  --sheet: #f8faf6;
  --sheet-2: #e3e9e2;
  --ink: #17252a;
  --ink-2: #3a4a4c;
  --muted: #56655f;
  --line: rgba(23, 37, 42, .12);
  --red: #9e3b2f;
  --red-soft: rgba(158, 59, 47, .12);
  --teal: #2f5d57;
  --teal-soft: rgba(47, 93, 87, .12);
  --ochre: #86652a;
  --display: "Gambarino", "Georgia", serif;
  --text: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --r: 14px;
  --r-in: 8px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body {
  margin: 0; color: var(--ink); font: 16px/1.5 var(--text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  background:
    repeating-linear-gradient(115deg, rgba(47, 93, 87, .035) 0 2px, transparent 2px 9px),
    var(--paper);
  min-height: 100vh;
}
a { color: inherit; text-decoration-color: rgba(23, 37, 42, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.num, table { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; letter-spacing: .005em; margin: 0; line-height: 1.12; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* --- шапка: бумажная полоса с перфорацией снизу, как край марки --- */
.top {
  position: sticky; top: 0; z-index: 20; background: var(--sheet);
  -webkit-mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) -7px 0 / 14px 100%;
          mask: radial-gradient(circle 5px at 50% 100%, transparent 98%, #000) -7px 0 / 14px 100%;
  padding-bottom: 6px;
}
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand svg { width: 30px; height: 30px; flex: none; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover svg { transform: rotate(-14deg); }
.brand b { font: 400 25px/1 var(--display); letter-spacing: .01em; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  text-decoration: none; padding: 10px 12px; border-radius: 10px; color: var(--ink-2);
  font-size: 15px; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
}
.nav a:hover { background: var(--sheet-2); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 650; }
.nav .count { font-size: 12px; font-weight: 700; color: var(--sheet); background: var(--red); border-radius: 8px; padding: 1px 6px; }
.me { display: flex; align-items: center; gap: 8px; }
.me form { margin: 0; }
.linkbtn { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: 10px 8px; min-height: 44px; }
.linkbtn:hover { color: var(--ink); }

main { padding: 36px 0 80px; }
section { margin-top: 56px; }
section:first-child { margin-top: 0; }

/* --- листы: тональная ступень от бумаги + край в цвет листа --- */
.sheet {
  background: var(--sheet); border-radius: var(--r); padding: 26px 28px;
  box-shadow: inset 0 0 0 1px rgba(23, 37, 42, .06), 0 1px 0 rgba(255, 255, 255, .9) inset;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }

/* --- главная фраза обзора --- */
.lede { font: 400 clamp(30px, 4.4vw, 54px)/1.14 var(--display); max-width: 21em; margin: 0; text-wrap: balance; }
.lede em { font-style: normal; color: var(--red); }
.lede .t { color: var(--teal); }
.sub { margin: 14px 0 0; color: var(--muted); font-size: 17px; max-width: 44em; }
.years { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 22px; }
.years a { text-decoration: none; padding: 8px 12px; border-radius: 10px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }
.years a:hover { color: var(--ink); background: var(--sheet-2); }
.years a[aria-current="true"] { color: var(--ink); font-weight: 700; background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); }

/* --- карта --- */
.sheet.map-sheet { padding: 0; overflow: hidden; position: relative; }
#map { height: 460px; width: 100%; background: #dfe7e3; }
.map-legend { position: absolute; left: 16px; bottom: 14px; background: rgba(248, 250, 246, .94); border-radius: 10px; padding: 8px 12px; display: flex; gap: 16px; font-size: 13px; color: var(--ink-2); }
.map-legend i { display: inline-block; width: 18px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }
.maplibregl-popup-content { font: 13px/1.4 var(--text); border-radius: 10px; padding: 8px 12px; color: var(--ink); }

/* --- списки-рейтинги --- */
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 9px 0; align-items: baseline; }
.rank li + li { border-top: 1px solid var(--line); }
.rank .bar { grid-column: 1 / -1; height: 4px; border-radius: 4px; background: var(--sheet-2); overflow: hidden; }
.rank .bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink-2); }
.rank .bar.red i { background: var(--red); }
.rank .bar.teal i { background: var(--teal); }
.rank .v { font-weight: 650; }
.rank .v small { font-weight: 400; color: var(--muted); margin-left: 6px; }
.scroll { max-height: 440px; overflow: auto; padding-right: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 22px 28px; }
.fact b { display: block; font: 400 38px/1.05 var(--display); }
.fact span { color: var(--muted); font-size: 14px; }
.fact.red b { color: var(--red); }
.fact.teal b { color: var(--teal); }

/* график по годам */
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 12px var(--text); fill: var(--muted); }
.chart .lbl { fill: var(--ink); font-weight: 650; }

.record { padding: 12px 0; }
.record + .record { border-top: 1px solid var(--line); }
.record b { font: 400 22px/1.2 var(--display); display: block; }

/* --- поездки --- */
.journey { display: grid; grid-template-columns: 190px 1fr; gap: 20px; padding: 22px 0; }
.journey + .journey { border-top: 1px solid var(--line); }
.journey .when { color: var(--muted); font-size: 14px; }
.journey .when b { display: block; color: var(--ink); font: 400 20px/1.2 var(--display); margin-bottom: 4px; }
.journey h3 { font-size: 24px; margin-bottom: 8px; }
.legs { list-style: none; padding: 0; margin: 0; }
.legs li { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 15px; flex-wrap: wrap; }
.legs .mode { width: 22px; flex: none; text-align: center; }
.legs .meta { color: var(--muted); font-size: 14px; }
.legs form { margin: 0 0 0 auto; display: flex; gap: 4px; align-items: center; }
.legs details { margin-left: auto; }
.legs summary { cursor: pointer; color: var(--muted); font-size: 14px; list-style: none; padding: 6px 8px; border-radius: 8px; }
.legs summary::-webkit-details-marker { display: none; }
.legs summary:hover { background: var(--sheet-2); color: var(--ink); }
.legs .acts { display: flex; gap: 8px; align-items: center; padding: 6px 0; flex-wrap: wrap; }
@media (max-width: 700px) { .journey { grid-template-columns: 1fr; gap: 8px; } }

/* --- формы и кнопки --- */
label { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=time], input[type=number], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1px solid rgba(23, 37, 42, .2);
  border-radius: 10px; padding: 11px 12px; min-height: 44px;
}
textarea { min-height: 150px; resize: vertical; font-size: 15px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.field { margin-bottom: 16px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0 16px; }
textarea[rows] { min-height: 0; }
/* выбор из двух-трёх вариантов: радио как сегменты */
.seg-choice { border: 0; padding: 0; margin: 0 0 16px; }
.seg-choice legend { font-size: 14px; color: var(--ink-2); margin-bottom: 6px; padding: 0; }
.seg-choice label { display: inline-flex; align-items: center; gap: 6px; margin: 0 6px 6px 0; min-height: 44px;
  padding: 0 14px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(23, 37, 42, .2); cursor: pointer; color: var(--ink); font-size: 15px; }
.seg-choice label:has(input:checked) { box-shadow: inset 0 0 0 2px var(--teal); background: var(--teal-soft); }
.seg-choice input { accent-color: var(--teal); margin: 0; }
details.more { margin: 4px 0 16px; border-top: 1px solid var(--line); padding-top: 12px; }
details.more > summary { cursor: pointer; font-weight: 600; color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
details.more[open] > summary { margin-bottom: 12px; }
label.check { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-size: 15px; cursor: pointer; margin-bottom: 4px; }
label.check input { margin-top: 4px; accent-color: var(--teal); }
/* пометка «работа / личное» у записи и у поездки */
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.tag.work { background: var(--teal-soft); color: var(--teal); }
.tag.personal { background: rgba(134, 101, 42, .14); color: var(--ochre); }
.jmark { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 4px 0 8px; }
.jmark .muted { font-size: 13px; }
.jmark button { min-height: 32px; padding: 6px 12px; font-size: 13px; }
.jmark button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--teal); }
.btn {
  font: 600 15px/1 var(--text); border: 0; cursor: pointer; border-radius: 10px; padding: 14px 20px;
  background: var(--ink); color: var(--sheet); min-height: 46px; display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; transition: background .15s;
}
.btn:hover { background: #2b3d42; }
.btn.red { background: var(--red); }
.btn.red:hover { background: #86302a; }
.btn.quiet { background: transparent; color: var(--ink-2); padding: 12px 10px; }
.btn.quiet:hover { background: var(--sheet-2); color: var(--ink); }
.btn.small { padding: 9px 12px; min-height: 38px; font-size: 14px; }
.error { background: var(--red-soft); color: #7b2a21; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.ok { background: var(--teal-soft); color: #214541; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.tabs { display: flex; gap: 4px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs a { text-decoration: none; padding: 9px 14px; border-radius: 10px; color: var(--muted); min-height: 40px; display: inline-flex; align-items: center; }
.tabs a[aria-current="true"] { background: var(--ink); color: var(--sheet); }
.tabs a:not([aria-current="true"]):hover { background: var(--sheet-2); color: var(--ink); }

/* --- импорт --- */
.drop {
  border: 2px dashed rgba(47, 93, 87, .35); border-radius: var(--r); padding: 28px; text-align: center;
  background: rgba(47, 93, 87, .04); transition: background .15s, border-color .15s;
}
.drop.over { background: var(--teal-soft); border-color: var(--teal); }
.drop { display: block; cursor: pointer; position: relative; }
.drop input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop:focus-within { outline: 2px solid var(--teal); outline-offset: 2px; }
.addr { font: 600 17px/1.3 ui-monospace, "SF Mono", Menlo, monospace; background: #fff; border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center; word-break: break-all; }
.draft { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 12px 0; align-items: center; }
.draft + .draft { border-top: 1px solid var(--line); }
.draft .why { grid-column: 1; color: var(--muted); font-size: 13px; }
.draft .acts { grid-row: 1 / span 2; grid-column: 2; display: flex; gap: 4px; }
.draft form { margin: 0; }
.jobs { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.jobs li { padding: 8px 0; display: flex; gap: 12px; justify-content: space-between; }
.jobs li + li { border-top: 1px solid var(--line); }
.jobs.homes li { align-items: center; font-size: 15px; }
.jobs.homes form { margin: 0; }
.jobs.mailboxes li { align-items: center; flex-wrap: wrap; }
.jobs.mailboxes li > span:first-child { flex: 1 1 300px; }
.jobs .actions { display: flex; gap: 8px; flex-shrink: 0; }
.jobs .actions form { margin: 0; }
span.label { display: block; font-size: 14px; color: var(--ink-2); margin: 0 0 6px; }
.pill-src { font-size: 12px; color: var(--muted); }

/* --- сравнение с друзьями --- */
.board { width: 100%; border-collapse: collapse; }
.board td, .board th { padding: 10px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.board th { font-weight: 500; color: var(--muted); font-size: 14px; }
.board tr.me td { font-weight: 700; }
.flags { font-size: 22px; letter-spacing: 2px; line-height: 1.5; }

/* --- итоги года: постер --- */
.poster { background: var(--ink); color: var(--sheet); border-radius: 22px; padding: 40px; position: relative; overflow: hidden; }
.poster .big { font: 400 clamp(64px, 11vw, 150px)/.95 var(--display); letter-spacing: -.01em; }
.poster .lbl { color: #b7c5c0; font-size: 15px; }
.poster .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
.poster .grid b { display: block; font: 400 44px/1 var(--display); }
.poster #map { height: 300px; border-radius: 14px; margin-top: 30px; }
.poster .delta { color: #e6a08f; font-size: 14px; }
@media (max-width: 700px) { .poster .grid { grid-template-columns: 1fr 1fr; } .poster { padding: 26px; } }

/* --- лендинг: отчёт на данных. Цвета серий: красный — самолёты, бирюзовый — поезда, охра — прочее --- */
.l-hero { padding: 40px 0 0; max-width: 820px; }
.l-hero h1 { font-size: clamp(46px, 7vw, 92px); line-height: 1; text-wrap: balance; }
.l-hero p { font-size: 20px; color: var(--ink-2); max-width: 26em; margin: 22px 0 28px; }
.l-report { margin-top: 44px; padding: 30px 32px 22px; }
.l-figs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 0 0 30px; }
.l-figs div { border-top: 2px solid var(--ink); padding-top: 10px; }
.l-figs div:first-child { border-color: var(--red); }
.l-figs div:nth-child(2) { border-color: var(--teal); }
.l-figs dt { color: var(--muted); font-size: 14px; }
.l-figs dd { margin: 4px 0 0; font: 400 clamp(38px, 4.6vw, 60px)/1 var(--display); }
.l-figs dd small { font-size: .4em; margin-left: 3px; color: var(--muted); }
.l-years { margin: 0; height: 220px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; align-items: end; }
.l-years .col { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: stretch; text-align: center; }
.l-years .stack { display: flex; flex-direction: column-reverse; border-radius: 6px 6px 0 0; overflow: hidden; transform-origin: bottom; animation: l-grow .8s cubic-bezier(.2, .8, .2, 1) both; }
.l-years .stack { animation-delay: calc(var(--i, 0) * 40ms); }
.l-years .stack i { display: block; min-height: 2px; }
.l-years .n { font-size: 13px; font-weight: 650; margin-bottom: 4px; }
.l-years .y { font-size: 13px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
i.r { background: var(--red); } i.t { background: var(--teal); }
@keyframes l-grow { from { transform: scaleY(0); } }
.l-cap { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; margin: 16px 0 0; font-size: 13px; color: var(--ink-2); }
.l-cap i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.l-sample { margin-left: auto; color: var(--muted); }

.l-story { margin-top: 96px; max-width: 760px; }
.l-story h2, .l-ach h2, .l-flow h2, .l-next h2, .l-join h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.08; text-wrap: balance; }
.l-story p, .l-ach-head p, .l-flow-text > p, .l-lead { color: var(--ink-2); font-size: 18px; margin: 14px 0 0; max-width: 34em; }

.l-bento { margin-top: 32px; display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.l-bento .sheet { display: flex; flex-direction: column; }
.l-hotels { grid-column: span 7; }
.l-world { grid-column: span 5; }
.l-hours { grid-column: span 5; }
.l-modes { grid-column: span 7; }
.l-bento h3 { font-size: 15px; font-family: var(--text); font-weight: 650; color: var(--muted); letter-spacing: 0; }
.l-fact { font: 400 24px/1.25 var(--display); margin: 8px 0 20px; text-wrap: balance; }
.l-fact b { font-weight: 400; color: var(--red); }
.l-foot { color: var(--muted); font-size: 13px; margin: auto 0 0; padding-top: 16px; }
.l-bars, .l-prog { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.l-bars li, .l-prog li { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; }
.l-bars .lbl small { color: var(--muted); margin-left: 8px; font-size: 13px; }
.l-bars .v, .l-prog .v { font-weight: 650; font-size: 15px; }
.bar { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: var(--sheet-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 4px; background: var(--ink-2); }
.l-bars .bar i { background: var(--ochre); }
.l-world .bar i { background: var(--teal); }
.bar.red i { background: var(--red); } .bar.teal i { background: var(--teal); } .bar.ochre i { background: var(--ochre); }
.l-hist { margin: 0; height: 130px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; align-items: end; border-bottom: 1px solid var(--line); }
.l-hist i { display: block; background: var(--sheet-2); border-radius: 3px 3px 0 0; min-height: 2px; box-shadow: inset 0 0 0 1px rgba(23, 37, 42, .08); }
.l-hist i.early { background: var(--red); box-shadow: none; }
.l-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.l-ach { margin-top: 96px; }
.l-ach-head { max-width: 760px; }
.l-tiers { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.l-tiers li { display: grid; gap: 8px; padding: 22px 22px 20px; }
.l-tiers .t { color: var(--muted); font-size: 14px; }
.l-tiers b { font: 400 44px/1 var(--display); }
.l-tiers .bar i { background: var(--red); }
.l-tiers .nx { font-size: 14px; color: var(--ink-2); }
.l-tiers .steps { display: flex; gap: 4px; }
.l-tiers .steps i { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.l-tiers .steps i.on { background: var(--ink); box-shadow: none; }
.l-singles { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.l-singles li { padding: 10px 14px; border-radius: 10px; font-size: 14px; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.l-singles li b { color: var(--ink-2); margin-right: 4px; }
.l-singles li.on { background: var(--ink); color: #c9d4cf; box-shadow: none; }
.l-singles li.on b { color: var(--sheet); }

.l-flow { margin-top: 96px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.l-chan { list-style: none; padding: 0; margin: 24px 0 0; }
.l-chan li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.l-chan li:last-child { border-bottom: 1px solid var(--line); }
.l-chan b { color: var(--ink); }
.l-mail { display: grid; justify-items: center; gap: 10px; color: var(--muted); }
.l-mail .msg { width: 100%; background: #fff; border-radius: var(--r); padding: 18px 20px; font-size: 14px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(23, 37, 42, .06), 0 8px 24px -12px rgba(23, 37, 42, .18); }
.l-mail .msg p { margin: 0; }
.l-mail .msg .hd { font-weight: 650; color: var(--ink); padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.l-mail .arrow { width: 18px; height: 36px; }
.l-mail .row { width: 100%; background: var(--sheet); border-radius: var(--r); padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; font-size: 15px; box-shadow: inset 3px 0 0 var(--teal), inset 0 0 0 1px rgba(23, 37, 42, .06); }
.l-mail .row .k { color: var(--teal); font-weight: 650; }

.l-next { margin-top: 96px; }
.l-cols { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.l-cols h3 { font-size: 15px; font-family: var(--text); font-weight: 650; color: var(--muted); padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.l-cols > div + div h3 { border-color: var(--line); }
.l-cols dl { margin: 0; }
.l-cols dt { font: 400 21px/1.2 var(--display); margin-top: 18px; }
.l-cols dd { margin: 4px 0 0; color: var(--ink-2); }
.l-cols > div + div dt { color: var(--ink-2); }

.l-trust { margin-top: 80px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.l-trust p { margin: 0; color: var(--ink-2); font-size: 15px; }
.l-trust b { color: var(--ink); }

.l-join { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; padding: 36px; }
.l-join > div p { color: var(--ink-2); margin: 14px 0 0; }
.l-join form .btn { width: 100%; justify-content: center; }
.l-join .consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; cursor: pointer; }
.l-join .consent input { margin-top: 4px; }
.l-join .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 900px) {
  .l-figs { grid-template-columns: repeat(3, 1fr); }
  .l-bento > * { grid-column: 1 / -1 !important; }
  .l-tiers { grid-template-columns: 1fr 1fr; }
  .l-flow, .l-cols, .l-join { grid-template-columns: 1fr; gap: 28px; }
  .l-trust { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
  .l-hero { padding-top: 16px; }
  .l-hero p { font-size: 18px; }
  .l-report { padding: 22px 16px 18px; }
  .l-figs { grid-template-columns: 1fr 1fr; gap: 16px; }
  .l-figs div:last-child { grid-column: 1 / -1; }
  .l-years { height: 170px; gap: 6px; }
  .l-years .y { font-size: 11px; }
  .l-years .n { font-size: 12px; }
  .l-sample { margin-left: 0; width: 100%; }
  .l-story, .l-ach, .l-flow, .l-next { margin-top: 64px; }
  .l-tiers { grid-template-columns: 1fr 1fr; gap: 12px; }
  .l-tiers li { padding: 16px; }
  .l-tiers b { font-size: 34px; }
  .l-join { padding: 22px 18px; }
}

.empty { text-align: center; padding: 60px 20px; }
.empty h2 { margin-bottom: 12px; }
footer.foot { padding: 30px 0 50px; color: var(--muted); font-size: 13px; }
footer.foot .wrap { display: flex; gap: 20px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .top .wrap { gap: 10px; }
  .brand b { display: none; }
  .nav a { padding: 10px 8px; font-size: 14px; }
  .wrap { padding: 0 16px; }
  .sheet { padding: 20px 18px; }
  #map { height: 340px; }
  .me { display: none; }            /* выход и профиль — в «Настройках» */
  .me.anon { display: flex; }
  .nav { gap: 0; }
  .map-legend { top: 10px; bottom: auto; left: 10px; gap: 10px; font-size: 12px; padding: 6px 10px; }
}
.mobile-only, .nav a.mobile-only { display: none; }
@media (max-width: 760px) { .mobile-only { display: block; } .nav a.mobile-only { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* якоря не прячутся под липкой шапкой */
[id] { scroll-margin-top: 90px; }

/* ссылка «к содержанию» видна только с клавиатуры */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: var(--sheet); padding: 10px 14px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 10px; }

/* --- вход и регистрация --- */
.auth { max-width: 460px; margin: 30px auto 0; }
.auth h1 { font: 400 44px/1.1 var(--display); margin-bottom: 22px; }
.auth > .sheet, .auth > form.sheet { margin-bottom: 16px; }
.btn.wide { width: 100%; justify-content: center; }
.oauth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn.oauth-btn { background: #fff; color: var(--ink); justify-content: center; box-shadow: inset 0 0 0 1px rgba(23, 37, 42, .16); font-weight: 600; }
.btn.oauth-btn:hover { background: var(--sheet-2); }
.btn.oauth-btn svg { flex: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 6px 0 18px; cursor: pointer; }
.consent input { margin-top: 4px; }
.via { display: flex; gap: 10px; align-items: center; margin: 0 0 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 600; }
.logins { list-style: none; padding: 0; margin: 0; }
.logins li { display: flex; align-items: center; gap: 12px; padding: 10px 0; min-height: 56px; }
.logins li + li { border-top: 1px solid var(--line); }
.logins .who { flex: 1; }
.logins form { margin: 0; }
@media (max-width: 380px) { .oauth { grid-template-columns: 1fr; } }

/* --- обзор: тот же язык данных, что у лендинга --- */
.d-title { font: 400 clamp(34px, 4.6vw, 54px)/1.05 var(--display); }
.d-top .head { margin-bottom: 0; }
.d-report { margin-top: 24px; padding: 28px 30px 20px; }
.d-report .l-figs dt { min-height: 2.6em; }
.l-years a.col { text-decoration: none; color: inherit; border-radius: 6px; }
.l-years a.col:hover .stack { filter: brightness(1.12); }
.l-years a.col:hover .y { color: var(--ink); }
.l-years.months { grid-template-columns: repeat(12, 1fr); }
i.o { background: var(--ochre); }
.d-countries { grid-column: span 7; }
.d-world { grid-column: span 5; }
.d-modes { grid-column: span 7; }
.d-hours { grid-column: span 5; }
.d-hotels { grid-column: span 7; }
.d-hfacts { grid-column: span 5; }
.d-cities { grid-column: span 7; }
.d-records { grid-column: span 5; }
.d-country-list { max-height: 520px; overflow: auto; padding-right: 6px; }
.d-country-list li.home .bar i { background: var(--sheet-2); box-shadow: inset 0 0 0 1px var(--line); }
.l-prog .lbl small, .l-prog .v small { font-weight: 400; font-size: 13px; }
.l-prog .lbl svg { vertical-align: -3px; }
.d-week { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.d-week li { display: grid; gap: 4px; justify-items: center; }
.bar.v { width: 100%; height: 60px; display: flex; align-items: flex-end; border-radius: 4px; }
.bar.v i { width: 100%; background: var(--ink-2); border-radius: 4px; }
.d-week .num { color: var(--ink); font-weight: 650; }
.d-ranks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-ranks .bar i { background: var(--ink-2); }
.d-split { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; margin: 4px 0 16px; }
.d-split i, .d-split-legend i { display: block; }
.d-split-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.d-split-legend li { display: flex; align-items: center; gap: 8px; }
.d-split-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.s0 { background: var(--red); } .s1 { background: var(--teal); } .s2 { background: var(--ochre); } .s3 { background: var(--ink-2); }
@media (max-width: 900px) { .d-ranks { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .d-report { padding: 20px 16px 16px; } .l-years.months .y { font-size: 10px; } }
.l-years .stack i[style="flex:0"] { display: none; }
.d-ranks h2, .l-bento .head h2 { font-size: 24px; }

/* --- поездки: фильтры, пропуски, страница поездки, карточка переезда --- */
.t-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.t-filters select { width: auto; min-width: 180px; }
.t-chips, .t-notes { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0 0; }
.t-notes:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px;
  background: var(--sheet); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink-2); }
.chip.warn { background: var(--red-soft); box-shadow: none; color: var(--red); font-weight: 600; }
.journey .when b a, .journey h3 a { color: inherit; text-decoration: none; }
.journey .when b a:hover, .journey h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.seg-link { color: inherit; text-decoration: none; }
.seg-link:hover b { text-decoration: underline; text-underline-offset: 3px; }
.tag.live { background: var(--red); color: var(--sheet); }
.gap { margin: 10px 0 0; padding: 10px 14px; border-radius: var(--r-in); background: var(--red-soft); font-size: 14px; color: var(--ink); scroll-margin-top: 90px; }
.gap:target { box-shadow: inset 0 0 0 2px var(--red); }
.journey { scroll-margin-top: 90px; }
.jr-when { font-size: 17px; color: var(--ink-2); margin: 12px 0 0; }
.jr-countries { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.jr-head { margin-bottom: 24px; }
.days { list-style: none; padding: 0; margin: 0; }
.days > li { display: grid; grid-template-columns: 170px 1fr; gap: 16px; padding: 14px 0; }
.days > li + li { border-top: 1px solid var(--line); }
.day-n b { display: block; font: 400 20px/1.2 var(--display); }
.day-n span { color: var(--muted); font-size: 14px; }
.days ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.days ul li { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.days ul li > span:nth-child(2) { flex: 1; min-width: 200px; }
.days .meta { display: block; color: var(--muted); font-size: 14px; }
.days a { color: inherit; }
@media (max-width: 700px) { .days > li { grid-template-columns: 1fr; gap: 6px; } }
.jr-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.jr-pager a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--ink); margin: 0; }
.jr-pager a:hover b { text-decoration: underline; text-underline-offset: 3px; }
.jr-pager .next { text-align: right; grid-column: 2; }
@media (max-width: 700px) { .jr-pager { grid-template-columns: 1fr; } .jr-pager .next { grid-column: 1; text-align: left; } }
.sg-mode svg { width: .8em; height: .8em; vertical-align: -.02em; }
.sg-route { display: grid; grid-template-columns: 1fr minmax(120px, 1.2fr) 1fr; gap: 20px; align-items: center; }
.sg-end { display: flex; flex-direction: column; gap: 4px; }
.sg-end:last-child { text-align: right; }
.sg-code { font: 400 clamp(32px, 5vw, 56px)/1 var(--display); }
.sg-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); font-size: 14px; }
.sg-mid i { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; position: relative; }
.sg-mid i::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--ink); border-right: 0; }
@media (max-width: 700px) { .sg-route { grid-template-columns: 1fr; } .sg-end:last-child { text-align: left; } .sg-mid { align-items: flex-start; } }
.sg-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 20px; margin: 0; }
.sg-facts dt { color: var(--muted); font-size: 14px; }
.sg-facts dd { margin: 2px 0 0; font-size: 17px; }
.sg-facts a { color: inherit; }
.sg-context { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: 16px; }
.sg-context a { color: inherit; }
.sg-pager { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 0; }
#map.short { height: 320px; }
.l-prog .lbl a { color: inherit; text-decoration: none; }
.l-prog .lbl a:hover { text-decoration: underline; text-underline-offset: 3px; }
.record b a { color: inherit; text-decoration: none; }
.record b a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Перелёты и наземные: подвкладки, ангар, часы, места ---------- */
.sub-tabs { display: flex; gap: 4px; margin: 0 0 18px; padding: 4px; border-radius: 14px; background: var(--sheet-2); width: max-content; max-width: 100%; overflow-x: auto; }
.sub-tabs a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 10px; min-height: 40px; display: inline-flex; align-items: center; white-space: nowrap; }
.sub-tabs a:hover { color: var(--ink); }
.sub-tabs a[aria-current="page"] { color: var(--ink); font-weight: 650; background: var(--sheet); box-shadow: 0 0 0 1px var(--line); }
.md-grid { margin-top: 24px; }
.md-grid > .sheet { display: flex; flex-direction: column; }
.md-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px 24px; }
.md-kinds li { display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 10px 0; border-top: 1px solid var(--line); }
.md-kinds li > .num { font-weight: 650; }
.md-kinds li > .small { grid-column: 2 / -1; }
.md-hangar { --track: min(380px, 100%); }
.md-hangar ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.md-hangar li { display: grid; grid-template-columns: var(--track) 1fr; gap: 4px 24px; align-items: end; }
.md-hangar li p { margin: 0 0 4px; }
.sil-row { display: block; border-bottom: 1px dashed var(--line); padding-bottom: 3px; }
.sil { display: block; background: var(--ink-2); -webkit-mask: var(--sil) left bottom / contain no-repeat; mask: var(--sil) left bottom / contain no-repeat; }
.sil.rail { height: 22px; background: var(--teal); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.sil-row:hover .sil { background: var(--red); }
.ruler { position: relative; width: var(--track); height: 26px; margin-top: 14px; border-top: 1px solid var(--ink-2); }
.ruler span { position: absolute; top: 0; transform: translateX(-50%); font-size: 12px; color: var(--muted); padding-top: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ruler span::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 6px; background: var(--ink-2); }
.ruler span:first-child { transform: none; }
.ruler span:first-child::before { left: 0; }
.md-credit { margin: 10px 0 0; }
.md-records { display: grid; }
.md-records .record { text-decoration: none; color: inherit; display: grid; gap: 2px; }
.md-records .record:hover b { text-decoration: underline; text-underline-offset: 3px; }
.md-hours { display: grid; grid-template-columns: repeat(24, 1fr); align-items: end; gap: 3px; height: 120px; margin: 0; }
.md-hours span { background: var(--ink-2); border-radius: 3px 3px 0 0; min-height: 2px; opacity: .55; }
.md-hours span.peak { background: var(--red); opacity: 1; }
.md-hours-axis { display: flex; justify-content: space-between; margin-top: 6px; }
.md-seats { display: flex; gap: 6px; align-items: stretch; }
.md-seats span { flex: 1; display: grid; place-items: center; gap: 2px; padding: 10px 0; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); background: color-mix(in srgb, var(--teal) calc(var(--a) * 100%), var(--sheet)); }
.md-seats span.hi, .md-matrix td.hi { color: #fff; }
.md-seats .aisle { width: 18px; flex: none; }
.md-zones { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.md-matrix { width: 100%; border-collapse: separate; border-spacing: 4px; font-size: 14px; }
.md-matrix th { font-weight: 400; color: var(--muted); text-align: left; }
.md-matrix thead th { text-align: center; }
.md-matrix td { text-align: center; padding: 10px 0; border-radius: 8px; background: color-mix(in srgb, var(--teal) calc(var(--a) * 100%), var(--sheet-2)); }
.md-log { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.md-log li { display: grid; grid-template-columns: 24px 110px 1fr; gap: 2px 12px; align-items: baseline; padding: 9px 0; }
.md-log li + li { border-top: 1px solid var(--line); }
.md-log li .meta { grid-column: 3; }
.md-log a { color: inherit; text-decoration: none; }
.md-log a:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .md-log li { grid-template-columns: 24px 1fr; }
  .md-log li > .num { grid-column: 2; }
  .md-log li > a, .md-log li .meta { grid-column: 2; }
  .md-seats { gap: 4px; }
  .md-hangar li { grid-template-columns: 1fr; }
  .md-kmy { gap: 3px; height: 180px; }
  .md-kmy .n, .md-kmy .y { font-size: 10px; letter-spacing: -.02em; }
  .md-kmy .y .cc, .l-years .y .cc { display: none; }
  .sub-tabs { width: 100%; overflow: visible; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sub-tabs a { justify-content: center; text-align: center; padding: 6px 6px; white-space: normal; line-height: 1.2; font-size: 15px; }
  .md-seats .aisle { width: 8px; }
}

/* ---------- Отели и места ---------- */
.ht-year { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 22px 0 4px; padding-bottom: 6px; border-bottom: 2px solid var(--ink); font: 400 22px/1.2 var(--display); }
.ht-year:first-of-type { margin-top: 4px; }
.md-log.ht-log, .md-log.pl-log { max-height: none; overflow: visible; }
.md-log.ht-log li, .md-log.pl-log li { grid-template-columns: 130px 1fr auto; }
.md-log.ht-log li .meta, .md-log.pl-log li .meta { display: block; grid-column: auto; margin-top: 2px; }
.md-log.ht-log a, .md-log.pl-log a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.pl-log .bar { display: block; height: 3px; border-radius: 3px; background: var(--sheet-2); margin-top: 8px; max-width: 320px; overflow: hidden; }
.pl-log .bar i { display: block; height: 100%; background: var(--teal); }
.tag.design { background: var(--teal-soft); color: var(--teal); }
.tag.award { background: rgba(158, 59, 47, .12); color: var(--red); }
.tag.legend { background: rgba(134, 101, 42, .14); color: var(--ochre); }
.ht-show { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px 28px; }
.ht-show li { display: grid; gap: 4px; align-content: start; padding-top: 12px; border-top: 1px solid var(--line); }
.ht-show .tag { justify-self: start; }
.ht-show b { font: 400 21px/1.2 var(--display); }
.ht-show b a { color: inherit; text-decoration: none; }
.ht-show b a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ht-show p { margin: 4px 0 0; font-size: 15px; }
.ht-tried { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 28px; }
.ht-tried > li { padding-top: 12px; border-top: 1px solid var(--line); }
.ht-tried > li > p { margin: 0 0 8px; }
.ht-tried > li > p .num { font: 400 26px/1 var(--display); margin-left: 6px; }
.ht-tried a { color: inherit; }
.ht-tried ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.ht-tried ol li { display: flex; justify-content: space-between; gap: 12px; }
.ht-money { gap: 24px; align-items: start; }
.ht-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ht-top li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; }
.ht-top li .small { grid-column: 1; }
.ht-top li .num { grid-column: 2; grid-row: 1; font-weight: 650; }
.ht-top a { color: inherit; }
@media (max-width: 600px) {
  .md-log.ht-log li, .md-log.pl-log li { grid-template-columns: 1fr auto; }
  .md-log.ht-log li > .num, .md-log.pl-log li > .num { grid-column: 1 / -1; }
  .md-log.ht-log li > span:not(.num), .md-log.pl-log li > span:not(.num) { grid-column: 1; }
}

/* дашборд: пульс, год к году, выводы, календарь, открытия, компас */
.d-pulse { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.d-pulse > li > a, .d-pulse > li > div { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px; border-radius: var(--r); background: var(--sheet); border: 1px solid var(--line); color: inherit; text-decoration: none; }
.d-pulse > li > a:hover { border-color: var(--teal); }
.d-pulse b { font-size: 17px; line-height: 1.3; }
.d-pace { position: relative; display: block; height: 6px; margin-top: 8px; border-radius: 3px; background: var(--sheet-2); }
.d-pace i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--teal); }
.d-pace s { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--red); }
.d-yoy { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px 20px; }
.d-yoy li { display: flex; flex-direction: column; gap: 2px; }
.d-yoy b { font-family: var(--display); font-size: 30px; font-weight: 400; line-height: 1.1; }
.d-yoy .up { color: var(--teal); } .d-yoy .down { color: var(--red); }
.d-insights { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.d-insights > .sheet { margin: 0; padding: 16px 18px; color: inherit; text-decoration: none; line-height: 1.45; }
.d-insights > a.sheet:hover { box-shadow: inset 0 0 0 1px var(--teal); }
.d-insights > a span { color: var(--teal); }
.d-cal-lead { margin: 0 0 16px; max-width: 70ch; }
.d-cal-lead b { font-size: 20px; }
.d-cal-grid { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 10px; align-items: center; }
.d-cal-grid .y { font-size: 13px; color: var(--muted); text-decoration: none; }
.d-cal-grid .y:hover { color: var(--teal); }
.d-cal-grid .w { display: grid; grid-template-columns: repeat(53, minmax(0, 1fr)); gap: 2px; }
.d-cal-grid .w i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--sheet-2); }
.d-cal-grid .w i[style] { background: rgba(47, 93, 87, var(--a)); }
.d-cal-m { position: relative; height: 16px; font-size: 11px; color: var(--muted); }
.d-cal-m i { position: absolute; top: 0; font-style: normal; }
.d-disc { list-style: none; margin: 0; padding: 0; }
.d-disc li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.d-disc li:first-child { border-top: 0; padding-top: 0; }
.d-disc .y { color: var(--muted); font-size: 13px; padding-top: 2px; }
.d-disc b { font-weight: 600; }
.d-compass { display: grid; grid-template-columns: 1fr 120px 1fr; grid-template-areas: "n n n" "w r e" "s s s"; gap: 10px; align-items: center; }
.d-compass a { display: flex; flex-direction: column; color: inherit; text-decoration: none; text-align: center; }
.d-compass a:hover b { color: var(--teal); }
.d-compass b { white-space: nowrap; }
.d-compass .n { grid-area: n; } .d-compass .s { grid-area: s; } .d-compass .w { grid-area: w; text-align: right; } .d-compass .e { grid-area: e; text-align: left; }
.d-compass .rose { grid-area: r; width: 100%; color: var(--ink-2); }
@media (max-width: 600px) {
  .d-cal-grid { grid-template-columns: 34px minmax(0, 1fr); gap: 3px 6px; }
  .d-cal-grid .w { gap: 1px; }
  .d-cal-grid .w i { aspect-ratio: auto; height: 12px; border-radius: 1px; }
  .d-compass { grid-template-columns: 1fr 72px 1fr; }
  .d-yoy b { font-size: 24px; }
}
.nw { white-space: nowrap; }

/* «Регионы» */
.rg-head { margin-top: 40px; }
.rg-head h2 { margin: 0; }
.rg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 16px; }
.rg-grid > .sheet { margin: 0; }
.rg-card { display: flex; flex-direction: column; gap: 10px; }
.rg-card h3 { margin: 0; font-size: 18px; }
.rg-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rg-n { color: var(--muted); font-size: 14px; white-space: nowrap; }
.rg-n b { color: var(--ink); font-size: 20px; font-weight: 650; }
.rg-sub { margin: -6px 0 0; }
.rg-zero .rg-n b { color: var(--muted); }
.rg-flags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; font-size: 20px; line-height: 1.25; }
.rg-flags li { cursor: default; }
.rg-flags li.off span { filter: grayscale(1); opacity: .28; }
.rg-flags li.tr span { opacity: .6; }
.rg-subs summary { cursor: pointer; font-size: 14px; color: var(--teal); }
.rg-subs ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.rg-subs li { display: grid; gap: 2px; }
.rg-subs .rg-n b { font-size: 15px; }
.rg-names { margin: 0; line-height: 1.6; }
.rg-names .on { font-weight: 650; }
.rg-legend { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; }
.rg-legend li { display: inline-flex; align-items: center; gap: 6px; }
.rg-legend i { display: inline-block; width: 14px; height: 14px; border-radius: 3px; border: 1px solid rgba(158, 59, 47, .35); vertical-align: -2px; }
.rg-legend .lv0 { background: rgba(158, 59, 47, .06); border-style: dashed; }
.rg-legend .lv1, .rg-ru .lv1 { background: rgba(158, 59, 47, .2); fill: rgba(158, 59, 47, .2); }
.rg-legend .lv2, .rg-ru .lv2 { background: rgba(158, 59, 47, .36); fill: rgba(158, 59, 47, .36); }
.rg-legend .lv3, .rg-ru .lv3 { background: rgba(158, 59, 47, .54); fill: rgba(158, 59, 47, .54); }
.rg-legend .lv4, .rg-ru .lv4 { background: rgba(158, 59, 47, .74); fill: rgba(158, 59, 47, .74); }
.map-sheet .rg-legend { padding: 0 4px 2px; }
.rg-ru { margin: 20px 0 0; }
.rg-ru svg { display: block; width: 100%; height: auto; }
.rg-ru path { fill: var(--sheet-2); stroke: var(--sheet); stroke-width: .6; stroke-linejoin: round; }
.rg-ru path:not(.lv0) { stroke: rgba(158, 59, 47, .45); }
.rg-ru a path:hover { fill: rgba(158, 59, 47, .75); }
.rg-ru circle { fill: var(--sheet); stroke: var(--ink); stroke-width: .7; }
.rg-cum .stack i.r { background: var(--red); }
.rg-cum .stack i.o { background: var(--ink-2); opacity: .45; }
@media (max-width: 600px) {
  .rg-grid { grid-template-columns: 1fr; }
  .rg-flags { font-size: 18px; }
}

/* ---- Культура ---- */
.cu-tabs small { margin-left: 6px; color: var(--muted); font-size: 13px; }
.cu-note { color: var(--ink-2); line-height: 1.55; }
.cu-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 16px; align-items: start; }
.cu-groups > .sheet { margin: 0; }
.cu-group h2 { font-size: 18px; margin: 0; }
.cu-list { list-style: none; margin: 12px 0 0; padding: 0; }
.cu-cols { margin: 0; columns: 2 420px; column-gap: 32px; }
.cu-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); break-inside: avoid; }
.cu-list > .cu-row:first-child { border-top: 0; }
.cu-toggle { margin: 0; flex: none; }
.cu-check { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; color: transparent; }
.cu-check::before { content: ""; grid-area: 1 / 1; width: 22px; height: 22px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px rgba(23, 37, 42, .3); background: var(--sheet); }
.cu-check svg { grid-area: 1 / 1; position: relative; }
.cu-check:hover::before { box-shadow: inset 0 0 0 1.5px var(--ink-2); }
.cu-row.on .cu-check { color: #fff; }
.cu-row.on .cu-check::before { background: var(--teal); box-shadow: none; }
.cu-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; padding: 4px 0; }
.cu-name { line-height: 1.3; }
.cu-row:not(.on) .cu-name { color: var(--ink-2); }
.cu-row.on .cu-name { font-weight: 600; }
.cu-rank { display: inline-block; min-width: 2.2em; color: var(--muted); font-weight: 400; }
.cu-top { color: var(--ochre); font-size: 13px; cursor: help; }
.cu-src { font-size: 11px; font-weight: 600; letter-spacing: .02em; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; text-decoration: none; white-space: nowrap; cursor: help; vertical-align: 1px; }
.cu-sub { color: var(--muted); }
.cu-warn { color: var(--red); }
.cu-inside { border: 1px solid var(--line); background: none; border-radius: 8px; font: inherit; font-size: 13px; color: var(--muted); padding: 0 10px; min-height: 32px; cursor: pointer; }
.cu-inside[aria-pressed="true"] { background: var(--sheet-2); color: var(--ink); border-color: var(--ink-2); }
.cu-date { flex: none; font-size: 13px; color: var(--muted); text-decoration: none; min-width: 44px; min-height: 40px; display: inline-flex; align-items: center; justify-content: flex-end; }
.cu-date:hover { color: var(--ink); }
.cu-row:not(.on) .cu-date { opacity: .5; }
.cu-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.cu-steps li { flex: 1; text-align: center; font-size: 12px; color: var(--muted); padding: 3px 0; border-radius: 6px; background: var(--sheet-2); }
.cu-steps li.on { background: var(--teal); color: #fff; font-weight: 600; }
.cu-ach .rg-card { cursor: default; }
.cu-two { margin-top: 24px; }
.cu-two > .sheet { margin: 0; }
.cu-near { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; line-height: 1.45; }
@media (max-width: 600px) {
  .cu-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cu-tabs a { flex-direction: column; font-size: 14px; }
  .cu-tabs small { margin: 0; }
  .cu-groups { grid-template-columns: 1fr; }
  .cu-inside { padding: 0 6px; }
}
.cu-tabs { margin-top: 22px; }
.cu-flag { margin-right: .35em; }
/* узкий экран: пять разделов не влезают — меню прокручивается, край гаснет */
.me-icon { color: var(--ink-2); min-width: 44px; min-height: 44px; align-items: center; justify-content: center; border-radius: 10px; flex: none; }
@media (max-width: 760px) {
  a.me-icon.mobile-only { display: inline-flex; }
  .me-icon[aria-current="page"] { color: var(--ink); background: var(--sheet-2); }
  .top .nav { min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  .top .nav::-webkit-scrollbar { display: none; }
  .top .nav.at-end { -webkit-mask-image: none; mask-image: none; }
  .nav a { white-space: nowrap; flex: none; }
}

/* ---- Деньги на обзоре ---- */
.d-money > .sheet { margin: 0; }
.d-money .l-years .stack i.o { background: var(--ochre); }
.d-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 4px 0 8px; vertical-align: 0; }
.d-key.r { background: var(--red); } .d-key.o { background: var(--ochre); }
.d-perkm { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.d-perkm li { display: grid; grid-template-columns: 90px auto 1fr; gap: 12px; align-items: baseline; }
.d-perkm .muted { text-align: right; }
@media (max-width: 600px) { .d-perkm li { grid-template-columns: 1fr auto; } .d-perkm .muted { grid-column: 1 / -1; text-align: left; } }
