/* Reset i podstawy */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
}

/* Header */

.header {
  background-color: #0077b6;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  flex-wrap: wrap;
  height: 70px; /* ustalona wysokość nagłówka */
}

.header-left {
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.header-right a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.header-right a:hover {
  text-decoration: underline;
}

.logo {
   object-fit: contain;
  max-width: 120px;
  max-height: 65px;
  height: 100%;
  width: auto;
}

.header-title {
  font-size: 1.5rem;
  font-weight: bold;
}

.header-right {
  font-size: 1rem;
}

/* Nawigacja pozioma */
/* Ukryty checkbox */
#menu-toggle {
  display: none;
}

/* Ikona hamburgera */
.menu-icon {
  display: none;
  padding: 1rem;
  cursor: pointer;
  background-color: #023e8a;
}

.menu-icon svg {
  display: block;
}

/* Menu poziome */
.nav-bar {
  display: flex;
  justify-content: center;
  background-color: #023e8a;
  flex-wrap: wrap;
}

.nav-bar a {
  flex: 1;
  padding: 1rem;
  text-align: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.nav-bar a:hover {
  background-color: #0096c7;
}



/* Sekcje */
.section {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

.section h2 {
  color: #0077b6;
  margin-bottom: 1rem;
}

/* Widoczność sekcji */
.hidden {
  display: none;
}

.visible {
  display: block;
}
.uslugi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.usluga {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.usluga:hover {
  transform: translateY(-5px);
}

.usluga h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.usluga p {
  margin-bottom: 0.5rem;
}

.usluga ul {
  padding-left: 1rem;
  list-style-type: disc;
  margin-top: 0.5rem;
}
.kontakt-box {
  text-align: center;
}

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.kontakt-item {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.kontakt-item:hover {
  transform: translateY(-5px);
}

.kontakt-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 1rem;
  color: #0077b6;
}

.kontakt-item a {
  color: #0077b6;
  text-decoration: none;
  font-weight: bold;
}

.kontakt-item a:hover {
  text-decoration: underline;
}

.map-container {
  margin-top: 2rem;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.wiedza-box {
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.article-card .date {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}

.article-card p {
  margin-bottom: 1rem;
}

.read-more {
  display: inline-block;
  color: #0077b6;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.o-mnie-box {
  text-align: center;
}

.profil-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
}

.profil-foto img {
  width: 250px;
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profil-opis {
  max-width: 600px;
  text-align: left;
}

.profil-opis h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.profil-opis p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.wiedza-box {
  text-align: center;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.article-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  text-align: left;
  transition: transform 0.3s ease;
}

.article-card:hover {
  transform: translateY(-5px);
}

.article-card h3 {
  color: #0077b6;
  margin-bottom: 0.5rem;
}

.article-card p {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.read-more {
  display: inline-block;
  color: #0077b6;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  text-decoration: underline;
}

.footer {
  background-color: #023e8a;
  color: white;
  padding: 2rem 1rem 1rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: auto;
}

.footer-column {
  flex: 1;
  min-width: 200px;
}

.footer-column h4 {
  margin-bottom: 0.5rem;
  color: #90e0ef;
}

.footer-column ul {
  list-style: none;
  padding: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: white;
  text-decoration: none;
}

.footer-column a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  border-top: 1px solid #0077b6;
  padding-top: 1rem;
  font-size: 0.8rem;
}



/* Responsywność */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

     .menu-icon {
    display: block;
  }

  .nav-bar {
    display: none;
    flex-direction: column;
  }

  #menu-toggle:checked + .menu-icon + .nav-bar {
    display: flex;
  }

  .nav-bar a {
    border-top: 1px solid #046;
  }
  .profil-container {
    flex-direction: column;
    text-align: center;
  }

  .profil-opis {
    text-align: center;
  }
   .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
