/* Пакет правок 28.11.2026: меню категорий, «Поделиться», вкладки-ссылки, иллюстрации шапки 4:3, инфографика, списки, таблицы, формы, cookie-плашка */

/* --- шапка: выпадающие меню не обрезаются --- */
.top.in{overflow-x:clip;overflow-y:visible;isolation:auto}
.top.in .lava{border-radius:inherit}
.top.in .hdr{position:relative;z-index:6}
.top.in .phead{z-index:3}
.alert{position:relative;z-index:1}
@media (min-width:768px){.top.in .nav-tg{min-height:36px}}

/* --- меню категорий в шапке --- */
.nav-has{position:relative;display:flex;align-items:center}
.nav-has>a{flex:1 1 auto}
.nav-tg{flex:none;width:36px;min-height:48px;margin-left:-14px;display:inline-flex;align-items:center;justify-content:center;color:#fff;border-radius:10px;cursor:pointer}
.nav-tg:hover{background:var(--glass)}
.nav-chev{width:16px;height:16px;transition:transform .2s var(--ease)}
.nav-has.open .nav-chev{transform:rotate(180deg)}
.nav .nav-sub{display:none;flex-direction:column;gap:0;margin:0;position:absolute;left:0;top:100%;z-index:30;min-width:280px;padding:8px;background:#fff;border-radius:16px;box-shadow:0 18px 44px -12px rgba(7,27,61,.45)}
.nav .nav-sub a{min-height:44px;padding:0 14px;border-radius:10px;color:var(--ink);font-weight:700;background:transparent}
.nav .nav-sub a:hover,.nav .nav-sub a:focus-visible{background:var(--tint);color:var(--navy)}
.nav-has.open .nav-sub{display:flex}
@media (hover:hover) and (min-width:1024px){.nav-has:hover .nav-sub{display:flex}.nav-has:hover .nav-chev{transform:rotate(180deg)}}
@media (max-width:1023px){
  .nav-has{flex-wrap:wrap}
  .nav-tg{width:48px;margin-left:4px;background:var(--glass)}
  .nav .nav-sub{position:static;flex:0 0 100%;min-width:0;margin:6px 0 2px;padding:6px;background:rgba(255,255,255,.08);box-shadow:none}
  .nav .nav-sub a{color:#fff;background:transparent}
  .nav .nav-sub a:hover,.nav .nav-sub a:focus-visible{background:var(--glass-2);color:#fff}
}
html[data-scheme] .nav .nav-sub{background:var(--bg);border:2px solid var(--ink)}
html[data-scheme] .nav .nav-sub a{color:var(--ink)}
html[data-scheme] .nav-tg{color:var(--ink)}

/* --- «Поделиться» (выпадающий список), «Распечатать», «Сохранить PDF» в шапке --- */
.pm-acts{display:inline-flex;align-items:center;gap:16px;flex-wrap:wrap}
.pm-acts>.pm-act,.pm-acts .pmeta-share{margin:0}
.pmeta a.pm-act,.pmeta a.pm-act:hover{text-decoration:none;border-bottom:0;color:var(--sky)}
.pmeta a.pm-act:hover{color:#fff}
.shr{position:relative;display:inline-flex}
.shr-menu{position:absolute;top:calc(100% + 8px);right:0;z-index:40;display:flex;flex-direction:row;align-items:center;gap:8px;width:max-content;min-width:0;margin:0;padding:8px;list-style:none;background:#fff;color:var(--ink);border-radius:16px;box-shadow:0 18px 44px -12px rgba(7,27,61,.5)}
.shr-menu[hidden]{display:none}
.pmeta-share-dt .shr-menu{right:auto;left:0}
.shr-menu li{flex:none;margin:0;padding:0;list-style:none}
.shr-item{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-radius:10px;font:700 1rem/1.2 var(--f);color:var(--ink);cursor:pointer;background:none;border:0}
.shr-item .i,.shr-item svg{width:20px;height:20px;flex:none;color:var(--navy)}
.shr-item>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.shr-item:hover,.shr-item:focus-visible{background:var(--tint);color:var(--navy)}
.shr-item.is-copied,.shr-item.is-copied svg{color:var(--navy)}
html[data-scheme] .shr-menu{background:var(--bg);border:2px solid var(--ink)}
@media (max-width:767px){.shr-menu{right:0;left:auto}.pmeta-share-dt .shr-menu{left:0;right:auto}}
.shr-copied{position:absolute;top:calc(100% + 8px);right:0;z-index:41;padding:8px 12px;border-radius:8px;background:var(--navy);color:#fff;font:700 .875rem/1.2 var(--f);white-space:nowrap;box-shadow:0 18px 44px -12px rgba(7,27,61,.5)}
.pmeta-share-dt .shr-copied{right:auto;left:0}
.shr-copied[hidden]{display:none}

/* звезды в шапке: до оценки приглушены, после оценки закрашиваются до выбранного значения */
.js-hstars .star-i{color:rgba(185,199,222,.45)}
.js-hstars .star-i.on{color:#fbbf24}

/* --- вкладки-ссылки /instrukcii/ --- */
.ctabs a{flex:none;display:flex;align-items:center;gap:8px;min-height:48px;padding:0 16px;border-radius:14px;font-weight:700;color:var(--muted);white-space:nowrap;text-decoration:none;transition:background .2s,color .2s}
.ctabs a:hover{color:var(--navy);background:var(--mist)}
.ctabs a[aria-current="page"]{background:var(--navy);color:#fff}
.ctabs a[aria-current="page"] small{opacity:.85}
.ctabs a:focus-visible{outline:3px solid var(--navy-2);outline-offset:2px}
.pcat-page .ctabs{margin-top:8px}
.cat-cnt{margin:8px 0 24px;color:var(--muted);font-size:1.0625rem}
.cat-all{margin-top:32px;font-weight:700}
.rows-full{grid-column:1/-1}
.rows-w.rows-full .rows{display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(min(300px,100%),1fr))}

/* --- иллюстрация в шапке: 4:3, шапка на всю ширину если картинки нет --- */
.ph-vis.ph-vis-43{--tz:#dae2ef;aspect-ratio:4/3;width:min(100%,360px);height:auto;border-radius:32px}
.ph-vis.ph-vis-43 picture{display:block;width:100%;height:100%}
.ph-vis.ph-vis-43 img{width:100%;height:100%;object-fit:cover}
@media (min-width:768px) and (max-width:980px){.ph-vis.ph-vis-43{width:200px;height:auto;margin-top:0}}
@media (max-width:767px){.ph-vis.ph-vis-43{display:none}}

/* --- инфографика рядом с пошаговым списком --- */
.ig{margin:20px 0 28px;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff}
.ig picture,.ig img{display:block;width:100%;height:auto}
.ig figcaption{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;padding:14px 18px;background:var(--tint);color:var(--muted);font-size:.9375rem;line-height:1.4}
.ig .ig-dl{min-height:44px;padding:0 20px;flex:none;width:auto;margin:0}
@media (max-width:767px){.ig .ig-dl{width:100%}}

/* --- маркеры списков: центр маркера на центре первой строки, единые размеры --- */
.prose ul:not([class])>li,.pp-list>li{line-height:1.6;padding-left:32px}
.prose ul:not([class])>li::before,.pp-list>li::before{left:7px;top:calc((1.6em - 10px) / 2);width:10px;height:10px}
.prose ol:not([class])>li{line-height:1.6;min-height:28px;padding-left:44px}
.prose ol:not([class])>li::before{top:calc((1.6em - 28px) / 2);width:28px;height:28px;font-size:.875rem;line-height:1}
.when li{line-height:1.6;align-items:flex-start}
.when li::before{width:10px;height:10px;margin-top:calc((1.6em - 10px) / 2)}
.prose .src ul>li::before{content:none}

/* --- таблицы: заголовок отдельным h2 над таблицей --- */
.tbl-h{margin:32px 0 0;font-size:1.5rem;line-height:1.25;color:var(--navy);font-weight:700}
.tbl-h+.tbl{margin-top:12px}

/* --- кнопки --- */
.btn-ghost{background:transparent;color:var(--navy);border:2px solid var(--line)}
.btn-ghost:hover{background:var(--tint)}
.lnk-btn,.go-inline{display:inline;min-height:0;padding:0;background:none;border:0;font:inherit;font-weight:700;color:var(--navy);text-decoration:underline;text-underline-offset:3px;cursor:pointer;border-radius:4px}

/* --- уведомление cookies: одна кнопка «Понятно», отступы по сетке 8px --- */
.ck{display:flex;align-items:center;gap:16px 24px;width:min(880px,calc(100% - 32px));bottom:16px;padding:16px 24px;border-radius:16px;line-height:24px}
.ck .ck-txt{flex:1 1 auto;min-width:0}
.ck .ck-txt a{white-space:nowrap}
.ck p{margin:0;flex:none;line-height:24px}
html[data-fs] .ck,html[data-fs] .ck p{line-height:1.5}
html[data-fs] .ck .ck-txt a{white-space:normal}
.ck .ck-h{margin:0;font-weight:700;font-size:1.0625rem}
.ck .ck-btns{display:flex;flex:none;margin:0}
.ck .ck-btns .btn{min-height:48px;padding:0 24px;border-radius:16px;font-size:1rem}
/* поп-ап поверх дизайна: fixed внизу экрана, страница под ним не меняется */
/* до 767px: компактная полоса внизу экрана, текст слева, «Понятно» справа в зоне большого пальца */
@media (max-width:767px){.ck{left:0;right:0;bottom:0;width:auto;flex-direction:row;align-items:center;transform:none;gap:16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));border-radius:16px 16px 0 0;max-height:100vh;overflow:auto;font-size:.875rem;line-height:20px}
 .ck p{line-height:20px}.ck .ck-h{font-size:.9375rem}.ck .ck-txt a{white-space:normal}
 .ck .ck-btns .btn{width:auto;min-height:48px;padding:0 16px}
 html[data-fs] .ck{flex-direction:column;align-items:stretch;gap:12px}html[data-fs] .ck .ck-btns .btn{width:100%}}
.ck.ck-off{display:none}

/* --- формы --- */
.pf{display:grid;gap:16px;max-width:44rem;margin-top:16px}
.pf-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:767px){.pf-grid{grid-template-columns:minmax(0,1fr)}}
.pf-row{display:grid;gap:6px}
.pf label{font-weight:700;color:var(--ink)}
.pf input[type=text],.pf input[type=url],.pf select,.pf textarea{width:100%;min-height:48px;padding:12px 14px;font:400 1.0625rem/1.4 var(--f);color:var(--ink);background:#fff;border:2px solid #b8c4d8;border-radius:12px}
.pf textarea{resize:vertical;min-height:120px}
.pf input[readonly]{background:var(--mist);color:var(--muted)}
.pf input:focus-visible,.pf select:focus-visible,.pf textarea:focus-visible{outline:3px solid var(--navy-2);outline-offset:2px;border-color:var(--navy-2)}
.pf [aria-invalid="true"]{border-color:var(--red)}
.pf-opt,.pf-hint,.pf-note{color:var(--muted);font-size:.9375rem;font-weight:400}
.pf-check{display:flex;gap:12px;align-items:flex-start;line-height:1.45}
.pf-check input{flex:none;width:24px;height:24px;margin-top:1px;accent-color:var(--navy)}
.pf-check label{font-weight:400}
.pf-act{display:flex;flex-wrap:wrap;gap:10px}
.pf-status{min-height:1.5em;font-weight:700}
.pf-status.is-ok{color:#13653a}
.pf-status.is-err{color:var(--red-2)}
.pf-hp{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.pdlg{width:min(560px,calc(100% - 24px));max-height:calc(100vh - 24px);padding:0;border:0;border-radius:24px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(7,27,61,.4);overflow:auto}
.pdlg::backdrop{background:rgba(7,27,61,.6)}
.pdlg-in{padding:24px}
.pdlg-top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.pdlg-top h2{font-size:1.5rem;color:var(--navy)}
.pdlg-x{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;color:var(--navy);cursor:pointer;background:none;border:0}
.pdlg-x:hover{background:var(--tint)}
.pdlg-x svg{width:22px;height:22px}
.fb-report{display:inline-flex;align-items:center;min-height:44px;padding:0 6px;background:none;border:0;font:inherit;font-weight:700;color:var(--navy);text-decoration:underline;text-underline-offset:3px;cursor:pointer}

/* --- #feedback: единая оценка --- */
.fb-top-one{display:block}
.fb-top-one .fb-rate-col{max-width:none}

@media print{
  .ig,.shr,.pm-acts,.ck,.pdlg,.ftr-ck,.pcat-page .ctabs{display:none!important}
}

/* --- две кнопки 112 и 103 в .alert и .when --- */
.call-btns{display:flex;align-items:stretch;gap:8px}
.call-btns .btn{flex:1 1 calc((100% - 8px) / 2);min-width:0;white-space:nowrap;box-sizing:border-box}
.alert .call-btns{flex:none}
.when .call-btns{margin-top:24px}
.when .call-btns .btn{margin-top:0;width:auto}
@media (max-width:767px){
  .alert .call-btns{flex:1 1 100%;width:100%}
  .alert .call-btns .btn{flex:1 1 calc((100% - 8px) / 2);min-height:54px;padding:0 8px;gap:8px;font-size:1rem}
  .alert .call-btns .btn .i{width:16px;height:16px}
  .when .call-btns .btn{flex:1 1 calc((100% - 8px) / 2);width:auto;padding:0 8px;gap:8px;font-size:1rem}
  .when .call-btns .btn .i{width:16px;height:16px}
}

/* QR tel:112 — только ПК (hover + точный указатель + ширина >=1024) */
.qr-112{display:none}
@media (hover:hover) and (pointer:fine) and (min-width:1024px){
  .qr-112{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0;flex:none;max-width:160px}
  .qr-112 img{display:block;width:128px;height:128px;background:#fff;border-radius:8px}
  .qr-112 figcaption{margin:0;font-size:.75rem;line-height:1.35;font-weight:700;text-align:center}
  .call-with-qr{display:flex;align-items:center;gap:16px;flex:none;min-width:0}
  .alert .call-with-qr{margin-left:auto}
  .when .call-with-qr{margin-top:24px}
  .when .call-with-qr .call-btns{margin-top:0}
  .sos .qr-112{margin-top:24px;align-self:center;max-width:200px}
}
@media print{.qr-112{display:none!important}}

/* H3 перед инфографикой-памяткой, сетка 8px */
.ig-h{font-size:1.375rem;line-height:1.3;font-weight:700;color:var(--navy);letter-spacing:-.01em;margin:16px 0 8px}
.ig-h+.ig{margin-top:0}
@media (max-width:767px){.ig-h{font-size:1.25rem;margin:16px 0 8px}}

/* Длинные заголовки теста переносятся, не ломают блок */
.quiz h2{overflow-wrap:break-word;word-wrap:break-word;max-width:100%}
