:root {
  /* DARK MODE COLORS - PREMIUM INDUSTRIAL (Domyślny) */
  --bg-body: #08090b;       
  --bg-section: #0e1014;    
  --bg-card: #14161c;       
  --bg-input: #0a0b0d;

  --primary: #e30613;       
  --primary-glow: rgba(227, 6, 19, 0.5); 
  --primary-dark: #b8000b;

  --text-main: #ffffff;     
  --text-muted: #949aa5;    
  --border: #222630;        
  
  --bg-pattern: rgba(30, 34, 45, 0.3);
  --hero-overlay-1: rgba(8, 9, 11, 0.95);
  --hero-overlay-2: rgba(8, 9, 11, 0.7);

  --radius-sm: 4px;         
  --radius-md: 12px;
  --nav-height: 80px;
  --font-mono: 'Courier New', Courier, monospace; 
}

/* Jasny motyw */
[data-theme="light"] {
  --bg-body: #f4f6f9;       
  --bg-section: #ffffff;    
  --bg-card: #ffffff;       
  --bg-input: #f4f6f9;

  --text-main: #111827;     
  --text-muted: #4b5563;    
  --border: #d1d5db;        

  --bg-pattern: rgba(0, 0, 0, 0.05);
  --hero-overlay-1: rgba(244, 246, 249, 0.95);
  --hero-overlay-2: rgba(244, 246, 249, 0.7);
}

body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(var(--bg-pattern) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
    z-index: -1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-main);
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }
img { max-width: 100%; height: auto; display: block; border-radius: var(--radius-sm); }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

/* === Topbar === */
.topbar { 
    background: var(--bg-body); 
    border-bottom: 1px solid var(--border); 
    font-size: 0.8rem; 
    padding: 10px 0; 
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: background-color 0.4s;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-contacts a { transition: color 0.3s, text-shadow 0.3s; }
.topbar-contacts a:hover { color: var(--primary); text-shadow: 0 0 10px var(--primary-glow); }
.topbar .sep { margin: 0 12px; opacity: 0.2; color: var(--primary); }
.highlight { color: var(--text-main); font-weight: 700; }

/* === Header Premium === */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-height);
  background: var(--bg-body);
  backdrop-filter: blur(20px) saturate(180%); 
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(227, 6, 19, 0.1); 
  display: flex; align-items: center;
  transition: background-color 0.4s;
}
.container { max-width: 1240px; margin: 0 auto; padding: 0 25px; width: 100%; }
.nav { display: flex; justify-content: space-between; align-items: center; }
.logo { 
    font-size: 1.7rem; font-weight: 900; text-transform: uppercase; color: var(--text-main); letter-spacing: -1px;
    display: flex; align-items: center;
}

.text-red { color: var(--primary); }
.menu { display: flex; gap: 35px; align-items: center; }
.menu a:not(.btn) { 
    font-weight: 600; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--text-muted); position: relative; padding: 5px 0;
}
.menu a:not(.btn):hover { color: var(--text-main); }
.menu a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--primary); transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px var(--primary);
}
.menu a:not(.btn):hover::after { width: 30px; }

/* === Theme Switcher === */
.theme-switcher {
    display: flex; gap: 10px; align-items: center; margin-left: auto; margin-right: 20px;
}
.theme-btn {
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--border);
    cursor: pointer; transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
    outline: none; padding: 0;
}
.theme-btn:hover { transform: scale(1.15); }
.theme-btn.active { border-color: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.theme-dark { background: #08090b; }
.theme-light { background: #f4f6f9; }

/* === Buttons Premium === */
.btn {
  display: inline-flex; justify-content: center; align-items: center; padding: 12px 28px;
  border-radius: var(--radius-sm); 
  font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; border: 2px solid transparent;
  position: relative; overflow: hidden; z-index: 1; text-align: center;
}
.btn-primary { background: var(--primary); color: #fff !important; box-shadow: 0 4px 20px rgba(227, 6, 19, 0.4); }
.btn-primary::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s; z-index: -1;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover { background: var(--primary-dark); box-shadow: 0 8px 30px rgba(227, 6, 19, 0.6); transform: translateY(-3px); }

.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text-main); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 15px rgba(227, 6, 19, 0.3) inset; }

/* === Hero Section === */
.hero {
  position: relative; height: 90vh; min-height: 600px;
  background-image: var(--bg-img); background-size: cover; background-position: center 40%; 
  display: flex; align-items: center;
  border-bottom: 2px solid var(--primary);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--hero-overlay-1) 10%, var(--hero-overlay-2) 50%, rgba(227, 6, 19, 0.1) 100%);
  transition: background 0.4s ease;
}
.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero h1 { 
    font-size: clamp(2.5rem, 6vw, 5.5rem); 
    font-weight: 900; line-height: 1.1; margin-bottom: 25px; 
    text-shadow: 0 5px 15px rgba(0,0,0,0.5);
}
.hero h1 span.text-red {
    display: inline-block;
    text-shadow: 0 0 30px var(--primary-glow);
}
.lead { font-size: 1.3rem; color: var(--text-muted); margin-bottom: 40px; max-width: 650px; font-weight: 500; }
.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

