.ct-footer {
  display: none;
}

.dietlo-footer {
  background: var(--dietlo-text, #181b22);
  color: #e8ede9;
  font-family: var(--dietlo-font-body);
}

/* Shell serwisu = `.dietlo-wrap` (base-pages.css). Stopka musi trzymac ta sama
   szerokosc, inaczej jej krawedzie nie trafiaja w krawedzie tresci na kazdej
   podstronie. Patrz docs/audyt-spojnosci-storefront-2026-07-28.md sekcja 2. */
.dietlo-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 0.82fr 0.95fr 1.25fr;
  gap: 36px;
  padding: 56px 24px 48px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dietlo-footer__nav-heading {
  font-family: var(--dietlo-font-body);
  font-size: var(--dietlo-text-sm);
  font-weight: 700;
  color: #e8ede9;
  margin: 0 0 14px;
  letter-spacing: var(--dietlo-letter-eyebrow);
  line-height: 1.2;
  text-transform: uppercase;
}

.dietlo-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dietlo-footer__nav-list a {
  font-family: var(--dietlo-font-body);
  font-size: var(--dietlo-text-sm);
  font-weight: 500;
  color: #b6bec4;
  text-decoration: none;
  line-height: 1.55;
  transition: color 0.15s;
}

.dietlo-footer__nav-list a:hover,
.dietlo-footer__nav-list a:focus-visible {
  color: #fff;
}

.dietlo-footer__logo {
  display: inline-block;
  font-family: var(--dietlo-font-display);
  font-size: var(--dietlo-text-3xl);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: var(--dietlo-letter-display, -0.015em);
}

.dietlo-footer__tagline {
  max-width: 36ch;
  margin: 8px 0 10px;
  font-family: var(--dietlo-font-body);
  font-size: var(--dietlo-text-sm);
  font-weight: 400;
  color: #b6bec4;
  line-height: 1.6;
}

.dietlo-footer__expertise {
  max-width: 36ch;
  margin: 0 0 16px;
  font-family: var(--dietlo-font-body);
  font-size: var(--dietlo-text-sm);
  font-weight: 400;
  color: #b6bec4;
  line-height: 1.6;
}

.dietlo-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 20px;
  color: #9aa3a9;
  font-size: var(--dietlo-text-sm);
  line-height: 1.5;
}

.dietlo-footer__contact a {
  color: #b6bec4;
  font-weight: 500;
  text-decoration: none;
}

.dietlo-footer__contact a:hover,
.dietlo-footer__contact a:focus-visible {
  color: var(--dietlo-green, #55b947);
}

.dietlo-footer__social {
  display: flex;
  gap: 10px;
}

.dietlo-footer__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--dietlo-radius-control);
  background: rgba(255, 255, 255, 0.08);
  color: #e8ede9;
  text-decoration: none;
  transition: background 0.18s;
}

.dietlo-footer__social a:hover {
  background: var(--dietlo-green, #55b947);
  color: #fff;
}

.dietlo-footer__nl-heading {
  font-family: var(--dietlo-font-display);
  font-size: var(--dietlo-text-xl);
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px;
  letter-spacing: var(--dietlo-letter-display, -0.015em);
}

.dietlo-footer__nl-sub {
  font-size: var(--dietlo-text-md);
  color: #9aa3a9;
  margin: 0 0 18px;
  line-height: 1.6;
}

.dietlo-footer__nl-form {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr) auto;
  gap: 8px;
}

.dietlo-footer__nl-form input[type="text"],
.dietlo-footer__nl-form input[type="email"] {
  min-width: 0;
  padding: 11px 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--dietlo-radius-pill);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  font-size: var(--dietlo-text-lg);
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, background 0.18s;
}

.dietlo-footer__nl-form input[type="text"]::placeholder,
.dietlo-footer__nl-form input[type="email"]::placeholder {
  color: #6b7580;
}

