/* Shared forest footer. All selectors are isolated from calculator and Hub styles. */
footer.kub-forest-footer{--kf-gold:#d6ae57;position:relative;isolation:isolate;display:block;box-sizing:border-box;width:100%;max-width:none;margin:140px 0 0;padding:0;border:0;border-radius:0;background:#102b1e;color:#f5f3e9;font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:16px;line-height:1.5;text-align:left}
.kub-forest-footer *{box-sizing:border-box}
.kub-forest-footer .kf-scene{position:absolute;z-index:-2;inset:0;overflow:hidden;background:linear-gradient(90deg,#071e1466,#071e1499 48%,#071e1466),url('/assets/footer-forest.webp') center 55%/cover no-repeat}
.kub-forest-footer .kf-scene:after{content:'';position:absolute;inset:auto 0 0;height:160px;background:linear-gradient(transparent,#0a1f15)}
.kub-forest-footer .kf-wave{position:absolute;z-index:-1;top:-61px;left:0;width:100%;height:63px;overflow:visible}
.kub-forest-footer .kf-logs{position:absolute;z-index:-1;bottom:84px;left:0;width:min(33vw,470px);height:auto;pointer-events:none;filter:brightness(.86);mask-image:linear-gradient(0deg,#000 80%,transparent)}
.kub-forest-footer .kf-content{display:grid;grid-template-columns:1.28fr 1fr 1fr;gap:0;max-width:1440px;margin:0 auto;padding:45px 48px 108px;min-height:420px}
.kub-forest-footer .kf-about{padding-right:35px}
.kub-forest-footer a{color:inherit;text-decoration:none;text-underline-offset:4px}
.kub-forest-footer .kf-brand{display:flex;align-items:center;gap:22px;width:fit-content}
.kub-forest-footer .kf-emblem{flex:none;width:108px;height:108px;filter:drop-shadow(0 3px 9px #0003)}
.kub-forest-footer .kf-brand strong{display:block;font-family:Georgia,'Times New Roman',serif;font-size:clamp(28px,3vw,44px);font-weight:700;letter-spacing:-1.5px;line-height:1.2;white-space:nowrap}
.kub-forest-footer .kf-brand strong>span{color:var(--kf-gold)}
.kub-forest-footer .kf-tagline{display:block;max-width:310px;margin-top:7px;font-size:19px;line-height:1.3;color:#e0e3d5}
.kub-forest-footer .kf-description{max-width:410px;margin:22px 0 23px;font-size:16px;line-height:1.4;color:#eeeee2}
.kub-forest-footer .kf-gold-rule{display:block;width:145px;height:2px;background:linear-gradient(90deg,var(--kf-gold),#d6ae5700)}
.kub-forest-footer .kf-resources{padding:10px 27px 15px;border-left:1px solid #cfbd7866;border-right:1px solid #cfbd7866}
.kub-forest-footer h2{display:flex;align-items:center;gap:14px;margin:0 0 22px;padding:0;color:#f6f3e8;font-family:inherit;font-size:20px;font-weight:650;line-height:1.35;letter-spacing:0}
.kub-forest-footer h2>svg{flex:none;width:30px;height:34px;color:var(--kf-gold)}
.kub-forest-footer .kf-resources>a{display:flex;align-items:center;gap:13px;min-height:44px;padding:9px 0;font-size:16px;line-height:1.4}
.kub-forest-footer .kf-resources>a>svg:first-child{display:none;width:24px;height:26px;color:var(--kf-gold);flex:none}
.kub-forest-footer .kf-resources>a>svg:last-child{flex:none;width:18px;height:20px;margin-left:auto;color:#eeeee0}
.kub-forest-footer .kf-connect{padding:10px 0 0 28px}
.kub-forest-footer .kf-share-actions{display:flex;gap:20px;margin:24px 0 28px;justify-content:center}
.kub-forest-footer .kf-share-actions>a,.kub-forest-footer .kf-share-actions>button{display:inline-flex;align-items:center;justify-content:center;flex:none;width:58px;height:58px;min-height:44px;padding:12px;border:1px solid #dbe0c32b;border-radius:15px;background:linear-gradient(145deg,#f0efcf1c,#d6e2d00c);box-shadow:inset 0 0 0 2px #c8d6be08;color:#f3f2e4;cursor:pointer}
.kub-forest-footer .kf-share-actions svg{width:31px;height:31px}
.kub-forest-footer .kf-share-actions .kf-telegram{color:#36a8d8}
.kub-forest-footer .kf-share-actions .kf-facebook{color:#638ed5}
.kub-forest-footer .kf-share-status{margin:0 0 15px;font-size:14px;color:#f5d891}
.kub-forest-footer .kf-share-status:empty{display:none}
.kub-forest-footer .kf-legal{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding-top:23px;border-top:2px solid;border-image:linear-gradient(90deg,#d6ae5744,var(--kf-gold),#d6ae5700) 1}
.kub-forest-footer .kf-legal>a{display:flex;flex-direction:column;align-items:center;gap:9px;padding:0 2px;text-align:center;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.kub-forest-footer .kf-legal svg{width:30px;height:33px;color:var(--kf-gold)}
.kub-forest-footer .kf-bottom{display:flex;align-items:center;gap:22px;min-height:84px;max-width:none;padding:20px max(48px,calc((100% - 1344px)/2));border-top:2px solid var(--kf-gold);background:#081b12b8;color:#e6e8dd;font-size:16px}
.kub-forest-footer .kf-copyright{white-space:nowrap}
.kub-forest-footer .kf-contact{font-size:14px;color:#c6d0bf}
.kub-forest-footer .kf-motto{display:flex;align-items:center;gap:14px;margin-left:auto;color:var(--kf-gold);font-family:'Segoe Print','Bradley Hand',Georgia,cursive;font-style:italic;font-size:18px}
.kub-forest-footer .kf-motto svg{width:32px;height:35px}
.kub-forest-footer a:hover{text-decoration:underline}
.kub-forest-footer .kf-share-actions>a:hover,.kub-forest-footer .kf-share-actions>button:hover{background:#d7dfc52b;border-color:var(--kf-gold)}
.kub-forest-footer :is(a,button):focus-visible{outline:3px solid #f1c76c;outline-offset:5px}
.kub-forest-footer>.analytics-settings{display:block;max-width:calc(100% - 40px);margin:0 auto;padding:10px 15px;background:#102b1e;border:0;color:#e2e8d9}
@media(min-width:1600px){.kub-forest-footer .kf-content{padding-top:55px;padding-bottom:125px}}
@media(min-width:761px) and (max-width:1100px){.kub-forest-footer .kf-content{grid-template-columns:1.1fr 1fr 1fr;padding:30px 25px 110px}.kub-forest-footer .kf-emblem{width:75px;height:75px}.kub-forest-footer .kf-brand{gap:12px}.kub-forest-footer .kf-brand strong{font-size:28px}.kub-forest-footer .kf-tagline{font-size:16px}.kub-forest-footer .kf-about{padding-right:22px}.kub-forest-footer .kf-resources{padding-left:20px;padding-right:20px}.kub-forest-footer .kf-connect{padding-left:20px}.kub-forest-footer h2{font-size:17px;gap:9px}.kub-forest-footer .kf-share-actions{gap:12px}.kub-forest-footer .kf-share-actions>a,.kub-forest-footer .kf-share-actions>button{width:50px;height:50px}.kub-forest-footer .kf-bottom{padding:20px 25px}.kub-forest-footer .kf-contact{display:none}}
@media(max-width:760px){
 footer.kub-forest-footer{margin-top:150px;border-radius:0 0 26px 26px;border-bottom:1px solid #e2cd8e}
 .kub-forest-footer:before{content:'';position:absolute;z-index:-3;top:-115px;left:0;right:0;height:130px;background:url('/assets/footer-forest.webp') center top/cover no-repeat;mask-image:linear-gradient(transparent,#000 48%)}
 .kub-forest-footer .kf-wave{top:-35px;height:37px}
 .kub-forest-footer .kf-scene{border-radius:0 0 26px 26px;background:linear-gradient(#102b1ee6,#102b1ed9),url('/assets/footer-forest.webp') center bottom/auto 100% no-repeat}
 .kub-forest-footer .kf-scene:after{height:110px;background:url('/assets/footer-trees.svg') center bottom/auto 110px repeat-x;opacity:.7}
 .kub-forest-footer .kf-logs{display:none;top:137px;bottom:auto;right:51px;left:auto;width:280px;max-width:71%;transform:scaleX(-1) rotate(-5deg);transform-origin:right center;opacity:.82;mask-image:linear-gradient(90deg,transparent,#000 60%);clip-path:inset(0 0 0 0)}
 .kub-forest-footer .kf-content{display:block;min-height:0;padding:15px 20px 0}
 .kub-forest-footer .kf-about{padding:0 0 17px}
 .kub-forest-footer .kf-brand{gap:15px;width:100%}
 .kub-forest-footer .kf-emblem{width:76px;height:76px}
 .kub-forest-footer .kf-brand>span{min-width:0}
 .kub-forest-footer .kf-brand strong{font-family:Inter,'Segoe UI',Arial,sans-serif;font-size:clamp(25px,6.7vw,38px);letter-spacing:-1px}
 .kub-forest-footer .kf-tagline{max-width:100%;font-size:14px;margin-top:5px}
 .kub-forest-footer .kf-description{display:none}
 .kub-forest-footer .kf-gold-rule{width:72%;height:1px;margin-top:15px}
 .kub-forest-footer .kf-resources{position:relative;max-width:100%;padding:0 0 27px;border:0}
 .kub-forest-footer .kf-resources>h2{display:none}
 .kub-forest-footer .kf-resources>a{gap:13px;max-width:88%;min-height:44px;padding:9px 0;font-size:15px;text-shadow:0 1px 6px #071a10}
 .kub-forest-footer .kf-resources>a>svg:first-child{display:block}
 .kub-forest-footer .kf-resources>a>svg:last-child{width:16px}
 .kub-forest-footer .kf-connect{padding:0}
 .kub-forest-footer .kf-sharing{display:flex;flex-wrap:wrap;align-items:center;gap:10px;position:relative;padding:12px 13px;border:1px solid #c3cba361;border-radius:16px;background:linear-gradient(135deg,#d0dbba19,#b6c4ab09);box-shadow:inset 0 0 0 3px #bccca008;backdrop-filter:blur(8px)}
 .kub-forest-footer .kf-sharing h2{flex:1;gap:10px;margin:0;font-size:14px;font-weight:650}
 .kub-forest-footer .kf-sharing h2>svg{width:25px;height:28px}
 .kub-forest-footer .kf-share-actions{gap:8px;margin:0}
 .kub-forest-footer .kf-share-actions>a,.kub-forest-footer .kf-share-actions>button{width:44px;height:44px;padding:9px;border-radius:10px}
 .kub-forest-footer .kf-share-actions svg{width:25px;height:25px}
 .kub-forest-footer .kf-share-status{flex:1 0 100%;margin:0}
 .kub-forest-footer .kf-legal{gap:0;margin-top:20px;padding:18px 0 0;border-top:1px solid #d7d8aa78;border-image:none}
 .kub-forest-footer .kf-legal>a{gap:7px;padding:0 12px;font-size:14px;min-height:70px}
 .kub-forest-footer .kf-legal>a+a{border-left:1px solid #d7d8aa78}
 .kub-forest-footer .kf-legal svg{width:25px;height:28px;color:#e1e4cf}
 .kub-forest-footer .kf-bottom{justify-content:center;min-height:104px;margin-top:8px;padding:13px 20px 54px;border:0;background:transparent;font-size:14px;gap:0}
 .kub-forest-footer .kf-copyright{display:flex;align-items:center;justify-content:center;gap:4px;width:100%;white-space:normal}
 .kub-forest-footer .kf-copyright:before,.kub-forest-footer .kf-copyright:after{content:'';height:1px;max-width:75px;flex:1;background:linear-gradient(90deg,transparent,#dad9b3);margin:0 10px 0 0}
 .kub-forest-footer .kf-copyright:after{transform:scaleX(-1);margin:0 0 0 10px}
 .kub-forest-footer .kf-motto,.kub-forest-footer .kf-contact{display:none}
}
@media(max-width:380px){.kub-forest-footer .kf-content{padding-left:16px;padding-right:16px}.kub-forest-footer .kf-brand{gap:11px}.kub-forest-footer .kf-emblem{width:65px;height:65px}.kub-forest-footer .kf-brand strong{font-size:25px}.kub-forest-footer .kf-sharing{justify-content:center}.kub-forest-footer .kf-sharing h2{flex:1 0 100%;justify-content:center}.kub-forest-footer .kf-legal>a{padding:0 7px;font-size:13px}}
@media print{footer.kub-forest-footer{display:none!important}}