/* === Sections Global === */
.section { padding: 100px 0; position: relative; }
.section-darker { background: var(--bg-section); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); transition: background-color 0.4s;}
.section-title { font-size: 3rem; margin-bottom: 25px; position: relative; display: inline-block;}
.section-title::after {
    content: ''; position: absolute; bottom: -10px; left: 0; width: 60px; height: 4px; background: var(--primary);
}
.section-header { margin-bottom: 60px; max-width: 700px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); font-size: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: center; }
.mt-small { margin-top: 20px; }
.highlight-text { 
    color: var(--primary); font-weight: 700; font-size: 1.2rem; margin-top: 15px; display: inline-block;
    border-bottom: 2px solid var(--primary); padding-bottom: 5px;
}

/* === O firmie images === */
.image-grid { 
    display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(12, 1fr); gap: 0; height: 500px; position: relative;
}
.image-grid img:nth-child(1) {
    grid-column: 1 / span 8; grid-row: 1 / span 10; z-index: 2;
    border: 2px solid var(--border); box-shadow: 20px 20px 0 rgba(0,0,0,0.5);
}
.image-grid img:nth-child(2) {
    grid-column: 5 / span 8; grid-row: 5 / span 8; z-index: 1;
    border: 2px solid var(--primary); filter: grayscale(50%) contrast(120%);
}

[data-theme="light"] .image-grid img:nth-child(1) {
    box-shadow: 20px 20px 0 rgba(0,0,0,0.1);
}

/* === Logos === */
.logos-grid { 
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; 
    margin-top: 60px; align-items: center; padding: 30px 0;
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    background: linear-gradient(90deg, transparent, var(--bg-body), transparent);
}
.logos-grid img {
  max-height: 45px; width: auto; opacity: 0.5; transition: 0.4s ease;
  filter: grayscale(100%) brightness(300%); 
}
[data-theme="light"] .logos-grid img {
  filter: grayscale(100%) brightness(0%); opacity: 0.4;
}
.logos-grid img:hover { opacity: 1; filter: grayscale(0%) brightness(100%) drop-shadow(0 0 8px rgba(255,255,255,0.5)); transform: scale(1.05); }

[data-theme="light"] .logos-grid img:hover {
  filter: grayscale(0%) brightness(100%) drop-shadow(0 0 8px rgba(0,0,0,0.2));
}

/* === Features === */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 80px; }
.feature-img { position: relative; }
.feature-img::before {
    content: ''; position: absolute; top: -20px; left: -20px; width: 50%; height: 50%;
    border-top: 4px solid var(--primary); border-left: 4px solid var(--primary); z-index: 0;
}
.feature-img img { position: relative; z-index: 1; border: 2px solid var(--border); }
.feature-row.reverse { direction: rtl; } 
.feature-row.reverse .feature-img::before { left: auto; right: -20px; border-left: none; border-right: 4px solid var(--primary); }
.feature-row.reverse .feature-txt { direction: ltr; }
.feature-txt h3 { font-size: 2.2rem; margin-bottom: 20px; }
.feature-txt p { color: var(--text-muted); margin-bottom: 15px; font-size: 1.05rem; }

.price-highlight {
  font-family: var(--font-mono); font-size: 1.1rem; font-weight: bold; color: var(--primary);
  background: var(--bg-card); display: inline-flex; align-items: center; padding: 10px 20px; 
  border: 1px solid var(--primary); margin-top: 20px; letter-spacing: 0.05em;
  box-shadow: 0 0 20px rgba(227, 6, 19, 0.1) inset; transition: background-color 0.4s;
}
.price-highlight::before { content: 'KOSZT: '; color: var(--text-muted); margin-right: 10px; font-size: 0.9em;}

.check-list { margin-top: 25px; }
.check-list li { 
    position: relative; padding-left: 35px; margin-bottom: 15px; color: var(--text-main); font-weight: 500;
    background: var(--bg-card); padding: 12px 15px 12px 40px; border-left: 3px solid var(--primary);
    transition: background-color 0.4s;
}

/* === Cennik / Produkty === */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden;
  transition: all 0.4s ease; position: relative;
}
.card::after {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
    background: var(--primary); opacity: 0; transition: 0.3s;
    box-shadow: 0 2px 10px var(--primary);
}
.card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 15px 40px rgba(0,0,0,0.15); }
.card:hover::after { opacity: 1; }

.card-img { 
    height: 220px; background: #fff; display: flex; align-items: center; justify-content: center; padding: 20px; 
    position: relative; overflow: hidden;
}
.card-img::before {
    content: ''; position: absolute; inset:0; 
    background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 20px 20px; opacity: 0.1;
}
.card-img img { max-height: 100%; max-width: 90%; width: auto; border-radius: 0; filter: contrast(110%); transition: 0.4s;}
.card:hover .card-img img { transform: scale(1.05); }

