* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
}

/* ======== BANNER ======== */
.banner {
  height: 100vh;
  /* możesz dać tu kolor awaryjny, ale nie jest konieczny */
  /* background: #000;  <-- możesz usunąć albo zostawić, nie przeszkadza */
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  overflow: hidden;
}


/* DWA PRZENIKAJĄCE SIĘ TŁA W BANNERZE */
.banner::before,
.banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: -1; /* tła pod zawartością bannera */
}

/* Pierwsze tło */
.banner::before {
  background-image: url('tlo1.jpg');
  animation: bannerBg1 16s infinite;
}

/* Drugie tło */
.banner::after {
  background-image: url('tlo2.jpg');
  animation: bannerBg2 16s infinite;
}

/* Animacja dla pierwszego tła */
@keyframes bannerBg1 {
  0%   { opacity: 1; }
  40%  { opacity: 1; }
  50%  { opacity: 0; }
  90%  { opacity: 0; }
  100% { opacity: 1; }
}

/* Animacja dla drugiego tła */
@keyframes bannerBg2 {
  0%   { opacity: 0; }
  40%  { opacity: 0; }
  50%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { opacity: 0; }
}


.banner-box {
  background: rgba(255,255,255, 0.8);
  color: #fff;
  padding: 40px;
  width: 500px;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  flex-direction: column;
  display: flex;
  opacity: 0;
  transform: translateX(500px);
  animation: bannerFadeIn 1s ease-out forwards;
}

