/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Focus visible — jakość klawiatury */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

:root {
  --bg:          #0d1b2a;   /* ciemny granat */
  --bg-card:     #122336;   /* granat kart */
  --bg-alt:      #0f1f30;   /* granat sekcji alternacyjnych */
  --nav-bg:      #1a3354;   /* granat tła logo */
  --accent:      #f0a800;   /* złoty z łuku logo */
  --accent-h:    #ffc030;   /* złoty hover */
  --silver:      #c5cbd8;   /* srebro koła zębatego */
  --text:        #eef2f7;   /* lekko niebieski biały */
  --text-muted:  #7a8fa8;   /* szaro-niebieski muted */
  --border:      #1e3550;   /* border */
  --radius:      8px;
  --ease:        0.3s ease;
  --max-w:       1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(4rem, 11vw, 9rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; letter-spacing: 0.06em; }

/* === CONTAINER === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--ease);
}
.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-h);
  border-color: var(--accent-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,147,10,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.25);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* === ENGINEERING DESIGN MOTIFS === */

/* SVG nakładka techniczna na hero */
.hero-tech-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Elementy śledzące sylwetkę naczepy zakładają szeroki, poziomy kadr zdjęcia —
   na wąskich/pionowych ekranach background-size:cover kadruje zupełnie inny
   fragment fotografii, więc dopasowanie by się rozjechało. */
@media (max-width: 900px) {
  .hero-trace { display: none; }
}

/* Kursor CAD — krzyż celowniczy + odczyt współrzędnych podążający za myszką */
.hero-cad-cursor {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.hero-cad-cursor.active { opacity: 1; }
.hero-cad-cursor-v,
.hero-cad-cursor-h {
  position: absolute;
  background: rgba(240,168,0,0.4);
}
.hero-cad-cursor-v { top: 0; bottom: 0; left: var(--cad-x, 50%); width: 1px; }
.hero-cad-cursor-h { left: 0; right: 0; top: var(--cad-y, 50%); height: 1px; }
.hero-cad-readout {
  position: absolute;
  left: var(--cad-x, 50%);
  top: var(--cad-y, 50%);
  transform: translate(14px, -22px);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(13,27,42,0.75);
  border: 1px solid rgba(240,168,0,0.3);
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  white-space: nowrap;
}

@media (hover: none), (pointer: coarse) {
  .hero-cad-cursor { display: none; }
}

/* Duże koło zębate blueprint w tle usług — obraca się powoli */
.bg-gear {
  position: absolute;
  right: -8%;
  top: 50%;
  width: 580px;
  height: 580px;
  opacity: 0.045;
  pointer-events: none;
  z-index: 0;
  animation: gear-rotate 90s linear infinite;
}
@keyframes gear-rotate {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}



/* Blueprint siatka na hero */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240,168,0,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,168,0,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Punktowy grid na sekcjach */
#uslugi,
#o-nas {
  position: relative;
}
#uslugi::before,
#o-nas::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(240,168,0,0.07) 1px, transparent 1px);
  background-size: 30px 30px;
  z-index: 0;
}
#uslugi .container,
#o-nas .container { position: relative; z-index: 1; }

/* Notacja sekcji w stylu rysunku technicznego */
.section-tag::before {
  content: '§ ';
  opacity: 0.45;
  font-weight: 400;
}
.section-tag::after {
  content: ' ——';
  opacity: 0.3;
  font-weight: 400;
}

/* Linia wymiarowa pod nagłówkiem h2 */
.section-header {
  position: relative;
}
.section-header h2 {
  display: inline-block;
  position: relative;
}
.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}

/* Sekcja about — left-aligned tag bez ——  */
.about-text .section-tag {
  display: block;
}
.about-text .section-tag::after {
  content: '';
}

/* Techniczne tło na USP bannerze */
.usp-banner {
  position: relative;
  overflow: hidden;
}
.usp-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240,168,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,168,0,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Pionowa linia akcentu przy cytatach */
.usp-banner blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  text-align: left;
  max-width: 860px;
}
.usp-banner cite { padding-left: 1.5rem; display: block; text-align: left; }

/* Krzyżyk techniczny dekoracyjny */
.tech-cross {
  position: absolute;
  width: 24px;
  height: 24px;
  opacity: 0.12;
  pointer-events: none;
}
.tech-cross::before,
.tech-cross::after {
  content: '';
  position: absolute;
  background: var(--accent);
}
.tech-cross::before { width: 1px; height: 100%; left: 50%; }
.tech-cross::after  { height: 1px; width: 100%; top: 50%; }
.tech-cross--a { top: 18%; left: 8%; }
.tech-cross--b { top: 22%; right: 12%; }
.tech-cross--c { bottom: 20%; right: 18%; }

