@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/geologica-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Geologica'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/geologica-latin.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; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/unbounded-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500 800; font-display: swap; src: url(/fonts/unbounded-latin.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; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-stretch: 87.5%; font-display: swap; src: url(/fonts/martian-mono-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Martian Mono'; font-style: normal; font-weight: 400 600; font-stretch: 87.5%; font-display: swap; src: url(/fonts/martian-mono-latin.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 {
  --bg: #e7eaed;          /* стальной стеллаж */
  --surface: #ffffff;     /* термоэтикетка */
  --surface-2: #f2f4f6;
  --ink: #121316;         /* термопечать */
  --ink-2: #545a63;
  --ink-3: #7c828b;
  --line: #d6dbe0;
  --accent: #9c6a35;      /* крафт посылки */
  --accent-soft: #f2e5d4;
  --on-accent: #ffffff;
  --st-none: #9aa1aa;
  --st-offer: #bf7f12;
  --st-trial: #2a66d1;
  --st-paid: #1b8448;
  --st-refuse: #c4372b;
  --danger: #cf3528;
  --danger-soft: #fbe4e1;
  --ok-soft: #e0f1e7;
  --warn-soft: #fbefd9;
  --info-soft: #e2ebfa;
  --map-land: #f0eee8;
  --map-water: #b7d1e6;
  --map-road: #ffffff;
  --map-road-2: #e3dfd5;
  --map-line: #8a877e;
  --bezel: #15171a;
  --shadow: 0 1px 2px rgba(18, 19, 22, .08), 0 8px 24px rgba(18, 19, 22, .08);
  --font-display: "Unbounded", "Geologica", "Arial Black", system-ui, sans-serif;
  --font-body: "Geologica", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-label: Arial, "Liberation Sans", "Helvetica Neue", Helvetica, sans-serif; /* так печатает программа */
  --font-mono: "Martian Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  --step--2: .75rem;
  --step--1: .8125rem;
  --step-0: .9375rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: 2rem;
  --r: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1013; --surface: #171a1e; --surface-2: #1e2227; --ink: #eceef1; --ink-2: #a6acb5; --ink-3: #7f868f;
    --line: #2b3036; --accent: #d4a675; --accent-soft: #3a2d1f; --on-accent: #17130e;
    --st-none: #79808a; --st-offer: #e2a43c; --st-trial: #5b93f0; --st-paid: #3fb877; --st-refuse: #f06a5c;
    --danger: #ff6b5e; --danger-soft: #3b1d1a; --ok-soft: #163324; --warn-soft: #3a2e15; --info-soft: #18263d;
    --map-land: #1a1d21; --map-water: #1f3a4f; --map-road: #30353c; --map-road-2: #262a30; --map-line: #6b7078;
    --bezel: #000000; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0e1013; --surface: #171a1e; --surface-2: #1e2227; --ink: #eceef1; --ink-2: #a6acb5; --ink-3: #7f868f;
  --line: #2b3036; --accent: #d4a675; --accent-soft: #3a2d1f; --on-accent: #17130e;
  --st-none: #79808a; --st-offer: #e2a43c; --st-trial: #5b93f0; --st-paid: #3fb877; --st-refuse: #f06a5c;
  --danger: #ff6b5e; --danger-soft: #3b1d1a; --ok-soft: #163324; --warn-soft: #3a2e15; --info-soft: #18263d;
  --map-land: #1a1d21; --map-water: #1f3a4f; --map-road: #30353c; --map-road-2: #262a30; --map-line: #6b7078;
  --bezel: #000000; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* required styles */

.leaflet-pane,
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-tile-container,
.leaflet-pane > svg,
.leaflet-pane > canvas,
.leaflet-zoom-box,
.leaflet-image-layer,
.leaflet-layer {
	position: absolute;
	left: 0;
	top: 0;
	}
.leaflet-container {
	overflow: hidden;
	}
.leaflet-tile,
.leaflet-marker-icon,
.leaflet-marker-shadow {
	-webkit-user-select: none;
	   -moz-user-select: none;
	        user-select: none;
	  -webkit-user-drag: none;
	}
/* Prevents IE11 from highlighting tiles in blue */
.leaflet-tile::selection {
	background: transparent;
}
/* Safari renders non-retina tile on retina better with this, but Chrome is worse */
.leaflet-safari .leaflet-tile {
	image-rendering: -webkit-optimize-contrast;
	}
/* hack that prevents hw layers "stretching" when loading new tiles */
.leaflet-safari .leaflet-tile-container {
	width: 1600px;
	height: 1600px;
	-webkit-transform-origin: 0 0;
	}
.leaflet-marker-icon,
.leaflet-marker-shadow {
	display: block;
	}
/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */
/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */
.leaflet-container .leaflet-overlay-pane svg {
	max-width: none !important;
	max-height: none !important;
	}
.leaflet-container .leaflet-marker-pane img,
.leaflet-container .leaflet-shadow-pane img,
.leaflet-container .leaflet-tile-pane img,
.leaflet-container img.leaflet-image-layer,
.leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	width: auto;
	padding: 0;
	}

.leaflet-container img.leaflet-tile {
	/* See: https://bugs.chromium.org/p/chromium/issues/detail?id=600120 */
	mix-blend-mode: plus-lighter;
}

.leaflet-container.leaflet-touch-zoom {
	-ms-touch-action: pan-x pan-y;
	touch-action: pan-x pan-y;
	}
.leaflet-container.leaflet-touch-drag {
	-ms-touch-action: pinch-zoom;
	/* Fallback for FF which doesn't support pinch-zoom */
	touch-action: none;
	touch-action: pinch-zoom;
}
.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {
	-ms-touch-action: none;
	touch-action: none;
}
.leaflet-container {
	-webkit-tap-highlight-color: transparent;
}
.leaflet-container a {
	-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);
}
.leaflet-tile {
	filter: inherit;
	visibility: hidden;
	}
