.hd-footer {
  min-height: 0;
  padding: 68px 0 32px;
  color: #d6e0e5;
  background: #071521;
  border-top: 1px solid rgba(167, 131, 72, 0.34);
}

.hd-footer__main {
  grid-template-columns: minmax(460px, 1.45fr) minmax(300px, 0.9fr) minmax(190px, 0.55fr);
  gap: clamp(54px, 5vw, 88px);
  align-items: start;
}

.hd-footer__brand {
  display: block;
}

.hd-footer__brand img {
  width: 260px;
  height: auto;
  filter: none;
}

.hd-footer__brand p {
  max-width: 570px;
  margin: 26px 0 0;
  color: #aebdc5;
  font-size: 15px;
  line-height: 1.85;
}

.hd-footer__company {
  padding-top: 0;
}

.hd-footer__company strong,
.hd-footer__service strong {
  display: block;
  color: #a78348;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.16em;
}

.hd-footer__details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 17px;
  margin-top: 25px;
}

.hd-footer__details > div {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
}

.hd-footer__details span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: #9eb4c2;
}

.hd-footer__details svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-footer__details address,
.hd-footer__details a {
  margin: 0;
  color: #d6e0e5;
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

.hd-footer__details a:hover,
.hd-footer__details a:focus-visible {
  color: #a78348;
}

.hd-footer__service ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 13px;
}

.hd-footer__service li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  color: #c4d0d6;
  font-size: 14px;
  line-height: 1.6;
}

.hd-footer__service-icon {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  color: #9eb4c2;
}

.hd-footer__service-icon svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-footer .hd-footer__copy {
  margin: 58px 0 0;
  padding-top: 22px;
  border-top: 1px solid rgba(198, 214, 222, 0.16);
  color: #71838d;
  font-size: 11px;
  line-height: 1.5;
}

.back-to-top {
  --top-button-bottom: 28px;
  position: fixed;
  z-index: 190;
  right: 28px;
  bottom: var(--top-button-bottom);
  display: inline-flex;
  width: 52px;
  height: 52px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 5px 14px rgba(8, 45, 67, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease, background-color 0.22s ease, bottom 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

.back-to-top > span {
  font-size: 20px;
  font-weight: 500;
  line-height: 0.8;
}

.back-to-top > small {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: #1787ca;
}

.hd-quick-actions {
  position: fixed;
  z-index: 190;
  right: 28px;
  bottom: 28px;
  display: flex;
  width: max-content;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, visibility 0s linear 0.22s;
}

.hd-quick-actions.is-visible {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.hd-quick-action {
  position: relative;
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
  border: 1px solid #d1d9de;
  border-radius: 999px;
  color: #78858c;
  background: #fff;
  pointer-events: auto;
  transition: width 0.28s cubic-bezier(0.22, 0.61, 0.36, 1), color 0.22s ease, background-color 0.22s ease, border-color 0.22s ease;
}

.hd-quick-action:hover,
.hd-quick-action:focus-visible {
  width: 138px;
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.hd-quick-action__label {
  min-width: 84px;
  padding-left: 18px;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(7px);
  transition: opacity 0.18s ease 0.04s, transform 0.22s ease 0.04s;
}

.hd-quick-action:hover .hd-quick-action__label,
.hd-quick-action:focus-visible .hd-quick-action__label {
  opacity: 1;
  transform: none;
}

.hd-quick-action__icon {
  position: absolute;
  right: 0;
  top: 0;
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 50px;
  place-items: center;
}

.hd-quick-action__icon svg {
  display: block;
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hd-quick-action__source-icon {
  display: block;
  width: 27px;
  height: 27px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.hd-quick-action__source-icon--document {
  -webkit-mask-image: url("./public/images/quick-icons/hiwin-quick-document-original.svg");
  mask-image: url("./public/images/quick-icons/hiwin-quick-document-original.svg");
}

.hd-quick-action__source-icon--headset {
  -webkit-mask-image: url("./public/images/quick-icons/hiwin-quick-headset-original.svg");
  mask-image: url("./public/images/quick-icons/hiwin-quick-headset-original.svg");
}

.hd-quick-actions .back-to-top {
  position: relative;
  z-index: auto;
  right: auto;
  bottom: auto;
  flex: 0 0 52px;
  color: #78858c;
  background: #fff;
  border: 1px solid #d1d9de;
  box-shadow: none;
  pointer-events: none;
}

.hd-quick-actions .back-to-top.is-visible {
  pointer-events: auto;
}

.hd-quick-actions .back-to-top:hover,
.hd-quick-actions .back-to-top:focus-visible {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.hd-quick-actions .back-to-top > span {
  transition: transform 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.hd-quick-actions .back-to-top:hover > span,
.hd-quick-actions .back-to-top:focus-visible > span {
  animation: hd-top-arrow-lift 0.48s ease;
}

@keyframes hd-top-arrow-lift {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-3px); }
}

@media (max-width: 1200px) {
  .hd-footer__main {
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 48px;
  }
}

@media (max-width: 769px) {
  .hd-footer {
    padding: 52px 0 28px;
  }

  .hd-footer__brand img {
    width: 210px;
  }

  .hd-footer__brand p {
    margin-top: 22px;
    font-size: 14px;
  }

  .hd-footer__inner .hd-footer__company {
    margin-top: 38px;
  }

  .hd-footer__inner .hd-footer__details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .hd-footer__details > div,
  .hd-footer__details > div:first-child,
  .hd-footer__details > div:nth-child(4) {
    grid-column: auto;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 10px;
  }

  .hd-footer__details address,
  .hd-footer__details a,
  .hd-footer__details p {
    font-size: 13px;
  }

  .hd-footer .hd-footer__copy {
    margin-top: 34px;
  }

  .back-to-top {
    --top-button-bottom: 16px;
    right: 16px;
    width: 46px;
    height: 46px;
  }

  .hd-quick-actions {
    right: 16px;
    bottom: 16px;
    gap: 8px;
  }

  .hd-quick-action {
    width: 46px;
    height: 46px;
  }

  .hd-quick-action:hover,
  .hd-quick-action:focus-visible {
    width: 128px;
  }

  .hd-quick-action__icon {
    width: 44px;
    height: 44px;
  }

  .hd-quick-actions .back-to-top {
    flex-basis: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }

  .hd-quick-action,
  .hd-quick-action__label,
  .hd-quick-actions .back-to-top > span {
    transition: none;
    animation: none;
  }
}
.hd-footer.hd-home-footer {
  border-top: 0;
}
