:root {
      --yellow: #f4c400;
      --yellow-hover: #d4a900;
      --red: #c62828;
      --dark: #1e1e1e;
      --darker: #121212;
      --gray: #f5f5f5;
      --blue-cnc: #007bff; /* Kolor dla CNCMatch */
      --text-color: #333;
    }
    
    * { box-sizing: border-box; }
    
    body {
      margin: 0;
      font-family: 'Montserrat', sans-serif;
      color: var(--text-color);
      background: #fff;
      overflow-x: hidden;
    }

    /* --- Nawigacja (Baza) --- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: var(--darker);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  flex-wrap: wrap; /* Pozwala zawija� elementy na ma�ym ekranie */
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #fff;
  text-decoration: none;
}
.logo span { color: var(--yellow); }

/* Styl przycisku Hamburger (domy�lnie ukryty na komputerze) */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 5px 0;
  transition: 0.3s;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--yellow); }

.btn-nav-contact {
  background: var(--red);
  padding: 8px 16px;
  border-radius: 4px;
}
.btn-nav-contact:hover { background: #fff; color: var(--red) !important; }


/* --- WIDOK MOBILNY (Telefony) --- */
@media (max-width: 768px) {
  
  /* Pokazujemy przycisk hamburgera */
  .menu-toggle {
    display: block; 
  }

  /* Ukrywamy linki domy�lnie */
  .nav-links {
    display: none; 
    width: 100%;
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    margin-top: 15px;
  }

  /* Klasa 'active' dodawana przez JavaScript - pokazuje menu */
  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 15px 0;
    width: 100%;
  }
  
  .nav-links a {
    display: block;
    padding: 10px;
    font-size: 1.1rem;
  }
}

    /* --- SLIDER / HERO SECTION --- */
    .slider-section {
      position: relative;
      height: 600px;
      overflow: hidden;
      background: var(--dark);
      color: #fff;
    }

    .slide {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center; /* Centrowanie tre�ci */
      opacity: 0;
      transition: opacity 1s ease-in-out;
      background-size: cover;
      background-position: center;
      z-index: 1;
    }

    .slide.active { opacity: 1; z-index: 2; }

    /* Przyciemnienie t�a slidera �eby tekst by� czytelny */
    .slide::before {
      content: '';
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: rgba(0,0,0,0.6); 
      z-index: 1;
    }

    .slide-content {
      position: relative;
      z-index: 10;
      text-align: center;
      max-width: 900px;
      padding: 20px;
      animation: fadeInUp 1s ease-out;
    }

    .slide-content h2, .slide-content h1 span {
      font-size: 3.5rem;
      margin-bottom: 20px;
      font-weight: 800;
      line-height: 1.1;
    }
    
    .slide-content h2 span, .slide-content h1 span { color: var(--yellow); }

    .slide-content p {
      font-size: 1.3rem;
      margin-bottom: 30px;
      color: #ddd;
    }

    .btn {
      display: inline-block;
      padding: 16px 32px;
      background: var(--red);
      color: #fff;
      text-decoration: none;
      border-radius: 5px;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 1px;
      transition: all 0.3s ease;
      cursor: pointer;
      border: none;
    }
    .btn:hover { background: #a31f1f; transform: translateY(-3px); }

    /* --- Og�lne Sekcje --- */
    section {
      padding: 80px 5%;
      max-width: 1400px;
      margin: auto;
    }
    
    .section-title {
      text-align: center;
      font-size: 2.2rem;
      margin-bottom: 50px;
      font-weight: 800;
      color: var(--dark);
    }
    
    .section-title span { color: var(--red); }

    /* --- Banner CNCMATCH --- */
    .cnc-promo {
      background: linear-gradient(90deg, #001f3f 0%, var(--blue-cnc) 100%);
      color: #fff;
      border-radius: 15px;
      display: grid;
      grid-template-columns: 2fr 1fr;
      align-items: center;
      padding: 60px;
      margin: 30px auto;
      box-shadow: 0 10px 30px rgba(0,123,255, 0.3);
      position: relative;
      overflow: hidden;
    }
    
    .cnc-promo::after {
      content: 'CNC';
      position: absolute;
      right: -20px;
      bottom: -40px;
      font-size: 15rem;
      font-weight: 900;
      opacity: 0.1;
      color: #fff;
      pointer-events: none;
    }

    .cnc-text h3 { font-size: 2rem; margin: 0 0 15px; }
    .cnc-text p { font-size: 1.1rem; max-width: 600px; opacity: 0.9; }
    .btn-cnc { background: #fff; color: var(--blue-cnc); }
    .btn-cnc:hover { background: #eee; color: #001f3f; }

    /* --- Sekcja YouTube --- */
    .youtube-section {
      background: #fafafa;
      text-align: center;
    }
    
    .yt-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 40px;
      align-items: center;
    }
    
    .yt-text { max-width: 500px; text-align: left; }
    .yt-text h3 { font-size: 2rem; margin-top: 0; }
    .yt-badge {
      display: inline-block;
      background: #ff0000;
      color: #fff;
      padding: 5px 10px;
      font-weight: bold;
      border-radius: 4px;
      margin-bottom: 10px;
      font-size: 0.8rem;
    }

    .video-box {
      width: 100%;
      max-width: 560px;
      aspect-ratio: 16/9;
      background: #000;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }

    /* --- Sekcja Blog --- */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }
    
    .blog-card {
      background: #fff;
      border-radius: 10px;
      overflow: hidden;
      box-shadow: 0 5px 15px rgba(0,0,0,0.05);
      transition: transform 0.3s;
      border: 1px solid #eee;
    }
    .blog-card:hover { transform: translateY(-5px); }
    
    .blog-img {
      height: 200px;
      background: #ddd;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #777;
    }
    .blog-img img { width: 100%; height: 100%; object-fit: cover; }
    
    .blog-content { padding: 25px; }
    .blog-date { font-size: 0.8rem; color: #999; text-transform: uppercase; font-weight: 700; }
    .blog-content h4 { margin: 10px 0; font-size: 1.2rem; }
    .blog-link { color: var(--red); text-decoration: none; font-weight: 700; font-size: 0.9rem; margin-top: 15px; display: inline-block; }

    /* --- Formularz i Reszta (zachowane) --- */
    #kontakt { background: var(--gray); text-align: center; border-radius: 20px; padding: 60px 20px; }
    .contact-wrapper { max-width: 600px; margin: 40px auto 0; }
    .btn-toggle-form { 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); 
        color: #fff; 
        border: none; 
        padding: 16px 32px; 
        font-weight: 700; 
        border-radius: 50px; 
        cursor: pointer; 
        font-size: 1rem;
        transition: all 0.3s;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }
    .btn-toggle-form:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    }
    .btn-toggle-form:active {
        transform: translateY(0);
    }
    .form-container { 
        max-height: 0; 
        overflow: hidden; 
        opacity: 0;
        visibility: hidden;
        transition: max-height 0.6s ease, opacity 0.6s ease, visibility 0.6s ease; 
        background: #fff; 
        border-radius: 16px; 
        margin-top: 20px; 
        text-align: left;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .form-container.open { 
        max-height: 1200px; 
        opacity: 1;
        visibility: visible;
        padding: 30px; 
    }
    .form-group { 
        margin-bottom: 20px; 
    }
    .form-group label {
        display: block;
        font-weight: 700;
        margin-bottom: 8px;
        color: #1a1a1a;
        font-size: 15px;
    }
    .form-group input, .form-group textarea { 
        width: 100%; 
        padding: 14px 16px; 
        border: 2px solid #e0e0e0; 
        border-radius: 12px;
        font-size: 15px;
        font-family: inherit;
        transition: all 0.3s;
        background: #fafafa;
        box-sizing: border-box;
    }
    .form-group input:focus, .form-group textarea:focus {
        outline: none;
        border-color: #667eea;
        background: white;
        box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    }
    .form-group textarea {
        resize: vertical;
        min-height: 120px;
    }
    .form-submit-btn { 
        width: 100%; 
        padding: 16px; 
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none; 
        font-weight: 700; 
        cursor: pointer;
        border-radius: 50px;
        font-size: 16px;
        transition: all 0.3s;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    }
    .form-submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 12px 32px rgba(102, 126, 234, 0.4);
    }
    .form-submit-btn:active {
        transform: translateY(0);
    }
    
    footer { background: var(--darker); color: #777; padding: 40px 20px; text-align: center; border-top: 2px solid var(--yellow); }

    /* RWD */
    @media (max-width: 768px) {
      .slider-section { height: 500px; }
      .slide-content h2 { font-size: 2rem; }
      nav { flex-direction: column; gap: 15px; }
      .nav-links { flex-direction: column; text-align: center; gap: 15px; }
      .cnc-promo { grid-template-columns: 1fr; text-align: center; gap: 30px; }
      .yt-container { flex-direction: column; }
      .yt-text { text-align: center; }
    }

    /* Animacje */
    @keyframes fadeInUp { from { opacity:0; transform: translateY(30px); } to { opacity:1; transform: translateY(0); } }
    
    /* --- Nowe style dla sekcji O Nas (2 kolumny) --- */
    .about-wrapper {
      display: grid;
      grid-template-columns: 1.2fr 0.8fr; /* Lewa kolumna szersza, prawa w�sza */
      gap: 60px;
      align-items: start;
      text-align: left; /* Resetujemy centrowanie */
    }

    /* Prawa kolumna z produktami */
    .latest-products-sidebar {
      background: #f9f9f9;
      padding: 30px;
      border-radius: 10px;
      border-left: 5px solid var(--yellow);
    }
    
    .mini-product-card {
      display: flex;
      align-items: center;
      gap: 15px;
      background: #fff;
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 20px;
      text-decoration: none;
      color: var(--dark);
      box-shadow: 0 3px 10px rgba(0,0,0,0.05);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    
    .mini-product-card:hover {
      transform: translateX(10px);
      box-shadow: 0 5px 15px rgba(0,0,0,0.1);
      border-right: 3px solid var(--red);
    }

    .mini-product-img {
      width: 80px;
      height: 80px;
      flex-shrink: 0;
      border-radius: 5px;
      overflow: hidden;
      background: #eee;
    }
    
    .mini-product-img img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .mini-product-info h4 {
      margin: 0 0 5px;
      font-size: 1rem;
      font-weight: 700;
    }
    
    .mini-product-price {
      color: var(--red);
      font-weight: 800;
      font-size: 0.95rem;
    }

    /* Dostosowanie kart zalet do kolumny */
    .about-features-grid {
      display: grid;
      grid-template-columns: 1fr 1fr; /* Dwie kolumny zalet pod tekstem */
      gap: 20px;
      margin-top: 30px;
    }
    
    .small-feature {
      background: #fff;
      padding: 20px;
      border-radius: 8px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    }
    .small-feature h3 { margin-top: 0; font-size: 1.1rem; color: var(--dark); }
    .small-feature p { font-size: 0.9rem; margin: 0; color: #666; }

    /* RWD dla tej sekcji */
    @media (max-width: 900px) {
      .about-wrapper { grid-template-columns: 1fr; gap: 40px; }
      .about-features-grid { grid-template-columns: 1fr; }
    }
    
    /* MENU KATEGORII */
    .category-nav {
        display: flex; justify-content: center; gap: 15px; flex-wrap: wrap; 
        padding: 20px; max-width: 1200px; margin: 0 auto;
    }
    .cat-btn {
        padding: 10px 25px; border: 2px solid var(--dark); background: transparent; 
        color: var(--dark); text-decoration: none; font-weight: 700; text-transform: uppercase;
        transition: all 0.3s; border-radius: 4px;
    }
    .cat-btn:hover, .cat-btn.active {
        background: var(--dark); color: #fff;
    }