/* =============================================================
   ZŁOTA FAZA - sections (hero, about, services, banner, calc,
   reviews, contact, footer, FAB)
   ============================================================= */

/* =============================================================
   HERO
   ============================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 28px);
  padding-bottom: 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 65% center;
  opacity: .42;
  filter: contrast(1.05) saturate(.7);
}
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, rgba(10,10,11,.55) 50%, rgba(10,10,11,.2) 100%),
    linear-gradient(180deg, transparent 40%, var(--bg) 100%),
    radial-gradient(circle at 30% 50%, rgba(254,236,9,.06) 0%, transparent 50%);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, black 30%, black 70%, transparent);
}

/* Diagonal accent stripe */
.hero__stripe {
  position: absolute;
  right: -10%; top: 20%;
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--y), transparent);
  transform: rotate(-22deg);
  opacity: .35;
  z-index: -1;
}
.hero__stripe.s2 {
  right: -20%; top: 60%;
  transform: rotate(-22deg);
  opacity: .15;
}

.hero__inner {
  position: relative; z-index: 1;
  display: grid;
  gap: clamp(20px, 2.4vw, 32px);
  max-width: 980px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border: 1px solid var(--y-30);
  background: var(--y-05);
  color: var(--y);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  width: max-content;
}
.hero__badge svg { width: 14px; height: 14px; }
.hero__badge .pulse {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--y);
  box-shadow: 0 0 8px var(--y-glow);
  animation: pulse 2s infinite;
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: var(--fs-display-xl);
  line-height: .96;
  letter-spacing: -0.04em;
  max-width: 14ch;
}
.hero__title .row { display: block; }
.hero__title .stroke {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--y);
}
.hero__title .stroke::after {
  content: attr(data-text);
  position: absolute; left: 0; top: 0;
  color: var(--y);
  -webkit-text-stroke: 0;
  /* 115% bottom because line-height: .96 gives a box smaller than the glyph - without this the "j" descender in "Instalacje" gets clipped. */
  clip-path: polygon(0 0, 0 0, 0 115%, 0 115%);
  animation: strokeFill 1.6s .6s var(--ease-out) forwards;
}
@keyframes strokeFill {
  to { clip-path: polygon(0 0, 100% 0, 100% 115%, 0 115%); }
}
.hero__title .y { color: var(--y); }
.hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
  font-size: .68em;
  letter-spacing: -0.02em;
  display: inline-block;
  transform: translateY(-0.12em);
  margin-left: 8px;
}

.hero__sub {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 52ch;
  line-height: 1.55;
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
@media (max-width: 560px) {
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { width: 100%; }
}

/* Trust strip */
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding: 28px 0 0;
  border-top: 1px solid var(--line-faint);
  margin-top: 12px;
}
.trust-block {
  display: flex;
  align-items: center;
  gap: 14px;
}
.trust-block .ico {
  width: 22px; height: 22px;
  color: var(--y);
  fill: var(--y);
  flex-shrink: 0;
}
.trust-block__text { display: grid; gap: 2px; line-height: 1.25; }
.trust-block__text b {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.trust-block__text span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}
.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--line-faint);
}
@media (max-width: 560px) {
  .trust-divider { display: none; }
  .hero__trust { gap: 18px; }
}

/* Scroll cue */
.hero__scroll {
  position: absolute;
  bottom: 32px; left: var(--gutter);
  display: none;
  align-items: center; gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  text-transform: uppercase;
  z-index: 2;
}
.hero__scroll .line {
  width: 64px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--ink-3));
  position: relative;
}
.hero__scroll .line::after {
  content: "";
  position: absolute;
  right: 0; top: -2px;
  width: 16px; height: 1px;
  background: var(--y);
  animation: scrollSweep 2.4s ease-in-out infinite;
}
@keyframes scrollSweep {
  0% { transform: translateX(-64px); opacity: 0; }
  40%, 80% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(8px); opacity: 0; }
}
@media (min-width: 1024px) { .hero__scroll { display: inline-flex; } }

/* Corner counter top-right */
.hero__corner {
  position: absolute;
  top: calc(var(--header-h) + 28px); right: var(--gutter);
  display: none;
  text-align: right;
  z-index: 2;
}
.hero__corner .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero__corner .val {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 24px;
  color: var(--y);
  letter-spacing: -0.02em;
}
@media (min-width: 1100px) { .hero__corner { display: block; } }


/* =============================================================
   ABOUT
   ============================================================= */

.about__glow {
  position: absolute;
  top: -10%; right: -10%;
  width: 760px; height: 760px;
  background: radial-gradient(circle, var(--y-05) 0%, transparent 60%);
  pointer-events: none;
}
.about__grid {
  display: grid;
  gap: 56px;
  align-items: center;
}
@media (min-width: 960px) {
  .about__grid { grid-template-columns: 5fr 6fr; gap: 80px; }
}

.about__media {
  position: relative;
  align-self: start;
}
.about__media .frame {
  position: absolute;
  inset: -16px;
  border: 1px solid var(--y-30);
  transform: rotate(-2.5deg) scale(.98);
  z-index: 0;
  pointer-events: none;
}
.about__media .frame::after {
  content: "";
  position: absolute;
  top: -8px; left: -8px;
  width: 16px; height: 16px;
  border-top: 2px solid var(--y);
  border-left: 2px solid var(--y);
}
.about__media .img-wrap {
  position: relative;
  z-index: 1;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(95%) contrast(1.05);
  transition: filter .6s var(--ease-out), transform .6s var(--ease-out);
}
.about__media:hover img { filter: grayscale(0); transform: scale(1.02); }
.about__badge {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  padding: 20px 24px;
  z-index: 2;
  display: grid;
  gap: 4px;
  min-width: 168px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.7);
}
.about__badge::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 28px; height: 28px;
  border-top: 1px solid var(--y);
  border-left: 1px solid var(--y);
}
.about__badge .num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 48px;
  line-height: 1;
  color: var(--y);
  letter-spacing: -0.04em;
}
.about__badge .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 600px) {
  .about__badge { bottom: -16px; right: 8px; padding: 14px 18px; min-width: 138px; }
  .about__badge .num { font-size: 36px; }
}

.about__copy {
  display: grid;
  gap: 28px;
  align-content: start;
}
.about__copy h2 {
  font-size: var(--fs-h2);
  letter-spacing: -0.025em;
}
.about__copy h2 em { font-style: normal; color: var(--y); }

.values {
  display: grid;
  gap: 8px;
}
.value {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 4px;
  border-top: 1px solid var(--line-faint);
  transition: border-color .2s var(--ease-out);
}
.value:last-child { border-bottom: 1px solid var(--line-faint); }
.value:hover { border-color: var(--y-30); }

.value__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--y);
  transition: background-color .2s, color .2s, border-color .2s;
}
.value:hover .value__icon { background: var(--y); color: #000; border-color: var(--y); }
.value__icon svg { width: 22px; height: 22px; }

.value__body { display: grid; gap: 6px; }
.value__body h3 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.value__body p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
  max-width: 52ch;
}
.value__num {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: var(--ink-4);
  padding-top: 6px;
  transition: color .2s;
}
.value:hover .value__num { color: var(--y); }