.leaflet-tile-loaded {
	visibility: inherit;
	}
.leaflet-zoom-box {
	width: 0;
	height: 0;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	z-index: 800;
	}
/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */
.leaflet-overlay-pane svg {
	-moz-user-select: none;
	}

.leaflet-pane         { z-index: 400; }

.leaflet-tile-pane    { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-shadow-pane  { z-index: 500; }
.leaflet-marker-pane  { z-index: 600; }
.leaflet-tooltip-pane   { z-index: 650; }
.leaflet-popup-pane   { z-index: 700; }

.leaflet-map-pane canvas { z-index: 100; }
.leaflet-map-pane svg    { z-index: 200; }

.leaflet-vml-shape {
	width: 1px;
	height: 1px;
	}
.lvml {
	behavior: none;
	display: inline-block;
	position: absolute;
	}


/* control positioning */

.leaflet-control {
	position: relative;
	z-index: 800;
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}
.leaflet-top,
.leaflet-bottom {
	position: absolute;
	z-index: 1000;
	pointer-events: none;
	}
.leaflet-top {
	top: 0;
	}
.leaflet-right {
	right: 0;
	}
.leaflet-bottom {
	bottom: 0;
	}
.leaflet-left {
	left: 0;
	}
.leaflet-control {
	float: left;
	clear: both;
	}
.leaflet-right .leaflet-control {
	float: right;
	}
.leaflet-top .leaflet-control {
	margin-top: 10px;
	}
.leaflet-bottom .leaflet-control {
	margin-bottom: 10px;
	}
.leaflet-left .leaflet-control {
	margin-left: 10px;
	}
.leaflet-right .leaflet-control {
	margin-right: 10px;
	}


/* zoom and fade animations */

.leaflet-fade-anim .leaflet-popup {
	opacity: 0;
	-webkit-transition: opacity 0.2s linear;
	   -moz-transition: opacity 0.2s linear;
	        transition: opacity 0.2s linear;
	}
.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {
	opacity: 1;
	}
.leaflet-zoom-animated {
	-webkit-transform-origin: 0 0;
	    -ms-transform-origin: 0 0;
	        transform-origin: 0 0;
	}
svg.leaflet-zoom-animated {
	will-change: transform;
}

.leaflet-zoom-anim .leaflet-zoom-animated {
	-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);
	   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);
	        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);
	}
.leaflet-zoom-anim .leaflet-tile,
.leaflet-pan-anim .leaflet-tile {
	-webkit-transition: none;
	   -moz-transition: none;
	        transition: none;
	}

.leaflet-zoom-anim .leaflet-zoom-hide {
	visibility: hidden;
	}


/* cursors */

.leaflet-interactive {
	cursor: pointer;
	}
.leaflet-grab {
	cursor: -webkit-grab;
	cursor:    -moz-grab;
	cursor:         grab;
	}
.leaflet-crosshair,
.leaflet-crosshair .leaflet-interactive {
	cursor: crosshair;
	}
