@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-cyrillic-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-cyrillic-wght-normal.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Inter;
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"),
       url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  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;
}

:root {
  /* Ночной синий — бывший основной, теперь для наведения и глубоких акцентов */
  --navy: #244197;
  /* Фирменный — основной цвет бренда, сразу на кнопках */
  --brand: #3f61c5;
  /* Глубокий синий — чуть темнее палитры */
  --brand-ink: #203983;
  /* Светлый синий — чуть светлее основного */
  --brand-mid: #2c4eb5;
  /* Яркий синий */
  --brand-bright: #3a5fcf;
  /* Василёк */
  --cornflower: #4a6dd3;
  /* Цикорий */
  --chicory: #5b7ad7;
  /* Актуальный проект */
  --actual: linear-gradient(180deg, #74BAAC 0%, #53C493 100%);
  --actual-solid: #53C493;
  /* Реализованный проект */
  --completed: #5fa8f5;

  --brand-dark: var(--navy);
  --brand-soft: color-mix(in srgb, var(--brand) 16%, #ffffff);
  --bg: #ffffff;
  --bg-soft: #f4f5f7;
  --bg-mute: #f8f9fa;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-2: #222222;
  --muted: #717680;
  --muted-2: #8c909c;
  --line: #e5e7eb;
  --chip: #eef0f3;
  --btn-2: #f0f2f5;
  --ink: #111111;
  --focus: var(--brand-bright);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 9999px;
  --shadow-hover: 0 8px 28px rgba(63, 97, 197, 0.18);
  --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.04);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 88px;
  --page-gutter: 24px;
  --page-max: 1440px;
  --page-bg: linear-gradient(180deg, rgba(232, 237, 243, 0.56) 0%, rgba(193, 207, 222, 0.53) 100%);
  --logo-plate: linear-gradient(99deg, #2C4EB5 -20.75%, #3A5FCF 7.79%, #4478D3 41.14%, rgba(80, 139, 226, 0.91) 68.12%, #83B8FA 92.84%, #5FA8F5 111.19%);
  --nav-track: linear-gradient(90deg, #C4D9EA 0.06%, #D2E4ED 32.17%, #CEDDE6 70.66%, #AAB8D1 105.63%);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  font-size: 100%;
}

body:not(.is-map) {
  --page-max: 1320px;
}

a,
button,
.btn,
.chip,
.icon-btn,
.entity-tag,
.entity-card,
.doc-card,
.breadcrumbs a,
.header-tabs a,
.segmented a {
  transition-property: color, background-color, border-color, box-shadow, transform, opacity, filter;
  transition-duration: .25s;
  transition-timing-function: var(--ease);
}
html, body { margin: 0; min-height: 100%; }
html {
  scroll-behavior: smooth;
  height: 100%;
  background-color: #ffffff;
  background-image: var(--page-bg);
  background-attachment: fixed;
}
body {
  position: relative;
  font-family: var(--font);
  color: var(--text);
  background-color: transparent;
  background-image: var(--page-bg);
  background-attachment: fixed;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  right: 0;
  height: 49px;
  overflow: hidden;
  background-image: url("../img/pattern-top.svg");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 2131px 49px;
  pointer-events: none;
  z-index: 0;
}
body.modal-open { overflow: hidden; }
main { flex: 1 1 auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 {
  letter-spacing: -0.025em;
  font-weight: 650;
  color: var(--text-2);
  line-height: 1.2;
}
h1 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 80; border-radius: var(--radius-sm); }

.wrap {
  width: min(calc(100% - var(--page-gutter) * 2), var(--page-max));
  margin-left: auto;
  margin-right: auto;
}

.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--btn-2);
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--navy); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  min-height: 40px;
}
.btn-ghost:hover { border-color: var(--cornflower); color: var(--brand); }
.btn-block { width: 100%; }

