/* ===== RESET ===== */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f7f9fc;
  color: #333;
  line-height: 1.6;
}

/* ===== CONTAINER ===== */

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* ===== HEADER ZE ZDJĘCIEM ===== */

header {
  background: url("header.png") center/cover no-repeat;
  min-height: 85vh;
  display: flex;
  align-items: center;
  color: #fff;
}

.overlay {
  background: rgba(0,0,0,0.55);
  width: 100%;
  padding: 20px 0 40px 0;
}

/* ===== MENU ===== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

nav a:hover {
  opacity: 0.8;
}

/* ===== HERO ===== */

.hero {
  text-align: center;
  padding: 60px 10px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  margin-bottom: 15px;
}

.hero p {
  font-size: clamp(16px, 2vw, 20px);
}

/* ===== SEKCJE ===== */

section {
  padding: 50px 0;   /* ZMNIEJSZONE ODSTĘPY */
}

.section-title {
  text-align: center;
  margin-bottom: 30px;  /* Mniejszy odstęp */
}

.section-title h2 {
  font-size: 28px;
}

/* ===== KARTY ===== */

.about,
.news,
.contact,
.cennik {
  background: #fff;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

/* ===== OFERTA ===== */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-box {
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 15px rgba(0,0,0,0.06);
  transition: 0.3s;
}

.service-box:hover {
  transform: translateY(-5px);
}

.service-box i {
  font-size: 38px;
  color: #2a5298;
  margin-bottom: 12px;
}

/* ===== CENNIK ===== */

.cennik table {
  width: 100%;
  border-collapse: collapse;
}

.cennik th {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
  padding: 14px;
  text-align: left;
}

.cennik td {
  padding: 14px;
  border-bottom: 1px solid #eee;
}

.cennik tr:hover {
  background: #f0f5ff;
}

/* ===== STOPKA ===== */

footer {
  background: #1e3c72;
  color: #fff;
  text-align: center;
  padding: 20px;
  margin-top: 20px;
}

/* ===== RESPONSYWNOŚĆ ===== */

@media (max-width: 900px) {

  nav {
    flex-direction: column;
    gap: 15px;
  }

  .hero {
    padding: 40px 10px;
  }

}

@media (max-width: 600px) {

  section {
    padding: 40px 0;
  }

  .about,
  .news,
  .contact,
  .cennik {
    padding: 20px;
  }

}
/* ===== RESPONSYWNY CENNIK ===== */

@media (max-width: 768px) {

  .cennik table,
  .cennik thead,
  .cennik tbody,
  .cennik th,
  .cennik td,
  .cennik tr {
    display: block;
    width: 100%;
  }

  .cennik thead {
    display: none;
  }

  .cennik tr {
    background: #fff;
    margin-bottom: 20px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  }

  .cennik td {
    border: none;
    padding: 8px 0;
  }

  .cennik td::before {
    content: attr(data-label);
    font-weight: 600;
    display: block;
    margin-bottom: 5px;
    color: #2a5298;
    font-size: 14px;
  }

}