/* Cookie consent banner (152-FZ) */
.cookie-consent {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2147483647; /* above Jivo widget */
	padding: 16px;
	background: #373d44;
	color: #fff;
	font-size: 14px;
	line-height: 1.5;
	box-shadow: 0 -2px 12px rgba(0, 0, 0, .2);
	transform: translateY(110%);
	transition: transform .3s ease;
}
.cookie-consent.is-visible {
	transform: translateY(0);
}
.cookie-consent__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 24px;
}
.cookie-consent__text {
	flex: 1 1 auto;
}
.cookie-consent__text a {
	color: #fff;
	text-decoration: underline;
}
.cookie-consent__text a:hover {
	color: #419cdd;
}
.cookie-consent__buttons {
	flex: 0 0 auto;
	display: flex;
	gap: 10px;
}
.cookie-consent__btn {
	min-width: 170px;
	padding: 10px 18px;
	border: 1px solid #419cdd;
	border-radius: 2px;
	background: #419cdd;
	color: #fff;
	font: inherit;
	font-weight: 500;
	cursor: pointer;
	transition: background .2s, border-color .2s;
}
.cookie-consent__btn:hover {
	background: #2f8bcc;
	border-color: #2f8bcc;
}
.cookie-consent__btn:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.cookie-consent {
		padding: 14px 16px;
		font-size: 13px;
	}
	.cookie-consent__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}
	.cookie-consent__buttons {
		flex-direction: column;
	}
	.cookie-consent__btn {
		width: 100%;
	}
}
@media print {
	.cookie-consent { display: none; }
}

/* Map placeholder on /contacts/ until the visitor allows Yandex.Maps */
.map-consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 500px;
	padding: 24px 16px;
	box-sizing: border-box;
	background: #f5f6f7;
	text-align: center;
}
.map-consent__address {
	margin: 0 0 16px;
	font-size: 16px;
	color: #333;
}
.map-consent__note {
	margin: 16px 0 0;
	max-width: 520px;
	font-size: 12px;
	color: #888;
}

/* Legal documents: /politics/* */
.legal-doc h3 { margin: 28px 0 12px; }
.legal-doc h4 { margin: 20px 0 10px; }
.legal-doc__table { overflow-x: auto; margin: 0 0 20px; }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-doc th, .legal-doc td { padding: 8px 10px; border: 1px solid #e5e5e5; text-align: left; vertical-align: top; }
.legal-doc th { background: #f5f6f7; font-weight: 500; }
.legal-doc code { padding: 1px 4px; background: #f5f6f7; border-radius: 2px; font-size: 13px; }

/* Yandex "Share" widget is loaded only after consent - hide the empty block until then */
html:not(.cookie-consent-all) .shares-block { display: none !important; }