/* === SECTION HELPERS === */
.section-tag {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto;
}

/* === NAVBAR === */
#navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  padding: 1.4rem 0;
  background: rgba(26,51,84,0.35);
  transition: background var(--ease), padding var(--ease), border-color var(--ease);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(26,51,84,0.97);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: 0.9rem 0;
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: baseline; gap: 0.4rem; }
.logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.logo-bp {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.logo-eng {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text);
}
.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}
.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.75);
  transition: color var(--ease);
}
.nav-links a:hover { color: var(--accent); }
.nav-cta {
  background: var(--accent) !important;
  color: #000 !important;
  font-weight: 700 !important;
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  letter-spacing: 0.06em;
}
.nav-cta:hover {
  background: var(--accent-h) !important;
  color: #000 !important;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* === BACKGROUND IMAGES === */
.hero-bg {
  background-image: url('photos/naczepa-hero.jpg');
}
.service-img--modernizacje {
  background-image: url('photos/plandeka-rolka-t.jpg');
}
.service-img--remonty {
  background-image: url('photos/dach-otwarty.jpg');
}
.service-img--wozki {
  background-image: url('photos/wozek-widlowy.jpg');
}
.service-img--czesci {
  background-image: url('photos/naczepa-modernizacja.jpg');
}
.service-img--pojazdy {
  background-image: url('photos/wozek-dolly.jpg');
}
.service-img--pojenie {
  background-image: url('photos/naczepa-biala-plandeka.jpg');
}

/* === LOGO IMAGE === */
.logo-img { height: 58px; width: auto; display: block; transition: height var(--ease); }
#navbar.scrolled .logo-img { height: 48px; }
.logo-img--footer { height: 56px; margin-bottom: 0.85rem; }

/* === HERO === */
#hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
  transform: scale(1.06);
  transition: transform 10s ease;
}
.hero-bg.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.25) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  padding-top: 6rem;
}
.hero-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  opacity: 0.85;
}
.hero-content h1 { margin-bottom: 1.25rem; max-width: 900px; line-height: 0.93; }
.accent { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.75;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%); /* statyczny — nie wchodzi do @keyframes */
  z-index: 2;
  cursor: default;
}
.hero-scroll span {
  display: block;
  font-size: 1.3rem;
  color: rgba(255,255,255,0.35);
  animation: bounce 2s ease infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}

/* === STATS BAR === */
.stats-bar {
  background: var(--accent);
  padding: 1.6rem 1.5rem;
  display: flex;
  justify-content: center;
  gap: clamp(2rem, 6vw, 5rem);
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 800;
  color: #000;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.65rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.6);
}

/* === SERVICES === */
#uslugi {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--bg);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}
.service-img {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.service-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(22,22,22,0.8));
}
.service-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.service-card p { flex: 1; }
.service-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 0.9rem;
  color: var(--accent);
}
.service-icon svg { width: 100%; height: 100%; }
.service-card h3 { margin-bottom: 0.65rem; }
.service-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.72;
}
.service-extra {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, margin 0.3s ease;
  margin-top: 0;
}
.service-extra.open {
  max-height: 280px;
  opacity: 1;
  margin-top: 0.6rem;
}

