.site-footer { flex: 0 0 auto; width: 100%; border-top: 1px solid #e1e9f3; background: #fff; color: #122338; }
.site-footer__inner { width: min(1220px,calc(100% - 40px)); margin: 0 auto; padding: 40px 28px 24px; }
.site-footer__grid { display: grid; grid-template-columns: minmax(260px,1.55fr) repeat(2,minmax(140px,1fr)) minmax(180px,1.2fr); gap: 32px; align-items: start; }
.site-footer__grid > * { min-width: 0; }
.site-footer__identity > p { max-width: 265px; margin: 14px 0 18px; color: #586d84; font-size: 14px; line-height: 1.65; }
.site-footer .brand { max-width: 100%; }
.site-footer a, .site-footer button { color: #122338; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.site-footer__compose { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 0; }
.site-footer .qadm-ui-icon { display: block; width: 18px; height: 18px; flex: 0 0 auto; fill: none; stroke: #3157ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.site-footer__nav h2 { margin: 7px 0 14px; color: #122338; font-size: 15px; font-weight: 550; line-height: 1.6; }
.site-footer__nav ul { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a, .site-footer__nav button { display: block; width: fit-content; max-width: 100%; min-height: 32px; padding: 4px 0; text-align: left; }
.site-footer__nav button { border: 0; border-radius: 0; background: transparent; font-family: inherit; font-weight: 400; cursor: pointer; }
.site-footer a:hover, .site-footer button:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-footer .brand:hover { text-decoration: none; }
.site-footer a:focus-visible, .site-footer button:focus-visible { outline: 2px solid #3157ff; outline-offset: 4px; border-radius: 2px; }
.site-footer__bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-top: 32px; padding-top: 22px; border-top: 1px solid #e1e9f3; color: #586d84; }
.site-footer__notice { max-width: 760px; }
.site-footer__notice p { margin: 0; font-size: 13px; line-height: 1.75; }
.site-footer__notice p + p { margin-top: 4px; }
.site-footer__bottom small { flex: 0 0 auto; max-width: 100%; font-size: 12px; line-height: 1.75; }
@media (max-width: 1000px) {
    .site-footer__grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 40px; }
    .site-footer__bottom { align-items: start; flex-direction: column; gap: 14px; }
}
@media (max-width: 720px) {
    .site-footer__inner { width: calc(100% - 16px); padding: 32px 20px 24px; }
}
@media (max-width: 640px) {
    .site-footer__grid { gap: 24px 20px; }
    .site-footer__identity, .site-footer__legal { grid-column: 1 / -1; }
    .site-footer__identity > p { max-width: none; margin-bottom: 10px; }
    .site-footer__nav h2 { margin-top: 0; }
    .site-footer__nav a, .site-footer__nav button { min-height: 36px; }
    .site-footer__legal ul { display: flex; flex-wrap: wrap; gap: 4px 24px; }
    .site-footer__bottom { margin-top: 24px; padding-top: 20px; }
}
