:root {
  --anthracite: #222326;
  --white: #fff;
  --light-gray: #f5f5f5;
  --overlay: rgba(0,0,0,0.5);
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', Arial, Helvetica, sans-serif;
  margin: 0;
  background: var(--white);
  color: var(--anthracite);
  min-width: 320px;
}

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  width: 100%;
  height: 60px;
  background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  z-index: 999;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.navbar_logo img {
  width: 60px; 
  height: 60px;
  object-fit: contain;
  display: block;
  border-radius: 1px;
}

.company-name {
  flex: 1;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.hamburger {
  width: 34px; height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
}
.hamburger span {
  height: 3px; width: 100%;
  background: var(--anthracite);
  margin: 4px 0;
  border-radius: 2px;
  transition: all var(--transition);
}

.dropdown-menu {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  z-index: 1001;
}
.dropdown-menu.open {
  max-height: 300px;
  border-bottom: 1px solid #eee;
}
.dropdown-link {
  color: var(--anthracite);
  text-decoration: none;
  padding: 18px 0;
  font-size: 1.2rem;
  text-align: center;
  border-bottom: 1px solid #eee;
  transition: background 0.2s;
}
.dropdown-link:last-child {
  border-bottom: none;
}
.dropdown-link:hover {
  background: #ececec;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-img {
  position: absolute;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  top: 0; left: 0;
}
.hero-overlay {
  position: absolute;
  background: var(--overlay);
  width: 100vw;
  height: 100vh;
  top: 0; left: 0;
  z-index: 1;
}
.hero-content {
  z-index: 2;
  position: relative;
  color: var(--white);
  text-align: center;
  width: 100vw;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 18px;
  letter-spacing: 3px;
}
.hero-content h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  letter-spacing: 5px;
}

.about-section {
  display: flex;
  flex-wrap: wrap;
  margin: 0 auto;
  max-width: 1100px;
  padding: 80px 20px 60px;
  align-items: center;
}
.about-img {
  flex: 1 1 280px;
  max-width: 420px;
  min-width: 220px;
  padding: 0 40px 0 0;
}
.about-img img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(34,35,38,0.09);
}
.about-text {
  flex: 2 1 320px;
  min-width: 220px;
  text-align: center; /* Wyśrodkowanie tekstu */
  display: flex;
  flex-direction: column;
  align-items: center; /* Wyśrodkowanie w pionie elementów wewnętrznych */
  justify-content: center;
}
.about-text h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}
.about-text p {
  margin-bottom: 24px;
}
.button {
  background: var(--anthracite);
  color: var(--white);
  border: none;
  padding: 14px 34px;
  font-size: 1rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.button:hover {
  background: #44454a;
}

.projects-section {
  padding: 80px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.projects-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 36px;
}
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
}
.project-thumb {
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 1px 6px rgba(34,35,38,0.06);
  transition: transform 0.17s;
}
.project-thumb:hover {
  transform: scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0; top: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.84);
  align-items: flex-start;
  justify-content: center;
  padding-top: 60px;
}
.lightbox.open {
  display: flex;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(34,35,38,0.19);
}
.close-lightbox {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 2rem;
  color: var(--white);
  background: rgba(30,30,30,0.7);
  border-radius: 50%;
  width: 44px; height: 44px;
  text-align: center;
  line-height: 44px;
  cursor: pointer;
  z-index: 2010;
  transition: background 0.2s;
}
.close-lightbox:hover {
  background: rgba(30,30,30,1);
}

.offers-section {
  padding: 80px 20px 60px;
  max-width: 1200px;
  margin: 0 auto;
}
.offers-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 36px;
}
.
/* Make offers gallery sit above the details (stacked layout on all screens) */
.offers-content {
  display: flex;
  flex-direction: column; /* stack vertically: gallery first, then details */
  gap: 24px; /* odstęp między sekcjami */
  align-items: stretch;
}

.offers-gallery,
.offers-details {
  flex: 0 0 100%; /* każdy zajmuje pełną szerokość w kolumnie */
  max-width: 100%;
  min-width: 0;
  padding: 0;
}

/* Optional: daj trochę odstępu pod galerią */
.offers-gallery {
  margin-bottom: 8px;
}


.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: #e9e9e9;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.slider img,
.offer-slider-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--anthracite);
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.85;
  z-index: 10;
}
.slider-btn.left { left: 8px; }
.slider-btn.right { right: 8px; }
.slider-btn:hover { opacity: 1; }

.thumbnails,
#offer-thumbnails {
   display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 10px 0 14px; /* większy odstęp od slidera */
  scrollbar-width: thin;
  scrollbar-color: #bbb #f5f5f5;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
  background: #fff; /* opcjonalnie: tło, żeby pasek był wyraźny */
  box-sizing: border-box;
}

.offers-gallery {
  overflow: visible; /* pozwala w pełni pokazać pasek miniaturek */
}

.lightbox .close-lightbox {
  right: 24px !important;
  left: unset !important;
  transform: none !important;
}
.thumbnail,
.offer-thumbnail {
  width: 70px;
  height: 50px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
  margin-bottom: 2px;
  flex: 0 0 auto;
}
.thumbnail.active,
.offer-thumbnail.active {
  border: 2px solid var(--anthracite);
}
.offers-details {
  flex: 1 1 260px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 10px;
}
.offers-details h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
}
.offers-details p {
  font-size: 1rem;
  opacity: 0.9;
}

#offer-lightbox .close-lightbox {
  left: 50%;
  transform: translateX(-50%);
  top: 24px;
}

.contact-section {
  padding: 80px 20px 60px;
  background: var(--light-gray);
  max-width: 800px;
  margin: 0 auto;
}
.contact-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 26px;
}
.contact-info {
  text-align: center;
  font-size: 1.1rem;
}

.footer {
  width: 100%;
  padding: 22px 0;
  background: var(--anthracite);
  color: var(--white);
  text-align: center;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-top: 44px;
}

@media (max-width: 900px) {
  .about-section, .offers-content {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }
  .about-img, .about-text, .offers-gallery, .offers-details {
    max-width: 100%;
    padding: 0;
  }
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 650px) {
  .nav-container { padding: 0 8px; }
  .company-name { font-size: 1rem; }
  .about-section, .offers-content, .projects-section, .offers-section, .contact-section {
    padding: 40px 6px 30px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
  }
  .about-img img, .offers-gallery .slider img {
    border-radius: 7px;
  }
  .footer { font-size: 0.93rem; }
}


/* Add or update these rules: */

.thumbnails, #offer-thumbnails {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 0;
  scrollbar-width: thin;
  scrollbar-color: #bbb #f5f5f5;
  width: 100%;
  justify-content: center;
  white-space: nowrap;
}

.offer-thumbnail {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border 0.2s;
  margin-bottom: 2px;
  flex: 0 0 auto;
}

/* Lightbox close button on the left */
.lightbox .close-lightbox {
  left: 24px !important;
  right: unset !important;
  top: 24px;
  transform: none !important;
}

/* Lightbox navigation arrows */
.lightbox .slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--anthracite);
  color: var(--white);
  border: none;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  border-radius: 50%;
  opacity: 0.85;
  z-index: 2011;
}
.lightbox .slider-btn.left { left: 60px; }
.lightbox .slider-btn.right { right: 60px; }
.lightbox .slider-btn:hover { opacity: 1; }