:root {
  --red: #e30613;
  --red-dark: #b8050f;
  --ink: #1b1b1b;
  --gray: #6b6b6b;
  --light: #f7f7f7;
  --border: #e8e8e8;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0 0 12px; font-weight: 800; }

.section-title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 6px;
}

.section-sub {
  text-align: center;
  color: var(--gray);
  margin-bottom: 40px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo img { height: 46px; width: auto; }

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0;
  padding: 0;
}

.main-nav a {
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .03em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transition: transform .2s ease;
}

.main-nav a:hover::after { transform: scaleX(1); }

.nav-shop { color: var(--red); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--light);
  overflow: hidden;
}

.hero-slider { position: relative; min-height: 480px; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease;
}

.slide.is-active { opacity: 1; visibility: visible; position: relative; }

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding-top: 70px;
  padding-bottom: 70px;
  min-height: 480px;
}

.hero-text { max-width: 520px; }

.eyebrow {
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  margin-bottom: 8px;
}

.hero-text h1 { font-size: 42px; margin-bottom: 4px; }
.hero-text h2 { font-size: 20px; font-weight: 600; color: var(--gray); margin-bottom: 16px; }
.hero-text p { color: #333; margin-bottom: 24px; }

.hero-services-list {
  color: var(--gray);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.7;
  margin-top: -10px;
  margin-bottom: 24px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.hero-badge svg { color: var(--red); flex: 0 0 auto; }
.hero-badge span {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 720px) {
  .hero-services-list { display: none; }
  .hero-cta-row { flex-direction: column; width: 100%; }
  .hero-badge { display: none; }
}

.btn {
  display: inline-block;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 12px 28px;
  border-radius: 2px;
  transition: background .2s ease, color .2s ease;
}

.btn:hover { background: var(--red); color: #fff; }

.hero-graphic { width: 320px; flex-shrink: 0; }
.hero-graphic svg { width: 100%; height: auto; }

/* ---------- Hero photo graphic (HP Latex slide) ---------- */
.hero-inner-photo {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  grid-template-areas: "title graphic" "body graphic";
  align-items: center;
  column-gap: 40px;
  row-gap: 6px;
  min-height: 480px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero-title-block { grid-area: title; align-self: end; }
.hero-body-block { grid-area: body; align-self: start; }
.hero-inner-photo .hero-graphic-photo { grid-area: graphic; }

.hero-title-red { color: var(--red); }
.hero-title-block .eyebrow { color: var(--gray); }

.btn-offer { display: inline-flex; align-items: center; gap: 8px; }
.btn-arrow { animation: arrow-bounce 1.6s ease-in-out infinite; }
.scroll-arrow-mobile { display: none; }

@keyframes arrow-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

.hero-graphic-photo {
  position: relative;
  width: 100%;
  max-width: 620px;
  height: 560px;
  justify-self: end;
}

.glow-blobs {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 24px;
  z-index: 1;
  pointer-events: none;
}

.blob-parallax {
  position: absolute;
  display: block;
  width: 160px;
  height: 160px;
  transition: transform .25s ease-out;
  will-change: transform;
}

.blob-parallax-1 { top: -20px; left: -30px; }
.blob-parallax-2 { bottom: -30px; right: -20px; }
.blob-parallax-3 { top: 45%; left: 55%; width: 120px; height: 120px; }

.blob {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--red);
  opacity: 0.35;
  filter: blur(18px);
  animation: blob-float 7s ease-in-out infinite;
}

.blob-parallax-2 .blob { animation-duration: 8.5s; animation-delay: -2s; }
.blob-parallax-3 .blob { animation-duration: 6s; animation-delay: -4s; opacity: 0.28; }

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(14px, -18px) scale(1.08); }
}

.flow-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  z-index: 2;
}

.flow-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: inherit;
  background: conic-gradient(from 0deg, transparent 0%, transparent 72%, var(--red) 84%, transparent 96%);
  animation: flow-spin 4s linear infinite;
  z-index: 0;
}

.flow-frame::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 20px;
  background: var(--light);
  z-index: 1;
}

@keyframes flow-spin {
  to { transform: rotate(360deg); }
}

.pan-photo {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  animation: pan-in .9s cubic-bezier(.2,.7,.3,1) both;
}