/* =============================================================
   SERVICES (Oferta)
   ============================================================= */

.offer .container { display: grid; gap: 64px; }
@media (min-width: 960px) { .offer .container { gap: 80px; } }

.offer__head {
  display: grid;
  gap: 24px;
  align-items: end;
}
@media (min-width: 768px) {
  .offer__head { grid-template-columns: 1fr auto; gap: 48px; }
}
.offer__head h2 { font-size: var(--fs-h2); }
.offer__head h2 em { font-style: normal; color: var(--y); }

.services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
}
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services { grid-template-columns: repeat(3, 1fr); } }

.service {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 280px;
  overflow: hidden;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out), background-color .25s var(--ease-out);
}
.service:hover {
  border-color: var(--y);
  transform: translateY(-4px);
  background: linear-gradient(180deg, var(--card-2), var(--card));
}

.service__num {
  position: absolute;
  top: 24px; right: 28px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-4);
  transition: color .25s var(--ease-out);
}
.service:hover .service__num { color: var(--y); }

.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--y);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s;
}
.service:hover .service__icon { background: var(--y); color: #000; border-color: var(--y); transform: rotate(-4deg); }
.service__icon svg { width: 24px; height: 24px; }

.service__title {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-top: 8px;
}
.service__desc {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.service__link {
  margin-top: 4px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color .2s, gap .2s;
}
.service:hover .service__link { color: var(--y); gap: 12px; }
.service__link svg { width: 12px; height: 12px; }

/* Featured */
.service.is-featured {
  background: linear-gradient(180deg, #1a1a20, #131318);
  border-color: var(--line-2);
}
@media (min-width: 720px) {
  .service.is-featured { grid-column: span 2; min-height: 320px; padding: 40px; }
}
.service.is-featured .service__icon {
  width: 64px; height: 64px;
  background: var(--y);
  color: #000;
  border-color: var(--y);
  box-shadow: 0 12px 30px -12px var(--y-glow);
}
.service.is-featured .service__icon svg { width: 28px; height: 28px; }
.service.is-featured .service__title { font-size: 30px; }
.service.is-featured .service__desc { max-width: 52ch; font-size: 16px; }

.offer__foot {
  text-align: center;
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
@media (max-width: 560px) {
  .offer__foot { flex-direction: column; align-items: stretch; }
  .offer__foot .btn { width: 100%; }
}


/* =============================================================
   BANNER (Yellow CTA band)
   ============================================================= */

.banner {
  background: var(--y);
  color: #000;
  position: relative;
  overflow: hidden;
  padding-block: clamp(80px, 9vw, 140px);
  isolation: isolate;
}
.banner__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0,0,0,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,.07) 1px, transparent 1px);
  background-size: 72px 72px;
  z-index: -1;
}
.banner__img {
  position: absolute; inset: 0; z-index: -1;
}
.banner__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: .18;
}
.banner__inner {
  position: relative;
  display: grid;
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
  justify-items: center;
}
.banner__eyebrow {
  display: inline-flex;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #000;
  font-weight: 500;
}
.banner__eyebrow .line { display: inline-block; width: 32px; height: 1px; background: #000; align-self: center; }
.banner__title {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: var(--fs-display-xl);
  line-height: .92;
  letter-spacing: -0.045em;
  color: #000;
  max-width: 16ch;
}
.banner__title .row { display: block; }
.banner__title .row .dot {
  display: inline-block;
  width: .15em; height: .15em;
  background: #000;
  border-radius: 999px;
  vertical-align: super;
  margin: 0 0.1em 0 -0.05em;
}
.banner__lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 56ch;
  color: rgba(0,0,0,.78);
}
.banner__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 64px;
  padding: 0 28px 0 32px;
  background: #0a0a0b;
  color: #fff;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  transition: background-color .25s, transform .2s;
}
@media (max-width: 560px) {
  .banner__cta { width: 100%; }
}
.banner__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1a1a20;
  transform: translateX(-100%);
  transition: transform .35s var(--ease-out);
}
.banner__cta:hover::before { transform: translateX(0); }
.banner__cta > * { position: relative; z-index: 1; }
.banner__cta:hover { transform: translateY(-2px); }
.banner__cta .arrow {
  width: 18px; height: 18px;
  color: var(--y);
  transition: transform .25s var(--ease-out);
}
.banner__cta:hover .arrow { transform: translateX(6px); }

/* Stat strip in banner */
.banner__stats {
  display: flex;
  gap: 0;
  margin-top: 16px;
  border-top: 1px solid rgba(0,0,0,.18);
  width: 100%;
  max-width: 720px;
}
.banner__stats .stat {
  flex: 1;
  padding: 20px 16px 0;
  border-right: 1px solid rgba(0,0,0,.18);
  text-align: center;
}
.banner__stats .stat:last-child { border-right: 0; }
.banner__stats .stat .num {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.banner__stats .stat .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(0,0,0,.6);
  margin-top: 6px;
}

/* =============================================================
   CALCULATOR
   ============================================================= */

.calc-section .container { display: grid; gap: 64px; }
.calc-head { display: grid; gap: 16px; text-align: center; justify-items: center; max-width: 720px; margin-inline: auto; }
.calc-head h2 { font-size: var(--fs-h2); }

.calc {
  background: var(--bg-2);
  border: 1px solid var(--line);
  position: relative;
}
.calc::before {
  content: "";
  position: absolute;
  top: -1px; left: -1px;
  width: 60px; height: 60px;
  border-top: 1px solid var(--y);
  border-left: 1px solid var(--y);
  pointer-events: none;
}
.calc::after {
  content: "";
  position: absolute;
  bottom: -1px; right: -1px;
  width: 60px; height: 60px;
  border-bottom: 1px solid var(--y);
  border-right: 1px solid var(--y);
  pointer-events: none;
}

.calc__tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.calc__tab {
  background: transparent;
  padding: 22px 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  position: relative;
  transition: color .2s, border-color .2s, background-color .2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.calc__tab svg { width: 16px; height: 16px; }
.calc__tab .num {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-4);
}
.calc__tab + .calc__tab { border-left: 1px solid var(--line); }
.calc__tab:hover { color: var(--ink); background: rgba(255,255,255,.02); }
.calc__tab.is-active {
  color: var(--y);
  border-bottom-color: var(--y);
  background: var(--y-05);
}
.calc__tab.is-active .num { color: var(--y); }

.calc__body {
  display: grid;
  gap: 0;
}
@media (min-width: 960px) { .calc__body { grid-template-columns: 1fr 380px; } }

.calc__form {
  padding: 32px;
}
@media (min-width: 768px) { .calc__form { padding: 48px; } }

.calc__panel { display: none; }
.calc__panel.is-active { display: grid; gap: 36px; }

.calc__field { display: grid; gap: 14px; }
.calc__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.calc__hint {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink-4);
  margin-left: 8px;
}

