/* ===== Footer ===== */

.legacy-footer,
.footer-section.finoit-style {
  display: none !important;
}

.reference-footer {
  background: #000000;
  color: #ffffff;
  padding: 74px 0 34px;
}

.reference-footer .container {
  max-width: 1180px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.9fr;
  gap: 56px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.footer-heading {
  margin: 0 0 18px;
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.2;
}

.footer-links {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1rem;
  line-height: 1.35;
  text-decoration: none;
}

.footer-links a::before {
  content: ">>";
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
}

.footer-links a:hover {
  color: #ffffff;
}

.ranking-badges {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  gap: 18px;
  align-items: center;
}

.ranking-badge {
  position: relative;
  display: grid;
  min-height: 96px;
  place-items: center;
  padding: 18px 10px;
  text-align: center;
  color: #26323a;
  background: #f5fbff;
  clip-path: polygon(50% 0, 94% 22%, 94% 72%, 50% 100%, 6% 72%, 6% 22%);
  box-shadow: inset 0 0 0 5px #d8e4eb;
}

.ranking-badge::before {
  content: "";
  position: absolute;
  inset: 8px;
  clip-path: inherit;
  border: 2px solid #8da1ad;
  pointer-events: none;
}

.ranking-badge strong {
  display: block;
  color: #26323a;
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1.05;
}

.ranking-badge small {
  display: block;
  margin-top: 4px;
  color: #5d6870;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.footer-bottom {
  padding-top: 24px;
  text-align: center;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
  margin-bottom: 18px;
}

.footer-bottom-links a {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  text-decoration: none;
}

.footer-bottom-links a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.footer-social a {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  border-radius: 3px;
  background: #ffffff;
  color: #000000;
  font-size: 1.2rem;
  line-height: 1;
  text-decoration: none;
}

.footer-social .inline-icon {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.footer-bottom-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1rem;
}

@media (max-width: 991.98px) {
  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }

  .footer-ranking {
    grid-column: 1 / -1;
  }
}

@media (max-width: 575.98px) {
  .reference-footer {
    padding: 54px 0 30px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ranking-badges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 320px;
  }

  .footer-bottom-links {
    gap: 10px 14px;
  }
}
