/* Keep all shared footer columns available on the calculator, including mobile. */
.site-footer .footer-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px clamp(20px,4vw,80px);margin-right:0;max-width:100%}
.site-footer .footer-links>div{display:flex;min-width:0;white-space:normal}
.site-footer .footer-wordmark{grid-column:1/-1;font-size:36px;font-weight:700;color:#fff}
.home-footer .home-footer__identity img,.site-footer .footer-brand img,.vacancy-footer [data-vacancy-image="footer.image2"]{filter:brightness(0) invert(1)}
@media(max-width:700px){.site-footer .footer-links{width:100%;margin-top:30px;gap:20px 12px}.site-footer .footer-links>div{font-size:12px;gap:14px}.site-footer .footer-links strong{font-size:13px}.site-footer .footer-links a{overflow-wrap:anywhere}}

.site-footer{isolation:isolate;overflow:hidden}
.shared-footer-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:right bottom;opacity:.2;z-index:-1;pointer-events:none}
@media(max-width:700px){.site-footer .footer-bottom{display:flex;flex-wrap:wrap;gap:10px 20px}.site-footer .footer-bottom span+span{display:inline}}

/* Shared navigation accepts any number of columns and links, wrapping by rows. */
:is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-columns{display:grid;grid-template-columns:repeat(var(--footer-columns,3),minmax(0,1fr));gap:30px;width:100%;min-width:0;white-space:normal}
:is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-column{display:flex;flex-direction:column;align-items:flex-start;gap:14px;min-width:0;margin:0}
:is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-column :is(h3,a){max-width:100%;margin:0;overflow-wrap:anywhere;white-space:normal;line-height:1.4}
.site-footer .footer-links{grid-template-columns:minmax(0,1fr);width:760px;min-width:0}
.site-footer .footer-links>.shared-footer-columns{display:grid}
.site-footer .shared-footer-column h3{font-size:14px;font-weight:600;color:#fff}
.site-footer .shared-footer-column a{font-size:14px;font-weight:600}
.vacancy-page .shared-footer-columns{gap:calc(30 * var(--vacancy-unit))}
.vacancy-page .shared-footer-column{gap:calc(12 * var(--vacancy-unit))}
.vacancy-page .shared-footer-column h3{font-size:calc(20 * var(--vacancy-unit));font-weight:600;color:#c1c0c6}
.vacancy-page .shared-footer-column a{font-size:calc(16 * var(--vacancy-unit));font-weight:500;color:#7b7688}
:is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-column a:hover{color:#fff}
@media(max-width:700px){
 :is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-columns{gap:24px 12px}
 .vacancy-page .shared-footer-column{gap:12px}
 .vacancy-page .shared-footer-column h3{font-size:14px}
 .vacancy-page .shared-footer-column a,.site-footer .shared-footer-column a{font-size:12px}
 .site-footer .shared-footer-column h3{font-size:13px}
}
:is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-columns[hidden]{display:none}

/* Center the visible figure within the narrow footer instead of cropping its head. */
@media(max-width:700px){
 :is(.home-footer,.site-footer,.vacancy-footer) .shared-footer-art{
  position:absolute;inset:auto;left:62%;bottom:0;right:auto;top:auto;
  width:clamp(420px,160vw,680px);height:auto;aspect-ratio:960/526;
  transform:translateX(-45%);object-fit:contain;object-position:center bottom;pointer-events:none;
 }
 .vacancy-footer .shared-footer-art>img{width:100%;height:100%;object-fit:contain}
}
