/* ПДн и Cookie — стили изолированы префиксом .pdc- и не трогают тему. */
:root {
	--pdc-accent: #2f7d32;
	--pdc-text: #1f2328;
	--pdc-muted: #5b6168;
	--pdc-bg: #ffffff;
	--pdc-line: #e3e5e8;
	--pdc-soft: #f3f4f5;
	--pdc-radius: 12px;
	--pdc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.pdc-banner[hidden],
.pdc-modal[hidden] { display: none !important; }

/* ---------- кнопки (защищены от стилей темы) ---------- */
.pdc-banner .pdc-btn,
.pdc-modal .pdc-btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	min-height: 42px;
	width: auto;
	margin: 0;
	padding: 10px 18px;
	border: 1.5px solid transparent;
	border-radius: 8px;
	background: none;
	box-shadow: none;
	font: 600 14px/1.2 var(--pdc-font);
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s, filter .15s;
}
.pdc-banner .pdc-btn--primary,
.pdc-modal .pdc-btn--primary {
	background: var(--pdc-accent);
	border-color: var(--pdc-accent);
	color: #fff;
}
.pdc-banner .pdc-btn--primary:hover,
.pdc-modal .pdc-btn--primary:hover { filter: brightness(.92); color: #fff; background: var(--pdc-accent); }

.pdc-banner .pdc-btn--secondary,
.pdc-modal .pdc-btn--secondary {
	background: var(--pdc-bg);
	border-color: var(--pdc-text);
	color: var(--pdc-text);
}
.pdc-banner .pdc-btn--secondary:hover,
.pdc-modal .pdc-btn--secondary:hover { background: var(--pdc-soft); color: var(--pdc-text); border-color: var(--pdc-text); }

.pdc-banner .pdc-btn--link {
	padding-left: 8px;
	padding-right: 8px;
	color: var(--pdc-text);
	text-decoration: underline;
	text-underline-offset: 3px;
	font-weight: 500;
}
.pdc-banner .pdc-btn--link:hover { color: var(--pdc-accent); background: none; }

.pdc-banner .pdc-btn:focus-visible,
.pdc-modal .pdc-btn:focus-visible,
.pdc-modal__x:focus-visible,
.pdc-switch input:focus-visible + .pdc-switch__ui {
	outline: 3px solid var(--pdc-accent);
	outline-offset: 2px;
}

/* ---------- баннер ---------- */
.pdc-banner {
	position: fixed;
	z-index: 2147483000;
	left: 50%;
	bottom: 16px;
	transform: translateX(-50%);
	box-sizing: border-box;
	width: calc(100% - 32px);
	max-width: 1040px;
	display: flex;
	align-items: center;
	gap: 16px 24px;
	padding: 16px 20px;
	background: var(--pdc-bg);
	color: var(--pdc-text);
	border: 1px solid var(--pdc-line);
	border-radius: var(--pdc-radius);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
	font: 400 14px/1.5 var(--pdc-font);
	text-align: left;
	animation: pdc-up .25s ease-out;
}
@keyframes pdc-up { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

.pdc-banner__text { flex: 1 1 auto; margin: 0; color: var(--pdc-text); }
.pdc-banner__text a,
.pdc-modal a { color: var(--pdc-accent); text-decoration: underline; text-underline-offset: 2px; }
.pdc-banner__btns { flex: 0 0 auto; display: flex; gap: 8px; align-items: center; }

@media (max-width: 760px) {
	.pdc-banner {
		flex-direction: column;
		align-items: stretch;
		bottom: 8px;
		width: calc(100% - 16px);
		padding: 14px;
		font-size: 13px;
	}
	.pdc-banner__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.pdc-banner .pdc-btn--link { grid-column: 1 / -1; order: 3; min-height: 32px; }
	.pdc-banner .pdc-btn { width: 100%; padding-left: 10px; padding-right: 10px; }
}

/* ---------- окно настроек ---------- */
.pdc-modal {
	position: fixed;
	z-index: 2147483001;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
	font: 400 14px/1.5 var(--pdc-font);
	color: var(--pdc-text);
}
.pdc-modal__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.pdc-modal__box {
	position: relative;
	box-sizing: border-box;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: 24px;
	background: var(--pdc-bg);
	border-radius: var(--pdc-radius);
	box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
	outline: none;
}
.pdc-modal__x {
	position: absolute;
	top: 10px;
	right: 10px;
	width: 36px;
	height: 36px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 8px;
	background: transparent;
	color: var(--pdc-muted);
	font: 400 26px/1 var(--pdc-font);
	cursor: pointer;
}
.pdc-modal__x:hover { background: var(--pdc-soft); color: var(--pdc-text); }
.pdc-modal__title { margin: 0 40px 8px 0; font: 700 20px/1.3 var(--pdc-font); color: var(--pdc-text); }
.pdc-modal__intro { margin: 0 0 16px; color: var(--pdc-muted); }

.pdc-cat { padding: 14px 0; border-top: 1px solid var(--pdc-line); }
.pdc-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; cursor: default; }
label.pdc-cat__head { cursor: pointer; }
.pdc-cat__name { font-weight: 700; font-size: 15px; }
.pdc-cat__always { font-size: 13px; font-weight: 600; color: var(--pdc-accent); white-space: nowrap; }
.pdc-cat__desc { margin: 6px 0 0; color: var(--pdc-muted); font-size: 13px; }

.pdc-switch { position: relative; display: inline-block; flex: 0 0 auto; width: 44px; height: 24px; }
.pdc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.pdc-switch__ui { position: absolute; inset: 0; border-radius: 24px; background: #c3c7cc; transition: background-color .15s; }
.pdc-switch__ui::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
	transition: transform .15s;
}
.pdc-switch input:checked + .pdc-switch__ui { background: var(--pdc-accent); }
.pdc-switch input:checked + .pdc-switch__ui::after { transform: translateX(20px); }

.pdc-modal__btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; padding-top: 16px; border-top: 1px solid var(--pdc-line); }
@media (max-width: 520px) {
	.pdc-modal__box { padding: 20px 16px; }
	.pdc-modal__btns { display: grid; grid-template-columns: 1fr; }
	.pdc-modal .pdc-btn { width: 100%; }
}
html.pdc-modal-open { overflow: hidden; }

