body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: 	#f4f7fb;
  color: #2c2c2c;
  margin: 0;
  line-height: 1.6; 
}

/* Header */
.header {
  background-color: #20507F;  
 /*background: linear-gradient(-45deg, #1a2a4f, #20507F); */ 
  color: white;
  padding: 1rem;
  position: relative;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.logo {
  max-height: 120px;
}

.company-name {
  font-size: 1.3rem;
  font-weight: bold;
}

.company-name .highlight {
  color: #4BC7FF;
}

/* Menu (desktop) */
.main-nav {
  width: 100%;
  text-align: center;
}

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

.menu li {
  position: relative;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  display: inline-block;
  transition: color 0.3s ease;
  position: relative;
}

.menu a:hover {
  color: 	#f5a623;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.4rem;
  width: 0%;
  height: 2px;
  background: #f5a623;
  transition: width 0.3s ease;
}

.menu a:hover::after {
  width: 100%;
}

.submenu {
  display: none;
  position: absolute;
  background-color: #20507F;
  top: 100%;
  left: 0;
  z-index: 999;
}

.menu li:hover .submenu {
  display: block;
}

/* Hamburger button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
}

/* Mobile menu */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .menu-toggle {
    display: block;
  }

  .menu {
    display: none;
    flex-direction: column;
    background-color: #20507F;
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    z-index: 999;
  }

  .menu.show {
    display: flex;
  }

  .menu li {
    text-align: left;
  }

  .submenu {
    position: static;
  }

  .submenu.submenu-show {
    display: block;
  }

  .menu .dropdown > a::after {
    content: " ▼";
    font-size: 0.95em;
  }
}

/* Content Section */
.content {
  max-width: 1200px;
  margin: auto;
  padding: 1rem 1rem;
}

.content-full-width {
  max-width: 100%;
  /*padding: 3rem 2rem;  zachowaj padding, jeśli go potrzebujesz */
}

.section-title {
  font-size: 2rem;
  color: #20507F;
  text-align: center;
  margin-bottom: 0.5rem;
}

/* Sekcje */
section {
  padding: 0.75rem 0;
}

.hero {
  background-color: #DAE2EA; 
  color: #1e293b;
  text-align: center;
  padding: 0.75rem 0.5rem;
}

.hero h1 {
  font-size: 1.9rem;
  text-align: center;
  margin: 0 auto 0.4rem;
  max-width: 700px;
}

.hero p {
  font-size: 1rem;
  margin: 0 auto 0.4rem;
  max-width: 700px;
  text-align: center;
}

.hero p:last-of-type {
  margin-bottom: 0.2rem;
}
.hero.with-image {
  background-color: #DAE2EA;
  padding: 1rem 1rem;
}

