/* Shared identity: homepage palette, typography, links and footer. */
.w313-site-footer{--navy:#16354b;--ink:#203e50;--green:#245e53;--gold:#a17d35;--line:#dce5e1;background:#f2f6f3;color:var(--ink);font:15px/1.7 system-ui,-apple-system,"Segoe UI",sans-serif;clear:both}
.w313-site-footer *{box-sizing:border-box}
.w313-site-footer .wrap{width:calc(100% - 80px);max-width:1200px;margin:0 auto}
.w313-site-footer a{color:var(--green);text-decoration:none;overflow-wrap:anywhere}
.w313-site-footer a:hover{text-decoration:underline;text-underline-offset:4px}
.w313-site-footer a:focus-visible{outline:3px solid var(--gold);outline-offset:4px}
.w313-site-footer .footer-main{display:grid;grid-template-columns:1.2fr .8fr 1fr;gap:55px;padding:50px 0 38px}
.w313-site-footer .footer-main h3{font:700 13px/1.5 system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;margin:0 0 16px;color:var(--navy)}
.w313-site-footer .footer-main h3.w313-social-title{margin-top:25px}
.w313-site-footer .footer-main ul{display:grid;gap:9px;list-style:none;padding:0;margin:0}
.w313-site-footer .footer-main li{list-style:none;padding:0;margin:0}
.w313-site-footer .footer-main p{margin:18px 0;max-width:340px;font:inherit}
.w313-site-footer .footer-brand{display:flex;align-items:center;gap:15px;color:var(--navy)}
.w313-site-footer .footer-brand img{width:67px;height:70px;object-fit:contain;margin:0}
.w313-site-footer .footer-brand strong{font:700 18px/1.4 system-ui,sans-serif;letter-spacing:.025em}
.w313-site-footer .footer-counter{display:flex;justify-content:space-between;align-items:center;gap:28px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:25px 0}
.w313-site-footer .w313-counter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;min-width:0}
.w313-site-footer .counter-block{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.w313-site-footer .counter-number{font:400 clamp(24px,2.6vw,34px)/1.2 Georgia,"Times New Roman",serif;color:var(--navy);white-space:nowrap}
.w313-site-footer .counter-description{font-size:12px;color:#566a72}
.w313-site-footer .footer-counter>span{font-size:13px;max-width:330px;color:#566a72}
.w313-site-footer .footer-bottom{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:22px 0;font-size:12px;color:#566a72}
.w313-site-footer .w313-legal-links{display:flex;gap:18px;flex-wrap:wrap}
body.w313-native-page :is(.tdc-footer-wrap,.td-footer-wrap,.td-sub-footer-container){display:none!important}
body.w313-design .ewk-article-metrics{background:var(--sage);border-color:var(--line);color:var(--ink)}
body.w313-design .w313-payment-page{padding-bottom:55px}
body.w313-design .w313-payment-content{max-width:1120px;margin:auto;min-width:0}
body.w313-design :is(#kashf-payment,#kashf-external-payment){--navy:#16354b;--ink:#203e50;--teal:#245e53;--gold:#a17d35;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
body.w313-design :is(#kashf-payment,#kashf-external-payment) :is(h1,h2,h3){font-family:Georgia,"Times New Roman",serif;line-height:1.25;word-break:normal;overflow-wrap:normal}
body.w313-design :is(#kashf-payment,#kashf-external-payment) :is(input,select,textarea){max-width:100%;box-sizing:border-box}
body.w313-design :is(#kashf-payment,#kashf-external-payment) :is(a,button){overflow-wrap:anywhere}
body.w313-design :is(#kashf-payment,#kashf-external-payment) .simpay-payment-btn{background:#245e53;border-radius:4px;font-family:inherit}
body.w313-learning-page .w313-shop-filters{border-bottom:2px solid var(--gold);padding-bottom:22px}
body.w313-library-page .catalog-header{background:linear-gradient(180deg,#f7f9f7,white)}
@media(max-width:900px){.w313-site-footer .footer-main{gap:28px}.w313-site-footer .footer-counter{align-items:flex-start;flex-direction:column}.w313-site-footer .w313-counter-grid{gap:25px}}
@media(max-width:680px){.w313-site-footer .wrap{width:calc(100% - 40px)}.w313-site-footer .footer-main{grid-template-columns:minmax(0,1fr);gap:28px;padding:35px 0 28px}.w313-site-footer .footer-bottom{align-items:flex-start;flex-direction:column;gap:12px}.w313-site-footer .w313-counter-grid{width:100%;gap:14px}.w313-site-footer .counter-number{font-size:25px}.w313-site-footer .counter-description{font-size:11px}body.w313-design :is(#kashf-payment,#kashf-external-payment) :is(header,.ewk-external-hero){padding:28px 20px!important}}
@media(max-width:360px){.w313-site-footer .w313-counter-grid{grid-template-columns:minmax(0,1fr);gap:18px}}
