/* ===========================
   DEFO – Design / Form
   style.css
   =========================== */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --black: #0a0a0a;
  --white: #f5f3ef;
  --crimson: #c62a2f;
  --crimson-light: #dc3a3f;
  --gray: #2a2a2a;
  --mid: #888;
  --border: rgba(255,255,255,0.08);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  background: var(--black);
  color: var(--white);
  overflow-x: hidden;
  cursor: none;
}

/* ===== CURSOR ===== */
.cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--crimson);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(214,48,52,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
}

/* ===== NAVIGATION ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 60px;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95) 0%, transparent 100%);
  transition: padding 0.4s, background 0.4s;
}

nav.scrolled {
  padding: 18px 60px;
  background: rgba(10,10,10,0.97);
}

.nav-logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 6px;
  color: var(--white);
  text-decoration: none;
}

.nav-logo span {
  color: var(--crimson);
}

.nav-logo-img {
  height: 60px; /* ← ROZMIAR LOGO W NAWIGACJI — zmień tę wartość */
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

.footer-logo-img {
  height: 80px; /* ← ROZMIAR LOGO W STOPCE — zmień tę wartość */
  width: auto;
  display: block;
  margin-bottom: 16px;
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 3px;
  color: rgba(245,243,239,0.6);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--crimson);
  transform: scaleX(0);
  transition: transform 0.3s;
}

.nav-links a:hover { color: var(--white); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--white);
  text-decoration: none;
  text-transform: uppercase;
  border: 1px solid var(--crimson);
  padding: 12px 30px;
  transition: background 0.3s, color 0.3s;
}

.nav-cta:hover { background: var(--crimson); }

/* ===== HERO ===== */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 60px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(214,48,52,0.06) 0%, transparent 50%),
    linear-gradient(to bottom, transparent 40%, rgba(10,10,10,0.9) 100%);
}

.hero-lines {
  display: none;
}

.hero-lines svg {
  width: 100%;
  height: 100%;
}

.hero-counter {
  position: fixed;
  bottom: 24px;
  right: 60px;
  z-index: 50;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--mid);
  writing-mode: horizontal-tb;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-counter::before {
  content: '';
  width: 30px;
  height: 1px;
  background: var(--crimson);
}

.hero-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 18px;
  letter-spacing: 6px;
  color: var(--crimson);
  text-transform: uppercase;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-tag::before {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  background: var(--crimson);
}

.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(46px, 6.2vw, 92px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -2px;
  max-width: 700px;
}

.hero h1 em {
  font-style: italic;
  color: rgba(245,243,239,0.35);
}

.hero-sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 48px;
}

.hero-desc {
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 300;
  color: rgba(245,243,239,0.78);
  max-width: 520px;
  line-height: 1.7;
  letter-spacing: 0.5px;
}

.hero-btns {
  display: flex;
  gap: 16px;
}

/* ===== BUTTONS ===== */
.btn-primary {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  background: var(--crimson);
  color: var(--white);
  transition: background 0.3s, transform 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--crimson-light);
  transform: translateY(-2px);
}

.btn-outline {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 36px;
  border: 1px solid rgba(245,243,239,0.2);
  color: var(--white);
  transition: border-color 0.3s, transform 0.3s;
  display: inline-block;
}

.btn-outline:hover {
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ===== SCROLL HINT ===== */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 10px;
  letter-spacing: 4px;
  color: var(--mid);
}

.scroll-hint .line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--crimson), transparent);
  animation: scrollPulse 2s infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(1.2); }
}

/* ===== STATS BAR ===== */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 40px 60px;
  border-right: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s;
}

.stat-item:last-child { border-right: none; }
.stat-item.visible { opacity: 1; transform: translateY(0); }

.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
}

.stat-num span {
  color: var(--crimson);
  font-size: 32px;
}

.stat-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--mid);
  text-transform: uppercase;
  margin-top: 8px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  padding: 100px 60px 60px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-tag {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: var(--crimson);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-tag::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--crimson);
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
}

.section-link {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--mid);
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color 0.3s;
}

.section-link::after {
  content: '→';
  font-size: 16px;
  transition: transform 0.3s;
}

.section-link:hover { color: var(--white); }
.section-link:hover::after { transform: translateX(4px); }

/* ===== PRODUCTS GRID ===== */
.products-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
  padding: 0 60px 100px;
}

.product-card {
  position: relative;
  overflow: hidden;
  background: var(--gray);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s, transform 0.7s;
}

.product-card.visible { opacity: 1; transform: translateY(0); }
.product-card:nth-child(1) { grid-column: span 2; aspect-ratio: 2/1; }
.product-card:nth-child(2) { aspect-ratio: 1/1; }
.product-card:nth-child(3) { aspect-ratio: 1/1; }
.product-card:nth-child(4) { aspect-ratio: 1/1; }
.product-card:nth-child(5) { grid-column: span 2; aspect-ratio: 2/1; }

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
  background: var(--gray);
}

.card-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.card-visual svg {
  width: 100%;
  height: 100%;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.1) 60%);
  transition: background 0.4s;
}

.product-card:hover .card-overlay {
  background: linear-gradient(to top, rgba(10,10,10,0.9) 0%, rgba(214,48,52,0.15) 100%);
}

.card-content { position: relative; z-index: 2; }

.card-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--crimson);
  margin-bottom: 8px;
}

.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 13px;
  color: rgba(245,243,239,0.5);
  font-weight: 300;
  letter-spacing: 0.3px;
}

.card-arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.product-card:hover .card-arrow {
  border-color: var(--crimson);
  color: var(--white);
  background: var(--crimson);
}

/* ===== ABOUT SECTION ===== */
.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.about-visual {
  position: relative;
  overflow: hidden;
  background: var(--gray);
  min-height: 600px;
}

.about-visual svg {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.about-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(214,48,52,0.2) 0%, transparent 60%);
}

.about-content {
  padding: 100px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-content p {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(245,243,239,0.6);
  font-weight: 300;
  margin-bottom: 24px;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.feature-item {
  border-left: 1px solid var(--crimson);
  padding-left: 16px;
}

.feature-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--mid);
  line-height: 1.6;
}

/* ===== PROCESS ===== */
.process-section {
  padding: 100px 60px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin-top: 60px;
}

.process-step {
  padding: 48px 40px;
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s, transform 0.6s, border-color 0.3s, background 0.3s;
}

.process-step.visible { opacity: 1; transform: translateY(0); }
.process-step:hover {
  border-color: var(--crimson);
  background: rgba(214,48,52,0.04);
}

.step-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 64px;
  font-weight: 300;
  color: rgba(214,48,52,0.2);
  line-height: 1;
  margin-bottom: 24px;
}

