:root {
  --green: #2E8B57;
  --light: #f5f5f5;
  --dark: #333;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.hero {
  background: linear-gradient(rgba(0,0,0,.5), rgba(0,0,0,.5)),
  url("../img/tlo.jpg")
  center / cover no-repeat;
  color: white;
  text-align: center;
  padding: 90px 20px;
}

.hero h1 {
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.btn {
  background: var(--green);
  color: white;
  padding: 14px 28px;
  border-radius: 30px;
  text-decoration: none;
  display: inline-block;
}

section {
  max-width: 1000px;
  margin: auto;
  padding: 60px 20px;
}

h2 {
  text-align: center;
  color: var(--green);
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 30px;
}

.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

/* About section */
.about-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.about-image {
  width: 100%;
}

.about-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.about-text {
  text-align: justify;
}

.about-text p {
  margin-bottom: 15px;
  line-height: 1.7;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: center;
  }
  
  .about-image {
    width: 50%;
    flex-shrink: 0;
  }
  
  .about-text {
    width: 50%;
  }
}

.service {
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.service::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
  z-index: 1;
  transition: background .2s;
}

.service h3,
.service p {
  position: relative;
  z-index: 2;
  color: white;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}

.service:hover::before {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.2) 100%);
}

/* MODAL */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#modal {
  background: white;
  max-width: 500px;
  width: 90%;
  padding: 30px;
  border-radius: 12px;
  position: relative;
}

#modal h3 {
  color: var(--green);
  margin-bottom: 15px;
}

#modal-close {
  position: absolute;
  top: 12px;
  right: 15px;
  font-size: 26px;
  cursor: pointer;
}

footer {
  background: #222;
  color: #aaa;
  text-align: center;
  padding: 25px;
}

.prep-list {
  list-style: inside disc; /* klasyczne kropki wewnątrz boxa */
  padding-left: 0;         /* usuwa domyślne wcięcie */
  margin-left: 0;          /* dodatkowe wyrównanie do lewej */
  line-height: 1.8;
  color: var(--dark);
  text-align: left;        /* wymusza wyrównanie do lewej */
}

.prep-list li {
  margin-bottom: 10px;
  font-size: 1rem;
}

/* Marker w kolorze brandu */
.prep-list li::marker {
  color: var(--green);
  font-weight: bold;
}

.equipment-list {
  list-style: inside disc;
  padding-left: 0;
  margin-left: 0;
  line-height: 1.8;
  color: var(--dark);
  text-align: left;
}

.equipment-list li {
  margin-bottom: 8px;
  font-size: 1rem;
}

.equipment-list li::marker {
  color: var(--green);
  font-weight: bold;
}

.card.center p {
  text-align: justify;
}

#modal p {
  text-align: justify;
  line-height: 1.6; /* dla lepszej czytelności */
}