.leaflet-popup-pane,
.leaflet-control {
	cursor: auto;
	}
.leaflet-dragging .leaflet-grab,
.leaflet-dragging .leaflet-grab .leaflet-interactive,
.leaflet-dragging .leaflet-marker-draggable {
	cursor: move;
	cursor: -webkit-grabbing;
	cursor:    -moz-grabbing;
	cursor:         grabbing;
	}

/* marker & overlays interactivity */
.leaflet-marker-icon,
.leaflet-marker-shadow,
.leaflet-image-layer,
.leaflet-pane > svg path,
.leaflet-tile-container {
	pointer-events: none;
	}

.leaflet-marker-icon.leaflet-interactive,
.leaflet-image-layer.leaflet-interactive,
.leaflet-pane > svg path.leaflet-interactive,
svg.leaflet-image-layer.leaflet-interactive path {
	pointer-events: visiblePainted; /* IE 9-10 doesn't have auto */
	pointer-events: auto;
	}

/* visual tweaks */

.leaflet-container {
	background: #ddd;
	outline-offset: 1px;
	}
.leaflet-container a {
	color: #0078A8;
	}
.leaflet-zoom-box {
	border: 2px dotted #38f;
	background: rgba(255,255,255,0.5);
	}


/* general typography */
.leaflet-container {
	font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-size: 0.75rem;
	line-height: 1.5;
	}


/* general toolbar styles */

.leaflet-bar {
	box-shadow: 0 1px 5px rgba(0,0,0,0.65);
	border-radius: 4px;
	}
.leaflet-bar a {
	background-color: #fff;
	border-bottom: 1px solid #ccc;
	width: 26px;
	height: 26px;
	line-height: 26px;
	display: block;
	text-align: center;
	text-decoration: none;
	color: black;
	}
.leaflet-bar a,
.leaflet-control-layers-toggle {
	background-position: 50% 50%;
	background-repeat: no-repeat;
	display: block;
	}
.leaflet-bar a:hover,
.leaflet-bar a:focus {
	background-color: #f4f4f4;
	}
.leaflet-bar a:first-child {
	border-top-left-radius: 4px;
	border-top-right-radius: 4px;
	}
.leaflet-bar a:last-child {
	border-bottom-left-radius: 4px;
	border-bottom-right-radius: 4px;
	border-bottom: none;
	}
.leaflet-bar a.leaflet-disabled {
	cursor: default;
	background-color: #f4f4f4;
	color: #bbb;
	}

.leaflet-touch .leaflet-bar a {
	width: 30px;
	height: 30px;
	line-height: 30px;
	}
.leaflet-touch .leaflet-bar a:first-child {
	border-top-left-radius: 2px;
	border-top-right-radius: 2px;
	}
.leaflet-touch .leaflet-bar a:last-child {
	border-bottom-left-radius: 2px;
	border-bottom-right-radius: 2px;
	}

/* zoom control */

.leaflet-control-zoom-in,
.leaflet-control-zoom-out {
	font: bold 18px 'Lucida Console', Monaco, monospace;
	text-indent: 1px;
	}

.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {
	font-size: 22px;
	}


/* layers control */

.leaflet-control-layers {
	box-shadow: 0 1px 5px rgba(0,0,0,0.4);
	background: #fff;
	border-radius: 5px;
	}
.leaflet-control-layers-toggle {
	background-image: none;
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: none;
	background-size: 26px 26px;
	}
.leaflet-touch .leaflet-control-layers-toggle {
	width: 44px;
	height: 44px;
	}
.leaflet-control-layers .leaflet-control-layers-list,
.leaflet-control-layers-expanded .leaflet-control-layers-toggle {
	display: none;
	}
.leaflet-control-layers-expanded .leaflet-control-layers-list {
	display: block;
	position: relative;
	}
.leaflet-control-layers-expanded {
	padding: 6px 10px 6px 6px;
	color: #333;
	background: #fff;
	}
.leaflet-control-layers-scrollbar {
	overflow-y: scroll;
	overflow-x: hidden;
	padding-right: 5px;
	}
.leaflet-control-layers-selector {
	margin-top: 2px;
	position: relative;
	top: 1px;
	}
.leaflet-control-layers label {
	display: block;
	font-size: 13px;
	font-size: 1.08333em;
	}
.leaflet-control-layers-separator {
	height: 0;
	border-top: 1px solid #ddd;
	margin: 5px -10px 5px -6px;
	}