@keyframes bannerFadeIn {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.banner-box h1 {
  font-size: 3rem;
  margin-bottom: 15px;
  color: #fff;
}

.banner-box p {
  font-size: 1.3rem;
  color: #29985f;
}

.logo {
  width: 100%;
  height: auto;
}

/* ======== PLUSY ======== */
.plusy {
  margin-top: 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  gap: 15px;
}

.plus-1 {
  display: flex;
  align-items: center;
  justify-content: start;
  transition: 0.3s;
}

.plus-2 {
  display: flex;
  align-items: center;
  justify-content: start;
  transition: 0.3s;
}

.plus-3 {
  display: flex;
  align-items: center;
  justify-content: start;
  transition: 0.3s;
}

.plus-4 {
  display: flex;
  align-items: center;
  justify-content: start;
  transition: 0.3s;
}

.glowne {
  transition: 0.3s;
}

.glowne:hover {
  transform: scale(1.05);
}

.plus-1:hover {
  transform: scale(1.05);
}

.plus-2:hover {
  transform: scale(1.05);
}

.plus-3:hover {
  transform: scale(1.05);
}

.plus-4:hover {
  transform: scale(1.05);
}

.plusimgbox-1 {
  border: 2px solid black;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  display: flex;
}

.plusimgbox-2 {
  border: 2px solid black;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  display: flex;
}

.plusimgbox-3 {
  border: 2px solid black;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  display: flex;
}

.plusimgbox-4 {
  border: 2px solid black;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  display: flex;
}


/* na hover dowolnego kafelka */
.plusy [class^="plus-"]:hover img {
  filter: brightness(1) invert(0);
}

/* stan bazowy */
.plusy [class^="plus-"] img {
  padding: 10px;
  filter: brightness(0);
  width: 50px;
  height: 50px;
  transition: filter .25s ease; /* ładna animacja */
}

/* na hover dowolnego kafelka */
.plusy [class^="plus-"]:hover img {
  filter: brightness(1) invert(0);
}

.plus-1 h1 { font-size: 16px; font-weight: bold; color: #29985f; text-align: left; margin: 0 0 0 10px; } .plus-2 h1 { font-size: 16px; font-weight: bold; color: #29985f; text-align: left; margin: 0 0 0 10px; } .plus-3 h1 { font-size: 16px; font-weight: bold; color: #29985f; text-align: left; margin: 0 0 0 10px; } .plus-4 h1 { font-size: 16px; font-weight: bold; color: #29985f; text-align: left; margin: 0 0 0 10px; }

/* ======== SLIDER ======== */
.slider-section {
  position: relative;
  width: 100%;
  height: 90vh;
  overflow: hidden;
  background: #000;
  border-top: 2px solid white;
  border-bottom: 2px solid white;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.8s ease-in-out;
  height: 100%;
}

.slide {
  flex: 0 0 auto; /* ważne, żeby JS ustawił szerokość */
  height: 100%;
}

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

/* STRZAŁKI */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: #fff;
  border: none;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  transition: background 0.3s;
  z-index: 2;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 20px; }
.next { right: 20px; }

/* KROPKI */
.dots {
  position: absolute;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  transition: 0.3s;
}

.dot.active, .dot:hover {
  background: #fff;
}

/* RESPONSYWNOŚĆ */
@media (max-width:768px) {
  .slider-section { height: 60vh; }
  .prev, .next { font-size:18px; padding:10px 14px; }
}



/* ======== KONTAKT ======== */
.contact {
  padding: 40px 40px;
  background: #222;
  color: #fff;
  text-align: center;
}

.contact a {
  position: relative;
  color: inherit;
  text-decoration: none;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.contact a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.contact a:hover::after {
  width: 100%;
}

.contact h2 {
  margin-bottom: 20px;
  font-size: 2rem;
}

.contact p {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
}

.map-box {
  margin-top: 20px;
  border-radius: 8px;
  overflow: hidden;
}

.partnerzy {
  display: flex;
  background: white;
  align-items: center;
  justify-content: center;
  padding: 30px;
  flex-direction: column;
  position: relative;           /* potrzebne do pseudo-elementu */
  overflow: visible;            /* upewnia się, że trójkąt jest widoczny */
}

.partnerzy h1 { text-align: center; font-size: 24px; }
.partnerzy img { transition: 0.3s; }
.partnerzy img:hover { transform: scale(1.1); }

/* Trójkątny „ząb” nachodzący na dół sekcji */
.partnerzy::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -28px;                /* jak bardzo ma zachodzić na dół */
  height: 28px;                 /* wysokość trójkąta */
  background: white;
  /* rysujemy trójkąt skierowany w dół */
  clip-path: polygon(0 0, 50% 100%, 100% 0);
  pointer-events: none;
  display: block;
}
/* ======== RESPONSYWNOŚĆ ======== */
@media (max-width: 768px) {
  .banner-box {
    width: 90%;
  }

  .plus-1 h1 {
    font-size: 14px;
  }

  .plus-2 h1 {
    font-size: 14px;
  }

  .plus-3 h1 {
    font-size: 14px;
  }

  .plus-4 h1 {
    font-size: 14px;
  }
}

.hist {
  font-size: 18px;
  width: 90%;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: inline-block;
  text-align: center;
  font-weight: bold;
  padding: 0.5em 2em;
  border: 3px solid #454545;
  border-radius: 8px;
  position: relative;
  color: #FF0072;
  text-decoration: none;
  transition: 0.3s ease all;
  z-index: 1;
  margin-top: 40px;
  background: transparent;
  cursor: pointer;
}

.hist:before {
  transition: 0.5s all ease;
  position: absolute;
  top: 0;
  left: 50%;
  right: 50%;
  bottom: 0;
  opacity: 0;
  content: '';
  background-color: #454545;
  z-index: -1;
}

.hist:hover, .hist:focus {
  color: white;
}

.hist:hover:before, .hist:focus:before {
  transition: 0.5s all ease;
  left: 0;
  right: 0;
  opacity: 1;
}

.hist:active {
  transform: scale(0.9);
}

/* ======== MODAL USŁUG ======== */
.modal {
  display: none;                 /* ukryty domyślnie */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-content {
  background: #fff;
  color: #333;
  max-width: 600px;
  width: 100%;
  border-radius: 12px;
  padding: 25px 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.modal-content h2 {
  margin-bottom: 15px;
  font-size: 1.6rem;
  color: #29985f;
}

.modal-content ul {
  padding-left: 20px;
}

.modal-content li {
  margin-bottom: 6px;
}

.modal-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 24px;
  cursor: pointer;
}

/* kafelki jako "przyciski" */
.plusy [class^="plus-"] {
  cursor: pointer;
}
