@font-face {
  font-family: czcionka;
  src: url(Montserrat-Regular.ttf);
}

:root {
  --main-blue: #1e3a8a;
  --main-green: #5cb85c;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: czcionka;
}

body {
  color: #333;
}

header {
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  flex-direction: column;
  text-align: center;
  padding: 20px;
}

header img {
  max-width: 90%;
  height: auto;
  margin-bottom: 20px;
}

section {
  padding: 80px 20px;
}

.section-light {
  background: #f9f9f9;
}

.section-dark {
  background: var(--main-blue);
  color: white;
}

h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: center;
}

footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--main-green);
  color: white;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  max-width: 1200px;
  margin: auto;
}

.logo {
  font-weight: bold;
  font-size: 1.2rem;
  color: var(--main-blue);
}

.menu-toggle {
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  display: none;
  color: var(--main-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  justify-content: center; /* <-- Dodane */
  align-items: center;     /* <-- Dodane */
  text-align: center;      /* <-- Dodane */
}

.nav-links li a {
  text-decoration: none;
  color: var(--main-blue);
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: var(--main-green);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* <-- Dodane */
    text-align: center;
    gap: 20px;
    padding: 20px 0;
    display: none;
    z-index: 999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  }

  .nav-links.show {
    display: flex;
  }
}

/* Animacje */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-100px);
  transition: opacity 1s ease, transform 1s ease;
}

.slide-in-left.active {
  opacity: 1;
  transform: translateX(0);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
  header {
    padding: 40px 20px;
    height: auto;
  }

  h2 {
    font-size: 1.5rem;
  }

  p {
    font-size: 1rem;
    padding: 0 10px;
  }

  nav {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    padding: 8px 0;
  }
}

@media (max-width: 480px) {
  section {
    padding: 60px 10px;
  }

  header img {
    max-width: 100%;
  }

  nav {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  h2 {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.95rem;
  }
}

#reviews {
  padding: 2em;
  text-align: center;
  color: black;
}

.review {
  background-color: #f2f2f2;
  margin: 1em auto;
  padding: 1em;
  max-width: 600px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.stars {
  font-size: 1.5em;
  color: gold;
}

@media (max-width: 768px) {
  .review {
    padding: 0.8em;
    margin: 1em 1.5em;
  }

  .stars {
    font-size: 1.3em;
  }
}

@media (max-width: 480px) {
  .review {
    padding: 0.7em;
    margin: 1em 1em;
  }

  .stars {
    font-size: 1.1em;
  }
}

span{
  font-weight: bolder;
}

.slide-in-left, .slide-in-right {
  opacity: 0;
  transform: translateX(600px);
  transition: opacity 2s ease, transform 2s ease;
}

.slide-in-left {
  transform: translateX(-600px);
}

.slide-in-left.active, .slide-in-right.active {
  opacity: 1;
  transform: translateX(0);
}

#reviews h2{
  color: white;
}

.slider-container {
  position: relative;
  width: 80%;
  max-width: 1000px;
  margin: 0 auto 50px auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  aspect-ratio: 16 / 9;
}

.slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 15px;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 100;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color 0.3s, transform 0.3s;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.prev:active, .next:active {
  transform: translateY(-50%) scale(0.95);
}

.prev {
  left: 15px;
}

.next {
  right: 15px;
}

/* Dodatkowy efekt dla przycisków */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.slider-container:hover .prev,
.slider-container:hover .next {
  animation: pulse 1.5s infinite;
}

/* Responsywność */
@media (max-width: 768px) {
  .slider-container {
    width: 95%;
    border-radius: 10px;
    margin-bottom: 40px;
  }
  
  .prev, .next {
    padding: 10px;
    font-size: 1.2rem;
    width: 40px;
    height: 40px;
  }
  
  .prev {
    left: 10px;
  }
  
  .next {
    right: 10px;
  }
}

@media (max-width: 480px) {
  .slider-container {
    border-radius: 8px;
    margin-bottom: 30px;
    aspect-ratio: 4 / 3; 
  }
  
  .prev, .next {
    padding: 8px;
    font-size: 1rem;
    width: 35px;
    height: 35px;
  }
  
  .prev {
    left: 5px;
  }
  
  .next {
    right: 5px;
  }
}