/* 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: url(#default#VML);
	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: url(images/layers.png);
	width: 36px;
	height: 36px;
	}
.leaflet-retina .leaflet-control-layers-toggle {
	background-image: url(images/layers-2x.png);
	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: url(images/marker-icon.png);
	}


/* 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;
		}
	}

/* ---- хаб: шапка ---- */
.hx-head { padding-bottom: 24px; }
.hx-facts { font: 400 1.15rem/1.3 var(--head); color: var(--peck); margin: .5em 0 0; }
.hx { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0 clamp(32px, 4vw, 64px); align-items: start; padding-bottom: 120px; }
/* ---- атлас ---- */
.hx-atlas { position: sticky; top: 0; padding: 14px 0 12px; max-height: 100svh; overflow: auto; scrollbar-width: none; }
.at-head { display: flex; align-items: baseline; gap: .6em; min-height: 2.6rem; margin-bottom: 8px; }
.at-head p { margin: 0; }
.at-year { font: 500 2.2rem/1 var(--head); color: var(--light); font-variant-numeric: tabular-nums; }
.at-title { font: 400 1.25rem/1.2 var(--head); color: var(--peck); }
.at-map { position: relative; aspect-ratio: 1200 / 783; background: #e8e4da; outline: 3px dotted rgba(217,194,150,.45); outline-offset: 4px; overflow: hidden; }
.at-map > img.at-base { position: absolute; inset: 0; width: 100%; height: 100%; }
.at-ls { position: absolute; inset: 0; }
.at-l { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 5px; font: 500 .86rem/1.2 var(--head); color: #1a1410; background: rgba(255,253,248,.92); border: 1px solid rgba(26,20,16,.28); padding: 1px 6px 1px 4px; white-space: nowrap; pointer-events: auto; cursor: pointer; }
.at-l.f { font-size: .98rem; background: #fffdf8; }
.at-l.sel { outline: 2px solid #1a1410; z-index: 2; }
.at-l.hid { visibility: hidden; pointer-events: none; }
.at-l .sw { width: 11px; height: 11px; }
.at-l.al { transform: translate(0, -50%); } .at-l.ar { transform: translate(-100%, -50%); }
.at-st { position: absolute; transform: translate(-50%, -50%); width: 15em; text-align: center; font: italic 400 .92rem/1.3 var(--text); color: var(--peck); }
.at-pin { position: absolute; width: 0; height: 0; }
.at-pin i { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--ochre); box-shadow: 0 0 0 4px #1a1410, 0 0 0 7px var(--ochre); }
.at-tag { position: absolute; transform: translate(22px, -50%); max-width: 15em; background: var(--sand); color: var(--ink); padding: 6px 10px; font: 400 .95rem/1.25 var(--text); box-shadow: 5px 6px 0 var(--shade); }
.at-tag.r { transform: translate(calc(-100% - 22px), -50%); }
.at-tag b { display: block; font: 500 .92rem/1.2 var(--head); }
.at-under { margin-top: 12px; }
.at-leg { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font: 400 1rem/1.3 var(--head); color: var(--peck); }
.at-leg li { display: flex; align-items: center; gap: 8px; }
.at-leg svg { width: 34px; height: 8px; stroke: var(--light); stroke-width: 2; fill: none; }
.at-scale { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; }
.at-sl { margin: 0; flex: none; font: 400 1rem/1.2 var(--head); color: var(--peck); }
.at-scale ol { list-style: none; margin: 0; padding: 0; display: flex; flex: 1; justify-content: space-between; border-top: 3px dotted rgba(217,194,150,.45); }
.at-scale button { position: relative; min-width: 24px; min-height: 44px; padding: 14px 0 0; background: none; border: 0; color: var(--peck); font: 400 .78rem/1 var(--head); cursor: pointer; }
.at-scale button::before { content: ''; position: absolute; left: 50%; top: -6px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--peck); }
.at-scale button span { opacity: 0; }
.at-scale li:nth-child(4n+1) button span, .at-scale button[aria-pressed="true"] span { opacity: 1; }
.at-scale button[aria-pressed="true"] { color: var(--light); }
.at-scale button[aria-pressed="true"]::before { width: 15px; height: 15px; margin-left: -7.5px; top: -9px; background: var(--ochre); }
.at-cap { margin: 0; font: 400 1rem/1.45 var(--text); color: var(--peck); max-width: 52em; }
.at-notes summary { min-height: 44px; display: flex; align-items: center; font: 400 1rem/1.2 var(--head); color: var(--light); cursor: pointer; }
.at-notes ul { margin: 0; padding-left: 1.2em; font: 400 1rem/1.45 var(--text); color: var(--light); }
/* ---- лента ---- */
.hx-list { padding-top: 10px; }
.ruler ol { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 0 18px; }
.ruler a { display: inline-flex; align-items: center; min-height: 44px; color: var(--peck); text-decoration: none; font: 400 1rem/1.15 var(--head); border-bottom: 3px dotted transparent; }
.ruler a[aria-current] { color: var(--light); border-bottom: 3px solid var(--ochre); }
.era-h { font: 500 clamp(1.9rem, 1.4rem + 1.2vw, 2.6rem)/1.05 var(--head); color: var(--light); margin: 88px 0 4px; scroll-margin-top: 16px; }
.era-h .era-r { display: block; font: 400 1.15rem/1.3 var(--head); color: var(--peck); margin-top: .3em; }
.ev { padding: 30px 0 22px; border-bottom: 3px dotted rgba(217,194,150,.22); scroll-margin-top: 16px; }
.ev-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 .6em; font: 500 1.2rem/1.2 var(--head); color: var(--peck); }
.ev-n { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--peck); color: var(--ink); font: 500 .95rem/1 var(--head); }
.ev.on .ev-n { background: var(--ochre); }
.ev-t { margin: 0 0 .4em; font: 500 clamp(1.6rem, 1.3rem + .8vw, 2.05rem)/1.1 var(--head); color: var(--light); }
.ev > p { max-width: 36em; }
.dispute { background: var(--sand); color: var(--ink); padding: 16px 22px; margin: 1.1em 0; box-shadow: 6px 8px 0 var(--shade); max-width: 36em; }
.dispute p { margin: 0; font-size: 1.04rem; } .dispute-h { font: 500 1.15rem/1.3 var(--head) !important; margin-bottom: .3em !important; }
.ev-place { display: flex; align-items: baseline; gap: 8px; font: 400 1.05rem/1.35 var(--head); color: var(--peck); }
.ev-place svg { width: 14px; height: 14px; fill: var(--peck); flex: none; align-self: center; }
.ev-act { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 24px; }
.ev-art { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; background: var(--ochre); color: var(--ink); text-decoration: none; font: 500 1.05rem/1 var(--head); }
.srcs summary { font: 400 1.05rem/1.3 var(--head); color: var(--peck); min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.srcs ol { margin: .2em 0 0; padding-left: 1.3em; font: 400 1rem/1.45 var(--text); color: var(--light); }
.muted { color: var(--peck); }
/* ---- статья ---- */
.a-wrap { padding-top: clamp(20px, 3vw, 40px); padding-bottom: 120px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font: 400 1.05rem/1.3 var(--head); color: var(--peck); }
.crumbs a { color: var(--peck); min-height: 44px; display: inline-flex; align-items: center; }
.a-head { margin: 8px 0 clamp(24px, 3vw, 44px); max-width: 52rem; }
.a-head .kind-row { display: flex; align-items: center; gap: 14px; margin: 0 0 .8em; }
.a-date { font: 500 1.2rem/1.2 var(--head); color: var(--peck); }
.a-h1 { margin-bottom: .15em; }
.a-sub { margin: 0; font: 400 clamp(1.2rem, 1rem + .6vw, 1.6rem)/1.25 var(--head); color: var(--peck); }
.a-grid { display: grid; grid-template-columns: minmax(0, 40em) minmax(300px, 400px); justify-content: space-between; gap: clamp(32px, 5vw, 96px); align-items: start; }
.a-body > p:first-child { font-size: 1.12em; }
.a-body p, .a-body li { max-width: 36em; }
.a-body ul, .a-body ol:not(.a-src) { padding-left: 1.3em; }
.a-body li + li { margin-top: .4em; }
.a-h2 { font: 500 clamp(1.7rem, 1.35rem + 1vw, 2.3rem)/1.1 var(--head); color: var(--light); margin: 1.8em 0 .5em; scroll-margin-top: 16px; }
.ref { font: 500 .72em/1 var(--head); color: var(--peck); }
.ref a { font: inherit; color: var(--peck); text-decoration: none; padding: 0 .12em; }
.ref a:hover, .ref a:focus-visible { color: var(--light); text-decoration: underline; }
.a-tw { overflow-x: auto; margin: 1.2em 0; }
.a-tw table { border-collapse: collapse; width: 100%; min-width: 30em; font: 400 1rem/1.4 var(--text); }
.a-tw th { text-align: left; font: 500 1rem/1.25 var(--head); color: var(--peck); padding: 0 14px 8px 0; border-bottom: 3px dotted rgba(217,194,150,.6); }
.a-tw td { padding: 10px 14px 10px 0; border-bottom: 1px solid rgba(217,194,150,.18); vertical-align: top; }
.a-tw td:first-child { color: var(--light); }
.a-q { margin: 1.4em 0; padding: 18px 24px; border: 3px dotted rgba(217,194,150,.6); font-style: italic; max-width: 34em; }
.a-q p { margin: 0; }
.a-disp { margin: 2em 0; }
.a-retold { margin: 1.4em 0; padding: 14px 20px; border-left: 6px solid var(--ochre); background: var(--rock-2); max-width: 36em; }
.a-retold p { margin: 0; } .a-retold-h { font: 500 1.1rem/1.3 var(--head); color: var(--light); margin-bottom: .3em !important; }
.a-src-h { font-size: 1.8rem; }
.a-src { padding-left: 1.6em; font: 400 1rem/1.5 var(--text); color: var(--light); }
.a-src li { scroll-margin-top: 16px; }
.a-src li:target { background: var(--rock-4); outline: 3px dotted var(--ochre); outline-offset: 4px; }
.a-lit { list-style: none; padding-left: 0; }
.a-side { position: sticky; top: 16px; display: grid; gap: 22px; }
.a-info { margin: 0; padding: 18px 20px; background: var(--rock-2); outline: 3px dotted rgba(217,194,150,.4); outline-offset: -8px; display: grid; gap: 10px; }
.a-info div { display: grid; grid-template-columns: 5.2em minmax(0, 1fr); gap: 10px; }
.a-info dt { font: 400 .98rem/1.35 var(--head); color: var(--peck); }
.a-info dd { margin: 0; font: 400 1rem/1.4 var(--text); }
.a-map { margin: 0; }
.a-map figcaption { margin-top: 10px; }
.a-map .at-cap { font-size: 1rem; }
.a-side .at-l.minor { display: none; } .a-side .at-l { font-size: .78rem; } .a-side .at-l.f { font-size: .85rem; }
.a-map-more { display: inline-flex; align-items: center; min-height: 44px; font: 400 1.05rem/1.2 var(--head); color: var(--light); }
.a-toc-h { margin: 0 0 4px; font: 500 1.1rem/1.2 var(--head); color: var(--light); }
.a-toc ol { margin: 0; padding-left: 1.3em; font: 400 1rem/1.3 var(--head); color: var(--peck); }
.a-toc a { color: var(--peck); display: inline-block; padding: 3px 0; }
.a-mob { display: none; }
.a-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 64px; padding-top: 20px; border-top: 3px dotted rgba(217,194,150,.45); }
.a-pager a { display: block; color: var(--light); text-decoration: none; font: 500 1.2rem/1.25 var(--head); }
.a-pager a span { display: block; font: 400 1rem/1.3 var(--head); color: var(--peck); }
.a-pager a[rel="next"] { text-align: right; }
/* ---- узкие экраны ---- */
@media (max-width: 1080px) {
  .hx { grid-template-columns: minmax(0, 1fr); }
  .hx-atlas { z-index: 20; background: var(--rock); margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 6px; max-height: none; overflow: visible; border-bottom: 3px dotted rgba(217,194,150,.45); }
  .at-head { min-height: 0; margin-bottom: 4px; }
  .at-year { font-size: 1.45rem; } .at-title { font-size: 1.05rem; }
  .at-map { outline: 0; margin-inline: calc(-1 * var(--gutter)); }
  .at-under { display: none; }
  .at-l { font-size: .76rem; padding: 0 4px 0 3px; } .at-l.f { font-size: .84rem; } .at-l.minor { display: none; } .at-l .sw { width: 9px; height: 9px; }
  .at-st { font-size: .78rem; width: 13em; }
  .at-pin i { left: -8px; top: -8px; width: 16px; height: 16px; box-shadow: 0 0 0 3px #1a1410, 0 0 0 6px var(--ochre); }
  .at-tag { display: none; }
  .hx-mobunder { display: block; }
  .ruler ol { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .ruler li { flex: none; }
  .era-h { margin-top: 64px; }
  .a-grid { grid-template-columns: minmax(0, 1fr); }
  .a-side { display: none; }
  .a-mob { display: grid; gap: 18px; margin: 1.4em 0 .4em; }
  .a-mob .at-map { margin-inline: 0; }
  .a-mob .at-l { font-size: .72rem; }
  .a-side .at-l.minor, .a-mob .at-l.minor { display: none; }
  .a-pager { grid-template-columns: 1fr; }
  .a-pager a[rel="next"] { text-align: left; }
}
.dispute .ref, .dispute .ref a { color: var(--ink); }
.dispute .ref a { text-decoration: underline; }
@media (max-width: 760px) { a.nav-map[href="/_mock/istoriya/"] { display: none; } }
/* атлас с бегунком времени */
.at-map .at-poly { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.at-poly path { fill-opacity: .3; stroke-width: 1.6; stroke-opacity: .9; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: visiblePainted; cursor: pointer; transition: fill-opacity .25s ease, stroke-width .25s ease; }
.at-poly path.f { fill-opacity: .42; stroke-width: 2.2; }
.at-poly path:hover { fill-opacity: .55; }
.at-poly path.sel { fill-opacity: .6; stroke-width: 3.4; stroke-opacity: 1; }
.at-poly path.ap { fill-opacity: 1; stroke-dasharray: 6 4; }
.at-poly path.ap.sel { stroke-width: 3; stroke-dasharray: none; }
.at-kz path { fill: none; stroke: #1a1410; stroke-width: 2.2; stroke-dasharray: 9 6; stroke-opacity: .8; vector-effect: non-scaling-stroke; pointer-events: none; }
/* подложка OpenStreetMap: серая и тёплая, чтобы цвета держав читались сразу */
.at-map.leaflet-container { font: inherit; background: #e8e4da; }
.at-tiles { filter: grayscale(1) sepia(.16) contrast(.92) brightness(1.05); }
.at-ov { position: absolute; left: 0; top: 0; pointer-events: none; }
.at-ov .at-poly { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.at-ov .at-ls { position: absolute; inset: 0; z-index: 300; }  /* выше svg Leaflet (z-index 200) */
.at-ov .at-pin { z-index: 301; }
.at-map .leaflet-bar { border: 0; box-shadow: 4px 5px 0 rgba(8,6,5,.55); }
.at-map .leaflet-bar a { width: 44px; height: 44px; line-height: 42px; font: 500 1.4rem/42px var(--head); background: #fffdf8; color: #1a1410; border-bottom-color: rgba(26,20,16,.2); }
.at-map .leaflet-bar a:hover { background: #f1ede4; }
.at-map .leaflet-bar a:focus-visible { outline: 3px solid #1a1410; outline-offset: -3px; }
.at-map .leaflet-control-attribution { font: 400 .8rem/1.35 var(--text); background: rgba(255,253,248,.88); color: #1a1410; padding: 1px 6px; }
.at-map .leaflet-control-attribution a { color: #1a1410; text-decoration: underline; }
.at-pop .leaflet-popup-content-wrapper { border-radius: 2px; background: #fffdf8; color: #1a1410; box-shadow: 6px 8px 0 rgba(8,6,5,.6); }
.at-pop .leaflet-popup-tip { background: #fffdf8; box-shadow: none; }
.at-pop .leaflet-popup-content { margin: 12px 16px 12px 14px; font: 400 1rem/1.45 var(--text); }
.at-pop .leaflet-popup-content p { margin: 0 0 6px; }
.pp-t { display: flex; align-items: center; gap: 8px; font: 500 1.2rem/1.2 var(--head); }
.pp-d { font: 400 1rem/1.3 var(--head); color: #52514e; }
.pp-more { display: inline-flex; align-items: center; min-height: 32px; font: 500 1rem/1.2 var(--head); color: #1a1410 !important; text-decoration: underline; }
.at-pop a.leaflet-popup-close-button { width: 32px; height: 32px; font: 400 24px/30px var(--text); color: #1a1410; }
/* цвета держав (та же палитра, что на карте) */
.sw { display: inline-block; flex: none; width: 14px; height: 14px; border: 1px solid rgba(26,20,16,.35); vertical-align: -1px; }
.sw.c0 { background: #2a78d6; } .sw.c1 { background: #eb6834; } .sw.c2 { background: #1baf7a; } .sw.c3 { background: #eda100; }
.sw.c4 { background: #e87ba4; } .sw.c5 { background: #008300; } .sw.c6 { background: #6250d6; } .sw.c7 { background: #e34948; }
.sw.ap.c0 { background: repeating-linear-gradient(45deg, #2a78d6 0 3px, #cfe0f5 3px 6px); } .sw.ap.c1 { background: repeating-linear-gradient(45deg, #eb6834 0 3px, #f9d9cc 3px 6px); }
.sw.ap.c2 { background: repeating-linear-gradient(45deg, #1baf7a 0 3px, #c6ecdd 3px 6px); } .sw.ap.c3 { background: repeating-linear-gradient(45deg, #eda100 0 3px, #fae8bf 3px 6px); }
.sw.ap.c4 { background: repeating-linear-gradient(45deg, #e87ba4 0 3px, #f9dde8 3px 6px); } .sw.ap.c5 { background: repeating-linear-gradient(45deg, #008300 0 3px, #bfe0bf 3px 6px); }
.sw.ap.c6 { background: repeating-linear-gradient(45deg, #6250d6 0 3px, #d8d3f5 3px 6px); } .sw.ap.c7 { background: repeating-linear-gradient(45deg, #e34948 0 3px, #f8d1d1 3px 6px); }
.at-base-n { opacity: 0; transition: opacity .5s ease; }
.at-l { transition: left .45s cubic-bezier(.77,0,.175,1), top .45s cubic-bezier(.77,0,.175,1), opacity .3s ease; }
.at-st[hidden] { display: none; }
.at-map .at-st { font-size: 1rem; }
.tl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; align-items: start; margin-top: 16px; }
.tl-btns { display: flex; gap: 6px; padding-top: 0; }
.tl-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; background: var(--rock-4); color: var(--light); border: 0; font: 500 1rem/1 var(--head); cursor: pointer; }
.tl-btn svg { width: 16px; height: 16px; fill: currentColor; flex: none; }
.tl-btn.tl-play { background: var(--ochre); color: var(--ink); padding: 0 16px 0 14px; }
.tl-play .i-pause, .tl-play[aria-pressed="true"] .i-play { display: none; }
.tl-play[aria-pressed="true"] .i-pause { display: block; }
.tl-btn:hover { background: var(--peck); color: var(--ink); }
.tl-btn:focus-visible, .tl-range:focus-visible, .tl-eras button:focus-visible { outline: 3px solid var(--light); outline-offset: 3px; }
.tl-btn:active { transform: scale(.97); }
.tl-range { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; }
.tl-range::-webkit-slider-runnable-track { height: 3px; background: none; border-top: 3px dotted rgba(217,194,150,.7); }
.tl-range::-moz-range-track { height: 0; background: none; border-top: 3px dotted rgba(217,194,150,.7); }
.tl-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -14px; border-radius: 50%; border: 0; background: var(--ochre); box-shadow: 0 0 0 4px var(--rock), 0 0 0 7px var(--ochre); }
.tl-range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--ochre); box-shadow: 0 0 0 4px var(--rock), 0 0 0 7px var(--ochre); }
.tl-track { container-type: inline-size; }
.tl-eras { list-style: none; margin: 0 12px; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); }
.tl-eras li { border-left: 3px dotted rgba(217,194,150,.45); min-width: 0; }
.tl-eras button { display: block; overflow-wrap: normal; word-break: normal; hyphens: manual; width: 100%; min-height: 44px; padding: 2px 8px 4px; background: none; border: 0; text-align: left; color: var(--light); font: 400 .95rem/1.15 var(--head); cursor: pointer; }
.tl-eras button:hover .tl-en { text-decoration: underline; text-underline-offset: 3px; }
.tl-en { display: block; }
.tl-ey { display: block; color: var(--peck); font-size: .85rem; margin-top: 2px; font-variant-numeric: tabular-nums; }
.tl-note { margin: 10px 0 0; font: 400 1rem/1.45 var(--text); color: var(--peck); max-width: 52em; }
.at-on-h { margin: 22px 0 8px; font: 500 1.25rem/1.2 var(--head); color: var(--light); }
.at-on { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; font: 400 1rem/1.35 var(--head); color: var(--peck); }
.at-on li { break-inside: avoid; padding: 2px 0; }
.at-on li.f { color: var(--light); font-weight: 500; }
.at-on li.f::before { content: ''; display: inline-block; width: 12px; height: 10px; margin-right: 7px; background: var(--peck); vertical-align: 1px; }
.hx-atlas .tl-en { display: none; }
.hx-atlas .tl-ey { color: var(--light); margin: 0; }
/* страница атласа */
.atl-head { padding: 6px 0 16px; }
.atl-head .h1 { font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); }
.atl-head .h1 { margin: 0; }
.atl-head .lede { margin: .35em 0 0; max-width: none; }
.atl-grid { display: grid; grid-template-columns: minmax(0, max-content) minmax(220px, 1fr); grid-template-areas: 'stage read' 'stage side'; grid-template-rows: auto 1fr; gap: 0 clamp(28px, 3vw, 48px); align-items: start; }
.atl-tl { padding-bottom: 8px; }
.atl-read { grid-area: read; } .atl-stage { grid-area: stage; } .atl-side { grid-area: side; }
.atl-read.at-head { display: block; min-height: 0; margin: 0; }
.atl-stage { width: calc((100svh - 330px) * 1.5326); max-width: 100%; min-width: min(100%, 640px); }
.atl-read .at-year { font: 500 2.6rem/1 var(--head); color: var(--light); margin: 0; font-variant-numeric: tabular-nums; }
.atl-read .at-title { font: 400 1.3rem/1.2 var(--head); color: var(--peck); margin: .3em 0 0; }
.atl-side .at-leg { margin-top: 22px; flex-direction: column; }
.atl-src { margin: 16px 0 0; font: 400 1rem/1.45 var(--text); color: var(--peck); }

/* примерные области народов (штриховка из точек) */
.at-poly path.ap { fill-opacity: .95; stroke: var(--light); stroke-width: 2; stroke-dasharray: 0 6; }
.at-l.ap { font: italic 400 .9rem/1.2 var(--text); background: rgba(255,253,248,.9); color: #1a1410; border-style: dashed; }
.a-side .at-l.ap, .a-mob .at-l.ap { font-size: .78rem; }
.at-leg .sw-ap { width: 18px; height: 14px; fill: var(--peck); stroke: none; }
/* справка «На карте» */
.at-on-d { columns: 1; font: 400 1rem/1.45 var(--text); color: var(--light); }
.at-on-d li { padding: 10px 0 12px; border-top: 2px dotted rgba(217,194,150,.28); }
.at-on-d li.f::before { display: none; }
.on-n { margin: 0; font: 500 1.08rem/1.25 var(--head); color: var(--light); }
.on-dt { font-weight: 400; color: var(--peck); margin-left: .3em; }
.at-on-d li.ap .on-n b { font: italic 400 1.1rem/1.25 var(--text); }
.at-on-d li.f .on-n b::before { content: ''; display: inline-block; width: 12px; height: 10px; margin-right: 7px; background: var(--peck); vertical-align: 1px; }
.on-d { margin: 4px 0 0; }
.on-s { color: var(--peck); }
.on-a { margin: 2px 0 0; }
.on-a a { display: inline-flex; align-items: center; min-height: 44px; color: var(--light); font: 400 1rem/1.2 var(--head); text-decoration: underline; text-underline-offset: 3px; }
.at-on-rest { margin: 12px 0 0; font: 400 1rem/1.45 var(--text); color: var(--peck); }
.a-map-y { margin: 0 0 6px; font: 500 1.1rem/1.2 var(--head); color: var(--light); }
.at-more + .at-more { margin-left: 14px; }
@media (max-width: 1080px) {
  .atl-box { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: 'read' 'stage' 'tl' 'side'; }
  .atl-grid { display: contents; }
  .atl-tl { grid-area: tl; }
  .atl-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'read' 'stage' 'side'; }
  .atl-side .at-leg { flex-direction: row; }
  .atl-stage { width: 100%; min-width: 0; }
  .atl-read.at-head { display: flex; align-items: baseline; gap: .6em; flex-wrap: wrap; margin-bottom: 8px; }
  .atl-read .at-year { font-size: 1.8rem; } .atl-read .at-title { margin: 0; font-size: 1.1rem; }
}
@media (max-width: 760px) {
  .tl { grid-template-columns: minmax(0, 1fr); }
  .tl-btns { order: 2; margin-top: 10px; }
  .tl-eras { margin: 0 12px; }
  .tl-eras li { border-left-width: 2px; }
  .tl-eras button { padding: 2px 0 4px 4px; }
  .tl-en { display: none; }
  .tl-ey { font-size: .8rem; margin: 0; color: var(--light); }
  .at-on { columns: 1; }
  .atl-stage .at-map { margin-inline: calc(-1 * var(--gutter)); outline: 0; }
}
@media (prefers-reduced-motion: reduce) { .at-l, .at-poly path, .at-base-n, .tl-btn { transition: none; } }

/* подписи эпох под бегунком: на узкой дорожке мельче, ещё уже — только годы */
@container (max-width: 1000px) { .tl-eras button { font-size: .82rem; padding: 2px 5px 4px; } .tl-ey { font-size: .78rem; } }
@container (max-width: 740px) { .tl-en { display: none; } .tl-ey { color: var(--light); margin: 0; } }

/* что изменилось на шаге (рядом с картой) */
.at-chg-h { margin: 22px 0 6px; font: 500 1.15rem/1.2 var(--head); color: var(--light); }
.at-chg { margin: 0; font: 400 1rem/1.45 var(--text); color: var(--light); }
.at-chg dt { font: 500 1rem/1.3 var(--head); color: var(--peck); margin-top: 6px; }
.at-chg dd { margin: 0; }
.at-chg b { font-weight: 400; color: var(--light); }
.at-chg-o { color: var(--peck); }

/* справки под картой */
.atl-ref { padding-bottom: 96px; border-top: 3px dotted rgba(217,194,150,.45); margin-top: 32px; }
.ar-h { margin: 48px 0 18px; font: 500 clamp(1.6rem, 1.25rem + 1vw, 2.2rem)/1.15 var(--head); color: var(--light); text-wrap: balance; }
.ar-hr { font-weight: 400; font-size: .68em; color: var(--peck); margin-left: .35em; white-space: nowrap; }
.ar-era-grid { display: grid; grid-template-columns: minmax(0, 38em) minmax(240px, 22em); gap: 24px clamp(32px, 4vw, 72px); align-items: start; }
.ar-lead p { margin: 0 0 1em; font: 400 clamp(1.06rem, 1rem + .3vw, 1.2rem)/1.6 var(--text); color: var(--light); }
.ar-s { color: var(--peck); font-size: .92em; }
.ar-terms { background: var(--rock-2); padding: 16px 20px 6px; box-shadow: 7px 9px 0 var(--shade); }
.ar-th { margin: 0 0 8px; font: 500 1.2rem/1.2 var(--head); color: var(--light); }
.ar-terms dl { margin: 0; }
.ar-terms dt { font: 500 1.06rem/1.3 var(--head); color: var(--light); margin-top: 10px; }
.ar-terms dd { margin: 2px 0 10px; font: 400 1rem/1.5 var(--text); color: var(--light); }
.ar-cards { columns: 2 420px; column-gap: clamp(28px, 3vw, 56px); }
.ar-card { break-inside: avoid; margin: 0 0 32px; padding-top: 14px; border-top: 3px dotted rgba(217,194,150,.45); font: 400 1.06rem/1.55 var(--text); color: var(--light); }
.ar-card p, .ar-card dl, .ar-card ol { margin: 0; }
.ar-card > * + * { margin-top: 10px; }
.ar-ct { margin: 0; font: 500 1.4rem/1.2 var(--head); color: var(--light); }
.ar-card.ap .ar-ct { font: italic 400 1.45rem/1.2 var(--text); }
.ar-dt { font: 400 1rem/1.2 var(--head); color: var(--peck); margin-left: .25em; white-space: nowrap; }
.ar-tag { font: 400 1rem/1.3 var(--head) !important; color: var(--peck); }
.ar-card.f .ar-tag::before { content: ''; display: inline-block; width: 12px; height: 10px; margin-right: 7px; background: var(--peck); vertical-align: 1px; }
.ar-meta { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; }
.ar-meta dt { font: 500 1rem/1.55 var(--head); color: var(--peck); }
.ar-meta dd { margin: 0; }
.ar-f { list-style: none; padding: 0; }
.ar-f li { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 12px; padding: 5px 0; border-top: 1px dotted rgba(217,194,150,.22); }
.ar-fy { font: 500 1rem/1.55 var(--head); color: var(--peck); font-variant-numeric: tabular-nums; }
.ar-nw { padding-left: 14px; border-left: 3px dotted var(--peck); }
.ar-nw b { font: 500 1rem/1 var(--head); }
.ar-x { background: var(--sand); color: var(--ink); padding: 12px 16px; box-shadow: 6px 8px 0 var(--shade); }
.ar-x p { margin: 0; color: var(--ink); }
.ar-xh { font: 500 1.06rem/1.3 var(--head); margin-bottom: 4px !important; }
.ar-src { font-size: 1rem; color: var(--peck); }
.ar-a a, .ar-a .on-art { display: inline-flex; align-items: center; min-height: 44px; margin-right: 18px; color: var(--light); font: 400 1rem/1.2 var(--head); text-decoration: underline; text-underline-offset: 3px; }
.ar-a .on-art { text-decoration: none; color: var(--peck); }
.ar-a a:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; }
.ar-rest { margin: 0; max-width: 52em; font: 400 1rem/1.5 var(--text); color: var(--peck); }
.ar-evl { list-style: none; margin: 0; padding: 0; columns: 2 420px; column-gap: clamp(28px, 3vw, 56px); }
.ar-evl li { break-inside: avoid; padding: 12px 0 14px; border-top: 2px dotted rgba(217,194,150,.3); font: 400 1.04rem/1.55 var(--text); color: var(--light); }
.ar-evl li p { margin: 0; }
.ar-ed { font: 400 1rem/1.3 var(--head) !important; color: var(--peck); }
.ar-et { margin: 4px 0 6px; font: 500 1.2rem/1.25 var(--head); color: var(--light); }
.ar-nowb { display: inline-block; margin-left: 8px; padding: 1px 7px; background: var(--peck); color: var(--ink); font: 500 .85rem/1.4 var(--head); }
.ar-evl li.now { border-top-color: var(--peck); border-top-style: solid; }
.atl-ref .atl-src { margin-top: 48px; max-width: 52em; }
@media (max-width: 960px) {
  .ar-era-grid { grid-template-columns: minmax(0, 1fr); }
  .ar-f li { grid-template-columns: minmax(0, 1fr); gap: 0; }
}

/* список «На карте» рядом с картой */
.atl-side .at-on-h { margin: 18px 0 2px; }
.at-hint { margin: 0 0 8px; font: 400 1rem/1.4 var(--text); color: var(--peck); }
.at-list { list-style: none; margin: 0; padding: 0; }
.at-item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 5px 10px; background: none; border: 0; border-left: 3px solid transparent; text-align: left; color: var(--light); font: 500 1.06rem/1.2 var(--head); }
button.at-item { cursor: pointer; }
button.at-item:hover { background: var(--rock-4); }
button.at-item[aria-pressed="true"] { background: var(--rock-4); border-left-color: var(--light); }
button.at-item:focus-visible { outline: 3px solid var(--light); outline-offset: -3px; }
.at-in { flex: 1 1 auto; min-width: 0; }
.at-id { flex: none; font: 400 .92rem/1.2 var(--head); color: var(--peck); white-space: nowrap; }
.at-rest { margin: 10px 0 0; font: 400 1rem/1.5 var(--text); color: var(--peck); }
.at-rest .sw { width: 10px; height: 10px; margin: 0 5px 0 2px; }
.hx-atlas .at-list, .a-map .at-list { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; }
.hx-atlas .at-item, .a-map .at-item { width: auto; min-height: 0; padding: 2px 0; border: 0; font-size: .98rem; gap: 7px; }
.hx-atlas .at-id, .a-map .at-id { display: none; }
.hx-atlas .at-rest, .a-map .at-rest { display: none; }
/* под картой: карточка выбранной державы и коротко об эпохе */
.atl-ref { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); grid-template-areas: 'card era' 'about about'; gap: 0 clamp(32px, 4vw, 72px); align-items: start; }
.atl-ref [data-ref-now] { grid-area: card; } .atl-ref [data-ref-era] { grid-area: era; } .atl-about { grid-area: about; }
.atl-ref .ar-card { border-top: 0; margin: 40px 0 0; padding: 0; }
.atl-ref .ar-card .ar-ct { font-size: clamp(1.6rem, 1.25rem + 1vw, 2.2rem); }
.ar-ct .sw { width: 18px; height: 18px; margin-right: 12px; vertical-align: 2px; }
.ar-sum { margin: 0; font: 400 clamp(1.06rem, 1rem + .3vw, 1.2rem)/1.6 var(--text); color: var(--light); }
.atl-ref .ar-terms { background: none; box-shadow: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.atl-ref .ar-terms dt { margin: 0; font: 500 1.06rem/1.3 var(--head); color: var(--light); }
.atl-ref .ar-terms dd { margin: 2px 0 0; font: 400 1rem/1.5 var(--text); color: var(--light); }
.atl-ref [data-ref-era] .ar-h { margin-top: 40px; }
.atl-ref [data-ref-era] .ar-src { margin: 14px 0 0; }
.atl-about { margin-top: 48px; border-top: 3px dotted rgba(217,194,150,.45); padding-top: 8px; }
.atl-about summary { min-height: 44px; display: flex; align-items: center; font: 400 1.06rem/1.2 var(--head); color: var(--light); cursor: pointer; }
.atl-about p, .atl-about li { font: 400 1rem/1.5 var(--text); color: var(--peck); max-width: 52em; }
.atl-about ul { padding-left: 1.2em; }
@media (max-width: 960px) {
  .atl-ref { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'card' 'era' 'about'; }
}

/* «Державы и народы»: у каждой эпохи своя шкала по векам */
.g-wrap { --lab: 300px; --gap: 28px; padding-bottom: 96px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.g-head { padding: 6px 0 10px; max-width: 54em; }
.g-head .h1 { margin: 0; font-size: clamp(2.2rem, 1.5rem + 2vw, 3.2rem); }
.g-head .lede { margin: .4em 0 0; }
.g-key { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 26px; font: 400 1rem/1.3 var(--head); color: var(--peck); }
.g-key li { display: flex; align-items: center; gap: 10px; }
.g-k-ok { display: inline-block; width: 36px; height: 12px; background: var(--peck); }
.g-k-ap { display: inline-block; width: 36px; height: 0; border-top: 6px dotted var(--peck); }
.g-sec { margin-top: 40px; }
.g-h { margin: 0 0 4px; font: 500 1.6rem/1.2 var(--head); color: var(--light); }
.g-h .era-r { font-weight: 400; font-size: 1.05rem; color: var(--peck); margin-left: .4em; }
.g-body { position: relative; }
.g-grid { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + var(--gap)); right: 0; pointer-events: none; }
.g-grid i { position: absolute; top: 30px; bottom: 0; border-left: 2px dotted rgba(217,194,150,.25); }
.g-axis { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); gap: 0 var(--gap); height: 30px; }
.g-ax { position: relative; display: block; }
.g-tk { position: absolute; top: 6px; transform: translateX(-50%); font: 400 .95rem/1 var(--head); color: var(--peck); white-space: nowrap; font-variant-numeric: tabular-nums; }
.g-tk:first-child { transform: none; }
.g-tk:last-child { transform: translateX(-100%); }
.g-list { list-style: none; margin: 0; padding: 0; font-size: 1rem; }
.g-row { border-top: 1px solid rgba(217,194,150,.14); }
.g-a { position: relative; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); gap: 0 var(--gap); align-items: center; min-height: 56px; padding: 6px 0; color: var(--light); text-decoration: none; }
.g-lab { display: block; min-width: 0; }
.g-n { font: 500 1.1rem/1.2 var(--head); color: var(--light); }
.g-d { display: block; font: 400 1rem/1.3 var(--text); color: var(--peck); }
.g-track { position: relative; display: block; height: 24px; }
.g-bar { position: absolute; top: 6px; height: 12px; }
.g-ok { position: absolute; top: 0; bottom: 0; background: var(--peck); }
.g-ap { position: absolute; left: 0; top: 3px; height: 0; border-top: 6px dotted var(--peck); }
.g-ap-r { left: auto; right: 0; }
.g-bar.cut-r::after, .g-bar.cut-l::before { content: ''; position: absolute; top: -4px; width: 0; height: 0; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.g-bar.cut-r::after { right: -12px; border-left: 10px solid var(--peck); }
.g-bar.cut-l::before { left: -12px; border-right: 10px solid var(--peck); }
.g-a:hover { background: var(--rock-2); }
.g-a:hover .g-n { text-decoration: underline; text-underline-offset: 3px; }
.g-a:hover .g-ok { background: var(--light); } .g-a:hover .g-ap { border-top-color: var(--light); }
.g-a:focus-visible { outline: 3px solid var(--light); outline-offset: 2px; }
.g-src { margin-top: 56px; max-width: 60em; }
.g-src p { font: 400 1.06rem/1.55 var(--text); color: var(--light); }
@media (max-width: 1080px) { .g-wrap { --lab: 240px; --gap: 20px; } }
@media (max-width: 760px) {
  .g-wrap { --lab: 0px; --gap: 0px; }
  .g-axis { grid-template-columns: minmax(0, 1fr); margin: 0 6px; }
  .g-ax-l { display: none; }
  .g-axis { height: 44px; }
  .g-grid i { top: 44px; }
  .g-tk { font-size: .95rem; line-height: 1.05; text-align: center; top: 4px; }
  .g-tk:first-child { text-align: left; } .g-tk:last-child { text-align: right; }
  .tk-s, .tk-p { display: none; }
  .sfx .tk-s, .sfx .tk-p { display: block; font-size: .8rem; white-space: nowrap; }
  .g-tk.sfx:not(:first-child) { text-align: left; transform: none; }
  .g-grid { left: 6px; right: 6px; }
  .g-list { margin: 0; }
  .g-a { grid-template-columns: minmax(0, 1fr); gap: 4px 0; padding: 10px 6px; }
  .g-h { font-size: 1.35rem; }
}