.dietlo-footer__nl-form input[type="text"]:focus,
.dietlo-footer__nl-form input[type="email"]:focus {
  border-color: var(--dietlo-green, #55b947);
  background: rgba(85, 185, 71, 0.08);
}

/* grid-equal-height: off - consent checkbox anchors to the first line of legal copy */
.dietlo-footer__nl-consent {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 2px 0 4px;
  color: #b6bec4;
  font-size: var(--dietlo-text-xs);
  line-height: 1.45;
}

.dietlo-footer__nl-consent-input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--dietlo-green, #55b947);
}

.dietlo-footer__nl-consent a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dietlo-footer__nl-consent a:hover,
.dietlo-footer__nl-consent a:focus-visible {
  color: var(--dietlo-green, #55b947);
}

.dietlo-footer__nl-consent-details {
  grid-column: 1 / -1;
  margin: -2px 0 6px 28px;
  color: #b6bec4;
  font-size: var(--dietlo-text-xs);
  line-height: 1.5;
}

.dietlo-footer__nl-consent-details summary {
  width: fit-content;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dietlo-footer__nl-consent-details summary:hover,
.dietlo-footer__nl-consent-details summary:focus-visible {
  color: var(--dietlo-green, #55b947);
}

.dietlo-footer__nl-consent-details p {
  margin: 8px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--dietlo-radius-control);
  background: rgba(255, 255, 255, 0.05);
}

.dietlo-footer__nl-consent-details a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.dietlo-footer__nl-consent-details a:hover,
.dietlo-footer__nl-consent-details a:focus-visible {
  color: var(--dietlo-green, #55b947);
}

.dietlo-footer__nl-form .dietlo-nl-btn {
  padding: 11px 24px;
  background: var(--dietlo-green-cta, #2e7c28);
  color: #fff;
  border: none;
  border-radius: var(--dietlo-radius-pill);
  font-size: var(--dietlo-text-base);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s;
}

.dietlo-footer__nl-form .dietlo-nl-btn:hover {
  background: #256b21;
}

.dietlo-footer__nl-form .dietlo-nl-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

.dietlo-footer__nl-form .dietlo-nl-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.dietlo-footer__nl-form .dietlo-nl-btn:disabled:hover {
  background: var(--dietlo-green-cta, #2e7c28);
}

.dietlo-footer__nl-msg {
  width: 100%;
  margin: 8px 0 0;
  font-size: var(--dietlo-text-sm);
  min-height: 18px;
  line-height: 1.4;
}

.dietlo-footer__nl-msg--ok {
  color: var(--dietlo-green, #55b947);
}

.dietlo-footer__nl-msg--err {
  color: #f87171;
}

.dietlo-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dietlo-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.dietlo-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
}

.dietlo-footer__legal a {
  font-size: var(--dietlo-text-sm);
  color: #9aa3a9;
  text-decoration: none;
  line-height: 1.6;
  transition: color 0.15s;
}

.dietlo-footer__legal a:hover {
  color: #fff;
}

.dietlo-footer__copy {
  font-size: var(--dietlo-text-sm);
  color: #6b7580;
  margin: 0;
  line-height: 1.6;
}

/* Close the gap between the last Home page section and the footer */
.home.page .ct-container-full {
  padding-bottom: 0;
}

.home.page .entry-content.is-layout-constrained > :last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .dietlo-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .dietlo-footer__newsletter {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .dietlo-footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 20px 32px;
  }

  .dietlo-footer__newsletter {
    order: 1;
  }

  .dietlo-footer__brand {
    order: 2;
  }

  .dietlo-footer__nav {
    order: 3;
  }

  .dietlo-footer__topics {
    order: 4;
  }

  .dietlo-footer__nl-form {
    grid-template-columns: 1fr;
  }

  .dietlo-footer__nl-form input[type="text"],
  .dietlo-footer__nl-form input[type="email"],
  .dietlo-footer__nl-form .dietlo-nl-btn {
    width: 100%;
    min-width: 0;
  }

  .dietlo-footer__bottom-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 20px;
  }
}
