html { scroll-behavior: smooth; }
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

* {
  margin: 0; padding: 0; box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #fff9f0;
  color: #222;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: url('tlo.png') center/cover no-repeat;
  padding: 30px 20px;
  text-align: center;
  color: #fff;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 8px 30px rgba(255,111,0,0.3);
}
header h1 {
  font-size: 3rem;
  letter-spacing: 3px;
  font-weight: 700;
  animation: fadeInDown 1s ease forwards;
}
header p {
  font-size: 1.3rem;
  margin-top: 10px;
  font-weight: 400;
  animation: fadeInUp 1.2s ease forwards;
}

nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #ff6f00;
  padding: 15px 0;
  border-radius: 30px;
  margin: 20px auto;
  max-width: 700px;
  box-shadow: 0 6px 20px rgba(255,111,0,0.5);
}
nav a {
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}
nav a:hover,
nav a:focus {
  background: #005bb5;
  transform: scale(1.1);
}

main {
  flex-grow: 1;
  max-width: 1100px;
  margin: 40px auto 80px;
  padding: 0 20px;
}

section {
  margin-bottom: 70px;
  animation: fadeInUp 1s ease forwards;
  border-radius: 25px;
  background: #fff;
  padding: 25px 30px;
  box-shadow: 0 6px 25px rgba(255,111,0,0.15);
}

section h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #ff6f00;
  border-bottom: 3px solid #0073e6;
  display: inline-block;
  padding-bottom: 6px;
}

/* Usługi */
.services ul {
  list-style: none;
}
.services li {
  background: #fff4e6;
  margin-bottom: 15px;
  padding: 18px 22px;
  border-radius: 20px;
  font-weight: 600;
  color: #333;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 3px 10px rgba(255,111,0,0.2);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.services li:hover {
  background: #ff6f00;
  color: white;
  box-shadow: 0 6px 30px rgba(255,111,0,0.7);
  cursor: default;
}
.services li::before {
  content: '✔️';
  margin-right: 15px;
  font-size: 1.4rem;
}
.services .desc {
  font-weight: 400;
  font-size: 0.95rem;
  margin-top: 8px;
  color: #444;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease, max-height 0.4s ease;
}
.services li:hover .desc {
  opacity: 1;
  max-height: 200px;
}

/* Slider */
.slider {
  position: relative;
  max-width: 800px;
  margin: 40px auto 80px;
  border-radius: 25px;
  overflow: hidden;
  box-shadow: 0 8px 35px rgba(255,111,0,0.3);
}
.slides {
  display: flex;
  width: 400%;
  animation: slide 20s infinite;
}
.slides img {
  width: 100%;
  object-fit: cover;
  border-radius: 25px;
}

/* Kontakt */
#formularz {
  max-width: 600px;
  margin: auto;
  background: #fff4e6;
  padding: 30px 35px;
  border-radius: 30px;
  box-shadow: 0 6px 25px rgba(255,111,0,0.3);
}
#formularz h2 {
  color: #0073e6;
}
form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: #005bb5;
}
form input, form textarea {
  width: 100%;
  padding: 12px 18px;
  margin-bottom: 18px;
  border-radius: 18px;
  border: 2px solid #ffd399;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  resize: vertical;
}
form input:focus, form textarea:focus {
  border-color: #ff6f00;
  outline: none;
}
* {
 text-align: center;
}
form button {
  background: #ff6f00;
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 1.25rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  box-shadow: 0 8px 30px rgba(255,111,0,0.7);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
form button:hover,
form button:focus {
  background: #e65c00;
  box-shadow: 0 10px 40px rgba(230,92,0,0.8);
}

/* Footer */
footer {
  background: #222;
  color: #eee;
  padding: 25px 15px;
  text-align: center;
  border-radius: 40px 40px 0 0;
}
footer a {
  color: #ff6f00;
  text-decoration: none;
  font-weight: 600;
}

/* Animations */
@keyframes slide {
  0%    { transform: translateX(0); }
  20%   { transform: translateX(0); }
  25%   { transform: translateX(-100%); }
  45%   { transform: translateX(-100%); }
  50%   { transform: translateX(-200%); }
  70%   { transform: translateX(-200%); }
  75%   { transform: translateX(-300%); }
  95%   { transform: translateX(-300%); }
  100%  { transform: translateX(0); }
}
@keyframes fadeInDown {
  0 { opacity: 0; transform: translateY(-30px);}
  100 { opacity: 1; transform: translateY(0);}
}
@keyframes fadeInUp {
  0 { opacity: 0; transform: translateY(30px);}
  100 { opacity: 1; transform: translateY(0);}
}

/* Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  main {
    margin: 20px 15px 60px;
  }
  section {
    padding: 20px;
    margin-bottom: 50px;
  }
  .services li {
    font-size: 1rem;
    padding: 15px 18px;
  }
  #formularz {
    padding: 25px 20px;
    text-align: center;
  }
}
/* Dropdown in navbar */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #ff6f00;
  color: white;
  font-weight: 600;
  font-size: 1.2rem;
  border: none;
  cursor: pointer;
  padding: 10px 25px;
  border-radius: 30px;
  transition: background-color 0.3s ease, transform 0.2s ease, color 0.3s ease;
}

.dropbtn:hover {
  background-color: #005bb5;
}

.dropbtn.active {
  background-color: #005bb5;
  color: white;
}


.dropbtn:focus {
  outline: none;
  background-color: transparent;
  color: white;
}

.dropbtn:hover,
.dropbtn:focus {
  background-color: #005bb5;
  transform: scale(1.1);
}


.dropdown-content a {
  color: #333;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}


nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap; /* przywróć WRAP, ale popraw styl przycisków */
  gap: 30px;
  background: #ff6f00;
  padding: 15px 20px;
  border-radius: 30px;
  margin: 20px auto;
  max-width: 100%;
  box-shadow: 0 6px 20px rgba(255,111,0,0.5);
}





.dropbtn:focus {
  outline: none;
}

.dropbtn.active {
  background-color: #005bb5;
  color: #fff;
}

.dropdown-content {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, opacity 0.4s ease;
  position: absolute;
  top: 55px;
  left: 0;
  background-color: #fff;
  border-radius: 20px;
  z-index: 1000;
  min-width: 280px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  padding: 0;
}

.dropdown-content.show {
  max-height: 600px;
  opacity: 1;
  padding: 10px 0;
}



/* ========================================= */
/* Styl dla przycisków spójny z nawigacją   */
/* ========================================= */

.btn-styl {
  display: inline-block; /* Zapewnia prawidłowe wymiary i marginesy */
  background-color: #ff6f00; /* Główny kolor pomarańczowy z nawigacji */
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  text-decoration: none;
  text-align: center;
  padding: 10px 25px;
  border: none;
  border-radius: 30px; /* Zaokrąglenie identyczne jak w nawigacji */
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255,111,0,0.5); /* Cień spójny z nawigacją */
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.btn-styl:hover,
.btn-styl:focus {
  background-color: #005bb5; /* Niebieski kolor z hovera w nawigacji */
  transform: scale(1.1); /* Efekt powiększenia przy najechaniu */
  box-shadow: 0 8px 25px rgba(0, 91, 181, 0.4); /* Cień dopasowany do nowego koloru */
  outline: none; /* Usunięcie domyślnej obwódki przy focusie */
}