body {
  font-family: "Inter", "Poppins", Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-attachment: fixed;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
      circle at 20% 80%,
      rgba(120, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 119, 198, 0.3) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 40% 40%,
      rgba(120, 219, 255, 0.2) 0%,
      transparent 50%
    );
  pointer-events: none;
  z-index: -1;
}

@keyframes gradientMove {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  animation: navFadeIn 1.1s cubic-bezier(0.23, 1, 0.32, 1);
  height: auto;
  min-height: unset;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@keyframes navFadeIn {
  0% {
    transform: translateY(-60px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li a {
  position: relative;
  color: #4a5568;
  font-weight: 500;
  font-size: 0.9rem;
  text-decoration: none;
  padding: 0.7rem 1rem;
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  border-radius: 1px;
  transform: scaleX(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  left: 0;
  right: 0;
  transform: scaleX(1);
  opacity: 1;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(102, 126, 234, 0.08);
  color: #667eea;
  transform: translateY(-1px);
}

nav ul li a i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

nav ul li a:hover i,
nav ul li a.active i {
  color: #667eea;
  transform: scale(1.1);
}

/* Dodajemy odstęp na górze strony, by treść nie była pod navem */
body {
  padding-top: 80px;
}

@media (max-width: 900px) {
  nav {
    left: 0;
    width: 100vw;
    padding: 0;
    margin: 0;
    min-height: 120px;
    height: auto;
  }
  nav ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    padding: 1rem 0.5rem;
    box-sizing: border-box;
    position: static;
  }
  nav ul li {
    display: block;
    flex: none;
  }
  nav ul li a {
    font-size: 0.85rem;
    padding: 0.6rem 0.8rem;
  }
  body {
    padding-top: 140px;
  }
}

@media (max-width: 600px) {
  nav {
    min-height: 150px;
  }
  nav ul li a {
    font-size: 0.8rem;
    padding: 0.5rem 0.6rem;
  }
  body {
    padding-top: 160px;
  }
}

section {
  max-width: 1200px;
  margin: 2rem auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.23, 1.02, 0.32, 1) both;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

section:hover,
section:focus-within {
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.98);
  transform: translateY(-8px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

h1,
h2,
h3 {
  font-family: "Poppins", "Inter", Arial, sans-serif;
  font-weight: 700;
  margin-top: 0;
  color: #1a202c;
  letter-spacing: -0.02em;
}

h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

p,
li,
label {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #4a5568;
}

.cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: 16px;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  border: none;
  cursor: pointer;
}

.cta::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

.cta:hover::before {
  left: 100%;
}

.cta:hover,
.cta:focus {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.6);
}

.pakiety {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pakiet {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.pakiet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.pakiet:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
}

.pakiet .cena {
  display: block;
  margin-top: 1.5rem;
  font-size: 2rem;
  color: #667eea;
  font-weight: bold;
  letter-spacing: 0.02em;
}

.pakiet h3 i {
  color: #667eea;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

/* Sekcja procesu */
.proces-kroki {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.krok {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.krok::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.krok:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
}

.krok-numer {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.krok h3 {
  color: #2d3748;
  margin-bottom: 1rem;
}

.krok h3 i {
  color: #667eea;
  margin-right: 0.5rem;
}

/* Sekcja FAQ */
.faq-container {
  max-width: 800px;
  margin: 2rem auto 0;
}

.faq-item {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 16px;
  margin-bottom: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.15);
}

.faq-question {
  padding: 1.5rem 2rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.5);
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.8);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #2d3748;
  display: flex;
  align-items: center;
}

.faq-question h3 i {
  color: #667eea;
  margin-right: 0.8rem;
  font-size: 1.2rem;
}

.faq-toggle {
  color: #667eea;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: rgba(255, 255, 255, 0.3);
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding: 1.5rem 2rem;
}

.faq-answer p {
  margin: 0;
  color: #4a5568;
  line-height: 1.6;
}

.portfolio-kategorie {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-kategorie > div {
  background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(102, 126, 234, 0.1);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.portfolio-kategorie > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portfolio-kategorie > div:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, #fff 0%, #f7fafc 100%);
}

.portfolio-kategorie ul {
  padding-left: 1.5rem;
  margin-top: 1rem;
}

.portfolio-kategorie a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-block;
  padding: 0.5rem 0;
}

.portfolio-kategorie a:hover {
  color: #764ba2;
  transform: translateX(5px);
}

.portfolio-kategorie a i {
  margin-right: 0.5rem;
  color: #667eea;
  transition: all 0.3s ease;
}

.portfolio-kategorie a:hover i {
  color: #764ba2;
  transform: scale(1.1);
}

form {
  max-width: 600px;
  margin: 0 auto;
}

form label {
  display: block;
  margin: 1.5rem 0 0.5rem;
  font-weight: 600;
  color: #2d3748;
}

form label i {
  color: #667eea;
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

form input,
form textarea {
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

form input:focus,
form textarea:focus {
  border-color: #667eea;
  outline: none;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

form textarea {
  min-height: 120px;
  resize: vertical;
}

form button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  width: 100%;
}

form button::before {
  content: "";
  position: absolute;
  left: -100%;
  top: 0;
  bottom: 0;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s;
}

form button:hover::before {
  left: 100%;
}

form button:hover,
form button:focus {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(102, 126, 234, 0.6);
}

form button i {
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

#contactResult {
  margin-top: 1rem;
  font-weight: bold;
  font-size: 1.1rem;
  text-align: center;
  padding: 1rem;
  border-radius: 12px;
  min-height: 0;
  opacity: 0;
  transition: all 0.3s ease;
  border: 1px solid;
}

#contactResult.success {
  color: #059669;
  background: rgba(5, 150, 105, 0.1);
  border-color: rgba(5, 150, 105, 0.2);
}

#contactResult.error {
  color: #dc3545;
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
}

#contactResult.loading {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  border-color: rgba(0, 123, 255, 0.2);
}

#contactResult:not(:empty) {
  opacity: 1;
  min-height: auto;
}

section h2 i,
section h3 i {
  color: #667eea;
  margin-right: 0.8rem;
  filter: drop-shadow(0 2px 6px rgba(102, 126, 234, 0.3));
  animation: iconFadeIn 0.8s cubic-bezier(0.23, 1.02, 0.32, 1) both;
}

@keyframes iconFadeIn {
  from {
    opacity: 0;
    transform: scale(0.7) rotate(-20deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@media (max-width: 900px) {
  section {
    margin: 1rem;
    padding: 2rem 1.5rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .pakiety,
  .portfolio-kategorie {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .proces-kroki {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: none;
  }

  .faq-question {
    padding: 1rem 1.5rem;
  }

  .faq-answer {
    padding: 1rem 1.5rem;
  }
}

@media (max-width: 600px) {
  section {
    padding: 1.5rem 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .cta {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }
}
