.reference-footer {
  --footer-white: #fff;
  --footer-line: rgba(255, 255, 255, 0.68);
  margin: 0;
  padding: clamp(1rem, 1.5vw, 1.4rem) 0 .8rem;
  border: 0;
  background:
    radial-gradient(circle at 28% 52%, rgba(63, 139, 255, 0.34), transparent 35%),
    linear-gradient(118deg, #0e55dc 0%, #0f58de 45%, #0752d9 100%);
  color: var(--footer-white);
  font-family: Arial, Helvetica, sans-serif;
}

.footer-reference-shell {
  width: min(1660px, calc(100% - 128px));
  margin: 0 auto;
}

.footer-reference-grid {
  display: grid;
  grid-template-columns: minmax(410px, 1.3fr) minmax(290px, 1fr) minmax(330px, 1.08fr) minmax(220px, .72fr);
  gap: clamp(2rem, 3.4vw, 4rem);
  align-items: start;
}

.reference-footer h2,
.reference-footer p,
.reference-footer a,
.reference-footer span {
  color: var(--footer-white);
}

.footer-contact-card {
  min-height: 0;
  padding: .7rem 1.5rem .9rem;
  border: 1px solid var(--footer-line);
  border-radius: 24px;
}

.reference-footer h2 {
  margin: 0;
  color: var(--footer-white);
  font-size: clamp(1.6rem, 1.7vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
}

.footer-contact-card > h2 {
  margin-bottom: .55rem;
  color: #fff !important;
  white-space: nowrap;
}

.footer-summary {
  margin: 0;
  font-size: clamp(1.12rem, 1.18vw, 1.35rem);
  line-height: 1.35;
}

.footer-contact-divider { display: none; }

.footer-contact-card address {
  display: grid;
  gap: .42rem;
  margin: 0;
  font-style: normal;
}

.reference-footer .footer-detail {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: .7rem;
  align-items: center;
  margin: 0;
  color: var(--footer-white);
  font-size: clamp(.9rem, .96vw, 1.05rem);
  line-height: 1.3;
  text-decoration: none;
}

.reference-footer .footer-detail:hover,
.reference-footer .footer-link-column a:hover,
.footer-reference-bottom a:hover {
  color: var(--footer-white);
  text-decoration: underline;
  text-underline-offset: .25em;
}

.footer-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--footer-line);
  border-radius: 50%;
}

.footer-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-link-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding-top: .35rem;
}

.footer-link-column h2 {
  width: 100%;
  margin-bottom: .65rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--footer-line);
}

.reference-footer .footer-link-column a {
  display: block;
  margin: 0 0 .42rem;
  color: var(--footer-white);
  font-size: clamp(.98rem, 1.05vw, 1.16rem);
  line-height: 1.35;
  text-decoration: none;
}

.footer-reference-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: .65rem 0 0;
  padding-top: .65rem;
  border-top: 1px solid var(--footer-line);
  font-size: clamp(.88rem, .92vw, 1rem);
}

.footer-reference-bottom a {
  color: var(--footer-white);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.footer-reference-bottom a span {
  display: inline-block;
  margin-left: .55rem;
  font-size: 1.45em;
  font-weight: 400;
}

@media (max-width: 1500px) {
  .footer-reference-shell {
    width: min(1320px, calc(100% - 80px));
  }

  .footer-reference-grid {
    grid-template-columns: minmax(370px, 1.2fr) repeat(2, minmax(235px, 1fr)) minmax(180px, .72fr);
    gap: 2rem;
  }

  .footer-contact-card {
    min-height: 0;
    padding-inline: 1.35rem;
  }

  .footer-reference-bottom {
    margin-left: 0;
  }
}

@media (max-width: 1120px) {
  .footer-reference-shell {
    width: calc(100% - 64px);
  }

  .footer-reference-grid {
    grid-template-columns: minmax(350px, 1.2fr) repeat(2, 1fr);
    gap: 2rem;
  }

  .footer-contact-card {
    grid-row: span 2;
  }

  .footer-company-links {
    grid-column: 2;
  }

  .footer-reference-bottom {
    margin: 1rem 0 0;
  }
}

@media (max-width: 780px) {
  .reference-footer {
    padding: 1.2rem 0 .8rem;
  }

  .footer-reference-shell {
    width: calc(100% - 40px);
  }

  .footer-reference-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 1.2rem;
  }

  .footer-contact-card {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 0;
    padding: 1.2rem 1.25rem;
    border-radius: 24px;
  }

  .footer-contact-card > h2,
  .footer-link-column h2 {
    font-size: 1.55rem;
  }

  .footer-summary,
  .reference-footer .footer-detail,
  .reference-footer .footer-link-column a {
    font-size: 1rem;
  }

  .reference-footer .footer-detail {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: .85rem;
  }

  .footer-icon {
    width: 42px;
    height: 42px;
  }

  .footer-icon svg {
    width: 18px;
    height: 18px;
  }

  .footer-company-links {
    grid-column: auto;
  }

  .footer-reference-bottom {
    align-items: flex-start;
    flex-direction: column;
    margin-top: .7rem;
    padding-top: .8rem;
    font-size: .9rem;
  }
}

@media (max-width: 480px) {
  .footer-reference-grid {
    grid-template-columns: 1fr;
  }

  .footer-link-column,
  .footer-company-links {
    grid-column: 1;
  }

  .footer-contact-card {
    padding: 1.1rem;
  }
}
