.cz-site-footer {
  --cz-footer-bg: #101b2c;
  --cz-footer-panel: #17253a;
  --cz-footer-text: #e8edf5;
  --cz-footer-muted: #aab7c8;
  --cz-footer-line: rgba(210, 224, 242, .15);
  --cz-footer-accent: #48d7b5;
  box-sizing: border-box;
  clear: both;
  width: 100%;
  margin: clamp(36px, 6vw, 76px) 0 0;
  color: var(--cz-footer-text);
  background: var(--cz-footer-bg);
  font: inherit;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
}
.cz-site-footer *, .cz-site-footer *::before, .cz-site-footer *::after { box-sizing: border-box; }
.cz-site-footer--light {
  --cz-footer-bg: #f5f7fa;
  --cz-footer-panel: #fff;
  --cz-footer-text: #172338;
  --cz-footer-muted: #58677b;
  --cz-footer-line: rgba(23, 35, 56, .13);
}
.cz-footer__inner { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: clamp(38px, 5vw, 66px) 0 20px; }
.cz-footer__main { display: grid; grid-template-columns: minmax(220px, 1.45fr) repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 54px); }
.cz-site-footer[data-columns="2"] .cz-footer__main { grid-template-columns: minmax(220px, 1.45fr) repeat(2, minmax(0, 1fr)); }
.cz-footer__brand { max-width: 380px; }
.cz-footer__brand-link { display: inline-flex; align-items: center; min-height: 38px; margin: 0 0 16px; color: var(--cz-footer-text); text-decoration: none; }
.cz-footer__brand-link:hover { color: var(--cz-footer-text); text-decoration: none; }
.cz-footer__brand-name { font-size: clamp(22px, 2vw, 28px); font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.cz-footer__logo { display: block; width: auto; max-width: 190px; max-height: 54px; object-fit: contain; }
.cz-footer__description { color: var(--cz-footer-muted); font-size: 14px; line-height: 1.75; }
.cz-footer__description p { margin: 0 0 10px; }
.cz-footer__description p:last-child { margin-bottom: 0; }
.cz-footer__description a { color: var(--cz-footer-accent); text-decoration: underline; text-underline-offset: 3px; }
.cz-footer__column { min-width: 0; }
.cz-footer__heading { margin: 4px 0 17px; color: var(--cz-footer-text); font: inherit; font-size: 13px; font-weight: 750; letter-spacing: .09em; line-height: 1.4; text-transform: uppercase; }
.cz-footer__links { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
.cz-footer__links li { margin: 0; padding: 0; list-style: none; }
.cz-footer__links a { display: inline-block; color: var(--cz-footer-muted); font-size: 14px; line-height: 1.55; text-decoration: none; text-underline-offset: 4px; transition: color .18s ease, transform .18s ease; }
.cz-footer__links a:hover { color: var(--cz-footer-accent); text-decoration: underline; transform: translateX(2px); }
.cz-footer__social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.cz-footer__social a { display: inline-flex; align-items: center; min-height: 32px; padding: 5px 10px; border: 1px solid var(--cz-footer-line); border-radius: 999px; color: var(--cz-footer-muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.cz-footer__social a:hover { border-color: var(--cz-footer-accent); color: var(--cz-footer-accent); }
.cz-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: clamp(34px, 5vw, 58px); padding-top: 18px; border-top: 1px solid var(--cz-footer-line); }
.cz-footer__copyright { margin: 0; color: var(--cz-footer-muted); font-size: 12px; line-height: 1.6; }
.cz-footer__top { display: inline-flex; align-items: center; gap: 7px; color: var(--cz-footer-muted); font-size: 12px; font-weight: 650; text-decoration: none; }
.cz-footer__top:hover { color: var(--cz-footer-accent); }
.cz-site-footer a:focus-visible { outline: 2px solid var(--cz-footer-accent); outline-offset: 4px; border-radius: 3px; }
body.cz-footer-hide-theme #colophon,
body.cz-footer-hide-theme #site-footer:not(.cz-site-footer),
body.cz-footer-hide-theme #footer:not(.cz-site-footer),
body.cz-footer-hide-theme #main-footer:not(.cz-site-footer),
body.cz-footer-hide-theme .site-footer:not(.cz-site-footer),
body.cz-footer-hide-theme .elementor-location-footer,
body.cz-footer-hide-theme .hfe-site-footer,
body.cz-footer-hide-theme .ast-footer-overlay,
body.cz-footer-hide-theme .ast-small-footer,
body.cz-footer-hide-theme .site-below-footer-wrap,
body.cz-footer-hide-theme .ct-footer,
body.cz-footer-hide-theme .fusion-footer,
body.cz-footer-hide-theme .wp-site-blocks > footer.wp-block-template-part:not(.cz-site-footer) { display: none !important; }
@media (max-width: 900px) {
  .cz-footer__main, .cz-site-footer[data-columns="2"] .cz-footer__main { grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr)); }
  .cz-footer__brand { grid-column: 1 / -1; max-width: 620px; }
}
@media (max-width: 600px) {
  .cz-footer__inner { width: min(100% - 36px, 520px); padding-top: 34px; }
  .cz-footer__main, .cz-site-footer[data-columns="2"] .cz-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .cz-footer__brand { grid-column: 1 / -1; }
  .cz-footer__heading { margin-bottom: 12px; }
  .cz-footer__bottom { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .cz-footer__links a { transition: none; }
}

/* Hide duplicate block-theme footer parts only when Calculaza's footer is active. */
body.cz-footer-hide-theme .wp-site-blocks > footer.wp-block-template-part:not(.cz-site-footer),
body.cz-footer-hide-theme .wp-site-blocks > footer:not(.cz-site-footer),
body.cz-footer-hide-theme footer.wp-block-template-part:not(.cz-site-footer) { display:none !important; }