/* Default icon URLs */
.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */
	background-image: none;
	}


/* attribution and scale controls */

.leaflet-container .leaflet-control-attribution {
	background: #fff;
	background: rgba(255, 255, 255, 0.8);
	margin: 0;
	}
.leaflet-control-attribution,
.leaflet-control-scale-line {
	padding: 0 5px;
	color: #333;
	line-height: 1.4;
	}
.leaflet-control-attribution a {
	text-decoration: none;
	}
.leaflet-control-attribution a:hover,
.leaflet-control-attribution a:focus {
	text-decoration: underline;
	}
.leaflet-attribution-flag {
	display: inline !important;
	vertical-align: baseline !important;
	width: 1em;
	height: 0.6669em;
	}
.leaflet-left .leaflet-control-scale {
	margin-left: 5px;
	}
.leaflet-bottom .leaflet-control-scale {
	margin-bottom: 5px;
	}
.leaflet-control-scale-line {
	border: 2px solid #777;
	border-top: none;
	line-height: 1.1;
	padding: 2px 5px 1px;
	white-space: nowrap;
	-moz-box-sizing: border-box;
	     box-sizing: border-box;
	background: rgba(255, 255, 255, 0.8);
	text-shadow: 1px 1px #fff;
	}
.leaflet-control-scale-line:not(:first-child) {
	border-top: 2px solid #777;
	border-bottom: none;
	margin-top: -2px;
	}
.leaflet-control-scale-line:not(:first-child):not(:last-child) {
	border-bottom: 2px solid #777;
	}

.leaflet-touch .leaflet-control-attribution,
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	box-shadow: none;
	}
.leaflet-touch .leaflet-control-layers,
.leaflet-touch .leaflet-bar {
	border: 2px solid rgba(0,0,0,0.2);
	background-clip: padding-box;
	}


/* popup */

.leaflet-popup {
	position: absolute;
	text-align: center;
	margin-bottom: 20px;
	}
.leaflet-popup-content-wrapper {
	padding: 1px;
	text-align: left;
	border-radius: 12px;
	}
.leaflet-popup-content {
	margin: 13px 24px 13px 20px;
	line-height: 1.3;
	font-size: 13px;
	font-size: 1.08333em;
	min-height: 1px;
	}
.leaflet-popup-content p {
	margin: 17px 0;
	margin: 1.3em 0;
	}
.leaflet-popup-tip-container {
	width: 40px;
	height: 20px;
	position: absolute;
	left: 50%;
	margin-top: -1px;
	margin-left: -20px;
	overflow: hidden;
	pointer-events: none;
	}
.leaflet-popup-tip {
	width: 17px;
	height: 17px;
	padding: 1px;

	margin: -10px auto 0;
	pointer-events: auto;

	-webkit-transform: rotate(45deg);
	   -moz-transform: rotate(45deg);
	    -ms-transform: rotate(45deg);
	        transform: rotate(45deg);
	}
.leaflet-popup-content-wrapper,
.leaflet-popup-tip {
	background: white;
	color: #333;
	box-shadow: 0 3px 14px rgba(0,0,0,0.4);
	}
.leaflet-container a.leaflet-popup-close-button {
	position: absolute;
	top: 0;
	right: 0;
	border: none;
	text-align: center;
	width: 24px;
	height: 24px;
	font: 16px/24px Tahoma, Verdana, sans-serif;
	color: #757575;
	text-decoration: none;
	background: transparent;
	}
.leaflet-container a.leaflet-popup-close-button:hover,
.leaflet-container a.leaflet-popup-close-button:focus {
	color: #585858;
	}
.leaflet-popup-scrolled {
	overflow: auto;
	}

.leaflet-oldie .leaflet-popup-content-wrapper {
	-ms-zoom: 1;
	}
.leaflet-oldie .leaflet-popup-tip {
	width: 24px;
	margin: 0 auto;

	-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";
	filter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);
	}

.leaflet-oldie .leaflet-control-zoom,
.leaflet-oldie .leaflet-control-layers,
.leaflet-oldie .leaflet-popup-content-wrapper,
.leaflet-oldie .leaflet-popup-tip {
	border: 1px solid #999;
	}


/* div icon */

.leaflet-div-icon {
	background: #fff;
	border: 1px solid #666;
	}


