/* =========================================================
   FOOTER
========================================================= */

.sf-footer {
  margin-top: var(--sf-space-64);
  background: transparent;
}

/* =========================================================
   TOP STRIP
========================================================= */

.sf-footer__top-strip {
  background: var(--sf-white);
  border-top: 1px solid var(--sf-grey-02);
  border-bottom: 1px solid var(--sf-grey-02);
}

.sf-footer__top-grid {
  display: grid;
  grid-template-columns: 22% 22% 22% 34%;
  align-items: center;
  min-height: 5.5rem;
}

.sf-footer__cell {
  position: relative;
  min-width: 0;
  min-height: 5.5rem;
  display: flex;
  align-items: center;
  padding-left: 40px;
  padding-right: 40px;
}

.sf-footer__cell:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 2.75rem;
  background: var(--sf-grey-02);
  transform: translateY(-50%);
}

.sf-footer__cell--logo {
  justify-content: flex-start;
}

.sf-footer__cell--address {
  justify-content: flex-start;
}

.sf-footer__brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
}

.sf-footer__brand-logo {
  display: block;
  width: 160px;
  height: auto;
  object-fit: contain;
}

/* =========================================================
   INFO BLOCK
========================================================= */

.sf-footer__info-block {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.sf-footer__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  color: var(--sf-grey-08);
}

.sf-footer__info-icon svg {
  width: 24px;
  height: 24px;
}

.sf-footer__info-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.sf-footer__info-icon--brand svg path {
  fill: currentColor;
  stroke: none;
}

.sf-footer__info-body {
  min-width: 0;
  width: 100%;
}

.sf-footer__label {
  display: block;
  margin-bottom: 4px;
  color: var(--sf-grey-07);
  font-size: 0.75rem;
  font-weight: var(--sf-fw-semibold);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sf-footer__text {
  color: var(--sf-grey-08);
  font-size: 1rem;
  line-height: 1.45;
}

.sf-footer__text a {
  color: inherit;
  text-decoration: none;
}

.sf-footer__text a:hover,
.sf-footer__text a:focus-visible {
  color: var(--sf-text);
  text-decoration: underline;
}

.sf-footer__text--address {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================================================
   LEGAL STRIP
========================================================= */

.sf-footer__legal-strip {
  background: transparent;
}

.sf-footer__legal {
  display: grid;
  gap: var(--sf-space-8);
  padding: var(--sf-space-16) 0;
  border-bottom: 2px solid var(--sf-grey-02);
}

.sf-footer__legal-line {
  margin: 0;
  max-width: none;
  color: var(--sf-text);
  font-size: 1rem;
  font-weight: var(--sf-fw-regular);
  line-height: 1.6;
}

/* =========================================================
   BOTTOM TABS
========================================================= */

.sf-footer__bottom-strip {
  background: transparent;
}

.sf-footer__tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sf-space-20);
  padding: var(--sf-space-14) 0 var(--sf-space-20);
}

.sf-footer__tab {
  color: var(--sf-text-soft);
  font-size: 0.9rem;
  font-weight: var(--sf-fw-medium);
  line-height: 1;
  transition:
    color var(--sf-transition-fast),
    transform var(--sf-transition-fast);
}

.sf-footer__tab:hover,
.sf-footer__tab:focus-visible {
  color: var(--sf-text);
  transform: translateY(-1px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1200px) {
  .sf-footer__top-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sf-footer__cell:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 720px) {
  .sf-footer {
    margin-top: var(--sf-space-40);
  }

  .sf-footer__top-grid {
    grid-template-columns: 1fr;
  }

  .sf-footer__cell {
    min-height: auto;
    padding: 16px 20px;
  }

  .sf-footer__cell::after {
    display: none;
  }

  .sf-footer__brand-logo {
    width: 152px;
  }

  .sf-footer__info-block {
    gap: 12px;
  }

  .sf-footer__info-icon {
    width: 20px;
    height: 20px;
  }

  .sf-footer__info-icon svg {
    width: 20px;
    height: 20px;
  }

  .sf-footer__text {
    font-size: 1rem;
    line-height: 1.5;
  }

  .sf-footer__text--address {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .sf-footer__legal {
    gap: var(--sf-space-10);
    padding: var(--sf-space-14) 0;
  }

  .sf-footer__legal-line {
    font-size: 1rem;
    line-height: 1.55;
  }

  .sf-footer__tabs {
    gap: var(--sf-space-14);
    padding: var(--sf-space-12) 0 var(--sf-space-16);
  }
}