/* Resetowanie podstawowych stylów */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Definicje zmiennych dla spójnej kolorystyki */
:root {
  --primary-color: #004d7a;
  --secondary-color: #ffffff;
  --text-color: #333333;
  --bg-color: #f9f9f9;
  --accent-color: rgba(255, 255, 255, 0.2);
}

/* Stylizacja kontenera */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Sekcja Hero */
.hero {
  background: url('hero-image.jpg') center/cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--secondary-color);
  position: relative;
  margin-bottom: 40px;
}
.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}
.hero > .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 3em;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
  margin-bottom: 0.5em;
}
.hero p {
  font-size: 1.2em;
}

/* Stylizacja sekcji ogólnych */
section {
  padding: 60px 0;
}
section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2em;
  color: var(--text-color);
}

/* Układ siatki dla usług */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service {
  background-color: var(--secondary-color);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service:hover,
.service:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}
.service h3 {
  margin-bottom: 10px;
  color: var(--primary-color);
}
.service p {
  color: var(--text-color);
}

/* Stylizacja sekcji O Nas oraz Kontakt */
#o-nas,
#kontakt {
  background-color: var(--secondary-color);
  padding: 40px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}
#kontakt address p a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}
#kontakt address p a:hover,
#kontakt address p a:focus {
  color: #00345a;
}

/* Responsywne dostosowanie */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5em;
  }
}