.icon-btn {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.icon-btn:hover,
.icon-btn[aria-expanded="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  text-decoration: none;
}
.site-header .icon-btn:hover,
.site-header .icon-btn[aria-expanded="true"] {
  transform: none;
  box-shadow: none;
}
.site-header .segmented a[aria-current="true"] {
  box-shadow: none;
}
.site-header .segmented a:hover,
.site-header .header-tabs a:hover {
  transform: none;
  box-shadow: none;
}
.icon-btn .icon { width: 20px; height: 20px; }

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  background: var(--chip);
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.chip:hover { transform: translateY(-1px); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked),
.chip.is-on {
  background: var(--brand);
  color: #fff;
}
.chip:has(input[value="actual"]:checked) {
  background: var(--actual);
  color: #fff;
}

.segmented {
  display: inline-flex;
  padding: 4px;
  background: linear-gradient(90deg, #DDE4F1 0%, #E0EEFF 100%);
  border-radius: var(--radius-pill);
  gap: 2px;
}
.segmented a,
.segmented__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.segmented a:hover { text-decoration: none; color: var(--brand); background: #fff; }
.segmented a[aria-current="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-hover);
}

.site-header {
  position: sticky;
  top: 9px;
  z-index: 30;
  background: transparent;
  padding: 12px 0 8px;
}
.site-header a { color: inherit; }
.header-bar {
  display: flex;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: var(--page-max);
  margin-left: auto;
  margin-right: auto;
  min-height: 54px;
  padding: 4px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 28px rgba(36, 65, 151, 0.08);
}
.brand-plate {
  display: flex;
  align-items: center;
  align-self: center;
  gap: 10px;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-width: 0;
  padding: 10px 16px 10px 12px;
  border-radius: 18px;
  background: var(--logo-plate);
  color: #fff;
  text-decoration: none;
  transition: filter .25s var(--ease), transform .25s var(--ease);
}
.brand-plate:hover { text-decoration: none; color: #fff; filter: brightness(1.06); }
.brand-plate__mark {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
}
.brand-plate__name {
  display: block;
  min-width: 0;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.header-tabs {
  display: flex;
  align-items: stretch;
  flex: 0 1 auto;
  min-width: 0;
  padding: 4px 4px 4px 18px;
  gap: 2px;
  border-radius: 18px;
  background: none;
}
.header-tabs a {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0 14px;
  border-radius: 14px;
  color: #24324a;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.header-tabs a:hover {
  color: #5387DC;
  text-decoration: none;
}
.header-tabs a[aria-current="page"] {
  background: none;
  color: var(--brand);
  box-shadow: none;
}
.site-header__tools {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 0 4px 0 2px;
}
.header-bar .icon-btn {
  width: 40px;
  height: 38px;
  min-height: 38px;
  border-radius: 12px;
}
.header-bar #a11y-toggle {
  color: var(--text);
}
.header-bar #a11y-toggle:hover,
.header-bar #a11y-toggle[aria-expanded="true"] {
  color: #fff;
}
.translate-widget {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
body { top: 0 !important; }
iframe.skiptranslate,
iframe.goog-te-banner-frame,
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
#goog-gt-vt,
.goog-tooltip,
.goog-te-spinner-pos {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
}
.goog-text-highlight {
  background: none !important;
  box-shadow: none !important;
}

.a11y-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  align-items: center;
  padding: 12px 0 16px;
  color: var(--text);
}
.site-header .a11y-panel {
  margin-top: 8px;
  padding: 12px 16px 16px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 8px 28px rgba(36, 65, 151, 0.08);
}
.a11y-panel[hidden] { display: none !important; }
.a11y-panel__title { margin: 0; font-weight: 650; }
.a11y-panel label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.a11y-panel select { width: auto; min-height: 40px; }
.a11y-panel input[type="checkbox"],
.cookie-settings input[type="checkbox"],
.stack input[type="checkbox"],
.inline-form input[type="checkbox"] {
  width: auto;
  min-height: auto;
}
.cookie-settings label,
.stack label:has(> input[type="checkbox"]) {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.site-footer {
  background: transparent;
  margin-top: auto;
  flex-shrink: 0;
}
.site-footer,
.site-footer .footer-copyright,
.site-footer .site-footer__links,
.site-footer a {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.03em;
  color: #5f6e8b;
  font-weight: 550;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}
.site-footer__start {
  display: grid;
  gap: 6px;
  min-width: 0;
  flex: 1 1 280px;
}
.footer-copyright {
  margin: 0;
}
.site-footer__links {
  margin: 0;
  text-align: left;
}
.site-footer__credit {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex: 0 0 auto;
  margin-left: auto;
  text-decoration: none;
  color: #5f6e8b;
  text-align: right;
}
.site-footer__credit:hover {
  text-decoration: none;
  color: var(--brand);
}
.site-footer__credit img {
  display: block;
  width: auto;
  height: 30px;
}
.site-footer a { transition: color .25s var(--ease); }
.site-footer a:hover { color: var(--brand); }

main { padding: 0; }
body:not(.is-map) main { padding: 28px 0 48px; }

.lead { margin: 0 0 16px; color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.map-page { background: transparent; padding-bottom: 8px; }
.map-shell { position: relative; }
.map-stage {
  position: relative;
  height: calc(100dvh - var(--header-h) - 200px);
  min-height: 420px;
  max-height: 620px;
  background: #eef1f4;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
#map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: #e8ecf1;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
}
.admin-map {
  width: 100%;
  height: 360px;
  min-height: 320px;
  background: #e8ecf1;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
}
.map-canvas--muted [class*="-ground-pane"] {
  filter: grayscale(.42) saturate(.5) contrast(.96) brightness(1.06);
}

.cluster-balloon-list {
  margin: 0;
  padding: 4px 0;
  list-style: none;
  max-height: 220px;
  overflow: auto;
  min-width: 180px;
  max-width: 280px;
}
.cluster-balloon-list li + li {
  margin-top: 2px;
}
.cluster-balloon-list a {
  display: block;
  padding: 6px 8px;
  border-radius: var(--radius-sm);
  color: var(--brand);
  text-decoration: none;
  font-size: .9rem;
  line-height: 1.35;
  word-break: break-word;
}
.cluster-balloon-list a:hover,
.cluster-balloon-list a:focus-visible {
  background: var(--brand-soft);
  color: var(--brand-ink);
  outline: none;
}

.map-count-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  font: 700 13px/1 Inter, "Segoe UI", system-ui, sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  /* цифра визуально ниже и правее центра круга — сдвиг на 4px */
  padding: 0 1px 1px 0;
  box-shadow: 0 2px 8px rgba(32, 57, 131, .28);
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  box-sizing: border-box;
}
.map-count-icon--completed { background: #5fa8f5; }
.map-count-icon--actual { background: #53C493; }
.map-count-icon--mixed {
  background: linear-gradient(135deg, #5fa8f5 0 50%, #53C493 50% 100%);
}

.project-fields { display: grid; gap: 14px; }
.project-field h3 {
  margin: 0 0 6px;
  font-size: .92rem;
  font-weight: 650;
  color: var(--muted);
}
.project-field .prose { margin: 0; }

.island {
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px 14px 12px;
}
.island-regions,
.island-filters {
  position: absolute;
  z-index: 6;
  top: 16px;
  width: min(292px, calc(100% - 32px));
  max-height: calc(100% - 32px);
  overflow: auto;
}
.island-regions { left: 16px; }
.island-filters { right: 16px; }
.island h2,
.island legend {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.island-zoom {
  position: absolute;
  z-index: 6;
  right: 16px;
  bottom: 88px;
  display: flex;
  flex-direction: column;
  padding: 4px;
  overflow: hidden;
}
.island-zoom button {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.25rem;
  cursor: pointer;
}
.island-zoom button + button { border-top: 1px solid var(--line); }
.island-zoom button:hover { color: var(--brand-bright); background: var(--brand-soft); }
.island-legend {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 16px;
  margin-left: 0;
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  white-space: nowrap;
  translate: -50% 0;
}
.legend-item { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--completed);
}
.legend-actual::before { background: #53C493; border-radius: 50%; }

.region-tree { max-height: 58vh; overflow: auto; }
.region-tree__list { list-style: none; margin: 0; padding: 0; }
.region-tree__list .region-tree__list { padding-left: 10px; }
.region-tree__children[hidden] { display: none !important; }
.region-tree__item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: 8px 10px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: background .2s var(--ease), color .2s var(--ease), padding-left .2s var(--ease);
}
.region-tree__item[data-has-children]::after { content: "▸"; float: right; color: var(--muted-2); }
.region-tree li.is-open > .region-tree__item[data-has-children]::after { content: "▾"; }
.region-tree__item:hover,
.region-tree__item.is-active {
  background: #dfecfc7a;
  color: #3a55a5;
  font-weight: 650;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.island fieldset { border: 0; margin: 0 0 12px; padding: 0; }
.panel label, .stack label { display: grid; gap: 6px; margin: 0; font-size: 14px; color: var(--muted); }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  min-height: 44px;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand-bright); box-shadow: 0 0 0 3px color-mix(in srgb, var(--chicory) 28%, transparent); outline: none; }
.panel select { min-height: auto; }

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 650;
  background: var(--chip);
  color: var(--text);
  margin-right: 16px;
}
.badge-completed {
  background: linear-gradient(99deg, #2C4EB5 -20.75%, #3A5FCF 7.79%, #4478D3 41.14%, rgba(80, 139, 226, 0.91) 68.12%, #83B8FA 92.84%, #5FA8F5 111.19%);
  color: #ffffff;

}
.badge-actual { background: color-mix(in srgb, var(--actual-solid) 18%, #fff); color: #2a7a5c; }
.badge-overlay {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  backdrop-filter: blur(8px);
  background: rgba(17, 17, 17, .45);
  color: #fff;
}
.badge-overlay.badge-completed {
  background: linear-gradient(99deg, #2C4EB5 -20.75%, #3A5FCF 7.79%, #4478D3 41.14%, rgba(80, 139, 226, 0.91) 68.12%, #83B8FA 92.84%, #5FA8F5 111.19%);
  color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.catalog .badge-overlay.badge-completed {
  background: linear-gradient(99deg, #2C4EB5 -20.75%, #3A5FCF 7.79%, #4478D3 41.14%, rgba(80, 139, 226, 0.91) 68.12%, #83B8FA 92.84%, #5FA8F5 111.19%);
  color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.badge-overlay.badge-actual { background: var(--actual); color: #fff; }

.content-page, .admin-card, .admin-main section, .info-block {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
}
.content-page.wrap {
  width: min(calc(100% - var(--page-gutter) * 2), var(--page-max));
}
.content-page--full .prose {
  max-width: none;
  width: 100%;
}
.admin-main section, .admin-card { max-width: 1080px; }
.prose { max-width: 68ch; }
.prose :where(p, ul, ol) {
  color: #2a2a30;
  font-weight: 400;
}
.prose :where(h1, h2, h3) { margin-top: 0; }

.application-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
  gap: 28px 32px;
  align-items: start;
}
.application-layout__main { min-width: 0; }
.application-layout .doc-cards {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  margin: 0;
}
.doc-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 22px 0 8px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 118px;
  padding: 18px 20px;
  background: #f4f6fb;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
a.doc-card:hover,
a.doc-card:focus-visible {
  text-decoration: none;
  background: var(--brand);
  color: #fff;
  outline: none;
}
a.doc-card:hover .doc-card__title,
a.doc-card:focus-visible .doc-card__title {
  color: #fff;
}
a.doc-card:hover .doc-card__icon,
a.doc-card:focus-visible .doc-card__icon {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.doc-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  color: var(--brand);
  transition: background-color .28s var(--ease), color .28s var(--ease);
}
.doc-card__icon .icon {
  width: 22px;
  height: 22px;
}
.doc-card__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.35;
  color: #2a2a30;
  transition: color .28s var(--ease);
}

.catalog h1 { margin: 0 0 22px; }
.catalog .entity-card__summary { display: none !important; }
.catalog-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
  margin: 0 0 40px;
}
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}
.catalog-stats {
  display: grid;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  color: #37445a;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.catalog-stats p {
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.catalog-stats strong {
  font-weight: 700;
  color: #24324a;
  font-variant-numeric: tabular-nums;
}
.catalog-filter {
  display: block;
  width: 210px;
  flex: 1 1 210px;
  min-width: 180px;
  max-width: 210px;
}
.catalog-filter__label { display: none; }
.catalog-filter__control {
  display: block;
  position: relative;
  background: #f4f6fb;
  border-radius: 8px;
  transition: border-radius .3s ease;
}
@media (hover: hover) and (pointer: fine) {
  .catalog-filter__control:hover {
    border-radius: 28px;
  }
}
.catalog-filter__control.is-open {
  border-radius: 16px;
  z-index: 5;
}
.catalog-filter__control:focus-within {
  border-radius: 28px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--chicory) 22%, transparent);
}
.catalog-filter__control.is-open:focus-within {
  border-radius: 16px;
  box-shadow: none;
}
.catalog-filter select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.catalog-filter__trigger {
  display: flex;
  align-items: center;
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 44px 0 20px;
  border: 0;
  border-radius: inherit;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23282d3c' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #282d3c;
  text-align: left;
  cursor: pointer;
  transition: color .3s ease, border-radius .3s ease;
}
.catalog-filter__trigger:hover { color: #788095; }
.catalog-filter__trigger:focus { outline: none; }
.catalog-filter__menu {
  list-style: none;
  margin: 0;
  padding: 6px;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 6;
  background: #f4f6fb;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(40, 45, 60, 0.12);
  max-height: 280px;
  overflow: auto;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}
.catalog-filter__control.is-open .catalog-filter__menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.catalog-filter__option {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 10px;
  background: transparent;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #282d3c;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-radius .25s ease;
}
.catalog-filter__option:hover {
  background: color-mix(in srgb, var(--brand) 12%, #fff);
  color: var(--brand);
  border-radius: 20px;
}
.catalog-filter__option.is-selected {
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
}
.catalog-empty {
  margin: 20px 0 0;
  color: var(--muted);
}
.btn-map-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
  min-height: 42px;
  padding: 6px 10px 6px 6px;
  border-radius: 28px;
  background-color: #f4f6fb;
  color: #282d3c;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-radius .3s ease;
}
.btn-map-cta__icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: #fff;
  box-shadow: 0 1px 4px rgba(40, 45, 60, 0.08);
}
.btn-map-cta__icon img {
  width: 30px;
  height: 30px;
  object-fit: cover;
  display: block;
}
.btn-map-cta__text { line-height: 1.2; }
.btn-map-cta:hover {
  background-color: #d7dee9;
  color: #282d3c;
  text-decoration: none;
  border-radius: 28px;
}
.btn-map-cta:active {
  transform: none;
  background-color: #cdd5de;
}
.project-grid {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  align-items: stretch;
}
.project-grid > li {
  display: flex;
  min-width: 0;
  height: 100%;
}
.entity-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #fff;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: background-color .25s var(--ease);
}
.entity-card__stretch {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  color: transparent;
}
a.entity-card:hover,
.entity-card:hover {
  text-decoration: none;
  transform: none;
  box-shadow: none;
}
.entity-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-soft);
  color: inherit;
  text-decoration: none;
}
.entity-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}
a.entity-card:hover .entity-card__media img,
.entity-card:hover .entity-card__media img,
.similar-projects .entity-card:hover .entity-card__media img,
.similar-projects .entity-card:hover .entity-card__ph,
.catalog .entity-card:hover .entity-card__media img,
.catalog .entity-card:hover .entity-card__ph {
  transform: none;
}
.entity-card__ph {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--brand);
  background:
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--chicory) 28%, transparent), transparent 42%),
    linear-gradient(180deg, var(--brand-soft), #f4f5f7);
  transition: transform .45s var(--ease);
}
a.entity-card:hover .entity-card__ph,
.entity-card:hover .entity-card__ph { transform: none; }
.entity-card__body {
  position: relative;
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 auto;
  min-height: 0;
}
.entity-card__body h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
  font-weight: 600;
}
.entity-card__body h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: 0;
  font-weight: 600;
}
.entity-card__body h2 a,
.entity-card__body h3 a {
  position: relative;
  z-index: 2;
  color: inherit;
  text-decoration: none;
}
.entity-card__body h2 a:hover,
.entity-card__body h3 a:hover,
.entity-card:hover .entity-card__body h2 a,
.entity-card:hover .entity-card__body h3 a {
  color: var(--brand);
  text-decoration: none;
}
.entity-card__org {
  position: relative;
  margin: 2px 0 0;
  font-weight: 500;
  color: #535672;
  line-height: 115%;
  font-size: 15px;
  max-height: calc(1.15em * 2);
  overflow: hidden;
}
.entity-card__org.is-clamped::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.15em;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff 88%);
  pointer-events: none;
}
.entity-card__meta {
  position: relative;
  z-index: 2;
  margin: auto 0 0;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.entity-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  padding: 4px 4px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.entity-tag .icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}
