/* «Штамп» — язык личного трекера путешествий, светлая тема «Дневной рейс»:
   бумага талона, тёплые чернила, янтарь — акцент, небо — перелёты, зелень — поезда,
   фиолетовый — дороги. Шрифт — Inter (OFL) с кириллицей: у прежних Switzer и Cabinet Grotesk её не было,
   и русский текст набирался системным шрифтом. Файлы лежат у нас, подмножествами по unicode-range. */
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-cyrillic.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-latin-ext.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("/static/fonts/Inter-symbols.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+2190-2199, U+2248, U+2260, U+2264-2265; }

:root {
  color-scheme: light;
  /* токены трекера (светлая тема) — ими же живёт обзор в обёртке .tt */
  --bg: #f4f1ea; --bg-grad-1: #eef0f2; --bg-grad-2: #f4f1ea;
  --panel: #fbf9f4; --panel-2: #efeade; --panel-hover: #e9e2d2;
  --border: #d5cdbc; --border-soft: #e4ddcd;
  --text: #1c2333; --text-2: #434d63;
  --brand: #d97706; --brand-strong: #b45309; --brand-text: #8a4d04; --brand-dim: rgba(217, 119, 6, .12);
  --sky: #1f6fc4; --sky-text: #175a9e; --sky-dim: rgba(31, 111, 196, .12);
  --train: #0e7a56; --violet: #6d51d8;
  --lip: rgba(255, 255, 255, .65);

  /* имена Штампа — на тех же значениях: страницы вне обзора говорят тем же языком */
  --paper: var(--bg);
  --sheet: var(--panel);
  --sheet-2: var(--panel-2);
  --ink: var(--text);
  --ink-2: var(--text-2);
  --muted: #5d6577;
  --line: rgba(28, 35, 51, .11);
  --red: var(--sky);                 /* серия «перелёты» */
  --red-soft: var(--sky-dim);
  --teal: var(--train);              /* серия «поезда» */
  --teal-soft: rgba(14, 122, 86, .12);
  --ochre: var(--brand-strong);      /* отели и прочее */
  --danger: #b42318; --danger-soft: rgba(180, 35, 24, .1);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: var(--font);
  --font-display: var(--display);
  --font-mono: var(--display);
  --r: 16px; --r-sm: 10px; --r-lg: 22px; --r-in: 8px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--ink); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-optical-sizing: auto; font-feature-settings: "cv11", "ss03";
  /* направленный тёплый луч слева-сверху и светлое небо над бумагой — как в трекере */
  background:
    linear-gradient(155deg, rgba(217, 119, 6, .06) 0%, transparent 30%),
    radial-gradient(120% 55% at 50% -20%, var(--bg-grad-1), var(--bg-grad-2) 70%) no-repeat,
    var(--bg);
  min-height: 100vh;
  position: relative;
}
/* зерно под контентом, не поверх текста */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}
a { color: inherit; text-decoration-color: rgba(28, 35, 51, .3); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--brand); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 4px; }
.num, table { font-variant-numeric: tabular-nums; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: -.015em; margin: 0; line-height: 1.12; }
h2 { font-size: 26px; }
h3 { font-size: 19px; font-weight: 700; }
.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: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--border-soft); }
@supports not (backdrop-filter: blur(1px)) { .top { background: var(--bg); } }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand svg { width: 28px; height: 28px; flex: none; transition: transform .5s cubic-bezier(.3, 1.4, .5, 1); }
.brand:hover svg { transform: rotate(-14deg); }
.brand b { font: 800 23px/1 var(--display); letter-spacing: -.01em; }
.nav { display: flex; gap: 6px; flex: 1; }
.nav a {
  position: relative; text-decoration: none; padding: 10px 4px 10px 16px; color: var(--muted);
  font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; gap: 6px;
  transition: color .15s ease;
}
.nav a::before {
  content: ""; position: absolute; left: 4px; top: 50%; width: 5px; height: 5px; border-radius: 50%;
  transform: translateY(-50%); background: transparent;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 800; }