/* Segmented control */
.calc__seg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  border: 1px solid var(--line);
}
.calc__seg--2 { grid-template-columns: 1fr 1fr; }
.calc__seg--3 { grid-template-columns: 1fr 1fr 1fr; }
.calc__seg--4 { grid-template-columns: repeat(4, 1fr); }
.calc__seg button {
  padding: 16px 8px;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--ink-3);
  border-right: 1px solid var(--line);
  position: relative;
  transition: color .2s, background-color .2s;
}
.calc__seg button:last-child { border-right: 0; }
.calc__seg button:hover { color: var(--ink); background: rgba(255,255,255,.02); }
.calc__seg button.is-active {
  color: var(--y);
  background: var(--y-05);
}
.calc__seg button.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--y);
  pointer-events: none;
}

/* Slider */
.calc__slider-row {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 16px;
  align-items: center;
}
.calc__slider {
  -webkit-appearance: none;
  appearance: none;
  height: 2px;
  background: var(--line-2);
  outline: none;
  cursor: pointer;
}
.calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  background: var(--y);
  border: 3px solid #000;
  box-shadow: 0 0 0 1px var(--y), 0 0 14px var(--y-glow);
  cursor: pointer;
}
.calc__slider::-moz-range-thumb {
  width: 22px; height: 22px;
  background: var(--y);
  border: 3px solid #000;
  box-shadow: 0 0 0 1px var(--y), 0 0 14px var(--y-glow);
  cursor: pointer;
}
.calc__chip {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--y);
  text-align: center;
  border: 1px solid var(--line);
  padding: 8px 12px;
  background: var(--bg);
  letter-spacing: -0.02em;
}

.calc__number {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
}
.calc__number:focus { border-color: var(--y); outline: none; }

/* Addons */
.calc__addons { display: grid; gap: 8px; }
@media (min-width: 600px) { .calc__addons { grid-template-columns: 1fr 1fr; } }

.calc__addon {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(255,255,255,.015);
  border: 1px solid var(--line);
  text-align: left;
  transition: background-color .2s, border-color .2s;
}
.calc__addon:hover { border-color: var(--line-2); background: rgba(255,255,255,.03); }
.calc__addon.is-active {
  border-color: var(--y-30);
  background: var(--y-05);
}
.calc__addon .box {
  width: 18px; height: 18px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: inline-grid; place-items: center;
  flex-shrink: 0;
}
.calc__addon.is-active .box { background: var(--y); border-color: var(--y); }
.calc__addon.is-active .box::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.calc__addon .label {
  flex: 1;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}
.calc__addon .price {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--y);
  white-space: nowrap;
  font-weight: 500;
}
.calc__addon .price.muted { color: var(--ink-3); font-style: italic; }

/* Summary panel */
.calc__summary {
  background: #0a0a0b;
  border-left: 1px solid var(--line);
  padding: 32px;
}
@media (max-width: 959px) { .calc__summary { border-left: 0; border-top: 1px solid var(--line); } }
@media (min-width: 960px) {
  .calc__summary-inner { position: sticky; top: calc(var(--header-h) + 24px); }
}
.calc__summary-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--y);
  font-weight: 500;
  margin-bottom: 8px;
}
.calc__summary-label .dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: var(--y);
  box-shadow: 0 0 10px var(--y-glow);
  animation: pulse 2s infinite;
}
.calc__estimate {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 56px);
  line-height: 1;
  color: var(--y);
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.calc__estimate .unit { font-size: 0.5em; margin-left: 8px; color: var(--y); opacity: .8; letter-spacing: 0; }

.calc__lines {
  border-top: 1px solid var(--line-faint);
  margin-top: 24px;
  padding-top: 20px;
  display: grid;
  gap: 8px;
}
.calc__line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}
.calc__line .lbl { color: var(--ink-3); }
.calc__line .val {
  font-family: var(--f-mono);
  font-weight: 500;
  color: var(--ink);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.calc__line.total {
  border-top: 1px solid var(--line-faint);
  padding-top: 10px;
  margin-top: 4px;
}
.calc__line.total .lbl { color: var(--ink); font-weight: 600; }
.calc__line.total .val { color: var(--y); font-weight: 600; }

.calc__note {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.55;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-faint);
}

.calc__lead {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  display: grid;
  gap: 12px;
}
.calc__lead-intro { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.calc__lead-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
}
.calc__lead-input {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 12px 14px;
  font-size: 14px;
}
.calc__lead-input:focus { border-color: var(--y); outline: none; }

.calc__consent {
  display: flex; gap: 10px;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.5;
  cursor: pointer;
}
.calc__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px; height: 18px;
  flex-shrink: 0; margin-top: 1px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: inline-grid; place-content: center;
  cursor: pointer;
}
.calc__consent input[type="checkbox"]:checked { background: var(--y); border-color: var(--y); }
.calc__consent input[type="checkbox"]:checked::after {
  content: ""; width: 4px; height: 7px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.calc__consent a { color: var(--y); text-decoration: underline; }

.calc__submit {
  width: 100%;
  background: var(--y);
  color: #000;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .2s, transform .2s;
}
.calc__submit:hover:not(:disabled) { background: var(--y-bright); transform: translateY(-1px); }
.calc__submit:disabled { background: #2a2a32; color: #6c6c75; cursor: not-allowed; }
.calc__submit svg { width: 14px; height: 14px; }

.calc__success {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line-faint);
  text-align: center;
  display: grid;
  gap: 8px;
  justify-items: center;
}
/* HTML [hidden] must be explicit here - otherwise the display:grid above overrides the user-agent display:none. */
.calc__success[hidden] { display: none; }
.calc__success .check {
  width: 44px; height: 44px;
  border-radius: 999px;
  background: var(--y-10);
  border: 1px solid var(--y);
  color: var(--y);
  display: grid; place-items: center;
  font-size: 18px;
  font-weight: 700;
}
.calc__success .title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--y);
}
.calc__success p { font-size: 13px; color: var(--ink-2); }


/* =============================================================
   REVIEWS
   ============================================================= */