.entity-tag--category {
  background: var(--brand);
  color: #fff;
}
.entity-tag--category:hover {
  background: var(--brand-ink);
  color: #fff;
  text-decoration: none;
}
.entity-tag--region {
  background: #e6e8ee;
  color: #2a2a30;
}
.entity-tag--region:hover {
  background: #d8dbe3;
  color: #2a2a30;
  text-decoration: none;
}
.entity-card__summary { position: relative; z-index: 2; margin: 4px 0 0; color: #454e5e; font-size: 13px; }
.entity-card__media { color: inherit; text-decoration: none; }
a.entity-card__media:hover { text-decoration: none; }
.link-more {
  position: relative;
  z-index: 2;
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
}

.bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 14px;
  padding: 16px 0 16px;
}
.bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 22px 28px;
  background: var(--bg-soft);
  min-height: 160px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  text-decoration: none;
  color: inherit;
  display: block;
}
a.bento-card {
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.bento-card:hover { text-decoration: none; color: inherit; }
.bento-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.bento-card--wide { grid-column: 1; grid-row: 1 / span 2; background: #4375d3; color: #fff; }
.bento-card h3 { margin: 0 0 8px; font-size: 1.15rem; }
.bento-card--wide h3 {
  margin-bottom: 0;
  max-width: none;
  font-size: 1.5rem;
  line-height: 1.22;
  letter-spacing: 0.03em;
}
.bento-card p { margin: 0; color: var(--muted); max-width: 36ch; font-size: 15px; }
.bento-card--wide h3,
.bento-card--wide p { color: #fff; }
.bento-card .icon {
  width: 28px;
  height: 28px;
  margin-bottom: 14px;
  color: var(--brand);
}
.bento-card--wide .icon {
  width: 36px;
  height: 36px;
  color: #8DC4FF;
}

.region-crests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 32px;
  padding: 48px 0 32px;
}
.region-crests__title {
  margin: 0;
  flex: 0 1 280px;
  max-width: 18ch;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--text-2);
}
.region-crests__list {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 28px 26px;
  flex: 1 1 480px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-content: flex-end;
}
.region-crests__item {
  display: block;
  width: auto;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: transform .25s var(--ease), color .25s var(--ease);
}
.region-crests__item:hover {
  text-decoration: none;
  color: var(--brand);
  transform: translateY(-2px);
}
.region-crests__mark {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 118px;
  min-height: 118px;
  padding: 14px 12px 12px;
  gap: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(36, 65, 151, 0.1);
}
.region-crests__mark img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
.region-crests__name {
  display: block;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #37445a;
}
.region-crests__item:hover .region-crests__name { color: var(--brand); }

.about-lead {
  padding: 8px 0 40px;
  color: var(--muted);
}

.modal[hidden], [hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .35);
}
.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  max-height: min(70vh, 640px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 24px;
  border: 1px solid var(--line);
  padding: 0;
  animation: modal-in .45s var(--ease);
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.project-card__slider {
  position: relative;
  flex: 0 0 auto;
  aspect-ratio: 16 / 9;
  max-height: 200px;
  background: var(--bg-soft);
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}
.project-card__slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.project-card__slider img.is-active { display: block; }
.project-card__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  cursor: pointer;
}
.project-card__nav.prev { left: 12px; }
.project-card__nav.next { right: 12px; }
.project-card__body {
  padding: 16px 20px 20px;
  display: grid;
  gap: 10px;
  overflow: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.project-card__body h2 { margin: 0; font-size: 1.15rem; }
.project-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
}
.meta-grid strong { display: block; color: var(--text); font-size: 14px; }
.project-card__links { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; margin: 0; }
.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 4px 14px rgba(36, 65, 151, 0.16);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.modal__close:hover {
  background: #fff;
  color: var(--brand);
}
.empty-notice { color: var(--muted); margin: 8px 0 0; }

