.phone-footer { display: none; }

@media (max-width: 767px) {
  #support { background: #fff; border-top: 0; color: #171721; color-scheme: light; }
  .desktop-footer { display: none; }
  .phone-footer { display: block; }
  .footer-apply {
    padding: 24px 15px 30px;
    background: #8f0a07;
    color: #fff;
    text-align: center;
  }
  .footer-apply h2 {
    margin: 0 0 14px;
    font: 700 1.45rem/1.25 var(--sans);
  }
  #mobile-footer-apply {
    display: flex;
    align-items: center;
    gap: 12px;
    width: min(100%, 490px);
    min-height: 55px;
    padding: 4px 6px 4px clamp(15px, 8vw, 31px);
    margin: 0 auto;
    border-radius: 32px;
    background: white;
    color: #19192d;
  }
  #mobile-footer-apply > .icon { width: 23px; height: 23px; stroke-width: 1.45; }
  #mobile-footer-apply input {
    min-width: 0;
    min-height: 44px;
    flex: 1;
    border: 0;
    background: transparent;
    color: #212121;
    font-size: 1rem;
  }
  #mobile-footer-apply input::placeholder {
    color: #62626b;
    font-size: .82rem;
    font-style: italic;
  }
  #mobile-footer-apply input:focus-visible { outline-offset: -2px; }
  #mobile-footer-apply button {
    display: grid;
    flex: none;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #d65800;
    color: white;
  }
  #mobile-footer-apply button:hover { background: #ac4300; }
  #mobile-footer-apply button .icon { width: 23px; height: 23px; stroke-width: 1.5; }

  .footer-links { padding: 20px 15px 30px; }
  .footer-logo { display: table; margin: 0 0 12px; }
  .footer-logo img { display: block; width: 180px; height: auto; max-width: 100%; }
  .footer-links details { border-top: 1px solid #dedede; }
  .footer-links details:last-child { border-bottom: 1px solid #dedede; }
  .footer-links summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 46px;
    gap: 10px;
    cursor: pointer;
    list-style: none;
    font: 650 1.03rem/1.35 var(--sans);
    color: #151515;
  }
  .footer-links summary::-webkit-details-marker { display: none; }
  .footer-links summary::after {
    content: '';
    width: 13px;
    height: 13px;
    flex: none;
    background: linear-gradient(currentColor, currentColor) center / 100% 1px no-repeat,
                linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat;
  }
  .footer-links details[open] summary::after { background-size: 100% 1px, 0 0; }
  .footer-links details :is(nav, .footer-contact) { display: grid; margin-bottom: 12px; }
  .footer-links details :is(a, button) {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 6px 3px;
    color: #790a07;
    font-size: .9rem;
    text-align: left;
  }
  .footer-contact address { padding: 8px 3px; font-size: .9rem; font-style: normal; }
  .footer-legal {
    padding: 18px 16px max(30px, env(safe-area-inset-bottom));
    border-top: 1px solid #ececec;
    color: #363641;
    text-align: center;
    font-size: .83rem;
    line-height: 1.5;
  }
  .footer-legal p + p { margin-top: 6px; }
}