/* Tooltip */
/* Base styles for the element that has a tooltip */
.leaflet-tooltip {
	position: absolute;
	padding: 6px;
	background-color: #fff;
	border: 1px solid #fff;
	border-radius: 3px;
	color: #222;
	white-space: nowrap;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
	pointer-events: none;
	box-shadow: 0 1px 3px rgba(0,0,0,0.4);
	}
.leaflet-tooltip.leaflet-interactive {
	cursor: pointer;
	pointer-events: auto;
	}
.leaflet-tooltip-top:before,
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	position: absolute;
	pointer-events: none;
	border: 6px solid transparent;
	background: transparent;
	content: "";
	}

/* Directions */

.leaflet-tooltip-bottom {
	margin-top: 6px;
}
.leaflet-tooltip-top {
	margin-top: -6px;
}
.leaflet-tooltip-bottom:before,
.leaflet-tooltip-top:before {
	left: 50%;
	margin-left: -6px;
	}
.leaflet-tooltip-top:before {
	bottom: 0;
	margin-bottom: -12px;
	border-top-color: #fff;
	}
.leaflet-tooltip-bottom:before {
	top: 0;
	margin-top: -12px;
	margin-left: -6px;
	border-bottom-color: #fff;
	}
.leaflet-tooltip-left {
	margin-left: -6px;
}
.leaflet-tooltip-right {
	margin-left: 6px;
}
.leaflet-tooltip-left:before,
.leaflet-tooltip-right:before {
	top: 50%;
	margin-top: -6px;
	}
.leaflet-tooltip-left:before {
	right: 0;
	margin-right: -12px;
	border-left-color: #fff;
	}
.leaflet-tooltip-right:before {
	left: 0;
	margin-left: -12px;
	border-right-color: #fff;
	}

/* Printing */

@media print {
	/* Prevent printers from removing background-images of controls. */
	.leaflet-control {
		-webkit-print-color-adjust: exact;
		print-color-adjust: exact;
		}
	}


* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 var(--step-0)/1.45 var(--font-body); margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.tiny { font-size: var(--step--2); }

/* ---------- верхняя полоса ---------- */
.topbar { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; padding-top: calc(14px + var(--safe-top, 0px)); background: var(--bg); position: relative; z-index: 5; }
.topbar h1 { font: 700 var(--step-1)/1.1 var(--font-display); margin: 0; letter-spacing: .01em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--step--2); font-weight: 600; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--st-paid); }
.pill.off .dot { background: var(--st-offer); }
.pill.about { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 12px/1 var(--font-body); background: var(--ink); color: var(--bg); flex: none; }
.avatar.partner { background: var(--accent); color: var(--on-accent); }

/* ---------- экраны ---------- */
.screen { overflow-y: auto; overscroll-behavior: contain; min-height: 0; position: relative; }
.scr { display: grid; gap: 18px; padding: 4px 16px 112px; }
.mapwrap { position: absolute; inset: 0; }
#map { position: absolute; inset: 0; background: var(--map-land); }

