html body .fa-footer{margin-top:0;border-top:1px solid var(--fa-line);background:var(--fa-panel);color:var(--fa-muted);padding:0}
html body .fa-footer>.footer-grid{display:grid;grid-template-columns:1.3fr 1fr 1fr 1.2fr 1fr;gap:32px;align-items:start;max-width:1200px;margin:auto;padding:48px 32px 24px;border:0;font-size:14px;line-height:1.6}
html body .fa-footer nav{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0}.fa-footer nav h2{font-size:15px!important;line-height:1.4!important;margin:0 0 6px;font-weight:800;color:var(--fa-text)}html body .fa-footer a,html body .fa-footer button{font-size:14px;text-align:left;text-decoration:none;color:var(--fa-muted);background:none;border:0;padding:0;margin:0;line-height:1.55;cursor:pointer;overflow-wrap:anywhere}
html body .fa-footer a:hover,html body .fa-footer button:hover{color:var(--fa-accent);text-decoration:none}html body .fa-footer button:disabled{opacity:.5;cursor:default}.fa-footer .footer-brand p{font-size:14px;max-width:23ch;margin:16px 0 20px}.fa-footer .logo{display:flex;align-items:center;gap:8px;font-size:25px!important;font-weight:800;color:var(--fa-text)!important}.fa-footer .logo img{width:32px;height:32px}.fa-footer .logo b{color:var(--fa-accent)}html body .fa-footer .footer-support{display:inline-block;background:var(--fa-orange);color:#241600;padding:11px 20px;border-radius:10px;font-weight:800;text-decoration:none}.fa-footer [hidden]{display:none!important}
@media(max-width:1000px){html body .fa-footer>.footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px}.fa-footer .footer-brand{grid-column:1/-1}.fa-footer .footer-brand p{max-width:none}.fa-footer .footer-contacts{grid-column:1/-1}}
@media(max-width:600px){html body .fa-footer>.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:32px 20px 16px;gap:28px 20px}.fa-footer .footer-contacts{grid-column:auto}.fa-footer nav a,.fa-footer nav button{min-height:30px}}

/* Balance the document list without shortening legal titles. */
html body .fa-footer>.footer-grid{grid-template-columns:1.2fr 1fr 1fr 2.2fr 1.2fr;gap:24px;max-width:1280px}
html body .fa-footer nav[aria-label="Документы"]{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:10px 24px}
html body .fa-footer nav[aria-label="Документы"]>h2{grid-column:1/-1}
html body .fa-footer nav[aria-label="Документы"]>a{min-width:0;text-wrap:pretty}
html body .fa-footer .footer-contacts>a{display:flex;align-items:flex-start;gap:8px}
html body .fa-footer .footer-contacts>a::before{content:"";width:18px;height:18px;flex:0 0 18px;margin-top:3px;background:currentColor;mask:var(--contact-icon) center/contain no-repeat;-webkit-mask:var(--contact-icon) center/contain no-repeat}
html body .fa-footer .footer-contacts>a[href^="https://t.me/"]{--contact-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22m21%203-6%2018-5-7-7-4Z%22%2F%3E%3Cpath%20d%3D%22m10%2014%206-6%22%2F%3E%3C%2Fsvg%3E")}
html body .fa-footer .footer-contacts>a[href^="mailto:"],html body .fa-footer .footer-contacts>a[data-contact-mail]{--contact-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%2218%22%20height%3D%2214%22%20rx%3D%222%22%2F%3E%3Cpath%20d%3D%22m3%207%209%206%209-6%22%2F%3E%3C%2Fsvg%3E")}
html body .fa-footer .footer-contacts>a[href="https://t.me/freeapp_official"]{--contact-icon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.7%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M4%2010h4l12-6v16L8%2014H4Zm4%204%202%206h4l-2-4M8%2010v4%22%2F%3E%3C%2Fsvg%3E")}
@media(max-width:1100px){html body .fa-footer>.footer-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 24px}.fa-footer .footer-brand{grid-column:1/-1}html body .fa-footer nav[aria-label="Документы"]{grid-column:1/3;grid-row:3}html body .fa-footer .footer-contacts{grid-column:3;grid-row:3}}
@media(max-width:600px){html body .fa-footer>.footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 20px}html body .fa-footer nav[aria-label="Документы"]{grid-column:1/-1;grid-row:auto;gap:12px 20px}html body .fa-footer .footer-contacts{grid-column:1/-1;grid-row:auto}}

.site-footer [data-contact-legal],.fa-footer [data-contact-legal]{display:block;box-sizing:border-box;width:100%;max-width:1280px;grid-column:1/-1;text-align:center;margin:0 auto;padding:0 20px calc(8px / 3);font-size:12px;line-height:1.6;color:var(--text);opacity:.65;overflow-wrap:anywhere}

/* Compact footer actions, consistent with the brand caption. */
html body .fa-footer .footer-support{display:flex;box-sizing:border-box;width:min(100%,23ch);justify-content:center;align-items:center;text-align:center;white-space:nowrap;overflow-wrap:normal;min-height:44px;padding:11px 16px}
html body .fa-footer [data-contact-legal] [data-site-settings]{display:inline;font:inherit;line-height:inherit;color:inherit;white-space:nowrap;text-align:center;padding:0;border:0;background:none;vertical-align:baseline}
html body .fa-footer [data-contact-legal] [data-site-settings]:hover{color:var(--fa-accent)}
html body .fa-footer [data-contact-legal] [data-site-settings]:focus-visible{outline:2px solid var(--fa-accent);outline-offset:4px}

html:not([data-accessible]) body.fa-public .fa-footer [data-contact-legal] button[data-site-settings]{font-size:12px!important;line-height:1.6!important}

html body .fa-footer .footer-caption{display:flex;flex-direction:column;align-items:stretch;width:max-content;max-width:100%}
html body .fa-footer .footer-caption p{max-width:100%;width:auto}
html body .fa-footer .footer-caption .footer-support{width:100%}
html body .fa-back-top{position:fixed;right:24px;bottom:calc(24px + env(safe-area-inset-bottom,0px));z-index:30;display:flex;align-items:center;justify-content:center;width:48px;height:48px;padding:0;border:1px solid var(--fa-line,#62767d);border-radius:50%;background:transparent;color:var(--fa-orange,#ff9500);cursor:pointer;box-sizing:border-box;box-shadow:none}
html body .fa-back-top svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
html body .fa-back-top:hover{border-color:var(--fa-orange,#ff9500)}html body .fa-back-top:focus-visible{outline:2px solid var(--fa-orange,#ff9500);outline-offset:4px}html body .fa-back-top[hidden]{display:none}
@media(max-width:600px){html body .fa-back-top{right:16px;bottom:calc(16px + env(safe-area-inset-bottom,0px));width:44px;height:44px}}
