/* Пустой абзац не должен занимать колонку и сдвигать навигацию под логотип. */
html body .vh-footer__top > p:empty {
  display: none;
}

/* Фон подвала остаётся полноширинным; контент совпадает с границами шапки. */
html body .vh-footer,
html body footer.site-footer {
  padding-right: 0 !important;
  padding-left: 0 !important;
}

html body .vh-footer > .vh-wrap,
html body .vh-footer > .vh-container {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

html body .vh-footer .vh-footer__top,
html body .vh-footer .vh-footer__bottom,
html body footer.site-footer > .footer-top,
html body footer.site-footer > .footer-bottom {
  box-sizing: border-box;
  width: min(1320px, calc(100% - 48px)) !important;
  max-width: 1320px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

/* Старый подвал: со старой шапкой 1200 px, с новой — 1320 px. */
html body .btFooterWrap > .boldSection > .port {
  box-sizing: border-box;
  width: min(1200px, calc(100% - 48px)) !important;
  max-width: 1200px !important;
  margin-right: auto !important;
  margin-left: auto !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
}

html body:has(.vh-header) .btFooterWrap > .boldSection > .port {
  width: min(1320px, calc(100% - 48px)) !important;
  max-width: 1320px !important;
}

.vitalko-footer-privacy {
  overflow-wrap: anywhere;
}

.vitalko-footer-privacy-row {
  margin: 8px 0 0;
}

@media (max-width: 600px) {
  html body .vh-footer .vh-footer__top,
  html body .vh-footer .vh-footer__bottom,
  html body footer.site-footer > .footer-top,
  html body footer.site-footer > .footer-bottom,
  html body .btFooterWrap > .boldSection > .port,
  html body:has(.vh-header) .btFooterWrap > .boldSection > .port {
    width: calc(100% - 24px) !important;
    max-width: none !important;
  }
}