/* ---------- нижние вкладки ---------- */
.tabbar { display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + var(--safe-bottom, 0px)); position: relative; z-index: 6; }
.tab { border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--ink-3); font-size: 11px; font-weight: 600; border-radius: 10px; }
.tab svg { width: 22px; height: 22px; }
.tab[aria-current="page"] { color: var(--ink); }
.tab[aria-current="page"] svg { color: var(--accent); }
.tab .badge { position: absolute; transform: translate(12px, -4px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 10px; line-height: 16px; }
.tab > span:first-child { position: relative; display: grid; place-items: center; }

.fab { position: absolute; right: 16px; bottom: calc(76px + var(--safe-bottom, 0px)); z-index: 7; height: 52px; padding: 0 20px 0 16px; border-radius: 999px; border: 0; background: var(--ink); color: var(--bg); font-weight: 700; display: inline-flex; align-items: center; gap: 8px; box-shadow: var(--shadow); }
.fab svg { width: 22px; height: 22px; }

/* ---------- общие блоки ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.sec { display: grid; gap: 8px; }
.sec-h { display: flex; align-items: center; gap: 8px; }
.sec-h h2 { font: 600 var(--step-0)/1.2 var(--font-body); margin: 0; flex: 1; }
.cell { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 7px; border-radius: 4px; background: #ffffff; color: #121316; font: 700 15px/1 var(--font-label); box-shadow: 0 0 0 1px rgba(18, 19, 22, .22), 0 1px 0 rgba(18, 19, 22, .12); font-variant-numeric: tabular-nums; }
.cell.red { background: #ffffff; color: #cf3528; }
.empty { padding: 14px 16px; font-size: var(--step--1); color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--r); }

.row { display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); background: var(--surface); text-align: left; width: 100%; border-left: 0; border-right: 0; border-top: 0; }
.rows { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.rows > .row:last-child { border-bottom: 0; }
.row .stripe { align-self: stretch; background: var(--st-none); }
.row .main { min-width: 0; display: grid; gap: 2px; }
.row .t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .s { font-size: var(--step--1); color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .side { display: grid; justify-items: end; gap: 4px; font-size: var(--step--2); color: var(--ink-2); }
.row.late .s.when { color: var(--danger); font-weight: 600; }

.st { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 4px; font: 700 11px/1 var(--font-label); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.st i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-none); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: var(--step--1); text-decoration: none; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn.dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn.accent { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 10px; border-radius: 8px; }
.btn.block { width: 100%; height: 48px; font-size: var(--step-0); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 12px 18px; background: var(--surface); border-bottom: 1px solid var(--line); }
.rows > .acts:last-child { border-bottom: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: var(--step--1); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip i { width: 8px; height: 8px; border-radius: 50%; }
.chip .c { font-variant-numeric: tabular-nums; color: inherit; opacity: .7; font-size: 11px; }
.scrollx { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.scrollx::-webkit-scrollbar { display: none; }

/* ---------- сегодня ---------- */
.dateline { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.dateline b { font: 600 var(--step-1)/1.2 var(--font-body); }
.example { font-size: var(--step--2); font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.goal { padding: 14px; display: grid; gap: 12px; }
.goal-h { display: grid; gap: 2px; }
.goal-h b { font-size: var(--step--1); }
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.meter { display: grid; gap: 6px; }
.meter .v { font: 700 var(--step-2)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.meter .v span { font: 500 var(--step--1)/1 var(--font-body); color: var(--ink-3); }
.meter .k { font-size: var(--step--2); color: var(--ink-2); }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.bar.ok > span { background: var(--st-paid); }

/* ---------- карта ---------- */
.mapbar { position: absolute; left: 0; right: 0; top: 0; z-index: 500; display: grid; gap: 8px; padding: 6px 12px 0; pointer-events: none; }
.mapbar > * { pointer-events: auto; }
.seg { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; box-shadow: var(--shadow); justify-self: start; }
.seg button { border: 0; background: none; height: 30px; padding: 0 12px; border-radius: 999px; font-size: var(--step--1); font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.mapbar .chip { box-shadow: var(--shadow); height: 32px; }
.mapbtns { position: absolute; right: 12px; bottom: 150px; z-index: 500; display: grid; gap: 8px; }
.mapbtn { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; box-shadow: var(--shadow); }
.mapbtn svg { width: 22px; height: 22px; }
.near-btn { position: absolute; left: 12px; bottom: 92px; z-index: 500; }
.maplegend { position: absolute; left: 12px; bottom: 148px; z-index: 500; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; font-size: var(--step--2); box-shadow: var(--shadow); }
.maplegend span { display: flex; align-items: center; gap: 8px; }
.maplegend i { width: 10px; height: 10px; border-radius: 50%; }
.leaflet-container { background: var(--map-land); font-family: var(--font-body); }
.leaflet-control-attribution { font-size: 10px; background: color-mix(in srgb, var(--surface) 80%, transparent) !important; color: var(--ink-2); }
.leaflet-control-attribution a { color: var(--ink-2); }
.maplabel { font: 700 13px/1 var(--font-display); color: var(--ink-2); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; text-shadow: 0 0 4px var(--map-land), 0 0 2px var(--map-land); }
.maplabel.water { font: italic 600 12px/1 var(--font-body); color: color-mix(in srgb, var(--map-water) 35%, var(--ink-2)); letter-spacing: .2em; text-transform: none; text-shadow: none; }
.maplabel.dist { font: 600 10px/1 var(--font-body); letter-spacing: .14em; color: var(--ink-3); }
.z-lo .maplabel.dist { display: none; }
.z-hi .maplabel.city { display: none; }
.me-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--st-trial); border: 3px solid #fff; box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-trial) 25%, transparent); }
.route-num { width: 22px; height: 22px; border-radius: 4px; background: #fff; color: #121316; font: 700 12px/22px var(--font-label); text-align: center; box-shadow: 0 0 0 1.5px #121316; }

/* ---------- шторка и экраны поверх ---------- */
.scrim { position: absolute; inset: 0; background: rgba(10, 11, 13, .35); z-index: 20; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--surface); border-radius: 22px 22px 0 0; box-shadow: 0 -8px 30px rgba(0, 0, 0, .18); max-height: 88%; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 8px auto 2px; }
.sheet .body { overflow-y: auto; padding: 8px 16px calc(20px + var(--safe-bottom, 0px)); display: grid; gap: 14px; }
.sheet h3 { font: 700 var(--step-1)/1.2 var(--font-display); margin: 0; }
.over { position: absolute; inset: 0; z-index: 30; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr); }
.over-h { display: flex; align-items: center; gap: 8px; padding: 12px 10px 10px; padding-top: calc(12px + var(--safe-top, 0px)); background: var(--bg); border-bottom: 1px solid var(--line); }
.over-h h2 { margin: 0; font: 700 var(--step-0)/1.25 var(--font-body); flex: 1; min-width: 0; }
.iconbtn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; display: grid; place-items: center; flex: none; }
.iconbtn svg { width: 24px; height: 24px; }
.over-b { overflow-y: auto; padding: 14px 16px calc(28px + var(--safe-bottom, 0px)); display: grid; gap: 14px; align-content: start; }

/* карточка точки */
.pt-head { display: grid; gap: 6px; }
.pt-head .addr { font: 700 var(--step-2)/1.15 var(--font-display); letter-spacing: .005em; text-wrap: balance; }
.pt-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--step--1); color: var(--ink-2); }
.badge-soft { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: var(--step--2); font-weight: 600; background: var(--warn-soft); color: var(--ink); }
.badge-soft.ok { background: var(--ok-soft); }
.badge-soft.info { background: var(--info-soft); }
.badge-soft.bad { background: var(--danger-soft); }
.box { padding: 14px; display: grid; gap: 12px; }
.box-h { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.box-h h3 { margin: 0; font: 600 var(--step--1)/1.2 var(--font-body); color: var(--ink-2); text-transform: uppercase; letter-spacing: .08em; }
.stepper { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.stepper button { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 2px 7px; display: grid; justify-items: center; gap: 5px; font-size: 11px; font-weight: 600; color: var(--ink-2); }
.stepper button i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.stepper button[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: var(--step--1); align-items: center; }
.kv dt { color: var(--ink-2); }
.kv dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; min-width: 0; }
.phone { font: 500 var(--step-0)/1 var(--font-mono); letter-spacing: -.02em; user-select: all; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step--1); color: var(--ink-2); }
.input { width: 100%; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); padding: 0 12px; }
textarea.input { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; line-height: 1.4; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: var(--step--1); }
.switch { width: 46px; height: 28px; border-radius: 999px; border: 0; background: var(--line); position: relative; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }
.switch[aria-checked="true"] { background: var(--st-paid); }
.switch[aria-checked="true"]::after { left: 21px; }
.future { border: 1.5px dashed var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 8px; font-size: var(--step--1); }
.future b { font-size: var(--step--1); }
.timeline { display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: var(--step--1); }
.tl:last-child { border-bottom: 0; }
.tl .d { color: var(--ink-3); font-variant-numeric: tabular-nums; }
.tl .w { font-weight: 600; }

