.footer {
  --footer-color55: rgba(255, 255, 255, 0.55);
  --footer-color: rgba(255, 255, 255, 0.95);
  user-select: none;
  background-color: #000;
  color: var(--footer-color);
  position: relative;
}

.footer a {
  color: var(--footer-color55);
  cursor: pointer;
  transition: 0.3s cubic-bezier(0.48, 0.04, 0.52, 0.96);
}

.footer a:hover {
  color: var(--footer-color);
}

.footer__container {
  padding: 80px 64px 0;
}

.footer__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.footer__logo-wrap {
  flex: 0 1 auto;
}

.footer__logo {
  display: block;
  width: 182px;
  height: 32px;
  margin-bottom: 20px;
}

.footer__unit-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--footer-color);
}

.footer__unit-address {
  margin: 0 0 6px;
  font-size: 13px;
  color: var(--footer-color55);
}

.footer__unit-hotline {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
}

.footer__menu {
  display: flex;
  align-items: unset;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.footer__menu-col {
  display: block;
}

.footer__menu-item {
  margin: 0 0 34px 54px;
}

.footer__menu-heading {
  margin-bottom: 24px;
}

.footer__menu-heading-text {
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
  text-align: left;
  color: var(--footer-color);
}

.footer__menu-child {
  margin: 0;
}

.footer__menu-child:not(:last-child) {
  margin-bottom: 12px;
}

.footer__menu-child a {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
}

.footer__legal {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__legal p {
  margin: 0 0 8px;
  font-size: 11px;
  line-height: 16px;
  color: var(--footer-color55);
}

.footer__legal p:last-child {
  margin-bottom: 0;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer__bottom-wrap {
  display: flex;
  align-items: center;
}

.footer__copyright {
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  color: var(--footer-color55);
}

.footer__back-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  opacity: 0.8;
  transition: 0.3s cubic-bezier(0.48, 0.04, 0.52, 0.96);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
}

.footer__back-top:hover {
  opacity: 1;
}

.footer__back-top span {
  font-size: 12px;
  font-weight: 500;
  line-height: 18px;
  text-align: left;
  margin-right: 4px;
  color: var(--footer-color);
}

/* Desktop container padding matches original .responsive__layout breakpoints */
@media screen and (min-width: 1025px) and (max-width: 1439.98px) {
  .footer__container {
    padding-left: 64px;
    padding-right: 64px;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024.98px) {
  .footer__container {
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* ---- Mobile (<=767px) ---- */
@media (max-width: 767px) {
  .footer__container {
    padding: 40px 0 0;
  }

  .footer__main {
    display: block;
    padding: 0 24px;
  }

  .footer__logo-wrap {
    margin-bottom: 32px;
  }

  .footer__menu {
    display: block;
  }

  .footer__menu-item:not(:last-child) {
    margin-bottom: 40px;
  }

  .footer__menu-item {
    margin-left: 0;
    margin-bottom: 32px;
    width: 100%;
    max-height: 24px;
    overflow: hidden;
    transition: 0.3s;
  }

  .footer__menu-heading {
    margin-bottom: 0;
    position: relative;
    cursor: pointer;
  }

  .footer__menu-heading-text {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
  }

  .footer__menu-heading::before,
  .footer__menu-heading::after {
    content: "";
    background-color: #fff;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: 0.3s;
  }

  .footer__menu-heading::before {
    width: 14px;
    height: 1.6px;
    right: 0;
  }

  .footer__menu-heading::after {
    width: 1.6px;
    height: 14px;
    right: 6px;
  }

  /* ponytail: "opened" accordion state was never captured in the scraped computed
     styles (menu wasn't expanded during crawl). Ported from source-js toggle logic:
     grow max-height to fit content, collapse the "+" into a "-" by rotating the
     vertical bar onto the horizontal one. */
  .footer__menu-item.is-open {
    max-height: 2000px;
  }

  .footer__menu-item.is-open .footer__menu-heading::after {
    transform: translateY(-50%) rotate(90deg);
  }

  .footer__menu-child {
    margin-top: 20px;
    padding-left: 16px;
  }

  .footer__menu-child:not(:last-child) {
    margin-bottom: 0;
  }

  .footer__menu-child a {
    font-size: 14px;
    font-weight: 500;
    line-height: 22px;
  }

  .footer__legal {
    margin: 0 24px 32px;
    padding-top: 24px;
  }

  .footer__bottom {
    padding: 20px 24px;
    border-top: none;
    flex-wrap: wrap;
    row-gap: 12px;
  }

  /* back-top is desktop-only in the original (Vue !isMobile.value guard, absent from dom-mobile.html) */
  .footer__back-top {
    display: none;
  }
}

/* Room for the fixed ModelNavBar pill so the legal notes stay readable at the page end. */
.footer { padding-bottom: 104px; }
.footer__logo { width: 94px; }
@media (max-width: 767px) {
  .footer { padding-bottom: 88px; }
}
