* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #222;
  background: #f3f3f3;
  line-height: 1.6;
}

.hero {
  min-height: 480px;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("img/budynek.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: white;
}

.hero-box {
  max-width: 800px;
}

.hero h1 {
  font-size: 60px;
  margin: 0 0 10px;
}

.hero p {
  font-size: 26px;
  margin: 0 0 30px;
}

.button {
  display: inline-block;
  background: white;
  color: #111;
  padding: 14px 28px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.button:hover {
  background: #e8e8e8;
}

.menu {
  background: #222;
  text-align: center;
  padding: 14px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.menu a {
  color: white;
  text-decoration: none;
  margin: 0 16px;
  font-weight: bold;
}

.menu a:hover {
  text-decoration: underline;
}

main {
  max-width: 1150px;
  margin: 0 auto;
}

section {
  background: white;
  margin: 22px 0;
  padding: 45px 25px;
}

h2 {
  font-size: 34px;
  margin-top: 0;
}

.image-wide {
  padding: 0;
}

.image-wide img {
  width: 100%;
  display: block;
  max-height: 520px;
  object-fit: cover;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  border: 1px solid #ddd;
  background: #fafafa;
  border-radius: 8px;
  overflow: hidden;
}

.card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  display: block;
}

.card-content {
  padding: 18px;
}

.card h3 {
  margin-top: 0;
}

.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
}

.two-columns img {
  width: 100%;
  border-radius: 8px;
}

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

.gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 6px;
}

.contact-box {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
}

a {
  color: #0b5cad;
}

footer {
  text-align: center;
  background: #222;
  color: white;
  padding: 25px;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .cards,
  .two-columns,
  .contact-box {
    grid-template-columns: 1fr;
  }

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

  .hero h1 {
    font-size: 44px;
  }

  .hero p {
    font-size: 21px;
  }
}

@media (max-width: 600px) {
  .menu a {
    display: block;
    margin: 8px 0;
  }

  section {
    padding: 30px 18px;
  }

  .hero {
    min-height: 360px;
  }

  .hero h1 {
    font-size: 36px;
  }

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