@import url("https://fonts.googleapis.com/css2?family=Bruno+Ace&family=Poppins:wght@400;500;600;700&display=swap");

.bidentra-footer,
.bidentra-footer * {
  box-sizing: border-box;
}

.bidentra-footer {
  --footer-bg: #0f1d28;
  --footer-bg-soft: #132432;
  --footer-bg-bottom: #0d1923;
  --footer-blue: #30a6f2;
  --footer-blue-strong: #1697e6;
  --footer-white: #ffffff;
  --footer-text: #c5d0d7;
  --footer-muted: #9fadb6;
  --footer-line: rgba(255, 255, 255, 0.15);

  width: 100%;
  overflow: hidden;
  color: var(--footer-white);
  background: var(--footer-bg);
  font-family: "Poppins", Arial, sans-serif;
}

.bidentra-footer a {
  color: inherit;
  text-decoration: none;
}

.bidentra-footer__main {
  position: relative;
  background:
    radial-gradient(circle at 78% 18%, rgba(48, 166, 242, 0.07), transparent 34%),
    linear-gradient(180deg, var(--footer-bg) 0%, var(--footer-bg-soft) 100%);
}

.bidentra-footer__container {
  width: min(100% - 56px, 1440px);
  margin: 0 auto;
}

.bidentra-footer__hero {
  position: relative;
  min-height: 252px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bidentra-footer__hero-content {
  position: relative;
  z-index: 3;
  width: 56%;
  padding: 30px 0 24px;
}

.bidentra-footer__hero h2 {
  max-width: 820px;
  margin: 0;
  color: var(--footer-white);
  font-size: clamp(42px, 3.45vw, 60px);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: -0.045em;
}

.bidentra-footer__hero p {
  margin: 20px 0 0;
  color: var(--footer-text);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 400;
}

.bidentra-footer__join {
  min-width: 196px;
  min-height: 56px;
  margin-top: 26px;
  padding: 0 20px 0 28px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: linear-gradient(135deg, var(--footer-blue) 0%, var(--footer-blue-strong) 100%);
  color: var(--footer-white);
  box-shadow: 0 14px 32px rgba(22, 151, 230, 0.22);
  font-size: 16px;
  font-weight: 600;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease;
}

.bidentra-footer__join:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 38px rgba(22, 151, 230, 0.28);
  filter: brightness(1.04);
}

.bidentra-footer__join-arrow {
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
}

.bidentra-footer__map {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -16px;
  width: min(790px, 54vw);
  transform: translateY(-50%);
  pointer-events: none;
  -webkit-mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.48) 7%, #000 18%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(to right, transparent 0%, rgba(0, 0, 0, 0.48) 7%, #000 18%, #000 100%),
    linear-gradient(to bottom, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-composite: intersect;
}

.bidentra-footer__map img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.84;
  filter: saturate(0.92) brightness(0.86) contrast(1.12);
}

.bidentra-footer__rule {
  width: 100%;
  height: 1px;
  background: var(--footer-line);
}

.bidentra-footer__content {
  padding: 38px 0 40px;
  display: grid;
  grid-template-columns:
    minmax(300px, 1.08fr)
    1px
    minmax(170px, 0.48fr)
    minmax(190px, 0.56fr)
    minmax(170px, 0.46fr);
  gap: 58px;
  align-items: start;
}

.bidentra-footer__brand {
  min-width: 0;
}

