/* Shared site footer (views/partials/footer.ejs). All rules are scoped to .site-footer. */
.site-footer {
  --sf-bg: #f1f4f7;
  --sf-card: #ffffff;
  --sf-line: #dde3e8;
  --sf-text: #2b2e33;
  --sf-muted: #5b636b;
  --sf-brand: #009cde;
  position: relative;
  z-index: 2;
  padding-top: 56px;
  background: var(--sf-bg);
  color: var(--sf-text);
}

.site-footer *,
.site-footer *::before,
.site-footer *::after {
  box-sizing: border-box;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  opacity: 0.84;
}

.site-footer__shell {
  width: min(1280px, calc(100% - 64px));
  margin: 0 auto;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer__brand img {
  display: block;
  width: 187px;
  height: auto;
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #c3ccd3;
  border-radius: 999px;
  background: var(--sf-card);
  font-size: 18px;
  line-height: 1;
}

.site-footer__social a:hover {
  border-color: var(--sf-brand);
  color: var(--sf-brand);
  opacity: 1;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 16px;
  margin-top: 32px;
}

.site-footer__contacts {
  display: flex;
  flex: 2 1 560px;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.site-footer__card,
.site-footer__office {
  border: 1px solid var(--sf-line);
  border-radius: 22px;
  background: var(--sf-card);
}

.site-footer__card {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 24px 28px;
}

.site-footer__title {
  margin: 0 0 8px;
  color: var(--sf-brand);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-footer__phone,
.site-footer__mail {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.site-footer__phone {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.site-footer a.site-footer__mail {
  color: var(--sf-muted);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.site-footer__phone svg,
.site-footer__mail svg,
.site-footer__address svg {
  flex: 0 0 auto;
  color: var(--sf-brand);
}

.site-footer__office {
  display: flex;
  flex: 1 1 400px;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
}

.site-footer__office-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 28px 20px;
}

.site-footer__office-info .site-footer__title {
  margin: 0;
}

.site-footer__address {
  display: flex;
  gap: 10px;
  margin: 0;
  color: var(--sf-text);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.site-footer__address svg {
  margin-top: 2px;
}

.site-footer a.site-footer__directions {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--sf-brand);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
}

.site-footer__map {
  position: relative;
  flex: 1;
  min-height: 240px;
  background: #dde3e8;
}

.site-footer__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-footer__bottom {
  margin-top: 40px;
  padding-right: 96px;
  color: var(--sf-muted);
  font-size: 13px;
}

.site-footer__bottom-shell {
  padding: 20px 0 28px;
  border-top: 1px solid var(--sf-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer__credits,
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  line-height: 1.6;
}

.site-footer__legal a {
  text-underline-offset: 3px;
}

.site-footer__legal a:hover {
  color: var(--sf-brand);
  opacity: 1;
  text-decoration: underline;
}

.site-footer__legal a:focus-visible {
  outline: 2px solid var(--sf-brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.site-footer__separator {
  color: #aeb9c1;
}

@media (max-width: 575.98px) {
  .site-footer {
    padding-top: 40px;
  }

  .site-footer__shell {
    width: calc(100% - 32px);
  }

  .site-footer__card {
    padding: 12px 14px;
  }

  .site-footer__title { font-size: 10px !important; }
  .site-footer__phone { font-size: 14px !important; line-height: 1.3; }
  .site-footer a.site-footer__mail { font-size: 11px !important; line-height: 1.35; }

  .site-footer__office-info {
    padding: 14px;
  }

  .site-footer__phone,
  .site-footer__mail { min-height: 34px; gap: 8px; }
  .site-footer__title { margin-bottom: 4px; }

  .site-footer__address { font-size: 12px !important; line-height: 1.4; }
  .site-footer a.site-footer__directions { font-size: 12px !important; }

  .site-footer__bottom {
    padding-right: 104px;
    padding-bottom: 72px;
    font-size: 10px !important;
  }

  .site-footer__credits,
  .site-footer__legal { font-size: 10px !important; }

  .site-footer__credits,
  .site-footer__legal {
    display: grid;
    justify-items: start;
    gap: 5px;
  }

  .site-footer__bottom .site-footer__separator {
    display: none;
  }
}