.card-body { padding: 25px; position: relative; }
.card-body::before {
    content: ''; position: absolute; top: 0; left: 25px; right: 25px; height: 1px; background: var(--border);
}
.card-body h4 { font-size: 1.2rem; margin-bottom: 10px; letter-spacing: 0.05em; }
.spec { 
    font-family: var(--font-mono); font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; 
    background: var(--bg-body); padding: 8px; border-left: 2px solid var(--text-muted);
    transition: background-color 0.4s;
}
.spec strong { color: var(--text-main); font-weight: 700; }
.price { 
    font-family: var(--font-mono); font-size: 1rem; color: var(--primary); font-weight: 700; 
    text-align: right; text-transform: uppercase; letter-spacing: 0.05em;
}

/* === CTA Box === */
.cta-box {
  background: var(--bg-card);
  border: 2px solid var(--border); padding: 50px; border-radius: var(--radius-sm);
  text-align: center; margin-top: 80px; position: relative; overflow: hidden;
  transition: background-color 0.4s;
}
.cta-box::before {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(227, 6, 19, 0.15) 0%, transparent 60%);
    pointer-events: none;
}
.cta-box h3 { margin-bottom: 15px; font-size: 2rem; }
.cta-box p { color: var(--text-muted); max-width: 500px; margin: 0 auto 30px; }

/* === Kontakt (Bez formularza) === */
.info-block h3 { font-size: 2.5rem; margin-bottom: 15px; }
.phones-list { display: flex; flex-direction: column; gap: 15px; margin-top: 30px; }
.phone-big { 
    font-size: 2.2rem; color: var(--primary); font-weight: 900; letter-spacing: -1px;
    transition: 0.3s; text-shadow: 0 0 20px rgba(227, 6, 19, 0.3);
}
.phone-big:hover { text-shadow: 0 0 30px rgba(227, 6, 19, 0.6); transform: translateY(-3px); display: inline-block;}

/* === Footer === */
.site-footer { 
    background: var(--bg-section); border-top: 2px solid var(--border); padding: 60px 0; margin-top: auto; 
    background-image: linear-gradient(to bottom, var(--bg-body), var(--bg-section));
}
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-brand span { font-size: 1.8rem; font-weight: 900; letter-spacing: -1px; color: var(--text-main); }
.footer-rights { color: var(--text-muted); font-size: 0.9rem; font-family: var(--font-mono); }

/* === Mobile - Globalne Poprawki Skalowania === */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 10px; z-index: 2000; position: relative;}
.nav-toggle .line { display: block; width: 30px; height: 3px; background: var(--text-main); margin: 6px 0; transition: 0.3s; border-radius: 4px; }

/* === Reveal Anim === */
.reveal { opacity: 0; transform: translateY(50px) scale(0.98); transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal.active { opacity: 1; transform: translateY(0) scale(1); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .theme-switcher { margin-right: 20px; }
  .menu {
    position: fixed; inset: 0; background: var(--bg-body); flex-direction: column;
    justify-content: center; transform: translateX(100%); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(15px); z-index: 1500; height: 100vh; padding: 20px;
  }
  .menu.open { transform: translateX(0); }
  .menu a:not(.btn) { font-size: 1.2rem; margin: 10px 0; }
  .topbar { display: none; }
  
  .container { padding: 0 15px; }
  .section { padding: 60px 0; } 
  .grid-2, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr !important; gap: 40px; }
  
  .hero { height: auto; min-height: auto; padding: 120px 0 60px; text-align: center; }
  .hero h1 { font-size: 2.8rem; line-height: 1.2; }
  .lead { font-size: 1.1rem; }
  .hero-buttons { flex-direction: column; width: 100%; gap: 15px; }
  .hero-buttons .btn { width: 100%; }

  .section-title { font-size: 2.2rem; }
  .section-header h2 { font-size: 2.2rem; }
  .info-block h3 { font-size: 2rem; }
  
  .image-grid { display: flex; flex-direction: column; height: auto; gap: 20px; }
  .image-grid img:nth-child(1), .image-grid img:nth-child(2) {
    position: static; width: 100%; height: auto; max-height: 300px; object-fit: cover;
    transform: none; box-shadow: none; filter: none; margin: 0;
  }

  .logos-grid { justify-content: center; gap: 25px; padding: 20px 0; }
  .logos-grid img { max-height: 35px; }
  
  .feature-img::before { display: none; } 
  .feature-txt h3 { font-size: 1.8rem; }
  
  .products-grid { grid-template-columns: 1fr; gap: 20px; }
  
  .cta-box { padding: 30px 20px; margin-top: 40px; }
  .cta-box h3 { font-size: 1.5rem; }
  .phone-big { font-size: 1.8rem; }
  
  .footer-content { flex-direction: column; text-align: center; gap: 15px; }
}