.bidentra-footer__wordmark {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: baseline;
  font-family: "Bruno Ace", sans-serif;
  font-size: 42px;
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.bidentra-footer__wordmark-bid {
  color: var(--footer-white);
}

.bidentra-footer__wordmark-entra {
  color: var(--footer-blue);
}

.bidentra-footer__brand p {
  margin: 20px 0 0;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}

.bidentra-footer__social {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.bidentra-footer__social-item {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  color: #e5ebef;
}

.bidentra-footer__social-item svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.bidentra-footer__divider {
  width: 1px;
  min-height: 220px;
  background: var(--footer-line);
}

.bidentra-footer__column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bidentra-footer__column h3 {
  position: relative;
  margin: 0 0 22px;
  padding-bottom: 12px;
  color: var(--footer-white);
  font-size: 16px;
  line-height: 1.2;
  font-weight: 700;
}

.bidentra-footer__column h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 42px;
  height: 2px;
  border-radius: 999px;
  background: var(--footer-blue);
}

.bidentra-footer__column a {
  position: relative;
  margin-bottom: 13px;
  padding-left: 18px;
  color: var(--footer-text);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 400;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.bidentra-footer__column a::before {
  content: "›";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--footer-blue);
  font-size: 22px;
  line-height: 1;
  font-weight: 400;
}

.bidentra-footer__column a:last-child {
  margin-bottom: 0;
}

.bidentra-footer__column a:hover {
  color: var(--footer-white);
  transform: translateX(2px);
}

.bidentra-footer__bottom {
  border-top: 1px solid var(--footer-line);
  background: var(--footer-bg-bottom);
}

.bidentra-footer__bottom-inner {
  width: min(100% - 56px, 1440px);
  min-height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.bidentra-footer__bottom p {
  margin: 0;
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
}

.bidentra-footer__bottom nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.bidentra-footer__bottom nav span {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.bidentra-footer__bottom a {
  color: var(--footer-muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 400;
  white-space: nowrap;
  transition: color 0.18s ease;
}

.bidentra-footer__bottom a:hover {
  color: var(--footer-blue);
}

@media (max-width: 1180px) {
  .bidentra-footer__content {
    grid-template-columns:
      minmax(280px, 1fr)
      1px
      repeat(3, minmax(145px, 0.52fr));
    gap: 38px;
  }

  .bidentra-footer__map {
    right: -40px;
    width: 760px;
  }
}

@media (max-width: 900px) {
  .bidentra-footer__hero {
    min-height: 480px;
    align-items: flex-start;
  }

  .bidentra-footer__hero-content {
    width: 100%;
    padding-top: 42px;
  }

  .bidentra-footer__map {
    top: auto;
    right: -70px;
    bottom: 0;
    width: 650px;
    transform: none;
  }

  .bidentra-footer__content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 38px 48px;
  }

  .bidentra-footer__brand {
    grid-column: 1 / -1;
  }

  .bidentra-footer__divider {
    display: none;
  }

  .bidentra-footer__bottom-inner {
    padding: 16px 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
  }

  .bidentra-footer__bottom nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .bidentra-footer__container,
  .bidentra-footer__bottom-inner {
    width: min(100% - 40px, 1440px);
  }

  .bidentra-footer__hero {
    min-height: 430px;
  }

  .bidentra-footer__hero-content {
    padding-top: 34px;
  }

  .bidentra-footer__hero h2 {
    font-size: 34px;
    line-height: 1.1;
  }

  .bidentra-footer__hero p {
    margin-top: 16px;
    font-size: 15px;
  }

  .bidentra-footer__join {
    min-width: 164px;
    min-height: 50px;
    margin-top: 22px;
    font-size: 14.5px;
  }

  .bidentra-footer__map {
    right: -70px;
    width: 520px;
  }

  .bidentra-footer__content {
    padding-top: 32px;
    padding-bottom: 34px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .bidentra-footer__wordmark {
    font-size: 36px;
  }

  .bidentra-footer__brand p br,
  .bidentra-footer__hero p br {
    display: none;
  }

  .bidentra-footer__bottom nav {
    gap: 9px;
    flex-direction: column;
    align-items: flex-start;
  }

  .bidentra-footer__bottom nav span {
    display: none;
  }

  .bidentra-footer__bottom p,
  .bidentra-footer__bottom a {
    white-space: normal;
  }
}
