.footer {
  position: relative;
  background: var(--grey-5);
}

.footer > .wrapper-bg {
  position: absolute;
  inset: 0;
}

.footer__bg {
  width: 100%;
  height: 100%;
  background: var(--dark);
}

.footer > .container {
  position: relative;
  padding-bottom: 1.5em; /* 24px */
}

/* ── Box ── */
.footer__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 19.5em; /* 312px = 592px band − 2×140px padding */
  gap: 7.5em; /* 120px */
}

/* ── Top row: logo + nav ── */
.footer__top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3.75em; /* 60px row gap when nav wraps */
}

.footer__logo-wrap {
  flex-shrink: 0;
  width: 15.125em; /* 242px */
}

/* ── Nav group ── */
.footer__nav {
  display: flex;
  gap: 1.5625em; /* 25px */
  align-items: flex-start;
  flex-shrink: 0;
}

/* ── Nav columns ── */
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 2em; /* 32px */
}

.footer__col--menu,
.footer__col--social {
  width: 12.125em; /* 194px */
}

.footer__col--contacts {
  width: 18.9375em; /* 303px */
}

.footer__col-title {
  color: var(--grey-30);
  font-weight: 500;
  line-height: 1;
}

/* ── Links ── */
.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.25em; /* 20px */
}

.footer__link {
  color: var(--white);
  text-decoration: none;
}

.footer__link.is-current {
  text-decoration: underline;
}

/* ── Bottom bar ── */
.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.875em; /* 30px */
}

.footer__divider {
  width: 100%;
  height: 1px;
  background: var(--grey-60);
}

.footer__copy {
  color: var(--grey-30);
}

/* ── Tablet: nav wraps to full width ── */
@media (max-width: 1024px) {
  .footer__nav {
    flex: 0 0 100%;
    justify-content: space-between;
    flex-shrink: 1;
  }

  .footer__col--menu,
  .footer__col--contacts,
  .footer__col--social {
    width: auto;
    flex: 1;
  }
}

/* ── Mobile: nav columns stack ── */
@media (max-width: 667px) {
  .footer__nav {
    flex-direction: column;
    gap: 2em;
  }

  .footer__col {
    width: 100%;
    flex: none;
  }
}
