/**
 * Копирайт «Сделано на RussianCRM» внизу портала.
 * Подключается в views/layout/header.php сразу после perplexity-design.css
 * (отдельный link — надёжнее, чем только вложенный @import).
 */

body:has(footer.site-footer-credit-wrap--fullwidth) {
  padding-bottom: 0;
}
body:has(footer.site-footer-credit-wrap--fullwidth) #portal-root {
  box-sizing: border-box;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.site-footer-credit-wrap--fullwidth {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  max-width: none !important;
  z-index: 200;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 1px 10px calc(3px + env(safe-area-inset-bottom, 0px)) !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center !important;
  border: none;
  box-shadow: none;
  pointer-events: auto;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  background: rgba(252, 252, 249, 0.08) !important;
}
[data-color-scheme="dark"] .site-footer-credit-wrap--fullwidth {
  background: rgba(31, 33, 33, 0.12) !important;
}

.site-footer-credit-wrap--fullwidth .site-footer-credit {
  margin: 0 auto !important;
  width: 100%;
  max-width: none;
  text-align: center !important;
  font-size: 0.65rem;
  line-height: 1.15;
  color: var(--color-text-secondary) !important;
  opacity: 0.9;
}
.site-footer-credit-wrap--fullwidth .site-footer-credit a {
  display: inline;
  text-align: center !important;
  color: var(--color-text-secondary) !important;
  text-decoration: none !important;
  transition: color var(--duration-fast) var(--ease-standard);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.35);
}
[data-color-scheme="dark"] .site-footer-credit-wrap--fullwidth .site-footer-credit a {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.site-footer-credit-wrap--fullwidth .site-footer-credit a:hover {
  color: var(--color-primary) !important;
  text-decoration: underline;
  opacity: 1;
}
