/* ===== GLOBALNE ===== */
body {
  margin: 0;
  padding: 0;
  background: transparent;
  font-family: 'Inter', sans-serif;
  color: #222;
}

html, body {
  height: 100%;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px;
}

.container2 {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  margin-top: -70px;
}

/* ===== HEADER ===== */
header {
  height: 100px;
  padding: 0;
  background: rgba(255, 255, 255, 0.7);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 10;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #000;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.nav-container {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.logo {
  font-weight: 600;
  font-size: 1.5em;
}

.logo img {
  height: 60px;
  vertical-align: middle;
}

.nav {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  gap: 20px;
}

.nav li a {
  text-decoration: none;
  color: #243352;
  font-size: 16px;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav li a:hover {
  color: #0077cc;
}

/* ===== HERO / SLIDER ===== */
.slider {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
}

.slide {
  position: absolute;
  width: 100%;
  height: 800px;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

.slide img {
  width: 100%;
  height: 800px;
  object-fit: cover;
}

.slide-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5f5;
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

.slide-text2 {
  position: absolute;
  top: 56%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #f5f5f5;
  font-size: 18px;
  text-align: center;
  text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.9);
  z-index: 2;
}

/* ===== PRZYCISKI SLIDER ===== */
.slider-buttons {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 20px;
  z-index: 3;
}

.slider-button {
  background-color: #243352;
  color: #fff;
  padding: 15px 30px;
  font-size: 18px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.slider-button.secondary {
  background-color: #0077cc;
}

.slider-button:hover {
  background-color: #0077cc;
  transform: scale(1.05);
}

.slider-button.secondary:hover {
  background-color: #005fa3;
}

/* ===== INNE SEKCJE ===== */
.section {
  padding: 60px 20px;
  margin-top: 50px;
}

.section.alt {
  background-color: #f9f9f9;
}

.section.compact {
  padding-top: 10px;
}

h2 {
  margin-bottom: 20px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  font-size: 1em;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

form button {
  padding: 10px 20px;
  background-color: #0077cc;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

form button:hover {
  background-color: #005fa3;
}

.page-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1;
}

footer {
  background-color: #243352;
  color: white;
  text-align: center;
  padding: 10px;
}

/* ===== INNE SEKCJE ===== */
.gap-section {
  background-color: #F5F5F5;
  height: 10px;
}

.zalety {
  background-color: #F5F5F5;
  color: #243352;
  padding: 60px 20px;
}

.etapy-realizacji {
  background-color: #243352;
  color: #F5F5F5;
  padding: 60px 20px;
  text-align: center;
}

.etapy-realizacji h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.etapy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.etap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.etap img {
  width: 100px !important;
  display: block !important;
  margin: 0 auto 5px auto !important;
  padding: 0 !important;
  float: none !important;
}

.etap h3 {
  font-size: 18px;
  font-weight: 600;
  color: #F5F5F5;
  margin-top: 1px;
}

.etap p {
  font-size: 15px;
  line-height: 1.6;
  color: #F5F5F5;
  margin-top: -10px;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  z-index: 9999;
}

.hamburger span {
  height: 3px;
  background: #243352;
  border-radius: 4px;
  transition: 0.3s;
  display: block;
  margin: 0 auto; /* wyśrodkowanie */
  transform-origin: center;
}

/* różne szerokości w normalnym stanie */
.hamburger span:nth-child(1) { width: 30px; }
.hamburger span:nth-child(2) { width: 24px; }
.hamburger span:nth-child(3) { width: 18px; }

/* ===== AKTYWNY HAMBURGER (X) ===== */
.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
  width: 30px; /* przywrócenie maksymalnej szerokości do X */
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
  width: 30px; /* przywrócenie maksymalnej szerokości do X */
}


/* ===== MOBILNE MENU ===== */
.mobile-menu {
  background: #243352;
  backdrop-filter: blur(12px);
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  z-index: 9998;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.mobile-menu ul {
  list-style: none;
  padding: 20px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.mobile-menu a {
  font-size: 18px;
  font-weight: 600;
  color: #F5F5F5;
  text-decoration: none;
  text-align: center;
}

.mobile-menu.active {
  max-height: 500px;
}

/* ===== UKRYJ MENU DESKTOP NA MOBILE ===== */
@media (max-width: 768px) {
  .nav-menu {
    display: none !important;
  }

  .hamburger {
    display: flex !important;
  }

  header {
    position: relative;
    height: auto;
    background: #F5F5F5;
    border-bottom: 1px solid #000;
    z-index: 9999;
  }

  .slider, .slide, .slide img {
    height: 400px;
  }

  .slide-text {
    font-size: 24px;
  }

  .slide-text2 {
    font-size: 14px;
  }

  .section,
  .zalety,
  .etapy-realizacji {
    padding: 30px 10px;
    margin-top: 30px;
  }

  .etapy-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* PRZYCISKI POD SLIDEREM */
  .slider-buttons {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    margin: 20px auto 0 auto;
    flex-direction: column;
    gap: 10px;
    width: fit-content;
    justify-content: center;
    background: #F5F5F5;
    padding: 10px;
    border-radius: 6px;
  }

  .slider-button {
    padding: 12px 20px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .slider, .slide, .slide img {
    height: 250px;
  }

  .slide-text {
    font-size: 18px;
  }

  .slide-text2 {
    font-size: 12px;
  }

  .etap img {
    width: 60px !important;
  }

  .etapy-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 769px) {
  .hamburger {
    display: none !important;
  }
  .mobile-menu {
    display: none !important;
  }
}
/* Ukrycie gap-section na ekranach mobilnych */
@media (max-width: 768px) {
.gap-section {
  background-color: #F5F5F5;
  height: 5px;
}
}
.slide-text-highlight {
  color: #243352; /* np. złoty kolor, możesz zmienić na dowolny */
}
@media (max-width: 768px) {
  .container2 {
    margin-top: 0; /* usuwa przerwę na telefonie */
    padding: 20px 10px; /* opcjonalnie dopasowanie paddingu */
  }
}
@media (max-width: 768px) {
  /* Cała sekcja slidera ma być jasnoszara */
  .slider {
    background: #F5F5F5 !important;
  }

  .slide,
  .slide img {
    background: #F5F5F5 !important;
  }

  /* Przyciski zostają szare ale bez zaokrąglonej wyspy */
  .slider-buttons {
    background: #F5F5F5 !important;
    padding: 10px 0;
    border-radius: 0; /* opcjonalnie – aby były naturalnie zlane z tłem */
    margin-top: 0;
  }
}
/* HEADER NA PODSTRONACH */
.inner-page header {
  background: #F5F5F5 !important;
  position: absolute !important;
}
.project {
  margin-bottom: 50px;
}

.project h2 {
  font-size: 24px;
  margin-bottom: 10px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.gallery img {
  width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 5px;
  transition: transform 0.2s;
}

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

.lightbox {
  display: none;
  position: fixed;
  z-index: 999;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90%;
}

.caption {
  color: white;
  margin-top: 10px;
  font-size: 18px;
}

.close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  cursor: pointer;
}

.prev, .next {
  position: absolute;
  top: 50%;
  color: white;
  font-size: 50px;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}

.prev { left: 20px; }
.next { right: 20px; }

@media (max-width: 768px) {
  .etapy-realizacji {
    margin-top: 0 !important;
    padding-top: 20px; /* opcjonalnie dopasuj padding */
  }
}