.site-footer { margin-block: clamp(48px, 6vw, 96px) var(--frame); }
.site-footer a { text-decoration: none; }
.footer-desks { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(12px,1.3vw,24px); }
.footer-letter, .footer-directory { border-radius: clamp(20px,2vw,32px); padding: clamp(24px,2.8vw,52px); min-width: 0; }
.footer-letter { display: flex; flex-direction: column; align-items: flex-start; background: #15439f; color: #fff; }
:root[data-theme='dark'] .footer-letter { background: #153b80; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: #fff; font-size: 1.25rem; font-weight: 720; letter-spacing: -.03em; }
.footer-brand .brand-mark { width: 44px; height: 32px; }
.footer-letter h2 { margin-top: clamp(28px,3.4vw,65px); color: white; font-size: clamp(33px,3.35vw,63px); line-height: 1.08; font-weight: 680; letter-spacing: -.05em; }
.footer-write-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 18px; margin-block: 20px clamp(32px,4vw,64px); }
.footer-enquiry, .footer-mail { display: inline-flex; align-items: center; min-height: 46px; font-weight: 600; }
.footer-enquiry { gap: 12px; border-radius: 999px; padding: 8px 20px; background: white; color: #153c82; }
.footer-enquiry:hover { background: #e6f1ff; }
.footer-mail { color: white; overflow-wrap: anywhere; padding-inline: 8px; border-radius: 8px; }
.footer-channels { container-type: inline-size; margin-top: auto; width: 100%; }
.footer-channels h3 { margin: 0 0 11px; color: #fff; font-size: 1rem; font-weight: 650; }
.footer-channels ul, .site-footer-phones { list-style: none; margin: 0; padding: 0; }
.footer-channels ul { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; max-width: 34rem; }
.footer-channels a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; height: 100%; padding: 9px 8px; border: 1px solid #fff; border-radius: 12px;
  background: #f2f7ff; color: #102b52; font-size: 1rem; line-height: 1.25; font-weight: 620;
}
.footer-channels a:hover, .footer-channels a:focus-visible { background: #fff; color: #0a3c85; box-shadow: 0 3px 10px rgb(0 23 80 / 18%); }
.footer-channels a:active { background: #d6e7ff; box-shadow: none; }
.footer-channels img { flex: none; width: 25px; height: 25px; }
:root[data-theme='dark'] .footer-channels a { background: #203351; color: #f3f7ff; border-color: #738caf; }
:root[data-theme='dark'] .footer-channels a:hover, :root[data-theme='dark'] .footer-channels a:focus-visible { background: #2c466c; border-color: #adc9eb; }
@container (max-width: 390px) {
  .footer-channels a { flex-direction: column; gap: 5px; padding: 10px 4px; font-size: .94rem; }
}
@container (max-width: 265px) {
  .footer-channels ul { grid-template-columns: 1fr; }
  .footer-channels a { flex-direction: row; justify-content: flex-start; gap: 12px; padding-inline: 16px; }
}
#footer-messenger-note { margin-top: 12px; max-width: 55ch; color: #dce8ff; font-size: .83rem; line-height: 1.55; }
.footer-letter :focus-visible { outline-color: white; }
.footer-directory { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.footer-directory h2 { color: var(--ink); font-size: clamp(25px,2.4vw,42px); line-height: 1.15; letter-spacing: -.045em; }
.footer-phone-hint { margin: 8px 0 20px; color: var(--muted); font-size: 1rem; }
.site-footer-phones li { border-top: 1px solid var(--line); }
.site-footer-phones a { display: grid; grid-template-columns: minmax(0,1fr) auto 12px; align-content: center; align-items: center; column-gap: clamp(8px,1.4vw,20px); padding: 11px 3px; min-height: 60px; color: var(--ink); border-radius: 4px; }
.site-footer-phones a:hover { color: var(--blue); }
.site-footer-phones a > span { grid-area: 1/1; align-self: end; font-size: 1rem; font-weight: 620; line-height: 1.3; }
.site-footer-phones a > small { grid-area: 2/1; margin-top: 2px; color: var(--muted); font-size: .83rem; line-height: 1.4; }
.site-footer-phones a > strong { grid-area: 1/2/3/3; font-size: clamp(1rem,1.28vw,1.45rem); font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.035em; }
.site-footer-phones a::after { content:''; grid-area: 1/3/3/4; width: 8px; height: 8px; border: solid currentColor; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.footer-colophon { display: flex; align-items: center; justify-content: space-between; gap: 12px 30px; flex-wrap: wrap; padding: 20px 8px; color: var(--muted); font-size: .88rem; }
.footer-colophon b { color: var(--ink); font-size: .94rem; }
.footer-colophon address { font-style: normal; }
.footer-public-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-public-links a { border-radius: 6px; padding-inline: 4px; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 860px) {
  .footer-desks { grid-template-columns: 1fr; }
  .footer-letter { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: start; column-gap: 28px; }
  .footer-brand { grid-area: 1/1; justify-self: start; }
  .footer-letter h2, .footer-write-actions { grid-column: 1; }
  .footer-letter h2 { margin-top: 16px; }
  .footer-write-actions { margin-bottom: 0; }
  .footer-channels { grid-area: 1/2/4/3; align-self: end; }
}
@media (max-width: 820px) {
  body:has(.mobile-actions) .site-footer { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
}
@media (max-width: 560px) {
  .footer-letter { display: flex; }
  .footer-directory, .footer-letter { padding: 22px 18px; }
  .footer-write-actions { margin-block: 16px 24px; gap: 0 12px; }
  .footer-colophon { padding-inline: 5px; }
  .footer-public-links { gap: 0 14px; }
  .site-footer-phones a { grid-template-columns: minmax(0,1fr) 16px; gap: 3px 8px; min-height: 72px; }
  .site-footer-phones a > strong { grid-area: 2/1; font-size: 1.15rem; }
  .site-footer-phones a > small { grid-area: 3/1; margin: 0; }
  .site-footer-phones a::after { grid-area: 1/2/4/3; justify-self: center; }
}
