:root {
  --footer-bg: #031f18;
  --footer-surface: #0b382e;
  --footer-text: #faf8f3;
  --footer-muted: #d8e1d6;
  --footer-secondary: #a7b89a;
  --footer-accent: #e8c979;
  --footer-page-max-width: 1480px;
}

.public-footer,
.public-footer * {
  box-sizing: border-box;
}

.public-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: clamp(42px, 6vw, 76px);
  color: var(--footer-text);
  font-family: "Geist", Arial, sans-serif;
  background: var(--footer-bg);
}

.public-footer__inner {
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(110px, 0.72fr)) minmax(230px, 1.15fr);
  gap: clamp(28px, 3.5vw, 54px);
  align-items: start;
  width: min(var(--biobalance-page-max-width, var(--footer-page-max-width)), calc(100% - 48px));
  margin-inline: auto;
  padding-block: 58px 44px;
}

.public-footer__brand picture {
  display: block;
}

.public-footer__logo {
  display: block;
  width: 280px;
  height: 88px;
  object-fit: contain;
  object-position: left center;
}

.public-footer__statement {
  max-width: 360px;
  margin: 18px 0 0;
  color: var(--footer-muted);
  font-size: 15px;
  line-height: 1.55;
}

.public-footer h2 {
  margin: 0 0 16px;
  color: var(--footer-text);
  font-family: "Geist", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.public-footer__group {
  display: grid;
  align-content: start;
  gap: 11px;
}

.public-footer__group a,
.public-footer__group span {
  color: var(--footer-muted);
  font-size: 13.5px;
  line-height: 1.35;
  text-decoration: none;
}

.public-footer__group a:hover,
.public-footer__group a:focus-visible {
  color: var(--footer-text);
}

.public-footer__status {
  display: inline-flex;
  gap: 7px;
  align-items: center;
}

.public-footer__status img {
  flex: 0 0 auto;
}

.public-footer__newsletter p {
  margin: 0 0 18px;
  color: var(--footer-muted);
  font-size: 14.5px;
  line-height: 1.5;
}

.public-footer__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: stretch;
  border-bottom: 1px solid rgba(216, 225, 214, 0.36);
}

.public-footer__form input {
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  color: var(--footer-text);
  background: transparent;
  font: inherit;
  font-size: 14px;
}

.public-footer__form input::placeholder {
  color: rgba(216, 225, 214, 0.68);
}

.public-footer__form input:focus-visible,
.public-footer__form button:focus-visible,
.public-footer a:focus-visible {
  outline: 2px solid var(--footer-accent);
  outline-offset: 4px;
}

.public-footer__form button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  place-items: center;
  border: 0;
  color: var(--footer-text);
  background: transparent;
  cursor: pointer;
}

.public-footer__form button:focus-visible {
  outline-offset: 2px;
}

.public-footer__form button img {
  width: 24px;
  height: 16px;
}

.public-footer__legal {
  display: flex;
  gap: 28px;
  justify-content: space-between;
  width: min(var(--biobalance-page-max-width, var(--footer-page-max-width)), calc(100% - 48px));
  margin-inline: auto;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(216, 225, 214, 0.14);
  color: rgba(216, 225, 214, 0.72);
  font-size: 12.5px;
  line-height: 1.45;
}

.public-footer__legal p {
  margin: 0;
}

.public-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1023px) {
  .public-footer__inner {
    grid-template-columns: 1.35fr repeat(2, 1fr);
  }

  .public-footer__newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 699px) {
  .public-footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    width: min(calc(100% - 32px), 560px);
    padding-block: 42px 34px;
  }

  .public-footer__brand,
  .public-footer__newsletter {
    grid-column: 1 / -1;
  }

  .public-footer__logo {
    width: 220px;
    height: 70px;
  }

  .public-footer__statement,
  .public-footer__newsletter p {
    font-size: 15px;
  }

  .public-footer__group a,
  .public-footer__group span {
    min-height: 24px;
    font-size: 14px;
  }

  .public-footer__legal {
    display: grid;
    width: min(calc(100% - 32px), 560px);
    font-size: 12.5px;
  }
}

@media (max-width: 374px) {
  .public-footer__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .public-footer__brand,
  .public-footer__newsletter {
    grid-column: auto;
  }
}
