* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: #f4f4f4;
  color: #273a75;
  line-height: 1.6;
  font-size: 16px;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

/* Header */
header {
  background-color: #273a75;
  color: #fff;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
}

.logo img {
  max-width: 100px;
  height: auto;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

/* Przyciski */
.btn {
  background-color: #273a75;
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  transition: background-color 0.3s;
  cursor: pointer;
}

.btn:hover {
  background-color: #192a56;
}

/* Produkty */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
}

.product {
  background: white;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.product img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Producenci */
.brands {
  text-align: center;
}

.brand-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center; /* <-- nowość: wyrównanie w pionie */
  gap: 20px;
  margin-top: 20px;
}

.brand-logos img {
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter:none;
  transition: filter 0.3s;
}

.brand-logos img:hover {
  transform: scale(1.2);
  filter: none;
  background-color: white;
  padding: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

/* Galeria */
.gallery-images {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.gallery-images img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 8px;
}

/* Kontakt */
.contact iframe {
  width: 100%;
  height: 400px;
  border: none;
  margin-bottom: 20px;
}

.contact-team {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.contact-person {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Stopka */
footer {
  background: #273a75;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
.centered-contact {
  text-align: center;
}

.centered-contact .contact-details {
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.centered-contact a {
  color: #273a75;
  text-decoration: underline;
}

/* Responsywność */
@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    align-items: center;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
  }

  .contact-team {
    flex-direction: column;
    gap: 20px;
  }
}
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 32px;
  color: white;
  cursor: pointer;
}


@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .main-nav ul {
    display: none;
    flex-direction: column;
    background-color: #273a75;
    width: 100%;
    padding: 20px;
  }

  .main-nav.open ul {
    display: flex;
  }
}
.main-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 768px) {
  .main-nav {
    position: static;
    transform: none;
    width: 100%;
    text-align: center;
  }
}
html {
  scroll-behavior: smooth;
}
section {
  scroll-margin-top: 100px; /* lub tyle, ile ma twój header */
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.news-item {
  background: white;
  padding: 20px;
  border-left: 5px solid #273a75;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.news-item h3 {
  margin-bottom: 10px;
  color: #273a75;
}

.news-item p {
  color: #333;
}

.news-item time {
  display: block;
  font-size: 0.9em;
  color: #888;
  margin-bottom: 10px;
}
#news img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
  height: auto;
}
#news-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}
#news-container h3,
#news-container p,
#news-container a {
  text-align: center; /* lub left/right w zależności od potrzeb */
  margin-bottom: 1rem;
}

footer {
  background-color: #f5f5f5;
  padding: 10px 20px;
  color: #a0a7bd;
  font-size: 12px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
}

.footer-left,
.footer-center,
.footer-right {
  flex: 1;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.facebook-link i {
  font-size: 24px;
  color: #3b5998;
  transition: color 0.3s;
}

.facebook-link:hover i {
  color: #29487d;
}

/* Przycisk "Przejdź na górę" */
#scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #273a75;
  color: white;
  border: none;
  padding: 15px 20px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  display: none; /* Ukrycie przycisku na początku */
  z-index: 1000;
}

#scroll-to-top.show {
  opacity: 1;
  display: block; /* Pokazanie przycisku, kiedy jest aktywowany */
}

#scroll-to-top:hover {
  background-color: #192a56;
}
#scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: transparent;
  border: none;
  padding: 15px;
  cursor: pointer;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 1000;
}

/* Strzałka w przycisku */
#scroll-to-top svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* Efekt powiększenia przy najechaniu */
#scroll-to-top:hover {
  background-color: #192a56;
  transform: scale(1.1);
}

/* Efekt pulsowania przycisku */
#scroll-to-top.pulse {
  animation: pulse 2s infinite;
}

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