body {
  background-image: url("../images/tlo2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #111;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

nav {
  background-color: #003049;
  color: white;
  padding: 1rem;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 60px;
}

.burger {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  right: 1rem;
  top: 1rem;
  cursor: pointer;
  z-index: 1001;
  display: none;
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 0;
  margin: 0;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu li a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .burger {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
    background-color: #003049;
    padding: 1rem 0;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
  }

  .menu.active {
    display: flex;
  }
}

.content {
  margin: 10px auto;
  padding: 20px;
  max-width: 800px;
  background-color: rgba(255,255,255,0.8);
  border-radius: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.gallery img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
}

.gallery img:hover {
  transform: scale(1.03);
}

#tlo {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url("images/tlo2.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.efekt-napisy {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-content: center;
  margin-top: 10px;
}

.efekt-napisy h2 {
  font-size: 1.2rem;
  margin: 5px auto;
  color: white;
  font-weight: 700;
  letter-spacing: 1px;
  background-color: #005f73;
  padding: 15px 30px;
  border-radius: 8px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
  .efekt-napisy {
    grid-template-columns: repeat(2, 1fr);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
}

.footer-slogan {
  position: relative;
  text-align: center;
  padding: 15px;
  background-color: rgba(0, 47, 73, 0.95);
  color: white;
  font-weight: bold;
  font-size: 1rem;
  letter-spacing: 1px;
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
}

.footer-slogan .haslo {
  opacity: 0.5;
  transition: all 0.5s ease;
}

.footer-slogan .haslo.active {
  opacity: 1;
  transform: scale(1.15);
  text-shadow: 0 0 10px rgba(255,255,255,0.6);
}

.obrazek-z-napisem {
  margin: 20px auto;
  padding: 10px 25px;
  border: 10px solid #003049; /* granatowa ramka pasująca do menu */
  background-color: #e0f7fa;  /* bardzo jasny, niebiesko-miętowy odcień */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3),
              inset 0 0 10px rgba(255,255,255,0.4),
              inset 0 0 5px rgba(0,0,0,0.05);
  border-radius: 6px;
  max-width: fit-content;
  text-align: center;
  background-image: linear-gradient(145deg, #e6faff 0%, #d5f3f9 100%);
}

.malowany-napis {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  color: #003049; /* ciemny granat pasujący do motywu */
  display: inline-block;
  white-space: pre-line;
  text-align: center;
  margin: 0;
  line-height: 1.2;
}

.malowany-napis span {
  opacity: 0;
  display: inline-block;
  transform: translateY(20px);
  animation: fadeInUp 0.6s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.obrazek-z-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: 30px;
  gap: 30px;
  flex-wrap: wrap;
}

.obrazek-z-napisem {
  margin: 0;
}

.cta-bok {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.cta-button {
  background-color: #ffffff;
  color: #003049;
  border: 2px solid #003049;
  text-decoration: none;
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 30px;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.cta-button:hover {
  background-color: #003049;
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
  .obrazek-z-wrapper {
    flex-direction: column;
    align-items: center;
  }
}