.nav a[aria-current="page"]::before { background: var(--brand-strong); }
.nav .count { font-size: 12px; font-weight: 700; color: #fff; background: var(--brand-strong); 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; font-weight: 600; }
.linkbtn:hover { color: var(--ink); }

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

/* --- листы: тональная ступень от бумаги + край в цвет листа --- */
.sheet {
  background: var(--panel); border-radius: var(--r); padding: 26px 28px;
  box-shadow: inset 0 0 0 1px rgba(120, 100, 60, .1), 0 1px 0 var(--lip) 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: 800 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(--font); 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: 800 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(--font); 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: 700 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: 700 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(28, 35, 51, .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(--brand); 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(28, 35, 51, .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(180, 83, 9, .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(--font); 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: #2d3650; }
.btn.red { background: var(--brand-strong); color: #fff; }
.btn.red:hover { background: #9a4a08; }
.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(--danger-soft); color: #7a1d14; border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.ok { background: var(--teal-soft); color: #0b4d37; 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(14, 122, 86, .35); border-radius: var(--r); padding: 28px; text-align: center;
  background: rgba(14, 122, 86, .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: 800 clamp(64px, 11vw, 150px)/.95 var(--display); letter-spacing: -.01em; }
.poster .lbl { color: #b7c0d8; font-size: 15px; }
.poster .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 34px; }
.poster .grid b { display: block; font: 800 44px/1 var(--display); }
.poster #map { height: 300px; border-radius: 14px; margin-top: 30px; }
.poster .delta { color: #ffbe5c; 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: 800 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(--font); font-weight: 650; color: var(--muted); letter-spacing: 0; }
.l-fact { font: 700 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(28, 35, 51, .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: 800 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(--brand); 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: rgba(217,119,6,.10); color: var(--brand-text); box-shadow: inset 0 0 0 1px rgba(180,83,9,.28); }
.l-singles li.on b { color: var(--brand-text); }
.l-singles li.on::before { content: "✓"; margin-right: 6px; font-weight: 700; color: var(--brand-strong); }

.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(28, 35, 51, .06), 0 8px 24px -12px rgba(28, 35, 51, .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(28, 35, 51, .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(--font); 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: 700 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: 800 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(28, 35, 51, .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: 800 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: 700 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: 800 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: 700 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(217, 119, 6, .12); color: var(--red); }
.tag.legend { background: rgba(180, 83, 9, .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: 700 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: 800 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: 800; 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(180, 83, 9, 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(217, 119, 6, .35); vertical-align: -2px; }
.rg-legend .lv0 { background: rgba(217, 119, 6, .06); border-style: dashed; }
.rg-legend .lv1, .rg-ru .lv1 { background: rgba(217, 119, 6, .2); fill: rgba(217, 119, 6, .2); }
.rg-legend .lv2, .rg-ru .lv2 { background: rgba(217, 119, 6, .36); fill: rgba(217, 119, 6, .36); }
.rg-legend .lv3, .rg-ru .lv3 { background: rgba(217, 119, 6, .54); fill: rgba(217, 119, 6, .54); }
.rg-legend .lv4, .rg-ru .lv4 { background: rgba(217, 119, 6, .74); fill: rgba(217, 119, 6, .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(217, 119, 6, .45); }
.rg-ru a path:hover { fill: rgba(217, 119, 6, .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(28, 35, 51, .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:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
  .top .nav.at-end { -webkit-mask-image: none; mask-image: none; }
  .top .nav.at-end:not(.at-start) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
  .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; } }

/* ===== Обзор в языке трекера: обёртка .tt и то, чего в tt.css нет ===== */
div.tt { --pad: 0; --maxw: none; }  /* tt.css ставит свои поля; у Штампа они уже у .wrap */
.tt .bar.violet i { background: var(--violet); }
.tt .chart-legend .dot--air { background: var(--sky); }
.tt .chart-legend .dot--train { background: var(--train); }
.tt .chart-legend .dot--car { background: var(--violet); }
.tt .tt-empty { padding: 32px 0; }

/* столбцы «по годам / по месяцам / по дням недели» — CSS вместо Chart.js */
.tt .tt-bars { margin: 6px 0 0; height: 220px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; }
.tt .tt-bars[hidden] { display: none; }
.tt .tt-bar { height: 100%; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.tt .tt-bar__n { font: 600 12px/1 var(--font); color: var(--text-2); font-variant-numeric: tabular-nums; }
.tt .tt-bar__stack { align-self: end; width: min(100%, 34px); display: flex; flex-direction: column-reverse; border-radius: 6px 6px 2px 2px; overflow: hidden; min-height: 2px; }
.tt .tt-bar__stack i { display: block; min-height: 0; }
.tt .tt-bar__stack .r { background: var(--sky); }
.tt .tt-bar__stack .t { background: var(--train); }
.tt .tt-bar__stack .o { background: var(--violet); }
.tt .tt-bar__stack .w { flex: 1; background: var(--brand); }
.tt .tt-bar__y { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tt a.tt-bar:hover .tt-bar__stack { filter: brightness(1.08); }
.tt a.tt-bar:hover .tt-bar__y { color: var(--brand-text); }
.tt .tt-bars + .tt-bars, .tt .tt-bars + .chart-legend { margin-top: 14px; }

/* все ачивки — раскрываются под дашбордом ачивок */
.tt .tt-more { margin-top: 18px; }
.tt .tt-more > summary { cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font-weight: 600; color: var(--brand-text); list-style: none; }
.tt .tt-more > summary::-webkit-details-marker { display: none; }
.tt .tt-more > summary::after { content: ""; width: 7px; height: 7px; border-right: 1.7px solid currentColor; border-bottom: 1.7px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.tt .tt-more[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.tt .ach-all { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.tt .ach-all li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 12px 14px; border-radius: 12px; background: var(--panel-2); color: var(--muted); font-size: 13px; }
.tt .ach-all li b { color: var(--text-2); font-size: 14px; }
.tt .ach-all li > span:not(.ach-steps) { grid-column: 1; }
.tt .ach-all li.is-on { background: var(--brand-dim); color: var(--brand-text); }
.tt .ach-all li.is-on b { color: var(--text); }
.tt .ach-steps { grid-column: 2; grid-row: 1 / 3; align-self: center; display: flex; gap: 3px; }
.tt .ach-steps i { width: 8px; height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border); }
.tt .ach-steps i.on { background: var(--brand); box-shadow: none; }
.tt .ach-ok { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 18px; height: 18px; color: var(--brand-strong); }

/* деньги — внизу, под замком, открываются одним нажатием */
.tt .tt-money { margin-top: var(--rhythm, 44px); border: 1px solid var(--border-soft); border-radius: 16px; background: var(--panel); padding: 0; }
.tt .tt-money > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; min-height: 44px; border-radius: 16px; }
.tt .tt-money > summary::-webkit-details-marker { display: none; }
.tt .tt-money > summary:hover { background: var(--panel-2); }
.tt .tt-money__lock { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-dim); color: var(--brand-strong); }
.tt .tt-money__lock svg { width: 20px; height: 20px; }
.tt .tt-money__t { display: grid; gap: 2px; }
.tt .tt-money__t b { font: 700 18px/1.2 var(--display); color: var(--text); }
.tt .tt-money__t span { font-size: 13px; color: var(--muted); }
.tt .tt-money .is-open, .tt .tt-money[open] .is-shut { display: none; }
.tt .tt-money[open] .is-open { display: inline; }
.tt .tt-money__body { padding: 4px 22px 22px; }
.tt .compass-row { color: inherit; text-decoration: none; }
.tt .compass-row:hover b { color: var(--brand-text); }
/* небо героя — во всю ширину окна (100vw), полоса прокрутки не должна давать горизонтальный скролл */
html, body { overflow-x: clip; }
/* на телефоне маршруты вытянуты по долготе: квадратная карта оставляла пустое поле снизу */
@media (max-width: 560px) { div.tt #map { height: 260px; } }

/* Друзья: ваш ник — заметно и с кнопкой «Изменить» */
.my-handle { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.my-handle > div:first-child { display: grid; gap: 4px; }
.my-handle b { font: 800 30px/1.1 var(--display); color: var(--ink); letter-spacing: -.01em; }
.my-handle .acts { display: flex; gap: 8px; flex-wrap: wrap; }
/* Настройки: поле ника с неизменяемым «@» */
.at-input { display: flex; align-items: center; border: 1px solid rgba(28, 35, 51, .2); border-radius: 10px; background: #fff; }
.at-input span { padding: 0 2px 0 12px; color: var(--muted); font-weight: 600; }
.at-input input { border: 0; background: transparent; padding-left: 4px; }
.at-input:focus-within { outline: 2px solid var(--brand); border-color: transparent; }
.at-input input:focus { outline: none; box-shadow: none; }
[id] { scroll-margin-top: 84px; }  /* якорь не прячется под липкой шапкой */

/* ===== Лендинг в языке обзора (.tt.lp) ===== */
.lp .lp-hero .hero-lead { text-align: center; }
.lp .lp-title { font: 760 clamp(40px, 6.4vw, 80px)/1.04 var(--display); letter-spacing: -.012em; color: var(--text); margin: 10px auto 0; max-width: 13em; text-wrap: balance; }
.lp .lp-sub { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.5; color: var(--text-2); max-width: 34em; margin: 20px auto 0; text-wrap: pretty; }
.lp .lp-cta { display: flex; gap: 12px 22px; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.lp .lp-cta .btn { min-height: 48px; padding-inline: 22px; }
.lp .lp-login { color: var(--brand-text); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.lp .lp-login:hover { text-decoration: underline; text-underline-offset: 3px; }
.lp .lp-ru { margin-top: 28px; }
.lp .lp-map-ru { height: 360px; border-radius: calc(var(--r-lg) - 8px); background: rgb(226, 227, 224); }
.lp .lp-ru .section-head .legend-note { margin: 0; color: var(--muted); font-size: 13px; }

.lp .lp-regions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 28px; }
.lp .lp-region { display: grid; gap: 8px; align-content: start; }
.lp .lp-region__n { font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.lp .lp-region__n b { font: 800 40px/1 var(--display); color: var(--brand-text); margin-right: 4px; letter-spacing: -.01em; }
.lp .lp-region__t { font-weight: 600; color: var(--text); }
.lp .lp-region__note { font-size: 13px; color: var(--muted); line-height: 1.4; }

.lp .lp-soon { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--violet); background: rgba(109, 81, 216, .1); padding: 5px 10px; border-radius: 999px; }
.lp .lp-rating__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px 44px; align-items: start; }
.lp .lp-rating__lead { font: 700 clamp(20px, 2.2vw, 26px)/1.3 var(--display); color: var(--text); margin: 0 0 18px; text-wrap: balance; }
.lp .lp-rating__what, .lp .lp-chan { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.lp .lp-rating__what li, .lp .lp-chan li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-2); line-height: 1.5; }
.lp .lp-rating__what svg, .lp .lp-chan svg { width: 20px; height: 20px; margin-top: 2px; color: var(--brand-strong); }
.lp .lp-rating__what b, .lp .lp-chan b { color: var(--text); }
.lp .lp-board { list-style: none; margin: 0; padding: 8px; border-radius: 16px; background: var(--panel); border: 1px solid var(--border-soft); display: grid; gap: 4px; }
.lp .lp-board li { display: grid; grid-template-columns: 28px 1fr auto auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 10px; font-variant-numeric: tabular-nums; }
.lp .lp-board li.is-me { background: var(--brand-dim); }
.lp .lp-board__pos { font: 800 18px/1 var(--display); color: var(--muted); text-align: center; }
.lp .lp-board li.is-me .lp-board__pos, .lp .lp-board li.is-me .lp-board__name { color: var(--brand-text); }
.lp .lp-board__name { font-weight: 600; color: var(--text); }
.lp .lp-board__v { font-size: 14px; color: var(--muted); text-align: right; white-space: nowrap; }
.lp .lp-board__v b { color: var(--text); font-weight: 700; }

.lp .lp-flow { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px 48px; align-items: center; }
.lp .lp-flow h2 { margin: 0 0 12px; }
.lp .lp-flow__lead { font-size: 18px; line-height: 1.5; color: var(--text-2); margin: 0 0 22px; max-width: 34em; }
.lp .lp-flow .note { margin-top: 18px; }
.lp .l-next .l-lead { margin-top: 0; }
.lp .l-trust, .lp .l-join { margin-top: var(--rhythm, 44px); }

/* нижние блоки лендинга (l-*) остались от старого Штампа: синий «перелётов» как акцент,
   зелёная полоса сбоку, а `.tt section` обнуляет отступ листа — переводим на токены трекера */
.lp .rank__bar--none { visibility: hidden; }
.lp .l-fact { color: var(--text); }
.lp .l-fact b { font-weight: 800; color: var(--brand-text); }
.lp .l-hist { border-bottom-color: var(--border-soft); }
.lp .l-hist i { background: var(--border-soft); box-shadow: none; }
.lp .l-hist i.early { background: var(--brand); }
.lp .l-axis { color: var(--muted); }

.lp .l-mail { color: var(--muted); }
.lp .l-mail .msg, .lp .l-mail .row {
  background: var(--panel); color: var(--text-2); border: 1px solid var(--border-soft); border-radius: 16px;
  box-shadow: 0 1px 2px rgba(60, 48, 22, .05), 0 12px 28px -20px rgba(60, 48, 22, .3); }
.lp .l-mail .msg .hd { color: var(--text); border-bottom-color: var(--border-soft); }
.lp .l-mail .row { align-items: center; color: var(--text); }
.lp .l-mail .row .num { color: var(--text-2); font-variant-numeric: tabular-nums; }
.lp .l-mail .row .k { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--train); }
.lp .l-mail .row .k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.lp .l-lead { color: var(--text-2); font-size: 17px; }
.lp .l-cols { margin-top: 24px; gap: 28px 48px; }
.lp .l-cols h3 { margin: 0; font: 600 13px/1 var(--font); letter-spacing: 0; color: var(--muted); padding-bottom: 12px; border-bottom: 1px solid var(--border-soft); }
.lp .l-cols > div:first-child h3 { color: var(--brand-text); border-bottom: 2px solid var(--brand-strong); }
.lp .l-cols dt { font: 700 17px/1.25 var(--display); color: var(--text); margin-top: 16px; }
.lp .l-cols dd { color: var(--text-2); font-size: 14px; }
.lp .l-cols > div + div dt { color: var(--text); }

.lp .l-trust { border-color: var(--border-soft); font-size: 14px; padding-block: 22px; } /* .tt section обнуляет padding */
.lp .l-trust p { color: var(--text-2); font-size: 14px; text-wrap: pretty; }
.lp .l-trust b { color: var(--text); }

.lp .l-join {
  padding: 36px 40px; align-items: center; border-radius: var(--r-lg);
  background: var(--panel); border: 1px solid var(--border-soft);
  box-shadow: 0 1px 0 var(--lip) inset, 0 18px 40px -28px rgba(60, 48, 22, .35); }
.lp .l-join h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.08; letter-spacing: -.02em; color: var(--text); }
.lp .l-join > div p { color: var(--text-2); }
.lp .l-join a:not(.btn) { color: var(--brand-text); }

@media (max-width: 900px) {
  .lp .lp-regions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp .lp-rating__grid, .lp .lp-flow { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp .lp-map-ru { height: 240px; }
  .lp .lp-region__n b { font-size: 32px; }
  .lp .lp-board li { grid-template-columns: 22px 1fr auto; }
  .lp .lp-board li .lp-board__v:last-child { display: none; }
  .lp .l-join { padding: 24px 20px; }
}

/* ===== Дизайн-система трекера на всех страницах (2026-10-03) =====
   Шапка, подвкладки, вкладки годов, сводка цифр и пометка «работа / личное» —
   один в один с travel-tracker: css/skymap.css (skyhero), style.css (subtabs, year-tabs, purpose-tag). */
:root { --split-personal: #4a5f85; }

/* шапка: в потоке страницы, без липкой плашки — как у трекера */
.top { position: relative; z-index: 20; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; border: 0; }
.top .wrap { height: auto; padding-top: 26px; padding-bottom: 14px; gap: 8px 16px; }
.brand { gap: 12px; color: inherit; }
.brand svg { width: 30px; height: 30px; }
.brand b { font: 800 24px/1 var(--display); letter-spacing: -.01em; }
.nav { gap: 12px; margin-left: 28px; flex: 1; }
.nav a { padding: 8px 2px 8px 14px; font-size: 15px; font-weight: 600; min-height: 40px; }
.nav a::before { left: 2px; }
.me { gap: 4px; }
.me .linkbtn { font-size: 15px; font-weight: 600; text-decoration: none; padding: 8px 10px; min-height: 40px; display: inline-flex; align-items: center; }
.me .linkbtn.who[aria-current="page"] { color: var(--ink); font-weight: 800; }
main { padding-top: 12px; }
@media (max-width: 1100px) { .nav { gap: 4px; margin-left: 16px; } }

/* заголовки: дисплейный гротеск в меру — крупно только главное число */
h2 { font-size: 20px; letter-spacing: -.02em; }
.sheet > .head h2, .head h2 { font-size: 20px; }
h1.lede { font-size: clamp(28px, 3.2vw, 36px) !important; line-height: 1.12; letter-spacing: -.02em; }

/* подвкладки раздела «Поездки»: строка с иконками и «таблеткой» у текущей */
.subtabs-row { margin: 0 0 22px; }
.subtabs { display: flex; gap: 8px; border-bottom: 1px solid var(--border-soft); padding-bottom: 10px; overflow-x: auto; scrollbar-width: none; }
.subtabs::-webkit-scrollbar { display: none; }
.subtab {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 8px; min-height: 40px;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  font: 600 16px/1 var(--display); transition: color .15s, background .15s;
}
.subtab svg { width: 16px; height: 16px; opacity: .85; flex: none; }
.subtab:hover { color: var(--text); }
.subtab[aria-current="page"] { color: var(--text); font-weight: 800; background: var(--panel-2); }
.subtab[aria-current="page"] svg { opacity: 1; color: var(--brand-text); }
@media (max-width: 560px) {
  .subtabs { margin-inline: -28px; padding-inline: 28px; gap: 4px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
  .subtab { padding: 8px 12px; font-size: 14px; }
}

/* вкладки годов: знак текущего — полоска снизу, не плашка */
.years { gap: 16px; margin-top: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.years::-webkit-scrollbar { display: none; }
.years a { position: relative; flex: none; padding: 8px 2px; min-height: 40px; border-radius: 0; font: 600 15px/1 var(--display); color: var(--muted); }
.years a:hover { background: none; color: var(--text); }
.years a[aria-current="true"] { background: none; box-shadow: none; color: var(--text); font-weight: 800; }
.years a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 4px; background: var(--brand-strong); }
@media (max-width: 720px) {
  .years { margin-inline: -28px; padding-inline: 28px;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}

/* сводка цифр: одно главное число крупно, остальное — ровной строкой «число подпись» */
.l-figs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 26px; margin: 0 0 6px; }
.l-figs > div { display: flex; flex-direction: row-reverse; justify-content: flex-end; align-items: baseline; gap: 6px;
  border: 0 !important; padding: 0; white-space: nowrap; min-width: 0; }
.l-figs dt { color: var(--muted); font-size: 13px; min-height: 0 !important; }
.l-figs dd { margin: 0; font: 700 20px/1.1 var(--display); color: var(--text-2); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.l-figs dd small { font: 500 13px var(--font); color: var(--muted); margin-left: 4px; }
.l-figs > div:first-child { flex-basis: 100%; gap: 10px; margin-bottom: 6px; }
.l-figs > div:first-child dd { font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: var(--brand-text); }
.l-figs > div:first-child dt { font-size: 14px; font-weight: 500; }
@media (max-width: 720px) {
  .l-figs { gap: 8px 20px; }
  .l-figs > div:first-child dd { font-size: 34px; }
  .l-figs dd { font-size: 18px; }
}
.d-report { padding: 24px 28px 18px; }
.l-foot { padding-top: 12px; }

/* пометка «работа / личное»: точка и слово, без плашки — как в карточках трекера */
.tag.work, .tag.personal { background: none; padding: 0; border-radius: 0; font-weight: 500; font-size: 13px; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; vertical-align: 0; }
.tag.work { color: var(--brand-text); }
.tag.personal { color: var(--split-personal); }
.tag.work::before, .tag.personal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* переключатель «рабочая / личная»: тихий сегмент, у выбранного — лист и цветная точка */
.jmark { display: inline-flex; flex-wrap: nowrap; gap: 2px; padding: 3px; margin: 8px 0 10px; border-radius: 10px; background: var(--panel-2); }
.jmark .muted { font-size: 12.5px; padding: 0 6px 0 8px; }
.jmark button.btn {
  position: relative; min-height: 30px; padding: 4px 11px; border-radius: 7px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: transparent; box-shadow: none; display: inline-flex; align-items: center; gap: 6px;
}
.jmark button.btn::after { content: ""; position: absolute; inset: -5px 0; }   /* зона нажатия 40px */
.jmark button.btn:hover { color: var(--text); background: transparent; }
.jmark button.btn[aria-pressed="true"] { background: var(--panel); color: var(--text); box-shadow: 0 1px 2px rgba(60, 48, 22, .12), inset 0 0 0 1px var(--border-soft); }
.jmark button.btn[aria-pressed="true"]::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.jmark button.btn[value="personal"][aria-pressed="true"]::before { background: var(--split-personal); }
.jmark button.btn[value=""] { padding: 4px 9px; }
/* сводка лежит на бумаге, без листа: главное число слева, остальное прижато вправо — как skyhero */
.sheet.d-report { background: none; box-shadow: none; padding: 0; border-radius: 0; margin-top: 22px; }
.l-figs { align-items: flex-end; }
.l-figs > div:first-child { flex-basis: auto; margin: 0 auto 0 0; }
.l-figs > div:not(:first-child) { padding-bottom: 4px; }
.d-report .l-foot { padding-top: 10px; border-top: 1px solid var(--border-soft); margin-top: 12px; }
@media (max-width: 720px) { .l-figs > div:first-child { flex-basis: 100%; } }

/* ===== Лендинг: главы ниже шапки (2026-10-06, drafts/2026-10-06-landing-lower-redesign.md) ===== */
.lp .lp-ch { margin-top: clamp(64px, 7vw, 96px); }
.lp .lp-h2 { font: 800 clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.02em; color: var(--text); margin: 0 0 14px; max-width: 18em; text-wrap: balance; }
.lp .lp-lead { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.55; color: var(--text-2); margin: 0 0 26px; max-width: 32em; text-wrap: pretty; }
.lp [data-chart-pane][hidden] { display: none; }

/* 1. импорт */
.lp .lp-import { display: grid; grid-template-columns: 1.05fr .95fr; gap: 28px 64px; align-items: center; }
.lp .lp-import .btn { min-height: 48px; padding-inline: 22px; }
.lp .lp-import .lp-chan { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 20px; padding-top: 26px; border-top: 1px solid var(--border-soft); }
.lp .lp-import .lp-chan li { display: flex; flex-direction: column; gap: 6px; }
.lp .lp-import .lp-chan svg { width: 22px; height: 22px; margin: 0 0 6px; color: var(--brand-strong); }
.lp .lp-import .lp-chan b { font: 700 17px/1.25 var(--display); color: var(--text); }
.lp .lp-import .lp-chan span { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.lp .lp-import__note { grid-column: 1 / -1; margin: 0; }

/* 2. карта */
.lp .lp-mapch__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 28px; flex-wrap: wrap; }
.lp .lp-mapch__head .lp-h2 { margin: 0; }
.lp .lp-mapch__legend { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 18px 0 16px; font-size: 14px; color: var(--text-2); }
.lp .lp-mapch__legend span { display: inline-flex; align-items: center; gap: 8px; }
.lp .lp-mapch__legend b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

/* 3. бенто фактов */
.lp .bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-top: 30px; }
.lp .tile { display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px; border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--panel) 86%, transparent); border: 1px solid var(--border-soft);
  transition: border-color .2s ease; min-width: 0; }
.lp .tile:hover { border-color: color-mix(in srgb, var(--brand) 32%, var(--border-soft)); }
.lp .tile--top { grid-column: span 5; }
.lp .tile--cal { grid-column: span 7; }
.lp .tile--rec, .lp .tile--earth, .lp .tile--world { grid-column: span 4; }
.lp .tile--compass { grid-column: span 12; }
.lp .tile__big { margin: 0; font-size: 17px; line-height: 1.35; font-weight: 600; color: var(--text); text-wrap: balance; }
.lp .tile__big b { display: block; margin-bottom: 6px; font: 800 clamp(40px, 4.2vw, 58px)/1 var(--display); letter-spacing: -.03em; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.lp .tile__sub { margin: -6px 0 0; font-size: 13px; color: var(--muted); }
.lp .tile__note { margin: auto 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.lp .tile__list { list-style: none; margin: auto 0 0; padding: 0; }
.lp .tile__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--text-2); }
.lp .tile__list b { color: var(--text); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lp .tile__list small { display: block; font-size: 12px; color: var(--muted); }
/* где вы были дольше всего: полосы по дням, статичные */
.lp .tile__bars { list-style: none; margin: auto 0 0; padding: 0; display: grid; gap: 10px; }
.lp .tile__bars li { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr) 4.2em; grid-template-areas: "name bar val" "n bar val"; column-gap: 14px; row-gap: 1px; align-items: center; font-size: 14px; color: var(--text-2); }
.lp .tile__bars-name { grid-area: name; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.lp .tile__bars-bar { grid-area: bar; height: 10px; border-radius: 5px; background: var(--brand-dim); overflow: hidden; }
.lp .tile__bars-bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.lp .tile__bars li:first-child .tile__bars-bar i { background: var(--brand-strong); }
.lp .tile__bars b { grid-area: val; text-align: right; color: var(--text); font-weight: 700; }
.lp .tile__bars small { grid-area: n; font-size: 12px; color: var(--muted); }
/* обороты вокруг Земли: полные кольца и неполное */
.lp .tile__laps { display: flex; gap: 8px; }
.lp .tile__laps svg { width: 52px; height: 52px; flex: 0 0 auto; }
.lp .tile__laps circle { fill: none; stroke-width: 5; }
.lp .tile__laps .bg { stroke: var(--brand-dim); }
.lp .tile__laps .fg { stroke: var(--brand); stroke-linecap: round; transform: rotate(-90deg); transform-origin: center; }
.lp .tile__laps .is-part .fg { stroke: var(--brand-strong); }
.lp .tile__laps text { font: 700 13px/1 var(--display); fill: var(--text-2); text-anchor: middle; dominant-baseline: central; }
.lp .tile .cal-grid { gap: 3px; }
.lp .tile .cal-cells { gap: 2px; }
.lp .tile__compass { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; }
.lp .tile__compass > div { padding-top: 12px; border-top: 1px solid var(--border-soft); }
.lp .tile__compass dt { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.lp .tile__compass dd { margin: 6px 0 0; display: flex; flex-direction: column; gap: 2px; }
.lp .tile__compass dd b { font: 700 19px/1.2 var(--display); color: var(--text); }
.lp .tile__compass dd span { font-size: 13px; color: var(--muted); }

/* 4. ачивки: заголовок-мысль в шапке секции */
.lp .ach .section-head { align-items: flex-end; }
.lp .ach .section-head .lp-h2 { margin: 0; font: 800 clamp(30px, 3.6vw, 46px)/1.08 var(--display); letter-spacing: -.02em; }

/* 5. куда дальше */
.lp .lp-next__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px 48px; align-items: start; margin-top: 26px; }
.lp .lp-next .l-cols { margin-top: 0; }
.lp .lp-rating { padding: 20px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--panel) 86%, transparent); border: 1px solid var(--border-soft); display: grid; gap: 14px; }
.lp .lp-rating__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lp .lp-rating__head h3 { margin: 0; font: 700 18px/1.2 var(--display); color: var(--text); }
.lp .lp-rating .lp-rating__lead { margin: 0; font: 700 clamp(19px, 1.8vw, 22px)/1.3 var(--display); color: var(--text); }
.lp .lp-rating .lp-board { background: var(--bg); }
.lp .lp-rating .tile__note { margin: 0; }

/* 6. доверие и вопросы */
.lp .lp-nots { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.lp .lp-nots li { padding-top: 18px; border-top: 1px solid var(--border); font-size: 14.5px; line-height: 1.5; color: var(--text-2); text-wrap: pretty; }
.lp .lp-nots b { display: block; margin-bottom: 6px; font: 700 19px/1.25 var(--display); color: var(--text); }
.lp .lp-faq { max-width: 780px; margin-top: 48px; border-top: 1px solid var(--border-soft); }
.lp .lp-faq details { border-bottom: 1px solid var(--border-soft); }
.lp .lp-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 56px; padding: 14px 0; cursor: pointer; list-style: none; font: 600 17px/1.35 var(--font); color: var(--text); }
.lp .lp-faq summary::-webkit-details-marker { display: none; }
.lp .lp-faq summary::after { content: "+"; flex: 0 0 auto; font: 400 24px/1 var(--font); color: var(--brand-text); transition: rotate .25s cubic-bezier(.22, 1, .36, 1); }
.lp .lp-faq details[open] summary::after { rotate: 45deg; }
.lp .lp-faq summary:focus-visible { outline: 2px solid var(--brand-strong); outline-offset: 4px; border-radius: 6px; }
.lp .lp-faq details p { margin: 0 0 18px; max-width: 62ch; font-size: 15px; line-height: 1.55; color: var(--text-2); }

/* 7. финал: то же небо, что в шапке */
.lp .lp-final { margin-top: clamp(64px, 7vw, 96px);
  background: linear-gradient(color-mix(in srgb, var(--panel) 62%, transparent), color-mix(in srgb, var(--panel) 84%, transparent)),
    url("/static/img/hero-sky-1536.webp") center 45% / cover no-repeat; }

@media (max-width: 900px) {
  .lp .lp-import { grid-template-columns: 1fr; }
  .lp .lp-import .lp-chan { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp .tile--top, .lp .tile--cal, .lp .tile--rec, .lp .tile--earth, .lp .tile--world, .lp .tile--compass { grid-column: 1 / -1; }
  .lp .lp-next__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .lp .lp-nots { grid-template-columns: 1fr; }
  /* четыре канала импорта на телефоне — сеткой 2×2, а не столбиком в полтора экрана */
  .lp .lp-import .lp-chan { gap: 22px 16px; }
  .lp .lp-import .lp-chan b { font-size: 15px; }
  .lp .lp-import .lp-chan span { font-size: 13px; }
  .lp .tile__compass { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp .tile { padding: 20px 18px 18px; }
}

/* ===== Лендинг: правки Антона 2026-10-06 ===== */
/* кнопка приглашения: светлый янтарь с тёмным текстом (7,3:1) вместо коричневой с белым */
.lp .btn.red, .top .btn.red { background: #f59e0b; color: var(--text); font-weight: 700;
  box-shadow: inset 0 -2px 0 rgba(146, 64, 14, .22), 0 6px 18px -8px rgba(217, 119, 6, .55); }
.lp .btn.red:hover, .top .btn.red:hover { background: #fbb230; }
.lp .btn.red:focus-visible, .top .btn.red:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* шапка лендинга липкая; кнопка приглашения в ней — после первого экрана и до формы */
body:has(.lp) .top { position: sticky; top: 0; transition: background .2s, border-color .2s; border-bottom: 1px solid transparent; }
body:has(.lp) .top.scrolled { background: color-mix(in srgb, var(--bg) 86%, transparent); border-bottom-color: var(--border-soft);
  -webkit-backdrop-filter: blur(14px) saturate(1.15); backdrop-filter: blur(14px) saturate(1.15); }
body:has(.lp) .top.scrolled .wrap { padding-top: 12px; padding-bottom: 12px; }
.top .top-cta { display: none; }
body.lp-cta-on .top .top-cta { display: inline-flex; }
body:has(.lp) .top .me.anon { gap: 10px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes top-cta-in { from { opacity: .35; translate: 0 -6px; } }
  body.lp-cta-on .top .top-cta { animation: top-cta-in .35s var(--ease-out, ease-out); }
}
@media (max-width: 420px) { body.lp-cta-on .top .top-cta + .btn { display: none; } }
/* подписи «Лиссабон — Владивосток» и строка под ними не ложатся на дугу Земли: горизонт ниже */
@media (min-width: 721px) { .lp .hero-sky .hero-earth { bottom: -44px; } }
/* ритм «заголовок главы → содержимое» один на всех: 30px */
.lp .ach .section-head { margin-bottom: 30px; }
.lp .lp-next__grid { margin-top: 30px; }

/* подтверждение пересылки: одно предупреждение над результатом импорта, тёплый край вместо заливки */
.imp-notices { margin: 0 0 24px; padding: 16px 20px; background: var(--panel); border-radius: var(--r-sm);
  box-shadow: inset 3px 0 0 var(--brand); }
.imp-notices h2 { font: 600 15px/1.35 var(--font); margin: 0 0 8px; }
.imp-notices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.imp-notices p { margin: 2px 0 0; color: var(--text-2); overflow-wrap: anywhere; }

/* плашка о cookie Метрики: тихая карточка внизу слева */
.cookie-note { position: fixed; left: 24px; bottom: 24px; z-index: 40; max-width: 420px; display: flex; gap: 16px; align-items: center;
  padding: 12px 12px 12px 16px; background: var(--panel); border: 1px solid var(--border-soft); border-radius: var(--r-sm);
  box-shadow: 0 8px 24px rgba(28,35,51,.12); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.cookie-note .btn { flex: none; }
@media (max-width: 760px) { .cookie-note { left: 12px; right: 12px; bottom: 12px; max-width: none; } }