@keyframes pan-in {
  from { opacity: 0; transform: translateX(36px) scale(.94); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

/* Slides temporarily switched off — only slide 1 shows for now */
.slide-off { display: none !important; }

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 0; right: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* only one slide active for now — hide the (unused) dot navigation */
.slider-dots { display: none; }

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--red);
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.dot.is-active { background: var(--red); }

/* ---------- CTA bar (Sklep / Kontakt / Facebook) — separate floating cards,
   tucked up over the bottom edge of the hero slider ---------- */
.cta-bar {
  position: relative;
  z-index: 2;
  margin-top: -46px;
}

.cta-bar-inner {
  display: flex;
  gap: 20px;
  width: 100%;
}

.cta-bar-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 18px;
  color: var(--ink);
  text-decoration: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-bar-item:hover { transform: translateY(-3px); box-shadow: 0 20px 38px rgba(0,0,0,0.18); }

.cta-bar-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(227, 6, 19, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
}

.cta-bar-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}
.cta-bar-text strong {
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.cta-bar-text small { font-size: 12px; color: var(--gray); }

.cta-bar-arrow { margin-left: auto; flex: 0 0 auto; opacity: .5; color: var(--red); }

@media (min-width: 721px) {
  .cta-bar-item { flex-direction: row; }
}

@media (max-width: 720px) {
  .cta-bar { margin-top: -24px; }
  .cta-bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .cta-bar-item { padding: 14px 14px; flex-direction: column; text-align: center; gap: 8px; }
  .cta-bar-arrow { display: none; }
}

/* ---------- Stats bar (1500+ / 12 lat / 98% / 24h) ---------- */
.stats-bar {
  background: linear-gradient(90deg, #7a0e12 0%, var(--red) 100%);
  padding: 34px 0;
  margin-top: 30px;
}
.stats-bar-inner {
  display: flex;
}
.stat-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  color: #fff;
  padding: 0 16px;
  border-right: 1px solid rgba(255,255,255,0.25);
}
.stat-item:last-child { border-right: none; }
.stat-item strong { font-size: 26px; font-weight: 800; }
.stat-item span { font-size: 12.5px; opacity: .9; }

@media (max-width: 720px) {
  .stats-bar { margin-top: 24px; padding: 24px 0; }
  .stats-bar-inner { flex-wrap: wrap; gap: 20px 0; }
  .stat-item { flex: 0 0 50%; border-right: none; }
  .stat-item strong { font-size: 21px; }
}

/* ---------- Hero: diagonal red panel behind the printer photo ---------- */
.hero-diagonal-panel {
  position: absolute;
  top: -14%;
  right: -10%;
  width: 130%;
  height: 128%;
  z-index: -1;
  background:
    radial-gradient(circle, rgba(255,255,255,0.35) 1.5px, transparent 1.5px) top right / 16px 16px,
    linear-gradient(135deg, #7a0e12 0%, var(--red) 65%);
  background-repeat: repeat, no-repeat;
  background-size: 16px 16px, cover;
  clip-path: polygon(14% 0%, 100% 0%, 100% 100%, 0% 100%);
  border-radius: 26px;
}

/* ---------- Hero: floating review card ---------- */
.hero-review-card {
  position: absolute;
  right: 6%;
  bottom: 6%;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  padding: 12px 16px;
  text-align: left;
  z-index: 3;
}
.hero-review-avatars { display: flex; margin-bottom: 4px; }
.avatar-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gray);
  border: 2px solid #fff;
  margin-left: -8px;
}
.avatar-dot:first-child { margin-left: 0; }
.hero-review-stars { color: #f5b400; font-size: 13px; letter-spacing: 1px; }
.hero-review-card p { margin: 4px 0 0; font-size: 12px; font-weight: 700; color: var(--ink); line-height: 1.3; }

@media (max-width: 900px) {
  .hero-review-card { display: none; }
}

/* ---------- Hero: two-tone heading, checkmarks, dual buttons ---------- */
.hero-title-black { color: var(--ink); }

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  margin-bottom: 22px;
}
.hero-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray);
}
.hero-check svg { color: var(--red); flex: 0 0 auto; }

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 18px;
}

.btn-solid {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-solid:hover { background: var(--red-dark); border-color: var(--red-dark); }

@media (max-width: 720px) {
  .hero-checks { display: none; }
  .hero-buttons a.btn:not(.btn-solid) { display: none; }
}

/* Mobile-only pair of tiles under the hero CTA: FB + Sklep, full width,
   edge to edge — replaces the plain icon row on small screens. */
.mobile-cta-tiles { display: none; }

/* ---------- Services tiles ---------- */
.services { padding: 70px 0; background: #fafafa; }
.services-tight { padding-top: 26px; }

.services-header { max-width: 640px; text-align: center; margin: 0 auto 44px; }
.services-eyebrow {
  color: var(--red);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.services-title { font-size: 34px; margin: 0 0 12px; }
.services-title .red { color: var(--red); }
.services-sub { color: var(--gray); font-size: 15.5px; margin: 0; }

.service-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.service-tile:hover .service-card {
  transform: translateY(-6px);
  border-color: rgba(227, 6, 19, 0.35);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.13);
}

.service-photo {
  position: relative;
  aspect-ratio: 1 / 0.82;
  overflow: hidden;
  background: #eee;
}
.service-photo .tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .5s ease;
}
.service-photo .tile-photo-hover { opacity: 0; }

.service-tile:hover .tile-photo-base { opacity: 0; transform: scale(1.07); }
.service-tile:hover .tile-photo-hover { opacity: 1; transform: scale(1.07); }

.service-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(90deg, #7a0e12 0%, var(--red) 100%);
}
.service-icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.service-title {
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
}

.service-body {
  background: #fff;
  padding: 16px 18px 18px;
}

.service-desc {
  margin: 0 0 10px;
  color: var(--gray);
  font-size: 13.5px;
  line-height: 1.5;
}
.service-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 600;
  font-size: 13.5px;
}
.service-arrow {
  font-size: 15px;
  font-weight: 700;
  transition: transform .2s ease;
}
.service-tile:hover .service-arrow { transform: translateX(5px); }