/* Soft auras on project pages: fixed to viewport (not tied to scroll). */
html:has(.project-page)::before,
html:has(.project-page)::after {
  content: none;
}
body:has(.project-page) {
  background-image:
    radial-gradient(circle 22vw at 16% 40%, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.22) 45%, rgba(255, 255, 255, 0) 72%),
    var(--page-bg);
  background-repeat: no-repeat, no-repeat;
  background-attachment: fixed, fixed;
}
body:has(.project-page)::after {
  content: "";
  position: fixed;
  right: -10vw;
  top: 6vh;
  width: 56vw;
  height: 56vw;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    circle at 45% 45%,
    rgba(131, 184, 250, 0.5) 0%,
    rgba(100, 160, 235, 0.28) 28%,
    rgba(90, 150, 230, 0.12) 48%,
    rgba(95, 168, 245, 0) 70%
  );
  filter: blur(84px);
  opacity: 0.95;
  transform: translate3d(0, 0, 0);
  will-change: transform;
}
main {
  position: relative;
  z-index: 1;
}
.project-page { padding: 24px 0 40px; display: grid; gap: 20px; position: relative; z-index: 1; }
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  align-items: center;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.breadcrumbs__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  color: var(--muted-2);
  font-size: 0.85em;
  line-height: 1;
}
.breadcrumbs__sep::before {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}
.breadcrumbs a {
  color: var(--brand);
  text-decoration: none;
  border-radius: 3px;
  padding: 2px 6px;
  margin: 0 -2px;
  transition: background-color .22s var(--ease), color .22s var(--ease);
}
.breadcrumbs a:hover {
  text-decoration: none;
  background: #fff;
}
.breadcrumbs > span:last-child {
  padding: 2px 6px;
}
.project-page__header { display: grid; gap: 10px; margin-bottom: 7px; }
.project-page__header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  letter-spacing: -0.025em;
}
.project-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 28px 40px;
  align-items: start;
}
.project-page__main {
  display: grid;
  gap: 20px;
  min-width: 0;
  width: 100%;
}
.project-page__meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 0;
  padding: 18px 30px 28px;
  border-radius: 14px;
  background: rgb(255 255 255 / 30%);
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  box-shadow: 0 8px 28px rgba(36, 65, 151, 0.06);
  position: sticky;
  top: calc(var(--header-h) + 12px);
}
.project-meta-item {
  display: grid;
  gap: 4px;
}
.project-meta-item__label {
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: #37445a;
}
.project-meta-item__value {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: #24324a;
  word-break: break-word;
}
.project-meta-item__value .badge {
  vertical-align: middle;
}
.project-page__org { margin: 0; font-weight: 650; font-size: 1.05rem; }
.project-page__facts { margin-top: 4px; }
.project-page__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  width: 100%;
}
.project-page__thumb {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 0;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  cursor: zoom-in;
  transition: opacity .22s var(--ease), box-shadow .22s var(--ease);
}
.project-page__thumb:hover {
  opacity: 0.92;
  box-shadow: 0 6px 18px rgba(36, 65, 151, 0.12);
}
.project-page__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.project-page__gallery figcaption {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--muted);
}
.project-page__body.prose {
  max-width: none;
  width: 100%;
}
.project-page__body .lead { font-size: 1.05rem; color: var(--text); }
.project-page__links h2 { margin: 0 0 14px; }
.project-page__map-link { margin: 0; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, 0.72);
}
.lightbox__dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, calc(100vw - 96px));
  max-height: calc(100vh - 48px);
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.lightbox__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 88px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.lightbox__counter {
  margin: 10px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}
