/* === Reset & Base === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy: #1a365d;
  --blue: #2b6cb0;
  --blue-light: #ebf4ff;
  --teal: #319795;
  --orange: #dd6b20;
  --gray-50: #f7fafc;
  --gray-100: #edf2f7;
  --gray-200: #e2e8f0;
  --gray-500: #718096;
  --gray-600: #4a5568;
  --gray-700: #2d3748;
  --gray-800: #1a202c;
  --white: #ffffff;
  --max-width: 1100px;
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
  --radius: 8px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-700);
  background: var(--gray-50);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, h5, h6 { color: var(--navy); line-height: 1.3; }
h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
ul { list-style: none; }

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* === Header === */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
}
.logo strong { color: var(--blue); }
.logo:hover { color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-700);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav ul {
  display: flex;
  gap: 0.25rem;
}

.main-nav a {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.938rem;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.main-nav a:hover,
.main-nav a.active {
  background: var(--blue-light);
  color: var(--blue);
}

/* === Hero === */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 4rem 0;
}
.hero h1 { color: var(--white); font-size: 2.25rem; margin-bottom: 0.75rem; }
.hero p { color: rgba(255,255,255,0.85); font-size: 1.125rem; max-width: 600px; }

/* === Page Header (subpages) === */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  padding: 2.5rem 0;
}
.page-header h1 { color: var(--white); margin-bottom: 0.25rem; }
.page-header p { color: rgba(255,255,255,0.8); margin: 0; }

/* === Sections === */
.section { padding: 3rem 0; }
.section--alt { background: var(--white); }

.section-title {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 0.75rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

/* === Cards Grid === */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.card p { color: var(--gray-600); font-size: 0.938rem; margin-bottom: 0; }

.card--highlight {
  border-top: 3px solid var(--blue);
}

/* === Product Cards === */
.product-card {
  display: flex;
  gap: 1.25rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow 0.2s;
}
.product-card:hover { box-shadow: var(--shadow-md); }

.product-card img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.product-card h3 { font-size: 1.05rem; margin-bottom: 0.25rem; }
.product-card p { font-size: 0.938rem; color: var(--gray-600); margin-bottom: 0.75rem; }

/* === Two Column Layout === */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.content-block { margin-bottom: 2rem; }
.content-block:last-child { margin-bottom: 0; }

/* === Feature List === */
.feature-list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--gray-700);
}
.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--blue);
  border-radius: 50%;
}

/* === Values (O firmie) === */
.value-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.value-icon {
  width: 48px;
  height: 48px;
  background: var(--blue-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

/* === Numbered items (Bezpieczeństwo) === */
.numbered-item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--gray-200);
}
.numbered-item:last-child { border-bottom: none; }
.numbered-item .num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  width: 2rem;
}
.numbered-item strong { color: var(--teal); }

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  font-size: 0.938rem;
  font-weight: 500;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }

.btn--primary {
  background: var(--blue);
  color: var(--white);
}
.btn--primary:hover { background: var(--navy); color: var(--white); }

.btn--secondary {
  background: var(--gray-100);
  color: var(--gray-700);
}
.btn--secondary:hover { background: var(--gray-200); color: var(--gray-700); }

/* === Contact Form === */
.contact-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
}

.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.375rem;
  font-size: 0.938rem;
  color: var(--gray-700);
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 108, 176, 0.15);
}
.form-group textarea { resize: vertical; min-height: 150px; }

.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.938rem;
}
.alert--error {
  background: #fff5f5;
  color: #c53030;
  border: 1px solid #fed7d7;
}
.alert--success {
  background: #f0fff4;
  color: #276749;
  border: 1px solid #c6f6d5;
}

.contact-info dt {
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
  margin-top: 1rem;
}
.contact-info dt:first-child { margin-top: 0; }
.contact-info dd { color: var(--gray-600); }

/* === Footer === */
.site-footer {
  background: var(--gray-800);
  color: var(--gray-500);
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .header-inner { position: relative; }

  .nav-toggle { display: block; }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.5rem 0;
    z-index: 100;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav a { padding: 0.75rem 1rem; }

  .hero { padding: 2.5rem 0; }
  .hero h1 { font-size: 1.75rem; }

  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }

  .section { padding: 2rem 0; }
}
