/* ИТС: версия для слабовидящих, карта сайта и поиск (118н прил. 2 п. 2; практика ГОСТ Р 52872-2019). 29.10.2026.
   Ставится ПОСЛЕ its.css и its-motion.css. Режим включает строчный скрипт в <head>: класс .lv и атрибуты на <html>
   (data-lv-fs 1-3, data-lv-scheme bw|wb|blue, data-lv-img on|off, data-lv-sp 1-2), кнопки в js/its-a11y.js.
   Сделано отдельным файлом, чтобы переносить на остальные медсайты парка (у всех пятерых этого нет). */

/* текст только для экранного диктора */
.vh{position:absolute !important;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---------- полоска над шапкой: версия для слабовидящих, карта сайта, поиск ---------- */
.tbar{background:var(--bg-soft);border-bottom:1px solid var(--line);font-size:13.5px;line-height:1.3}
.tbar__in{display:flex;align-items:center;gap:6px 22px;min-height:40px}
.tbar__lv{display:inline-flex;align-items:center;gap:8px;font:inherit;font-weight:700;color:var(--ink-2);background:none;border:0;padding:4px 0;min-height:40px;cursor:pointer}
.tbar__lv svg{width:20px;height:20px;color:var(--green);flex:none}
.tbar__lv:hover{color:var(--green)}
.tbar__map{margin-left:auto;color:var(--ink-2);font-weight:600;text-decoration:none}
.tbar__map:hover{color:var(--green);text-decoration:underline}
/* рамка поля поиска 3.1:1 к белому (линтер gate 40), иначе поле видно только по подписи */
.tsearch{display:flex;align-items:center;height:32px;padding-left:14px;background:#fff;border:1px solid #76937f;border-radius:999px}
.tsearch:focus-within{border-color:var(--green-dk);box-shadow:0 0 0 2px #cfe3d6}
.tsearch input{width:180px;border:0;background:none;font:inherit;color:var(--ink);outline:none;padding:0}
.tsearch input::placeholder{color:var(--muted)}
.tsearch button{width:36px;height:30px;border:0;background:none;color:var(--ink-2);display:grid;place-items:center;cursor:pointer;padding:0}
.tsearch button:hover{color:var(--green)}
.tsearch svg{width:18px;height:18px}
@media (max-width:620px){
  .tbar__map{display:none}
  .tsearch{margin-left:auto;border:0;background:none;padding-left:0;height:40px}
  .tsearch input{display:none}          /* на телефоне значок ведёт на страницу поиска, там поле во всю ширину */
  .tsearch button{width:40px;height:40px}
  .tsearch svg{width:22px;height:22px}
}
/* первый экран на высоту окна: вычесть полоску */
@media (min-width:901px){
  .hero{min-height:calc(100svh - var(--hdr) - 54px - 41px)}
  .hshow__frame{max-height:calc(100svh - var(--hdr) - 211px)}
}

/* ---------- страница поиска ---------- */
.sform label{display:block;font-weight:700;margin-bottom:8px}
.sform__row{display:flex;flex-wrap:wrap;gap:10px}
.sform input{flex:1 1 260px;min-width:0;min-height:50px;padding:10px 16px;border:1px solid #cfdcd3;border-radius:14px;background:#fff;font:inherit;font-size:17px;color:var(--ink)}
.sform input:focus{outline:3px solid var(--sage);outline-offset:1px;border-color:var(--green)}
.sres__count{margin:24px 0 6px;color:var(--muted)}
.doc .sres{list-style:none;padding:0;margin:0}
.doc .sres li{margin:0;padding:16px 0;border-bottom:1px solid var(--line)}
.sres a{font-weight:700;font-size:18px}
.sres p{margin:4px 0 0}
.sres .sres__p{font-size:13.5px;color:var(--muted);margin:2px 0 0}
.sres mark{background:var(--sage-soft);color:inherit;border-radius:3px;padding:0;box-shadow:0 0 0 2px var(--sage-soft)}

/* ---------- карта сайта ---------- */
.doc .smap{list-style:none;padding:0;margin:8px 0 24px}
.doc .smap>li{margin:0 0 18px}
.smap>li>a{font-weight:700;font-size:18px}
.doc .smap ul{list-style:none;margin:8px 0 0;padding:0 0 0 18px;border-left:2px solid var(--sage)}
.doc .smap ul li{margin:0 0 6px}

/* ---------- панель настроек (видна только в версии для слабовидящих) ---------- */
.lvbar{display:none}
html.lv .lvbar{display:block;border-top:2px solid}
html.lv .tbar__lv{display:none}
.lvbar__in{display:flex;flex-wrap:wrap;align-items:center;gap:10px 22px;padding-top:10px;padding-bottom:12px}
.lvbar__g{display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px}
.lvbar__g>span{font-weight:700;margin-right:4px}
.lvbar button{min-width:44px;min-height:44px;padding:4px 12px;border:2px solid;border-radius:10px;font:inherit;font-weight:700;cursor:pointer;background:none}
html.lv .lvbar button[aria-pressed="true"]{outline:4px solid var(--lv-fg);outline-offset:2px;text-decoration:underline}
html.lv .lvbar .lvbar__a2{font-size:calc(var(--lv-fs) * 1.25) !important}
html.lv .lvbar .lvbar__a3{font-size:calc(var(--lv-fs) * 1.5) !important}
html.lv .lvbar .lvbar__c--bw{color:#000 !important;background-color:#fff !important;border-color:#000 !important}
html.lv .lvbar .lvbar__c--wb{color:#fff !important;background-color:#000 !important;border-color:#fff !important;box-shadow:0 0 0 2px #000 !important}
html.lv .lvbar .lvbar__c--blue{color:#063462 !important;background-color:#9dd1ff !important;border-color:#063462 !important}
.lvbar__off{display:inline-flex;align-items:center;gap:8px;margin-left:auto}
.lvbar__off svg{width:22px;height:22px}

/* ---------- версия для слабовидящих ---------- */
html.lv{--lv-fs:20px;--lv-fg:#000;--lv-bg:#fff}
html.lv[data-lv-fs="2"]{--lv-fs:24px}
html.lv[data-lv-fs="3"]{--lv-fs:28px}
html.lv[data-lv-scheme="wb"]{--lv-fg:#fff;--lv-bg:#000}
html.lv[data-lv-scheme="blue"]{--lv-fg:#063462;--lv-bg:#9dd1ff}

/* Шрифт: один крупный кегль на весь текст, заголовки крупнее; длинные слова переносятся, а не вылезают за край */
html.lv body{font-size:var(--lv-fs);line-height:1.5}
html.lv body :is(p,li,a,span,td,th,label,input,textarea,select,button,small,figcaption,dd,dt,b,strong,em,i,summary,h4,blockquote,mark){font-size:var(--lv-fs) !important;line-height:1.5 !important}
html.lv body h1{font-size:calc(var(--lv-fs) * 1.6) !important;line-height:1.2 !important}
html.lv body h2{font-size:calc(var(--lv-fs) * 1.35) !important;line-height:1.25 !important}
html.lv body h3{font-size:calc(var(--lv-fs) * 1.15) !important;line-height:1.3 !important}
html.lv body :is(h1,h2,h3) *{font-size:inherit !important;line-height:inherit !important}
html.lv body :is(h1,h2,h3,p,li,a,td,th,span){overflow-wrap:break-word;hyphens:auto}
html.lv[data-lv-sp="2"] body *{letter-spacing:.08em !important;word-spacing:.16em !important}

/* Цвета: три схемы по ГОСТ Р 52872-2019, всё в два цвета; фото остаются как есть */
html.lv,html.lv body{background:var(--lv-bg) !important;color:var(--lv-fg) !important}
html.lv body *:not(svg):not(svg *):not(img):not(canvas){color:var(--lv-fg) !important;background-color:var(--lv-bg) !important;background-image:none !important;border-color:var(--lv-fg) !important;box-shadow:none !important;text-shadow:none !important}
html.lv body svg{color:var(--lv-fg)}
html.lv body a{text-decoration:underline !important;text-underline-offset:4px}
html.lv body :is(.btn,input,textarea,select,.ptabs button,.hshow__btn,.hshow__pp){border:2px solid var(--lv-fg) !important}
html.lv body ::placeholder{color:var(--lv-fg) !important;opacity:.75}
html.lv :focus-visible{outline:4px solid var(--lv-fg) !important;outline-offset:3px !important}
html.lv .hshow__dots button::before{background-color:var(--lv-fg) !important;opacity:.4}
html.lv .hshow__dots button[aria-current="true"]::before{opacity:1}

/* Без движения: анимации, переходы, бегущая строка, фоновые линии, вращающаяся модель и точки курьера убраны */
html.lv *,html.lv *::before,html.lv *::after{animation:none !important;transition:none !important}
html.lv{scroll-behavior:auto !important}
html.lv .rv{opacity:1 !important;transform:none !important;clip-path:none !important}
html.lv :is(.mq,.hero__bg,.crown,.deliv__map .dot,.deliv__map .hub-ring){display:none !important}
html.lv :is(.sp-card,.sp-track,.sp-fade){filter:none !important}
html.lv .sp-deck>.sp-card{position:relative;inset:auto}
html.lv .sp-stage{position:static;height:auto}
html.lv .hshow__s img{transform:none !important}
html.lv .gal button{transform:none !important}

/* Шапка: не прилипает, все разделы видны строкой (без меню-бургера), телефон и заявка на месте */
html.lv .hdr{position:static;height:auto}
html.lv .hdr::before{display:none}
html.lv .hdr__in{flex-wrap:wrap;height:auto;padding-top:12px;padding-bottom:12px;gap:10px 20px}
html.lv .nav{display:flex !important;position:static !important;order:3;flex-direction:row;flex-wrap:wrap;width:100%;margin:0;padding:0;gap:4px 10px;border:0}
html.lv .nav a{padding:6px 4px !important;border:0 !important;border-radius:0}
html.lv .nav .nav__tel{display:none !important}
html.lv .burger{display:none !important}
html.lv .hdr__tel{display:inline !important}
html.lv .hdr .btn{display:inline-flex !important;min-height:48px}
html.lv .brand img{width:44px;height:44px}
/* телефон: 28 px с увеличенным интервалом не влезают строкой (было 552 px на 390), всё в шапке переносится */
@media (max-width:620px){
  html.lv .brand{flex:1 1 100%;min-width:0}
  html.lv .brand>span{min-width:0}
  html.lv :is(.hdr__tel,.hdr .btn,.brand span,.brand b){white-space:normal !important;overflow-wrap:anywhere}
  html.lv .hdr .btn{flex:1 1 100%;text-align:center;height:auto}
  html.lv body :is(a,span,b,strong,button,p,li,h1,h2,h3,td,th,label,figcaption){overflow-wrap:anywhere}
}

/* Плашка в H1 (ключ для поиска) в этом режиме обычным текстом, не размером заголовка */
html.lv .hero .hero__badge{display:block;font-size:var(--lv-fs) !important;padding:0;margin-bottom:12px;border:0;border-radius:0}
html.lv .hero__badge i{display:none}
/* Баннер cookie крупным шрифтом закрывал полэкрана на телефоне: в конце страницы, не поверх.
   Пока не нажали «Принять», карта и счётчики Яндекса не грузятся (как и при «Отклонить») */
html.lv .ck{position:static !important;inset:auto !important;max-width:none !important;margin:0 !important;border-width:2px 0 0 !important;border-radius:0 !important}
html.lv .ck__btns{flex-wrap:wrap}
@media (max-width:620px){
  html.lv .ck .btn{flex:1 1 100%}
  html.lv .lvbar__off{margin-left:0;text-align:left}
}

/* Подвал: реквизиты рядом с логотипом не помещались на 768 при 28 px с интервалом (802 px), уходят под логотип */
html.lv .ftr__org{flex-wrap:wrap}
html.lv .ftr__org .ftr__req{flex:1 1 100%;min-width:0;overflow-wrap:anywhere}

/* Сетки: крупный шрифт не помещается в 3-4 колонки */
html.lv .hero{min-height:0 !important;display:block}
html.lv .facts4{grid-template-columns:repeat(auto-fit,minmax(260px,1fr)) !important}
html.lv .fact{border-right:0 !important;margin-right:0 !important}
html.lv .g3{grid-template-columns:repeat(auto-fit,minmax(300px,1fr)) !important}
@media (max-width:900px){html.lv .hero__grid{grid-template-columns:minmax(0,1fr) !important}}

/* Изображения скрыты: фото, карты, лицензии и карусель; текст о них остаётся */
html.lv[data-lv-img="off"] :is(img,picture,canvas,.hshow,.gal,.deliv__map,.cmap,.lic__pages){display:none !important}
