/* Reset/normalize */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, 'Helvetica Neue', Arial, 'Noto Sans', 'Liberation Sans', sans-serif;
       line-height: 1.6; color: #2c2c2c; background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%); }

.container { width: min(1100px, 100% - 2rem); margin-inline: auto; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.hero { 
  margin-top: 0;
  padding-top: 0;
}

.hero img { 
  width: 100%; 
  object-fit: contain; 
  object-position: center center;
  display: block; 
  border-radius: 0; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  background-color: #424242;
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 2rem auto; }
.card { background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%); border: 2px solid #e0e0e0; border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 8px 25px rgba(66, 66, 66, 0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%); }
.card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(66, 66, 66, 0.2); border-color: #f39c12; }
.card h2 { font-size: 1.3rem; margin-bottom: .75rem; color: #424242; font-weight: 700; }
.card ul { margin-left: 1.2rem; list-style: none; }
.card li { position: relative; margin-bottom: 0.5rem; color: #555555; }
.card li::before { content: '🔧'; position: absolute; left: -1.2rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 1rem auto 2rem; }
.feature { background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%); border: 2px solid #e0e0e0; border-radius: 1.25rem; padding: 1.5rem; box-shadow: 0 8px 25px rgba(66, 66, 66, 0.1); transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: linear-gradient(90deg, #3498db 0%, #2980b9 100%); }
.feature:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(66, 66, 66, 0.2); border-color: #3498db; }
.feature h3 { font-size: 1.2rem; margin-bottom: .5rem; color: #424242; font-weight: 700; }
.feature p { color: #555555; line-height: 1.6; }

.footer { background: linear-gradient(135deg, #424242 0%, #2c2c2c 100%); color: #bdc3c7; padding: 1.5rem 0; margin-top: 3rem; border-top: 3px solid #f39c12; }
.footer .container { font-size: .95rem; text-align: center; }


@media (max-width: 900px) {
  .cards, .features { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .card, .feature { padding: 1.25rem; }
}
@media (max-width: 560px) {
  .cards, .features { grid-template-columns: 1fr; gap: 1rem; }
  .card, .feature { padding: 1rem; }
  .hero { 
    margin-top: 0;
    padding-top: 0;
  }
  
  .hero img { 
    border-radius: 0; 
    object-fit: contain;
  }
  .btn-call { 
    padding: .9rem 1.5rem; 
    font-size: 1rem; 
    border-radius: 1.5rem;
  }
}

/* Dodatkowe style dla bardzo małych ekranów */
@media (max-width: 360px) {
  .hero img { 
    object-fit: contain;
  }
  .btn-call { 
    padding: .8rem 1.2rem; 
    font-size: .9rem; 
    border-radius: 1.2rem;
  }
}


/* --- Updates per request --- */
/* Neutralize previous overlay effect */
.hero-overlay { display: none !important; }

/* Sticky bottom call button, always visible */
.sticky-call {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: .5rem max(1rem, env(safe-area-inset-left)) calc(.5rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-right));
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(66, 66, 66, 0.95) 0%, rgba(44, 44, 44, 0.95) 100%);
  backdrop-filter: saturate(1.2) blur(8px);
  z-index: 100;
  border-top: 2px solid #f39c12;
}

.btn-call {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  padding: 1rem 2rem;
  border-radius: 2rem;
  background: linear-gradient(135deg, #c60002 0%, #e60000 50%, #ff1a1a 100%);
  color: #fff;
  border: 3px solid #fff;
  box-shadow: 0 8px 25px rgba(198, 0, 2, 0.4), 0 0 0 0 rgba(198, 0, 2, 0.7);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}
.btn-call::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}
.btn-call:hover { 
  transform: translateY(-3px) scale(1.05); 
  box-shadow: 0 12px 35px rgba(198, 0, 2, 0.6), 0 0 0 8px rgba(198, 0, 2, 0.1);
  background: linear-gradient(135deg, #e60000 0%, #ff1a1a 50%, #ff3333 100%);
}
.btn-call:hover::before {
  left: 100%;
}
.btn-call:active { 
  transform: translateY(-1px) scale(1.02); 
  transition: all 0.1s;
}

/* Ensure page content not hidden behind sticky bar */
body { padding-bottom: 4.5rem; }

/* Additional modern enhancements */
.hero { position: relative; overflow: hidden; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Enhanced focus states for accessibility */
.btn-call:focus { outline: 2px solid #f39c12; outline-offset: 2px; }

/* Subtle animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.card, .feature { animation: fadeInUp 0.6s ease-out; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.2s; }
.feature:nth-child(2) { animation-delay: 0.1s; }
.feature:nth-child(3) { animation-delay: 0.2s; }
