@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,600&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
  /* Kolory bazowe - High-End Deep Slate & Industrial Navy */
  --bg-main: #060913;
  --bg-secondary: #0c1222;
  --bg-card: rgba(16, 24, 45, 0.7);
  --bg-card-hover: rgba(22, 34, 64, 0.85);
  --bg-card-solid: #0e172c;
  --bg-glass: rgba(255, 255, 255, 0.03);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);

  /* Akcenty laserowe i inżynieryjne */
  --cyan: #38bdf8;
  --cyan-glow: rgba(56, 189, 248, 0.35);
  --blue: #2563eb;
  --blue-light: #60a5fa;
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.3);
  --amber: #f59e0b;

  /* Typografia i linie */
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(56, 189, 248, 0.45);
  --border-card: rgba(148, 163, 184, 0.12);

  /* Efekty i wymiary */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px -10px rgba(0, 0, 0, 0.5), 0 0 30px rgba(56, 189, 248, 0.06);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Space Grotesk', var(--font-sans);
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1200px;
  --nav-height: 76px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset i bazy */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-main);
  background-color: var(--bg-main);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.15), transparent 70%),
    radial-gradient(circle at 100% 40%, rgba(37, 99, 235, 0.08), transparent 40%),
    radial-gradient(circle at 0% 80%, rgba(16, 185, 129, 0.06), transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Kontener */
.container {
  width: min(calc(100% - 2.5rem), var(--container-max));
  margin: 0 auto;
}

.container-narrow {
  width: min(calc(100% - 2.5rem), 920px);
  margin: 0 auto;
}

/* Typografia nagłówków */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.75rem);
  margin-bottom: 0.75rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

p {
  color: var(--text-muted);
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: #fff;
}

/* Etykiety techniczne i tagi */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.subhead {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 3.5rem;
}
.section-head.center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.section-head.center .subhead {
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(6, 9, 19, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.site-header.scrolled {
  background: rgba(6, 9, 19, 0.95);
  border-bottom-color: rgba(56, 189, 248, 0.18);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #fff;
}

.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1e3a8a, #0284c7);
  border: 1px solid rgba(56, 189, 248, 0.4);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.25);
}

.brand-meta {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.brand-tagline {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  font-size: 0.925rem;
  font-weight: 500;
  padding: 0.5rem 0.25rem;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: #fff;
  padding: 0.5rem;
  cursor: pointer;
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1d4ed8 100%);
  box-shadow: 0 12px 28px -2px rgba(2, 132, 199, 0.6), 0 0 20px rgba(56, 189, 248, 0.35);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--bg-glass);
  color: var(--text-main);
  border-color: var(--border-subtle);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: var(--bg-glass-strong);
  border-color: rgba(56, 189, 248, 0.3);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border-color: rgba(56, 189, 248, 0.35);
}

.btn-outline:hover {
  background: rgba(56, 189, 248, 0.1);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.05rem;
}

.btn-icon {
  transition: transform 0.2s ease;
}
.btn:hover .btn-icon {
  transform: translateX(3px);
}

/* Sekcje */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-hero {
  padding: 4.5rem 0 5.5rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.section-highlight {
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.5) 0%, rgba(6, 9, 19, 0.8) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Karty i szklane panele */
.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.08), transparent 70%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.tech-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.28);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.tech-card:hover::before {
  opacity: 1;
}

/* Układ Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.25rem;
  margin-bottom: 3rem;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 1rem;
}

.hero-badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: #fff;
  font-family: var(--font-heading);
}

.hero-badge-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Wizualizacja skanera 3D w sekcji Hero */
.scanner-visual-box {
  position: relative;
  background: linear-gradient(145deg, rgba(14, 23, 44, 0.9), rgba(8, 12, 24, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 35px rgba(56, 189, 248, 0.12);
  overflow: hidden;
}

.scanner-viewport {
  position: relative;
  height: 380px;
  border-radius: var(--radius-md);
  background: #070c18;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Siatka 3D i linie telemetryczne */
.grid-mesh {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 30%, transparent 80%);
}

.scan-laser-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), #fff, var(--cyan), transparent);
  box-shadow: 0 0 15px var(--cyan), 0 0 30px var(--cyan-glow);
  animation: laserScan 4s ease-in-out infinite alternate;
  z-index: 5;
}

@keyframes laserScan {
  0% { top: 10%; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 90%; opacity: 0.3; }
}

.cad-target-object {
  position: relative;
  z-index: 2;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.wireframe-cube {
  position: relative;
  width: 140px;
  height: 140px;
  border: 2px dashed rgba(56, 189, 248, 0.6);
  border-radius: 20px;
  box-shadow: inset 0 0 25px rgba(56, 189, 248, 0.15), 0 0 20px rgba(56, 189, 248, 0.1);
  animation: rotateCad 16s linear infinite;
  display: grid;
  place-items: center;
}

.wireframe-inner {
  width: 80px;
  height: 80px;
  border: 2px solid rgba(16, 185, 129, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

@keyframes rotateCad {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cad-crosshairs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cad-crosshair-h {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 1px;
  background: rgba(56, 189, 248, 0.15);
}
.cad-crosshair-v {
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(56, 189, 248, 0.15);
}

.scanner-overlay-stats {
  position: absolute;
  top: 16px;
  left: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(6, 10, 20, 0.75);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--cyan);
  line-height: 1.4;
  backdrop-filter: blur(8px);
}

.scanner-status-tag {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: var(--emerald);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.scanner-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
  padding-top: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Siatki układów (Grids) */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* Karty Usług */
.service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.15));
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
  transition: var(--transition);
}

.service-card:hover .service-icon-wrap {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 25px var(--cyan-glow);
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.service-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
}

/* Oś Czasu Procesu (Process Timeline) */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
}

