.tpg-footer {
  --tpg-footer-bg: #183569;
  --tpg-footer-text: #f8fafc;
  --tpg-footer-link: rgba(255, 255, 255, 0.86);
  --tpg-footer-border: rgba(255, 255, 255, 0.16);
  background-color: var(--tpg-footer-bg);
  color: var(--tpg-footer-text);
  margin-top: 0;
  font-size: 16px;
}

.tpg-footer__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
}

.tpg-footer__column {
  min-width: 0;
}

.tpg-footer__heading {
  margin: 0 0 0.85rem;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tpg-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.tpg-footer__item {
  margin: 0 0 0.45rem;
}

.tpg-footer__link {
  color: var(--tpg-footer-link);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.45;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

.tpg-footer__link:hover,
.tpg-footer__link:focus-visible {
  color: #ffffff;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.tpg-footer__bottom {
  border-top: 1px solid var(--tpg-footer-border);
  padding: 1.5rem 1rem 2rem;
  text-align: center;
}

.tpg-footer__logo {
  height: 100px;
  width: auto;
}

.tpg-footer__social-list {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.tpg-footer__social-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background-color 160ms ease, transform 160ms ease;
}

.tpg-footer__social-link i {
  font-size: 16px;
  line-height: 1;
}

.tpg-footer__social-icon {
  width: 16px;
  height: 16px;
  display: block;
}

.tpg-footer__social-link:hover,
.tpg-footer__social-link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.tpg-footer__version,
.tpg-footer__copyright {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.5;
}

@media (max-width: 991px) {
  .tpg-footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .tpg-footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .tpg-footer__social-list {
    flex-wrap: wrap;
  }
}

@media (prefers-color-scheme: dark) {
  .tpg-footer__link {
    color: rgba(255, 255, 255, 0.92);
  }

  .tpg-footer__version,
  .tpg-footer__copyright {
    color: rgba(255, 255, 255, 0.8);
  }
}

html[data-theme="dark"] .tpg-footer,
body[data-theme="dark"] .tpg-footer,
html.dark-mode .tpg-footer,
body.dark-mode .tpg-footer,
html.theme-dark .tpg-footer,
body.theme-dark .tpg-footer {
  background: none !important;
  --tpg-footer-text: #f1f5f9;
  --tpg-footer-link: rgba(241, 245, 249, 0.92);
  --tpg-footer-border: rgba(241, 245, 249, 0.2);
}

html[data-theme="dark"] .tpg-footer .tpg-footer__link,
body[data-theme="dark"] .tpg-footer .tpg-footer__link,
html.dark-mode .tpg-footer .tpg-footer__link,
body.dark-mode .tpg-footer .tpg-footer__link,
html.theme-dark .tpg-footer .tpg-footer__link,
body.theme-dark .tpg-footer .tpg-footer__link {
  color: rgba(241, 245, 249, 0.92);
}

html[data-theme="dark"] .tpg-footer .tpg-footer__bottom,
body[data-theme="dark"] .tpg-footer .tpg-footer__bottom,
html.dark-mode .tpg-footer .tpg-footer__bottom,
body.dark-mode .tpg-footer .tpg-footer__bottom,
html.theme-dark .tpg-footer .tpg-footer__bottom,
body.theme-dark .tpg-footer .tpg-footer__bottom {
  border-top-color: rgba(241, 245, 249, 0.2);
}
