:root {
  --ui-page: #ffffff;
  --ui-surface-soft: #e9f1f9;
  --ui-surface-warm: #f9f8e7;
  --ui-surface-dark: #202f53;
  --ui-button: #ffb432;
  --ui-button-hover: #ffa70d;
  --ui-text: #1c1c1c;
  --ui-text-muted: #565656;
  --ui-text-inverse: #ffffff;
  --ui-border: #39569933;
  --ui-tint: #5686fa26;
  --ok: #1f6b45;
  --ok-bg: #e3f3ea;
  --warn: #8a5a00;
  --warn-bg: #fdf0d2;
  --bad: #9b2c2c;
  --bad-bg: #fbe4e4;
  --radius: 8px;
  --container: 1120px;
  --shadow-rest: 0 1px 4px rgba(0, 0, 0, 0.05);
  --shadow-hover: 0 6px 16px rgba(0, 0, 0, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ui-page);
  color: var(--ui-text);
  font-family: Inter, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: #24468f; text-underline-offset: 3px; }
a:hover { color: var(--ui-surface-dark); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }

/* ---------- шапка ---------- */
.site-header { border-bottom: 1px solid var(--ui-border); background: var(--ui-page); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 60px; }
.logo { font-weight: 700; font-size: 20px; color: var(--ui-surface-dark); text-decoration: none; white-space: nowrap; }
.logo span { border-bottom: 3px solid var(--ui-button); }
.nav { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a { color: var(--ui-text-muted); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap; padding: 18px 0; border-bottom: 2px solid transparent; transition: color 0.2s ease-out; }
.nav a:hover { color: var(--ui-text); }
.nav a.is-active { color: var(--ui-text); border-bottom-color: var(--ui-surface-dark); }

/* ---------- секції ---------- */
.section { padding: 56px 0; }
.section.soft { background: var(--ui-surface-soft); }
.eyebrow { display: inline-flex; border-radius: var(--radius); background: var(--ui-tint); padding: 8px 16px; font-weight: 600; font-size: 14px; color: #414655; margin-bottom: 16px; }
h1 { font-size: 42px; line-height: 1.15; font-weight: 700; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 em { font-style: normal; color: #24468f; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 0 0 20px; }
h3 { font-size: 19px; line-height: 1.25; font-weight: 600; margin: 28px 0 10px; }
.lead { font-size: 19px; line-height: 1.45; color: var(--ui-text-muted); max-width: 760px; margin: 0; }
.muted { color: var(--ui-text-muted); }
.small { font-size: 14px; }

/* ---------- дві країни ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.country { border-radius: var(--radius); padding: 28px; border: 1px solid var(--ui-border); }
.country.today { background: var(--ui-surface-soft); }
.country.parallel { background: var(--ui-surface-warm); }
.country h2 { font-size: 24px; margin-bottom: 4px; }
.country .sub { color: var(--ui-text-muted); margin: 0 0 20px; font-size: 15px; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: grid; grid-template-columns: 132px 1fr; gap: 14px; align-items: baseline; }
.facts .num { font-size: 26px; font-weight: 700; color: var(--ui-surface-dark); line-height: 1.1; }
.facts .txt { color: var(--ui-text-muted); font-size: 15px; }
.facts .txt b { color: var(--ui-text); font-weight: 600; }
.gap-line { margin-top: 20px; border-radius: var(--radius); background: var(--ui-surface-dark); color: var(--ui-text-inverse); padding: 18px 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: baseline; }
.gap-line b { font-size: 22px; }

/* ---------- картки ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { display: block; background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-rest); text-decoration: none; color: inherit; overflow: hidden; transition: box-shadow 0.2s ease-out; }
.card h3 { margin: 12px 0 6px; }
.card p { margin: 0; color: var(--ui-text-muted); font-size: 15px; }
.card .icon { width: 44px; height: 44px; border-radius: var(--radius); background: var(--ui-surface-soft); display: grid; place-items: center; color: var(--ui-surface-dark); transform-origin: center; transition: transform 0.2s ease-out; }
.card .icon svg { width: 24px; height: 24px; }
@media (hover: hover) {
  a.card:hover { box-shadow: var(--shadow-hover); color: inherit; }
  a.card:hover .icon { transform: scale(1.1); }
}
.btn { display: inline-block; background: var(--ui-button); color: var(--ui-text); font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: var(--radius); transition: background-color 0.15s ease-out; }
.btn:hover { background: var(--ui-button-hover); color: var(--ui-text); }
.row-between { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.row-between h2 { margin: 0; }

/* ---------- стрічка рішень ---------- */
.decision { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-rest); }
.decision .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ui-text-muted); margin-bottom: 10px; }
.decision h3 { font-size: 21px; margin: 0 0 6px; }
.decision .official { font-size: 14px; color: var(--ui-text-muted); margin: 0 0 14px; }
.decision p { margin: 0 0 12px; }
.chip { display: inline-block; border-radius: var(--radius); padding: 4px 10px; font-size: 13px; font-weight: 600; background: var(--ui-tint); color: #414655; }
.chip.ok { background: var(--ok-bg); color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.bad { background: var(--bad-bg); color: var(--bad); }
.verdicts { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.label { font-size: 13px; font-weight: 600; color: var(--ui-text-muted); text-transform: uppercase; letter-spacing: 0.03em; margin: 16px 0 4px; }
.radnyk { background: var(--ui-surface-warm); border-radius: var(--radius); padding: 14px 16px; margin: 14px 0; }
.radnyk .label { margin-top: 0; }
.radnyk p { margin: 0; }
details { border-top: 1px solid var(--ui-border); margin-top: 14px; padding-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: #24468f; }
.decision ul { margin: 0 0 12px; padding-left: 20px; }
.decision li { margin-bottom: 6px; }
.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 12px 0; border-bottom: 1px solid var(--ui-border); display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.plain-list .date { color: var(--ui-text-muted); font-size: 14px; }
.plain-list .kind { display: block; color: var(--ui-text-muted); font-size: 14px; }

/* ---------- сторінки з тексту ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 40px 0 72px; }
.toc { position: sticky; top: 84px; align-self: start; font-size: 14px; max-height: calc(100vh - 110px); overflow-y: auto; }
.toc b { display: block; margin-bottom: 8px; }
.toc a { display: block; padding: 5px 0; color: var(--ui-text-muted); text-decoration: none; }
.toc a:hover { color: var(--ui-text); }
.prose { min-width: 0; }
.prose h1 { font-size: 36px; }
.prose h2 { margin-top: 44px; padding-top: 8px; scroll-margin-top: 80px; }
.prose h3 { scroll-margin-top: 80px; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose hr { border: 0; border-top: 1px solid var(--ui-border); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--ui-border); border-radius: var(--radius); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--ui-border); vertical-align: top; }
th { background: var(--ui-surface-soft); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; border-radius: 4px; padding: 0 6px; font-size: 12px; font-weight: 700; line-height: 20px; vertical-align: 1px; cursor: help; }
.badge.b1 { background: var(--ok-bg); color: var(--ok); }
.badge.b2 { background: var(--warn-bg); color: var(--warn); }
.badge.b3 { background: #ececec; color: #555; }

/* ---------- лічильники і проєкти ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 16px 0; }
.stat { border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 16px; background: var(--ui-surface-soft); }
.stat b { display: block; font-size: 34px; line-height: 1.1; color: var(--ui-surface-dark); }
.stat span { font-size: 14px; color: var(--ui-text-muted); }
.stat.net { background: var(--ui-surface-dark); }
.stat.net b, .stat.net span { color: var(--ui-text-inverse); }
.bar { height: 8px; border-radius: 4px; background: var(--ui-tint); overflow: hidden; margin: 16px 0 8px; }
.bar i { display: block; height: 100%; background: var(--ui-surface-dark); border-radius: 4px; min-width: 4px; }
.card.project h3 { margin-top: 0; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr; } }

/* ---------- таблиці з частками ---------- */
.num-cell { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar-cell { width: 34%; min-width: 90px; }
.bar-cell .bar { margin: 6px 0; }
.nav a { font-size: 14px; }

/* ---------- дві країни в меню ---------- */
.worlds { display: flex; gap: 8px; flex: 1; }
.world-tab { text-decoration: none; font-weight: 600; font-size: 15px; padding: 9px 16px; border-radius: var(--radius); color: var(--ui-text-muted); border: 1px solid var(--ui-border); white-space: nowrap; transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.world-tab:hover { color: var(--ui-text); }
.world-tab.today.is-active { background: var(--ui-surface-soft); color: var(--ui-surface-dark); border-color: var(--ui-surface-dark); }
.world-tab.parallel.is-active { background: var(--ui-surface-warm); color: var(--ui-text); border-color: #c9b458; }
.subnav { border-top: 1px solid var(--ui-border); }
.subnav.today { background: var(--ui-surface-soft); }
.subnav.parallel { background: var(--ui-surface-warm); }
.subnav .container { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; min-height: 0; }
.subnav .container::-webkit-scrollbar { display: none; }
.subnav a { color: var(--ui-text-muted); text-decoration: none; font-weight: 500; font-size: 14px; white-space: nowrap; padding: 11px 0; border-bottom: 2px solid transparent; transition: color 0.2s ease-out; }
.subnav a:hover { color: var(--ui-text); }
.subnav a.is-active { color: var(--ui-text); border-bottom-color: var(--ui-surface-dark); font-weight: 600; }
.site-header > .container { min-height: 60px; }
.toc { top: 128px; max-height: calc(100vh - 150px); }
.prose h2, .prose h3 { scroll-margin-top: 124px; }
.world-parallel .section.soft { background: var(--ui-surface-warm); }
.world-parallel .eyebrow { background: #efe9b8; }

/* ---------- плитки-показники ---------- */
.widgets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.widget { display: flex; flex-direction: column; gap: 4px; background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow-rest); min-height: 132px; transition: box-shadow 0.2s ease-out; }
.widget b { font-size: 30px; line-height: 1.1; color: var(--ui-surface-dark); font-variant-numeric: tabular-nums; }
.widget span { font-size: 15px; font-weight: 500; }
.widget small { font-size: 13px; color: var(--ui-text-muted); margin-top: auto; }
.widget.alert { border-left: 4px solid var(--ui-button); }
@media (hover: hover) { .widget:hover { box-shadow: var(--shadow-hover); color: inherit; } }
.indicators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.indicator { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 18px; }
.indicator .meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ui-text-muted); }
.indicator h3 { margin: 10px 0 6px; font-size: 17px; }
.indicator p { margin: 0; font-size: 14px; color: var(--ui-text-muted); }
.country .btn { margin-top: 20px; }
@media (max-width: 1000px) { .widgets { grid-template-columns: repeat(2, 1fr); } .indicators { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .widgets, .indicators { grid-template-columns: 1fr; }
  .widget { min-height: 0; }
  .site-header > .container { flex-wrap: wrap; gap: 8px; padding-top: 10px; padding-bottom: 10px; }
  .worlds { flex-basis: 100%; }
  .world-tab { flex: 1; text-align: center; padding: 8px 6px; font-size: 14px; }
  .toc { top: auto; }
}

/* ---------- вхід, кабінет, адмінка ---------- */
.account-link { margin-left: auto; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ui-surface-dark); padding: 8px 14px; border: 1px solid var(--ui-border); border-radius: var(--radius); white-space: nowrap; transition: background-color 0.2s ease-out; }
.account-link:hover { background: var(--ui-surface-soft); }
.worlds { flex: 0 1 auto; }
.auth .container { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 460px; background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-rest); }
.auth-card h1 { font-size: 30px; margin: 14px 0 8px; }
.auth-foot { margin: 20px 0 0; font-size: 14px; color: var(--ui-text-muted); }
.form { display: grid; gap: 16px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field > span { font-weight: 600; font-size: 14px; }
.field small { color: var(--ui-text-muted); font-size: 13px; }
.field input, .field textarea, .copy-row input { width: 100%; font: inherit; color: var(--ui-text); background: var(--ui-page); border: 1px solid #39569966; border-radius: var(--radius); padding: 11px 12px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field textarea:focus, .copy-row input:focus, .pz-form textarea:focus { outline: 2px solid var(--ui-surface-dark); outline-offset: 1px; }
button.btn { border: 0; font: inherit; font-weight: 600; cursor: pointer; }
.btn.ghost { background: var(--ui-page); border: 1px solid var(--ui-border); color: var(--ui-surface-dark); }
.btn.ghost:hover { background: var(--ui-surface-soft); }
.btn.small { padding: 8px 14px; font-size: 14px; }
.btn:disabled { opacity: 0.6; cursor: default; }
.form .btn { justify-self: start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: var(--radius); padding: 12px 14px; margin: 0 0 16px; font-size: 15px; }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.narrow { max-width: 780px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; align-items: center; }
.row-actions form { margin: 0; }
.msg { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 16px 18px; margin: 0 0 14px; }
.msg .meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--ui-text-muted); }
.msg .meta b { color: var(--ui-text); font-size: 15px; }
.msg-body { margin: 10px 0 0; overflow-wrap: anywhere; }
.msg .radnyk { margin-bottom: 0; }
.msg .radnyk a { margin-left: 8px; white-space: nowrap; }
.msg .row-actions { margin-top: 12px; }
.stack { display: grid; gap: 14px; }
.stack .card h3 { margin: 6px 0 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.admin-nav a { text-decoration: none; font-weight: 600; font-size: 14px; padding: 9px 16px; border-radius: var(--radius); border: 1px solid var(--ui-border); color: var(--ui-text-muted); background: var(--ui-page); transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.admin-nav a:hover { color: var(--ui-text); }
.admin-nav a.is-active { background: var(--ui-surface-dark); border-color: var(--ui-surface-dark); color: var(--ui-text-inverse); }
.admin-nav.sub { margin: 0 0 18px; }
.panel, .fresh { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.panel h2 { margin-top: 0; }
.fresh { border-left: 4px solid var(--ui-button); }
.fresh .label { font-weight: 600; margin-bottom: 10px; }
.form.inline { grid-template-columns: 1fr 1fr; align-items: start; }
.form.inline .grow { grid-column: 1 / -1; }
.form.inline .btn { grid-column: 1 / -1; }
.copy-row { display: flex; gap: 10px; align-items: center; margin-top: 10px; }
.copy-row input { flex: 1; min-width: 0; font-size: 14px; background: var(--ui-surface-soft); }
.section.soft .widgets { margin-bottom: 20px; }

/* ---------- вікно «Пропозиції» ---------- */
.pz { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.pz-toggle { border: 0; cursor: pointer; font: inherit; font-weight: 600; background: var(--ui-surface-dark); color: var(--ui-text-inverse); padding: 13px 20px; border-radius: var(--radius); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18); transition: background-color 0.15s ease-out; }
.pz-toggle:hover { background: #2b3e6c; }
.pz-toggle:focus-visible, .pz-close:focus-visible { outline: 2px solid var(--ui-button); outline-offset: 2px; }
.pz-panel { width: 380px; max-width: calc(100vw - 24px); height: 520px; max-height: calc(100vh - 110px); background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18); display: flex; flex-direction: column; overflow: hidden; }
.pz-panel[hidden] { display: none; }
.pz-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; background: var(--ui-surface-dark); color: var(--ui-text-inverse); }
.pz-head b { display: block; font-size: 16px; }
.pz-head small { opacity: 0.8; font-size: 13px; }
.pz-close { border: 0; background: transparent; color: inherit; font-size: 26px; line-height: 1; cursor: pointer; padding: 0 6px; border-radius: 4px; }
.pz-list { flex: 1; overflow-y: auto; padding: 14px; background: var(--ui-surface-soft); display: flex; flex-direction: column; gap: 10px; }
.pz-guest { margin: auto 0; display: grid; gap: 10px; font-size: 15px; }
.pz-guest p { margin: 0; }
.pz-guest .btn { justify-self: start; margin-top: 6px; }
.pz-empty { margin: auto 0; color: var(--ui-text-muted); font-size: 14px; }
.pz-msg { background: var(--ui-page); border-radius: var(--radius); padding: 10px 12px; box-shadow: var(--shadow-rest); }
.pz-text { margin: 0 0 8px; font-size: 15px; white-space: pre-wrap; overflow-wrap: anywhere; }
.pz-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ui-text-muted); }
.pz-answer { margin-top: 10px; background: var(--ui-surface-warm); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; display: grid; gap: 6px; }
.pz-answer p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.pz-form { padding: 12px 14px 14px; border-top: 1px solid var(--ui-border); display: grid; gap: 8px; }
.pz-form textarea { width: 100%; font: inherit; font-size: 15px; border: 1px solid #39569966; border-radius: var(--radius); padding: 10px; resize: none; }
.pz-error { color: var(--bad); font-size: 13px; min-height: 0; }
.pz-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pz-foot small { color: var(--ui-text-muted); font-size: 12px; }
.pz-foot .btn { padding: 9px 18px; }
@media (max-width: 560px) {
  .pz { right: 12px; bottom: 12px; }
  .pz-panel { width: calc(100vw - 24px); height: calc(100vh - 90px); }
  .account-link { margin-left: 0; order: 2; }
  .form.inline { grid-template-columns: 1fr; }
  .copy-row { flex-direction: column; align-items: stretch; }
  .auth-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { .pz-toggle, .account-link, .admin-nav a { transition: none; } }

.cards.who { grid-template-columns: repeat(4, 1fr); margin-top: 20px; }
.cards.who .card h3 { margin-top: 0; font-size: 17px; }
.cards.who .card p { margin: 0; font-size: 15px; color: var(--ui-text-muted); }
@media (max-width: 1000px) { .cards.who { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards.who { grid-template-columns: 1fr; } }

/* ---------- держава за сферами ---------- */
.world-tab.spheres.is-active { background: var(--ui-surface-dark); color: var(--ui-text-inverse); border-color: var(--ui-surface-dark); }
.sphere-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.sphere-tile { display: flex; flex-direction: column; gap: 8px; background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: inherit; box-shadow: var(--shadow-rest); transition: box-shadow 0.2s ease-out; overflow: hidden; }
.sphere-tile .icon { width: 44px; height: 44px; color: var(--ui-surface-dark); transform-origin: center; transition: transform 0.2s ease-out; }
.sphere-tile .icon svg { width: 100%; height: 100%; }
.sphere-tile h3 { margin: 4px 0 0; font-size: 18px; }
.sphere-tile p { margin: 0; font-size: 14px; color: var(--ui-text-muted); flex: 1; }
.tile-money b { font-size: 24px; color: var(--ui-surface-dark); font-variant-numeric: tabular-nums; }
.tile-money span { display: block; font-size: 13px; color: var(--ui-text-muted); }
.sphere-tile small { font-size: 13px; color: var(--ui-text-muted); }
.sphere-tile .bar { margin: 2px 0; }
@media (hover: hover) {
  .sphere-tile:hover { box-shadow: var(--shadow-hover); color: inherit; }
  .sphere-tile:hover .icon { transform: scale(1.1); }
}
.sphere-title { display: flex; gap: 18px; align-items: flex-start; margin: 14px 0 22px; }
.sphere-title .icon { flex: none; width: 60px; height: 60px; padding: 12px; background: var(--ui-surface-soft); border-radius: var(--radius); color: var(--ui-surface-dark); }
.sphere-title .icon svg { width: 100%; height: 100%; }
.sphere-title h1 { margin: 0 0 6px; }
.sphere-title .lead { margin: 0; }
.sphere-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; }
.sphere-nav { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 2px; background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 10px; max-height: calc(100vh - 104px); overflow-y: auto; }
.sphere-nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); text-decoration: none; color: var(--ui-text-muted); font-size: 14px; font-weight: 500; transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.sphere-nav a .icon { flex: none; width: 22px; height: 22px; }
.sphere-nav a .icon svg { width: 100%; height: 100%; }
.sphere-nav a span { flex: 1; }
.sphere-nav a small { font-variant-numeric: tabular-nums; font-size: 12px; }
.sphere-nav a:hover { background: var(--ui-surface-soft); color: var(--ui-text); }
.sphere-nav a.is-active { background: var(--ui-surface-dark); color: var(--ui-text-inverse); }
.sphere-nav a.all { font-weight: 600; color: var(--ui-surface-dark); border-bottom: 1px solid var(--ui-border); border-radius: 0; margin-bottom: 4px; }
.sphere-nav p { margin: 8px 10px 4px; }
.sphere-body { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 0 24px 24px; min-width: 0; }
.sphere-body h2 { font-size: 22px; margin: 28px 0 12px; }

/* закладки без скриптів */
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tab-bar { display: flex; gap: 8px; margin: 0 -24px; padding: 16px 24px 0; border-bottom: 1px solid var(--ui-border); position: sticky; top: 60px; background: var(--ui-page); z-index: 5; border-radius: var(--radius) var(--radius) 0 0; }
.tab { cursor: pointer; font-weight: 600; font-size: 15px; padding: 11px 18px; border-radius: var(--radius) var(--radius) 0 0; color: var(--ui-text-muted); border: 1px solid transparent; border-bottom: 0; margin-bottom: -1px; transition: color 0.2s ease-out, background-color 0.2s ease-out; }
.tab:hover { color: var(--ui-text); }
.tab-panel { display: none; }
#tab-today:checked ~ .tab-bar .tab.today { background: var(--ui-surface-soft); color: var(--ui-surface-dark); border-color: var(--ui-border); }
#tab-parallel:checked ~ .tab-bar .tab.parallel { background: var(--ui-surface-warm); color: var(--ui-text); border-color: #c9b458; }
#tab-today:checked ~ .panel-today, #tab-parallel:checked ~ .panel-parallel { display: block; }
#tab-today:focus-visible ~ .tab-bar .tab.today, #tab-parallel:focus-visible ~ .tab-bar .tab.parallel { outline: 2px solid var(--ui-surface-dark); outline-offset: 2px; }
.panel-today > .notice { margin-top: 20px; }
.who-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.who-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; background: var(--ui-surface-soft); border-radius: var(--radius); font-size: 15px; }
.who-list b { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ui-surface-dark); }
.empty { border: 1px dashed #39569966; border-radius: var(--radius); padding: 16px 18px; background: var(--ui-page); }
.empty p { margin: 0; color: var(--ui-text-muted); }
.empty b { color: var(--ui-text); }
.propose { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--ui-surface-dark); color: var(--ui-text-inverse); border-radius: var(--radius); padding: 18px 20px; margin: 24px 0 16px; }
.propose p { margin: 4px 0 0; opacity: 0.85; font-size: 14px; }

/* ---------- план і правила ---------- */
.plan-card, .rule { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 20px; margin: 0 0 16px; scroll-margin-top: 130px; }
.plan-card .meta, .rule .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ui-text-muted); }
.plan-card h3, .rule h3 { margin: 12px 0 8px; font-size: 19px; }
.plan-card > p { margin: 0 0 14px; }
.chip.link { text-decoration: none; }
.chip.link:hover { background: var(--ui-surface-dark); color: var(--ui-text-inverse); }
.steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); position: relative; }
.steps::before { content: ""; position: absolute; left: 7px; right: 33%; top: 7px; height: 2px; background: #39569944; }
.steps li { position: relative; padding: 22px 12px 0 0; font-size: 14px; }
.steps li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ui-page); border: 2px solid #39569988; box-sizing: border-box; }
.steps li.is-done::before { background: var(--ui-button); border-color: var(--ui-button); }
.steps b { display: block; font-size: 13px; color: var(--ui-text-muted); font-weight: 600; }
.steps span { color: var(--ui-text); }
.facts-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.facts-list > div { background: var(--ui-surface-soft); border-radius: var(--radius); padding: 12px 14px; }
.facts-list dt { font-size: 13px; font-weight: 600; color: var(--ui-text-muted); margin-bottom: 4px; }
.facts-list dd { margin: 0; font-size: 15px; }
.progress { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 18px 0; }
.progress-line { flex: 1; min-width: 200px; height: 12px; background: var(--ui-surface-soft); border-radius: 6px; overflow: hidden; }
.progress-line i { display: block; height: 100%; min-width: 4px; background: var(--ui-button); }
.calendar { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.month { background: var(--ui-surface-soft); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.month.is-now { outline: 2px solid var(--ui-button); }
.month > b { font-size: 14px; color: var(--ui-surface-dark); }
.month a { display: block; background: var(--ui-page); border-radius: var(--radius); padding: 8px 10px; font-size: 13px; text-decoration: none; color: var(--ui-text); border-left: 3px solid #39569955; transition: box-shadow 0.2s ease-out; }
.month a.warn { border-left-color: var(--ui-button); }
.month a.ok { border-left-color: var(--ok); }
.month a.bad { border-left-color: var(--bad); }
.month a small { display: block; color: var(--ui-text-muted); margin-top: 2px; }
.month a:hover { box-shadow: var(--shadow-hover); }
.stage { margin-bottom: 36px; }
.stage-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stage-head h2 { margin: 0; }
.changes { padding-left: 20px; display: grid; gap: 8px; }
.versus { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.side { border-radius: var(--radius); padding: 14px 16px; }
.side.today { background: var(--ui-surface-soft); }
.side.parallel { background: var(--ui-surface-warm); }
.side .label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ui-text-muted); margin-bottom: 6px; }
.side p { margin: 0 0 8px; font-size: 15px; }
.side p:last-child { margin-bottom: 0; }
.rule.sample { border-style: dashed; margin-top: 16px; }
.stats.four { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) {
  .sphere-grid { grid-template-columns: repeat(2, 1fr); }
  .sphere-layout { grid-template-columns: 1fr; }
  .sphere-nav { position: static; flex-direction: row; overflow-x: auto; max-height: none; scrollbar-width: none; }
  .sphere-nav::-webkit-scrollbar { display: none; }
  .sphere-nav a { white-space: nowrap; }
  .sphere-nav a small, .sphere-nav p { display: none; }
  .sphere-nav a.all { border-bottom: 0; border-right: 1px solid var(--ui-border); margin: 0 4px 0 0; }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .stats.four { grid-template-columns: repeat(2, 1fr); }
  .tab-bar { top: 104px; }
}
@media (max-width: 560px) {
  .sphere-grid, .calendar, .versus, .facts-list { grid-template-columns: 1fr; }
  .sphere-body { padding: 0 16px 16px; }
  .tab-bar { margin: 0 -16px; padding: 12px 16px 0; top: 0; position: static; }
  .tab { padding: 10px 12px; font-size: 14px; }
  .steps { grid-template-columns: 1fr; gap: 10px; }
  .steps::before { left: 7px; right: auto; top: 8px; bottom: 30px; width: 2px; height: auto; }
  .steps li { padding: 0 0 0 28px; }
  .sphere-title .icon { width: 48px; height: 48px; padding: 9px; }
}
@media (prefers-reduced-motion: reduce) { .sphere-tile, .sphere-tile .icon, .sphere-nav a, .tab, .month a { transition: none; } .sphere-tile:hover .icon { transform: none; } }

/* три кнопки розділів на телефоні: рівні, з перенесенням слів, без виходу за екран */
@media (max-width: 560px) {
  .worlds { gap: 6px; min-width: 0; order: 2; }
  .account-link { order: 1; margin-left: auto; }
  .world-tab { flex: 1 1 0; min-width: 0; white-space: normal; line-height: 1.2; padding: 8px 4px; font-size: 13px; display: flex; align-items: center; justify-content: center; text-align: center; }
}

.center-cta { text-align: center; margin: 24px 0 0; }

/* ---------- перший екран, звернення, окремі розбори ---------- */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 0; }
.example { padding-top: 0; }
.example .side h3 { margin: 0 0 8px; font-size: 19px; }
.example .side .btn { margin-top: 6px; }
.two-title { margin: 12px 0 20px; }
.appeal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.appeal-step { display: flex; gap: 12px; background: var(--ui-surface-soft); border-radius: var(--radius); padding: 14px; }
.appeal-step > b { flex: none; width: 32px; height: 32px; border-radius: var(--radius); background: var(--ui-surface-dark); color: var(--ui-text-inverse); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.appeal-step h3 { margin: 0 0 4px; font-size: 16px; }
.appeal-step p { margin: 0; font-size: 14px; color: var(--ui-text-muted); }
.share { margin: 14px 0 0; font-size: 14px; color: var(--ui-text-muted); }
@media (max-width: 1000px) { .appeal { grid-template-columns: 1fr; } }

/* ---------- на одного жителя, словник ---------- */
.stats.quad { grid-template-columns: repeat(4, 1fr); }
.tile-money .per { color: var(--ui-surface-dark); font-weight: 600; margin-top: 2px; }
.glossary { margin: 20px 0; display: grid; gap: 10px; }
.glossary > div { background: var(--ui-surface-soft); border-radius: var(--radius); padding: 14px 16px; }
.glossary dt { font-weight: 700; margin-bottom: 4px; }
.glossary dd { margin: 0; color: var(--ui-text); }
.site-footer a { color: inherit; }
@media (max-width: 1000px) { .stats.quad { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats.quad { grid-template-columns: 1fr; } }

.bad-text { color: var(--bad) !important; }

/* ---------- новинна головна і стрічка ---------- */
.front { padding-top: 28px; }
.front-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.front-head p { margin: 0; color: var(--ui-text-muted); font-size: 15px; }
.front-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lead-news .meta, .decision .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; color: var(--ui-text-muted); }
.lead-news h1 { font-size: 38px; line-height: 1.15; margin: 14px 0 12px; }
.lead-news h1 a { color: inherit; text-decoration: none; }
.lead-news h1 a:hover { color: #24468f; }
.lead-what { font-size: 17px; margin: 0 0 16px; }
.lead-chip { background: var(--ui-surface-dark); color: var(--ui-text-inverse); }
.level { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ui-text-muted); }
.verdict-box { border-radius: var(--radius); padding: 14px 16px; margin: 0 0 14px; background: var(--ui-surface-warm); border-left: 4px solid var(--ui-button); }
.verdict-box.ok { border-left-color: var(--ok); }
.verdict-box.bad { border-left-color: var(--bad); }
.verdict-box .label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ui-text-muted); margin-bottom: 6px; }
.verdict-box p { margin: 0; }
.for-whom { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--ui-text-muted); margin: 12px 0; }
.chip.who { background: var(--ui-surface-soft); color: var(--ui-surface-dark); }
.feed { background: var(--ui-surface-soft); border-radius: var(--radius); padding: 18px 18px 14px; }
.feed-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.feed-head h2 { margin: 0; font-size: 20px; }
.feed-head a { font-size: 14px; }
.feed-list { list-style: none; margin: 0; padding: 0; }
.feed-list li { position: relative; padding: 10px 0 10px 20px; border-top: 1px solid #39569922; font-size: 15px; line-height: 1.35; }
.feed-list li.day { padding: 12px 0 6px; border-top: 0; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ui-text-muted); }
.feed-list li.day + li { border-top: 0; }
.feed-list a { color: var(--ui-text); text-decoration: none; }
.feed-list a:hover { color: #24468f; text-decoration: underline; }
.feed-list li.is-important a { font-weight: 700; }
.feed-list small { display: block; margin-top: 3px; font-size: 12px; color: var(--ui-text-muted); }
.feed-list .tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; text-transform: uppercase; color: #24468f; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--ui-button); }
.dot.ok { background: var(--ok); }
.dot.bad { background: var(--bad); }
.feed-list .dot { position: absolute; left: 0; top: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid #39569922; font-size: 12px; color: var(--ui-text-muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; }
.filter { border: 1px solid var(--ui-border); background: var(--ui-page); color: var(--ui-text-muted); font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius); cursor: pointer; transition: background-color 0.2s ease-out, color 0.2s ease-out; }
.filter:hover { color: var(--ui-text); }
.filter.is-active { background: var(--ui-surface-dark); border-color: var(--ui-surface-dark); color: var(--ui-text-inverse); }
.filter:focus-visible { outline: 2px solid var(--ui-button); outline-offset: 2px; }
@media (max-width: 1000px) { .front-grid { grid-template-columns: 1fr; } .lead-news h1 { font-size: 30px; } }
@media (max-width: 560px) { .lead-news h1 { font-size: 25px; } .front-head { gap: 8px; } .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .filter { white-space: nowrap; } }
@media (prefers-reduced-motion: reduce) { .filter { transition: none; } }

/* ---------- оцінка за напрямками і пам'ять ---------- */
.lenses { margin: 14px 0; }
.lenses dl { margin: 6px 0 8px; border: 1px solid #39569933; border-radius: var(--radius); overflow: hidden; background: var(--ui-page); }
.lens { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 4px 18px; padding: 11px 14px; border-top: 1px solid #39569922; }
.lens:first-child { border-top: 0; }
.lens dt { display: grid; grid-template-columns: 9px minmax(0, 1fr); column-gap: 9px; align-items: center; font-size: 14px; font-weight: 600; }
.lens dt small { grid-column: 2; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--ui-text-muted); }
.lens dd { margin: 0; font-size: 15px; line-height: 1.4; }
.dot.none { background: transparent; box-shadow: inset 0 0 0 2px #39569955; }
.memory { margin: 14px 0; padding: 14px 16px; border-radius: var(--radius); background: var(--ui-surface-soft); border-left: 4px solid var(--ui-surface-dark); }
.memory ul { list-style: none; margin: 6px 0 0; padding: 0; }
.memory li { font-size: 15px; line-height: 1.45; }
.memory li + li { margin-top: 10px; padding-top: 10px; border-top: 1px solid #39569922; }
.memory .chip { margin: 0 4px; }
.memo-tag { display: inline-block; margin-left: 8px; font-size: 12px; font-weight: 700; color: #24468f; white-space: nowrap; }
@media (max-width: 700px) { .lens { grid-template-columns: 1fr; } }

/* ---------- підвал ---------- */
.site-footer { background: var(--ui-surface-dark); color: #c9d3ea; padding: 32px 0; font-size: 14px; }
.site-footer a { color: var(--ui-text-inverse); }
.site-footer p { margin: 0 0 6px; }

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  h1, .prose h1 { font-size: 28px; }
  h2 { font-size: 23px; }
  .section { padding: 36px 0; }
  .two, .cards { grid-template-columns: 1fr; }
  .facts li { grid-template-columns: 104px 1fr; }
  .facts .num { font-size: 22px; }
  .doc { grid-template-columns: 1fr; gap: 16px; padding-top: 24px; }
  .toc { position: static; max-height: none; border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 14px 16px; }
  .site-header .container { gap: 14px; }
  .plain-list li { grid-template-columns: 1fr; gap: 2px; }
  .decision { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  a.card:hover .icon { transform: none; }
}

/* ---------- рада ШІ-радників ---------- */
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius); background: var(--ui-surface-dark); color: var(--ui-text-inverse); font-weight: 700; margin-bottom: 12px; }
.cards.who .card .icon { margin-bottom: 12px; }
.cards.who .card .stops { margin-top: 10px; padding-top: 10px; border-top: 1px solid #39569922; font-size: 14px; color: var(--ui-text); font-weight: 600; }
.dept .advisor { margin: 0 0 12px; font-size: 14px; font-weight: 700; color: #24468f; }
.dept .facts-list { margin: 0 0 10px; grid-template-columns: 1fr; }
.dept-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.center-card { margin-top: 20px; background: var(--ui-surface-warm); }
.center-card h3 { margin-top: 0; }
@media (max-width: 1000px) { .cards:has(.dept) { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cards:has(.dept) { grid-template-columns: 1fr; } }

/* ---------- навігація: «Ще», «де я», «куди далі», карта сайту, пошук (tools/nav.py) ---------- */
.narrow-only { display: none; }
.subnav .more { position: relative; margin: 0; padding: 0; border: 0; }
.subnav .more summary { list-style: none; cursor: pointer; color: var(--ui-text-muted); font-weight: 500; font-size: 14px; white-space: nowrap; padding: 11px 0; border-bottom: 2px solid transparent; user-select: none; }
.subnav .more summary::-webkit-details-marker { display: none; }
.subnav .more summary::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.subnav .more[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.subnav .more summary:hover, .subnav .more[open] summary { color: var(--ui-text); }
.subnav .more summary.is-active { color: var(--ui-text); border-bottom-color: var(--ui-surface-dark); font-weight: 600; }
.subnav .more-menu { position: absolute; right: 0; top: 100%; z-index: 20; width: 320px; background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); box-shadow: var(--shadow-hover); padding: 6px; display: grid; }
.subnav .more-menu a { display: grid; gap: 2px; white-space: normal; padding: 10px 12px; border-bottom: 0; border-radius: 6px; }
.subnav .more-menu a b { color: var(--ui-text); font-weight: 600; font-size: 14px; }
.subnav .more-menu a small { color: var(--ui-text-muted); font-size: 13px; line-height: 1.35; font-weight: 400; }
.subnav .more-menu a:hover, .subnav .more-menu a.is-active { background: var(--ui-surface-soft); }
@media (min-width: 861px) { .subnav .container { overflow: visible; flex-wrap: wrap; row-gap: 0; } }
@media (max-width: 860px) { .wide-only { display: none; } .subnav a.narrow-only { display: block; } }

.search-link { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--ui-surface-dark); padding: 8px 12px; border: 1px solid var(--ui-border); border-radius: var(--radius); white-space: nowrap; transition: background-color 0.2s ease-out; }
.search-link:hover { background: var(--ui-surface-soft); }
.search-link + .account-link { margin-left: 0; }
@media (max-width: 560px) { .search-link { order: 1; padding: 8px 10px; } .search-link + .account-link { margin-left: 0; } }

.crumbs { font-size: 13px; color: var(--ui-text-muted); border-bottom: 1px solid var(--ui-border); }
.crumbs ol { list-style: none; margin: 0; padding: 9px 0; display: flex; flex-wrap: wrap; gap: 2px 0; min-width: 0; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: #8a93a8; }
.crumbs a { color: var(--ui-text-muted); text-decoration: none; white-space: nowrap; }
.crumbs a:hover { color: var(--ui-text); text-decoration: underline; }
.crumbs li[aria-current] { color: var(--ui-text); font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.crumbs li[aria-current]::before { display: inline; }

.next-step { padding: 0 0 40px; }
.next-step a { display: grid; gap: 2px; text-decoration: none; border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 16px 20px; background: var(--ui-page); color: var(--ui-text); transition: box-shadow 0.2s ease-out; }
.next-step a span { font-size: 13px; color: var(--ui-text-muted); }
.next-step a b { font-size: 18px; color: var(--ui-surface-dark); }
.next-step a small { font-size: 14px; color: var(--ui-text-muted); }
@media (hover: hover) { .next-step a:hover { box-shadow: var(--shadow-hover); } }
main > .section:last-of-type + .next-step { padding-top: 24px; }

.footer-nav { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: 24px; margin-bottom: 20px; border-bottom: 1px solid #ffffff26; }
.footer-nav h2 { font-size: 14px; margin: 0 0 10px; color: var(--ui-text-inverse); }
.footer-nav h2 a { text-decoration: none; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-nav li a { color: #c9d3ea; text-decoration: none; }
.footer-nav li a:hover { color: var(--ui-text-inverse); text-decoration: underline; }
@media (max-width: 860px) { .footer-nav { grid-template-columns: repeat(2, 1fr); } }

.site-search { margin-top: 28px; max-width: 720px; }
.site-search label { display: block; font-weight: 600; margin-bottom: 8px; }
.site-search div { display: flex; gap: 10px; }
.site-search input { flex: 1; min-width: 0; font: inherit; padding: 12px 14px; border: 1px solid #39569966; border-radius: var(--radius); background: var(--ui-page); color: var(--ui-text); }
.site-search input:focus-visible { outline: 2px solid #24468f; outline-offset: 1px; }
.search-results { max-width: 720px; display: grid; gap: 10px; margin-top: 16px; }
.search-results:empty { display: none; }
.found-count { margin: 0; color: var(--ui-text-muted); font-size: 14px; }
.found { display: grid; gap: 3px; text-decoration: none; color: var(--ui-text); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 14px 16px; background: var(--ui-page); }
.found b { color: #24468f; font-size: 17px; }
.found-where { font-size: 12px; color: var(--ui-text-muted); }
.found-text { margin: 0; font-size: 14px; color: var(--ui-text-muted); }
.found mark { background: #ffe9b8; color: inherit; padding: 0 2px; border-radius: 3px; }
@media (hover: hover) { .found:hover { box-shadow: var(--shadow-hover); } }

.map-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.map-block { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.map-grid .map-block { margin-bottom: 0; }
.map-block.today { border-top: 4px solid var(--ui-surface-dark); }
.map-block.parallel { border-top: 4px solid #c9b458; }
.map-block h2 { font-size: 22px; margin-bottom: 6px; }
.map-block > p { color: var(--ui-text-muted); margin: 0 0 14px; }
.map-block ul { list-style: none; margin: 0; padding: 0; display: grid; }
.map-block li { display: grid; grid-template-columns: 210px 1fr; gap: 4px 16px; padding: 10px 0; border-top: 1px solid var(--ui-border); }
.map-block li a { font-weight: 600; }
.map-block li span { color: var(--ui-text-muted); font-size: 14px; }
.map-block.spheres ul { grid-template-columns: 1fr 1fr; column-gap: 32px; }
@media (max-width: 860px) { .map-grid, .map-block.spheres ul { grid-template-columns: 1fr; } .map-block li { grid-template-columns: 1fr; } .map-block { padding: 18px; } }
@media (prefers-reduced-motion: reduce) { .search-link, .next-step a { transition: none; } }

/* ---------- головна: блок «Що нового» ---------- */
.fresh { padding-top: 28px; padding-bottom: 8px; }
.fresh h2 { margin: 10px 0 18px; }
.fresh-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.fresh-col { background: var(--ui-page); border: 1px solid var(--ui-border); border-radius: var(--radius); padding: 20px; }
.fresh-col h3 { margin: 0 0 6px; font-size: 18px; }
.fresh-list { list-style: none; margin: 0 0 14px; padding: 0; }
.fresh-list li { padding: 12px 0; border-top: 1px solid #39569922; }
.fresh-list li:first-child { border-top: 0; }
.fresh-list small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ui-text-muted); margin-bottom: 4px; }
.fresh-list a { color: var(--ui-text); font-weight: 600; text-decoration: none; line-height: 1.35; overflow-wrap: anywhere; }
.fresh-list a:hover { color: #24468f; text-decoration: underline; }
.fresh-list span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--ui-text-muted); }
.fresh-col:last-child .fresh-list a { font-weight: 500; font-size: 15px; }
.feed-note { margin: 0 0 8px; font-size: 13px; line-height: 1.4; color: var(--ui-text-muted); }
@media (max-width: 860px) { .fresh-grid { grid-template-columns: 1fr; } .fresh-col { padding: 16px; } .fresh-list li:nth-child(n+4) { display: none; } }

/* картинка-картка рішення: нею діляться в месенджерах */
.share-card { margin: 28px 0 0; }
.share-card img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--ui-border); }
.share-card figcaption { margin-top: 8px; font-size: 14px; color: var(--ui-text-muted); }