.process-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.process-number {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(37, 99, 235, 0.2));
  border: 1px solid var(--border-focus);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.process-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.process-card p {
  font-size: 0.9rem;
  line-height: 1.6;
}

/* Sekcja Wyróżników (Trust & Values) */
.feature-box {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}

.feature-box-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: grid;
  place-items: center;
  color: var(--emerald);
  font-size: 1.3rem;
}

/* Portfolio & Galeria */
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.filter-tab {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: rgba(56, 189, 248, 0.15);
  color: #fff;
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.portfolio-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.portfolio-media {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: #090e1a;
  cursor: pointer;
}

.portfolio-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.05);
}

.portfolio-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(6, 10, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  backdrop-filter: blur(8px);
}

.portfolio-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.portfolio-body h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.portfolio-body p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 15, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.lightbox-modal.open {
  display: flex;
  opacity: 1;
}

.lightbox-dialog {
  position: relative;
  max-width: min(1100px, 94vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image-wrap {
  position: relative;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(56, 189, 248, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox-meta {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 24, 45, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-btn:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 20px var(--cyan-glow);
}

.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 1.25rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: #ef4444;
  border-color: #ef4444;
}

/* Kalkulator Wyceny */
.calc-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.5rem;
  align-items: flex-start;
}

.calc-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
}

.form-row {
  margin-bottom: 1.75rem;
}

.form-row:last-child {
  margin-bottom: 0;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.6rem;
}

.form-hint {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

/* Wymiary 3D */
.dims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.input-with-unit {
  position: relative;
}

.input-field, .select-field {
  width: 100%;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: var(--transition);
}

.input-with-unit .input-field {
  padding-right: 2.5rem;
}

.input-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  pointer-events: none;
}

.input-field:focus, .select-field:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Wybór kafelkowy w kalkulatorze (Visual Option Cards) */
.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.option-tile {
  background: rgba(6, 10, 20, 0.5);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
}

.option-tile input {
  position: absolute;
  opacity: 0;
}

.option-tile-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.2rem;
}

.option-tile-desc {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.option-tile:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(14, 23, 44, 0.7);
}

.option-tile.selected {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.option-tile.selected .option-tile-title {
  color: #fff;
}

/* Dropzone do wgrywania zdjęć */
.dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.25);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  background: rgba(6, 10, 20, 0.4);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--cyan);
  background: rgba(56, 189, 248, 0.05);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 1.75rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.dropzone-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.dropzone-text strong {
  color: var(--cyan);
}

.dropzone-preview {
  display: none;
  margin-top: 1rem;
  position: relative;
}

.dropzone-preview img {
  max-height: 140px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

/* Panel Wyniku Wyceny */
.calc-result-card {
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
  background: linear-gradient(145deg, rgba(14, 23, 44, 0.95), rgba(8, 12, 24, 0.98));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-lg), 0 0 35px rgba(56, 189, 248, 0.08);
}

.result-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.75rem;
}

.price-display {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.price-val {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #fff 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.price-currency {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--text-muted);
}

.price-disclaimer {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.breakdown-box {
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1.75rem;
}

.breakdown-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
}

.breakdown-items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breakdown-item span:first-child {
  color: var(--text-dim);
}

.breakdown-item.accent {
  color: var(--emerald);
  font-weight: 600;
}

/* CTA & Formularz Kontaktowy */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.contact-method-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  transition: var(--transition);
  text-decoration: none;
  color: var(--text-main);
}

.contact-method-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--cyan);
  transform: translateX(4px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.contact-details span {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-transform: uppercase;
}

.contact-details strong {
  font-size: 1.05rem;
  color: #fff;
}

.quick-form {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  backdrop-filter: blur(14px);
}

.textarea-field {
  width: 100%;
  background: rgba(6, 10, 20, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  min-height: 120px;
  resize: vertical;
  transition: var(--transition);
}

.textarea-field:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

/* Stopka */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #04070f;
  padding: 4rem 0 2.5rem;
  color: var(--text-dim);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--cyan);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
}

/* Druk 3D i Parametry Techniczne */
.print-specs-panel {
  background: linear-gradient(145deg, rgba(14, 23, 44, 0.8), rgba(6, 10, 20, 0.9));
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-sm);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.spec-card {
  background: rgba(6, 10, 20, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.spec-card:hover {
  border-color: var(--cyan);
  background: rgba(14, 23, 44, 0.8);
  transform: translateY(-2px);
}

.spec-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.spec-icon {
  font-size: 1.2rem;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.spec-value {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.spec-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* Karty Materiałów */
.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.material-card:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.material-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.material-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
}

.material-badge.accent-emerald {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--emerald);
}

.material-badge.accent-amber {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.3);
  color: var(--amber);
}

.material-temp {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

.material-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.material-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.material-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.material-features li {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.material-features li::before {
  content: '✓';
  color: var(--cyan);
  font-weight: 700;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Sekcja Modelowania 3D & CAD */
.cad-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.cad-step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.cad-step-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.cad-step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.cad-step-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
}

.cad-step-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Responsywność */
@media (max-width: 1024px) {
  .hero-grid, .calc-container, .contact-grid {
    grid-template-columns: 1fr;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .btn-mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(6, 9, 19, 0.98);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1.5rem 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    display: none;
    backdrop-filter: blur(20px);
  }

  .nav-menu.open {
    display: flex;
  }

  .grid-2, .grid-3, .grid-4, .process-grid, .footer-grid {
    grid-template-columns: 1fr;
  }

  .dims-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 4.5rem 0;
  }

  .price-val {
    font-size: 2.4rem;
  }
}
