:root {
  --navy: #111827;
  --red: #EF4444;
  --white: #FFFFFF;
  --grey: #E5E7EB;
  --light-grey: #F3F4F6;

  --font-main: 'Inter', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--navy);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ANIMATIONS */

.fade-in {
  animation: fadeIn 1.2s ease forwards;
  opacity: 0;
}

.slide-up {
  animation: slideUp 1s ease forwards;
  opacity: 0;
}

.float {
  animation: float 4s ease-in-out infinite;
}

.hover-up {
  transition: transform 0.25s ease;
}

.hover-up:hover {
  transform: translateY(-6px);
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

@keyframes float {
  0% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

/* NAV */

.nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--white);
  border-bottom: 1px solid var(--grey);
  padding: 1rem 0;
  backdrop-filter: blur(10px);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 40px;
}

.nav-links a {
  margin-left: 1.5rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}

.btn.small {
  padding: 0.4rem 1rem;
  border-radius: 20px;
  background: var(--red);
  color: var(--white);
}

/* HERO */

.hero {
  background-color: var(--navy);
  color: var(--white);
  padding: 6rem 0;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.hero-text {
  max-width: 550px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
}

.benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.benefits li {
  margin-bottom: 0.5rem;
}

.hero-visual img {
  width: 420px;
}

/* BUTTONS */

.btn {
  display: inline-block;
  padding: 0.9rem 1.8rem;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  margin-right: 0.5rem;
}

.btn.primary {
  background-color: var(--red);
  color: var(--white);
}

.btn.secondary {
  border: 2px solid var(--white);
  color: var(--white);
}

/* SECTIONS */

section {
  padding: 4rem 0;
}

h2 {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2rem;
}

/* SERVICES */

.slots {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.slot {
  background: var(--light-grey);
  padding: 2rem;
  border-radius: 16px;
  flex: 1 1 280px;
}

/* SERVICES — ulepszenia */

#services h2 {
  margin-bottom: 3rem;
}

.slot {
  background: var(--light-grey);
  padding: 2rem;
  border-radius: 16px;
  flex: 1 1 280px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.slot:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

.slot h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.slot p {
  margin: 0;
  color: #4b5563;
  line-height: 1.5;
}


/* CASE STUDIES */

.case-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.case-card {
  flex: 1 1 300px;
  background: var(--light-grey);
  border-radius: 16px;
  padding: 1.5rem;
}

.case-card img {
  width: 100%;
  border-radius: 12px;
}


/* TIMELINE */

/* TIMELINE — wersja dopracowana */

.timeline-wrapper {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin-top: 3rem;
}

/* Pojedynczy krok */
.timeline-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  background: var(--light-grey);
  transition: transform 0.25s ease;
}

.timeline-step:hover {
  transform: translateY(-4px);
}

/* Ikona */
.timeline-icon {
  width: 48px;
  height: 48px;
  background: var(--red);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  color: var(--white);
}

/* Tekst */
.timeline-text h3 {
  margin: 0 0 0.3rem 0;
  font-size: 1.25rem;
}

.timeline-text p {
  margin: 0;
  color: #4b5563;
}

/* Animacja reveal */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  animation: reveal 0.8s ease forwards;
}

.reveal:nth-child(2) { animation-delay: 0.15s; }
.reveal:nth-child(3) { animation-delay: 0.3s; }
.reveal:nth-child(4) { animation-delay: 0.45s; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE — timeline poziomy */
@media (max-width: 700px) {
  .timeline-wrapper {
    flex-direction: row;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
  }

  .timeline-step {
    min-width: 260px;
    flex-direction: column;
    align-items: flex-start;
    scroll-snap-align: start;
  }

  .timeline-icon {
    margin-bottom: 0.8rem;
  }
}

/* WHY US */

.why-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.why-item {
  flex: 1 1 250px;
  background: var(--light-grey);
  padding: 2rem;
  border-radius: 16px;
}

/* PRICING */

.pricing-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.price-card {
  flex: 1 1 250px;
  border: 1px solid var(--grey);
  border-radius: 16px;
  padding: 2rem;
  background: var(--white);
}

.price-card.featured {
  border: 2px solid var(--red);
  background: #fff5f5;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--red);
}

/* CONTACT SECTION — STABLE VERSION */

.contact-wrapper {
  display: flex;
  gap: 3rem;
  align-items: stretch; /* klucz: kolumny mają równą wysokość */
  flex-wrap: wrap;
}

/* Kolumna ze zdjęciem */
.contact-image {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end; /* zdjęcie przyklejone do dołu */
}

.contact-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  object-fit: cover;
}

/* Kolumna z formularzem + RODO */
.contact-content {
  flex: 1 1 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* formularz u góry, RODO na dole */
}

/* Formularz */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Pola formularza */
.contact-form .form-group {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--light-grey);
  font-size: 1rem;
  box-sizing: border-box;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

/* RODO — przyklejone do dołu kolumny */
.rodo-info {
  font-size: 0.85rem;
  color: var(--dark-grey);
  line-height: 1.4;
  max-width: 480px;
  margin-top: 2rem;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-image,
  .contact-content {
    flex: 1 1 100%;
  }

  .contact-image img {
    height: auto;
  }

  .rodo-info {
    margin-top: 1rem;
  }
}
.hidden-field { display: none; }

/* FOOTER */

.footer {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 2rem 0;
}

.socials {
  margin-top: 0.5rem;
}

.socials a {
  margin: 0 0.5rem;
  color: var(--white);
  opacity: 0.8;
  text-decoration: none;
}

.socials a:hover {
  opacity: 1;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual img {
    width: 300px;
  }

  .nav-links {
    display: none;
  }

  .timeline-wrapper {
    padding-left: 1.5rem;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .price-card {
    flex: 1 1 100%;
  }
}