@media (max-width: 960px) {
  .service-tiles { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .services-title { font-size: 27px; }
}

@media (max-width: 560px) {
  .service-tiles { grid-template-columns: 1fr; }
}

.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

/* Full-bleed variant: no side container, big square tiles running edge to edge
   of the viewport (used for the homepage services grid). */
.tiles-grid--full {
  width: 100%;
  gap: 0;
}
.tiles-grid--full .tile-image {
  border-radius: 0;
  border: 1px solid rgba(227, 6, 19, 0.5);
}

/* ---------- Wizytówki: finish-type bar (Standard / Foliowane / Lakier 3D / Złocone) ---------- */
.wizytowki-types { margin: 0; }
.wizytowki-types-bar {
  display: flex;
  width: 100%;
}
.wizytowki-type-seg {
  flex: 1;
  background: #fff;
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
  padding: 20px 10px;
  border-right: 2px solid #000;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.wizytowki-type-seg:last-child { border-right: none; }

.wizytowki-type-seg:hover,
.wizytowki-type-seg.is-active {
  background: var(--red);
  color: #fff;
}

@media (max-width: 560px) {
  .wizytowki-type-seg { font-size: 12px; padding: 14px 6px; }
}

/* Richer card variant of the finish-type bar: icon + title + short
   description instead of a flat text-only segment. Uses a separate
   .wiz-type-card class so the plain bar (still used on other subpages
   like ulotki.html) is left completely untouched. */
.wiz-types-section { padding: 56px 0 64px; }

.wiz-type-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  width: 100%;
}

.wizytowki-type-seg.wiz-type-card {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  border: 2px solid var(--border);
  border-right: 2px solid var(--border);
  border-radius: 14px;
  padding: 26px 18px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.wizytowki-type-seg.wiz-type-card:last-child { border-right: 2px solid var(--border); }

.wiz-type-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(227, 6, 19, 0.08);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
}
.wiz-type-title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.wiz-type-desc { font-size: 12.5px; color: var(--gray); line-height: 1.4; }

.wizytowki-type-seg.wiz-type-card:hover {
  border-color: rgba(227, 6, 19, 0.4);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.wizytowki-type-seg.wiz-type-card.is-active {
  background: rgba(227, 6, 19, 0.05);
  border-color: var(--red);
  color: var(--ink);
}
.wizytowki-type-seg.wiz-type-card.is-active .wiz-type-icon {
  background: var(--red);
  color: #fff;
}

@media (max-width: 900px) {
  .wiz-type-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wizytowki-type-seg.wiz-type-card { font-size: 12.5px; padding: 20px 14px; }
}

.tile {
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border-bottom: 3px solid transparent;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.tile:hover {
  transform: translateY(-4px);
  border-bottom-color: var(--red);
  background: #262626;
}

.tile-icon { color: var(--red); }
.tile-icon svg {
  width: 34px; height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile-label { font-weight: 700; font-size: 14px; letter-spacing: .01em; }

/* Tile with photo (e.g. Koszulki) */
.tile-image {
  position: relative;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: #000;
}

.tile-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, opacity .5s ease, filter .35s ease;
}

.tile-photo-hover { opacity: 0; }

.tile-label-red {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: var(--red);
  color: #fff;
  padding: 10px 8px;
  font-weight: 700;
  font-size: 14px;
  text-align: center;
  transition: background .2s ease, padding .2s ease;
  z-index: 2;
}

.tile-image:hover .tile-photo-base {
  opacity: 0;
  transform: scale(1.08);
}

.tile-image:hover .tile-photo-hover {
  opacity: 1;
  transform: scale(1.08);
  filter: brightness(0.9);
}

.tile-image:hover {
  transform: translateY(-4px);
}

/* ---------- Print section ---------- */
.print {
  background: var(--ink);
  color: #fff;
  padding: 60px 0;
}

.print-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.print .section-title { color: #fff; }
.print p { color: #d8d8d8; }
.print strong { color: var(--red); }

/* ---------- Info blocks ---------- */
.about-blocks { padding: 70px 0; background: var(--light); }

.info-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.info-col { text-align: center; }
.info-col h3 { color: var(--red); font-size: 18px; }
.info-col p { color: #444; font-size: 14.5px; }

/* ---------- Clients ---------- */
.clients { padding: 70px 0 0; }

.logos-marquee {
  overflow: hidden;
  width: 100%;
  background: #ededed;
  padding: 28px 0;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}

.logos-marquee.is-dragging { cursor: grabbing; }

.logos-track {
  display: flex;
  align-items: center;
  gap: 56px;
  width: max-content;
  will-change: transform;
}

.logo-item {
  height: 52px;
  width: auto;
  flex-shrink: 0;
  filter: grayscale(1);
  opacity: 0.55;
  transition: filter .25s ease, opacity .25s ease, transform .25s ease;
}

.logo-item:hover {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.08);
}

@keyframes logos-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .logo-item { height: 32px; }
  .logos-track { gap: 26px; }
  .logos-marquee {
    padding: 18px 0;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 24px), transparent 100%);
  }
}

/* ---------- Wizytówki subpage: page background ---------- */
/* Diagonal red-stripe pattern disabled for now (user asked for plain white) —
   left here commented so it can be switched back on later.
body.page-wizytowki {
  background-color: var(--light);
  background-image:
    repeating-linear-gradient(115deg,
      rgba(227, 6, 19, 0.05) 0px,
      rgba(227, 6, 19, 0.05) 220px,
      transparent 220px,
      transparent 680px),
    repeating-linear-gradient(65deg,
      rgba(227, 6, 19, 0.03) 0px,
      rgba(227, 6, 19, 0.03) 160px,
      transparent 160px,
      transparent 780px);
}
*/
body.page-wizytowki { background-color: #fff; }

.subpage-hero { position: relative; }

/* Same dark block used for the "Drukujemy..." section on the homepage —
   the wizytówki graphic slides in on top of it, text sits directly on it. */
body.page-wizytowki .subpage-hero {
  background: linear-gradient(135deg, #1b1b1b 0%, #2b2b2b 55%, #1b1b1b 100%);
}

/* Falling 3D geometric shapes — experimental hero decoration. Very low
   opacity so they read as background texture, never compete with the text.
   Outer .geo-parallax reacts to the mouse (JS), inner .geo-shape falls +
   rotates on a slow CSS loop, so both motions combine without conflict. */
.hero-geo-shapes {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.geo-parallax {
  position: absolute;
  transition: transform .35s ease-out;
}

/* Positions live on the parallax wrapper (the element that's actually
   positioned) — putting them on .geo-shape instead did nothing, since that
   element had no `position`, which is why the shapes were bunched at the
   left edge instead of spread across the slider. */
.hero-geo-shapes > .geo-parallax:nth-child(1) { top: -12%; left: 4%; }
.hero-geo-shapes > .geo-parallax:nth-child(2) { top: -18%; left: 20%; }
.hero-geo-shapes > .geo-parallax:nth-child(3) { top: -14%; left: 38%; }
.hero-geo-shapes > .geo-parallax:nth-child(4) { top: -20%; left: 54%; }
.hero-geo-shapes > .geo-parallax:nth-child(5) { top: -16%; left: 70%; }
.hero-geo-shapes > .geo-parallax:nth-child(6) { top: -22%; left: 86%; }
.hero-geo-shapes > .geo-parallax:nth-child(7) { top: -10%; left: 96%; }
.hero-geo-shapes > .geo-parallax:nth-child(8) { top: -24%; left: 12%; }
.hero-geo-shapes > .geo-parallax:nth-child(9) { top: -8%; left: 62%; }

.geo-shape {
  display: block;
  opacity: .5;
  filter: blur(.2px);
  animation: geo-fall linear infinite;
  background-image: url("../logo-emblem-white.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.geo-shape-1 { width: 84px; height: 71px; animation-duration: 9s; }
.geo-shape-2 { width: 56px; height: 47px; animation-duration: 11s; animation-delay: -3s; }
.geo-shape-3 { width: 70px; height: 59px; animation-duration: 10s; animation-delay: -1.5s; }
.geo-shape-4 { width: 48px; height: 41px; animation-duration: 8s; animation-delay: -4.5s; }
.geo-shape-5 { width: 66px; height: 56px; animation-duration: 12s; animation-delay: -6s; }
.geo-shape-6 { width: 58px; height: 49px; animation-duration: 10s; animation-delay: -7s; }
.geo-shape-7 { width: 40px; height: 34px; animation-duration: 8s; animation-delay: -2.5s; }
.geo-shape-8 { width: 76px; height: 64px; animation-duration: 13s; animation-delay: -9s; }
.geo-shape-9 { width: 46px; height: 39px; animation-duration: 9s; animation-delay: -4s; }

@keyframes geo-fall {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(750%) rotate(360deg); }
}


/* ---------- Wizytówki hero: image left / text panel right, like the homepage hero ---------- */
.wizytowki-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 34px;
  padding: 60px 0 56px;
}

.wizytowki-hero-row {
  display: flex;
  align-items: center;
  gap: 48px;
  width: 100%;
}

/* Fixed box using the wizytówki photo's own aspect ratio, so any other
   subpage reusing this hero (e.g. ulotki) renders its graphic at the same
   visual size instead of being taller/narrower because of its own shape. */
.wizytowki-hero-graphic {
  flex: 0 0 44%;
  max-width: 460px;
  aspect-ratio: 1668 / 894;
  transition: transform .35s ease-out;
}
.wizytowki-hero-graphic img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  animation: hero-slide-in-left 900ms ease-out both;
}

.wizytowki-hero-text {
  flex: 1;
  text-align: left;
  transition: transform .35s ease-out;
}
.wizytowki-hero-text h1 { font-size: 34px; margin: 0 0 16px; color: #fff; }
.wizytowki-hero-text p { color: #d8d8d8; line-height: 1.75; margin-bottom: 26px; }

.wiz-hero-checks .hero-check { color: #d8d8d8; }

.wiz-btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}
.wiz-btn-outline:hover {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
}

.wizytowki-gallery-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.wizytowki-gallery-btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 12px 30px;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s ease;
}
.wizytowki-gallery-btn:hover { background: var(--red-dark); }

.wizytowki-scroll-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 14px;
  text-decoration: none;
}
.wizytowki-scroll-cta svg { animation: arrow-bounce 1.6s ease-in-out infinite; }
.wizytowki-scroll-cta:hover span { text-decoration: underline; }

.wizytowki-hero-features {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 8px;
  padding-top: 30px;
  border-top: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}
.wizytowki-hero-features h3 { font-size: 17px; margin: 0 0 8px; }
.wizytowki-hero-features p { color: #333; font-size: 14.5px; line-height: 1.6; margin: 0; }

@media (max-width: 900px) {
  .wizytowki-hero-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wizytowki-hero-row { flex-direction: column; }
  .wizytowki-hero-graphic { flex: none; width: 80%; max-width: 340px; }
  .wizytowki-hero-text { text-align: center; padding: 0 12px; }
}
@media (max-width: 560px) {
  .wizytowki-hero-features { grid-template-columns: 1fr; }
  .wizytowki-hero-text h1 { font-size: 26px; }
}

.subpage-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 56px;
  min-height: 480px;
  padding: 56px 0;
}

.subpage-hero-graphic { flex: 0 0 55%; max-width: 600px; }
.subpage-hero-graphic img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.subpage-hero-graphic--float img {
  border-radius: 0;
  box-shadow: none;
  background: none;
  animation: hero-slide-in-left 900ms ease-out both;
}

@keyframes hero-slide-in-left {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

.subpage-hero-text { flex: 1; }
.subpage-hero-text h1 { font-size: 36px; margin-bottom: 16px; }
.subpage-hero-text p { color: #333; line-height: 1.75; margin-bottom: 26px; }

/* ---------- Portfolio grid (subpage realizacje) ---------- */
.portfolio-section {
  padding: 0;
  background-color: #dcdcdc;
}

/* Full-bleed variant: no side container, photos run edge to edge of the viewport */
.portfolio-grid--full {
  width: 100%;
  margin-top: 0;
}

.portfolio-intro { max-width: 780px; margin: 18px 0 30px; }
.portfolio-intro p { color: #333; line-height: 1.75; }

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.filter-btn {
  border: 2px solid var(--red);
  background: transparent;
  color: var(--red);
  font: inherit;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}

.filter-btn:hover { background: rgba(227,6,19,0.08); }

.filter-btn.is-active {
  background: var(--red);
  color: #fff;
}

.portfolio-grid {
  margin-top: 0;
  gap: 0;
}

.portfolio-grid .tile-image {
  border-radius: 0;
  transition: opacity .3s ease, transform .3s ease;
}

.portfolio-grid .tile-image:hover {
  transform: none;
  z-index: 2;
}

/* Shuffle animation for the finish-type filter bar: tiles leaving shrink
   and fade, tiles arriving deal themselves back in one by one. */
.portfolio-grid .tile-image.tile-hiding {
  opacity: 0;
  transform: scale(.82) rotate(-4deg);
}

.portfolio-grid .tile-image.tile-entering {
  opacity: 0;
  transform: scale(.8) translateY(26px) rotate(3deg);
  transition: opacity .4s ease, transform .4s ease;
}

.portfolio-grid .tile-label-red {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .2s ease;
}

.portfolio-grid .tile-image:hover .tile-label-red {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Wizytówki gallery: heading + reset pill + spaced/rounded grid ---------- */
.wiz-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 50px 0 26px;
}
.wiz-gallery-header .section-title { margin: 0; text-align: left; }

.wiz-reset-filter {
  border: 2px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 9px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.wiz-reset-filter:hover { background: var(--red-dark); border-color: var(--red-dark); }

/* Spaced, rounded variant of the full-bleed portfolio grid — scoped to this
   page only so ulotki.html keeps its plain edge-to-edge gallery look. */
.wiz-gallery-grid {
  gap: 14px !important;
  padding: 0 0 8px;
}
.wiz-gallery-grid .tile-image {
  border-radius: 12px !important;
}

.tile-paged { display: none; }

.wiz-loadmore-wrap { text-align: center; padding: 36px 0 54px; }
.wiz-loadmore-btn { cursor: pointer; background: none; }

@media (max-width: 720px) {
  .subpage-hero-inner {
    flex-direction: column;
    min-height: 0;
    padding: 32px 0;
    gap: 24px;
    text-align: center;
  }
  .subpage-hero-graphic { flex: none; width: 95%; max-width: 416px; }
  .subpage-hero-text h1 { font-size: 26px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #ddd; padding-top: 60px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #333;
}

.footer-logo { height: 40px; filter: brightness(0) invert(1); margin-bottom: 12px; }

.footer-brand p { color: #aaa; font-size: 14px; }

.footer-social { display: flex; gap: 12px; margin-top: 14px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid #444;
  display: flex; align-items: center; justify-content: center;
  color: #ddd;
  transition: all .2s ease;
}
.footer-social a:hover { background: var(--red); border-color: var(--red); color: #fff; }

.footer-col h3 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; margin-top: 0; }
.footer-col p { font-size: 14px; color: #bbb; }
.footer-col a:hover { color: var(--red); }

.footer-bottom { padding: 18px 0; text-align: center; font-size: 13px; color: #888; }

/* ---------- Mobile call button ---------- */
.mobile-call-btn {
  display: none;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(227, 6, 19, 0.45);
  animation: call-pulse 2.2s ease-in-out infinite;
}

@keyframes call-pulse {
  0%, 100% { box-shadow: 0 6px 18px rgba(227, 6, 19, 0.45); }
  50% { box-shadow: 0 6px 18px rgba(227, 6, 19, 0.45), 0 0 0 10px rgba(227, 6, 19, 0.15); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .tiles-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.is-open { max-height: 400px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 10px 24px 20px; }
  .main-nav li { border-top: 1px solid var(--border); }
  .main-nav a { display: block; padding: 14px 0; }
  .nav-toggle { display: flex; }

  .hero-inner { flex-direction: column; text-align: center; padding-top: 40px; padding-bottom: 40px; }
  .hero-text { max-width: 100%; }
  .hero-graphic { width: 220px; margin-top: 20px; }
  .hero-text h1 { font-size: 32px; }

  .hero-slider { min-height: 0; }

  .hero-inner-photo {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding-top: 10px;
    padding-bottom: 0;
    text-align: center;
  }
  .hero-inner-photo .hero-title-block {
    order: 1;
    display: flex;
    flex-direction: column;
    align-self: center;
    align-items: center;
    margin-bottom: 0;
  }
  .hero-inner-photo .hero-title-block h1 { display: none; }
  .hero-inner-photo .hero-title-block .eyebrow { margin-bottom: 0; font-size: 13px; text-align: center; width: 100%; }

  .hero-inner-photo .hero-graphic-photo { order: 2; justify-self: center; align-self: center; }
  .hero-graphic-photo { width: 100%; max-width: 300px; height: 280px; margin: 18px auto 0; }

  .hero-inner-photo .hero-body-block {
    order: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    align-self: center;
    width: 100%;
  }
  .hero-inner-photo .hero-body-block .hero-desc { display: none; }

  .hero-inner-photo .hero-buttons {
    width: 100%;
    margin: 0;
  }
  .hero-inner-photo .btn-solid {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 22px;
    margin-bottom: 0;
    border: none;
    border-radius: 0;
    background: var(--red);
    color: #fff;
    padding: 30px 0;
    font-size: 15px;
    text-align: center;
    justify-content: center;
    display: flex;
  }
  .hero-inner-photo .btn-solid .btn-arrow { display: none; }

  .scroll-arrow-mobile {
    display: none;
  }

  @keyframes arrow-blink {
    0%, 100% { opacity: 1; transform: translateY(0); }
    50% { opacity: .35; transform: translateY(4px); }
  }

  .slider-dots { bottom: 14px; }

  .social-row { display: none; }

  /* Superseded by .cta-bar (Sklep / Kontakt / Facebook), which now also
     covers mobile — kept hidden here instead of deleted in case it's
     wanted back. */
  .mobile-cta-tiles { display: none; }
  .cta-tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 22px 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .cta-tile-fb { background: #1565c0; }
  .cta-tile-shop { background: #e8720c; }

  .services-tight { padding-top: 0; }

  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .mobile-call-btn { display: flex; }
  .footer-bottom { padding-bottom: 84px; }
}

/* ---------- Tło sekcji usług na stronie głównej ----------
   Tło jest narysowane kodem (glowna/tlo-uslugi-szare.svg), więc jest ostre na każdym ekranie i waży ok. 4 KB.
   Ciemna wersja: glowna/tlo-uslugi.svg (żeby wrócić, podmień nazwę pliku poniżej i kolory nagłówka na białe). */
.services#services {
  background-color: #d6d9e2;
  background-image: url("../glowna/tlo-uslugi-szare.svg");
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed; /* tło zawsze na cały ekran, kafelki przesuwają się po nim */
  padding-top: 60px;
}
.services#services .service-card { border-color: rgba(255, 255, 255, 0.6); box-shadow: 0 8px 26px rgba(40, 45, 60, 0.16); }

@media (max-width: 760px) {
  .services#services {
    padding-top: 40px;
    background-attachment: scroll; /* telefony nie obsługują dobrze "fixed" */
    background-size: 100% 1400px;  /* fale powtarzają się co ok. 1,5 ekranu podczas przewijania */
    background-repeat: repeat-y;
  }
}

/* ---------- Menu przezroczyste na górze strony głównej ----------
   Na samej górze menu leży na banerze bez tła. Po przewinięciu (klasa .is-scrolled
   dodawana w script.js) robi się białe z cieniem, niższe, a linki zmieniają kolor. */
html { scroll-padding-top: 72px; }
.site-header.header-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.header-overlay .header-inner { transition: padding .35s ease; padding-top: 18px; padding-bottom: 18px; }
.header-overlay .logo img { transition: height .35s ease; }
.header-overlay .main-nav a { color: var(--ink); transition: color .25s ease; }
.header-overlay .main-nav a.nav-shop { color: var(--red); }
.header-overlay + .hero { padding-top: 82px; }

.site-header.header-overlay.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: var(--border);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}
.header-overlay.is-scrolled .header-inner { padding-top: 8px; padding-bottom: 8px; }
.header-overlay.is-scrolled .logo img { height: 38px; }
.header-overlay.is-scrolled .main-nav a { color: #5a5a5a; }
.header-overlay.is-scrolled .main-nav a:hover { color: var(--red); }
.header-overlay.is-scrolled .main-nav a.nav-shop { color: var(--red); }

@media (max-width: 720px) {
  .header-overlay + .hero { padding-top: 74px; }
  .header-overlay .main-nav a { color: var(--ink); }
  /* otwarte menu na telefonie: nagłówek od razu biały */
  .site-header.header-overlay.menu-open { background: #fff; border-bottom-color: var(--border); }
}

/* ---------- Slider z wybranymi realizacjami (sekcja #prace na stronie głównej) ----------
   Komputer: z lewej ciemne pole z opisem, z prawej zdjęcie realizacji (nic go nie zasłania).
   Telefon: zdjęcie na górze, opis pod spodem. */
.works { background: #121418; color: #fff; padding: 84px 0 90px; }
.works-header { text-align: center; margin-bottom: 40px; }
.works-title { font-size: 34px; margin: 0 0 12px; color: #fff; }
.works-title .red { color: #ff2a33; }
.works-sub { color: rgba(255,255,255,.65); font-size: 15.5px; margin: 0 auto; max-width: 620px; }

.works-slider {
  --cap: 38%;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #1a1d23;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  touch-action: pan-y;
  user-select: none;
}
.works-track { display: flex; transition: transform .8s cubic-bezier(.65,0,.25,1); }
.work-slide {
  position: relative; flex: 0 0 100%;
  display: grid; grid-template-columns: var(--cap) 1fr;
  height: clamp(380px, 44vw, 540px);
}
.work-media { position: relative; overflow: hidden; grid-column: 2; grid-row: 1; background: #000; }
.work-media img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: var(--pos, center);
  transform: scale(1.08);
  transition: transform 7s ease-out;
  pointer-events: none;
}
.work-slide.is-active .work-media img { transform: scale(1); }
.work-media::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 90px; z-index: 1;
  background: linear-gradient(90deg, #1a1d23, rgba(26,29,35,0));
}
.work-caption {
  grid-column: 1; grid-row: 1;
  align-self: center;
  padding: 0 34px 70px 48px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s ease .35s, transform .6s ease .35s;
}
.work-slide.is-active .work-caption { opacity: 1; transform: none; }
.work-cat {
  display: inline-block;
  background: var(--red); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.work-caption h3 { font-size: 34px; line-height: 1.12; margin: 0 0 14px; color: #fff; }
.work-caption p { color: rgba(255,255,255,.75); font-size: 15.5px; line-height: 1.65; margin: 0 0 22px; }
.work-link { color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .03em; text-transform: uppercase; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.work-link span { display: inline-block; transition: transform .2s ease; }
.work-link:hover span { transform: translateX(5px); }

.works-bottom {
  position: absolute; z-index: 3; left: 48px; bottom: 30px;
  width: calc(var(--cap) - 82px);
  display: flex; align-items: center; gap: 16px;
}
.works-counter { font-size: 14px; color: rgba(255,255,255,.55); letter-spacing: .05em; white-space: nowrap; }
.works-counter strong { color: #fff; font-size: 18px; }
.works-dots { display: flex; gap: 8px; flex: 1; }
.works-dot {
  flex: 1; height: 3px; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.22); border-radius: 3px; overflow: hidden; position: relative;
}
.works-dot span { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }
.works-dot.is-done span { transform: scaleX(1); }
.works-dot.is-active span { animation: worksProgress var(--works-delay, 6s) linear forwards; }
.works-slider.is-paused .works-dot.is-active span { animation-play-state: paused; }
@keyframes worksProgress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.works-arrow {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.works-arrow:hover { background: var(--red); border-color: var(--red); }

.works-more { text-align: center; margin-top: 38px; }

@media (max-width: 900px) {
  .works-slider { --cap: 44%; }
  .work-caption { padding: 0 24px 70px 30px; }
  .work-caption h3 { font-size: 27px; }
  .works-bottom { left: 30px; width: calc(var(--cap) - 54px); }
  .works-counter { display: none; }
}
@media (max-width: 600px) {
  .works { padding: 60px 0 64px; }
  .works-title { font-size: 26px; }
  .works-slider { border-radius: 14px; }
  .work-slide { display: flex; flex-direction: column; height: auto; }
  .work-media { aspect-ratio: 4 / 3.2; flex: 0 0 auto; }
  .work-media img { object-position: var(--pos-m, var(--pos, center)); }
  .work-media::before { inset: auto 0 0 0; width: auto; height: 60px; background: linear-gradient(0deg, #1a1d23, rgba(26,29,35,0)); }
  .work-caption { padding: 18px 22px 84px; align-self: stretch; }
  .work-caption h3 { font-size: 24px; }
  .work-caption p { font-size: 14.5px; margin-bottom: 16px; }
  .works-bottom { left: 22px; right: 22px; width: auto; bottom: 24px; }
  .works-counter { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  .works-track, .work-media img, .work-caption { transition: none; }
}

/* ---------- Górny baner ze zdjęciami realizacji (.hero2) ----------
   Zdjęcia na cały ekran płynnie się przenikają (fade), napisy wjeżdżają przy każdym zdjęciu. */
.hero2 {
  position: relative;
  height: clamp(560px, 100vh, 900px);
  background: #0e0f12;
  color: #fff;
  overflow: hidden;
}
.hero2-slides, .hero2-slide { position: absolute; inset: 0; }
.hero2-slide { opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.hero2-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; }
.hero2-media { position: absolute; inset: 0 0 0 30%; }
.hero2-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero2-media img {
  object-fit: cover; object-position: var(--pos, center);
  transform: scale(1.12);
  transform-origin: var(--origin, center);
  transition: transform 4.8s ease-out;
}
.hero2-slide.is-active .hero2-media img { transform: scale(1.02); }
.hero2-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #0e0f12 0%, #0e0f12 30%, rgba(14,15,18,.75) 40%, rgba(14,15,18,0) 56%),
    linear-gradient(0deg, rgba(8,9,12,.75) 0%, rgba(8,9,12,0) 30%),
    linear-gradient(180deg, rgba(8,9,12,.6) 0%, rgba(8,9,12,0) 20%);
}
.hero2-text {
  position: absolute; z-index: 2; left: 0; right: 0;
  bottom: 196px;
}
.hero2-eyebrow, .hero2-title, .hero2-caption {
  opacity: 0; transform: translateY(26px);
  transition: opacity .5s ease, transform .5s ease;
}
.hero2-slide.is-active .hero2-eyebrow { opacity: 1; transform: none; transition: opacity .8s ease .5s, transform .8s ease .5s; }
.hero2-slide.is-active .hero2-title   { opacity: 1; transform: none; transition: opacity .9s ease .7s, transform .9s ease .7s; }
.hero2-slide.is-active .hero2-caption { opacity: 1; transform: none; transition: opacity .9s ease 1.05s, transform .9s ease 1.05s; }
.hero2-eyebrow {
  margin: 0 0 14px; font-size: 13.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,255,255,.8);
}
.hero2-title {
  margin: 0; font-size: clamp(32px, 4.32vw, 61px); line-height: 1.02; font-weight: 800; letter-spacing: -.01em;
  color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.35); max-width: 8em;
}
.hero2-title span { color: #ff2a33; }
.hero2-caption {
  margin: 20px 0 0; font-size: 15.5px; color: rgba(255,255,255,.85);
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero2-caption span {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 5px 10px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff;
}
.hero2-actions {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 96px;
  display: flex; gap: 14px; flex-wrap: wrap;
}
.hero2-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 150px; padding: 16px 28px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em;
  border: 2px solid transparent; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.hero2-btn:hover { transform: translateY(-2px); }
.hero2-btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.hero2-btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.hero2-btn-outline { color: #fff; border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.04); border-bottom-color: var(--red); }
.hero2-btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero2 + .cta-bar { margin-top: -46px; }

/* Menu na górze strony nad ciemnym zdjęciem: białe logo i linki */
.header-overlay:not(.is-scrolled):not(.menu-open) .logo img { filter: brightness(0) invert(1); }
.header-overlay:not(.is-scrolled):not(.menu-open) .nav-toggle span { background: #fff; }
@media (min-width: 721px) {
  .header-overlay:not(.is-scrolled) .main-nav a { color: #fff; }
  .header-overlay:not(.is-scrolled) .main-nav a.nav-shop { color: #ff4d55; }
}

@media (max-width: 1000px) and (min-width: 701px) {
  .hero2-media { left: 20%; }
}
@media (max-width: 700px) {
  .hero2 { height: clamp(560px, 92svh, 760px); }
  .hero2-media { left: 0; }
  .hero2-title { max-width: none; }
  .hero2-slide::after {
    background:
      linear-gradient(0deg, rgba(8,9,12,.95) 0%, rgba(8,9,12,.8) 40%, rgba(8,9,12,.35) 62%, rgba(8,9,12,0) 80%),
      linear-gradient(180deg, rgba(8,9,12,.6) 0%, rgba(8,9,12,0) 25%);
  }
  .header-overlay .main-nav:not(.is-open) { border-bottom-width: 0; }
  .hero2-text { bottom: 170px; }
  .hero2-eyebrow { font-size: 11.5px; margin-bottom: 10px; }
  .hero2-caption { font-size: 13.5px; margin-top: 14px; }
  .hero2-actions { bottom: 84px; }
  .hero2-btn { flex: 1; min-width: 0; padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero2-slide, .hero2-media img, .hero2-eyebrow, .hero2-title, .hero2-caption { transition: none !important; }
}

/* Film w tle górnego banera – na całą szerokość, przyciemniony z lewej pod napisem */
.hero2-slide--video .hero2-media { inset: 0; }
.hero2-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero2-slide--video::after {
  background:
    linear-gradient(90deg, rgba(10,11,14,.82) 0%, rgba(10,11,14,.55) 40%, rgba(10,11,14,.1) 75%),
    linear-gradient(0deg, rgba(8,9,12,.7) 0%, rgba(8,9,12,0) 35%),
    linear-gradient(180deg, rgba(8,9,12,.55) 0%, rgba(8,9,12,0) 22%);
}
@media (max-width: 700px) {
  .hero2-slide--video::after {
    background:
      linear-gradient(0deg, rgba(8,9,12,.92) 0%, rgba(8,9,12,.65) 45%, rgba(8,9,12,.15) 80%),
      linear-gradient(180deg, rgba(8,9,12,.55) 0%, rgba(8,9,12,0) 25%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero2-video { display: none; }
  .hero2-slide--video .hero2-media { background: #111 url("../glowna/hero/film-poster.jpg") center / cover; }
}

/* Na komputerach (od 1280 px) zdjęcie z obciętym niebem – baner po prawej, obok napisu */
@media (min-width: 1280px) {
  .hero2-slide:first-child .hero2-media img { object-position: 36% center; }
}


/* Slajdy z wizytówkami (Strefa Loft, Agmar): zdjęcie bardziej w prawo, lewa krawędź płynnie wtopiona */
@media (min-width: 1001px) {
  .hero2-slide--loft .hero2-media { left: 38%; }
  .hero2-slide--loft .hero2-media img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  }
}

/* ---------- Górny baner: zdjęcie na całą szerokość (jak geministudio.pl) ----------
   Zdjęcie zajmuje cały ekran, jest równo przyciemnione, napis leży bezpośrednio na nim.
   Żeby wrócić do zdjęcia po prawej stronie, usuń ten fragment. */
.hero2 .hero2-media,
.hero2 .hero2-slide--loft .hero2-media { left: 0; }
.hero2 .hero2-slide--loft .hero2-media img { -webkit-mask-image: none; mask-image: none; }
.hero2 .hero2-slide::after {
  background:
    linear-gradient(90deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,.25) 60%, rgba(10,11,14,.15) 100%),
    linear-gradient(0deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,0) 40%),
    rgba(10,11,14,.38);
}
.hero2 .hero2-slide .hero2-media img,
.hero2 .hero2-slide:first-child .hero2-media img { object-position: var(--pos-full, center); }
.hero2-title { max-width: none; }
@media (min-width: 701px) { .hero2-title { max-width: 14em; } }

/* Bez czerwonego paska statystyk: kafelki CTA nachodzą na sekcję usług, bez białego pasa */
.hero2 + .cta-bar { height: 0; margin-top: -46px; }
.hero2 + .cta-bar + .mobile-cta-tiles + .services#services,
.hero2 + .cta-bar + .services#services { padding-top: 110px; }
.services#services .services-title { font-size: clamp(36px, 4.4vw, 56px); line-height: 1.1; margin-bottom: 14px; }
@media (max-width: 700px) {
  .hero2 + .cta-bar { height: auto; }
  .hero2 + .cta-bar + .mobile-cta-tiles + .services#services { padding-top: 40px; }
}

/* ---------- Górny baner v3: zdjęcie po prawej, napis po lewej na ciemnym tle ----------
   Zdjęcia (glowna/hero/*-v3) są już tak złożone, że reklama stoi po prawej,
   a lewa strona jest ciemna – napis nie wchodzi na realizację. */
.hero2 .hero2-media, .hero2 .hero2-slide--loft .hero2-media { inset: 0; left: 0; }
.hero2 .hero2-slide .hero2-media img,
.hero2 .hero2-slide:first-child .hero2-media img {
  object-position: right center;
  transform-origin: 75% 55%;
  -webkit-mask-image: none; mask-image: none;
}
.hero2 .hero2-slide.is-active .hero2-media img { transform: scale(1); }
.hero2 .hero2-slide .hero2-media img { transform: scale(1.06); }
.hero2 .hero2-slide::after {
  background:
    linear-gradient(90deg, rgba(10,11,14,.88) 0%, rgba(10,11,14,.6) 28%, rgba(10,11,14,0) 50%),
    linear-gradient(0deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,0) 28%),
    linear-gradient(180deg, rgba(10,11,14,.55) 0%, rgba(10,11,14,0) 18%);
}
@media (min-width: 701px) { .hero2-title { max-width: 11.5em; } }
@media (max-width: 700px) {
  .hero2 .hero2-slide .hero2-media img,
  .hero2 .hero2-slide:first-child .hero2-media img { object-position: center top; transform-origin: 50% 30%; }
  .hero2 .hero2-slide::after {
    background:
      linear-gradient(0deg, rgba(10,11,14,.9) 0%, rgba(10,11,14,.55) 45%, rgba(10,11,14,0) 62%),
      linear-gradient(180deg, rgba(10,11,14,.5) 0%, rgba(10,11,14,0) 14%);
  }
}

/* ---------- Biały pasek z ikonami pod sliderem (jeden pasek, delikatny cień) ---------- */
.hero2 + .cta-bar { height: auto; margin-top: -46px; }
.hero2 + .cta-bar .cta-bar-inner {
  gap: 0; padding: 8px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 22px 44px -12px rgba(0,0,0,.22), 0 2px 8px rgba(0,0,0,.06);
}
.hero2 + .cta-bar .cta-bar-item {
  position: relative; background: transparent; box-shadow: none; border-radius: 12px;
  padding: 14px 18px;
}
.hero2 + .cta-bar .cta-bar-item:hover { transform: none; box-shadow: none; background: #f6f6f8; }
.hero2 + .cta-bar .cta-bar-item + .cta-bar-item::before {
  content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #e7e7ea;
}
.hero2 + .cta-bar + .mobile-cta-tiles + .services#services,
.hero2 + .cta-bar + .services#services { padding-top: 70px; }
@media (max-width: 720px) {
  .hero2 + .cta-bar { margin-top: -30px; }
  .hero2 + .cta-bar .cta-bar-inner { gap: 0; padding: 6px; }
  .hero2 + .cta-bar .cta-bar-item { padding: 12px 10px; }
  .hero2 + .cta-bar .cta-bar-item + .cta-bar-item::before { top: 18%; bottom: 18%; }
  .hero2 + .cta-bar .cta-bar-item:nth-child(3)::before { display: none; }
  .hero2 + .cta-bar .cta-bar-item:nth-child(n+3)::after {
    content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: #e7e7ea;
  }
  .hero2 + .cta-bar + .mobile-cta-tiles + .services#services { padding-top: 40px; }
}
@media (min-width: 701px) { .hero2-title { font-size: clamp(34px, 3.8vw, 60px); } }
@media (min-width: 701px) and (max-width: 1100px) { .hero2 { height: clamp(520px, 70vw, 900px); } }
.hero2 + .cta-bar { margin-bottom: -44px; }
.hero2 + .cta-bar + .mobile-cta-tiles + .services#services,
.hero2 + .cta-bar + .services#services { padding-top: 114px; }
@media (max-width: 720px) {
  .hero2 + .cta-bar .cta-bar-inner { width: calc(100% - 28px); }
  .hero2 + .cta-bar + .mobile-cta-tiles + .services#services { padding-top: 84px; }
}
@media (max-width: 720px) {
  .hero2 + .cta-bar { margin-bottom: -200px; }
  .hero2 + .cta-bar + .mobile-cta-tiles + .services#services { padding-top: 240px; }
}
