:root {
  --main-color: #0D47A1;
  --accent-color: #1976D2;
  --light-bg: #f0f8ff;
  --hover-bg: #E3F2FD;
  --text-color: #333;
  --text-light: #f0f8ff;
}

/* Globalne */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: #fff;
  overflow-x: hidden;
}

/* ================= HEADER ================= */
header {
  background: linear-gradient(-45deg, #0D47A1, #1976D2, #42A5F5, #1565C0);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
  color: white;
  text-align: center;
  padding: 60px 20px;
  position: relative;
  transition: padding 0.4s ease;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header h1 {
  font-size: 3rem;
  margin: 0;
  letter-spacing: 1px;
}

header p {
  font-size: 1.1rem;
  margin-top: 10px;
}

table {
border: 0px solid black;
margin-left: auto;
margin-right: auto;
border-spacing: 0px; /* Adding spacing */
border-collapse: collapse;
width: 100px;
}

th.right, td.right {
border: 0px solid black;
padding: 0px;
text-align: right;
margin-left: 0px;
margin-right: 0px;
}
th.left, td.left {
border: 0px solid black;
padding: 0px;
text-align: left;
margin-left: 0px;
margin-right: 0px;
}

img.hero {
  max-width: 100%;
  border-radius: 12px;
  margin-top: 40px;
  margin-bottom: 20px;  
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transition: transform 0.5s ease;
}

img.hero:hover {
  transform: scale(1.02);
}

/* ================= SEKCJE ================= */
section {
  padding: 40px 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

section.light {
  background: var(--light-bg);
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ================= NAGŁÓWKI ================= */
h2.light {
  color: var(--text-light);
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 2rem;
}

h2.dark {
  color: var(--main-color); 
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 2rem;
}

/* ================= KAFELKI ================= */
.services, .benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.service-item, .benefit-item {
  flex: 1 1 300px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 25px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s;
}

.service-item:hover, .benefit-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  backdrop-filter: brightness(1.05);
}

/* ================= CTA ================= */
.cta {
  text-align: center;
  margin-top: 20px;
}

.cta button {
  background: var(--accent-color);
  color: white;
  border: none;
  padding: 15px 35px;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s, transform 0.2s;
}

.cta button:hover {
  background: var(--main-color);
  box-shadow: 0 0 10px rgba(25,118,210,0.6);
  transform: scale(1.03);
}

.cta button:active {
  animation: pulse 0.3s ease;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* ================= FORMULARZ ================= */
.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus, 
.contact-form textarea:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 6px rgba(25,118,210,0.3);
  outline: none;
}

.contact-form button {
  background: var(--main-color);
  color: white;
  border: none;
  padding: 12px 25px;
  cursor: pointer;
  border-radius: 6px;
  font-size: 1rem;
  transition: background 0.3s, transform 0.3s;
}

.contact-form button:hover {
  background: var(--accent-color);
  transform: scale(1.02);
}

/* ================= FOOTER ================= */
footer {
  background: var(--light-bg);
  padding: 30px;
  text-align: center;
  font-size: 0.9rem;
}

footer p {
  margin: 5px 0;
}

.contact-info {
  margin-top: 20px;
  font-size: 0.9rem;
  text-align: center;
}

/* ================= RESPONSYWNOŚĆ ================= */
@media (max-width: 900px) {
  header h1 { font-size: 2.2rem; }
  .service-item, .benefit-item { flex: 1 1 45%; }
}

@media (max-width: 100px) {
  header { padding: 40px 10px; }
  header h1 { font-size: 1.8rem; }
  section { padding: 40px 15px; }
  .services, .benefits { flex-direction: column; }
  .service-item, .benefit-item { flex: 1 1 100%; }
  .cta button { width: 100%; }
}
