/* Reset i podstawowe style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: #333;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Nawigacja */
nav {
  padding: 1rem 0;
  border-bottom: 1px solid #eee;
}

nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a:hover {
  color: #0066cc;
}

nav a i {
  font-size: 1.1em;
  opacity: 0.8;
}

/* Główne sekcje */
section {
  padding: 4rem 0;
}

h1,
h2 {
  margin-bottom: 1.5rem;
  line-height: 1.2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2rem;
}

h2 i {
  color: #0066cc;
  font-size: 0.9em;
  opacity: 0.9;
}

/* Karty usług */
.service-card {
  border: 1px solid #eee;
  padding: 2rem;
  margin: 1rem 0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: #0066cc;
  margin: 1rem 0;
}

.features {
  list-style: none;
  margin: 1rem 0;
}

.features li {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.features li::before {
  content: "✓";
  color: #0066cc;
  position: absolute;
  left: 0;
}

/* Layout */
#hero {
  display: flex;
  flex-direction: row;
  gap: 4rem;
  align-items: center;
}

#hero .avatar-container {
  flex-shrink: 0;
  padding: 25px;
  position: relative;
}

#hero .content {
  flex: 1;
}

#hero h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

#hero p {
  font-size: 1.25rem;
  line-height: 1.5;
  color: #444;
  max-width: 40ch;
}

@keyframes shadowRotation {
  0% {
    box-shadow: 20px 0 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(-2deg);
  }
  12.5% {
    box-shadow: 14.14px 14.14px 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(-1deg);
  }
  25% {
    box-shadow: 0 20px 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(0deg);
  }
  37.5% {
    box-shadow: -14.14px 14.14px 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(1deg);
  }
  50% {
    box-shadow: -20px 0 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(2deg);
  }
  62.5% {
    box-shadow: -14.14px -14.14px 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(1deg);
  }
  75% {
    box-shadow: 0 -20px 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(0deg);
  }
  87.5% {
    box-shadow: 14.14px -14.14px 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(-1deg);
  }
  100% {
    box-shadow: 20px 0 20px rgba(0, 0, 0, 0.35);
    transform: rotateZ(-2deg);
  }
}

#hero img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  animation: shadowRotation 5s linear infinite;
  background: white;
}

/* Dodajemy hover effect dla interaktywności */
#hero img:hover {
  animation-play-state: paused;
}

/* Przyciski */
.button {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  min-width: 140px;
  border: 1px solid #0066cc;
  color: #0066cc;
  background: white;
}

.button:hover {
  background: #f5f9ff;
}

.button.primary {
  background: #0066cc;
  color: white;
}

.button.primary:hover {
  background: #0052a3;
}

/* Wyróżnione karty */
.service-card.highlight {
  text-align: center;
  padding: 2rem;
  transition: transform 0.2s ease;
}

.service-card.highlight:hover {
  transform: translateY(-5px);
}

.feature-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.feature-highlight i {
  color: #0066cc;
  opacity: 0.9;
}

.feature-highlight h3 {
  font-size: 1.2rem;
  margin: 0;
}

/* Responsywność */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  #hero {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  #hero img {
    max-width: 200px;
    margin: 0 auto;
  }

  #hero h1 {
    font-size: 2.25rem;
  }

  #hero p {
    font-size: 1.125rem;
    margin: 0 auto;
  }

  #doswiadczenie > div {
    grid-template-columns: 1fr !important;
  }

  .service-card > div {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .button-group {
    flex-direction: row !important;
    justify-content: center;
    margin-top: 1rem;
  }
}

.highlight-underline {
  position: relative;
  white-space: nowrap;
  color: #0066cc;
}

.highlight-underline::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #0066cc;
  opacity: 0.9;
}

/* Opinie */
blockquote {
  font-style: italic;
  position: relative;
  padding: 0.5rem 0;
}

blockquote::before {
  content: '"';
  font-size: 4rem;
  position: absolute;
  left: -1rem;
  top: -1rem;
  opacity: 0.1;
  font-family: Georgia, serif;
}

blockquote footer {
  margin-top: 1rem;
  font-style: normal;
  font-weight: 500;
  color: #666;
}

#opinie .service-card {
  transition: transform 0.2s ease;
}

#opinie .service-card:hover {
  transform: translateY(-2px);
}

/* FAQ */
details {
  margin: 1rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem 0;
}

details summary:hover {
  color: #0066cc;
}

details p {
  margin-top: 1rem;
  padding-left: 1.5rem;
  color: #444;
}