.reviews .container { display: grid; gap: 56px; }
.reviews__head {
  display: grid;
  gap: 32px;
  align-items: end;
}
@media (min-width: 768px) {
  .reviews__head { grid-template-columns: 1fr auto; gap: 48px; }
}
.reviews__head h2 { font-size: var(--fs-h2); }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--bg);
}
.rating__num {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 40px;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.rating__stars { display: inline-flex; gap: 2px; color: var(--y); }
.rating__stars svg { width: 14px; height: 14px; fill: var(--y); }
.rating__meta {
  display: grid; gap: 4px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.rating__google {
  padding-left: 20px;
  border-left: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
}
.rating__google svg { width: 18px; height: 18px; }

.marquee-wrap {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 16px;
  /* padding pochlania hover translate(-3px) na .review-card - bez tego overflow:hidden ucina gorny border karty. */
  padding: 8px 0;
  margin-top: 48px;
}
.marquee-wrap::before, .marquee-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 120px;
  z-index: 4; pointer-events: none;
}
.marquee-wrap::before { left: 0; background: linear-gradient(90deg, var(--card), transparent); }
.marquee-wrap::after  { right: 0; background: linear-gradient(-90deg, var(--card), transparent); }
.marquee {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 50s linear infinite;
}
.marquee.rev { animation-direction: reverse; animation-duration: 60s; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

.review-card {
  width: 380px;
  flex-shrink: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 28px;
  display: grid;
  gap: 18px;
  position: relative;
  transition: border-color .25s, transform .25s;
}
.review-card:hover { border-color: var(--y-30); transform: translateY(-3px); }
.review-card .quote {
  position: absolute;
  top: 16px; right: 18px;
  font-family: var(--f-display);
  font-size: 44px;
  line-height: 1;
  color: var(--y);
  opacity: .25;
}
.review-card__stars { display: inline-flex; gap: 2px; color: var(--y); }
.review-card__stars svg { width: 12px; height: 12px; fill: var(--y); }
.review-card__text {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.review-card__author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line-faint);
}
.review-card__avatar {
  width: 38px; height: 38px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--y-30);
  color: var(--y);
  display: grid; place-items: center;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.review-card__name {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.review-card__date {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 2px;
}


/* =============================================================
   CONTACT
   ============================================================= */

.contact__grid {
  display: grid;
  gap: 56px;
}
@media (min-width: 960px) {
  .contact__grid { grid-template-columns: 5fr 7fr; gap: 72px; }
}

.contact__intro { display: grid; gap: 24px; align-content: start; }
.contact__intro h2 { font-size: var(--fs-h2); }

.contact__cards { display: grid; gap: 12px; }
.contact-card {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color .2s, background-color .2s;
}
a.contact-card:hover { border-color: var(--y); background: var(--card-2); }
.contact-card .ico-box {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  color: var(--y);
  transition: background-color .2s, color .2s, border-color .2s;
}
.contact-card.is-primary .ico-box { background: var(--y); color: #000; border-color: var(--y); }
a.contact-card:not(.is-primary):hover .ico-box { background: var(--y); color: #000; border-color: var(--y); }
.contact-card .ico-box svg { width: 18px; height: 18px; }
.contact-card .label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.contact-card .val {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.contact-card .sub {
  font-size: 12px;
  color: var(--ink-3);
}
.contact-card .arrow {
  width: 18px; height: 18px;
  color: var(--ink-3);
  transition: color .2s, transform .2s;
}
a.contact-card:hover .arrow { color: var(--y); transform: translateX(3px); }

.form-wrap {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 32px;
  position: relative;
}
@media (min-width: 768px) { .form-wrap { padding: 48px; } }
.form-wrap::before {
  content: "";
  position: absolute;
  top: -1px; right: -1px;
  width: 80px; height: 80px;
  border-top: 2px solid var(--y);
  border-right: 2px solid var(--y);
  pointer-events: none;
}
.form-wrap__head { display: grid; gap: 8px; margin-bottom: 32px; }
.form-wrap__head h3 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.025em;
}
.form-wrap__head p { color: var(--ink-2); font-size: 15px; }

.form { display: grid; gap: 32px; }
.form__row { display: grid; gap: 32px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }

.field {
  position: relative;
}
.field input,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  height: 52px;
  padding: 16px 0 8px;
  color: var(--ink);
  font-size: 16px;
  outline: none;
  transition: border-color .2s;
  caret-color: var(--y);
}
.field textarea {
  height: auto;
  min-height: 120px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus { border-color: var(--y); }
.field label {
  position: absolute;
  left: 0; top: 18px;
  font-size: 15px;
  color: var(--ink-3);
  pointer-events: none;
  transition: top .2s, font-size .2s, color .2s, letter-spacing .2s, text-transform .2s, font-family .2s;
}
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -6px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--y);
  font-weight: 500;
}
.field.has-error input,
.field.has-error textarea { border-color: var(--err); }
.field__error {
  display: none;
  margin-top: 6px;
  font-size: 12px;
  color: var(--err);
}
.field.has-error .field__error { display: block; }

.form__consent {
  display: flex; gap: 12px;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  cursor: pointer;
}
.form__consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px; height: 20px;
  flex-shrink: 0; margin-top: 1px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  display: inline-grid; place-content: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.form__consent input[type="checkbox"]:checked { background: var(--y); border-color: var(--y); }
.form__consent input[type="checkbox"]:checked::after {
  content: "";
  width: 5px; height: 9px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.form__consent a { color: var(--y); text-decoration: underline; }
.form__consent.has-error input[type="checkbox"] { border-color: var(--err); }

/* Privacy Policy link inside any consent label (contact form + calculator).
   Yellow, underlined, brighter on hover/focus. Matches site design system. */
.zf-privacy-link {
  color: var(--y);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  font-weight: 500;
  transition: color .15s var(--ease-out);
}
.zf-privacy-link:hover,
.zf-privacy-link:focus-visible {
  color: var(--y-bright);
  text-decoration-thickness: 2px;
}
.zf-privacy-link:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 2px;
}

.form__msg {
  padding: 14px 16px;
  font-size: 14px;
  display: none;
}
.form__msg.ok  { display: block; background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.4); color: var(--ok); }
.form__msg.err { display: block; background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.4); color: var(--err); }


/* =============================================================
   FOOTER
   ============================================================= */

.footer {
  background: #050506;
  border-top: 1px solid var(--line);
  padding: clamp(64px, 7vw, 96px) 0 40px;
  position: relative;
  overflow: hidden;
}
.footer__glow {
  position: absolute;
  bottom: -20%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--y-05) 0%, transparent 70%);
  pointer-events: none;
}
.footer .container { position: relative; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 720px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 2.4fr 1fr 1fr 1.2fr; } }

.footer__brand { display: grid; gap: 20px; align-content: start; }
.footer__brand .logo__name { font-size: 18px; }
.footer__desc { color: var(--ink-2); font-size: 15px; max-width: 36ch; line-height: 1.55; }
.footer__cert-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.footer__cert {
  display: inline-flex; align-items: center; gap: 10px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  width: max-content;
  box-sizing: border-box;
}
.footer__cert svg { width: 16px; height: 16px; color: var(--y); }
.footer__cert span {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-2);
  text-transform: uppercase;
}

.footer__col h4 {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  margin-bottom: 18px;
}
.footer__links { display: grid; gap: 12px; }
.footer__links a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: 15px;
  color: var(--ink-2);
  transition: color .2s, padding-left .2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.footer__links a:hover { color: var(--y); padding-left: 8px; }
.footer__links a.is-active { color: var(--y); padding-left: 8px; }