/* визит */
.steps-dots { display: flex; gap: 6px; }
.steps-dots i { width: 22px; height: 4px; border-radius: 999px; background: var(--line); }
.steps-dots i.on { background: var(--ink); }
.big-choices { display: grid; gap: 8px; }
.big-choice { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); text-align: left; font-weight: 600; }
.big-choice i { width: 12px; height: 12px; border-radius: 50%; }
.big-choice small { display: block; font-weight: 400; color: var(--ink-2); font-size: var(--step--1); }
.big-choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* сводка */
.funnel { display: grid; gap: 10px; padding: 14px; }
.fn { display: grid; gap: 5px; }
.fn-h { display: flex; justify-content: space-between; gap: 8px; font-size: var(--step--1); }
.fn-h b { font: 700 var(--step-1)/1 var(--font-display); font-variant-numeric: tabular-nums; }
.fn-bar { height: 26px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.fn-bar span { display: block; height: 100%; border-radius: 6px; }
.fn-conv { font-size: var(--step--2); color: var(--ink-3); padding-left: 2px; }
.hbars { display: grid; gap: 10px; padding: 14px; }
.hb { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: var(--step--1); }
.hb .track { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.hb .track span { display: block; height: 100%; background: var(--st-refuse); border-radius: 999px; }
.vbars { padding: 14px 14px 10px; }
.vbars svg { display: block; width: 100%; height: auto; }
.vbars .ax { fill: var(--ink-3); font: 500 10px var(--font-body); }
.vbars .val { fill: var(--ink); font: 700 11px var(--font-body); }
.vbars .b { fill: var(--ink); }
.vbars .b.p { fill: var(--accent); }
.legend-row { display: flex; gap: 14px; font-size: var(--step--2); color: var(--ink-2); padding: 0 14px 12px; }
.legend-row span { display: inline-flex; align-items: center; gap: 6px; }
.legend-row i { width: 10px; height: 10px; border-radius: 3px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.split .card { padding: 12px 14px; display: grid; gap: 6px; }
.split .who { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--step--1); }
.split .avatar { width: 24px; height: 24px; font-size: 11px; }
.split .kv { font-size: var(--step--2); }

/* ещё */
.menu { display: grid; }
.mi { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 13px 14px; border-bottom: 1px solid var(--line); background: var(--surface); width: 100%; text-align: left; border-left: 0; border-right: 0; border-top: 0; font-size: var(--step--1); }
.menu > .mi:last-child { border-bottom: 0; }
.mi svg { width: 20px; height: 20px; color: var(--ink-2); }
.mi b { font-weight: 600; display: block; font-size: var(--step-0); }
.mi .r { color: var(--ink-3); font-size: var(--step--2); text-align: right; }
.mi .r.ok { color: var(--st-paid); font-weight: 600; }

/* тост */
.toast { position: absolute; left: 50%; bottom: calc(140px + var(--safe-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-size: var(--step--1); font-weight: 600; box-shadow: var(--shadow); max-width: calc(100% - 32px); width: max-content; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- рабочее приложение: всегда на весь экран, на компьютере — колонкой по центру ---------- */
html, body { height: 100%; overflow: hidden; }
body { background: var(--bezel); }
#root { height: 100%; }
.app { position: fixed; inset: 0; margin: 0 auto; max-width: 560px; border-radius: 0; overflow: hidden; background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) auto; isolation: isolate; --safe-top: env(safe-area-inset-top, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); }
.offline-bar { background: var(--warn-soft); color: var(--ink); font-size: var(--step--1); padding: 6px 16px; display: flex; gap: 8px; align-items: center; }
.offline-bar[hidden] { display: none; }

/* ---------- экраны входа ---------- */
.auth { position: fixed; inset: 0; max-width: 560px; margin: 0 auto; background: var(--bg); overflow-y: auto; padding: calc(28px + env(safe-area-inset-top, 0px)) 20px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; align-content: start; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; border-radius: 10px; }
.brand b { font: 700 var(--step-1)/1.1 var(--font-display); display: block; }
.brand span { font-size: var(--step--1); color: var(--ink-2); }
.auth h1 { font: 700 var(--step-3)/1.05 var(--font-display); margin: 8px 0 0; text-wrap: balance; }
.auth p { margin: 0; max-width: 60ch; }
.auth .card { padding: 16px; display: grid; gap: 12px; }
.err { color: var(--danger); font-size: var(--step--1); font-weight: 600; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; font: 500 var(--step-0)/1.2 var(--font-mono); }
.codes span { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; user-select: all; }
.linkbtn { background: none; border: 0; padding: 6px 0; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; font-size: var(--step--1); text-align: left; }
.lock { position: absolute; inset: 0; z-index: 90; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); display: grid; place-content: center; gap: 16px; padding: 24px; text-align: center; }
.lock b { font: 700 var(--step-2)/1.2 var(--font-display); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.invite-code { font: 600 var(--step-3)/1 var(--font-mono); letter-spacing: .04em; text-align: center; padding: 14px; border-radius: 12px; background: var(--surface-2); border: 1px dashed var(--line); user-select: all; }
.maplabel.yandex { font: 600 11px/1 var(--font-body); }
.leaflet-tile-pane { opacity: 0.92; }

.stepper button { font-size: 10px; letter-spacing: -0.01em; padding-inline: 1px; }
.screen { display: grid; grid-template-rows: auto 1fr; }
.screen > .scr { align-content: start; }
.mapwrap { z-index: 0; } /* слои Leaflet остаются внутри карты и не перекрывают шторки */
