/* ==========================================================================
   pzh-risk.ru — единый компактный футер (единый источник разметки: parts/footer.html)
   Сквозная ширина 100%: подвал тянется на всю ширину окна, боковые отступы
   24 px (16 px на мобильных). Цвета вынесены в переменные и адаптируются
   под тёмную тему — жёстких чистых цветов нет.
   ========================================================================== */

footer.site-footer-unified{
  --f-bg:#101f33;
  --f-bg-soft:#0d1a2b;
  --f-text:#e2e8f0;
  --f-muted:#9fb0c6;
  --f-dim:#7b8ea6;
  --f-line:rgba(148,163,184,.22);
  --f-line-strong:rgba(148,163,184,.36);
  --f-accent:#7dd3fc;
  --f-logo:#60a5fa;
  --f-btn-bg:rgba(96,165,250,.10);
  --f-btn-bg-hover:rgba(96,165,250,.20);

  max-width:none;
  width:100%;
  margin-top:auto;
  background:var(--f-bg);
  color:var(--f-text);
  font-size:13px;
  line-height:1.45;
  border-top:1px solid var(--f-line);
  padding:28px 24px 34px;
  overflow-x:hidden;

  box-sizing:border-box;max-width:100%;}

html.dark-theme footer.site-footer-unified{
  --f-bg:#0b1424;
  --f-bg-soft:#111c2e;
  --f-text:#dde7f3;
  --f-muted:#a3b6cc;
  --f-dim:#8497ae;
  --f-line:rgba(158,180,206,.20);
  --f-line-strong:rgba(158,180,206,.34);
  --f-accent:#8ecbff;
  --f-logo:#7cc0ff;
  --f-btn-bg:rgba(124,192,255,.10);
  --f-btn-bg-hover:rgba(124,192,255,.18);
}

/* сетка ------------------------------------------------------------------- */
footer.site-footer-unified .footer-wrap{
  width:100%;
  max-width:none;
  margin:0 auto;
  display:grid;
  gap:22px 26px;
  align-items:start;
  grid-template-columns:minmax(0,1.25fr) repeat(3,minmax(0,1fr));
}

/* блок бренда ------------------------------------------------------------ */
footer.site-footer-unified .footer-brand{ min-width:0; }

footer.site-footer-unified .footer-brand__logo{
  display:inline-block;
  margin:0 0 8px;
  color:var(--f-text);
  font-size:19px;
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none;
}
footer.site-footer-unified .footer-brand__logo span{ color:var(--f-logo); }
footer.site-footer-unified .footer-brand__logo:hover{ color:var(--f-accent); }

footer.site-footer-unified .footer-brand__desc{
  margin:0 0 14px;
  max-width:46ch;
  font-size:12.5px;
  line-height:1.55;
  color:var(--f-muted);
}

/* кнопки/ссылки действий ------------------------------------------------ */
footer.site-footer-unified .footer-brand__actions{
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  gap:8px;
  margin:0 0 4px;
}

