/* Версия для слабовидящих. ГОСТ Р 52872-2019
   Подключается в header.php последним, после всех остальных стилей. */

/* ============ Панель настроек ============ */
#bvi-panel {
	background: #1d1d1d;
	color: #fff;
	padding: 12px 16px;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	line-height: 1.4;
	position: relative;
	z-index: 100000;
}
#bvi-panel[hidden] { display: none; }
#bvi-panel .bvi-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 22px;
	max-width: 1400px;
	margin: 0 auto;
}
#bvi-panel .bvi-group {
	display: flex;
	align-items: center;
	gap: 6px;
}
#bvi-panel .bvi-group-end { margin-left: auto; }
#bvi-panel .bvi-label {
	font-size: 13px;
	color: #c9c9c9;
	margin-right: 4px;
	white-space: nowrap;
}
#bvi-panel .bvi-btn {
	background: #3a3a3a;
	color: #fff;
	border: 2px solid #5c5c5c;
	border-radius: 3px;
	padding: 5px 11px;
	font-size: 14px;
	font-family: inherit;
	line-height: 1.2;
	cursor: pointer;
	min-width: 34px;
	min-height: 34px;
}
#bvi-panel .bvi-btn:hover { background: #4d4d4d; }
#bvi-panel .bvi-btn:focus {
	outline: 3px solid #ffd400;
	outline-offset: 1px;
}
#bvi-panel .bvi-btn.is-active {
	background: #ffd400;
	color: #1d1d1d;
	border-color: #ffd400;
	font-weight: bold;
}
#bvi-panel .bvi-serif { font-family: Georgia, "Times New Roman", serif; }

/* Кнопки размера шрифта — разной величины */
#bvi-panel [data-bvi="size"][data-bvi-value="0"] { font-size: 13px; }
#bvi-panel [data-bvi="size"][data-bvi-value="1"] { font-size: 16px; }
#bvi-panel [data-bvi="size"][data-bvi-value="2"] { font-size: 20px; }
#bvi-panel [data-bvi="size"][data-bvi-value="3"] { font-size: 24px; }

/* Образцы цветовых схем */
#bvi-panel .bvi-sw-white { background: #fff; color: #000; border-color: #fff; }
#bvi-panel .bvi-sw-black { background: #000; color: #fff; border-color: #888; }
#bvi-panel .bvi-sw-blue  { background: #9dd1ff; color: #063462; border-color: #9dd1ff; }
#bvi-panel .bvi-sw-brown { background: #f7f3d6; color: #4d4b43; border-color: #f7f3d6; }
#bvi-panel .bvi-sw-green { background: #3b2716; color: #a9e44d; border-color: #a9e44d; }

@media (max-width: 900px) {
	#bvi-panel .bvi-group-end { margin-left: 0; }
	#bvi-panel .bvi-row { gap: 8px 14px; }
}

/* ============ Режим для слабовидящих ============ */

/* Убираем декоративное оформление */
.bvi-active body {
	background: #fff !important;
	color: #000 !important;
}
.bvi-active .fh5co-loader { display: none !important; }
.bvi-active #fh5co-footer .overlay,
.bvi-active .overlay { display: none !important; }

.bvi-active * {
	background-image: none !important;
	text-shadow: none !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	transition: none !important;
	animation: none !important;
	letter-spacing: inherit;
}

.bvi-active body,
.bvi-active p,
.bvi-active li,
.bvi-active td,
.bvi-active th,
.bvi-active div,
.bvi-active span,
.bvi-active a,
.bvi-active h1,
.bvi-active h2,
.bvi-active h3,
.bvi-active h4 {
	font-family: Arial, Helvetica, sans-serif !important;
}
.bvi-active.bvi-font-serif body,
.bvi-active.bvi-font-serif p,
.bvi-active.bvi-font-serif li,
.bvi-active.bvi-font-serif td,
.bvi-active.bvi-font-serif th,
.bvi-active.bvi-font-serif div,
.bvi-active.bvi-font-serif span,
.bvi-active.bvi-font-serif a,
.bvi-active.bvi-font-serif h1,
.bvi-active.bvi-font-serif h2,
.bvi-active.bvi-font-serif h3,
.bvi-active.bvi-font-serif h4 {
	font-family: Georgia, "Times New Roman", serif !important;
}

