.tr-footer {
  width: 100%;
  margin-block: 0;
  padding: 0;
  color: #fff;
  background: var(--tr-color-footer, #383e42);
  font-family: var(--tr-font-family-base, "Noto Sans", Arial, sans-serif);
}

.tr-footer.alignfull,
.wp-block-trurnit-footer.alignfull {
  padding: 0 !important;
}

.tr-footer,
.tr-footer * {
  box-sizing: border-box;
  font-style: normal !important;
}

.tr-footer__main {
  background: var(--tr-color-footer, #383e42);
}

.tr-footer__inner {
  width: 100%;
  max-width: calc(90rem + 4rem);
  min-height: 33.125rem;
  margin-inline: auto;
  padding: 4.5rem 2rem 4rem;
}

.tr-footer__logo-wrap {
  width: 100%;
  margin-block-end: 3.5rem;
}

.tr-footer__logo {
  display: block;
  width: auto;
  max-width: 10.75rem;
  max-height: 3.28125rem;
  object-fit: contain;
}

.tr-footer__logo-text {
  max-width: 10rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.tr-footer__widgets {
  display: grid;
  grid-template-columns: repeat(var(--tr-footer-columns, 5), minmax(0, 1fr));
  width: 100%;
  column-gap: 0.75rem;
  row-gap: 3rem;
  align-items: flex-start;
}

.tr-footer--columns-5 .tr-footer__widgets {
  grid-template-columns:
    minmax(0, 18.75rem)
    minmax(0, 18.75rem)
    repeat(3, minmax(0, 17rem));
}

.tr-footer--columns-3 {
  --tr-footer-columns: 3;
}

.tr-footer--columns-4 {
  --tr-footer-columns: 4;
}

.tr-footer--columns-5 {
  --tr-footer-columns: 5;
}

.tr-footer__contact-card,
.tr-footer__column,
.tr-footer__widgets > .wp-block-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  min-width: 0;
}

.tr-footer__column > .wp-block-group__inner-container,
.tr-footer__widgets > .wp-block-group > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  min-width: 0;
}

.tr-footer__link-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  max-width: 100%;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.tr-footer__link-list > .wp-block-group__inner-container,
.tr-footer__link-list.is-layout-flow,
.tr-footer__link-list.is-layout-constrained {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  width: auto;
  max-width: 100%;
}

.tr-footer__link-list > .wp-block-group__inner-container > * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.tr-footer__widgets .wp-block-group,
.tr-footer__widgets .is-layout-flow,
.tr-footer__widgets .is-layout-constrained {
  margin: 0;
}

.tr-footer__widgets .is-layout-flow > *,
.tr-footer__widgets .is-layout-constrained > *,
.tr-footer__widgets .is-layout-flow > * + *,
.tr-footer__widgets .is-layout-constrained > * + * {
  margin-block-start: 0;
  margin-block-end: 0;
}

.tr-footer__link-list > * {
  margin: 0;
}

.tr-footer__heading,
.tr-footer__widgets h2,
.tr-footer__widgets h3,
.tr-footer__widgets h4,
.tr-footer__widgets h5,
.tr-footer__widgets h6 {
  margin: 0;
  color: #fff;
  font-family: var(--tr-font-family-base, "Noto Sans", Arial, sans-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.5rem;
  letter-spacing: 0;
}

.tr-footer .tr-footer-nav-item__title {
  margin: 0 0 1.5rem;
}

.tr-footer__text,
.tr-footer__widgets p,
.tr-footer__widgets li {
  margin: 0;
  color: #fff;
  font-family: var(--tr-font-family-base, "Noto Sans", Arial, sans-serif);
  font-size: var(--tr-font-body-size, 1.125rem);
  font-weight: 400;
  line-height: var(--tr-font-body-line-height, 1.8rem);
  letter-spacing: 0;
}

.tr-footer__small-text {
  margin-block-start: -1rem !important;
  margin-block-end: 0 !important;
  padding: 0;
  font-size: 0.875rem !important;
  line-height: 1.26875rem !important;
}

.tr-footer__widgets ul,
.tr-footer__widgets ol {
  margin: 0;
  margin-block-end: 2rem;
  padding: 0;
}

.tr-footer__widgets .wp-block-image {
  margin: 0;
}

.tr-footer__widgets img {
  max-width: 100%;
  height: auto;
}

.tr-footer__text small {
  display: block;
  font: inherit;
}

.tr-footer__text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--tr-space-2xs, 0.25rem);
  width: auto;
  max-width: 100%;
  margin: -0.25rem;
  padding: 0.25rem;
  padding-block-end: 0.25rem;
  border-block-end: 0;
  color: #fff;
  font-size: var(--tr-font-button-md-size, 1rem);
  font-weight: 600;
  line-height: var(--tr-font-button-md-line-height, 1.362rem);
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.tr-footer .tr-footer-nav-item__link {
  color: #fff;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.tr-footer a,
.tr-footer a:hover,
.tr-footer a:focus-visible {
  text-decoration: none;
}

.tr-footer__text-link-icon,
.tr-footer__text-link-svg {
  display: inline-flex;
  flex: 0 0 auto;
  width: 1rem;
  height: 1rem;
}

.tr-footer__text-link--arrow .tr-footer__text-link-icon {
  width: 0.875rem;
  height: 0.875rem;
}

.tr-footer__text-link-label {
  display: inline-block;
}

.tr-footer__text-link::after,
.tr-footer .tr-footer-nav-item__link::after,
.tr-footer__sub-link::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05rem;
  height: 0.125rem;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: left center;
  transition: all 0.3s ease-in-out;
}

.tr-footer__text-link:hover,
.tr-footer__text-link:focus-visible,
.tr-footer__text-link:active,
.tr-footer .tr-footer-nav-item__link:hover,
.tr-footer .tr-footer-nav-item__link:focus-visible,
.tr-footer .tr-footer-nav-item__link:active,
.tr-footer__sub-link:hover,
.tr-footer__sub-link:focus-visible,
.tr-footer__sub-link:active {
  color: #fff;
  opacity: 1;
  text-decoration: none;
}

.tr-footer__text-link:focus-visible,
.tr-footer__sub-link:focus-visible,
.tr-footer__social-link:focus-visible {
  outline: 0.1875rem solid var(--tr-color-brand-kwmk-green, #84bd00);
  outline-offset: 0.25rem;
}

.tr-footer__widgets > * {
  min-width: 0;
}

.tr-footer__sub {
  background: var(--tr-color-brand-kwmk-blue, #00519e);
}

.tr-footer__sub-inner {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: calc(90rem + 4rem);
  min-height: 5.5rem;
  margin-inline: auto;
  padding: 1.5rem 2rem;
  overflow: visible;
}

.tr-footer__copyright {
  margin: 0;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.26875rem;
}

.tr-footer__subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.tr-footer__sub-link {
  display: inline-flex;
  margin: -0.25rem;
  padding: 0.25rem;
  color: #fff;
  font-size: var(--tr-font-label-size, 0.875rem);
  font-weight: 500;
  line-height: 1.26875rem;
  position: relative;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}

.tr-footer__text-link:hover::after,
.tr-footer__text-link:focus-visible::after,
.tr-footer__text-link:active::after,
.tr-footer .tr-footer-nav-item__link:hover::after,
.tr-footer .tr-footer-nav-item__link:active::after,
.tr-footer__sub-link:hover::after,
.tr-footer__sub-link:focus-visible::after,
.tr-footer__sub-link:active::after {
  transform: scaleX(1);
}

.tr-footer__socials {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.tr-footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--tr-color-brand-kwmk-black, #000);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.tr-footer__social-image,
.tr-footer__social-svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  object-fit: contain;
}

@media (max-width: 79.9375rem) {
  .tr-footer__inner {
    padding-inline: 2rem;
  }

  .tr-footer__widgets {
    width: 100%;
    max-width: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 3rem;
    row-gap: 4.5rem;
  }

  .tr-footer--columns-5 .tr-footer__widgets {
    grid-template-columns: repeat(3, minmax(13rem, 1fr));
  }

  .tr-footer__sub-inner {
    padding-inline: 2rem;
  }
}

@media (max-width: 47.9375rem) {
  .tr-footer__main {
    padding-block-end: 2rem;
  }

  .tr-footer__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    min-height: 0;
    padding: 2.5rem 1.5rem 0;
  }

  .tr-footer__logo-wrap {
    order: 0;
    margin-block: 0 2rem;
    text-align: center;
  }

  .tr-footer__logo {
    margin-inline: auto;
    max-width: 10.75rem;
    max-height: 3.28125rem;
  }

  .tr-footer__logo-text {
    margin-inline: auto;
    text-align: center;
  }

  .tr-footer__widgets {
    display: flex;
    flex-direction: column;
    order: 1;
    gap: 0;
  }

  .tr-footer__widgets > * {
    margin-block-end: 0;
  }

  .tr-footer__widgets > .tr-footer__column,
  .tr-footer__widgets > .wp-block-group {
    margin-block-end: 2rem;
  }

  .tr-footer__widgets > *:last-child {
    margin-block-end: 0;
  }

  .tr-footer__widgets > .tr-footer-nav-item:last-child,
  .tr-footer__widgets > .wp-block-trurnit-footer-navigation-item-block:last-child {
    margin-block-end: 0;
  }

  .tr-footer__contact-card,
  .tr-footer__column,
  .tr-footer__widgets > .wp-block-group {
    align-items: center;
    width: 100%;
    gap: 1rem;
    text-align: center;
  }

  .tr-footer__column > .wp-block-group__inner-container,
  .tr-footer__widgets > .wp-block-group > .wp-block-group__inner-container {
    align-items: center;
    gap: 1rem;
    text-align: center;
  }

  .tr-footer__link-list {
    align-items: center;
  }

  .tr-footer__widgets > .wp-block-group:nth-child(2),
  .tr-footer__widgets > .tr-footer__column:nth-child(2) {
    gap: 1rem;
  }

  .tr-footer__widgets > .wp-block-group:nth-child(2) .tr-footer__heading,
  .tr-footer__widgets > .tr-footer__column:nth-child(2) .tr-footer__heading {
    font-size: 1.125rem;
    line-height: 1.35rem;
  }

  .tr-footer__widgets > .wp-block-group:nth-child(2) p:not(.tr-footer__small-text),
  .tr-footer__widgets > .tr-footer__column:nth-child(2) p:not(.tr-footer__small-text) {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6rem;
    text-align: center;
  }

  .tr-footer__heading,
  .tr-footer__widgets h2,
  .tr-footer__widgets h3,
  .tr-footer__widgets h4,
  .tr-footer__widgets h5,
  .tr-footer__widgets h6 {
    font-size: 1.125rem;
    line-height: 1.35rem;
    text-align: center;
  }

  .tr-footer__text,
  .tr-footer__widgets p,
  .tr-footer__widgets li {
    font-size: 1rem;
    line-height: 1.6rem;
    text-align: center;
  }

  .tr-footer__small-text.wp-block-paragraph,
  .tr-footer__small-text {
    width: 100%;
    margin-block-start: -1rem !important;
    text-align: center;
  }

  .tr-footer__sub-inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    min-height: 0;
    padding: 1.5rem 1.5rem;
    text-align: center;
  }

  .tr-footer__subnav {
    order: 0;
    gap: 1rem;
    justify-content: center;
    align-items: center;
  }

  .tr-footer__socials {
    order: 1;
    gap: 0.5rem;
    justify-content: center;
    align-items: center;
  }

  .tr-footer__social-link {
    width: 2.5rem;
    height: 2.5rem;
  }

  .tr-footer__social-image,
  .tr-footer__social-svg {
    width: 1.5rem;
    height: 1.5rem;
  }

  .tr-footer__copyright {
    order: 2;
  }
}
