/* ===== Согласие на обработку ПД в формах ===== */
.pd-consent {
	float: left;
	clear: both;
	width: 100%;
	margin: 8px 0 10px;
	color: #555;
	font-size: 12px;
	line-height: 1.4;
	text-align: left;
}
/* В модальных окнах сайта label позиционируются абсолютно (.modal-body label) — сбрасываем */
.pd-consent label,
.modal-body .pd-consent label {
	position: static !important;
	top: auto !important;
	left: auto !important;
	display: flex !important;
	align-items: flex-start;
	gap: 8px;
	width: auto !important;
	height: auto !important;
	margin: 0;
	color: #555 !important;
	font-family: inherit !important;
	font-size: 12px !important;
	font-weight: normal;
	line-height: 1.4;
	text-align: left;
	cursor: pointer;
}
.modal-body.has-pd-consent {
	height: auto !important;
	min-height: 450px;
	overflow: hidden; /* содержит плавающие поля формы */
}
.pd-consent + .btn-group,
.pd-consent + [id^="ajax_callback_"] {
	clear: both;
}
.pd-consent input[type="checkbox"] {
	flex: 0 0 auto;
	width: 16px;
	height: 16px;
	margin: 1px 0 0;
	cursor: pointer;
}
.pd-consent a {
	text-decoration: underline;
}
.pd-consent__error {
	display: none;
	margin-top: 4px;
	color: #c00;
	font-weight: bold;
}
.pd-consent--error label {
	outline: 2px solid #c00;
	outline-offset: 3px;
}
.pd-consent--error .pd-consent__error {
	display: block;
}

/* ===== Плашка cookie ===== */
.cookie-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 1000000;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 18px;
	background: #fff;
	color: #333;
	border-radius: 6px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
	font-size: 13px;
	line-height: 1.45;
}
.cookie-banner__text {
	flex: 1 1 420px;
}
.cookie-banner__text a {
	text-decoration: underline;
}
.cookie-banner__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.cookie-banner__btn {
	padding: 8px 16px;
	border: 1px solid #8c8c8c;
	border-radius: 4px;
	background: #fff;
	color: #333;
	font-size: 13px;
	cursor: pointer;
}
.cookie-banner__btn--accept {
	border-color: #c4161c;
	background: #c4161c;
	color: #fff;
}

/* ===== Футер: ссылки на документы ===== */
/* У #footer в теме фиксированная высота 358px — даём ему расти под строку документов */
#footer {
	height: auto !important;
	min-height: 358px;
}
#footer .copy {
	overflow: hidden; /* содержит плавающую колонку */
	padding-top: 8px;
	padding-bottom: 8px;
}
.footer-docs {
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
	font-size: 12px;
	line-height: 1.8;
}
.footer-docs li {
	display: inline-block;
	margin-right: 14px;
}
.footer-docs li::before {
	content: none !important;
}
.footer-docs a,
.footer-docs a:visited {
	color: rgba(255, 255, 255, .85);
	text-decoration: underline;
}
.footer-docs a:hover,
.footer-docs a:focus {
	color: #fff;
}

/* ===== Раздел «Сведения для пациентов» ===== */
.patients-info {
	font-size: 15px;
	line-height: 1.55;
}
.patients-info h2 {
	margin: 28px 0 12px;
	font-size: 22px;
}
.patients-info h3 {
	margin: 18px 0 8px;
	font-size: 17px;
}
.patients-info table {
	width: 100%;
	margin: 0 0 16px;
	border-collapse: collapse;
}
.patients-info th,
.patients-info td {
	padding: 8px 10px;
	border: 1px solid #ddd;
	vertical-align: top;
	text-align: left;
}
.patients-info th {
	width: 35%;
	background: #f6f6f6;
	font-weight: bold;
}
.patients-info .patients-toc {
	columns: 2 280px;
	margin: 0 0 20px;
}
.patients-info .patients-note {
	padding: 10px 14px;
	border-left: 3px solid #c4161c;
	background: #fafafa;
}
.doctor-schedule {
	margin-bottom: 20px;
}

/* ===== Версия для слабовидящих: кнопка ===== */
.a11y-toggle {
	position: fixed;
	left: 0;
	top: 45%;
	z-index: 99999;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	border: 0;
	border-radius: 0 6px 6px 0;
	background: #333;
	color: #fff;
	font-size: 14px;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .3);
}
.a11y-toggle span {
	display: none;
}
.a11y-toggle:hover span,
.a11y-toggle:focus span {
	display: inline;
}