.footer__contact { display: grid; gap: 16px; font-style: normal; }
.footer__contact .row {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.footer__contact .row svg { width: 16px; height: 16px; color: var(--y); margin-top: 4px; }
.footer__contact .lbl {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 3px;
}
.footer__contact a, .footer__contact span {
  color: var(--ink);
  font-size: 14px;
  display: block;
}
.footer__contact a:hover { color: var(--y); }

/* Inline legal links below the Certyfikowany instalator + social row. */
.footer__legal {
  margin-top: 14px;
  display: flex; flex-wrap: wrap; gap: 10px;
  align-items: center;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
.footer__legal a,
.footer__legal-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .15s var(--ease-out);
}
.footer__legal a:hover,
.footer__legal-link:hover { color: var(--y); }
.footer__legal .sep { color: var(--ink-4); }

.footer__bar {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
  align-items: center;
}
@media (min-width: 760px) {
  .footer__bar { grid-template-columns: 1fr auto; }
}
.footer__copy {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  color: var(--ink-3);
}
.footer__copy strong { color: var(--ink-2); font-weight: 500; }
.footer__credit {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 1;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: color .2s;
}
.footer__credit > span,
.footer__credit > b {
  display: inline-flex;
  align-items: center;
  height: 28px;
  line-height: 1;
}
.footer__credit img {
  width: 28px; height: 28px;
  border-radius: 6px;
  transition: transform .25s var(--ease-out);
}
.footer__credit:hover { color: var(--ink); }
.footer__credit:hover img { transform: rotate(-6deg) scale(1.05); }
.footer__credit b { color: var(--ink); font-weight: 500; font-family: var(--f-display); font-size: 13px; letter-spacing: -0.01em; text-transform: none; transform: translateY(-2px); }
.footer__social { display: inline-flex; gap: 8px; }
.footer__social a {
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: background-color .2s, color .2s, border-color .2s;
  color: var(--ink-2);
}
.footer__social a:hover { background: var(--y); color: #000; border-color: var(--y); }
.footer__social svg { width: 14px; height: 14px; }


/* =============================================================
   FAB (floating call button on mobile)
   ============================================================= */

.fab-tel {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--y);
  color: #000;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 var(--y-glow);
  animation: fabPulse 2s ease-in-out infinite;
}
.fab-tel svg { width: 22px; height: 22px; }
@keyframes fabPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(254,236,9,.55); }
  50% { box-shadow: 0 0 0 14px rgba(254,236,9,0); }
}
@media (min-width: 960px) { .fab-tel { display: none; } }

.fab-top {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 60;
  width: 44px; height: 44px;
  background: var(--y);
  color: #000;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  display: none;
  align-items: center; justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, background-color .2s;
}
.fab-top svg { width: 16px; height: 16px; color: #000; stroke: #000; }
.fab-top.is-visible { opacity: 1; transform: translateY(0); }
.fab-top:hover { background: var(--y-bright); }
.fab-top:focus,
.fab-top:focus-visible { outline: 0 !important; box-shadow: none !important; }
@media (min-width: 960px) { .fab-top { display: flex; } }


/* =============================================================
   Scroll reveal
   ============================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__title .stroke::after { animation: none; clip-path: polygon(0 0, 100% 0, 100% 115%, 0 115%); }
  .marquee { animation: none; }
  .fab-tel { animation: none; }
  .hero__scroll .line::after { animation: none; }
}


/* =========================================================
   ZF GALLERY (Realizacje + others)
   Responsive grid of project photos with optional hover overlay
   that shows location, date and a short description.
   ========================================================= */
.zf-gallery {
  display: grid;
  width: 100%;
}
.zf-gallery[data-gap="none"] { gap: 0; }
.zf-gallery[data-gap="xs"]   { gap: 8px; }
.zf-gallery[data-gap="sm"]   { gap: 16px; }
.zf-gallery[data-gap="md"]   { gap: 24px; }

/* mobile-first columns, driven by --cols-* inline vars */
.zf-gallery { grid-template-columns: repeat(var(--cols-m, 1), 1fr); }
@media (min-width: 640px) {
  .zf-gallery { grid-template-columns: repeat(var(--cols-t, 2), 1fr); }
}
@media (min-width: 960px) {
  .zf-gallery { grid-template-columns: repeat(var(--cols-d, 3), 1fr); }
}

.zf-gallery__item {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  isolation: isolate;
  margin: 0;
}

/* Gallery widget wrapper - self-contained container so it aligns with header
   regardless of whether the parent Elementor section is boxed or full-width. */
.zf-gallery-wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  box-sizing: border-box;
}

/* "Load more" button row — centered, tight gap to the gallery grid above. */
.zf-gallery__more {
  display: flex;
  justify-content: center;
  margin-top: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(32px, 5vw, 72px);
}
.zf-gallery__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: transparent;
  color: var(--ink-2);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: color .2s var(--ease-out), border-color .2s var(--ease-out), background-color .2s var(--ease-out);
}
.zf-gallery__more-btn:hover {
  color: var(--y);
  border-color: var(--y-30);
  background: var(--y-05);
}
.zf-gallery__more-count {
  opacity: .6;
  font-variant-numeric: tabular-nums;
}
.zf-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s var(--ease-out), filter .35s var(--ease-out);
}

/* Overlay - bottom gradient by default, fuller on hover/focus */
/* Yellow tint overlay - hidden by default, fades in on hover/focus.
   Shows centered location + date over the image. */
.zf-gallery__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 16px;
  background: rgba(254, 236, 9, 0.78);
  opacity: 0;
  transition: opacity .25s var(--ease-out);
  pointer-events: none;
}
.zf-gallery__item:hover .zf-gallery__overlay,
.zf-gallery__item:focus-within .zf-gallery__overlay {
  opacity: 1;
}

/* Restore subtle image zoom on hover. */
.zf-gallery__item:hover img,
.zf-gallery__item:focus-within img {
  transform: scale(1.06);
  filter: brightness(1.05);
}

.zf-gallery__overlay-inner {
  width: 100%;
  display: grid;
  gap: 6px;
  justify-items: center;
  text-align: center;
  transform: translateY(6px);
  transition: transform .25s var(--ease-out);
}
.zf-gallery__item:hover .zf-gallery__overlay-inner,
.zf-gallery__item:focus-within .zf-gallery__overlay-inner {
  transform: translateY(0);
}

.zf-gallery__location {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 18px;
  color: #0a0a0b;
  letter-spacing: -0.01em;
}
.zf-gallery__location svg { width: 16px; height: 16px; color: #0a0a0b; flex-shrink: 0; }
.zf-gallery__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #0a0a0b;
}
.zf-gallery__date svg { width: 12px; height: 12px; color: #0a0a0b; flex-shrink: 0; }
/* Description hidden in overlay - only location + date per spec. */
.zf-gallery__desc { display: none; }

/* If show_meta_overlay is OFF, hide the overlay entirely. */
.zf-gallery--no-overlay .zf-gallery__overlay { display: none; }

/* Items - cursor pointer for visual affordance (the zoom button opens the lightbox). */
.zf-gallery__item { cursor: pointer; }
.zf-gallery__zoom {
  position: absolute;
  top: 10px; right: 10px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(10,10,11,.78);
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.18);
  cursor: pointer;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .25s var(--ease-out), transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s;
  z-index: 3;
  padding: 0;
}
.zf-gallery__zoom svg { width: 16px; height: 16px; }
.zf-gallery__item:hover .zf-gallery__zoom,
.zf-gallery__item:focus-within .zf-gallery__zoom {
  opacity: 1;
  transform: translateY(0);
}
.zf-gallery__zoom:hover {
  background: var(--y);
  color: #0a0a0b;
  border-color: var(--y);
}
.zf-gallery__zoom:focus-visible { outline: 2px solid var(--y); outline-offset: 2px; }