.step-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 14px;
  letter-spacing: 3px;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  padding: 140px 60px;
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--border);
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 50% 50%, rgba(214,48,52,0.1) 0%, transparent 70%);
}

.cta-section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(50px, 7vw, 100px);
  font-weight: 300;
  line-height: 1;
  position: relative;
}

.cta-section h2 em {
  font-style: italic;
  color: rgba(245,243,239,0.3);
}

.cta-section p {
  font-size: 15px;
  color: var(--mid);
  font-weight: 300;
  max-width: 480px;
  margin: 24px auto 48px;
  line-height: 1.8;
  position: relative;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
}

/* ===== FOOTER ===== */
footer {
  background: #050505;
  border-top: 1px solid var(--border);
  padding: 60px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}

.footer-brand .logo {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 5px;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand .logo span { color: var(--crimson); }

.footer-brand p {
  font-size: 13px;
  color: var(--mid);
  line-height: 1.7;
  font-weight: 300;
  max-width: 260px;
}

.footer-url {
  margin-top: 16px !important;
  font-size: 12px !important;
  color: rgba(136,136,136,0.5) !important;
}

.footer-col h4 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--mid);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }

.footer-col a {
  font-size: 13px;
  color: rgba(245,243,239,0.5);
  text-decoration: none;
  transition: color 0.3s;
  font-weight: 300;
}

.footer-col a:hover { color: var(--white); }

.footer-bottom {
  background: #050505;
  padding: 20px 60px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 11px;
  color: rgba(245,243,239,0.2);
  letter-spacing: 2px;
  font-family: 'Barlow Condensed', sans-serif;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero h1,
.hero-tag,
.hero-sub {
  animation: fadeUp 1s ease forwards;
}

.hero-tag { animation-delay: 0.2s; opacity: 0; }
.hero h1  { animation-delay: 0.4s; opacity: 0; }
.hero-sub { animation-delay: 0.7s; opacity: 0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  nav { padding: 20px 30px; }
  nav.scrolled { padding: 14px 30px; }
  .nav-links { gap: 24px; }

  .hero { padding: 0 30px 60px; }
  .hero-counter { display: none; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 32px 30px; }

  .section-header { padding: 60px 30px 40px; }
  .products-grid { padding: 0 30px 60px; gap: 2px; }

  .about-section { grid-template-columns: 1fr; }
  .about-visual { min-height: 300px; }
  .about-content { padding: 60px 30px; }

  .process-section { padding: 60px 30px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); }

  .cta-section { padding: 80px 30px; }

  footer { padding: 40px 30px; grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { padding: 16px 30px; flex-direction: column; gap: 8px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }

  .hero-sub { flex-direction: column; gap: 32px; align-items: flex-start; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item { padding: 24px 20px; border-right: none; border-bottom: 1px solid var(--border); }

  .products-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 60px;
  }
  .product-card:nth-child(1),
  .product-card:nth-child(5) {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .process-steps { grid-template-columns: 1fr; }

  footer { grid-template-columns: 1fr; gap: 32px; }

  .cta-buttons { flex-direction: column; align-items: center; }
}




/* ===== HERO SLIDER ===== */
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide-video,
.hero-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0.45;               /* ← przezroczystość slajdów */
}

.hero-slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10,10,10,0.2) 0%,
    rgba(10,10,10,0.0) 30%,
    rgba(10,10,10,0.0) 60%,
    rgba(10,10,10,0.5) 100%
  );
  pointer-events: none;
}

/* Dots navigation */
.hero-slider-dots {
  position: absolute;
  bottom: 44px;
  left: 60px;
  z-index: 3;
  display: flex;
  gap: 10px;
  align-items: center;
}

.hero-dot {
  width: 28px;
  height: 2px;
  background: rgba(245,243,239,0.3);
  border: none;
  cursor: none;
  padding: 0;
  transition: background 0.3s, width 0.3s;
}

.hero-dot.active {
  background: var(--crimson);
  width: 44px;
}

.hero-dot:hover {
  background: rgba(245,243,239,0.7);
}

/* Upewnij się że treść hero jest nad sliderem */
.hero-bg       { z-index: 1; }
.hero-lines    { z-index: 2; }
.hero-counter,
.hero-tag,
.hero h1,
.hero-sub,
.scroll-hint   { position: relative; z-index: 3; }


/* =====================================================
   DEFO 2026 — rysunki techniczne, rejestr arkuszy, poprawki
   ===================================================== */
:root {
  --ink-line: rgba(245,243,239,0.66);   /* ← kolor linii rysunków */
  --ink-line-hi: rgba(245,243,239,0.96);
  --crimson-ink: #ef4a4f;               /* czerwień czytelna na czarnym tle (napisy) */
  --sheet: #121212;
  --grid: rgba(245,243,239,0.035);
}
.dwg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* reveal tylko gdy działa JS (bez JS wszystko widoczne) */
.stat-item, .product-card, .process-step { opacity: 1; transform: none; }
html.js .stat-item:not(.visible),
html.js .product-card:not(.visible),
html.js .process-step:not(.visible) { opacity: 0; transform: translateY(24px); }
@media (hover: none) { body { cursor: auto; } .cursor, .cursor-ring { display: none; } }
.section-tag, .card-num, .hero-tag { color: var(--crimson-ink); }

/* ---- rysunek: linie + efekt plotera ---- */
svg.dwg {
  width: 100%; height: 100%; display: block;
  fill: none; stroke: var(--ink-line); stroke-width: 1;
  stroke-linecap: round; stroke-linejoin: round;
  transition: stroke .4s;
}
.plot { width: 100%; height: 100%; clip-path: inset(0 0 0 0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
html.js .product-card:not(.visible) .plot { clip-path: inset(0 100% 0 0); }
html.js .product-card.visible .plot { transition: clip-path 1.8s cubic-bezier(.65,0,.35,1) .25s, transform .9s cubic-bezier(.2,.7,.2,1); }

.card-visual, .about-visual {
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--sheet);
}
.product-card:hover svg.dwg { stroke: var(--ink-line-hi); }
.product-card:hover .plot { transform: scale(1.03); }
.about-visual svg.dwg { stroke: rgba(245,243,239,0.42); }
.card-overlay { background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.35) 32%, rgba(10,10,10,0) 58%); }
.card-photo { width: 100%; height: 100%; object-fit: cover; object-position: center 70%; opacity: .78; transition: opacity .4s, transform .9s cubic-bezier(.2,.7,.2,1); display: block; }
.product-card:hover .card-photo { opacity: 1; transform: scale(1.03); }