/* Размер шрифта */
.bvi-active.bvi-size-0 body { font-size: 16px !important; line-height: 1.5 !important; }
.bvi-active.bvi-size-1 body { font-size: 20px !important; line-height: 1.55 !important; }
.bvi-active.bvi-size-2 body { font-size: 26px !important; line-height: 1.6 !important; }
.bvi-active.bvi-size-3 body { font-size: 32px !important; line-height: 1.65 !important; }

.bvi-active.bvi-size-0 h1 { font-size: 26px !important; }
.bvi-active.bvi-size-1 h1 { font-size: 32px !important; }
.bvi-active.bvi-size-2 h1 { font-size: 40px !important; }
.bvi-active.bvi-size-3 h1 { font-size: 48px !important; }

.bvi-active.bvi-size-0 h2 { font-size: 22px !important; }
.bvi-active.bvi-size-1 h2 { font-size: 27px !important; }
.bvi-active.bvi-size-2 h2 { font-size: 33px !important; }
.bvi-active.bvi-size-3 h2 { font-size: 40px !important; }

.bvi-active.bvi-size-0 h3,
.bvi-active.bvi-size-0 h4 { font-size: 19px !important; }
.bvi-active.bvi-size-1 h3,
.bvi-active.bvi-size-1 h4 { font-size: 23px !important; }
.bvi-active.bvi-size-2 h3,
.bvi-active.bvi-size-2 h4 { font-size: 28px !important; }
.bvi-active.bvi-size-3 h3,
.bvi-active.bvi-size-3 h4 { font-size: 34px !important; }

/* Межбуквенный интервал */
.bvi-active.bvi-spacing-1 body,
.bvi-active.bvi-spacing-1 p,
.bvi-active.bvi-spacing-1 li,
.bvi-active.bvi-spacing-1 td,
.bvi-active.bvi-spacing-1 a { letter-spacing: 1.5px !important; }
.bvi-active.bvi-spacing-2 body,
.bvi-active.bvi-spacing-2 p,
.bvi-active.bvi-spacing-2 li,
.bvi-active.bvi-spacing-2 td,
.bvi-active.bvi-spacing-2 a { letter-spacing: 3px !important; }

