/* =========================================================
   RVS — GLOBAL FOOTER COMPONENT STYLES
   Ширина и боковые отступы футера задаются в rvs-layout.css.
   ========================================================= */

/* Общий фон и цвета */
html body #colophon.site-footer,
html body .site-footer,
html body footer#colophon {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 56px 0 24px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 80% 0%, rgba(22, 139, 135, 0.14), transparent 36%),
    linear-gradient(180deg, #0f3049 0%, #092235 100%) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

/* Ширина внутреннего контейнера задаётся в rvs-layout.css. */

/* Четыре колонки */
html body #colophon .footer-widgets.footer-widgets-4,
html body #colophon .footer-widgets {
  display: grid !important;
  grid-template-columns: 0.8fr 0.9fr 1.45fr 1.25fr !important;
  gap: 44px !important;
  align-items: start !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-sizing: border-box !important;
}

html body #colophon .footer-widget {
  width: auto !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Заголовки виджетов скрыты, как на главной */
html body #colophon .widget-title,
html body #colophon .widgettitle {
  display: none !important;
}

/* Меню */
html body #colophon .widget_nav_menu ul,
html body #colophon .widget_nav_menu .menu {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  align-items: flex-start !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body #colophon .widget_nav_menu li,
html body #colophon .widget_nav_menu .menu-item {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Ссылки */
html body #colophon a,
html body #colophon .widget_nav_menu a {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1.32 !important;
  text-align: left !important;
  text-decoration: none !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
}

html body #colophon a:hover,
html body #colophon .widget_nav_menu a:hover {
  color: #7fd8d2 !important;
  opacity: 1 !important;
  text-decoration: none !important;
}

/* Текстовые виджеты */
html body #colophon p,
html body #colophon .textwidget p {
  margin: 0 0 10px !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
}

/* Нижняя строка */
html body #colophon .footer-bottom {
  margin-top: 30px !important;
  padding-top: 20px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.13) !important;
  border-bottom: 0 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

html body #colophon .footer-bottom,
html body #colophon .footer-bottom * {
  color: rgba(255, 255, 255, 0.72) !important;
}

html body #colophon .footer-bottom::before,
html body #colophon .footer-bottom::after,
html body #colophon .footer-widgets::before,
html body #colophon .footer-widgets::after {
  display: none !important;
  content: none !important;
}

/* Планшет */
@media screen and (max-width: 1024px) and (min-width: 782px) {
  html body #colophon .footer-widgets.footer-widgets-4,
  html body #colophon .footer-widgets {
    grid-template-columns: 1fr 1fr !important;
    gap: 30px 40px !important;
  }
}

/* Мобильная версия */
@media screen and (max-width: 781px) {
  html body #colophon.site-footer,
  html body .site-footer,
  html body footer#colophon {
    padding: 32px 0 26px !important;
  }

  html body #colophon .footer-widgets.footer-widgets-4,
  html body #colophon .footer-widgets {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  html body #colophon .footer-widget {
    width: 100% !important;
  }

  html body #colophon .widget_nav_menu ul,
  html body #colophon .widget_nav_menu .menu {
    gap: 7px !important;
  }

  html body #colophon a,
  html body #colophon .widget_nav_menu a {
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.22 !important;
  }

  html body #colophon p,
  html body #colophon .textwidget p {
    margin-bottom: 9px !important;
    font-size: 14.5px !important;
    line-height: 1.34 !important;
    overflow-wrap: anywhere !important;
  }

  html body #colophon .footer-bottom {
    margin-top: 20px !important;
    padding-top: 16px !important;
    font-size: 14px !important;
    line-height: 1.25 !important;
    text-align: left !important;
  }

  html body .scroll-to-top,
  html body .back-to-top,
  html body #back-to-top,
  html body .generate-back-to-top {
    right: 24px !important;
    bottom: 28px !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.82) !important;
    color: #0f3049 !important;
    opacity: 0.86 !important;
  }
}

@media screen and (max-width: 390px) {
  html body #colophon a,
  html body #colophon .widget_nav_menu a {
    font-size: 15.5px !important;
  }

  html body #colophon p,
  html body #colophon .textwidget p {
    font-size: 14px !important;
  }

  html body #colophon .footer-bottom {
    font-size: 13.5px !important;
  }
}