/* ===== Версия для слабовидящих: панель ===== */
html body #a11y-panel {
	position: sticky;
	top: 0;
	z-index: 1000001;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 24px;
	padding: 10px 16px;
	background: #fff !important;
	color: #000 !important;
	border-bottom: 2px solid #000 !important;
	font-family: Arial, sans-serif !important;
	font-size: 16px !important;
}
html body #a11y-panel * {
	font-family: Arial, sans-serif !important;
	letter-spacing: normal !important;
	background-color: transparent !important;
	color: #000 !important;
	border-color: transparent !important;
}
html body #a11y-panel .a11y-panel__group {
	display: flex;
	align-items: center;
	gap: 6px;
}
html body #a11y-panel .a11y-panel__label {
	font-size: 16px !important;
	color: #000 !important;
	background: #fff !important;
}
html body #a11y-panel button {
	min-width: 40px;
	min-height: 40px;
	padding: 4px 10px;
	border: 2px solid #000 !important;
	border-radius: 4px;
	background: #fff !important;
	color: #000 !important;
	font-size: 16px !important;
	font-weight: bold;
	cursor: pointer;
}
html body #a11y-panel button.is-active {
	outline: 3px solid #c4161c !important;
	outline-offset: 2px;
}
html body #a11y-panel button.a11y-big { font-size: 20px !important; }
html body #a11y-panel button.a11y-bigger { font-size: 24px !important; }
html body #a11y-panel button.a11y-c-bw { background: #000 !important; color: #fff !important; }
html body #a11y-panel button.a11y-c-blue { background: #9dd1ff !important; color: #063462 !important; }

/* ===== Версия для слабовидящих: применение настроек ===== */
html.a11y-on body,
html.a11y-on body *:not(.fa):not(.mdi):not([class^="icon_"]):not([class*=" icon_"]):not([class^="arrow_"]):not([class*=" arrow_"]) {
	font-family: Arial, Helvetica, sans-serif !important;
	text-shadow: none !important;
}
html.a11y-fs-1 body #wrap-test,
html.a11y-fs-1 body #footer { font-size: 18px !important; }
html.a11y-fs-2 body #wrap-test,
html.a11y-fs-2 body #footer { font-size: 22px !important; }
html.a11y-fs-3 body #wrap-test,
html.a11y-fs-3 body #footer { font-size: 26px !important; }
html.a11y-on #wrap-test p, html.a11y-on #wrap-test li, html.a11y-on #wrap-test a,
html.a11y-on #wrap-test span, html.a11y-on #wrap-test div, html.a11y-on #wrap-test td,
html.a11y-on #wrap-test th, html.a11y-on #wrap-test label, html.a11y-on #wrap-test input,
html.a11y-on #wrap-test textarea, html.a11y-on #wrap-test button,
html.a11y-on #footer p, html.a11y-on #footer li, html.a11y-on #footer a,
html.a11y-on #footer span, html.a11y-on #footer div {
	font-size: inherit !important;
	line-height: 1.5 !important;
}
html.a11y-on #wrap-test h1 { font-size: 1.8em !important; line-height: 1.3 !important; }
html.a11y-on #wrap-test h2 { font-size: 1.5em !important; line-height: 1.3 !important; }
html.a11y-on #wrap-test h3,
html.a11y-on #wrap-test h4,
html.a11y-on #wrap-test h5 { font-size: 1.25em !important; line-height: 1.3 !important; }
html.a11y-ls body *:not(.fa):not(.mdi) { letter-spacing: .12em !important; word-spacing: .2em !important; }

/* Цветовые схемы */
html.a11y-scheme-wb body,
html.a11y-scheme-wb body * {
	background-color: #fff !important;
	background-image: none !important;
	color: #000 !important;
	border-color: #000 !important;
	box-shadow: none !important;
}
html.a11y-scheme-bw body,
html.a11y-scheme-bw body * {
	background-color: #000 !important;
	background-image: none !important;
	color: #fff !important;
	border-color: #fff !important;
	box-shadow: none !important;
}
html.a11y-scheme-bw body a { color: #ff0 !important; }
html.a11y-scheme-blue body,
html.a11y-scheme-blue body * {
	background-color: #9dd1ff !important;
	background-image: none !important;
	color: #063462 !important;
	border-color: #063462 !important;
	box-shadow: none !important;
}
html.a11y-on body a { text-decoration: underline !important; }

/* Изображения */
html.a11y-noimg img,
html.a11y-noimg iframe,
html.a11y-noimg video,
html.a11y-noimg picture {
	visibility: hidden !important;
}
html.a11y-noimg body * { background-image: none !important; }

html.a11y-on .a11y-toggle { display: none !important; }