footer.site-footer-unified .footer-brand__remark,
footer.site-footer-unified .footer-brand__lk{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:7px 14px;
  border:1px solid var(--f-line-strong);
  border-radius:999px;
  background:var(--f-btn-bg);
  color:var(--f-text);
  font:inherit;
  font-size:12.5px;
  font-weight:600;
  line-height:1;
  text-decoration:none;
  cursor:pointer;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
footer.site-footer-unified .footer-brand__lk:hover{
  background:var(--f-btn-bg-hover);
  border-color:var(--f-accent);
  color:var(--f-accent);
}
footer.site-footer-unified .footer-brand__remark:hover{
  background:var(--f-btn-bg-hover);
  border-color:var(--f-accent);
  color:var(--f-accent);
}
footer.site-footer-unified .footer-brand__remark:focus-visible,
footer.site-footer-unified .footer-brand__lk:focus-visible{
  outline:2px solid var(--f-accent);
  outline-offset:2px;
}

/* иконки действий выровнены по центру строки */
footer.site-footer-unified .footer-brand__remark-ic{
  flex:0 0 auto;
  width:15px;
  height:15px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color:var(--f-muted);
}
footer.site-footer-unified .footer-brand__remark-ic svg{
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
footer.site-footer-unified .footer-brand__remark:hover .footer-brand__remark-ic,
footer.site-footer-unified .footer-brand__lk:hover .footer-brand__remark-ic{ color:var(--f-accent); }

footer.site-footer-unified .footer-copyright{
  margin-top:12px;
  font-size:11.5px;
  color:var(--f-dim);
}

/* группы ссылок ---------------------------------------------------------- */
footer.site-footer-unified .footer-group{ min-width:0; }

footer.site-footer-unified .footer-group h4{
  margin:0 0 10px;
  color:var(--f-text);
  font-size:12px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

footer.site-footer-unified .footer-group ul{
  list-style:none;
  list-style-image:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:7px;
}
footer.site-footer-unified .footer-group li{
  min-width:0;
  display:flex;
  align-items:flex-start;
  gap:8px;
  margin:0;
  padding:0;
  list-style:none;
}
footer.site-footer-unified .footer-group li::before,
footer.site-footer-unified .footer-group li::marker{ content:none !important; display:none !important; }

footer.site-footer-unified .footer-group a{
  min-width:0;
  color:var(--f-muted);
  font-size:12.5px;
  line-height:1.45;
  text-decoration:none;
  overflow-wrap:anywhere;
  transition:color .16s ease;
}
footer.site-footer-unified .footer-group a:hover,
footer.site-footer-unified .footer-group a:focus{ color:var(--f-accent); text-decoration:underline; }

/* компактные иконки, выровненные по левому краю -------------------------- */
footer.site-footer-unified .footer-ic{
  flex:0 0 auto;
  width:15px;
  height:15px;
  margin-top:2px;
  color:var(--f-dim);
  display:inline-flex;
}
footer.site-footer-unified .footer-ic svg{
  width:15px;
  height:15px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
footer.site-footer-unified .footer-group a:hover ~ .footer-ic,
footer.site-footer-unified li:hover .footer-ic{ color:var(--f-accent); }

/* эмодзи-иконки (колонка «База данных»): обычный SVG тут не нужен ------- */
footer.site-footer-unified .footer-ic--emoji{
  width:auto;
  height:auto;
  font-size:15px;
  line-height:1;
  filter:saturate(1.05);
}
footer.site-footer-unified .footer-ic--emoji svg{ display:none; }

/* плавающая FAB-кнопка виджета замечаний (слева внизу) — основной способ
   оставить замечание; в футере дубликата нет ----------------------------- */
.cmtw__fab{ z-index:99980 !important; }

/* адаптив ---------------------------------------------------------------- */
@media (max-width:1024px){
  footer.site-footer-unified{ padding:24px 20px 30px; }
  footer.site-footer-unified .footer-wrap{ grid-template-columns:repeat(2,minmax(0,1fr)); }
  footer.site-footer-unified .footer-brand{ grid-column:1 / -1; }
  footer.site-footer-unified .footer-brand__desc{ max-width:none; }
}
@media (max-width:560px){
  footer.site-footer-unified{ padding:22px 16px 26px; }
  footer.site-footer-unified .footer-wrap{ grid-template-columns:minmax(0,1fr); gap:18px; }
  footer.site-footer-unified .footer-group ul{ gap:6px; }
  footer.site-footer-unified .footer-brand__logo{ font-size:17px; }
  footer.site-footer-unified .footer-brand__actions{ gap:8px; }
}

/* --- блок «Обратная связь» в футере (12.11.2026) --- */
footer.site-footer-unified .footer-group--contacts ul{ margin-bottom:10px; }
footer.site-footer-unified .footer-group--actions{ margin:4px 0 0; }
footer.site-footer-unified .footer-group--actions .footer-brand__remark{ font:inherit; }
footer.site-footer-unified .footer-group__note{
  margin:10px 0 0;
  font-size:12px;
  line-height:1.45;
  color:var(--f-muted);
}
@media (max-width:760px){
  footer.site-footer-unified .footer-group--actions{ gap:8px; }
  footer.site-footer-unified .footer-group--actions .footer-brand__remark{ width:100%; justify-content:center; }
}

/* ==========================================================================
   Тонкий подвал с одной кнопкой (29.11.2026, version-токен 20261129a)

   Разметку HTML-страниц не трогаем: тонкая полоса и кнопка
   «Контакты и модули» создаются скриптом js/footer.js в уже существующий
   <footer class="site-footer-unified">. Состояние живёт на <body>:

     body.pzr-foot-collapsed  — подвал свёрнут (по умолчанию);
     body.pzr-foot-expanded   — подвал раскрыт.

   Режим страницы (включается классом на <body> в разметке страницы):

     body.pzr-foot-compact    — компактный вид подвала;
     body.sp12-foot-compact   — алиас совместимости с SP12-потоком.

   В компактном режиме подвал всегда стартует свёрнутым (сохранённое
   состояние «раскрыто» игнорируется), а раскрытая сетка компактнее.
   ========================================================================== */

/* --- тонкая полоса ------------------------------------------------------- */
footer.site-footer-unified .footer-bar{
  display:flex;
  align-items:center;
  gap:8px 14px;
  flex-wrap:wrap;
  min-height:56px;
  padding:6px 0;
}
footer.site-footer-unified .footer-bar__logo{
  color:var(--f-text);
  font-size:16px;
  font-weight:800;
  letter-spacing:.06em;
  text-decoration:none;
  white-space:nowrap;
}
footer.site-footer-unified .footer-bar__logo span{ color:var(--f-logo); }
footer.site-footer-unified .footer-bar__logo:hover{ color:var(--f-accent); }
footer.site-footer-unified .footer-bar__meta{
  min-width:0;
  color:var(--f-dim);
  font-size:12px;
}
footer.site-footer-unified .footer-bar__spacer{ flex:1 1 auto; }

/* кнопка раскрытия — достаточный touch-таргет (44 px) ------------------- */
footer.site-footer-unified .footer-bar__toggle{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:44px;
  min-width:44px;
  padding:9px 16px;
  border:1px solid var(--f-line-strong);
  border-radius:999px;
  background:var(--f-btn-bg);
  color:var(--f-text);
  font:inherit;
  font-size:13px;
  font-weight:600;
  line-height:1.2;
  text-align:center;
  text-decoration:none;
  cursor:pointer;
  -webkit-appearance:none;
  appearance:none;
  transition:background .18s ease,border-color .18s ease,color .18s ease;
}
footer.site-footer-unified .footer-bar__toggle:hover{
  background:var(--f-btn-bg-hover);
  border-color:var(--f-accent);
  color:var(--f-accent);
}
footer.site-footer-unified .footer-bar__toggle:focus-visible{
  outline:2px solid var(--f-accent);
  outline-offset:2px;
}
footer.site-footer-unified .footer-bar__chevron{
  flex:0 0 auto;
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:transform .2s ease;
}
footer.site-footer-unified .footer-bar__chevron svg{
  width:16px;
  height:16px;
  display:block;
  fill:none;
  stroke:currentColor;
  stroke-width:2;
  stroke-linecap:round;
  stroke-linejoin:round;
}
footer.site-footer-unified .footer-bar__label{ white-space:nowrap; }

/* --- состояния ----------------------------------------------------------- */
body.pzr-foot-collapsed footer.site-footer-unified{ padding:0 24px; }
body.pzr-foot-collapsed footer.site-footer-unified .footer-wrap{ display:none; }

body.pzr-foot-expanded footer.site-footer-unified .footer-bar{
  border-bottom:1px solid var(--f-line);
}
body.pzr-foot-expanded footer.site-footer-unified .footer-wrap{
  margin-top:18px;
  padding-top:18px;
  border-top:1px solid var(--f-line);
}
body.pzr-foot-expanded footer.site-footer-unified .footer-bar__chevron{
  transform:rotate(180deg);
}

/* --- компактный режим страницы (body-класс) ------------------------------ */
body.pzr-foot-compact footer.site-footer-unified,
body.sp12-foot-compact footer.site-footer-unified{
  padding:0 16px;
  font-size:12.5px;
}
body.pzr-foot-compact footer.site-footer-unified .footer-bar,
body.sp12-foot-compact footer.site-footer-unified .footer-bar{
  min-height:48px;
  padding:4px 0;
}
body.pzr-foot-compact footer.site-footer-unified .footer-bar__toggle,
body.sp12-foot-compact footer.site-footer-unified .footer-bar__toggle{
  min-height:40px;
  padding:7px 14px;
  font-size:12.5px;
}
body.pzr-foot-expanded.pzr-foot-compact footer.site-footer-unified .footer-wrap,
body.pzr-foot-expanded.sp12-foot-compact footer.site-footer-unified .footer-wrap{
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 18px;
  margin-top:12px;
  padding-top:12px;
}
body.pzr-foot-expanded.pzr-foot-compact footer.site-footer-unified .footer-brand,
body.pzr-foot-expanded.sp12-foot-compact footer.site-footer-unified .footer-brand{
  grid-column:1 / -1;
}
body.pzr-foot-expanded.pzr-foot-compact footer.site-footer-unified .footer-brand__desc,
body.pzr-foot-expanded.sp12-foot-compact footer.site-footer-unified .footer-brand__desc{
  display:none;
}

/* --- мобильная раскладка -------------------------------------------------- */
@media (max-width:760px){
  footer.site-footer-unified .footer-bar{ gap:6px 10px; flex-wrap:nowrap; }
  footer.site-footer-unified .footer-bar__meta{
    flex:1 1 auto;
    min-width:0;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    font-size:11.5px;
  }
  footer.site-footer-unified .footer-bar__toggle{ margin-left:auto; }
  body.pzr-foot-collapsed footer.site-footer-unified{ padding:0 16px; }
  body.pzr-foot-expanded footer.site-footer-unified .footer-wrap{ margin-top:14px; padding-top:14px; }
}
@media (max-width:420px){
  footer.site-footer-unified .footer-bar__logo{ font-size:15px; }
  footer.site-footer-unified .footer-bar__toggle{ padding:9px 13px; font-size:12.5px; }
}

/* --- печать --------------------------------------------------------------- */
@media print{
  footer.site-footer-unified .footer-bar__toggle{ display:none; }
}

@media (prefers-reduced-motion:reduce){
  footer.site-footer-unified .footer-bar__chevron,
  footer.site-footer-unified .footer-bar__toggle{ transition:none; }
}
