/* Główne style dla podstrony o-firmie */

main {
  position: relative;
  margin: 0 auto;
  padding: 60px 20px;
  min-height: calc(100vh - 140px);
  background: transparent;
  z-index: 1;
  overflow: visible;
}

.main-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: url('../images/tlo.png') no-repeat center center;
  background-size: cover;
  z-index: 0;
  pointer-events: none;
}

.hero {
  position: relative;
  background-image: url('../images/ofirmie.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 45vh;
  min-height: 250px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-bottom: 20px;
  z-index: 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero h1 {
  position: relative;
  z-index: 2;
  color: white;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.2rem);
  font-weight: 800;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.05em;
  margin: 0;
}

/* Treść sekcji o firmie */

.about-company {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  padding: 40px 30px;
  border-radius: 8px;
  color: #12283d;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.7;
  animation: fadeInUp 0.7s ease forwards;
  opacity: 0;
  transform: translateY(30px);
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-company p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  color: #333;
}

.about-company ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-bottom: 20px;
}

.about-company ul li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  color: #4d4c4c;
  line-height: 1.6;
}

.highlight {
  font-weight: 700;
  color: #12283d;
  cursor: default;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================== RESPONSYWNOŚĆ ===================== */

@media (max-width: 1024px) {
  .about-company {
    padding: 35px 25px;
  }

  .hero {
    height: 38vh;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  main {
    padding: 30px 15px;
  }

  .about-company {
    padding: 25px 15px;
    font-size: 0.95rem;
  }

  .about-company p,
  .about-company ul li {
    font-size: 0.95rem;
  }

  .hero {
    height: 35vh;
    min-height: 200px;
  }

  .hero h1 {
    font-size: 1.8rem;
    padding: 0 10px;
  }
}

@media (max-width: 480px) {
  .about-company {
    padding: 20px 10px;
    font-size: 0.9rem;
  }

  .about-company p,
  .about-company ul li {
    font-size: 0.9rem;
  }

  .hero {
    height: 30vh;
    min-height: 160px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .main-bg {
    background-position: top center;
    background-size: cover;
  }
}