/* ---- siatka oferty: [1 1 2] [3 4 5] [6 6 6] ---- */
.product-card:nth-child(n) { grid-column: span 1; aspect-ratio: 1/1; }
.product-card:nth-child(1) { grid-column: span 2; aspect-ratio: 2/1; }
.product-card:nth-child(6) { grid-column: 1 / -1; aspect-ratio: 3/1; }

/* ---- sekcja: rejestr rysunków ---- */
.drawings-section { border-top: 1px solid var(--border); }
.drawings-section .section-title em { font-style: italic; color: rgba(245,243,239,0.35); }
.drawings-lead { max-width: 380px; font-size: 14px; line-height: 1.8; color: rgba(245,243,239,0.55); font-weight: 300; }

.dwg-viewer {
  display: grid; grid-template-columns: 300px minmax(0, 1fr);
  margin: 0 60px 110px; border: 1px solid var(--border);
}
.dwg-list { list-style: none; border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.dl-item {
  width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 16px;
  padding: 22px 24px; background: none; border: 0; border-bottom: 1px solid var(--border);
  color: rgba(245,243,239,0.5); text-align: left; cursor: inherit; position: relative;
  font-family: 'Barlow Condensed', sans-serif; transition: color .3s, background .3s;
}
.dwg-list li:last-child .dl-item { border-bottom: 0; }
.dl-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--crimson); transform: scaleY(0); transition: transform .35s; }
.dl-item:hover { color: var(--white); }
.dl-item[aria-selected="true"] { color: var(--white); background: rgba(214,48,52,0.07); }
.dl-item[aria-selected="true"]::before { transform: scaleY(1); }
.dl-no { font-size: 11px; letter-spacing: 3px; color: var(--crimson-ink); }
.dl-name { font-size: 20px; letter-spacing: 1.5px; text-transform: uppercase; }
.dl-scale { font-size: 13px; letter-spacing: 2px; color: var(--mid); font-variant-numeric: tabular-nums; }
.dl-item:focus-visible, .dv-btn:focus-visible { outline: 1px solid var(--crimson-ink); outline-offset: -4px; }

.dwg-stage { display: flex; flex-direction: column; min-width: 0; }
.dwg-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); }
.dwg-views { display: flex; gap: 6px; flex-wrap: wrap; }
.dv-btn {
  font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  padding: 8px 16px; background: none; border: 1px solid rgba(245,243,239,0.14); color: rgba(245,243,239,0.55);
  cursor: inherit; transition: border-color .3s, color .3s;
}
.dv-btn:hover { color: var(--white); }
.dv-btn[aria-pressed="true"] { border-color: var(--crimson); color: var(--white); }
.dwg-counter { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 4px; color: var(--mid); font-variant-numeric: tabular-nums; }