/* "+N" badge — shown on tiles whose realisation has extra photos beyond the cover. */
.zf-gallery__count {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: rgba(10,10,11,.78);
  color: var(--y);
  border: 1px solid rgba(255,255,255,.18);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1;
  pointer-events: none;
  transition: background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
}
.zf-gallery__count svg { width: 14px; height: 14px; flex-shrink: 0; }
.zf-gallery__count-num { white-space: nowrap; }
.zf-gallery__item.has-extra:hover .zf-gallery__count,
.zf-gallery__item.has-extra:focus-within .zf-gallery__count {
  background: var(--y);
  color: #0a0a0b;
  border-color: var(--y);
}

/* The <noscript> fallback list is only rendered when JS is disabled; the
   browser-native behaviour for <noscript> already keeps it hidden under JS.
   Style it minimally so JS-off visitors and crawlers can still scan it. */
.zf-gallery__noscript { margin: 24px 0 0; padding: 0; list-style: none; color: var(--ink-2); font-size: 14px; }
.zf-gallery__noscript > li { margin: 0 0 12px; }
.zf-gallery__noscript ul { margin: 6px 0 0 16px; padding: 0; list-style: disc; }
.zf-gallery__noscript a { color: var(--ink); text-decoration: underline; }

/* =========================================================
   ZF LIGHTBOX (fullscreen photo browser)
   ========================================================= */
.zf-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: rgba(6,6,8,.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  overflow: hidden;
  transition: opacity .25s var(--ease-out);
}
.zf-lightbox.is-open {
  display: flex;
  opacity: 1;
}
body.zf-lightbox-open { overflow: hidden; }

.zf-lightbox__stage {
  position: relative;
  width: 100%;
  max-width: 1400px;
  height: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  overflow: hidden;
}
.zf-lightbox__img-wrap {
  position: relative;
  width: 100%;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
}
.zf-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  background: #0a0a0b;
  transition: opacity .2s var(--ease-out);
}
.zf-lightbox.is-loading .zf-lightbox__img { opacity: .35; }

.zf-lightbox__close,
.zf-lightbox__nav {
  position: absolute;
  background: rgba(0,0,0,0.5);
  color: var(--ink);
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color .2s, color .2s, transform .2s;
  font-family: var(--f-mono);
}
.zf-lightbox__close:focus-visible,
.zf-lightbox__nav:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 2px;
}
.zf-lightbox__close {
  top: 16px;
  right: 16px;
  width: 44px; height: 44px;
  z-index: 3;
}
.zf-lightbox__close svg { width: 20px; height: 20px; }
.zf-lightbox__close:hover { background: var(--y); color: #000; }

.zf-lightbox__nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 24px;
  line-height: 1;
  z-index: 10000;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.zf-lightbox__nav svg { width: 22px; height: 22px; opacity: .9; }
.zf-lightbox__nav:hover {
  background: var(--y);
  color: #000;
  border-color: var(--y);
  transform: translateY(-50%) scale(1.05);
}
.zf-lightbox__nav:hover svg { opacity: 1; }
.zf-lightbox__nav--prev { left: 20px; }
.zf-lightbox__nav--next { right: 20px; }
.zf-lightbox__nav[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.zf-lightbox__counter {
  position: absolute;
  top: 16px; left: 16px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ink-2);
  background: rgba(0,0,0,0.5);
  padding: 6px 12px;
  z-index: 3;
}
.zf-lightbox__counter[hidden] { display: none; }

.zf-lightbox__meta {
  width: 100%;
  max-width: 900px;
  display: grid;
  gap: 4px;
  text-align: center;
  color: var(--ink);
  padding: 0 12px;
}
.zf-lightbox__meta:empty { display: none; }
.zf-lightbox__meta-location {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.zf-lightbox__meta-location svg { width: 14px; height: 14px; color: var(--y); flex-shrink: 0; }
.zf-lightbox__meta-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--y);
}
.zf-lightbox__meta-date svg { width: 11px; height: 11px; color: var(--y); flex-shrink: 0; }
.zf-lightbox__meta-desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.45;
  margin-top: 4px;
}
.zf-lightbox__meta > *:empty { display: none; }
.zf-lightbox__meta { flex-shrink: 0; }

/* Thumbnail strip — appears only when a realisation has more than one photo. */
.zf-lightbox__thumbs {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 900px;
  flex-shrink: 0;
  margin-top: 4px;
  padding: 8px 4px 2px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.25) transparent;
}
.zf-lightbox__thumbs[hidden] { display: none; }
.zf-lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.zf-lightbox__thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.22); }
.zf-lightbox__thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 56px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.15);
  background: #0a0a0b;
  cursor: pointer;
  overflow: hidden;
  opacity: .65;
  transition: opacity .2s var(--ease-out), border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.zf-lightbox__thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.zf-lightbox__thumb:hover,
.zf-lightbox__thumb:focus-visible { opacity: 1; border-color: rgba(255,255,255,.4); outline: none; }
.zf-lightbox__thumb.is-active {
  opacity: 1;
  border-color: var(--y);
  transform: translateY(-2px);
}