/* Karta specyfikacji — jak tabliczka tytułowa rysunku technicznego */
.service-spec {
  display: flex;
  flex-direction: column;
}
.service-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--border);
  font-family: 'JetBrains Mono', monospace;
}
.service-spec-row:last-child { border-bottom: none; }
.service-spec-row dt {
  flex-shrink: 0;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.85;
}
.service-spec-row dd {
  text-align: right;
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.btn-more {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0.55rem 0;
  margin-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color var(--ease);
}
.btn-more:hover { color: var(--accent-h); }
.btn-more span { transition: transform 0.3s ease; display: inline-block; }
.btn-more[aria-expanded="true"] span { transform: rotate(180deg); }

/* === USP BANNER === */
.usp-banner {
  background: linear-gradient(145deg, #0a1828 0%, #0f1f30 60%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 5rem 1.5rem;
  text-align: center;
}
.usp-banner blockquote {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  color: var(--text);
  max-width: 820px;
  margin: 0 auto 1.25rem;
  line-height: 1.45;
}
.usp-banner blockquote::before { content: '\201C'; color: var(--accent); }
.usp-banner blockquote::after  { content: '\201D'; color: var(--accent); }
.usp-banner cite {
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* === PORTFOLIO === */
#realizacje {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--bg-alt);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  grid-auto-rows: 210px;
  gap: 0.85rem;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid var(--border);
}
.gallery-item--wide {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.1rem;
  opacity: 0;
  transition: opacity var(--ease);
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay span {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 500;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.open { display: flex; flex-direction: column; }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox-caption {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: fixed;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  border-radius: 4px;
  transition: background var(--ease);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0.5rem 0.85rem;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-close { top: 1.5rem; right: 1.5rem; font-size: 1.1rem; }
.lightbox-prev  { top: 50%; left: 1.5rem; transform: translateY(-50%); padding: 0.5rem 1rem; }
.lightbox-next  { top: 50%; right: 1.5rem; transform: translateY(-50%); padding: 0.5rem 1rem; }

/* === ABOUT === */
#o-nas {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--bg);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-text .section-tag { text-align: left; }
.about-text h2 { margin-bottom: 1.5rem; }
.about-text p {
  color: var(--text-muted);
  margin-bottom: 1.1rem;
  line-height: 1.78;
  font-size: 0.97rem;
}
.about-text p strong { color: var(--text); }
.about-techs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.75rem;
}
.about-techs span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.about-visual { position: relative; padding-bottom: 2rem; }
.about-img-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.about-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  display: block;
}

/* Zdjęcie „wyłania się” z rysunku technicznego — od lewej (koncepcja) do prawej (gotowy efekt) */
.about-photo--blueprint {
  position: absolute;
  inset: 0;
  filter: grayscale(1) brightness(0.8) contrast(1.15) sepia(0.25) hue-rotate(165deg) saturate(2.2);
  -webkit-mask-image: linear-gradient(to right, black 0%, black 38%, transparent 68%);
          mask-image: linear-gradient(to right, black 0%, black 38%, transparent 68%);
}
.about-blueprint-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(13,27,42,0.45), rgba(13,27,42,0.45)),
    linear-gradient(rgba(240,168,0,0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,168,0,0.16) 1px, transparent 1px);
  background-size: auto, 26px 26px, 26px 26px;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 24%, transparent 52%);
          mask-image: linear-gradient(to right, black 0%, black 24%, transparent 52%);
}
/* Szew między rysunkiem a fotografią — cienka linia konstrukcyjna */
.about-img-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 38%;
  width: 1px;
  background: linear-gradient(to bottom, transparent 0%, rgba(240,168,0,0.5) 15%, rgba(240,168,0,0.5) 85%, transparent 100%);
  pointer-events: none;
}
.about-card {
  position: absolute;
  bottom: 0;
  left: -1.5rem;
  background: var(--accent);
  color: #000;
  padding: 1.1rem 1.5rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  max-width: 280px;
}
.about-card strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.about-card span {
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.7;
  line-height: 1.5;
}

/* === CONTACT === */
#kontakt {
  padding: clamp(4rem, 9vw, 8rem) 0;
  background: var(--bg-alt);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 2.25rem; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; }
.contact-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.contact-icon svg { width: 100%; height: 100%; }
.contact-item strong {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.contact-item p,
.contact-item a {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.65;
}
.contact-item a:hover { color: var(--accent); }

/* === FORM === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  counter-reset: field-idx;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

/* Pole jak parametr w panelu CAD: numer pola + lewa szyna, podświetlana na fokusie */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  counter-increment: field-idx;
  padding-left: 0.9rem;
  border-left: 2px solid var(--border);
  transition: border-color var(--ease);
}
.form-group:focus-within { border-left-color: var(--accent); }
.form-group label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group label::before {
  content: 'F' counter(field-idx, decimal-leading-zero) ' · ';
  color: var(--accent);
  opacity: 0.7;
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  padding: 0.85rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--ease);
  resize: vertical;
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #444; }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-success {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #4caf50;
  padding: 0.75rem 1rem;
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.3);
  border-radius: 4px;
}
.form-success.visible { display: block; }
.form-error {
  display: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #e05d5d;
  padding: 0.75rem 1rem;
  background: rgba(224,93,93,0.1);
  border: 1px solid rgba(224,93,93,0.3);
  border-radius: 4px;
}
.form-error.visible { display: block; }

/* Honeypot — pułapka na boty: usunięta z przepływu wizualnego, ale nie display:none,
   żeby część botów nie pomijała jej podczas automatycznego wypełniania */
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* === ZGODA NA REGULAMIN/POLITYKĘ W FORMULARZU === */
.form-consent {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  cursor: pointer;
}
.form-consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.form-consent-label a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form-consent-label a:hover { color: var(--accent-h); }
.form-consent-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.75;
  margin: 0;
}

