.site-footer {
  --footer-padding: 2rem;
  --footer-height: 10rem; 
  --footer-partner-width: 38.2vw;
  --footer-partner-height: 8rem ;
}

.site-footer {
  background: var(--color-primary);  
  flex-shrink: 0;
}

.footer-inner {
  width: 100%;
  max-width: var(--layout-max);
  padding: var(--footer-padding);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-main {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "contact logos"
    "bottom logos";
  align-items: stretch;
  gap: 0.9rem;
  height: var(--footer-height);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
  max-height: var(--footer-height);
  grid-area: contact;
}

.footer-contact a {
  color: var(--color-background);
}

.footer-logos {
  display: flex;
  max-width: var(--footer-partner-width);
  height: 100%;
  flex-wrap: nowrap;
  gap: 0;
  justify-content: end;
  justify-self: right;
  grid-area: logos;
}

.footer-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: var(--footer-partner-height);
  object-fit: contain;
}

.is-mobile .footer-logo {
  max-height: var(--footer-partner-height);
  align-content: center;
}

.footer-bottom {
  color: var(--color-background);
  margin-top: 0;
  text-align: left;
  align-self: end;
  grid-area: bottom;
}

.footer-bottom a {
  color: var(--color-background);
  text-decoration: underline;
  font-style: italic;
}

.is-mobile .footer-inner {
  gap: 0.8rem;
  padding-bottom: var(--footer-padding);
}

.is-mobile .footer-main {
  grid-template-columns: 1fr;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "contact"
    "logos"
    "bottom";
  gap: var(--footer-padding);
  height: auto;
}

.is-mobile .footer-contact {
  min-width: 0;
}

.is-mobile .footer-logos {
  min-width: 100%;
  max-height: 10rem;
  gap: 1rem;
  justify-content: center;
  justify-self: center;
  align-items: center;
}