.dwg-sheet {
  position: relative; aspect-ratio: 16 / 10; padding: 6% 7%; overflow: hidden;
  background:
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--sheet);
}
.dwg-sheet .plot { transition: none; }
.dwg-sheet.plotting .plot { animation: plot 1.6s cubic-bezier(.65,0,.35,1) both; }
.scan { position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--crimson-ink); box-shadow: 0 0 18px 2px rgba(239,74,79,.55); opacity: 0; pointer-events: none; }
.dwg-sheet.plotting .scan { animation: scan 1.6s cubic-bezier(.65,0,.35,1) both; }
@keyframes plot { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes scan { 0% { left: 7%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 93%; opacity: 0; } }
.corner { position: absolute; width: 18px; height: 18px; border-color: rgba(245,243,239,0.25); border-style: solid; border-width: 0; }
.corner.tl { top: 14px; left: 14px; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 14px; right: 14px; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 14px; left: 14px; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 14px; right: 14px; border-bottom-width: 1px; border-right-width: 1px; }

/* tabliczka rysunkowa jak na arkuszach DEFO */
.dwg-tb { display: grid; grid-template-columns: 2fr 1fr 1.1fr 1.1fr 1fr 1.3fr; border-top: 1px solid rgba(245,243,239,0.3); }
.tb-cell { padding: 12px 16px; border-right: 1px solid var(--border); min-width: 0; }
.tb-cell:last-child { border-right: 0; }
.tb-cell small { display: block; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); margin-bottom: 4px; }
.tb-cell strong { display: block; font-family: 'Barlow Condensed', sans-serif; font-weight: 500; font-size: 17px; letter-spacing: 1px; color: var(--white); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tb-name strong { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 24px; letter-spacing: 0; line-height: 1.1; }
.tb-logo { display: flex; align-items: center; justify-content: center; }
.tb-logo img { height: 30px; width: auto; filter: brightness(0) invert(1); opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  .plot, .card-photo, svg.dwg { transition: none !important; }
  html.js .product-card:not(.visible) .plot { clip-path: none; }
  .dwg-sheet.plotting .plot, .dwg-sheet.plotting .scan { animation: none; }
  .product-card:hover .plot, .product-card:hover .card-photo { transform: none; }
}

@media (max-width: 1024px) {
  .dwg-viewer { margin: 0 30px 70px; grid-template-columns: 1fr; }
  .dwg-list { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); scrollbar-width: none; }
  .dwg-list li { flex: 0 0 auto; }
  .dl-item { border-bottom: 0; border-right: 1px solid var(--border); grid-template-columns: auto auto; padding: 16px 20px; }
  .dl-scale { display: none; }
  .dl-item::before { top: auto; left: 0; right: 0; bottom: 0; width: auto; height: 2px; transform: scaleX(0); }
  .dl-item[aria-selected="true"]::before { transform: scaleX(1); }
  .dwg-tb { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .tb-cell:nth-child(3) { border-right: 0; }
  .tb-cell:nth-child(-n+3) { border-bottom: 1px solid var(--border); }
  .products-grid { grid-template-columns: 1fr 1fr; }
  .product-card:nth-child(1) { grid-column: 1 / -1; }
  .product-card:nth-child(6) { grid-column: 1 / -1; aspect-ratio: 2/1; }
}
@media (max-width: 640px) {
  .products-grid { grid-template-columns: 1fr; }
  .product-card:nth-child(n) { grid-column: span 1; aspect-ratio: 4/3; }
  .dwg-viewer { margin: 0 16px 60px; }
  .dl-name { font-size: 17px; }
  .dwg-sheet { aspect-ratio: 1 / 1; padding: 8%; }
  .dwg-toolbar { padding: 12px 14px; }
  .dwg-tb { grid-template-columns: 1fr 1fr; }
  .tb-cell { border-bottom: 1px solid var(--border); }
  .tb-cell:nth-child(3) { border-right: 1px solid var(--border); }
  .tb-cell:nth-child(2n) { border-right: 0; }
  .tb-name { grid-column: 1 / -1; border-right: 0; }
  .tb-cell:nth-child(n+5) { border-bottom: 0; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .about-visual { min-height: 340px; }
}
@media (max-width: 640px) { .tb-logo { display: none; } }
.dwg-viewer { grid-template-columns: 330px minmax(0, 1fr); }
.dl-no, .dl-scale { white-space: nowrap; }
@media (max-width: 1024px) { .dwg-viewer { grid-template-columns: 1fr; } .dl-name { white-space: nowrap; } }
@media (max-width: 640px) {
  nav, nav.scrolled { padding: 14px 16px; }
  .nav-logo-img { height: 38px; }
  .nav-cta { font-size: 13px; letter-spacing: 2px; padding: 9px 14px; white-space: nowrap; }
}

/* ===== NAV — 6 zakładek ===== */
.nav-links { gap: 30px; }
.nav-links a { font-size: 17px; letter-spacing: 2.5px; }
@media (max-width: 1240px) { .nav-links { gap: 20px; } .nav-links a { font-size: 15px; letter-spacing: 2px; } .nav-cta { font-size: 15px; padding: 10px 20px; } }
@media (max-width: 1080px) { .nav-links { display: none; } }

/* ===== SPAWANIE LASEROWE ===== */
.laser-section { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); border-top: 1px solid var(--border); }
.laser-media { position: relative; display: flex; flex-direction: column; background: #fff; }
.laser-photo { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 8px; position: relative; }
.laser-photo img { width: 100%; height: auto; display: block; }
.laser-photo figcaption { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #6d6d6d; margin-top: 12px; }
.laser-img { position: relative; }
.beam { position: absolute; left: 88.6%; top: 18.2%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--crimson-light);
  box-shadow: 0 0 0 6px rgba(168,32,32,.18), 0 0 24px 6px rgba(168,32,32,.45); animation: beam 2.4s ease-in-out infinite; }
@keyframes beam { 0%,100% { opacity: .35; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.1); } }
.weld-compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #e6e6e6; }
.weld { padding: 22px 32px 24px; display: flex; flex-direction: column; gap: 10px; }
.weld + .weld { border-left: 1px solid #e6e6e6; }
.weld small { font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: #6d6d6d; }
.bead { display: block; height: 44px; position: relative; background: linear-gradient(#cfd2d4, #b9bdc0); }   /* dwie blachy */
.bead::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); }
.bead-tig::after { width: 34%; background: radial-gradient(ellipse at center, #e8d9a8 0%, #c79a5a 30%, #7c5b8a 55%, #3e5f8a 72%, rgba(62,95,138,0) 100%); }
.bead-laser::after { width: 7%; background: linear-gradient(90deg, rgba(216,196,150,0), #d8c496 40%, #e9e1c9 50%, #d8c496 60%, rgba(216,196,150,0)); }
.laser-content { padding: 100px 80px; display: flex; flex-direction: column; justify-content: center; }
.laser-content .section-title em { font-style: italic; color: rgba(245,243,239,0.35); }
.laser-content .section-title { margin-bottom: 32px; }
.laser-content p { font-size: 15px; line-height: 1.9; color: rgba(245,243,239,0.6); font-weight: 300; margin-bottom: 20px; max-width: 520px; }
.laser-features { margin-top: 24px; }
.laser-btns { margin-top: 40px; }

/* ===== REFERENCJE ===== */
.refs-section { border-top: 1px solid var(--border); }
.ref-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin: 0 60px 110px; border: 1px solid var(--border); }
.ref-body { padding: 56px 56px 48px; display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.ref-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.ref-client { font-family: 'Barlow Condensed', sans-serif; font-size: 22px; font-weight: 500; letter-spacing: 5px; text-transform: uppercase; }
.ref-date { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; color: var(--mid); text-transform: uppercase; }
.ref-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 3px; text-transform: uppercase; color: var(--crimson-ink); }
.ref-quote { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; font-size: clamp(28px, 3vw, 42px); line-height: 1.15; color: var(--white); border-left: 1px solid var(--crimson); padding-left: 24px; text-wrap: balance; }
.ref-text { font-size: 15px; line-height: 1.85; color: rgba(245,243,239,0.6); font-weight: 300; max-width: 560px; }
.ref-scope { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ref-scope li { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; padding: 7px 14px; border: 1px solid rgba(245,243,239,0.14); color: rgba(245,243,239,0.75); }
.ref-stat { display: flex; align-items: baseline; gap: 18px; margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--border); }
.ref-num { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 64px; line-height: 1; }
.ref-num small { font-size: 26px; color: var(--crimson-ink); margin-left: 4px; }
.ref-num-label { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); }
.ref-pages { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 40px; border-left: 1px solid var(--border); background: var(--sheet); align-content: center; }
.ref-page { position: relative; padding: 0; border: 0; background: #fff; cursor: inherit; box-shadow: 0 20px 50px rgba(0,0,0,.5); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.ref-page:nth-child(1) { transform: rotate(-1.2deg); }
.ref-page:nth-child(2) { transform: rotate(1deg) translateY(18px); }
.ref-page:hover { transform: translateY(-6px) rotate(0); }
.ref-page img { display: block; width: 100%; height: auto; }
.ref-page-no { position: absolute; right: 8px; bottom: 8px; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 2px; color: #fff; background: rgba(10,10,10,.75); padding: 3px 8px; }
.ref-page:focus-visible { outline: 1px solid var(--crimson-ink); outline-offset: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(5,5,5,.94); display: flex; align-items: flex-start; justify-content: center; overflow-y: auto; padding: 72px 16px 40px; cursor: auto; }
.lightbox img { max-width: min(860px, 100%); height: auto; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox-close { position: fixed; top: calc(16px + env(safe-area-inset-top, 0px)); right: calc(20px + env(safe-area-inset-right, 0px)); width: 44px; height: 44px; font-size: 28px; line-height: 1; color: var(--white); background: none; border: 1px solid rgba(245,243,239,.3); cursor: pointer; }
.lightbox-close:hover { border-color: var(--crimson); }

@media (prefers-reduced-motion: reduce) { .beam { animation: none; } .ref-page { transition: none; } }
@media (max-width: 1024px) {
  .laser-section { grid-template-columns: 1fr; }
  .laser-content { padding: 60px 30px; }
  .ref-card { grid-template-columns: 1fr; margin: 0 30px 70px; }
  .ref-pages { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 640px) {
  .laser-photo { padding: 32px 20px 8px; }
  
  .weld { padding: 18px 20px; }
  .ref-card { margin: 0 16px 60px; }
  .ref-body { padding: 32px 22px; }
  .ref-pages { padding: 24px 18px 40px; gap: 12px; }
  .laser-features { grid-template-columns: 1fr; }
}
.lightbox[hidden] { display: none; }

/* ===== SPAWANIE — kadr z hali ===== */
.laser-media { position: relative; margin: 0; min-height: 560px; overflow: hidden; background: #0d0d0d; display: block; }
.laser-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.laser-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,10,10,0) 70%, rgba(10,10,10,.85) 100%), linear-gradient(to top, rgba(10,10,10,.7) 0%, rgba(10,10,10,0) 30%); pointer-events: none; }
.laser-media figcaption { position: absolute; left: 32px; bottom: 26px; z-index: 1; font-family: 'Barlow Condensed', sans-serif; font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: rgba(245,243,239,.7); display: flex; align-items: center; gap: 12px; }
.laser-media figcaption::before { content: ''; width: 30px; height: 1px; background: var(--crimson-ink); }
@media (max-width: 1024px) { .laser-media { min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; } .laser-media::after { background: linear-gradient(to top, rgba(10,10,10,.8) 0%, rgba(10,10,10,0) 35%); } }

/* ===== KARTY — klikalne ===== */
.product-card { cursor: pointer; }
button.card-arrow { background: none; font: inherit; font-size: 18px; cursor: inherit; z-index: 3; }
button.card-arrow:focus-visible { outline: 1px solid var(--crimson-ink); outline-offset: 3px; }

/* ===== KARTA PRODUKTU (okno) ===== */
.pmodal { position: fixed; inset: 0; z-index: 9000; background: rgba(5,5,5,.88); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: calc(48px + env(safe-area-inset-top, 0px)) 24px 48px; cursor: auto; }
.pmodal[hidden] { display: none; }
.pmodal-panel { position: relative; width: min(1240px, 100%); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #0e0e0e; border: 1px solid var(--border); animation: pmIn .45s cubic-bezier(.2,.7,.2,1); }
@keyframes pmIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.pmodal-close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; font-size: 26px; line-height: 1; color: var(--white); background: rgba(10,10,10,.6); border: 1px solid rgba(245,243,239,.25); cursor: pointer; }
.pmodal-close:hover { border-color: var(--crimson); }
.pm-gallery { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; }
.pm-stage { position: relative; aspect-ratio: 1 / 1; padding: 8%;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, var(--sheet); }
.pm-stage.is-photo { padding: 0; }
.pm-stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-stage .plot { animation: plot 1.3s cubic-bezier(.65,0,.35,1) both; }
.pm-caption { padding: 14px 20px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--mid); border-top: 1px solid var(--border); }
.pm-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 1px; background: var(--border); border-top: 1px solid var(--border); }
.pm-thumb { aspect-ratio: 1 / 1; padding: 12px; background: var(--sheet); border: 0; cursor: pointer; position: relative; }
.pm-thumb svg.dwg { stroke: rgba(245,243,239,.5); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-thumb.has-photo { padding: 0; }
.pm-thumb[aria-pressed="true"]::after { content: ''; position: absolute; inset: 0; border: 1px solid var(--crimson); }
.pm-thumb:focus-visible { outline: 1px solid var(--crimson-ink); outline-offset: -4px; }
.pm-info { padding: 56px 52px 48px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.pm-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(40px, 4.4vw, 64px); line-height: 1; }
.pm-lead { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.35; color: rgba(245,243,239,.85); font-weight: 400; }
.pm-body p { font-size: 15px; line-height: 1.85; color: rgba(245,243,239,.6); font-weight: 300; margin-bottom: 14px; }
.pm-groups { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.pm-group { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pm-group h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 12px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--crimson-ink); padding-top: 6px; }
.pm-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.pm-chips li { font-family: 'Barlow Condensed', sans-serif; font-size: 14px; letter-spacing: 1px; padding: 5px 12px; border: 1px solid rgba(245,243,239,.14); color: rgba(245,243,239,.8); }
.pm-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); counter-reset: st; }
.pm-steps:empty { display: none; }
.pm-steps li { background: #0e0e0e; padding: 16px; font-size: 13px; color: rgba(245,243,239,.7); counter-increment: st; line-height: 1.5; }
.pm-steps li::before { content: '0' counter(st); display: block; font-family: 'Cormorant Garamond', serif; font-size: 30px; color: rgba(239,74,79,.6); line-height: 1; margin-bottom: 8px; }
.pm-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
@media (prefers-reduced-motion: reduce) { .pmodal-panel, .pm-stage .plot { animation: none; } }
@media (max-width: 1024px) {
  .pmodal { padding: 0; }
  .pmodal-panel { grid-template-columns: 1fr; min-height: 100%; border: 0; }
  .pm-gallery { border-right: 0; border-bottom: 1px solid var(--border); }
  .pm-stage { aspect-ratio: 4 / 3; }
  .pmodal-close { position: fixed; top: calc(12px + env(safe-area-inset-top, 0px)); right: calc(12px + env(safe-area-inset-right, 0px)); }
  .pm-info { padding: 36px 30px 48px; }
}
@media (max-width: 640px) {
  .pm-info { padding: 28px 18px 40px; }
  .pm-group { grid-template-columns: 1fr; gap: 8px; }
  .pm-steps { grid-template-columns: 1fr; }
  .pm-btns a { flex: 1 1 100%; text-align: center; }
}
.pm-thumbs { grid-template-columns: repeat(auto-fill, 96px); background: none; gap: 0; }
.pm-thumb { border-right: 1px solid var(--border); }
.laser-media img { object-position: 50% 8%; }

/* ===== PROCES REALIZACJI — etapy z rysunkami ===== */
.process-section { border-top: 1px solid var(--border); }
.process-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.process-lead { max-width: 400px; font-size: 14px; line-height: 1.8; color: rgba(245,243,239,0.55); font-weight: 300; }
.process-track { position: relative; height: 1px; background: rgba(245,243,239,0.12); margin: 64px 0 0; }
.process-progress { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--crimson-ink); transform-origin: left; transform: scaleX(1); box-shadow: 0 0 10px rgba(239,74,79,.6); }
html.js .process-section:not(.in-view) .process-progress { transform: scaleX(0); }
html.js .process-section.in-view .process-progress { transition: transform 2.4s cubic-bezier(.65,0,.35,1); }
.process-section .process-steps { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 0; }
.process-section .process-step { padding: 0; border: 0; background: none; position: relative; display: flex; flex-direction: column; }
.process-section .process-step:hover { background: none; }
.ps-node { position: relative; height: 56px; }
.ps-node span { position: absolute; top: -10px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: #0a0a0a; border: 1px solid var(--crimson-ink); font-size: 0; }
.ps-node span::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--crimson-ink); }
.ps-node::after { content: ''; position: absolute; left: 10px; top: 10px; bottom: 0; width: 1px; background: rgba(245,243,239,0.12); }
.ps-sheet { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--border); overflow: hidden;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 20px 20px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 20px 20px, var(--sheet);
  transition: border-color .4s; }
.process-step:hover .ps-sheet { border-color: rgba(239,74,79,.55); }
.ps-tag { position: absolute; top: 10px; left: 12px; font-family: 'Barlow Condensed', sans-serif; font-size: 10px; letter-spacing: 3px; color: var(--mid); }
.ps-svg { width: 100%; height: 100%; display: block; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ps-svg path, .ps-svg rect, .ps-svg circle { fill: none; }
.ps-svg .heavy { stroke: rgba(245,243,239,.85); stroke-width: 1.5; }
.ps-svg .thin { stroke: rgba(245,243,239,.6); stroke-width: 1; }
.ps-svg .hidden { stroke: rgba(245,243,239,.4); stroke-width: 1; stroke-dasharray: .02 .015; }
.ps-svg .hatch { stroke: rgba(245,243,239,.22); stroke-width: .8; }
.ps-svg .dim, .ps-svg .ext { stroke: rgba(239,74,79,.9); stroke-width: .9; }
.ps-svg .ext { stroke: rgba(239,74,79,.45); }
.ps-svg .axis { stroke: rgba(245,243,239,.3); stroke-width: .8; stroke-dasharray: .06 .02 .01 .02; }
.ps-svg .lead { stroke: rgba(245,243,239,.45); stroke-width: .8; }
.ps-svg .dot { fill: rgba(245,243,239,.8); }
.ps-svg .beam { stroke: #e0484b; stroke-width: 1.4; stroke-dasharray: .03 .015; }
.ps-svg .beam-pt { fill: #e0484b; }
.ps-svg .glow { filter: drop-shadow(0 0 6px rgba(255,120,80,.9)); }
.ps-svg .spark { stroke: #f2b56b; stroke-width: 1; }
.ps-svg .weld { stroke: #e9c48f; stroke-width: 3; }
.ps-svg .todo { stroke: rgba(245,243,239,.5); stroke-width: 1.2; stroke-dasharray: .03 .03; }
.ps-svg .haz { stroke: rgba(242,181,107,.35); stroke-width: 1; }
.ps-svg .anchor { stroke: rgba(245,243,239,.75); stroke-width: 1.8; }
.ps-svg .ok { stroke: var(--crimson-ink); stroke-width: 1.6; }
.ps-svg .real { color: rgba(245,243,239,.85); stroke: currentColor; stroke-width: 1; }
.ps-svg text { font-family: 'Barlow Condensed', sans-serif; letter-spacing: 1.5px; stroke: none; }
.ps-svg .dt { font-size: 13.5px; fill: #e0484b; letter-spacing: 1px; }
.ps-svg .lt { font-size: 10.5px; fill: rgba(245,243,239,.62); letter-spacing: 2px; }
.ps-svg .dim-t { fill: rgba(245,243,239,.4); }
.ps-svg .mono-red { font-size: 11px; fill: #e0484b; letter-spacing: 1.5px; }
.ps-svg .tb-s { font-size: 6.5px; fill: rgba(245,243,239,.45); letter-spacing: 1.5px; }
.ps-svg .tb-v { font-size: 10.5px; fill: rgba(245,243,239,.9); letter-spacing: 1px; }

/* rysowanie linii przy wjeździe etapu w ekran */
html.js .process-step:not(.visible) .ps-svg .ln { stroke-dashoffset: 1; }
html.js .process-step.visible .ps-svg .ln { animation: psDraw 2s cubic-bezier(.65,0,.35,1) .3s both; }
@keyframes psDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
html.js .process-step:not(.visible) .ps-svg :is(.hidden,.axis,.beam,.todo) { opacity: 0; }
.ps-svg :is(.hidden,.axis,.beam,.todo) { transition: opacity .8s 1.2s; }
html.js .process-step:not(.visible) .ps-svg text, html.js .process-step:not(.visible) .ps-svg .real { opacity: 0; }
.ps-svg text, .ps-svg .real { transition: opacity .8s 1.4s; }

.ps-text { padding: 26px 4px 0; display: flex; flex-direction: column; }
.process-section .step-num { font-size: 56px; margin-bottom: 10px; color: rgba(239,74,79,.35); }
.process-section .step-title { font-size: 16px; margin-bottom: 12px; }
.process-section .step-desc { font-size: 14px; }
.ps-result { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: 1px; color: var(--white); }
.ps-result small { display: block; font-size: 10px; letter-spacing: 3px; text-transform: uppercase; color: var(--crimson-ink); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) {
  html.js .process-step .ps-svg .ln, html.js .process-step .ps-svg [pathLength] { animation: none; stroke-dashoffset: 0; opacity: 1; transition: none; }
  html.js .process-step .ps-svg text, html.js .process-step .ps-svg .real { opacity: 1; transition: none; }
  .process-progress { transition: none !important; transform: none !important; }
}
@media (max-width: 1024px) {
  .process-section .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 24px; }
  .process-track, .ps-node { display: none; }
  .process-head { margin-bottom: 40px; }
}
@media (max-width: 640px) {
  .process-section .process-steps { grid-template-columns: 1fr; }
}
.ps-svg .ln { stroke-dasharray: 1; }

/* ===== SOCIAL MEDIA ===== */
.nav-right { display: flex; align-items: center; gap: 22px; }
.social { display: flex; align-items: center; gap: 10px; }
.social a { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(245,243,239,0.18); color: rgba(245,243,239,0.7); transition: color .3s, border-color .3s, background .3s; }
.social a:hover { color: var(--white); border-color: var(--crimson); background: rgba(214,48,52,0.15); }
.social a:focus-visible { outline: 1px solid var(--crimson-ink); outline-offset: 3px; }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.social-nav a { border-color: transparent; width: 34px; height: 34px; }
.social-footer { margin-top: 22px; }
.cta-social { position: relative; display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 44px; font-family: 'Barlow Condensed', sans-serif; font-size: 12px; letter-spacing: 4px; text-transform: uppercase; color: var(--mid); }
.cta-social .social a { width: 46px; height: 46px; }
.cta-social .social svg { width: 20px; height: 20px; }
@media (max-width: 640px) {
  .social-nav { display: none; }
  .nav-right { gap: 0; }
  .cta-social { flex-direction: column; gap: 14px; }
}
.pm-thumbs { display: flex; }
.pm-thumb { flex: 1 1 0; min-width: 0; max-width: 110px; padding: 10px; }

/* ===== Etap 01 – skoroszyt, długopis, miarka ===== */
.ps-svg rect.board { fill: rgba(245,243,239,.025); }
.ps-svg rect.paper { fill: rgba(245,243,239,.05); }
.ps-svg rect.occ, .ps-svg circle.occ { fill: var(--sheet); }
.ps-svg rect.tape { fill: rgba(242,181,107,.16); stroke: rgba(242,181,107,.7); }
.ps-svg .hw { stroke: rgba(245,243,239,.62); stroke-width: 1; }
.ps-svg .tk { stroke: rgba(242,181,107,.6); stroke-width: .7; }
.ps-svg .tk-l { stroke: rgba(242,181,107,.95); stroke-width: .9; }
.ps-svg .tn { font-size: 6.5px; fill: rgba(242,181,107,.95); letter-spacing: 0; }
.ps-svg .hwt { font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive; font-size: 12px; fill: rgba(245,243,239,.75); letter-spacing: .3px; }
.ps-svg .hwt[x="140"], .ps-svg .hwt[x="238"] { fill: #e0484b; }

/* ===== Etap 03 – stół spawalniczy / Etap 04 – narzędzia ===== */
.ps-svg path.occ, .ps-svg ellipse.occ { fill: var(--sheet); }
.ps-svg ellipse { fill: none; }
.ps-svg .hole { fill: rgba(0,0,0,.55); stroke: rgba(245,243,239,.38); stroke-width: .6; }
.ps-svg .weld-c { stroke: rgba(233,196,143,.75); stroke-width: 2.4; stroke-dasharray: .02 .012; }
.ps-svg rect.vial { fill: rgba(150,210,120,.14); stroke: rgba(150,210,120,.8); stroke-width: 1; }
.ps-svg .vial-l { stroke: rgba(150,210,120,.8); stroke-width: .7; }
.ps-svg .bubble { fill: rgba(200,240,170,.55); stroke: none; }
.ps-svg rect.led { fill: rgba(239,74,79,.85); }
.ps-svg .tn2 { font-size: 7px; fill: rgba(245,243,239,.6); letter-spacing: .5px; }

/* ===== Menu – dłuższy przycisk „Konfigurator Ogrodzeń” ===== */
.nav-links a, .nav-cta { white-space: nowrap; }
@media (max-width: 1600px) {
  .nav-links { gap: 28px; }
  .nav-links a { font-size: 17px; letter-spacing: 2.5px; }
  .nav-cta { font-size: 16px; letter-spacing: 2.5px; padding: 11px 22px; }
}
@media (max-width: 1360px) {
  .nav-links { gap: 18px; margin-left: 28px; }
  .nav-links a { font-size: 14px; letter-spacing: 1.6px; }
  .nav-cta { font-size: 13px; letter-spacing: 1.6px; padding: 9px 14px; }
  .nav-right { gap: 14px; }
}
@media (max-width: 1360px) { nav, nav.scrolled { padding-left: 32px; padding-right: 32px; } }
@media (max-width: 1180px) { .nav-links { display: none; } }
@media (max-width: 640px) { .nav-cta { font-size: 11px; letter-spacing: 1px; padding: 8px 10px; } .nav-logo-img { height: 32px; } }

/* ===== Proces bez grafik – rezultat w jednej linii ===== */
.ps-result { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.ps-result small { display: inline; margin: 0; }
.process-section .ps-node { height: 40px; }
.process-section .step-num { color: rgba(239,74,79,.75); }
.process-section .ps-text { display: flex; flex-direction: column; flex: 1; }
.ps-result { margin-top: auto; flex-wrap: nowrap; white-space: nowrap; font-size: 14px; letter-spacing: .6px; gap: 8px; }
.ps-result small { font-size: 9.5px; letter-spacing: 2px; }
.process-section .step-desc { margin-bottom: 18px; }
@media (max-width: 1240px) { .ps-result { white-space: normal; flex-wrap: wrap; } }

/* ===== Naprawa przycisków w hero ===== */
.scroll-hint { pointer-events: none; }
button.btn-primary, button.btn-outline { font: inherit; border: 0; cursor: pointer; }
.hero button.btn-primary { font-family: 'Barlow Condensed', sans-serif; }

/* ===== Okno „Co robimy” ===== */
.wmodal { position: fixed; inset: 0; z-index: 9000; background: rgba(5,5,5,.88); backdrop-filter: blur(6px); display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: calc(64px + env(safe-area-inset-top, 0px)) 24px 48px; cursor: auto; }
.wmodal[hidden] { display: none; }
.wmodal-panel { position: relative; width: min(760px, 100%); background: #0e0e0e; border: 1px solid var(--border); border-top: 2px solid var(--crimson); padding: 56px 64px 48px; animation: pmIn .45s cubic-bezier(.2,.7,.2,1); }
.wmodal-panel p { font-size: 17px; line-height: 1.75; color: rgba(245,243,239,.78); margin: 0 0 18px; font-weight: 300; }
.wm-title { font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: clamp(44px, 6vw, 72px); line-height: 1; margin: 18px 0 14px; color: var(--white); }
.wm-title em { color: var(--crimson-ink); }
.wmodal-panel .wm-wink { line-height: 1.3; font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 24px; color: var(--mid); margin-bottom: 26px; }
.wm-quote { margin: 30px 0; padding: 22px 0 22px 26px; border-left: 2px solid var(--crimson-ink); font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 3vw, 32px); line-height: 1.3; color: var(--white); }
.wm-quote span { color: var(--mid); text-decoration: line-through; text-decoration-color: var(--crimson-ink); }
.wm-quote strong { font-weight: 500; color: var(--crimson-ink); }
.wmodal-panel .wm-note { font-size: 13px; letter-spacing: .3px; color: var(--mid); font-style: italic; margin-top: 8px; }
.wm-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
@media (max-width: 640px) { .wmodal-panel { padding: 48px 24px 32px; } .wmodal-panel p { font-size: 16px; } }
@media (max-width: 1600px) { .nav-links { margin-left: 40px; } }
@media (max-width: 1360px) { .nav-links { margin-left: 28px; } }

/* ===== Menu z zakładką Kontakt ===== */
@media (max-width: 1600px) {
  .nav-links { gap: 22px; }
  .nav-links a { font-size: 15px; letter-spacing: 2px; }
  .nav-cta { font-size: 14px; letter-spacing: 2px; padding: 10px 18px; }
}
@media (max-width: 1480px) { .social-nav { display: none; } }
@media (max-width: 1360px) {
  .nav-links { gap: 15px; margin-left: 24px; }
  .nav-links a { font-size: 13px; letter-spacing: 1.3px; }
  .nav-cta { font-size: 12px; letter-spacing: 1.3px; padding: 9px 12px; }
}
@media (max-width: 1240px) { .nav-links { display: none; } }

/* ===== Spawanie – podtytuł z metodami ===== */
.section-title .weld-methods { display: inline-block; white-space: nowrap; font-size: .5em; margin-top: 10px; }

/* ===== Menu mobilne ===== */
.nav-tel, .nav-burger { display: none; }
.nav-burger { width: 42px; height: 38px; padding: 0 10px; background: transparent; border: 1px solid rgba(245,243,239,.3); cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.nav-burger span { display: block; height: 1.5px; background: var(--white); transition: transform .25s, opacity .25s; }
nav.menu-open .nav-burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.menu-open .nav-burger span:nth-child(2) { opacity: 0; }
nav.menu-open .nav-burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
@media (max-width: 1240px) {
  .nav-burger { display: flex; }
  nav.menu-open .nav-links { display: flex; position: fixed; top: 0; left: 0; right: 0; z-index: -1; flex-direction: column; gap: 0; margin: 0; padding: 110px 32px 28px; background: rgba(10,10,10,.97); border-bottom: 1px solid var(--border); }
  nav.menu-open .nav-links li { border-top: 1px solid var(--border); }
  nav.menu-open .nav-links a { display: block; padding: 16px 0; font-size: 17px; letter-spacing: 3px; }
  nav.menu-open .nav-tel { display: block; }
  nav.menu-open .nav-tel a { color: var(--crimson-ink); }
}
@media (max-width: 640px) {
  .nav-right { gap: 10px; }
  .nav-burger { width: 38px; height: 34px; padding: 0 9px; }
  nav.menu-open .nav-links { padding: 84px 20px 20px; }
}
.nav-konf { display: none; }
@media (max-width: 1240px) { nav.menu-open .nav-links { background: #0a0a0a; } }
@media (max-width: 640px) {
  .nav-cta { display: none; }
  nav.menu-open .nav-konf { display: block; }
}

/* ===== O nas – logo w trakcie projektowania ===== */
.about-visual--logo { background: #10151b; }
.about-visual--logo .about-visual-overlay { display: none; }
.about-visual svg.logo-sketch { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.logo-sketch .ls-dim text { fill: #ef4a4f; stroke: none; font-family: 'Barlow Condensed', sans-serif; font-size: 15px; letter-spacing: 1.5px; }
.logo-sketch .ls-tb text { fill: rgba(232,238,242,.45); font-family: 'Barlow Condensed', sans-serif; font-size: 13px; letter-spacing: 3px; }
.logo-sketch .ls-tb text.s { font-size: 10px; fill: rgba(232,238,242,.3); }
.logo-sketch .ls-ln { stroke-dasharray: 1; stroke-dashoffset: 0; }
.about-section.ls-anim .logo-sketch .ls-ln { animation: lsDraw 2.2s cubic-bezier(.65,0,.35,1) both; }
@keyframes lsDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .about-section.ls-anim .logo-sketch .ls-ln { animation: none; } }
.ls-js .about-section:not(.ls-anim) .logo-sketch .ls-ln { stroke-dashoffset: 1; }

/* ===== Czerwone etykiety +50% ===== */
.section-tag { font-size: 16.5px; letter-spacing: 6px; }
.section-tag::before { width: 40px; }
.card-num { font-size: 16.5px; letter-spacing: 5px; }
.ps-result small { font-size: 14px; letter-spacing: 3px; }
.ps-result { font-size: 16px; }
.pm-group h4 { font-size: 18px; letter-spacing: 3.5px; }
.ref-title { font-size: 21px; letter-spacing: 3.5px; }
@media (max-width: 640px) { .section-tag { font-size: 14px; letter-spacing: 4.5px; } .ref-title { font-size: 17px; } }
.ps-result { font-size: 14px; letter-spacing: .3px; gap: 8px; }
.ps-result small { font-size: 14px; letter-spacing: 2px; }
@media (max-width: 1320px) { .ps-result { white-space: normal; flex-wrap: wrap; } }
.pm-group { grid-template-columns: 190px minmax(0, 1fr); }
@media (max-width: 1240px) { .pm-group h4 { font-size: 15px; } .pm-group { grid-template-columns: 160px minmax(0, 1fr); } }
@media (max-width: 640px) { .pm-group { grid-template-columns: 1fr; } }

/* ===== Etykiety – umiarkowane powiększenie tam, gdzie +50% się nie mieści ===== */
.ps-result { font-size: 14px; letter-spacing: .3px; gap: 8px; white-space: nowrap; flex-wrap: nowrap; }
.ps-result small { font-size: 12px; letter-spacing: 2px; }
.pm-group { grid-template-columns: 170px minmax(0, 1fr); }
.pm-group h4 { font-size: 15px; letter-spacing: 3px; }
.ref-title { font-size: 17px; letter-spacing: 3px; }
@media (max-width: 1240px) { .pm-group { grid-template-columns: 150px minmax(0, 1fr); } .pm-group h4 { font-size: 14px; } }
@media (max-width: 640px) { .pm-group { grid-template-columns: 1fr; } .ref-title { font-size: 15px; } }
@media (min-width: 1025px) and (max-width: 1500px) {
  .ps-result { font-size: clamp(12px, .95vw, 14px); letter-spacing: 0; gap: 6px; }
  .ps-result small { font-size: clamp(10.5px, .82vw, 12px); letter-spacing: 1.5px; }
  .ref-title { font-size: clamp(14px, 1.15vw, 17px); }
}
@media (min-width: 1025px) and (max-width: 1240px) { .ps-result { white-space: normal; flex-wrap: wrap; } }

/* ===== Stopka – link do polityki ===== */
.footer-bottom a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(245,243,239,.15); }
.footer-bottom a:hover { color: var(--white); }

/* ===== Baner cookies ===== */
.cookie-bar { position: fixed; left: 24px; right: 24px; bottom: 24px; z-index: 9500; max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 24px; padding: 20px 24px; background: rgba(14,14,14,.97); border: 1px solid var(--border); border-left: 2px solid var(--crimson); box-shadow: 0 20px 60px rgba(0,0,0,.5); cursor: auto; animation: cookieIn .5s cubic-bezier(.2,.7,.2,1); }
.cookie-bar[hidden] { display: none; }
.cookie-bar p { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(245,243,239,.78); font-weight: 300; }
.cookie-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.cookie-bar .btn-primary { flex-shrink: 0; }
@keyframes cookieIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .cookie-bar { flex-direction: column; align-items: stretch; gap: 14px; left: 12px; right: 12px; bottom: 12px; padding: 16px; } .cookie-bar .btn-primary { text-align: center; } }
