.bn-site-footer {
  position: relative;
  margin-top: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
  border-top: 1px solid var(--bn-color-border);
  background: #fff;
  color: var(--bn-color-ink);
}

.bn-site-footer__decor {
  position: absolute;
  top: 0;
  left: 0;
  width: min(33vw, 460px);
  height: 170px;
  pointer-events: none;
  opacity: 0.34;
  background-image: radial-gradient(circle, rgba(6, 33, 82, 0.34) 1px, transparent 1.2px);
  background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(to bottom right, #000 0%, transparent 76%);
  mask-image: linear-gradient(to bottom right, #000 0%, transparent 76%);
}

.bn-site-footer__inner {
  position: relative;
  z-index: 1;
}

.bn-site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(180px, 0.55fr) minmax(180px, 0.55fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(2.25rem, 4vw, 3.5rem);
}

.bn-site-footer__brand {
  max-width: 700px;
}

.bn-site-footer__logo {
  width: min(180px, 48vw);
  margin-bottom: 1.35rem;
}

.bn-site-footer__logo .custom-logo-link,
.bn-site-footer__logo .bn-site-logo {
  display: inline-flex;
  width: 100%;
}

.bn-site-footer__logo img {
  width: 100%;
  max-height: 82px;
  object-fit: contain;
  object-position: left center;
}

.bn-site-footer__description {
  max-width: 650px;
  margin-bottom: 1.5rem;
  color: #495363;
  font-size: 0.95rem;
  line-height: 1.75;
}

.bn-footer-newsletter {
  max-width: 660px;
}

.bn-footer-newsletter h2 {
  margin-bottom: 0.4rem;
  font-family: var(--bn-font-sans);
  font-size: 1.1rem;
}

.bn-footer-newsletter > p {
  margin-bottom: 0.9rem;
  color: var(--bn-color-muted);
  font-size: 0.9rem;
}

.bn-footer-newsletter form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.6rem;
}

.bn-footer-newsletter input {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e2e6ec;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  background: #f7f8fa;
  color: var(--bn-color-ink);
}

.bn-footer-newsletter button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  padding: 0.8rem 1.35rem;
  background: var(--bn-color-primary-900);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--bn-transition-fast), background var(--bn-transition-fast);
}

.bn-footer-newsletter button:hover {
  background: var(--bn-color-primary-700);
}

.bn-footer-newsletter button:active {
  transform: translateY(1px);
}

.bn-footer-newsletter__privacy {
  margin-top: 0.55rem;
  color: var(--bn-color-muted);
  font-size: 0.82rem !important;
}

.bn-footer-newsletter__message {
  margin-bottom: 0.65rem !important;
  color: #18733c !important;
  font-weight: 700;
}

.bn-footer-newsletter__message--error {
  color: var(--bn-color-accent-700) !important;
}

.bn-site-footer__column h2 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.2rem;
  font-family: var(--bn-font-sans);
  font-size: 1rem;
  line-height: 1.3;
}

.bn-site-footer__column h2 > span {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--bn-color-accent-600);
}

.bn-site-footer__column ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bn-site-footer__column li + li {
  margin-top: 0.8rem;
}

.bn-site-footer__column a {
  color: #1b2432;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.bn-site-footer__column a:hover {
  color: var(--bn-color-primary-700);
}

.bn-site-footer__social-wrap {
  margin-top: 1.6rem;
}

.bn-site-footer__social-wrap > p {
  margin-bottom: 0.65rem;
  color: var(--bn-color-muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bn-footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.bn-footer-socials a {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--bn-color-border);
  border-radius: 999px;
  background: #fff;
  color: var(--bn-color-ink);
  transition: background var(--bn-transition-fast), color var(--bn-transition-fast), border-color var(--bn-transition-fast), transform var(--bn-transition-fast);
}

.bn-footer-socials a:hover {
  border-color: var(--bn-color-primary-900);
  background: var(--bn-color-primary-900);
  color: #fff;
  transform: translateY(-2px);
}

.bn-footer-socials svg {
  width: 20px;
  height: 20px;
}

.bn-site-footer__sections {
  display: flex;
  align-items: center;
  gap: 0.8rem 1rem;
  min-height: 72px;
  border-top: 1px solid var(--bn-color-border);
  border-bottom: 1px solid var(--bn-color-border);
  padding-block: 1rem;
}

.bn-site-footer__sections > strong {
  flex: 0 0 auto;
  color: var(--bn-color-muted);
  font-size: 0.88rem;
}

.bn-site-footer__section-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}

.bn-site-footer__section-links a {
  color: var(--bn-color-ink);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
}

.bn-site-footer__section-links a:hover {
  color: var(--bn-color-primary-700);
}

.bn-site-footer__bottom {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.bn-site-footer__bottom p {
  margin: 0;
  color: var(--bn-color-muted);
  font-size: 0.82rem;
}

.bn-back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: #171d25;
  color: #fff;
  box-shadow: 0 8px 24px rgba(16, 24, 39, 0.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--bn-transition-fast), transform var(--bn-transition-fast), background var(--bn-transition-fast);
}

.bn-back-to-top:not([hidden]) {
  opacity: 1;
  transform: translateY(0);
}

.bn-back-to-top:hover {
  background: var(--bn-color-primary-900);
}

.bn-back-to-top svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 980px) {
  .bn-site-footer__main {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(160px, 0.6fr));
    gap: 2.25rem;
  }
}

@media (max-width: 767px) {
  .bn-site-footer {
    margin-top: 3.5rem;
  }

  .bn-site-footer__decor {
    width: 75vw;
    height: 130px;
    opacity: 0.26;
  }

  .bn-site-footer__main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
    padding-block: 2.75rem 2rem;
  }

  .bn-site-footer__brand {
    grid-column: 1 / -1;
  }

  .bn-site-footer__logo {
    width: min(160px, 52vw);
  }

  .bn-footer-newsletter form {
    grid-template-columns: 1fr;
  }

  .bn-footer-newsletter button {
    width: 100%;
  }

  .bn-site-footer__sections {
    align-items: flex-start;
    flex-direction: column;
  }

  .bn-site-footer__bottom {
    min-height: 64px;
  }

  .bn-back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 480px) {
  .bn-site-footer__main {
    grid-template-columns: 1fr;
  }

  .bn-site-footer__brand,
  .bn-site-footer__column {
    grid-column: 1;
  }

  .bn-site-footer__column {
    padding-top: 1.25rem;
    border-top: 1px solid var(--bn-color-border);
  }

  .bn-site-footer__section-links {
    gap: 0.55rem 0.85rem;
  }
}
