/* Текстовые страницы (mks/*.html): узкая колонка поверх токенов и шапки
 * из css/sky.css. Классы с префиксом p- (страница) и mks- (расписание).
 *
 * Вид — как у карты: светлая страница, белые карточки, а «ночное» — герой
 * и призыв внизу — той же тёмно-синей заливкой, что небо и карточка
 * пролёта (.issnext). Звёзды на них нарисованы фоном, без картинок. */
body { background: var(--app); }
.page { max-width: 960px; margin: 0 auto; padding: 18px 16px 40px; }
.page h1 { font-size: 34px; line-height: 1.12; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 12px; color: var(--ink); }
.page h2 { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 0 0 14px; color: var(--ink); }
.page h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; color: var(--ink); }
.page p { font-size: 15px; line-height: 1.65; color: var(--ink-2); margin: 0 0 10px; }
.page a { color: var(--accent); }
.crumbs { font-size: 13px; font-weight: 500; color: var(--muted-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs span { margin: 0 4px; }

.pcard, .psec { background: #fff; border: 1px solid rgba(15, 23, 42, .07); border-radius: 24px; padding: 24px 26px; margin-bottom: 16px;
  box-shadow: 0 20px 44px -30px rgba(40, 60, 130, .24), 0 3px 10px -6px rgba(40, 60, 130, .10); }
.psec > p { max-width: 720px; }
.pnote { font-size: 13.5px !important; color: var(--muted) !important; margin-top: 16px !important; }

/* ── «Ночь»: герой и призыв ───────────────────────────────────────── */
.pnight { color: #fff;
  background:
    radial-gradient(circle at 8% 18%, rgba(255, 255, 255, .8) 0 1px, transparent 1.6px),
    radial-gradient(circle at 23% 72%, rgba(255, 255, 255, .55) 0 1px, transparent 1.6px),
    radial-gradient(circle at 37% 12%, rgba(255, 255, 255, .6) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 52% 88%, rgba(255, 255, 255, .5) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 64% 28%, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 81% 64%, rgba(255, 255, 255, .5) 0 .8px, transparent 1.4px),
    radial-gradient(circle at 93% 16%, rgba(255, 255, 255, .7) 0 1px, transparent 1.6px),
    radial-gradient(120% 90% at 85% 0%, rgba(64, 108, 210, .55), transparent 60%),
    linear-gradient(150deg, #0d1736, #17306b); }

.phero { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: center;
  border-radius: 28px; padding: 30px 32px; margin-bottom: 16px; box-shadow: 0 24px 50px -30px rgba(15, 30, 80, .6); }
.phero .crumbs, .phero .crumbs a { color: #9fb4dc; }
.phero .crumbs a:hover { color: #fff; }
.phero h1 { color: #fff; margin-top: 8px; }
.phero .lead { font-size: 16px; line-height: 1.6; color: #c4d2ea; margin: 0 0 20px; max-width: 560px; }
.phero-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; max-width: 560px; }
.phero-facts li { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .1); }
.phero-facts b { display: block; font-size: 22px; font-weight: 800; letter-spacing: -.01em; color: #fff; line-height: 1.15; white-space: nowrap; }
.phero-facts span { display: block; margin-top: 3px; font-size: 12px; line-height: 1.35; color: #9fb4dc; }
.phero-art { margin: 0; text-align: center; }
.phero-svg { display: block; width: 100%; height: auto; }
.phero-art figcaption { margin-top: 2px; font-size: 12px; color: #9fb4dc; }
.sv-mut { font: 500 10px Montserrat, sans-serif; fill: #9fb4dc; opacity: .8; }
.sv-dir { font: 700 12px Montserrat, sans-serif; fill: #c4d2ea; }
.sv-big { font: 800 16px Montserrat, sans-serif; fill: #fff; }
.phero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.phero-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: 0; border-radius: 999px;
  background: #fff; color: var(--accent); font: inherit; font-size: 14.5px; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); transition: transform .15s, background .15s; }
.phero-btn:hover { background: var(--accent-l); transform: translateY(-1px); }
.phero-btn:disabled { opacity: .7; cursor: default; transform: none; }
.page .phero-btn.ghost { background: rgba(255, 255, 255, .08); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.page .phero-btn.ghost:hover { background: rgba(255, 255, 255, .16); }
.page .phero-note { margin: 12px 0 0; font-size: 13px; color: #9fb4dc; min-height: 1.4em; }

/* ── Расписание ───────────────────────────────────────────────────── */
.mks-card { scroll-margin-top: 12px; }
.mks-load { font-size: 14px !important; color: var(--muted) !important; margin: 0 !important; }
.mks-for { margin-top: 0 !important; }
.mks-card .issnext { margin-bottom: 22px; padding: 18px 20px; border-radius: 18px; }
.mks-card .issnext-t { font-size: 28px; }
/* Абзацы и ссылки страницы не должны перекрашивать карточку и строки
 * пролётов: их вид — общий с вкладкой «МКС» на карте (css/sky.css). */
.page .issnext-p { margin: 0 0 12px; font-size: 13.5px; line-height: 1.55; color: #c4d2ea; max-width: 640px; }
.page .issnext.none p { margin: 0; font-size: 13.5px; color: var(--muted); }
.page .pass { color: inherit; }
.mks-head .seg { min-width: 240px; }
.mks-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.mks-head h2 { margin: 0; font-size: 18px; }
/* Строки пролётов на широком экране — в две колонки: по порядку сверху
 * вниз, потом во вторую. Сама строка — та же .pass, что на карте. */
.mks-passes { columns: 2; column-gap: 32px; }
.mks-passes li { break-inside: avoid; }
.mks-passes .empty { column-span: all; }
.mks-all { display: block; width: 100%; margin-top: 10px; height: 40px; border: 1px dashed var(--accent-b); border-radius: 12px;
  background: var(--soft); color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.mks-all:hover { background: var(--accent-l); border-style: solid; }
.mks-more { font-size: 13px !important; color: var(--muted-2) !important; margin: 10px 0 0 !important; }
.mks-legend { font-size: 12.5px !important; color: var(--muted) !important; margin: 14px 0 0 !important; line-height: 1.55 !important; }

/* ── Как увидеть: три карточки ────────────────────────────────────── */
.phow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phow-i { padding: 18px 18px 16px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line-2); }
.phow-ic { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 10px; }
.phow-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.phow-i.is-where .phow-ic { background: #e4edff; color: #2563eb; }
.phow-i.is-when .phow-ic { background: #fff0d9; color: #c77c0a; }
.phow-i.is-looks .phow-ic { background: #ece6fb; color: #7c5cd6; }
.page .phow h3 { margin: 0 0 6px; font-size: 15.5px; }
.page .phow p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }

/* ── Города: название и полоска высоты ───────────────────────────── */
.pcities { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pcity { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; height: 100%; padding: 11px 14px 12px; border: 1px solid var(--line-2);
  border-radius: 14px; text-decoration: none; background: #fff; transition: background .12s, border-color .12s, transform .12s; }
.page .pcity { color: var(--ink); }
.pcity:hover { background: var(--accent-l); border-color: var(--accent-b); transform: translateY(-1px); }
.pcity b { flex: 1 0 100%; font-size: 14.5px; font-weight: 700; line-height: 1.25; }
.pcity-m { flex: 1; height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.pcity-m i { display: block; height: 100%; border-radius: 6px; background: var(--accent); }
.pcity small { flex: none; width: 68px; text-align: right; font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pcity.is-top .pcity-m i { background: var(--ok); }
.pcity.is-top small { color: #1f7a42; }
.pcity.is-low .pcity-m i { background: var(--faint); }
.pcity.is-low small { color: var(--muted-2); }

/* ── Вопросы, призыв, подвал ─────────────────────────────────────── */
.pfaq { border-top: 1px solid var(--line-2); }
.pfaq:first-of-type { border-top: 0; }
.pfaq summary { cursor: pointer; list-style: none; padding: 14px 44px 14px 0; position: relative; font-size: 15px; font-weight: 700; color: var(--ink); }
.pfaq summary::-webkit-details-marker { display: none; }
.pfaq summary::after { content: "+"; position: absolute; right: 0; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%;
  background: var(--line-2); color: var(--muted); font-size: 18px; font-weight: 500; line-height: 28px; text-align: center; transition: background .12s, color .12s; }
.pfaq summary:hover::after { background: var(--accent-l); color: var(--accent); }
.pfaq[open] summary::after { content: "−"; background: var(--accent-l); color: var(--accent); }
.pfaq p { margin: 0 0 16px !important; max-width: 760px; }
.pcta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-radius: 28px;
  padding: 26px 30px; margin-bottom: 16px; box-shadow: 0 24px 50px -30px rgba(15, 30, 80, .6); }
.pcta b { display: block; color: #fff; font-size: 19px; font-weight: 800; margin-bottom: 4px; }
.pcta span { color: #c4d2ea; font-size: 14px; line-height: 1.5; }
.pcta .btn { text-decoration: none; height: 44px; padding: 0 22px; border-radius: 999px; flex: none; background: #fff; border-color: #fff; color: var(--accent);
  font-weight: 700; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.pcta .btn:hover { background: var(--accent-l); }
.pfoot { max-width: 960px; margin: 0 auto; padding: 0 16px 30px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted-2); }
.pfoot a { color: var(--muted); text-decoration: none; }
.pfoot a:hover { color: var(--accent); }

/* ── Созвездия: карта, таблицы, списки ───────────────────────────── */
.phero.wide-art { grid-template-columns: minmax(0, 1fr) 440px; }
.cmap { display: block; width: 100%; height: auto; border-radius: 18px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
/* Звёзды-ссылки на мини-карте: кольцо и золотая подпись при наведении и
 * фокусе с клавиатуры; круг попадания прозрачный, но ловит щелчок. */
.cmap .cs-l { font: 600 13px Montserrat, sans-serif; fill: #dce8ff; paint-order: stroke; stroke: #0d1838; stroke-width: 3px; transition: fill .12s; }
.cmap a { cursor: pointer; outline: none; }
.cmap .cs-hit { fill: transparent; }
.cmap .cs-ring { fill: none; stroke: #ffc34d; stroke-width: 1.6; opacity: 0; transition: opacity .12s; }
.cmap a:hover .cs-ring, .cmap a:focus-visible .cs-ring { opacity: 1; }
.cmap a:hover .cs-l, .cmap a:focus-visible .cs-l { fill: #ffc34d; }
.cmap-dir text { font: 700 12px Montserrat, sans-serif; fill: #9fb4dc; }
.ptable { width: 100%; border-collapse: collapse; margin: 6px 0 4px; font-size: 14px; }
.ptable th, .ptable td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.ptable thead th { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); border-bottom-color: var(--line); }
.ptable tbody th { font-weight: 700; color: var(--ink); }
.ptable tbody th small { display: block; font-size: 12px; font-weight: 500; color: var(--muted-2); margin-top: 2px; }
.ptable td { color: var(--ink-2); }
.page .ptable a { color: var(--ink); text-decoration: none; }
.page .ptable a:hover { color: var(--accent); }
.ptable tbody tr:hover { background: var(--soft); }
.pchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.page .pchips a { display: inline-flex; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--line-2); background: #fff; color: var(--ink-2);
  font-size: 13.5px; font-weight: 600; text-decoration: none; transition: background .12s, border-color .12s; }
.page .pchips a:hover { background: var(--accent-l); border-color: var(--accent-b); color: var(--accent); }
.pconsts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.page .pconsts a { display: flex; flex-direction: column; gap: 1px; height: 100%; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 14px;
  background: #fff; color: var(--ink); text-decoration: none; transition: background .12s, border-color .12s, transform .12s; }
.page .pconsts a:hover { background: var(--accent-l); border-color: var(--accent-b); transform: translateY(-1px); }
.pconsts b { font-size: 14.5px; font-weight: 700; }
.pconsts small { font-size: 12px; color: var(--muted-2); }
.pgroup + .pgroup { margin-top: 18px; }
.page .pgroup h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.pgroup h3 small { font-size: 12px; font-weight: 700; color: var(--muted-2); background: var(--line-2); border-radius: 999px; padding: 2px 8px; }

/* ── «Живые» страницы (js/now.js): город, Луна, планеты, яркая звезда ── */
.phero-facts b.pf-name { font-size: 17px; white-space: normal; line-height: 1.2; overflow-wrap: break-word; }
.nowbar { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin: 0 0 16px; max-width: 560px; }
.nowbar-ctl { display: flex; gap: 6px; flex: 0 1 300px; min-width: 0; }
.nowbar .ddl { background: #fff; border-color: transparent; height: 42px; font-weight: 600; color: var(--ink); }
.nowbar .ibtn { border-color: transparent; }
.nowbar-c { font-size: 12px; color: #9fb4dc; }
.page .phero-hint { margin: 14px 0 18px; max-width: 560px; font-size: 14px; line-height: 1.55; color: #dce6f7; min-height: 2.6em; }
.pfor { font-size: 13.5px !important; font-weight: 600; color: var(--muted) !important; margin: -6px 0 12px !important; }
.moonwrap { width: 100%; max-width: 260px; margin: 0 auto 6px; }
.moonbig { display: block; width: 100%; height: auto; }
.moonbig.is-stub { opacity: .5; }
.ptable-kv th { width: 34%; }
.ptable-kv tbody th { font-weight: 600; color: var(--muted); }
.ptable-kv td { color: var(--ink); font-weight: 600; }
.page .ptable td a { color: var(--accent); }
.mqs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mq { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line-2); }
.mq-i { width: 34px; height: 34px; margin-bottom: 6px; }
.mq-i svg { display: block; width: 100%; height: 100%; }
.mq b { font-size: 14.5px; }
.mq-d { font-size: 13.5px; color: var(--ink-2); }
.mq small { font-size: 12px; color: var(--muted-2); }
.mq-2 { background: #fff8e8; border-color: #f6e2b5; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.page .cal-head h2 { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav b { min-width: 128px; text-align: center; font-size: 15px; }
.cal-nav .ibtn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; }
.cal-nav .btn { height: 36px; border-radius: 999px; padding: 0 14px; font-weight: 600; }
.cal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-wd { margin-bottom: 6px; }
.cal-wd li { text-align: center; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); }
.cal-d { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 4px 9px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line-2); min-width: 0; }
.cal-n { font-size: 12.5px; font-weight: 700; color: var(--muted); align-self: flex-start; padding-left: 4px; line-height: 1; }
.cal-m { width: 30px; height: 30px; }
.cal-m svg { display: block; width: 100%; height: 100%; }
.cal-p { font-size: 11.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cal-d.is-q { background: #fff8e8; border-color: #f6e2b5; }
.cal-d.is-q .cal-p { white-space: normal; color: #9a5d00; }
.cal-qs { display: none; }
.cal-d.is-today { background: var(--accent-l); border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.cal-d.is-today .cal-n { color: var(--accent); }
.rule { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.rule figure { margin: 0; display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; background: #0f1b3d; }
.rule-i { flex: none; width: 64px; height: 64px; }
.rule-i svg { display: block; width: 100%; height: 100%; }
.rule figcaption { font-size: 14px; line-height: 1.5; color: #c4d2ea; }
.rule figcaption b { display: block; color: #fff; font-size: 15.5px; margin-bottom: 2px; }
.phases { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.phases li { padding: 14px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line-2); }
.ph-i { display: block; width: 40px; height: 40px; margin-bottom: 8px; padding: 3px; border-radius: 50%; background: #0f1b3d; }
.ph-i svg { display: block; width: 100%; height: 100%; }
.phases b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.page .phases p { margin: 0; font-size: 13px; line-height: 1.5; }
.pdot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 0;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 23, 42, .14); }
.ptable-pl tr.is-off td, .ptable-pl tr.is-off th small { color: var(--muted-2); }
.ptable-pl .n-mag { white-space: nowrap; }
.ptable-pl td:nth-child(3) { min-width: 210px; }
.page .plparade { padding: 14px 18px; border-radius: 16px; background: var(--accent-l); border: 1px solid var(--accent-b); color: var(--ink); font-weight: 600; max-width: none; min-height: 1.6em; }
.plcards { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.plcards li { padding: 16px 18px; border-radius: 16px; background: var(--soft); border: 1px solid var(--line-2); }
.plcards b { font-size: 15.5px; }
.page .plcards p { margin: 6px 0 8px; font-size: 13.5px; line-height: 1.55; }
.plcards a { font-size: 13.5px; font-weight: 700; text-decoration: none; }
.br-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.page .br-head h2 { margin: 0; }
.br-seg { min-width: 300px; }
.page .br-note { font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.brs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.br { display: grid; grid-template-columns: 34px minmax(0, 1.3fr) minmax(0, 1fr) 64px; gap: 12px; align-items: center; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
/* Кружок «кусочек неба»: тёмный круг, в нём точка цвета объекта, чем ярче —
 * тем крупнее (--s задаёт js/now.js). */
.br-dot { justify-self: center; width: 32px; height: 32px; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0 calc(var(--s) / 2 - 1px), transparent calc(var(--s) / 2 + 1px)), #0f1b3d; }
.br-t, .br-w, .br-m { display: flex; flex-direction: column; min-width: 0; }
.br b { font-size: 15px; color: var(--ink); }
.page .br b a { color: var(--ink); text-decoration: none; }
.page .br b a:hover { color: var(--accent); }
.br span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.br-m { align-items: flex-end; }
.br.is-top { background: linear-gradient(90deg, var(--accent-l), transparent 70%); border-radius: 12px; }
.br-empty { padding: 14px 4px; color: var(--muted); }
.lfig { margin: 6px 0 14px; }
.lfig .cmap { max-width: 600px; }
.lfig figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.tasks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.task { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; background: var(--soft); border: 1px solid var(--line-2); }
.task-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.task > div { flex: 1; min-width: 0; }
.page .task p { margin: 3px 0 10px; color: var(--ink); font-weight: 600; }
.task-a { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.task-a .btn { text-decoration: none; height: 36px; border-radius: 999px; padding: 0 14px; font-weight: 600; background: #fff; }
.task .pfaq { border-top: 0; }
.task .pfaq summary { padding: 8px 40px 4px 0; font-size: 13.5px; color: var(--accent); }
.page .task .pfaq p { font-weight: 500; color: var(--ink-2); margin: 4px 0 4px !important; }

/* Планшет */
@media (max-width: 860px) {
  .phero, .phero.wide-art { grid-template-columns: 1fr; }
  .phero-art { max-width: 340px; margin: 0 auto; }
  .wide-art .phero-art { max-width: 520px; width: 100%; }
  .phow { grid-template-columns: 1fr; }
  .mqs, .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Телефон */
@media (max-width: 600px) {
  .page { padding: 10px 10px 30px; }
  .page h1 { font-size: 27px; }
  .phero { padding: 22px 18px; border-radius: 22px; gap: 14px; }
  .phero .lead { font-size: 15px; }
  .phero-facts { gap: 6px; }
  .phero-facts li { padding: 10px; border-radius: 13px; }
  .phero-facts b { font-size: 18px; }
  .phero-facts span { font-size: 11px; }
  .phero-btn { flex: 1; padding: 0 14px; }
  .pcard, .psec { padding: 18px 16px; border-radius: 20px; }
  .pcta { padding: 22px 18px; border-radius: 22px; }
  .pcta .btn { width: 100%; }
  .mks-head .seg { min-width: 0; width: 100%; }
  .mks-passes { columns: 1; }
  /* Таблица на телефоне — список: строка — блок, ячейка — «подпись: значение»
   * (подпись из data-label), как таблицы кита на витринах RobX. */
  .ptable thead { display: none; }
  .ptable, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: 100%; }
  .ptable tr { padding: 10px 0; border-bottom: 1px solid var(--line-2); }
  .ptable th, .ptable td { border: 0; padding: 2px 0; }
  .ptable td::before { content: attr(data-label) ": "; color: var(--muted-2); font-size: 12.5px; }
  .ptable tbody tr:hover { background: none; }
  .pconsts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pcities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nowbar-ctl { flex: 1 1 100%; }
  .mqs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cal { gap: 3px; }
  .cal-d { padding: 6px 1px 7px; border-radius: 9px; }
  .cal-m { width: 24px; height: 24px; }
  .cal-p { font-size: 10px; }
  .cal-n { font-size: 11px; padding-left: 2px; }
  .cal-q { display: none; }
  .cal-qs { display: inline; }
  .moonwrap { max-width: 200px; }
  .phero-facts b.pf-name { font-size: 13.5px; }
  .ptable-kv td::before { content: none; }
  .ptable-kv td { padding-bottom: 4px; }
  .cal-nav { width: 100%; }
  .cal-nav b { flex: 1; min-width: 0; }
  .rule, .phases { grid-template-columns: 1fr; }
  .phases li { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; }
  .ph-i { grid-row: span 2; margin: 0; }
  .br-seg { min-width: 0; width: 100%; }
  .br { grid-template-columns: 32px minmax(0, 1fr) 52px; gap: 4px 10px; }
  .br-w { grid-column: 2 / 4; grid-row: 2; }
  .br-m { grid-column: 3; grid-row: 1; }
  .ptable-pl td:nth-child(3) { min-width: 0; }
  .task { padding: 14px; gap: 10px; }
  .pcity { padding: 10px 12px; }
  .pcity b { font-size: 13.5px; }
}

/* ── Компас (kompas/) ─────────────────────────────────────────────────
 * Шкала — SVG из генератора; картушку крутит js/compass.js. На телефоне
 * компас идёт сразу под заголовком: ради него страницу и открывают. */
.khero { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "title dial" "ctl dial"; align-items: start; }
.k-title { grid-area: title; }
.k-dial { grid-area: dial; margin: 0; text-align: center; align-self: center; }
.k-ctl { grid-area: ctl; }
.khero .lead { margin-bottom: 4px; }
.kdial { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.kt-M { stroke: #eef3fb; stroke-width: 2.4; }
.kt-m { stroke: #6f83ad; stroke-width: 1.1; }
.kn { font: 600 14px Montserrat, sans-serif; fill: #a9bbdc; text-anchor: middle; dominant-baseline: central; }
.kl { font: 800 34px Montserrat, sans-serif; fill: #f4f7fd; text-anchor: middle; dominant-baseline: central; }
.kl-n { fill: #ff5a4f; }
.kl2 { font: 700 15px Montserrat, sans-serif; fill: #8ea3c9; text-anchor: middle; dominant-baseline: central; }
.kidx { fill: #ff5a4f; stroke: #7a1a14; stroke-width: 1; }
.klevel { fill: rgba(5, 10, 28, .55); stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; }
.kbubble { fill: #5fdc8e; transition: fill .2s; }
.kbubble.off { fill: #ffc04d; }
.km-sun { fill: #ffd36b; stroke: #0b1430; stroke-width: 2.5; }
.km-moon { fill: #e9e3d2; stroke: #0b1430; stroke-width: 2.5; }
.km-down { opacity: .45; }
.kread { margin-top: 10px; }
.kread b { display: block; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.kread span { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; color: #c4d2ea; min-height: 1.4em; }
.klegend { display: flex; justify-content: center; gap: 16px; margin-top: 8px; font-size: 12.5px; color: #9fb4dc; }
.klegend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.kl-sun { background: #ffd36b; }
.kl-moon { background: #e9e3d2; }
.kseg { margin: 14px 0 12px; max-width: 360px; background: rgba(255, 255, 255, .08); }
.kseg button { color: #c4d2ea; }
.kseg button.on { background: #fff; color: var(--accent); }
.kseg button:hover { color: #fff; }
.kseg button.on:hover { color: var(--accent); }
.khero .nowbar { margin-top: 4px; }
.ksteps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; counter-reset: k; }
.ksteps li { counter-increment: k; padding: 16px 18px; border-radius: 18px; background: var(--app); border: 1px solid var(--line-2); }
.ksteps li b::before { content: counter(k); display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: 8px;
  border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; }
.ksteps li b { display: block; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.ksteps li p { font-size: 14px; margin: 0; }
.kways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.kways > div { padding: 16px 18px; border-radius: 18px; background: var(--app); border: 1px solid var(--line-2); }
.kways b { display: block; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.kways p { font-size: 14px; margin: 0; }
@media (max-width: 860px) {
  .khero { grid-template-columns: 1fr; grid-template-areas: "title" "dial" "ctl"; }
  .k-dial { max-width: 380px; width: 100%; margin: 0 auto; }
  .ksteps, .kways { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .k-dial { max-width: 330px; }
  .khero .phero-cta { flex-direction: column; }
  .khero .phero-btn { flex: none; width: 100%; }
  .kread b { font-size: 38px; }
  .kseg { max-width: none; }
}