.hero-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-image-box {
  flex: 1 1 45%;
  min-width: 280px;
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.hero-text {
  flex: 1 1 45%;
  text-align: left;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
}

.hero-text p {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1e293b;
  max-width: 700px;
}

/* Mobile: pionowy układ */
@media (max-width: 768px) {
  .hero-wrapper {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-text h1 {
    font-size: 1.6rem;
  }

  .hero-text p {
    font-size: 0.95rem;
  }
}

h2 {
  margin-bottom: 0.5rem;
}

ul,
p {
  margin-bottom: 0.5rem;
}

 /* Budynki */
.managed-buildings h2 {
  text-align: center;
  color: #1e293b;
  margin-bottom: 0.4rem;
 }

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

.building-list li {
  background-color: #ffffff;
  border: 1px solid #d0d5dc;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  font-size: 0.9rem;
  white-space: nowrap;
  padding: 0.35rem 0.8rem;
}

/* --- Responsywność dla budynków --- */
@media (max-width: 768px) {
  .building-list li {
    flex: 1 1 45%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .building-list li {
    flex: 1 1 100%;
  }
}

/* Funkcje */
.features h2,
.mission h2,
.contact-cta h2 {
  color: #1e293b;
  text-align: center;
  margin-bottom: 0.4rem;
  }

.features ul {
  list-style: none;
  padding-left: 0;
  max-width: 800px;
  margin: 0 auto;
}

.features li {
  margin-bottom: 0.4rem;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
}

.features li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #f5a623;
}

.mission p {
  margin-bottom: 0.4rem;
  font-size: 0.95rem;
  text-align: center;
}

/* CTA */
.contact-cta {
  text-align: center;
  background-color: #DAE2EA;
  color: gray;
  padding: 1rem 1rem 1.25rem;
}

.contact-cta h2,
.contact-cta p {
  margin-bottom: 0.4rem;
}

/* Przycisk */
.button-primary {
  background-color: #f5a623;
  color: #ffffff;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s ease;
  font-size: 0.95rem;
  padding: 0.6rem 1.2rem;
  margin-top: 0.4rem;
}

.button-primary:hover {
  background-color: #d1871d;
}

/* Footer */
.footer {
  background-color: #20507F;
  color: white;
  padding: 1rem;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-left {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-logo {
  max-height: 50px;
}

.footer-contact {
  font-size: 0.95rem;
  line-height: 1.6;
}

.footer-contact a {
  color: #ffffff;
  text-decoration: underline;
}

.footer-right {
  font-size: 0.85rem;
  opacity: 0.7;
  text-align: right;
}

/* Responsive Menu */
@media (max-width: 768px) {
  .menu {
    display: none;
    flex-direction: column;
    width: 50%;
    background-color: #20507F;
    padding: 1rem 0;
    gap: 0;
  }

  .menu.show {
    display: flex;
  }

  .menu li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .menu li:last-child {
    border-bottom: none;
  }

  .menu > li > a {
    display: block;
    padding: 1rem;
    font-size: 1rem;
    color: white;
  }

  .submenu {
    background-color: #20507F;
  }

  .submenu li a {
    font-size: 0.95rem;
    padding: 0.75rem;
    color: #e0e0e0;
  }

  .submenu li a:hover {
    background-color: #2c3e5e;
  }

  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/*kontakt*/
.kontakt-page {
  padding: 1rem 2rem;
}

.kontakt-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 1rem;
}

.kontakt-left {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.6;
}

.kontakt-right {
  flex: 1 1 300px;
}

.kontakt-left a {
  color: #20507F;
  text-decoration: none;
  font-weight: bold;
}

.kontakt-left a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .kontakt-box {
    flex-direction: column;
  }
}

.week-hours {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

.week-hours li {
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.week-hours li.today {
  font-weight: bold;
  background: #f0f4ff;
  padding: 4px 8px;
  border-radius: 6px;
}

.kontakt-left p strong {
  color: ##20507F;
}
.kontakt-left p {
  margin: 0.2rem 0;
  font-size: 0.95rem;
}

.map-container {
  width: 40%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.kontakt-box {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.kontakt-left {
  flex: 1 1 300px;
  font-size: 1rem;
  line-height: 1.6;
}

.map-container {
  flex: 1 1 400px;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/*aktulizacja*/
.meta-row {
  display: flex;
  justify-content: flex-end;
  margin: 0.25rem 0 1rem;
}

.last-updated {
  font-size: 0.8rem;
  color: #555;
  margin-top: 0.25rem;
  text-align: right;
}

.kontakt-card {
  background-color: #ffffff;
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  padding: 1.0rem;
  flex: 1 1 calc(33.333% - 2rem); /* 3 w rzędzie z odstępem */;
  min-width: 280px;
  max-width: 340px;
  line-height: 1.5;
  box-sizing: border-box;
}

.kontakt-card.hidden {
  display: none !important;
}

/*kontakty*/
.kontakt-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.kontakt-card h3 {
  color: #20507F;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.kontakt-card ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

.kontakt-card p {
  font-size: 0.95rem;
  margin: 0.4rem 0;
}

.kontakt-card a {
  color: #20507F;
  text-decoration: underline;
}

.kontakt-card a:hover {
  color: #f5a623;
}

/* Opłaty Box */
.oplata-box {
  margin-top: 2rem;
  text-align: center;
  background-color: #DAE2EA;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  flex: 1 1 calc(33.333% - 2rem); /* 3 w rzędzie z odstępem */;
  min-width: 280px;
  max-width: 340px;
  line-height: 1.5;
  box-sizing: border-box;
  
}

.oplata-box h3 {
  color: #1e293b;
  margin-bottom: 1rem;
}

.oplata-box p {
  font-size: 0.95rem;
  margin: 0.4rem 0;
}

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

  .kontakt-card {
    width: 90%;
    max-width: 100%;
    min-width: auto;
    padding: 1rem;
  }

  .oplata-box {
    width: 90%;
    max-width: 100%;
    min-width: auto;
    margin: 1rem auto 2rem auto;
  }

  .building-select-box {
    padding: 0 1rem;
    margin-top: 1rem;
    width: 100%;
    box-sizing: border-box;
  }

  #building-select {
    width: 100%;
    font-size: 1rem;
  }

  .kontakt-page .section-title {
    padding: 0 1rem;
    text-align: center;
  }
} 
 
 
 
  
.building-select-box {
  margin-bottom: 0.5rem;
  text-align: center;
}

.building-select-box select {
  padding: 0.2rem 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.download-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1000px;
  margin: 2rem auto;
}

.download-item {
  flex: 1 1 300px;
  background-color: #ffffff;
  border: 1px solid #d0d5dc;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  text-align: left;
}

.download-item h3 {
  font-size: 1.1rem;
  color: #20507F;
  margin-bottom: 0.5rem;
}

.download-item p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.download-item a.button-primary {
  font-size: 0.95rem;
  text-decoration: none;
  background-color: #f5a623;
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 5px;
  display: inline-block;
  transition: background 0.3s ease;
}

.download-item a.button-primary:hover {
  background-color: #d1871d;
}

/* Czerwone wyróżnienie */
.alert-dot {
  position: absolute;
  top: 8px;
  left: -10px;
  height: 10px;
  width: 10px;
  background-color: #d1871d;
  border-radius: 50%;
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.highlighted {
  border: 2px solid #d1871d;
  background-color: #FFF0CD;
  font-weight: bold;
  position: relative;
  cursor: pointer;
}

.building-list li.highlighted {
  border: 2px solid #d1871d !important;
  background-color: #FFF0CD !important;
  font-weight: bold;
  position: relative;
  cursor: pointer;
}

.building-list li.highlighted .alert-dot {
  position: absolute;
  top: 6px;
  right: 6px;
  height: 10px;
  width: 10px;
  background-color: #d1871d;
  border-radius: 50%;
  animation: blink 1s infinite;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-content {
  background: white;
  padding: 20px 30px;
  border-radius: 10px;
  max-width: 90%;
  width: 500px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  position: relative;
}

.close-btn {
  position: absolute;
  right: 25px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}