.lightbox__counter[hidden] { display: none !important; }
.lightbox__close {
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.lightbox__close:hover { color: var(--brand); }
.lightbox__close:focus-visible,
.lightbox__nav:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}
.lightbox__nav:hover { color: var(--brand); }
.lightbox__nav[hidden] { display: none !important; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }
@media (max-width: 640px) {
  .lightbox { padding: 16px; }
  .lightbox__dialog { max-width: calc(100vw - 72px); }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close {
    top: -8px;
    right: -8px;
  }
}
.similar-projects {
  width: 100%;
  margin: 36px 0 0;
  padding: 56px 0 64px;
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: transparent;
}
.similar-projects::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 90% at 18% 40%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.72) 38%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(ellipse 70% 85% at 82% 58%, rgba(255, 255, 255, 0.95) 0%, rgba(236, 244, 255, 0.7) 42%, rgba(255, 255, 255, 0) 78%),
    radial-gradient(ellipse 65% 75% at 50% 48%, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.4) 48%, rgba(255, 255, 255, 0) 78%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
.similar-projects__inner { display: grid; gap: 0; }
.similar-projects h2 {
  margin: 0 0 18px;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 750;
  letter-spacing: -0.02em;
}
.similar-projects .project-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}
.similar-projects .project-grid > li {
  display: flex;
  min-width: 0;
}
.similar-projects .entity-card {
  width: 100%;
  height: 100%;
}
.similar-projects .entity-card__body {
  flex: 1 1 auto;
}
.similar-projects .entity-card__summary { display: none; }
.badge-demo {
  background: transparent;
  color: #98a0ae;
  padding: 0;
  border-radius: 0;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.entity-card__media,
.project-card__slider,
.project-page__thumb {
  position: relative;
}
.demo-watermark {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.demo-note { color: var(--muted); font-size: 0.95rem; }
.donors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 16px 0 8px;
  table-layout: fixed;
}
.donors-table th,
.donors-table td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.donors-table th {
  background: var(--bg-soft);
  font-weight: 650;
}
.donors-table th:nth-child(1),
.donors-table td:nth-child(1) { width: 3.5rem; }
.donors-table th:nth-child(5),
.donors-table td:nth-child(5) {
  width: 11rem;
  overflow-wrap: normal;
  word-wrap: normal;
}
.donors-table a {
  color: var(--brand);
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.donors-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 800px) {
  .donors-table { table-layout: auto; }
  .donors-table thead { display: none; }
  .donors-table,
  .donors-table tbody,
  .donors-table tr,
  .donors-table td {
    display: block;
    width: 100%;
  }
  .donors-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
  }
  .donors-table td {
    border: none;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px 10px 14px;
  }
  .donors-table td:last-child { border-bottom: none; }
  .donors-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .donors-table th:nth-child(1),
  .donors-table td:nth-child(1),
  .donors-table th:nth-child(5),
  .donors-table td:nth-child(5) { width: auto; }
  .donors-table a {
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
  }
}


