.site-footer {
  display: flex;
  align-items: flex-end;
  min-height: 700px;
  background: #e4e4e4;
  color: #1f1f1f;
  font-family: var(--tomato-copy-font);
}

.site-footer__inner {
  width: min(1728px, 100%);
  min-height: auto;
  margin: 0 auto;
  padding: clamp(40px, 5vw, 72px) clamp(24px, 4.9vw, 86px) 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: clamp(20px, 3vw, 40px);
}

.site-footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}

.site-footer__brand-block {
  width: min(100%, 532px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 24px;
}

.site-footer__brand-mark {
  display: grid;
  place-items: center;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.site-footer__brand-mark img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.site-footer__brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.site-footer__brand-eyebrow {
  font-size: 20px;
  font-weight: 500;
  line-height: 48px;
  white-space: nowrap;
}

.site-footer__brand-name {
  font-size: 32px;
  font-weight: 500;
  line-height: 48px;
  white-space: nowrap;
}

.site-footer__info {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 32px;
}

.site-footer__nav {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  width: min(100%, 600px);
  font-size: 16px;
  font-weight: 500;
  line-height: 16px;
}

.site-footer__nav-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.site-footer__nav-column--services {
  width: 416px;
  flex: 0 0 416px;
}

.site-footer__nav-column--pages {
  width: 160px;
  flex: 0 0 160px;
}

.site-footer__nav-link,
.site-footer__subnav-link {
  display: block;
  color: #1f1f1f;
  line-height: 16px;
}

.site-footer__subnav {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 6px 0 6px 12px;
  border-left: 2px solid #1f1f1f;
  line-height: 16px;
}

.site-footer__subnav--compact {
  width: 120px;
}

.site-footer__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  min-height: 24px;
  padding: 4px 0 0;
}

.site-footer__bottom p {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

@media (max-width: 767px) {
  .site-footer__inner {
    min-height: auto;
    padding-inline: 20px;
    padding-top: 24px;
    justify-content: flex-start;
    gap: 28px;
  }

  .site-footer__main {
    flex-direction: column;
    gap: 40px;
  }

  .site-footer {
    min-height: auto;
  }

  .site-footer__brand-block,
  .site-footer__nav,
  .site-footer__nav-column,
  .site-footer__nav-column--services,
  .site-footer__nav-column--pages {
    width: 100%;
    max-width: none;
  }

  .site-footer__nav {
    flex-direction: column;
    gap: 32px;
  }

  .site-footer__subnav--compact {
    width: 100%;
  }

  .site-footer__bottom {
    min-height: 24px;
    padding-top: 4px;
  }
}

@media (max-width: 640px) {
  .site-footer__inner {
    padding: 20px 16px 0;
  }

  .site-footer__brand {
    gap: 16px;
  }

  .site-footer__brand-mark {
    width: 72px;
    height: 72px;
  }

  .site-footer__brand-mark img {
    width: 56px;
    height: 56px;
  }

  .site-footer__brand-eyebrow {
    font-size: 14px;
    line-height: 1.5;
    white-space: normal;
  }

  .site-footer__brand-name {
    font-size: 24px;
    line-height: 1.35;
    white-space: normal;
  }

  .site-footer__info {
    margin-top: 16px;
    font-size: 16px;
    line-height: 1.6;
  }

  .site-footer__nav {
    gap: 24px;
    font-size: 14px;
    line-height: 1.35;
  }

  .site-footer__nav-column {
    gap: 12px;
  }

  .site-footer__nav-link,
  .site-footer__subnav-link,
  .site-footer__subnav {
    line-height: 1.35;
  }

  .site-footer__subnav {
    gap: 12px;
    padding-left: 10px;
  }

  .site-footer__bottom {
    min-height: 24px;
    margin-top: 12px;
    padding-top: 2px;
  }

  .site-footer__bottom p {
    font-size: 11px;
    line-height: 1.4;
  }
}