/* ---------- строка в футере ---------- */
.pdc-footer {
	clear: both;
	position: relative;
	z-index: 1;
	background: #1d1f21;
	color: #b9bdc2;
	font: 400 13px/1.6 var(--pdc-font);
}
.pdc-footer__in {
	box-sizing: border-box;
	max-width: 1200px;
	margin: 0 auto;
	padding: 14px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 24px;
	justify-content: space-between;
	align-items: center;
}
.pdc-footer__req { color: #b9bdc2; }
.pdc-footer a { color: #e6e8ea; text-decoration: underline; text-underline-offset: 2px; }
.pdc-footer a:hover { color: #fff; }
.pdc-footer__links,
.pdc-links-inline { display: flex; flex-wrap: wrap; gap: 4px 0; align-items: center; }
.pdc-sep { margin: 0 8px; opacity: .6; }
html.pdc-banner-open .pdc-footer { padding-bottom: 150px; }
@media (max-width: 760px) {
	.pdc-footer__in { flex-direction: column; align-items: flex-start; }
	html.pdc-banner-open .pdc-footer { padding-bottom: 230px; }
}

/* ---------- чекбокс согласия в формах ---------- */
.pdc-consent {
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	flex-wrap: wrap;
	margin: 8px 0 12px;
	font-size: 13px;
	line-height: 1.45;
	text-align: left;
}
.pdc-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 18px !important;
	height: 18px !important;
	min-width: 18px;
	margin: 1px 0 0 !important;
	padding: 0;
	opacity: 1 !important;
	position: static !important;
	visibility: visible !important;
	-webkit-appearance: checkbox;
	appearance: auto;
	accent-color: var(--pdc-accent);
	cursor: pointer;
}
.pdc-consent label {
	flex: 1 1 0;
	min-width: 0;
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	font-size: 12px !important;
	font-weight: 400 !important;
	line-height: 1.45 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	color: #6b6f75 !important;
	cursor: pointer;
}
.pdc-consent label::before,
.pdc-consent label::after { content: none !important; }
.pdc-consent label a,
.pdc-consent label a:visited {
	color: inherit !important;
	font-weight: inherit !important;
	text-decoration: underline !important;
	text-underline-offset: 2px;
}
.pdc-consent label a:hover { color: #3c4046 !important; }
/* Красный — только когда пытались отправить без отметки. */
.pdc-consent.pdc-consent--error label,
.pdc-consent.pdc-consent--error label a { color: #c62828 !important; }
.pdc-consent__err { flex-basis: 100%; color: #c62828; font-size: 12px; }
.pdc-consent-row { width: 100%; }
.wpcf7 .pdc-cf7-wrap { display: block; }
.wpcf7 .pdc-cf7-wrap .wpcf7-not-valid-tip { flex-basis: 100%; }

/* ---------- документы ---------- */
.pdc-doc h2 { margin-top: 1.6em; }
.pdc-doc h3 { margin-top: 1.2em; font-size: 1.05em; }
.pdc-table { width: 100%; border-collapse: collapse; font-size: .92em; }
.pdc-table th,
.pdc-table td { border: 1px solid #d9dcdf; padding: 8px 10px; vertical-align: top; text-align: left; }
.pdc-table th { background: #f3f4f5; }
@media (max-width: 760px) {
	.pdc-table { display: block; overflow-x: auto; }
}

@media (prefers-reduced-motion: reduce) {
	.pdc-banner { animation: none; }
	.pdc-btn, .pdc-switch__ui, .pdc-switch__ui::after { transition: none !important; }
}
