CSS* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  line-height: 1.6;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===================== HEADER ===================== */
.header {
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
}

.logo {
  font-size: 2.1rem;
  font-weight: 700;
  color: #1e40af;
  text-decoration: none;
}

.logo span {
  color: #3b82f6;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
  transition: color 0.25s;
}

.nav-menu a:hover {
  color: #1e40af;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background: #1e293b;
  transition: all 0.3s;
}

@media (max-width: 880px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 24px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    transition: transform 0.35s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
  .hamburger.active span:nth-child(2) { opacity: 0; }
  .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }
}

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  color: white;
  text-align: center;
  padding: 10rem 0 7rem;
}

.hero h1 {
  font-size: 3.4rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.45rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}

/* ===================== BUTTON ===================== */
.btn {
  display: inline-block;
  background: white;
  color: #1e40af;
  padding: 1rem 2.4rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
  transition: all 0.3s;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* ===================== SEKCJE ===================== */
.section {
  padding: 6rem 0;
}

h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 3rem;
  color: #1e40af;
}

/* Usługi */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.07);
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card h3 {
  padding: 1.4rem 1.6rem 0.6rem;
  color: #1e40af;
  font-size: 1.55rem;
}

.card p {
  padding: 0 1.6rem 1.8rem;
}

/* Realizacje – wszystkie zdjęcia identyczne */
.realizations {
  background: #f1f5f9;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 1.6rem;
}

.gallery-item {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  aspect-ratio: 4 / 3; /* stała proporcja */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.45s;
}

.gallery-item:hover img {
  transform: scale(1.06);
}

/* Kontakt + formularz */
.contact {
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.contact-info p {
  font-size: 1.25rem;
  margin: 1.2rem 0;
}

.phone a {
  color: #1e40af;
  font-size: 2.2rem;
  font-weight: 700;
  text-decoration: none;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form .btn {
  background: #1e40af;
  color: white;
  border: none;
  cursor: pointer;
  padding: 1rem;
  border-radius: 50px;
  font-size: 1.1rem;
}

.contact-form .btn:hover {
  background: #1e3a8a;
}

/* Footer */
footer {
  background: #1e293b;
  color: #cbd5e1;
  text-align: center;
  padding: 3rem 0 2rem;
  font-size: 0.95rem;
}

/* Mobile */
@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 5rem;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .nav-menu {
    display: none;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-item img {
    height: 260px;
  }
}