/* ==========================================================================
   zamowdruk.pl — szablon frontu (Joomla 6)
   Jasny motyw: granat + cyan, akcenty CMYK. Bez frameworków.
   Spis: 1. Tokeny  2. Baza  3. Narzędzia/przyciski  4. Topbar  5. Header
         6. Układ + sidebar  7. Hero  8. Kafle kategorii  9. Promocje
         10. Pasek zaufania  11. Stopka  12. Treść komponentu/błędy
         13. Responsywność  14. Oznaczanie placeholderów
   ========================================================================== */

/* 1. Tokeny ---------------------------------------------------------------- */
:root {
  --zd-navy: #12294a;
  --zd-navy-700: #1b3560;
  --zd-navy-900: #0b1b33;
  --zd-cyan: #1aa0c8;
  --zd-cyan-600: #1588b4;
  --zd-cyan-700: #0f6f96;
  --zd-cyan-50: #e8f5fa;
  --zd-cmyk-c: #00a3e0;
  --zd-cmyk-m: #e5007e;
  --zd-cmyk-y: #ffcc00;
  --zd-red: #e3173e;
  --zd-gold: #d9a74a;
  --zd-gold-light: #f0cf82;

  --zd-white: #fff;
  --zd-bg: #fff;
  --zd-surface: #f4f7fa;
  --zd-surface-2: #eef3f7;
  --zd-border: #e3e9ef;
  --zd-border-strong: #cfd9e2;
  --zd-text: #12294a;
  --zd-text-muted: #5b6b7c;
  --zd-text-soft: #8593a1;

  --zd-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --zd-font-head: "Outfit", "Plus Jakarta Sans", system-ui, "Segoe UI", Arial, sans-serif;

  --zd-radius-sm: 6px;
  --zd-radius: 10px;
  --zd-radius-lg: 14px;
  --zd-radius-pill: 999px;
  --zd-shadow-sm: 0 1px 2px rgba(18, 41, 74, .06), 0 1px 3px rgba(18, 41, 74, .06);
  --zd-shadow: 0 2px 6px rgba(18, 41, 74, .05), 0 8px 24px rgba(18, 41, 74, .07);
  --zd-shadow-lg: 0 10px 30px rgba(18, 41, 74, .14);
  --zd-grad-cyan: linear-gradient(135deg, #22acd3 0%, #1590bd 55%, #117ea8 100%);

  --zd-gutter: 40px;
  --zd-container: 1600px;
  --zd-sidebar-w: 262px;
  --zd-gap: 20px;
  --zd-focus: 0 0 0 3px rgba(26, 160, 200, .45);
  --zd-ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2. Baza ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--zd-font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--zd-text);
  background: var(--zd-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--zd-cyan-600); text-decoration: none; }
a:hover { color: var(--zd-cyan-700); }
h1, h2, h3, h4 { font-family: var(--zd-font-head); color: var(--zd-navy); line-height: 1.15; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--zd-focus); border-radius: 4px; }
ul { margin: 0; padding: 0; }
[hidden] { display: none !important; }

