/* 15.11.2026 Версия для слабовидящих (приказ Минздрава № 118н, прил. 2, п. 2) — общий файл для filonov.clinic и filonov.info.
   Подключён в /bitrix/templates/.default/header.php (все шаблоны .clinic) и /bitrix/templates/cosmo/header.php (.info). Откат: удалить строки подключения fx-a11y.css/fx-a11y.js в этих двух файлах.
   :not(#_) повторяется, чтобы правила режима были сильнее правил сайта (у тех встречаются #id и !important). */

/* ---------- ссылка в подвале, колонка «Пациентам» (вид как у соседних ссылок) ---------- */
.fxa-open{cursor:pointer}
.fxa-open:focus-visible,.fxa-bar button:focus-visible{outline:3px solid #f2a33a;outline-offset:3px}

/* ---------- очки и лупа (поиск) в шапке: на компьютере и планшете — в конце строки меню, на телефоне — слева от кнопки меню; без рамок ---------- */
.fxa-tools{display:flex;align-items:center;gap:6px}
html body header .fxa-tools :is(.fxa-ico,.fxa-find){display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;margin:0;padding:0;border:0;border-radius:6px;background:none;color:#222e5a;cursor:pointer;text-decoration:none!important;line-height:1}
html body header .fxa-tools svg{display:block;flex:0 0 auto}
html body header .fxa-tools .fxa-find svg{transform:translateY(2px)}  /* круг лупы на одной высоте с линзами очков */
header.fx-new .fxa-tools :is(.fxa-ico,.fxa-find):hover{color:#3aa8d8}
header.fi-new .fxa-tools :is(.fxa-ico,.fxa-find):hover{color:#e97569}
html body header .fxa-tools :is(.fxa-ico,.fxa-find):focus-visible{outline:3px solid #f2a33a;outline-offset:1px}
.fxa-tools-m{display:none}
@media (min-width:768px){
	html header.fx-new #navbar.navbar-collapse{display:flex!important;align-items:center}
	html header.fx-new #navbar ul.nav.navbar-right{flex:1 1 auto;width:auto!important}
	header.fx-new .fxa-tools-d{flex:0 0 auto;margin-left:40px;margin-right:-6px}
	header.fi-new .fxa-tools-d{margin-left:28px;margin-right:-6px}
}
@media (max-width:767px){
	.fxa-tools-d{display:none!important}
	.fxa-tools-m{display:flex;position:absolute;gap:0}
	header.fx-new .fxa-tools-m{top:16px;right:63px;height:34px}
	header.fi-new .fxa-tools-m{top:17px;right:63px;height:42px}
	html body header .fxa-tools-m :is(.fxa-ico,.fxa-find){width:34px;height:100%}
}
/* телефоны до 400px: логотип чуть меньше, чтобы значки не стояли вплотную */
@media (max-width:400px){
	html header.fx-new .fx-top .fx-logo2{--k:.38}
	html header.fi-new .fi-logo{width:205px;height:42px}
}

/* ---------- панель настроек (только в режиме для слабовидящих) ---------- */
.fxa-bar,.fxa-bar *{box-sizing:border-box;font-family:Arial,Helvetica,sans-serif!important;letter-spacing:0!important;word-spacing:0!important;text-transform:none!important;text-shadow:none!important}
.fxa-bar{position:relative;z-index:2;background:#fff!important;color:#000!important;border-bottom:3px solid #000;font-size:16px;line-height:1.25}
.fxa-in{max-width:1170px;margin:0 auto;padding:14px 15px 16px;display:flex;flex-wrap:wrap;align-items:flex-end;gap:14px 22px}
.fxa-g{display:flex;flex-direction:column;gap:7px;margin:0;padding:0;border:0}
.fxa-l{font-size:15px;font-weight:700;color:#000!important;background:none!important}
.fxa-o{display:flex;flex-wrap:wrap;gap:6px}
.fxa-bar button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;height:44px;margin:0;padding:0 12px;border:2px solid #000!important;border-radius:6px;background:#fff!important;color:#000!important;font-size:15px;font-weight:400;line-height:1;cursor:pointer;box-shadow:none!important}
.fxa-bar button[aria-pressed="true"]{background:#000!important;color:#fff!important;font-weight:700}
.fxa-bar .fxa-a1{font-size:16px}
.fxa-bar .fxa-a2{font-size:21px}
.fxa-bar .fxa-a3{font-size:27px}
.fxa-bar .fxa-sw{font-weight:700;padding:0}
.fxa-bar .fxa-sw1,.fxa-bar .fxa-sw1[aria-pressed="true"]{background:#fff!important;color:#000!important}
.fxa-bar .fxa-sw2,.fxa-bar .fxa-sw2[aria-pressed="true"]{background:#000!important;color:#fff!important}
.fxa-bar .fxa-sw3,.fxa-bar .fxa-sw3[aria-pressed="true"]{background:#9dd1ff!important;color:#063462!important}
.fxa-bar .fxa-sw[aria-pressed="true"]{box-shadow:0 0 0 3px #fff,0 0 0 6px #000!important}
.fxa-bar .fxa-more{display:none}
.fxa-head{flex:1 1 100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 0 12px;border-bottom:1px solid #000}
.fxa-title{display:inline-flex;align-items:center;gap:10px;font-size:17px;font-weight:700;color:#000!important}
.fxa-title svg{width:30px;height:14px;flex:0 0 auto}
.fxa-bar .fxa-exit{font-weight:700}
@media (max-width:767px){
	.fxa-in{gap:12px 16px;padding:12px 15px 14px;align-items:flex-end}
	.fxa-g{flex:1 1 100%}
	.fxa-g0{flex:0 0 auto}
	.fxa-bar button{height:44px;min-width:44px;padding:0 11px;font-size:15px}
	.fxa-bar .fxa-more{display:inline-flex;margin-left:auto}
	.fxa-head{order:10;padding:0;border:0}
	.fxa-title{display:none}
	.fxa-bar .fxa-exit{flex:1 1 100%}
	.fxa-bar:not(.fxa-x) .fxa-g:not(.fxa-g0){display:none}
}

/* ---------- шапка в режиме: адрес и часы отдельной строкой, меню переносится ---------- */
html.fxa:not(#_):not(#_):not(#_) header.fx-new .fx-top,
html.fxa:not(#_):not(#_):not(#_) header.fi-new .fi-top{flex-wrap:wrap;row-gap:14px}
@media (min-width:768px){
	html.fxa:not(#_):not(#_):not(#_) header.fx-new .fx-top, html.fxa:not(#_):not(#_):not(#_) header.fi-new .fi-top{row-gap:7px}
	html.fxa:not(#_):not(#_):not(#_) header.fx-new .fx-top::after, html.fxa:not(#_):not(#_):not(#_) header.fi-new .fi-top::after{content:"";display:block;order:2;flex:0 0 100%;height:0}
	html.fxa:not(#_):not(#_):not(#_) header :is(.fx-top>.header__block-logo,.fi-logo){order:1}
	html.fxa:not(#_):not(#_):not(#_) header :is(.fx-phone,.fi-phone){order:1;margin-left:auto}
	html.fxa:not(#_):not(#_):not(#_) header :is(.fx-info,.fi-info){order:3!important;flex:1 1 0!important;min-width:0;width:auto}
	html.fxa:not(#_):not(#_):not(#_) header :is(.fx-btn,.fi-btn){order:4}
}
html.fxa:not(#_):not(#_):not(#_) header :is(.fx-info,.fi-info){display:block;order:10;flex:1 1 100%;grid-column:1/-1;text-align:left}
html.fxa:not(#_):not(#_):not(#_) header :is(.fx-info,.fi-info) br{display:none}
html.fxa:not(#_):not(#_):not(#_) header :is(.fx-info,.fi-info) b::after{content:" · "}
html.fxa:not(#_):not(#_):not(#_) header.fx-new #navbar ul.nav.navbar-right{flex-wrap:wrap;justify-content:flex-start;column-gap:36px}
html.fxa:not(#_):not(#_):not(#_) header.fi-new .fi-nav{flex-wrap:wrap;justify-content:flex-start;column-gap:36px}
@media (max-width:767px){
	html.fxa:not(#_):not(#_):not(#_) header :is(.fx-phone,.fi-phone){grid-column:1/-1;margin-left:0}
	html.fxa:not(#_):not(#_):not(#_) header :is(.fx-btn,.fi-btn){grid-column:1/-1;justify-self:start;margin-left:0}
}

/* ---------- первый экран главной: высота по содержимому, чтобы крупный текст не наезжал на шапку ---------- */
html.fxa:not(#_):not(#_):not(#_) body .fx-hero{height:auto!important;min-height:0!important;padding:56px 0 64px!important}
html.fxa:not(#_):not(#_):not(#_) body .fx-hero .fx-hero-in{margin-top:0!important}
html.fxa:not(#_):not(#_):not(#_) body .fx-hero::before, html.fxa:not(#_):not(#_):not(#_) body .fx-scroll{display:none!important}
/* карточки врачей и услуг: высота по тексту */
html.fxa:not(#_):not(#_):not(#_) body .cards__card{height:auto!important;min-height:0!important}

/* ---------- цветовые схемы ---------- */
html.fxa-c1{--fxa-f:#000;--fxa-b:#fff}
html.fxa-c2{--fxa-f:#fff;--fxa-b:#000}
html.fxa-c3{--fxa-f:#063462;--fxa-b:#9dd1ff}
html.fxa-col:not(#_):not(#_):not(#_),
html.fxa-col:not(#_):not(#_):not(#_) body{background:var(--fxa-b)!important}
html.fxa-col:not(#_):not(#_):not(#_) body *:not(svg *):not(.fxa-bar):not(.fxa-bar *){color:var(--fxa-f)!important;background-color:var(--fxa-b)!important;box-shadow:none!important;text-shadow:none!important;-webkit-text-fill-color:currentColor!important}
/* цветные градиенты убираются (их помечает скрипт: data-fxa), фотографии и значки остаются */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body [data-fxa~="g"]{background-image:none!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body [data-fxa~="b"]::before, html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body [data-fxa~="a"]::after{background-image:none!important}
html.fxa-col:not(#_):not(#_):not(#_) body *::before,
html.fxa-col:not(#_):not(#_):not(#_) body *::after{color:var(--fxa-f)!important;box-shadow:none!important;text-shadow:none!important}
/* пустые элементы (подложки, затемнения поверх фото, значки) — без заливки, чтобы не закрывали картинку */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :empty:not(svg *):not(input):not(textarea):not(select):not(.fxa-bar *){background-color:transparent!important}
/* исключения (сильнее общего правила) */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is(input,textarea,select,button,a.fx-btn,a.fi-btn,.btn,.gradient-button,.white-button,.rehabilitation-center-button,.enroll,a[class*="button"],a[class*="btn"],a.ff-go):not(.fxa-bar *):not(.fxa-open):not(.fxa-tools *):not(.fxs *){border:2px solid var(--fxa-f)!important;border-image:none!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is(input,textarea)::placeholder{color:var(--fxa-f)!important;opacity:.75}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is(a,button) svg [fill]:not([fill="none"]){fill:currentColor!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is(a,button) svg [stroke]:not([stroke="none"]){stroke:currentColor!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body .icon-bar{background-color:var(--fxa-f)!important}
/* крестики «закрыть» меню и всплывающих окон .info нарисованы линиями псевдоэлементов */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body :is(.close-menu,.close-page)::before, html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body :is(.close-menu,.close-page)::after{border-color:var(--fxa-f)!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body .hamburger, html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body .hamburger::before, html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body .hamburger::after{border-color:var(--fxa-f)!important}
/* логотип остаётся картинкой, но без цвета; на чёрном — светлый */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is([class*="logo"],[class*="logo"] *){background-color:transparent!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body [class*="logo"]:not([class*="logo"] *){filter:grayscale(1) contrast(1.15)}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is([class*="logo"],.fx-logo2) :is([class*="logo"],.fx-lt){filter:none!important}
html.fxa-c2:not(#_):not(#_):not(#_):not(#_):not(#_) body [class*="logo"]:not([class*="logo"] *){filter:grayscale(1) invert(1) brightness(1.5)}
/* декоративные рисунки (яблоко, бабочка) в режиме цветов не показываются */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_) body :is(.fx-apple,#butterfly,#butterfly-mobile){display:none!important}

/* ---------- изображения ---------- */
html.fxa-im2:not(#_):not(#_):not(#_) body :is(img,video,picture,iframe,[data-fxa~="i"],[aria-hidden="true"] svg,#butterfly,#butterfly-mobile){filter:grayscale(1)!important}
html.fxa-im0:not(#_):not(#_):not(#_) body :is(img,video,picture,iframe:not([src*="yandex"]),.fx-apple,#butterfly,#butterfly-mobile):not([class*="logo"] *){display:none!important}
html.fxa-im0:not(#_):not(#_):not(#_) body *:not(.fxa-bar *):not([class*="logo"]):not([class*="logo"] *){background-image:none!important}

/* ---------- интервал ---------- */
html.fxa-ls1:not(#_):not(#_):not(#_):not(#_):not(#_) body *:not(.fxa-bar):not(.fxa-bar *){letter-spacing:.08em!important;word-spacing:.18em!important}

/* ---------- в режиме: длинные слова переносятся, ничего не обрезается многоточием ---------- */
html.fxa:not(#_):not(#_):not(#_) body *:not(.fxa-bar *){text-overflow:clip!important}
html.fxa:not(#_):not(#_):not(#_) body :is(p,li,h1,h2,h3,h4,h5,h6,a,span,td,th,label,div){overflow-wrap:break-word}

/* ---------- страница поиска /search/ (обёртка section.fx-search и заголовок — в /search/index.php обоих сайтов) ---------- */
html body .fx-search{max-width:1170px;margin:0 auto;padding:44px 15px 84px;box-sizing:border-box;font-family:"Open Sans",sans-serif;color:#222e5a}
html body .fx-search h1{font:400 40px/1.2 "Open Sans",sans-serif;color:#222e5a;margin:0 0 28px;padding:0;text-transform:none;letter-spacing:0;text-align:left}
html body .fx-search table,html body .fx-search tbody{display:block;width:100%;border:0}
html body .fx-search tr{display:flex;gap:10px;width:100%}
html body .fx-search td{display:block;padding:0;border:0}
html body .fx-search td:first-child{flex:1 1 auto;width:auto!important}
html body .fx-search td:nth-child(2){display:none}
html body .fx-search .search-query{width:100%;height:52px;box-sizing:border-box;border:1px solid #cfd6e2;border-radius:6px;padding:0 18px;font:17px "Open Sans",sans-serif;color:#222e5a;background:#fff;outline:none;box-shadow:none}
html body .fx-search .search-button{height:52px;padding:0 32px;border:0;border-radius:6px;color:#fff;font:600 16px "Open Sans",sans-serif;cursor:pointer;-webkit-appearance:none;appearance:none;background:linear-gradient(90deg,#4bb8e6,#9bcf5c)}
html body header.fx-new ~ .fx-search .search-query:focus{border-color:#4bb8e6;box-shadow:0 0 0 3px rgba(75,184,230,.18)}
html body header.fi-new ~ .fx-search .search-button{background:linear-gradient(90deg,#e97569,#f6c994)}
html body header.fi-new ~ .fx-search .search-query:focus{border-color:#e97569;box-shadow:0 0 0 3px rgba(233,117,105,.18)}
html body .fx-search .search-advanced{margin:16px 0 6px;font-size:15px;color:#5b6478}
html body .fx-search .search-item{padding:22px 0;border-bottom:1px solid #e3e7ef}
html body .fx-search .search-item h4{margin:0 0 8px;padding:0;font:400 20px/1.35 "Open Sans",sans-serif;text-transform:none}
html body .fx-search .search-item h4 a{color:#222e5a;text-decoration:none}
html body header.fx-new ~ .fx-search .search-item h4 a:hover{color:#3aa8d8}
html body header.fi-new ~ .fx-search .search-item h4 a:hover{color:#e97569}
html body .fx-search .search-preview{font-size:15px;line-height:1.6;color:#5b6478}
html body .fx-search :is(.search-preview,h4) b{font-weight:600;color:#222e5a}
html body .fx-search .navigation{margin-top:30px;display:flex;flex-wrap:wrap;gap:12px 36px;align-items:center;font-size:15px;color:#5b6478}
html body .fx-search .navigation :is(.ctrl,.arrow){display:none}
html body .fx-search .navigation-arrows a{color:#222e5a;text-decoration:none;border-bottom:1px solid rgba(34,46,90,.3)}
html body .fx-search .navigation .disabled{color:#a9b0bf}
html body .fx-search .navigation-title{margin-right:8px}
html body .fx-search .navigation-pages a,html body .fx-search .nav-current-page{display:inline-block;min-width:34px;height:34px;line-height:34px;text-align:center;border-radius:6px;margin-right:4px;color:#222e5a;text-decoration:none}
html body .fx-search .navigation-pages a:hover{background:#f2f6fa}
html body .fx-search .nav-current-page{background:#222e5a;color:#fff}
@media (max-width:767px){
	html body .fx-search{padding:24px 15px 64px}
	html body .fx-search h1{font-size:28px;line-height:1.3;margin-bottom:20px}
	html body .fx-search tr{flex-wrap:wrap}
	html body .fx-search td:last-child{flex:1 1 100%}
	html body .fx-search .search-button{width:100%}
	html body .fx-search .search-item h4{font-size:18px}
}

/* ---------- выезжающая строка поиска (по лупе в шапке) ---------- */
.fxs{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10100;pointer-events:none;visibility:hidden;transition:visibility 0s linear .25s}
.fxs-dim{position:absolute;top:0;right:0;bottom:0;left:0;background:rgba(34,46,90,.38);opacity:0;transition:opacity .2s}
.fxs-bar{position:absolute;left:0;right:0;top:0;background:#fff;box-shadow:0 8px 30px rgba(34,46,90,.12);transform:translateY(-100%);transition:transform .25s ease-out}
.fxs.fxs-on{pointer-events:auto;visibility:visible;transition-delay:0s}
.fxs.fxs-on .fxs-dim{opacity:1}
.fxs.fxs-on .fxs-bar{transform:none}
.fxs-in{max-width:1170px;margin:0 auto;padding:0 15px;height:96px;display:flex;align-items:center;gap:18px;box-sizing:border-box}
.fxs-ic{display:flex;color:#5b6478;flex:0 0 auto}
html body .fxs .fxs-q{flex:1 1 auto;min-width:0;height:56px;border:0;outline:none;background:none;box-shadow:none;padding:0;margin:0;font:300 28px/1.2 "Open Sans",sans-serif;color:#222e5a;-webkit-appearance:none;appearance:none;border-radius:0}
html body .fxs .fxs-q::placeholder{color:#a9b0bf;opacity:1}
html body .fxs .fxs-q::-webkit-search-cancel-button{display:none}
html body .fxs .fxs-x{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0 -10px 0 0;padding:0;border:0;background:none;color:#5b6478;cursor:pointer;border-radius:6px}
html body .fxs .fxs-x:hover{color:#222e5a}
html body .fxs .fxs-x:focus-visible{outline:3px solid #f2a33a;outline-offset:1px}
@media (max-width:767px){
	.fxs-in{height:68px;gap:12px}
	html body .fxs .fxs-q{font-size:20px;height:44px}
}
@media (prefers-reduced-motion:reduce){ .fxs-dim,.fxs-bar{transition:none} }
/* в цветовых схемах режима для слабовидящих: сама обёртка поиска прозрачная, затемнение полупрозрачное */
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body .fxs{background-color:transparent!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body .fxs .fxs-dim{background-color:rgba(0,0,0,.55)!important}
html.fxa-col:not(#_):not(#_):not(#_):not(#_):not(#_):not(#_) body .fxs .fxs-bar{border-bottom:2px solid var(--fxa-f)!important}

/* ---------- главный заголовок страницы (H1): разметка h1 вместо h2/h3, вид прежний (15.11.2026) ---------- */
/* .clinic: документы, карта сайта, лицензия, официальная информация — как прежний .breadcrumbs-line h2 */
html body .breadcrumbs-line h1.fx-ptitle{float:left;-webkit-hyphens:manual!important;hyphens:manual!important}
@media (min-width:768px){ html body .breadcrumbs-line h1.fx-ptitle{font-size:44px!important} }
/* .info, главная: заголовок первого экрана — как прежний #benefits h2 */
#benefits h1.fx-hero-t{font-weight:300}
#benefits h1.fx-hero-t a{position:relative;text-decoration:none;color:#e97569}
#benefits h1.fx-hero-t a:after{position:absolute;bottom:0;left:0;width:100%;border-bottom:1px dotted #e97569;transition:transform .15s linear,opacity .15s linear;content:""}
#benefits h1.fx-hero-t a:focus:after,#benefits h1.fx-hero-t a:hover:after{transform:translateY(.5em);opacity:0}
@media (max-width:767px){ #benefits h1.fx-hero-t{margin-top:30px;font-size:30px;line-height:40px} }
@media (min-width:768px){ #benefits h1.fx-hero-t{font-size:50px;line-height:60px} }
@media (min-width:1200px){ #benefits h1.fx-hero-t{width:75%;font-size:60px;line-height:70px} }
/* .info, страница врача: имя — как прежний h3 */
html body .main-info__about-text h1.fx-name{font-size:18px;line-height:26px;color:#233467;padding-bottom:16px}