.cookie-banner {
  position: fixed;
  left: var(--page-gutter);
  right: var(--page-gutter);
  bottom: 16px;
  z-index: 40;
  width: min(420px, calc(100% - var(--page-gutter) * 2));
  margin: 0 auto;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  animation: rise-in .5s var(--ease);
}
.cookie-banner h2 { margin: 0 0 6px; font-size: 0.95rem; font-weight: 650; }
.cookie-banner p { margin: 0 0 10px; color: var(--muted); font-size: 12px; line-height: 1.4; }
.cookie-actions, .inline-form, .coords { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cookie-banner .btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: none;
  transform: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), border-radius .3s ease;
}
.cookie-banner .btn:hover,
.cookie-banner .btn:active {
  transform: none;
  box-shadow: none;
  border-radius: 22px;
}
.cookie-settings { display: grid; gap: 8px; margin-top: 12px; }

.scroll-top {
  position: fixed;
  right: max(16px, var(--page-gutter));
  bottom: 24px;
  z-index: 36;
  box-sizing: border-box;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(36, 65, 151, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .25s var(--ease), visibility .25s var(--ease), transform .25s var(--ease), background .25s var(--ease);
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.scroll-top:hover {
  background: var(--navy);
  color: #fff;
}
.scroll-top .icon {
  width: 22px;
  height: 22px;
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { border-bottom: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
.admin-toolbar { margin-bottom: 16px; }
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.pager__info { margin: 0; color: var(--muted); font-size: 0.92rem; }
.pager__nav { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pager__nav a,
.pager__nav span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font-weight: 650;
  text-decoration: none;
}
.pager__nav a:hover { border-color: var(--cornflower); color: var(--brand); }
.pager__nav .is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pager__nav .is-disabled { color: var(--muted-2); background: var(--bg-soft); }
.pager__nav .pager__gap {
  min-width: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}
.stack { display: grid; gap: 12px; max-width: 720px; }
.flash { padding: 10px 12px; border-radius: 12px; }
.flash-ok { background: #e9f8f1; }
.flash-error { background: #fde8e8; }

.admin-body {
  background-image: var(--page-bg);
  background-attachment: fixed;
}
.admin-header {
  background: #fff;
  color: var(--text);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
}
.admin-header a { color: var(--text); font-weight: 600; }
.admin-header .logo { color: var(--ink); font-size: 1.05rem; }
.admin-header nav { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-main { padding: 24px; }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}
.stats li {
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 16px;
  font-weight: 650;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

.fake-map {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 48% 42%, color-mix(in srgb, var(--chicory) 18%, #fff) 0 18%, transparent 19%),
    linear-gradient(180deg, #e8edf3, #f3f5f8);
}
.fake-map svg { width: 72%; height: 78%; margin: 8% 14% 0; opacity: .55; }
.fake-map svg path { fill: color-mix(in srgb, var(--cornflower) 35%, #d5deea); stroke: var(--chicory); }
.fake-pin {
  position: absolute;
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 50%;
  border: 2px solid #fff;
  translate: -50% -50%;
  cursor: pointer;
  appearance: none;
  animation: pin-pop .55s var(--ease) both;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.fake-pin:hover { transform: scale(1.25); box-shadow: 0 6px 16px rgba(32, 57, 131, .25); }
.fake-pin--done { background: var(--completed); top: 38%; left: 58%; animation-delay: .35s; }
.fake-pin--now { background: var(--actual); border-radius: 4px; top: 52%; left: 34%; animation-delay: .5s; }
.fake-pin--done2 { background: var(--completed); top: 62%; left: 64%; animation-delay: .65s; }

.is-map .map-stage { animation: fade-scale .7s var(--ease) both; }
.is-map .island-regions { animation: slide-in-left .7s var(--ease) .12s both; }
.is-map .island-filters { animation: slide-in-right .7s var(--ease) .18s both; }
.is-map .island-zoom { animation: fade-in .5s var(--ease) .3s both; }
.is-map .island-legend { animation: fade-in .5s var(--ease) .35s both; }
.site-header { animation: fade-in .45s var(--ease) both; }

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(.985); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-18px); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes pin-pop {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.map-fallback {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  text-align: center;
  background: rgba(248, 249, 250, .94);
}

@media (min-width: 1101px) {
  body::before { top: 28px; }
  .site-header { top: 5px; }
  .footer-copyright { white-space: nowrap; }
  .bento-card--wide { padding-left: 42px; }
}
@media (max-width: 1100px) {
  :root { --header-h: 176px; }
  .site-header { top: 4px; padding: 4px 0 8px; }
  .header-bar {
    flex-wrap: wrap;
    align-items: stretch;
    background: none;
    box-shadow: none;
    padding: 0;
    min-height: 0;
    gap: 8px;
    border-radius: 0;
    max-width: 100%;
    min-width: 0;
  }
  .site-header__tools {
    order: 1;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 0 2px;
    justify-content: flex-end;
    gap: 2px;
  }
  .header-bar .icon-btn {
    width: 36px;
    height: 36px;
    min-height: 36px;
    border: 0;
    background: transparent;
    border-radius: 10px;
  }
  .header-bar .icon-btn .icon { width: 20px; height: 20px; }
  .header-bar .icon-btn:hover,
  .header-bar .icon-btn[aria-expanded="true"] {
    background: color-mix(in srgb, var(--brand) 14%, transparent);
    border-color: transparent;
    color: var(--brand);
    transform: none;
    box-shadow: none;
  }
  .header-bar #a11y-toggle:hover,
  .header-bar #a11y-toggle[aria-expanded="true"] {
    color: var(--brand);
  }
  .header-bar .segmented {
    padding: 0;
    background: none;
    gap: 0;
  }
  .header-bar .segmented a,
  .header-bar .segmented__item {
    min-height: 32px;
    padding: 0 8px;
    font-size: 14px;
  }
  .header-bar .segmented a[aria-current="true"] {
    background: none;
    box-shadow: none;
  }
  .brand-plate {
    order: 2;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 20px;
  }
  .brand-plate__mark {
    width: 28px;
    height: 28px;
  }
  .brand-plate__name {
    font-size: clamp(12px, 3.6vw, 15px);
    letter-spacing: -0.03em;
  }
  .header-tabs {
    order: 3;
    flex: 1 1 100%;
    width: 100%;
    min-height: 44px;
    padding: 4px;
    justify-content: space-around;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(36, 65, 151, 0.08);
  }
  .map-shell { display: flex; flex-direction: column; }
  .map-stage { height: 55vh; min-height: 360px; order: 1; }
  .island-filters, .island-regions {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    width: auto;
    max-height: none;
    margin: 12px 0 0;
  }
  .island-filters { order: 2; }
  .island-regions { order: 3; }
  .island-legend { left: 12px; translate: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card--wide { grid-column: 1 / -1; grid-row: auto; }
  .bento-card--wide h3 { max-width: none; }
  .region-crests {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 36px 0 28px;
  }
  .region-crests__title {
    flex: none;
    max-width: none;
  }
  .region-crests__list {
    flex: none;
    justify-content: flex-start;
    gap: 20px 18px;
  }
  .region-crests__mark {
    width: 104px;
    min-height: 108px;
  }
  .meta-grid { grid-template-columns: 1fr; }
  .similar-projects .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-page__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .project-page__meta { position: static; order: -1; }
  .application-layout { grid-template-columns: 1fr; gap: 20px; }
  .application-layout .doc-cards { position: static; }
  .is-map .island-regions,
  .is-map .island-filters { animation: fade-in .5s var(--ease) both; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 16px; --header-h: 168px; }
  h1 { font-size: clamp(1.86rem, 2.4vw, 2.2rem); }
  .header-tabs a { font-size: 15px; padding: 0 10px; }
  .site-footer__links { white-space: normal; text-align: left; margin-left: 0; }
  .site-footer__credit {
    margin-left: 0;
    width: 100%;
    align-items: center;
    text-align: center;
  }
  .bento { grid-template-columns: 1fr; padding: 20px 0 8px; }
  .similar-projects .project-grid { grid-template-columns: 1fr; }
  .cookie-banner { bottom: 10px; }
  body:not(.is-map) main { padding: 20px 0 36px; }
  .catalog-toolbar {
    flex-wrap: wrap;
    align-items: stretch;
  }
  .catalog-filters {
    flex: 1 1 100%;
    width: 100%;
  }
  .catalog-filter {
    flex: 1 1 calc(50% - 6px);
    width: auto;
    max-width: none;
    min-width: 0;
  }
  .catalog-stats {
    flex: 1 1 100%;
    order: 2;
    justify-items: start;
    text-align: left;
    gap: 6px;
    font-size: 15px;
    line-height: 1.35;
  }
  .catalog-stats p {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }
  .catalog-stats strong {
    font-size: 1.2em;
  }
  .btn-map-cta {
    width: auto;
    margin-left: 0;
    justify-content: flex-start;
    order: 3;
  }
  .scroll-top {
    right: 14px;
    bottom: 18px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .fake-pin { translate: -50% -50%; }
}