.zd-visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.zd-skip {
  position: absolute; left: 12px; top: -100px; z-index: 1000; padding: 10px 16px;
  background: var(--zd-navy); color: #fff; border-radius: var(--zd-radius-sm); font-weight: 600;
}
.zd-skip:focus { top: 12px; color: #fff; }

.zd-container {
  width: 100%;
  max-width: var(--zd-container);
  margin-inline: auto;
  padding-inline: var(--zd-gutter);
}
.zd-card { background: #fff; border: 1px solid var(--zd-border); border-radius: var(--zd-radius-lg); box-shadow: var(--zd-shadow-sm); }

/* 3. Ikony i przyciski ---------------------------------------------------------
   Ikona: <span class="zd-i zd-i--truck" aria-hidden="true"></span>
   Kolor = currentColor, rozmiar = font-size (1em). Lista ikon: icons.css / README. */
.zd-i {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  vertical-align: -.15em;
  background-color: currentColor;
  -webkit-mask: var(--zd-i) center / contain no-repeat;
  mask: var(--zd-i) center / contain no-repeat;
}

.zd-btn {
  --btn-h: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--btn-h); padding: 0 18px;
  border: 2px solid transparent; border-radius: 8px;
  font-family: var(--zd-font-head); font-weight: 600; font-size: 15px; line-height: 1;
  cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--zd-ease), color .2s, border-color .2s, box-shadow .2s, transform .2s var(--zd-ease);
}
.zd-btn .zd-i { font-size: 1.05em; transition: transform .2s var(--zd-ease); }
.zd-btn:hover .zd-i--arrow-right { transform: translateX(3px); }
.zd-btn--primary { background: var(--zd-navy); color: #fff; box-shadow: 0 4px 12px rgba(18, 41, 74, .22); }
.zd-btn--primary:hover { color: #fff; background: var(--zd-orange, #f47a2b); box-shadow: 0 6px 16px rgba(244, 122, 43, .28); transform: translateY(-1px); }
.zd-btn--outline { background: #fff; color: var(--zd-navy); border-color: var(--zd-navy); }
.zd-btn--outline:hover { background: var(--zd-navy); color: #fff; }
.zd-btn--lg { --btn-h: 50px; padding: 0 22px; font-size: 16px; }
.zd-btn--sm { --btn-h: 30px; padding: 0 12px; font-size: 13px; border-radius: 6px; }

.zd-link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: 13px; color: var(--zd-cyan-600); }
.zd-link-arrow .zd-i { transition: transform .2s var(--zd-ease); }
a:hover .zd-link-arrow .zd-i, .zd-link-arrow:hover .zd-i { transform: translateX(3px); }
.zd-link-arrow--gold { color: var(--zd-gold-light); }

.zd-badge {
  display: inline-block; padding: 3px 9px; border-radius: 4px;
  background: var(--zd-red); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.zd-input {
  width: 100%; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--zd-border-strong); border-radius: 8px; background: #fff;
  font: inherit; color: var(--zd-text);
}
.zd-input::placeholder { color: var(--zd-text-soft); }
.zd-input:focus { outline: none; border-color: var(--zd-cyan); box-shadow: var(--zd-focus); }

/* 4. Topbar ------------------------------------------------------------------ */
.zd-topbar { background: var(--zd-navy); color: #fff; font-size: 11.5px; }
.zd-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 30px; }
.zd-topbar a { color: #fff; }
.zd-topbar a:hover { color: var(--zd-orange, #f47a2b); text-decoration-color: var(--zd-orange, #f47a2b); }
.zd-services { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.zd-services__label { color: var(--zd-cmyk-y); font-weight: 700; margin-right: 4px; }
.zd-services__sep { opacity: .45; margin: 0 6px; }
.zd-topbar__services { min-width: 0; }
.zd-topbar__links { display: flex; align-items: center; list-style: none; gap: 0; flex: none; font-weight: 500; }
.zd-topbar__links li { display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.zd-topbar__links li + li { border-left: 1px solid rgba(255, 255, 255, .35); }
.zd-topbar__links li:last-child { padding-right: 0; }
.zd-topbar__links .zd-i { font-size: 14px; opacity: .9; }
.zd-topbar__links a { display: inline-flex; align-items: center; gap: 7px; }

/* 5. Header ------------------------------------------------------------------ */
.zd-header { background: #fff; border-bottom: 1px solid #f0f3f6; position: relative; z-index: 50; }
.zd-header__inner { display: flex; align-items: center; gap: 22px; min-height: 90px; }
.zd-logo { display: block; flex: none; }
.zd-logo__img { width: 214px; height: auto; }
.zd-burger { display: none; }

.zd-nav { flex: 0 1 auto; }
.zd-nav__head, .zd-nav__phone { display: none; }
.zd-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.zd-menu__item { position: relative; display: flex; align-items: center; }
.zd-menu__link {
  display: block; padding: 10px 9px; border-radius: 8px;
  color: var(--zd-navy); font-weight: 600; font-size: 13.5px; white-space: nowrap;
}
.zd-menu__link:hover, .zd-menu__item.is-active > .zd-menu__link { color: var(--zd-cyan-600); }
.zd-menu__toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 28px; margin-left: -8px;
  border: 0; background: none; color: var(--zd-navy); cursor: pointer; padding: 0; font-size: 13px;
}
.zd-menu__sub {
  position: absolute; top: 100%; left: 0; min-width: 220px; padding: 8px; list-style: none;
  background: #fff; border: 1px solid var(--zd-border); border-radius: var(--zd-radius); box-shadow: var(--zd-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--zd-ease);
}
.zd-menu__sub .zd-menu__link { font-weight: 500; padding: 8px 12px; }
.zd-menu__sub .zd-menu__link:hover { background: var(--zd-surface); }
.zd-menu__item.has-children:hover > .zd-menu__sub,
.zd-menu__item.has-children:focus-within > .zd-menu__sub,
.zd-menu__item.is-open > .zd-menu__sub { opacity: 1; visibility: visible; transform: none; }

.zd-search { flex: 1 1 300px; min-width: 230px; max-width: 370px; margin-left: auto; }
.zd-search__form { position: relative; display: flex; align-items: center; }
.zd-search__form > .zd-i { position: absolute; left: 16px; font-size: 17px; color: var(--zd-navy); pointer-events: none; }
.zd-search__input {
  width: 100%; height: 44px; padding: 0 38px 0 42px;
  border: 1px solid var(--zd-border-strong); border-radius: var(--zd-radius-pill); background: #fbfcfd;
  font: inherit; font-size: 12.5px; color: var(--zd-text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.zd-search__input::placeholder { color: var(--zd-text-soft); }
.zd-search__input:focus { outline: none; background: #fff; border-color: var(--zd-cyan); box-shadow: var(--zd-focus); }
.zd-search__input::-webkit-search-cancel-button { display: none; }
.zd-search__btn {
  position: absolute; right: 5px; width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: transparent; color: var(--zd-cyan-600); cursor: pointer; display: grid; place-items: center; font-size: 16px;
}
.zd-search__btn:hover { background: var(--zd-cyan-50); }

.zd-phone { display: flex; align-items: center; gap: 12px; flex: none; color: var(--zd-navy); }
.zd-phone:hover { color: var(--zd-navy); }
.zd-phone__icon { font-size: 28px; color: var(--zd-cyan); }
.zd-phone__text { display: flex; flex-direction: column; line-height: 1.2; }
.zd-phone__text strong { font-family: var(--zd-font-head); font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.zd-phone__text small { font-size: 12px; color: var(--zd-text-muted); }

.zd-cart {
  display: flex; align-items: center; gap: 12px; flex: none;
  height: 52px; padding: 0 16px 0 20px; border-radius: 8px;
  background: var(--zd-grad-cyan); color: #fff; box-shadow: 0 6px 16px rgba(21, 136, 180, .3);
  font-family: var(--zd-font-head); font-weight: 600; font-size: 16px;
  transition: transform .2s var(--zd-ease), box-shadow .2s;
}
.zd-cart:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(21, 136, 180, .4); }
.zd-cart__icon { position: relative; display: inline-flex; font-size: 24px; }
.zd-cart__badge {
  position: absolute; top: -9px; right: -9px; min-width: 18px; height: 18px; padding: 0 4px;
  border-radius: 9px; background: var(--zd-red); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid #1a9cc6; box-sizing: content-box;
}
.zd-cart__chev { font-size: 16px; opacity: .9; }

/* 6. Układ i sidebar kategorii ------------------------------------------------ */
.zd-layout {
  display: grid;
  grid-template-columns: var(--zd-sidebar-w) minmax(0, 1fr);
  gap: var(--zd-gap);
  align-items: start;
  padding-top: 12px;
  padding-bottom: 12px;
}
.zd-no-sidebar .zd-layout { grid-template-columns: minmax(0, 1fr); }
.zd-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.zd-main:focus { outline: none; }

.zd-sidebar { position: relative; }
.zd-cats {
  background: #fff; border-radius: var(--zd-radius-lg); box-shadow: var(--zd-shadow);
  border: 1px solid #edf1f5; overflow: hidden; padding-bottom: 8px;
}
.zd-cats__head {
  display: flex; align-items: center; gap: 14px; width: 100%;
  height: 50px; padding: 0 18px; border: 0; border-radius: var(--zd-radius) var(--zd-radius) 0 0;
  background: var(--zd-grad-cyan); color: #fff; cursor: default; white-space: nowrap;
  font-family: var(--zd-font-head); font-weight: 600; font-size: 16px; text-align: left;
  margin-bottom: 8px;
}
.zd-cats__head .zd-i { font-size: 20px; }
.zd-cats__title { flex: 1; }
.zd-cats__chev { font-size: 15px !important; opacity: .9; transition: transform .2s var(--zd-ease); }
.zd-cats__list { list-style: none; }
.zd-cats__link {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 12px 7px 18px; color: var(--zd-navy); font-size: 12.7px; font-weight: 500; letter-spacing: -.005em;
  position: relative; transition: background-color .15s, color .15s;
}
.zd-cats__icon { font-size: 17px; color: #3d5270; transition: color .15s; }
.zd-cats__label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.zd-cats__arrow { font-size: 14px; color: #9aa7b4; transition: transform .2s var(--zd-ease), color .15s; }
.zd-cats__link:hover, .zd-cats__item.is-active > .zd-cats__link { background: var(--zd-cyan-50); color: var(--zd-cyan-700); }
.zd-cats__link:hover .zd-cats__icon, .zd-cats__link:hover .zd-cats__arrow { color: var(--zd-cyan-600); }
.zd-cats__link:hover .zd-cats__arrow { transform: translateX(3px); }
.zd-cats__link:focus-visible { box-shadow: inset 0 0 0 3px rgba(26, 160, 200, .45); border-radius: 0; }

/* 7. Hero -------------------------------------------------------------------- */
.zd-hero {
  position: relative; display: grid; grid-template-columns: minmax(470px, .78fr) minmax(0, 1fr);
  min-height: 330px; margin-right: calc(-1 * var(--zd-gutter));
  border-radius: var(--zd-radius-lg) 0 0 var(--zd-radius-lg);
  background:
    radial-gradient(90% 120% at 78% 40%, #ffffff 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(100deg, #f1f5f8 0%, #eef3f7 45%, #e3eaf0 100%);
  overflow: hidden;
}
.zd-hero__content { position: relative; z-index: 2; padding: 28px 10px 26px 34px; }
.zd-hero__eyebrow {
  margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; color: var(--zd-navy-700);
}
.zd-hero__title { font-size: clamp(34px, 3.4vw, 56px); font-weight: 700; letter-spacing: -.02em; line-height: 1.02; margin: 0 0 16px; }
.zd-hero__accent { display: block; color: var(--zd-cyan-600); }
.zd-hero__lead { font-size: 16px; color: var(--zd-text-muted); max-width: 470px; margin-bottom: 20px; line-height: 1.55; }
.zd-hero__actions { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 22px; }
.zd-hero__benefits { display: flex; flex-wrap: wrap; gap: 14px 34px; list-style: none; }
.zd-hero__benefits li { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--zd-navy); }
.zd-hero__benefits .zd-i { font-size: 30px; color: var(--zd-cyan-600); }

/* Wizualizacja produktów (PLACEHOLDER z CSS — do podmiany na zdjęcie) */
.zd-hero__visual { position: relative; min-height: 300px; }
.zd-hero__visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.zd-hv { position: absolute; inset: 0; }
.zd-hv__plant {
  position: absolute; left: 0; top: 4%; width: 120px; height: 130px; border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(120, 170, 110, .5), rgba(120, 170, 110, 0) 70%); filter: blur(10px);
}
.zd-hv__note {
  position: absolute; left: 12%; top: 12%; margin: 0; transform: rotate(-12deg); z-index: 3;
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive; font-size: 17px; line-height: 1.35; color: #3c4d63;
}
.zd-hv__note::after {
  content: ""; position: absolute; left: 70%; top: 105%; width: 70px; height: 24px;
  border-bottom: 2px solid #3c4d63; border-radius: 0 0 60px 60px / 0 0 24px 24px; transform: rotate(18deg);
}
.zd-hv__poster {
  position: absolute; left: 34%; top: 5%; width: 24%; height: 86%; z-index: 1;
  background: linear-gradient(160deg, #1d3558 0%, #0f223d 60%, #0a1830 100%); border-radius: 3px;
  box-shadow: 18px 24px 40px rgba(10, 24, 48, .35); transform: perspective(900px) rotateY(-14deg) rotateZ(-2deg);
  padding: 24px 16px; color: #fff; overflow: hidden;
}
.zd-hv__poster span { display: block; font-family: var(--zd-font-head); font-weight: 500; font-size: clamp(13px, 1.25vw, 21px); line-height: 1.12; text-transform: uppercase; letter-spacing: .02em; }
.zd-hv__poster i {
  position: absolute; left: 20px; bottom: 26%; width: 60%; height: 5px;
  background: linear-gradient(90deg, var(--zd-cmyk-c) 0 33%, var(--zd-cmyk-m) 33% 66%, var(--zd-cmyk-y) 66%);
}
.zd-hv__poster::after {
  content: ""; position: absolute; right: -18%; bottom: -8%; width: 70%; height: 38%;
  background: radial-gradient(circle, rgba(255, 255, 255, .5) 1.2px, transparent 1.6px) 0 0 / 12px 12px; opacity: .55;
}
.zd-hv__tent {
  position: absolute; right: 3%; top: 6%; width: 31%; height: 84%; z-index: 1;
  background: linear-gradient(180deg, #fff 0%, #f4f6f8 100%); border-radius: 3px;
  box-shadow: -10px 20px 40px rgba(18, 41, 74, .18); transform: perspective(900px) rotateY(18deg) rotateZ(3deg);
  padding: 20% 18px 0; overflow: hidden;
}
.zd-hv__tent span { position: relative; z-index: 2; display: block; font-family: var(--zd-font-head); font-weight: 600; font-size: clamp(13px, 1.3vw, 21px); line-height: 1.15; text-transform: uppercase; color: var(--zd-navy); }
.zd-hv__tent em { font-style: normal; font-weight: 400; }
.zd-hv__drop { position: absolute; bottom: -18%; width: 40%; height: 44%; border-radius: 0 60% 50% 60%; transform: rotate(45deg); mix-blend-mode: multiply; }
.zd-hv__drop--y { left: -6%; background: var(--zd-cmyk-y); }
.zd-hv__drop--m { left: 24%; background: var(--zd-cmyk-m); bottom: -8%; opacity: .9; }
.zd-hv__drop--c { left: 50%; background: var(--zd-cmyk-c); opacity: .9; }
.zd-hv__stack {
  position: absolute; z-index: 2; width: 34%; height: 28%; border-radius: 4px; background: #fff;
  transform: perspective(900px) rotateX(58deg) rotateZ(-28deg);
  box-shadow:
    0 2px 0 #e8ecf0, 0 4px 0 #dfe4e9, 0 6px 0 #e8ecf0, 0 8px 0 #dfe4e9, 0 10px 0 #e8ecf0, 0 12px 0 #d7dde3,
    0 14px 0 #e8ecf0, 0 16px 0 #d2d9df, 0 30px 34px rgba(18, 41, 74, .3);
}
.zd-hv__stack--back { left: 4%; bottom: 26%; background: linear-gradient(120deg, #fff 0 60%, var(--zd-cmyk-c) 60% 72%, var(--zd-cmyk-m) 72% 84%, var(--zd-cmyk-y) 84%); }
.zd-hv__stack--front { left: 20%; bottom: 6%; }
.zd-hv__stack span { position: absolute; inset: 0; display: grid; place-items: center; }
.zd-hv__stack img { width: 55%; }

/* 8. Najpopularniejsze kategorie ---------------------------------------------- */
.zd-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 4px 0 12px; }
.zd-section-head__title { font-size: 22px; font-weight: 600; margin: 0; }
.zd-tiles { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; list-style: none; }
.zd-tile {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid #edf1f5; border-radius: var(--zd-radius); box-shadow: var(--zd-shadow);
  padding: 6px 6px 12px; transition: transform .22s var(--zd-ease), box-shadow .22s var(--zd-ease);
}
.zd-tile:hover { transform: translateY(-4px); box-shadow: var(--zd-shadow-lg); }
.zd-tile .zd-badge { position: absolute; top: 10px; left: 10px; z-index: 2; }
.zd-tile__media { display: block; border-radius: 7px; overflow: hidden; background: var(--zd-surface); aspect-ratio: 4 / 3; }
.zd-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--zd-ease); }
.zd-tile:hover .zd-tile__media img { transform: scale(1.05); }
.zd-tile__title { margin: 10px 10px 2px; font-size: 15px; font-weight: 600; }
.zd-tile__title a { color: var(--zd-navy); }
.zd-tile__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.zd-tile__desc { margin: 0 10px 12px; font-size: 12px; line-height: 1.35; color: var(--zd-text-muted); min-height: 2.7em; }
.zd-tile__btn { position: relative; z-index: 2; margin: auto 10px 0; }

/* 9. Bloki promocyjne ----------------------------------------------------------- */
.zd-promos { display: grid; grid-template-columns: .95fr 1.25fr 1.12fr; gap: 14px; }
.zd-promo {
  position: relative; display: flex; align-items: center; gap: 16px; min-height: 124px;
  padding: 18px 22px; border-radius: var(--zd-radius); overflow: hidden; color: var(--zd-navy);
  transition: transform .22s var(--zd-ease), box-shadow .22s var(--zd-ease);
}
a.zd-promo:hover { transform: translateY(-3px); box-shadow: var(--zd-shadow-lg); }
.zd-promo__text { position: relative; z-index: 2; display: flex; flex-direction: column; }
.zd-promo__title { display: block; margin: 0; font-family: var(--zd-font-head); font-size: 23px; font-weight: 700; line-height: 1.12; }
.zd-promo__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 10px; font-size: 13px; }
.zd-promo__art { position: absolute; z-index: 1; pointer-events: none; }

.zd-promo--express { background: linear-gradient(100deg, #e6f4fa 0%, #d8eef7 55%, #eaf6fb 100%); border: 1px solid #d3e9f3; }
.zd-promo--express .zd-promo__title { color: var(--zd-cyan-700); }
.zd-promo--express .zd-promo__art { right: 16px; top: 50%; transform: translateY(-50%); font-size: 96px; color: #fff; }
.zd-promo--express .zd-promo__art .zd-i { filter: drop-shadow(0 6px 10px rgba(21, 136, 180, .25)); background-color: #cfe9f4; }
.zd-promo__speed {
  position: absolute; right: 88%; top: 30%; width: 90px; height: 40%;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .95) 0 5px, transparent 5px 12px);
  -webkit-mask: linear-gradient(90deg, transparent, #000); mask: linear-gradient(90deg, transparent, #000); border-radius: 3px;
}

.zd-promo--premium { background: radial-gradient(120% 140% at 80% 50%, #2a2a2e 0%, #121215 55%, #09090b 100%); color: #fff; }
.zd-promo__eyebrow { font-family: var(--zd-font-head); font-size: 22px; letter-spacing: .06em; text-transform: uppercase; color: var(--zd-gold-light); font-weight: 500; }
.zd-promo--premium .zd-promo__title { color: #fff; font-size: 21px; font-weight: 600; margin-top: 2px; }
.zd-promo__desc { font-size: 12.5px; color: #c9cdd3; margin: 8px 0 8px; }
.zd-promo--premium .zd-link-arrow { font-size: 13px; }
.zd-promo__art--card { right: -10px; top: 50%; transform: translateY(-50%) rotate(-14deg); }
.zd-premium-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; width: 230px; height: 140px;
  border-radius: 10px; background: linear-gradient(135deg, #2b2b30, #161618); box-shadow: 0 16px 30px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  font-family: Georgia, "Times New Roman", serif; color: transparent;
  background-clip: padding-box;
}
.zd-premium-card span, .zd-premium-card b {
  background: linear-gradient(135deg, #f7e3a6, #c38d36 50%, #f1d58e); -webkit-background-clip: text; background-clip: text;
  color: transparent; text-transform: uppercase;
}
.zd-premium-card span { font-size: 21px; letter-spacing: .3em; padding-left: .3em; }
.zd-premium-card b { font-size: 46px; line-height: 1; }

.zd-promo--contact { background: #fff; border: 1px solid var(--zd-border); box-shadow: var(--zd-shadow-sm); justify-content: space-between; padding-inline: 20px; gap: 14px; }
.zd-promo--contact .zd-promo__text { flex: 1; min-width: 0; }
.zd-promo__bigicon { font-size: 50px; color: var(--zd-cyan-600); flex: none; }
.zd-promo__title--dark { font-size: 15px; font-weight: 700; line-height: 1.3; white-space: nowrap; }
.zd-promo__phone { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; margin: 10px 0 0; font-size: 14px; white-space: nowrap; }
.zd-promo__phone .zd-i { font-size: 17px; color: var(--zd-cyan-600); grid-row: span 2; }
.zd-promo__phone a { color: var(--zd-navy); }
.zd-promo__phone small { grid-column: 2; font-size: 11.5px; color: var(--zd-text-muted); }
.zd-promo--contact .zd-btn { flex: none; }

/* 10. Pasek zaufania ------------------------------------------------------------ */
.zd-trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none;
  background: #fff; border: 1px solid var(--zd-border); border-radius: var(--zd-radius); box-shadow: var(--zd-shadow-sm);
  padding: 14px 0;
}
.zd-trust__item { display: flex; align-items: center; gap: 14px; padding: 4px 20px; }
.zd-trust__item + .zd-trust__item { border-left: 1px solid var(--zd-border); }
.zd-trust__icon { font-size: 36px; color: var(--zd-cyan-600); }
.zd-trust__item strong { display: block; font-size: 13.5px; font-weight: 700; color: var(--zd-navy); }
.zd-trust__item small { display: block; font-size: 12px; color: var(--zd-text-muted); }

/* 11. Stopka -------------------------------------------------------------------- */
.zd-footer { padding: 8px 0 18px; }
.zd-footer__layout { display: grid; grid-template-columns: var(--zd-sidebar-w) minmax(0, 1fr); gap: var(--zd-gap); }
.zd-footer__main { grid-column: 2; border-top: 1px solid var(--zd-border); }
.zd-footer__grid {
  display: grid; grid-template-columns: 1.2fr .8fr .95fr .95fr 1.8fr 1.1fr; gap: 28px; align-items: start;
  padding: 22px 0 18px;
}
.zd-logo--footer .zd-logo__img { width: 170px; }
.zd-footer__title { margin: 0 0 8px; font-family: var(--zd-font-body); font-size: 12.5px; font-weight: 700; color: var(--zd-navy); }
.zd-footer .mod-menu, .zd-footer ul.nav { list-style: none; display: block; padding: 0; margin: 0; }
.zd-footer .mod-menu li { margin: 0 0 3px; }
.zd-footer .mod-menu a { color: var(--zd-text-muted); font-size: 12.5px; }
.zd-footer .mod-menu a:hover { color: var(--zd-cyan-600); }
.zd-newsletter__row { display: flex; gap: 8px; }
.zd-newsletter .zd-input { min-height: 38px; font-size: 13px; }
.zd-newsletter .zd-btn { --btn-h: 38px; font-size: 13px; }
.zd-newsletter__note { margin: 8px 0 0; font-size: 11.5px; color: var(--zd-text-muted); }
.zd-social { display: flex; gap: 18px; list-style: none; padding-top: 4px; }
.zd-social a { display: grid; place-items: center; width: 30px; height: 30px; color: var(--zd-navy); font-size: 24px; border-radius: 6px; transition: color .15s, transform .2s var(--zd-ease); }
.zd-social a:hover { color: var(--zd-cyan-600); transform: translateY(-2px); }
.zd-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px;
  padding-top: 12px; border-top: 1px solid var(--zd-border); font-size: 12px; color: var(--zd-text-muted);
}
.zd-footer__bottom p { margin: 0; }
.zd-footer__tagline { display: inline-flex; align-items: center; gap: 8px; }
.zd-footer__tagline img { width: 16px; height: 16px; }

/* 12. Treść komponentu, bloki, błędy -------------------------------------------- */
.zd-component { padding: 28px 32px; }
.zd-component:empty { display: none; }
.zd-block { padding: 22px 26px; }
.zd-block__title { font-size: 20px; }
.zd-breadcrumbs { font-size: 13px; color: var(--zd-text-muted); }
.zd-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.zd-breadcrumbs .breadcrumb-item + .breadcrumb-item::before { content: "›"; margin-right: 6px; color: var(--zd-text-soft); }
.zd-breadcrumbs .breadcrumb-item.active { color: var(--zd-navy); font-weight: 600; }
.zd-breadcrumbs .mod-breadcrumbs__here { margin-right: 4px; }
#system-message-container:empty { display: none; }
joomla-alert { display: block; padding: 12px 16px; border-radius: var(--zd-radius); background: var(--zd-cyan-50); border: 1px solid #bfe3f0; margin-bottom: 8px; }

/* Podstawowe formularze i przyciski komponentów rdzenia (logowanie, rejestracja, wyszukiwarka) */
.zd-component fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.zd-component legend { font-family: var(--zd-font-head); font-weight: 600; font-size: 18px; margin-bottom: 10px; }
.zd-component .control-group, .zd-component .mb-3 { margin-bottom: 14px; }
.zd-component label { display: inline-block; font-weight: 600; font-size: 13px; margin-bottom: 4px; }
.zd-component input[type="text"], .zd-component input[type="email"], .zd-component input[type="password"],
.zd-component input[type="search"], .zd-component input[type="tel"], .zd-component select, .zd-component textarea {
  width: 100%; max-width: 420px; min-height: 42px; padding: 8px 14px; border: 1px solid var(--zd-border-strong); border-radius: 8px;
  font: inherit; color: var(--zd-text); background: #fff;
}
.zd-component input:focus, .zd-component select:focus, .zd-component textarea:focus { outline: none; border-color: var(--zd-orange, #f47a2b); box-shadow: var(--zd-focus); }
.zd-component .input-group { display: flex; max-width: 420px; }
.zd-component .input-group input { border-radius: 8px 0 0 8px; }
.zd-component .btn, .zd-component button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 42px; padding: 0 18px;
  border: 1px solid var(--zd-border-strong); border-radius: 8px; background: #fff; color: var(--zd-navy);
  font-family: var(--zd-font-head); font-weight: 600; cursor: pointer;
}
.zd-component .input-group .btn { border-radius: 0 8px 8px 0; border-left: 0; }
.zd-component .btn-primary, .zd-component button[type="submit"].btn-primary { background: var(--zd-navy); color: #fff; border-color: var(--zd-navy); }
.zd-component .btn-primary:hover, .zd-component button[type="submit"].btn-primary:hover { background: var(--zd-orange, #f47a2b); border-color: var(--zd-orange, #f47a2b); color: #fff; }
.zd-component .zd-btn--primary, .zd-component button[type="submit"].zd-btn--primary { background: var(--zd-navy); color: #fff; border-color: var(--zd-navy); }
.zd-component .zd-btn--primary:hover, .zd-component button[type="submit"].zd-btn--primary:hover { background: var(--zd-orange, #f47a2b); border-color: var(--zd-orange, #f47a2b); color: #fff; }
.zd-component .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.zd-component .form-check { display: flex; align-items: center; gap: 8px; }
.zd-component .form-check label { margin: 0; font-weight: 500; }
.zd-component ul.com-users-login__options, .zd-component .list-group { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

.zd-error { min-height: 100vh; display: grid; place-items: center; background: var(--zd-surface-2); padding: 24px; }
.zd-error__box { width: min(560px, 100%); padding: 40px; text-align: center; }
.zd-error__box .zd-logo, .zd-error__box > .zd-logo__img { margin: 0 auto 18px; display: block; }
.zd-error__code { font-family: var(--zd-font-head); font-size: 72px; font-weight: 800; line-height: 1; margin: 0 0 8px; background: var(--zd-grad-cyan); -webkit-background-clip: text; background-clip: text; color: transparent; }
.zd-error__title { font-size: 26px; }
.zd-offline-form { display: grid; gap: 8px; text-align: left; margin-top: 18px; }

/* 13. Responsywność ---------------------------------------------------------------- */
@media (max-width: 1480px) {
  .zd-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .zd-header__inner { gap: 14px; }
  .zd-logo__img { width: 180px; }
  .zd-cart { height: 48px; padding: 0 14px 0 16px; font-size: 15px; }
  .zd-phone__text strong { font-size: 16px; }
  .zd-menu__link { padding: 10px 8px; font-size: 13.5px; }
  .zd-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .zd-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1360px) {
  .zd-phone { display: none; }
}

@media (max-width: 1280px) {
  :root { --zd-gutter: 24px; --zd-sidebar-w: 222px; --zd-gap: 16px; }
  .zd-cats__link { gap: 10px; padding: 6px 12px 6px 14px; font-size: 13px; }
  .zd-cats__icon { font-size: 16px; }
  .zd-hero { grid-template-columns: 1fr; margin-right: 0; border-radius: var(--zd-radius-lg); }
  .zd-hero__visual { min-height: 300px; }
  .zd-promos { grid-template-columns: 1fr 1fr; }
  .zd-promo--contact { grid-column: 1 / -1; }
  .zd-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 10px; }
  .zd-trust__item:nth-child(3) { border-left: 0; }
  .zd-services { font-size: 11px; }
}

/* Tablet i mobile: menu w wysuwanym panelu, kategorie nad treścią (rozwijane) */
@media (max-width: 1024px) {
  .zd-topbar__services { display: none; }
  .zd-topbar__inner { justify-content: flex-end; }

  .zd-header__inner { flex-wrap: wrap; gap: 10px 14px; min-height: 0; padding-block: 12px; }
  .zd-burger {
    display: grid; place-items: center; width: 44px; height: 44px; padding: 0; order: 0;
    border: 1px solid var(--zd-border); border-radius: 10px; background: #fff; color: var(--zd-navy); font-size: 22px; cursor: pointer;
  }
  .zd-logo { order: 1; margin-right: auto; }
  .zd-logo__img { width: 170px; }
  .zd-cart { order: 2; height: 46px; padding: 0 14px; font-size: 15px; }
  .zd-search { order: 3; flex: 1 1 100%; max-width: none; margin: 0; }

  .zd-nav {
    position: fixed; inset: 0 auto 0 0; z-index: 200; width: min(340px, 86vw);
    background: #fff; box-shadow: var(--zd-shadow-lg); padding: 16px; overflow-y: auto;
    transform: translateX(-102%); transition: transform .28s var(--zd-ease); visibility: hidden;
  }
  .zd-nav-open .zd-nav { transform: none; visibility: visible; }
  .zd-nav__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
  .zd-nav__title { font-family: var(--zd-font-head); font-weight: 700; font-size: 18px; }
  .zd-nav__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--zd-surface); color: var(--zd-navy); font-size: 20px; cursor: pointer; }
  .zd-menu { flex-direction: column; align-items: stretch; gap: 0; }
  .zd-menu__item { flex-wrap: wrap; border-bottom: 1px solid var(--zd-border); }
  .zd-menu__link { flex: 1; padding: 13px 4px; font-size: 16px; }
  .zd-menu__toggle { width: 44px; height: 44px; margin: 0; font-size: 18px; }
  .zd-menu__item.is-open > .zd-menu__toggle .zd-i { transform: rotate(180deg); }
  .zd-menu__sub { position: static; flex-basis: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .zd-menu__item.has-children:hover > .zd-menu__sub { display: none; }
  .zd-menu__item.is-open > .zd-menu__sub { display: block; }
  .zd-nav__phone { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; padding: 14px; border-radius: var(--zd-radius); background: var(--zd-cyan-50); color: var(--zd-navy); font-weight: 700; font-size: 17px; }
  .zd-nav__phone .zd-i { color: var(--zd-cyan-600); font-size: 22px; }
  .zd-nav__phone small { flex-basis: 100%; font-weight: 500; font-size: 12px; color: var(--zd-text-muted); padding-left: 32px; }
  .zd-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(11, 27, 51, .45); }

  .zd-layout { grid-template-columns: minmax(0, 1fr); }
  .zd-cats { box-shadow: var(--zd-shadow-sm); padding-bottom: 0; }
  .zd-cats__head { cursor: pointer; border-radius: var(--zd-radius); margin: 0; }
  .zd-cats.is-open .zd-cats__head { border-radius: var(--zd-radius) var(--zd-radius) 0 0; }
  .zd-cats__chev { transform: rotate(90deg); }
  .zd-cats.is-open .zd-cats__chev { transform: rotate(-90deg); }
  .zd-cats__list { display: none; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px 0; }
  .zd-cats.is-open .zd-cats__list { display: grid; }

  .zd-footer__layout { grid-template-columns: minmax(0, 1fr); }
  .zd-footer__main { grid-column: 1; }
}

@media (max-width: 760px) {
  :root { --zd-gutter: 16px; }
  body { font-size: 15px; }
  .zd-topbar { font-size: 12px; }
  .zd-topbar__links li:first-child { display: none; }
  .zd-topbar__links li + li { border-left: 0; padding-left: 0; }
  .zd-hv__poster { padding: 16px 10px; }
  .zd-hv__poster span { font-size: 11px; }
  .zd-hv__tent span { font-size: 11px; }
  .zd-cart__label, .zd-cart__chev { display: none; }
  .zd-cart { width: 46px; padding: 0; justify-content: center; }
  .zd-logo__img { width: 150px; }
  .zd-cats__list { grid-template-columns: minmax(0, 1fr); }

  .zd-hero__content { padding: 26px 20px 20px; }
  .zd-hero__eyebrow { letter-spacing: .25em; font-size: 11px; }
  .zd-hero__actions { gap: 10px; }
  .zd-hero__actions .zd-btn { flex: 1 1 100%; }
  .zd-hero__benefits { gap: 12px 20px; }
  .zd-hero__benefits .zd-i { font-size: 26px; }
  .zd-hero__visual { min-height: 220px; }
  .zd-hv__note { display: none; }

  .zd-section-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .zd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .zd-tile__title { font-size: 14px; margin-inline: 6px; }
  .zd-tile__desc { margin-inline: 6px; }
  .zd-tile__btn { margin-inline: 6px; }

  .zd-promos { grid-template-columns: minmax(0, 1fr); }
  .zd-promo--premium .zd-promo__art--card { opacity: .35; }
  .zd-promo--contact { flex-wrap: wrap; }
  .zd-promo--contact .zd-btn { flex: 1 1 100%; }
  .zd-trust { grid-template-columns: minmax(0, 1fr); padding: 6px 0; }
  .zd-trust__item { padding: 10px 18px; }
  .zd-trust__item + .zd-trust__item { border-left: 0; border-top: 1px solid var(--zd-border); }

  .zd-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
  .zd-footer__newsletter, .zd-footer .footer-newsletter { grid-column: 1 / -1; }
  .zd-footer__bottom { flex-direction: column; align-items: flex-start; }
  .zd-component { padding: 20px; }
}

@media (max-width: 380px) {
  .zd-tiles { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 14. Oznaczanie grafik zastępczych (parametr szablonu "Oznacz grafiki zastępcze") */
.zd-mark-placeholders [data-placeholder] { outline: 2px dashed var(--zd-cmyk-m); outline-offset: -2px; position: relative; }
.zd-mark-placeholders .zd-hero__visual[data-placeholder]::before,
.zd-mark-placeholders .zd-promo__art[data-placeholder]::before,
.zd-mark-placeholders .zd-tile__media:has(img[data-placeholder])::before {
  content: "GRAFIKA ZASTĘPCZA"; position: absolute; z-index: 5; top: 6px; right: 6px; padding: 2px 6px;
  background: var(--zd-cmyk-m); color: #fff; font: 700 10px/1.4 var(--zd-font-body); letter-spacing: .05em; border-radius: 3px;
}
.zd-mark-placeholders .zd-tile__media { position: relative; }

/* Ikony rdzenia Joomli używane w formularzach (bez ładowania Font Awesome) */
.zd-component [class^="icon-"], .zd-component [class*=" icon-"] {
  display: inline-block; width: 1.1em; height: 1.1em; background-color: currentColor;
  -webkit-mask: var(--zd-i) center / contain no-repeat; mask: var(--zd-i) center / contain no-repeat;
}
.zd-component .icon-eye { --zd-i: url("../images/icons/eye.svg"); }
.zd-component .icon-eye-slash { --zd-i: url("../images/icons/eye-off.svg"); }
.zd-component .icon-user { --zd-i: url("../images/icons/user.svg"); }
.zd-component .icon-search { --zd-i: url("../images/icons/search.svg"); }
.zd-component .icon-lock { --zd-i: url("../images/icons/lock.svg"); }
