:root {
  font-family: "Golos Text", "Segoe UI", Arial, sans-serif;
  color: #14233a;
  background: #f8fafc;
  --ink: #14233a;
  --muted: #53647a;
  --blue: #1055ba;
  --line: #dce4ec;
  --paper: #fff;
  --field: #f6f8fb;
  --edge: clamp(16px, 2.25vw, 34px);
  --shadow: 0 14px 36px #112b4a13, 0 2px 6px #112b4a0b;
}
*, *::after, *::before { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #176cd2; outline-offset: 3px; }
.sr-only, .skip:not(:focus) { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; }
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 20; padding: 12px; border-radius: 6px; background: white; }
.product { min-height: 100svh; display: grid; grid-template-rows: auto minmax(440px, 1fr) auto; }
.wrap { margin-inline: var(--edge); min-width: 0; }
#map, .hero { display: grid; grid-template-rows: minmax(0, 1fr); min-height: 0; }
.topbar { position: relative; z-index: 5; }
.toolbar { display: grid; grid-template-columns: auto auto auto minmax(140px, 1fr) auto; align-items: center; gap: 12px; min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 10px; padding: 2px 4px 2px 0; min-height: 44px; font-size: 24px; font-weight: 730; letter-spacing: -.065em; white-space: nowrap; }
.brand img { border-radius: 10px; }
svg { width: 20px; height: 20px; display: block; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-button, .search-button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: white; border: 1px solid var(--line); border-radius: 10px; }
.icon-button:hover { background: #ecf3fd; color: var(--blue); }
.filters { display: grid; gap: 8px; grid-template-columns: minmax(113px, 132px) minmax(145px, 170px); }
.picker, .search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
.picker:focus-within, .search:focus-within { border-color: #7da6d8; box-shadow: 0 0 0 2px #d8e9ff; }
.picker > svg { position: absolute; left: 10px; color: var(--muted); pointer-events: none; width: 17px; height: 17px; }
.picker .chevron { left: auto; right: 9px; width: 15px; height: 15px; }
.picker select { appearance: none; width: 100%; min-height: 44px; border: 0; border-radius: inherit; background: transparent; color: var(--ink); font-size: 14px; font-weight: 600; padding: 0 24px 0 34px; text-overflow: ellipsis; }
.search { background: #f0f4f8; }
.search-button { flex: none; border: 0; background: transparent; color: var(--muted); }
.search-button:hover { color: var(--blue); }
.search input { appearance: none; border: 0; background: transparent; color: var(--ink); width: 100%; min-width: 0; min-height: 44px; padding: 0 9px 0 0; font-size: 15px; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible, .picker select:focus-visible { outline: 2px solid #176cd2; outline-offset: -2px; border-radius: 8px; }
.shortcut { margin-right: 10px; padding: 2px 7px; color: var(--muted); background: #fff; border: 1px solid #d5dfec; border-radius: 5px; font-size: 13px; }
.switch { display: flex; gap: 3px; align-items: center; background: #eaf0f7; padding: 3px; border-radius: 11px; }
.switch button { min-height: 44px; padding: 0 15px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; white-space: nowrap; background: transparent; }
.switch button:hover { background: #dce8f6; }
.switch button[aria-pressed="true"] { color: var(--paper); background: var(--ink); box-shadow: 0 1px 4px #10274327; }
.popover, .suggestions { position: absolute; z-index: 8; padding: 6px; min-width: 245px; background: var(--paper); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); animation: arrive .2s ease-out; }
.popover { top: 68px; left: calc(var(--edge) + 136px); }
.popover button, .suggestions button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 45px; padding: 5px 11px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 14px; }
.popover button svg { color: var(--blue); }
.popover button span { margin-left: auto; color: var(--muted); }
.popover button:hover, .suggestions button:hover, .suggestions [aria-selected="true"] { background: #ecf4ff; }
.suggestions { top: calc(100% + 6px); left: 0; right: 0; min-width: 0; }
.suggestions p { margin: 0; padding: 12px; font-size: 14px; color: var(--muted); }
.map-frame { position: relative; overflow: hidden; isolation: isolate; border: 1px solid #dbe4ed; border-radius: 18px; background: #eef1ef; }
.map-stage, .map-stage canvas, .map-still { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-stage.mo-cs { position: absolute; --mo-light: #f8fcff1d; }
.map-stage.mo-cs > canvas, .map-stage.mo-cs > .map-still { position: absolute; }
.map-stage.mo-cs > .map-still { z-index: 0; }
.map-stage.mo-cs > .mo-cs__light { z-index: 2; }
.map-stage canvas { z-index: 1; display: block; touch-action: none; cursor: crosshair; }
.map-stage canvas.dragging { cursor: grabbing; }
.map-stage:focus-visible { z-index: 2; outline-offset: -4px; }
.map-still { object-fit: cover; }
.legend, .map-tools, .report { background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.legend { position: absolute; z-index: 3; bottom: 22px; left: 22px; width: 246px; padding: 13px 15px 12px; border-radius: 12px; pointer-events: none; }
.legend p { margin: 0 0 10px; font-size: 13px; font-weight: 680; letter-spacing: -.015em; }
.legend-scale { display: flex; gap: 3px; height: 8px; overflow: hidden; border-radius: 5px; }
.legend-scale i { flex: 1; background: var(--segment, #e2eefc); }
.legend-labels { display: flex; justify-content: space-between; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.map-tools { position: absolute; z-index: 3; bottom: 22px; right: 22px; overflow: hidden; border-radius: 12px; }
.map-tools button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 0; background: var(--paper); }
.map-tools button + button { border-top: 1px solid #edf1f6; }
.map-tools button:hover { background: #edf5ff; color: var(--blue); }
.map-tools button:focus-visible { outline-offset: -3px; }
.report { position: absolute; z-index: 4; width: min(350px, calc(100% - 36px)); max-height: 78%; overflow: auto; top: 22px; right: 22px; border-radius: 14px; padding: 18px; animation: arrive .24s cubic-bezier(.22,1,.36,1); }
.report-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.report-place { color: var(--blue); font-size: 12px; font-weight: 620; }
.report h2 { margin: 5px 0 0; font-size: 22px; line-height: 1.12; letter-spacing: -.04em; }
.report-values { display: grid; gap: 13px; margin-block: 19px 8px; }
.report-values div { padding: 12px; border-radius: 9px; background: var(--field); }
.report-values dt { font-size: 12px; color: var(--muted); }
.report-values dd { margin: 4px 0 0; font-size: 23px; font-weight: 660; letter-spacing: -.045em; }
.footer { display: flex; min-height: 62px; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); }
.sources-line, .contact-line { display: flex; align-items: center; gap: 15px; }
.separator { height: 12px; width: 1px; background: #ced9e6; }
.quiet-link, .footer a { appearance: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0; border: 0; color: inherit; background: transparent; font-size: inherit; text-decoration: none; }
.quiet-link { font-weight: 650; color: var(--ink); }
.quiet-link:hover, .footer a:hover, dialog a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.quiet-link svg { width: 16px; height: 16px; }
dialog { width: min(460px, calc(100% - 32px)); padding: 23px; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
dialog[open] { animation: arrive .24s cubic-bezier(.22,1,.36,1); }
dialog::backdrop { background: #12233b63; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
dialog h2 { margin: 0; font-size: 24px; line-height: 1.15; letter-spacing: -.04em; }
dialog p, dialog li { font-size: 15px; line-height: 1.55; color: var(--muted); }
dialog a { color: var(--blue); }
dialog li + li { margin-top: 9px; }
@keyframes arrive { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 1120px) {
  .toolbar { gap: 9px; }
  .filters { grid-template-columns: 116px 143px; }
  .switch button { padding-inline: 11px; }
}
@media (max-width: 890px) {
  .toolbar { grid-template-columns: auto 1fr auto; grid-template-areas: "brand . menu" "filters search switch"; padding-block: 10px 12px; min-height: 0; }
  .brand { grid-area: brand; }
  .menu-button { grid-area: menu; }
  .filters { grid-area: filters; }
  .search { grid-area: search; }
  .switch { grid-area: switch; }
  .popover { top: 60px; right: var(--edge); left: auto; }
  .shortcut { display: none; }
}
@media (max-width: 650px) {
  :root { --edge: 12px; }
  .product { grid-template-rows: auto minmax(370px, 1fr) auto; }
  .toolbar { grid-template-columns: 1fr 44px; grid-template-areas: "brand menu" "filters filters" "search search" "switch switch"; gap: 8px; }
  .brand { font-size: 23px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .switch button { flex: 1; }
  .map-frame { border-radius: 14px; }
  .legend { bottom: 12px; left: 12px; padding: 10px 11px; width: min(204px, calc(100% - 76px)); }
  .legend p { margin-bottom: 8px; }
  .map-tools { bottom: 12px; right: 12px; }
  .report { top: 12px; right: 12px; width: calc(100% - 24px); padding: 14px; }
  .report h2 { font-size: 20px; }
  .footer { display: grid; gap: 0; padding-block: 5px 8px; }
  .sources-line { gap: 0 13px; flex-wrap: wrap; }
  .sources-line .quiet-link { flex-basis: 100%; }
  .contact-line { gap: 20px; }
  .separator { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