/* === FOOTER === */
footer {
  background: #0a1828;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3rem 1.5rem;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-logo .logo { margin-bottom: 0.85rem; }
.footer-logo p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.85;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-end;
}
.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--ease);
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  padding: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: #3a5070;
}
.footer-legal-links {
  margin-top: 0.5rem;
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}
.footer-legal-links a {
  color: #3a5070;
  transition: color var(--ease);
}
.footer-legal-links a:hover { color: var(--accent); }

/* === BANER COOKIES === */
.cookie-banner {
  position: fixed;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 300;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  transform: translateY(140%);
  transition: transform 0.5s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner p {
  flex: 1 1 320px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.cookie-banner a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner a:hover { color: var(--accent-h); }
.cookie-banner-actions { display: flex; gap: 0.75rem; flex-shrink: 0; }
.cookie-banner .btn { padding: 0.65rem 1.4rem; font-size: 0.82rem; }

@media (max-width: 560px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 1.1rem; }
}

/* === STRONY PRAWNE (Polityka prywatności / Regulamin) === */
.legal-page-header {
  padding: clamp(7rem, 12vw, 9rem) 0 3rem;
  background: var(--bg);
  text-align: center;
}
.legal-page-header .section-sub { margin-top: 0.75rem; }
.legal-content {
  padding: 1rem 0 clamp(4rem, 8vw, 7rem);
  background: var(--bg);
}
.legal-content .container { max-width: 780px; }
.legal-meta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: 0.8;
  margin-bottom: 2.5rem;
  text-align: center;
}
.legal-content h2 {
  font-size: 1.4rem;
  text-transform: none;
  font-weight: 700;
  color: var(--accent);
  margin: 2.25rem 0 1rem;
  letter-spacing: 0.01em;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.97rem;
}
.legal-content strong { color: var(--text); }
.legal-content ul {
  margin: 0 0 1rem 1.3rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 0.97rem;
}
.legal-content li { margin-bottom: 0.4rem; }
.legal-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.legal-content a:hover { color: var(--accent-h); }
.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--accent);
}
.legal-back-link:hover { color: var(--accent-h); }

/* === HERO STAGGER ENTRANCE === */
.hero-content .hero-tag,
.hero-content h1,
.hero-content .hero-sub,
.hero-content .hero-btns {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
#hero.hero-ready .hero-tag  { opacity: 1; transform: none; transition-delay: 0s; }
#hero.hero-ready h1          { opacity: 1; transform: none; transition-delay: 0.16s; }
#hero.hero-ready .hero-sub   { opacity: 1; transform: none; transition-delay: 0.32s; }
#hero.hero-ready .hero-btns  { opacity: 1; transform: none; transition-delay: 0.48s; }

/* === SERVICE CARD IMAGE SHIMMER === */
.service-img::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    108deg,
    transparent 30%,
    rgba(255,255,255,0.07) 50%,
    transparent 70%
  );
  transform: translateX(-110%);
  transition: transform 0.65s ease;
  pointer-events: none;
}
.service-card:hover .service-img::before {
  transform: translateX(110%);
}

/* === FADE-IN ANIMATION === */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === RESPONSIVE: TABLET === */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); grid-auto-rows: 195px; }
  .gallery-item--wide { grid-column: span 2; }
  .about-grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about-photo { height: 360px; }
  .about-card { left: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

/* === RESPONSIVE: MOBILE === */
@media (max-width: 768px) {
  /* Mobile nav overlay */
  .nav-links {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(13,27,42,0.99);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 200;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.25rem; }
  .nav-cta { padding: 0.65rem 1.75rem; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .stats-bar { gap: 1.75rem; }
  .form-row { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; width: fit-content; }
  .usp-banner { padding: 3.5rem 1.5rem; }

  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
}

/* === PREFERS-REDUCED-MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .hero-bg { transform: scale(1) !important; transition: none !important; }
  .fade-in { opacity: 1 !important; transform: none !important; }
  .hero-content .hero-tag,
  .hero-content h1,
  .hero-content .hero-sub,
  .hero-content .hero-btns { opacity: 1 !important; transform: none !important; }
  .hero-cad-cursor { display: none !important; }
}

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery-item--wide { grid-column: span 1; }
  .about-card { left: 0; right: 0; position: relative; margin-top: 1rem; max-width: 100%; border-radius: var(--radius); }
  .about-visual { padding-bottom: 0; }
  .footer-links { align-items: flex-start; }
}