@media (max-width: 720px) {
  .zf-lightbox { padding: 12px; }
  .zf-lightbox__nav { width: 44px; height: 44px; }
  .zf-lightbox__nav--prev { left: 8px; }
  .zf-lightbox__nav--next { right: 4px; }
  .zf-lightbox__close { top: 8px; right: 8px; width: 40px; height: 40px; }
  .zf-lightbox__counter { top: 8px; left: 8px; }
  .zf-lightbox__thumb { width: 56px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .zf-lightbox,
  .zf-lightbox__img,
  .zf-lightbox__nav,
  .zf-lightbox__close,
  .zf-gallery__zoom,
  .zf-lightbox__thumb { transition: none; }
}

/* =========================================================
   ZF FAQ (frequently asked questions)
   Native <details>/<summary> accordion in brand styling.
   ========================================================= */
.faq__head { text-align: center; max-width: 760px; margin: 0 auto 32px; }
.faq__head .lead { margin-top: 16px; }

.faq__list {
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin: 0 auto;
}

.faq__item {
  background: var(--bg-soft, #fafafa);
  border: 1px solid var(--line, #e5e5e5);
  transition: border-color .2s var(--ease-out);
}
.faq__item:hover { border-color: var(--y, #feec09); }
.faq__item[open] { border-color: var(--y, #feec09); background: #fff; }

.faq__q {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.4;
  color: var(--ink);
  user-select: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-text { flex: 1; }
.faq__icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  color: var(--ink-2);
  transition: transform .25s var(--ease-out), color .2s var(--ease-out);
}
.faq__icon svg { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(180deg); color: var(--ink); }

.faq__a {
  padding: 0 20px 16px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
}
.faq__a p { margin: 0 0 10px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--y, #feec09); }

@media (max-width: 720px) {
  .faq__q { padding: 14px 16px; font-size: 15px; }
  .faq__a { padding: 0 16px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq__icon, .faq__item { transition: none; }
}

/* ============================================================
   ZF COMPLIANZ COOKIE BANNER (brand override) — codecollab.pl
   Brand skin for Complianz: black background, yellow accents,
   sharp edges, mono caps on CTAs, f-display typography for body.

   How Complianz actually toggles visibility (v7.4+):
     1. Banner is rendered with `.cmplz-cookiebanner.cmplz-hidden`.
        Plugin emits an inline <style>.cmplz-hidden{display:none!important}</style>
        in <head> that hides it until the dynamic banner CSS finishes loading.
     2. After the dynamic CSS <link> onload fires, JS removes `.cmplz-hidden`.
        The banner then falls back to the dynamic CSS rule
        `.cmplz-cookiebanner { display: grid; }` and becomes VISIBLE.
     3. On accept/deny, JS adds `.cmplz-dismissed` and the rule
        `.cmplz-cookiebanner.cmplz-dismissed { display: none; }` hides it.

   `.cmplz-show` is a status flag (added before/after `cmplz-hidden` is
   stripped — they overlap briefly). Do NOT key display:flex off
   `.cmplz-show` — its higher specificity beats the inline cmplz-hidden
   rule during that race window, causing a flash of the un-styled banner.

   Strategy: set the brand display:flex on the base selector (no
   !important). It loses to the inline `.cmplz-hidden` and to the dynamic
   `.cmplz-dismissed` rules (both use display:none), which keep the
   hidden states intact, but wins over the dynamic default
   `display: grid` thanks to higher specificity (type + class).
   ============================================================ */

div.cmplz-cookiebanner {
  display: flex;
  flex-direction: column;
  background: #0a0a0b !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  font-family: var(--f-display) !important;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,.75), 0 0 0 1px var(--line-faint) !important;
  width: calc(100% - 32px) !important;
  max-width: 600px !important;
  max-height: min(680px, calc(100vh - 32px)) !important;
  margin: 16px auto !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Sticky header + buttons, scrollable body */
div.cmplz-cookiebanner .cmplz-header,
div.cmplz-cookiebanner .cmplz-body,
div.cmplz-cookiebanner .cmplz-links,
div.cmplz-cookiebanner .cmplz-documents,
div.cmplz-cookiebanner .cmplz-buttons {
  padding-left: 24px !important;
  padding-right: 24px !important;
}
div.cmplz-cookiebanner .cmplz-divider { margin-left: 24px !important; margin-right: 24px !important; }

div.cmplz-cookiebanner .cmplz-header {
  padding: 26px 24px 0 !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 12px !important;
  min-height: 0 !important;
}
/* Header divider with no own top-margin so spacing stays symmetric around the title */
div.cmplz-cookiebanner .cmplz-divider.cmplz-divider-header { margin-top: 0 !important; }
/* Empty .cmplz-logo div takes no space */
div.cmplz-cookiebanner .cmplz-logo:empty { display: none !important; }
div.cmplz-cookiebanner .cmplz-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  flex: 1 1 auto !important;
  text-align: center !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* X close hidden — banner requires a conscious action; X is not required by GDPR. */
div.cmplz-cookiebanner .cmplz-close { display: none !important; }
/* WP admin-bar offset — keep clear of the top toolbar. */
body.admin-bar div.cmplz-cookiebanner {
  margin-top: 48px !important;
  max-height: min(680px, calc(100vh - 80px)) !important;
}
@media (max-width: 782px) {
  body.admin-bar div.cmplz-cookiebanner {
    margin-top: 60px !important;
    max-height: calc(100vh - 76px) !important;
  }
}
div.cmplz-cookiebanner .cmplz-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
div.cmplz-cookiebanner .cmplz-body::-webkit-scrollbar { width: 6px; }
div.cmplz-cookiebanner .cmplz-body::-webkit-scrollbar-track { background: transparent; }
div.cmplz-cookiebanner .cmplz-body::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 0; }
div.cmplz-cookiebanner .cmplz-body::-webkit-scrollbar-thumb:hover { background: var(--y); }
div.cmplz-cookiebanner .cmplz-buttons,
div.cmplz-cookiebanner .cmplz-links,
div.cmplz-cookiebanner .cmplz-documents { flex: 0 0 auto !important; }
div.cmplz-cookiebanner .cmplz-buttons { padding-top: 4px !important; padding-bottom: 20px !important; }
/* Redundant divider just above the buttons. */
div.cmplz-cookiebanner .cmplz-divider.cmplz-footer { display: none !important; }
.cmplz-cookiebanner .cmplz-title {
  font-family: var(--f-display) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--ink) !important;
  text-transform: none !important;
}
.cmplz-cookiebanner .cmplz-close {
  color: var(--ink-3) !important;
  width: 24px; height: 24px;
  display: grid; place-items: center;
  transition: color .2s var(--ease-out, ease) !important;
}
.cmplz-cookiebanner .cmplz-close:hover { color: var(--y) !important; }
.cmplz-cookiebanner .cmplz-close svg { width: 14px; height: 14px; }

.cmplz-cookiebanner .cmplz-divider {
  background: var(--line) !important;
  border: 0 !important;
  height: 1px !important;
  margin: 18px 0 !important;
  opacity: 1 !important;
}

.cmplz-cookiebanner .cmplz-message {
  font-family: var(--f-display) !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: var(--ink-2) !important;
  margin-bottom: 18px !important;
}

/* Categories */
div.cmplz-cookiebanner .cmplz-categories {
  display: grid !important;
  gap: 10px !important;
  margin: 4px 0 8px !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
}
div.cmplz-cookiebanner .cmplz-category {
  display: block !important;
  background: rgb(255 255 255 / .03) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* "Preferences" category hidden entirely — aligned with the rest of the consent UI. */
div.cmplz-cookiebanner .cmplz-category.cmplz-preferences { display: none !important; }
div.cmplz-cookiebanner .cmplz-category > summary {
  padding: 14px 16px !important;
  cursor: pointer !important;
  list-style: none !important;
  display: block !important;
  outline: none !important;
}
.cmplz-cookiebanner .cmplz-category > summary::-webkit-details-marker { display: none; }
.cmplz-cookiebanner .cmplz-category-header {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}
.cmplz-cookiebanner .cmplz-category-title {
  font-family: var(--f-display) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.005em !important;
  color: var(--ink) !important;
  flex: 1;
}
.cmplz-cookiebanner .cmplz-always-active {
  color: var(--y) !important;
  font-family: var(--f-mono) !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  background: var(--y-10) !important;
  padding: 4px 10px !important;
  border: 1px solid var(--y-30) !important;
}
div.cmplz-cookiebanner .cmplz-icon { color: var(--ink) !important; transition: color .2s, transform .2s; }
div.cmplz-cookiebanner .cmplz-icon svg { width: 14px !important; height: 14px !important; fill: currentColor !important; }
div.cmplz-cookiebanner .cmplz-icon svg path { fill: currentColor !important; }
div.cmplz-cookiebanner .cmplz-category[open] .cmplz-icon { transform: rotate(180deg); }
div.cmplz-cookiebanner .cmplz-category > summary:hover .cmplz-icon { color: var(--y) !important; }
.cmplz-cookiebanner .cmplz-description {
  padding: 0 16px 14px !important;
  font-family: var(--f-display) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: var(--ink-3) !important;
}

/* Switch (toggle) — based on checkbox input */
.cmplz-cookiebanner .cmplz-banner-checkbox { display: inline-flex; align-items: center; }
.cmplz-cookiebanner .cmplz-banner-checkbox input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 36px !important;
  height: 20px !important;
  background: var(--line) !important;
  border: 1px solid var(--line-2) !important;
  border-radius: 999px !important;
  position: relative !important;
  cursor: pointer !important;
  transition: background-color .2s, border-color .2s !important;
  margin: 0 !important;
  padding: 0 !important;
}
.cmplz-cookiebanner .cmplz-banner-checkbox input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  background: var(--ink-3);
  border-radius: 50%;
  top: 2px; left: 2px;
  transition: transform .2s, background .2s;
}
.cmplz-cookiebanner .cmplz-banner-checkbox input[type="checkbox"]:checked {
  background: var(--y) !important;
  border-color: var(--y-deep) !important;
}
.cmplz-cookiebanner .cmplz-banner-checkbox input[type="checkbox"]:checked::before {
  transform: translateX(16px);
  background: #000;
}
.cmplz-cookiebanner .cmplz-banner-checkbox input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--y);
  outline-offset: 2px;
}
/* Label must stay in the DOM for a11y (links to input via for=) but is visually hidden. */
.cmplz-cookiebanner .cmplz-banner-checkbox .cmplz-label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Buttons */
div.cmplz-cookiebanner .cmplz-buttons {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
}
div.cmplz-cookiebanner .cmplz-btn {
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  height: 42px !important;
  padding: 0 18px !important;
  border-radius: 0 !important;
  border: 1px solid transparent !important;
  cursor: pointer !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 130px !important;
  max-width: 100% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background-color .2s var(--ease-out, ease), color .2s, border-color .2s, transform .2s !important;
}
/* Accept = primary CTA — wider than the rest. */
div.cmplz-cookiebanner .cmplz-btn.cmplz-accept { flex: 2 1 200px !important; }

/* Hide the redundant "View preferences" button — toggles are already
   visible in the categories list, so a separate expand button is noise.
   Covers both <button class="cmplz-view-preferences"> and <a class="cmplz-manage-options">. */
div.cmplz-cookiebanner button.cmplz-btn.cmplz-view-preferences,
div.cmplz-cookiebanner a.cmplz-btn.cmplz-manage-options { display: none !important; }
/* Fallback ghost-button styling in case the link variant is left in place. */
div.cmplz-cookiebanner a.cmplz-btn {
  text-decoration: none !important;
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line-2) !important;
}
div.cmplz-cookiebanner a.cmplz-btn:hover { color: var(--y) !important; border-color: var(--y) !important; }
.cmplz-cookiebanner .cmplz-btn:hover { transform: translateY(-1px); }
.cmplz-cookiebanner .cmplz-btn.cmplz-accept,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences {
  background: var(--y) !important;
  color: #000 !important;
  border-color: var(--y) !important;
  box-shadow: 0 0 0 0 var(--y-glow) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-accept:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-save-preferences:hover {
  background: var(--y-bright) !important;
  border-color: var(--y-bright) !important;
  box-shadow: 0 6px 16px -10px var(--y-glow) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-deny,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences {
  background: transparent !important;
  color: var(--ink) !important;
  border-color: var(--line-2) !important;
}
.cmplz-cookiebanner .cmplz-btn.cmplz-deny:hover,
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences:hover {
  color: var(--y) !important;
  border-color: var(--y) !important;
}

/* Links (manage options / vendors / docs) */
.cmplz-cookiebanner .cmplz-links { margin: 16px 0 0 !important; }
.cmplz-cookiebanner .cmplz-links ul { padding: 0 !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cmplz-cookiebanner .cmplz-links li { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.cmplz-cookiebanner .cmplz-links a {
  font-family: var(--f-mono) !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: var(--ink-3) !important;
  text-decoration: none !important;
  transition: color .2s !important;
}
.cmplz-cookiebanner .cmplz-links a:hover { color: var(--y) !important; }

.cmplz-cookiebanner .cmplz-documents { margin-top: 12px !important; }

/* Reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .cmplz-cookiebanner .cmplz-btn,
  .cmplz-cookiebanner .cmplz-banner-checkbox input,
  .cmplz-cookiebanner .cmplz-icon { transition: none !important; }
}

/* Mobile */
@media (max-width: 640px) {
  div.cmplz-cookiebanner {
    width: calc(100% - 16px) !important;
    margin: 8px auto !important;
    max-height: calc(100vh - 16px) !important;
  }
  div.cmplz-cookiebanner .cmplz-header,
  div.cmplz-cookiebanner .cmplz-body,
  div.cmplz-cookiebanner .cmplz-links,
  div.cmplz-cookiebanner .cmplz-documents,
  div.cmplz-cookiebanner .cmplz-buttons { padding-left: 18px !important; padding-right: 18px !important; }
  div.cmplz-cookiebanner .cmplz-divider { margin-left: 18px !important; margin-right: 18px !important; }
  div.cmplz-cookiebanner .cmplz-title { font-size: 18px !important; }
  div.cmplz-cookiebanner .cmplz-message { font-size: 13px !important; }
  div.cmplz-cookiebanner .cmplz-close { top: 14px !important; right: 14px !important; }
  div.cmplz-cookiebanner .cmplz-header { padding-top: 20px !important; padding-right: 48px !important; padding-left: 48px !important; }
  div.cmplz-cookiebanner .cmplz-buttons {
    flex-direction: column !important;
    gap: 8px !important;
  }
  div.cmplz-cookiebanner .cmplz-btn,
  div.cmplz-cookiebanner .cmplz-btn.cmplz-accept { flex: 0 0 auto !important; width: 100% !important; min-width: 0 !important; }
}

/* ============================================================
   "Zarządzaj zgodą" floating tab — bottom-left.
   Visual twin of .fab-top (scroll-to-top), mirrored to the left:
   same 44px height, yellow on black-text, sharp edges, z-index 60.
   Wins over Complianz dynamic CSS (#cmplz-manage-consent .cmplz-manage-consent
   defaults to bottom + right:40px) by adding body specificity.
   ============================================================ */
body #cmplz-manage-consent .cmplz-manage-consent {
  position: fixed !important;
  bottom: 20px !important;
  left: 20px !important;
  right: auto !important;
  top: auto !important;
  z-index: 60 !important;
  height: 44px !important;
  min-width: 0 !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: var(--y) !important;
  color: #000 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-family: var(--f-mono) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.10em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  animation: none !important;
  transition: background-color .2s var(--ease-out, ease), transform .2s !important;
}
body #cmplz-manage-consent .cmplz-manage-consent:hover { background: var(--y-bright) !important; transform: translateY(-1px); }
body #cmplz-manage-consent .cmplz-manage-consent:focus,
body #cmplz-manage-consent .cmplz-manage-consent:focus-visible { outline: 0 !important; box-shadow: none !important; }
/* Hidden under 960px — mirrors .fab-top breakpoint. Mobile users still
   reach consent settings via the privacy policy link in the footer. */
@media (max-width: 959px) {
  body #cmplz-manage-consent .cmplz-manage-consent { display: none !important; }
}
