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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.7;
}

img {
  width: 100%;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  text-align: center;
}

.section {
  padding: 100px 0;
}

.dark-section {
  background: #111;
  color: white;
}

h1, h2 {
  font-weight: 700;
  margin-bottom: 30px;
  color: #fff;
}

.btn.mb {
  margin-bottom: 40px;
}

h1 {
  font-size: 3rem;
}

h2 {
  position: relative;
  display: inline-block;
  font-size: 2.5rem;
  margin-bottom: 50px;
}

/* Ozdobna kreska pod nagłówkiem */
h2::after {
    content: "";
    display: block;
    width: 100%;
    height: 4px;
    background: #8B0000;
    margin: 15px auto 0;
    border-radius: 20px;
}

/* h2::after {
  content: "";
  width: 60%;
  height: 3px;
  background: #8B0000;
  position: absolute;
  left: 0;
  bottom: -10px;
} */

p {
  margin-bottom: 20px;
  font-size: 1rem;
}

/* HEADER */

header {
  position: fixed;
  width: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
}

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

.logo {
  color: white;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 700;
}

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

nav a {
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

nav a:hover {
  color: #8B0000;
}

.hamburger {
  display: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.fa-check {
  margin-right: 0px;
  margin-left: 12px;
}

/* HERO */

.hero {
  height: 100vh;
  background: url("images/hero_1920.jpg") center/cover no-repeat;
  position: relative;

  display: flex;
  justify-content: center;
  align-items: center;
  filter: saturate(0.8);
}

.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
}

.hero-content {
  position: relative;
  color: white;
  text-align: center;
  z-index: 2;
}

.hero-content p {
  margin-bottom: 30px;
  padding: 10px;
}

.btn {
  background: #8B0000;
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-secondary {
  margin: 20px;
  background: #444;
  color: white;
  padding: 15px 35px;
  text-decoration: none;
  display: inline-block;
  transition: 0.3s;
}

.btn-secondary:hover {
  background: #333;
}

.btn:hover {
  background: #5f0000;
}

/* O nas */
#about {
    padding: 80px 20px;
    background: #f8f9fb;
}

#about .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

#about h2 {
  color: #222;
}



/* Kontener kart */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

/* Karta */
.adv-box {
    background: white;
    padding: 35px 25px;
    border-radius: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.adv-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Ikony */
.adv-box i {
    font-size: 3rem;
    color: #8B0000;
    margin-bottom: 20px;
}

.adv-box h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
    color: #222;
}

.adv-box p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}


/* Wspolpraca */
.workflow {
  padding: 80px 20px;
  background-color: #444;
}

.workflow h2 {
  text-align: center;
  /* font-size: 32px; */
  margin-bottom: 50px;
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  border: 1px solid #e6e6e6;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
  transition: 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
}

.number {
  display: inline-block;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #8B0000;
  color: #fff;
  text-align: center;
  line-height: 34px;
  font-size: 14px;
  margin-bottom: 12px;
}

.step h3 {
  margin: 10px 0;
  font-size: 18px;
}

.step p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 900px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .steps {
    grid-template-columns: 1fr;
  }

  .workflow h2 {
    font-size: 26px;
  }
}



/* TABS */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.tab-btn {
  padding: 14px 24px;
  border: none;
  background: #222;
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

.tab-btn.active {
  background: #8B0000;
}

.tab-content {
  display: none;
  max-width: 700px;
}

.tab-content .content {
  text-align: left;
}

.tab-content.active {
  display: block;
}

.services-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

/* lewa strona */
.services-text {
  flex: 1;
}

/* prawa strona (zdjęcia) */
.services-images {
  flex: 1;
  position: sticky;
  top: 100px;
}

.img-box {
  display: none;
  flex-direction: column;
  gap: 15px;
}

.img-box.active {
  display: flex;
}

.img-box img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

/* TABS zostają */
.tab-content {
  display: none;
  max-width: 700px;
}

.tab-content.active {
  display: block;
}



/* GALLERY */

#gallery h2 {
  color: #222;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.gallery-item {
  height: 300px;
  object-fit: cover;
  cursor: pointer;
  transition: 0.3s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

.grid-a {
    text-align: center;
    padding-top: 40px;
    font-size: 25px;
}

/* LIGHTBOX */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);

  display: none;
  justify-content: center;
  align-items: center;

  z-index: 2000;
}

.lightbox.active {
  display: flex;
}

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

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

.contact-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center; /* Centers items vertically. Use 'flex-start' if you want them aligned to the top */
  justify-content: space-between;
  gap: 30px; /* Adds space between the text and the photo */
}


.contact-box {
  flex: 1; /* Takes up equal space */
  min-width: 250px; /* Ensures it doesn't get too squeezed on smaller screens */
}

.contact-photo {
  flex: 1; /* Takes up equal space */
  min-width: 250px; /* Ensures it drops to the next line on mobile */
  display: flex;
  flex-direction: column;
  align-items: center; 
}

/* .contact-photo h3 {
    text-align: center;
} */

.contact-photo img {
    width: 300px;
    height: 300px;
}

.contact-photo h3,
.contact-photo img {
    margin: 10px 0;
}

.contact-photo img {
  max-width: 100%;
  height: auto;
  border-radius: 10px; /* Optional: rounds the corners of the photo */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Optional: adds a subtle shadow */
}

/* Sticky phone */

.floating-phone {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.floating-phone a {
  width: 70px;
  height: 70px;
  background: #8B0000;
  color: #fff;
  position: relative;
  display: grid;
  place-items: center; /* 🔥 lepsze niż flex w tym przypadku */

  border-radius: 50%;
  text-decoration: none;

  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);

  line-height: 0;
  font-size: 0;
  transition: 0.2s;
}

.floating-phone i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 30px;
  line-height: 1;
  display: block;
}

.floating-phone a:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.floating-phone a {
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0.5);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(229, 57, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(229, 57, 53, 0);
  }
}

/* FOOTER */

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  background: black;
  color: white;
  /* text-align: center; */
  padding: 25px;
}

footer p {
    margin: 0;
}

.contact-box a {
    margin: 0;
    text-decoration: none;
    color: #fff;
}

.contact-box p {
    font-size: 20px;
}

.fa-solid {
    margin-right: 10px;
}

/* loader na środku */
#loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  font-size: 20px;
  z-index: 9999;
}

/* ukryta strona */
.hidden {
  display: none;
}



/* MOBILE */
@media (max-width: 900px) {

  .services-layout {
    flex-direction: column;
  }

  .services-images {
    position: static;
    margin-top: 30px;
  }

}


/* RESPONSIVE */

@media (max-width: 768px) {
  .contact-photo {
    justify-content: flex-start; /* Aligns image back to the left/center on mobile */
  }

  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.8rem;
  }

  nav {
    position: absolute;
    top: 80px;
    right: 0;
    background: black;
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 20px;
  }

  .hamburger {
    display: block;
  }

  .hero {
    background: url("images/hero_640.jpg") center/cover no-repeat;
  }

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

  .grid-a {
    display: none;
  }

  #about {
        padding: 60px 15px;
    }

    #about h2 {
        font-size: 2rem;
    }

    .adv-box {
        padding: 30px 20px;
    }

  .floating-phone a {
    width: 50px;
    height: 50px;
  }

  .floating-phone i {
    font-size: 22px;
  }

}

/* Telefon */
@media (max-width: 480px) {
    #about h2 {
        font-size: 1.8rem;
    }

    .adv-box i {
        font-size: 2.5rem;
    }

    .adv-box h3 {
        font-size: 1.2rem;
    }

    .adv-box p {
        font-size: 0.9rem;
    }
}