/* Цветовые схемы */
.bvi-active.bvi-theme-white body,
.bvi-active.bvi-theme-white .container,
.bvi-active.bvi-theme-white #fh5co-footer,
.bvi-active.bvi-theme-white .page-wrapper,
.bvi-active.bvi-theme-white nav,
.bvi-active.bvi-theme-white section,
.bvi-active.bvi-theme-white div,
.bvi-active.bvi-theme-white td,
.bvi-active.bvi-theme-white th { background-color: #fff !important; color: #000 !important; }
.bvi-active.bvi-theme-white a { color: #00457c !important; }

.bvi-active.bvi-theme-black body,
.bvi-active.bvi-theme-black .container,
.bvi-active.bvi-theme-black #fh5co-footer,
.bvi-active.bvi-theme-black .page-wrapper,
.bvi-active.bvi-theme-black nav,
.bvi-active.bvi-theme-black section,
.bvi-active.bvi-theme-black div,
.bvi-active.bvi-theme-black td,
.bvi-active.bvi-theme-black th { background-color: #000 !important; color: #fff !important; }
.bvi-active.bvi-theme-black a { color: #ffd400 !important; }

.bvi-active.bvi-theme-blue body,
.bvi-active.bvi-theme-blue .container,
.bvi-active.bvi-theme-blue #fh5co-footer,
.bvi-active.bvi-theme-blue .page-wrapper,
.bvi-active.bvi-theme-blue nav,
.bvi-active.bvi-theme-blue section,
.bvi-active.bvi-theme-blue div,
.bvi-active.bvi-theme-blue td,
.bvi-active.bvi-theme-blue th { background-color: #9dd1ff !important; color: #063462 !important; }
.bvi-active.bvi-theme-blue a { color: #063462 !important; }

.bvi-active.bvi-theme-brown body,
.bvi-active.bvi-theme-brown .container,
.bvi-active.bvi-theme-brown #fh5co-footer,
.bvi-active.bvi-theme-brown .page-wrapper,
.bvi-active.bvi-theme-brown nav,
.bvi-active.bvi-theme-brown section,
.bvi-active.bvi-theme-brown div,
.bvi-active.bvi-theme-brown td,
.bvi-active.bvi-theme-brown th { background-color: #f7f3d6 !important; color: #4d4b43 !important; }
.bvi-active.bvi-theme-brown a { color: #6b4700 !important; }

.bvi-active.bvi-theme-green body,
.bvi-active.bvi-theme-green .container,
.bvi-active.bvi-theme-green #fh5co-footer,
.bvi-active.bvi-theme-green .page-wrapper,
.bvi-active.bvi-theme-green nav,
.bvi-active.bvi-theme-green section,
.bvi-active.bvi-theme-green div,
.bvi-active.bvi-theme-green td,
.bvi-active.bvi-theme-green th { background-color: #3b2716 !important; color: #a9e44d !important; }
.bvi-active.bvi-theme-green a { color: #a9e44d !important; }


/* кнопки темы (золотой фон) — прозрачные с рамкой, текст в цвет схемы */
.bvi-active .btn,
.bvi-active .btn-primary {
	background: transparent !important;
	border: 2px solid currentColor !important;
}

/* Текст в цвет выбранной схемы: заголовки и абзацы темы бывают белыми */
.bvi-active.bvi-theme-white h1,
.bvi-active.bvi-theme-white h2,
.bvi-active.bvi-theme-white h3,
.bvi-active.bvi-theme-white h4,
.bvi-active.bvi-theme-white h5,
.bvi-active.bvi-theme-white h6,
.bvi-active.bvi-theme-white p,
.bvi-active.bvi-theme-white li,
.bvi-active.bvi-theme-white span,
.bvi-active.bvi-theme-white strong,
.bvi-active.bvi-theme-white em,
.bvi-active.bvi-theme-white label,
.bvi-active.bvi-theme-white figcaption { color: #000 !important; }
.bvi-active.bvi-theme-black h1,
.bvi-active.bvi-theme-black h2,
.bvi-active.bvi-theme-black h3,
.bvi-active.bvi-theme-black h4,
.bvi-active.bvi-theme-black h5,
.bvi-active.bvi-theme-black h6,
.bvi-active.bvi-theme-black p,
.bvi-active.bvi-theme-black li,
.bvi-active.bvi-theme-black span,
.bvi-active.bvi-theme-black strong,
.bvi-active.bvi-theme-black em,
.bvi-active.bvi-theme-black label,
.bvi-active.bvi-theme-black figcaption { color: #fff !important; }
.bvi-active.bvi-theme-blue h1,
.bvi-active.bvi-theme-blue h2,
.bvi-active.bvi-theme-blue h3,
.bvi-active.bvi-theme-blue h4,
.bvi-active.bvi-theme-blue h5,
.bvi-active.bvi-theme-blue h6,
.bvi-active.bvi-theme-blue p,
.bvi-active.bvi-theme-blue li,
.bvi-active.bvi-theme-blue span,
.bvi-active.bvi-theme-blue strong,
.bvi-active.bvi-theme-blue em,
.bvi-active.bvi-theme-blue label,
.bvi-active.bvi-theme-blue figcaption { color: #063462 !important; }
.bvi-active.bvi-theme-brown h1,
.bvi-active.bvi-theme-brown h2,
.bvi-active.bvi-theme-brown h3,
.bvi-active.bvi-theme-brown h4,
.bvi-active.bvi-theme-brown h5,
.bvi-active.bvi-theme-brown h6,
.bvi-active.bvi-theme-brown p,
.bvi-active.bvi-theme-brown li,
.bvi-active.bvi-theme-brown span,
.bvi-active.bvi-theme-brown strong,
.bvi-active.bvi-theme-brown em,
.bvi-active.bvi-theme-brown label,
.bvi-active.bvi-theme-brown figcaption { color: #4d4b43 !important; }
.bvi-active.bvi-theme-green h1,
.bvi-active.bvi-theme-green h2,
.bvi-active.bvi-theme-green h3,
.bvi-active.bvi-theme-green h4,
.bvi-active.bvi-theme-green h5,
.bvi-active.bvi-theme-green h6,
.bvi-active.bvi-theme-green p,
.bvi-active.bvi-theme-green li,
.bvi-active.bvi-theme-green span,
.bvi-active.bvi-theme-green strong,
.bvi-active.bvi-theme-green em,
.bvi-active.bvi-theme-green label,
.bvi-active.bvi-theme-green figcaption { color: #a9e44d !important; }

/* Ссылки всегда подчёркнуты */
.bvi-active a { text-decoration: underline !important; }
.bvi-active a:focus { outline: 3px solid #ff0000 !important; outline-offset: 2px; }

/* Границы таблиц видимы в любой схеме */
.bvi-active table,
.bvi-active td,
.bvi-active th { border: 1px solid currentColor !important; }

/* Отключение изображений */
.bvi-active.bvi-noimg img { display: none !important; }
.bvi-active.bvi-noimg .course-img,
.bvi-active.bvi-noimg .workers-img { display: none !important; }
.bvi-active.bvi-noimg iframe { display: none !important; }

/* Совместимость с темой golden beads */
/* блоки с анимацией появления (.js .animate-box { opacity: 0 }) — всегда видимы */
.bvi-active .animate-box,
.bvi-active .animated,
.bvi-active .animated-fast {
	opacity: 1 !important;
	visibility: visible !important;
	transform: none !important;
}
/* закреплённая шапка растёт от крупного шрифта и перекрывает текст — ставим её в обычный поток */
.bvi-active .fh5co-nav { position: relative !important; }
.bvi-active .page-wrapper { padding-top: 0 !important; }
.bvi-active .gototop { display: none !important; }
/* главный слайдер: текст проявляется анимацией (opacity: 0), поверх слайда тёмная подложка */
.bvi-active #fh5co-hero,
.bvi-active #fh5co-hero .flexslider .slides li,
.bvi-active #fh5co-hero .flexslider .slider-text {
	height: auto !important;
	min-height: 0 !important;
	margin-top: 0 !important;
}
.bvi-active #fh5co-hero .flexslider .slider-text { opacity: 1 !important; display: block !important; padding: 30px 0; }
.bvi-active #fh5co-hero .flexslider .slider-text > .slider-text-inner { display: block !important; min-height: 0 !important; }
.bvi-active #fh5co-hero .flexslider .slides li:after,
.bvi-active .overlay-gradient,
.bvi-active .flex-direction-nav,
.bvi-active .flex-control-nav { display: none !important; }


/* Ссылка включения в шапке — в стиле верхней полосы темы (.site, .num) */
.fh5co-nav .top .bvi-open-wrap {
	display: inline-block;
	margin: 0;
	padding: 5px 15px;
	border-right: 1px solid rgba(0, 0, 0, .08);
}
.bvi-open {
	font-size: 14px;
	font-weight: 300;
	color: #909090;
	white-space: nowrap;
}
.bvi-open:hover { color: #9a0061; }
.bvi-open .bvi-eye { margin-right: 6px; }
@media (max-width: 767px) {
	.fh5co-nav .top .bvi-open-wrap { padding: 5px 10px; }
	/* на телефоне — только значок, подпись остаётся в aria-label */
	.bvi-open { font-size: 0; }
	.bvi-open .bvi-eye { font-size: 18px; margin-right: 0; }
}
.bvi-active .bvi-open { font-size: inherit; }
