/* ============================================
   NOWA STREFA - HERO & HOME PAGE SECTIONS
   ============================================ */

/* ── Hero Section ── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #fffaf7 0%, #f4fff9 42%, #fff2f2 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 144, 96, 0.11) 0%, transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(208, 16, 16, 0.09) 0%, transparent 68%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-16);
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  animation: fadeInUp var(--duration-slower) var(--ease-out);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-white);
  border: 1px solid var(--color-primary-light);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-primary-dark);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}

.hero__badge svg {
  width: 16px;
  height: 16px;
}

.hero__title {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.hero__title span {
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: var(--fs-lg);
  color: var(--color-gray-600);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-8);
  max-width: 520px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

.hero__stats {
  display: flex;
  gap: var(--space-10);
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-gray-900);
}

.hero__stat-label {
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  font-weight: var(--fw-medium);
}

/* ── Hero Visual ── */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  animation: fadeIn 1s var(--ease-out) 0.3s both;
}

/* Decorative green arc - top right */
.hero__visual::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  right: -20px;
  top: -10px;
  width: 160px;
  height: 160px;
  border: 4px solid transparent;
  border-top-color: rgba(24, 166, 99, 0.6);
  border-right-color: rgba(24, 166, 99, 0.4);
  border-radius: 50%;
  transform: rotate(-30deg);
}

/* Decorative red arc - bottom left */
.hero__visual::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  left: -30px;
  bottom: 20px;
  width: 120px;
  height: 120px;
  border: 3px solid transparent;
  border-bottom-color: rgba(208, 16, 16, 0.5);
  border-left-color: rgba(208, 16, 16, 0.35);
  border-radius: 50%;
  transform: rotate(20deg);
}

.hero__image-wrapper {
  position: relative;
  width: min(100%, 480px);
  min-height: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(16, 144, 96, 0.14), rgba(208, 16, 16, 0.12)),
    #e8f0eb;
  box-shadow:
    0 24px 60px rgba(16, 24, 40, 0.12),
    0 0 0 1px rgba(16, 144, 96, 0.08);
  /* Organic blob shape */
  border-radius: 42% 58% 62% 38% / 38% 32% 68% 62%;
}

/* Green swoosh line decoration */
.hero__image-wrapper::before {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  left: -24px;
  top: 40%;
  width: 80px;
  height: 140px;
  border: 3px solid transparent;
  border-left-color: rgba(24, 166, 99, 0.7);
  border-radius: 50%;
  transform: rotate(-15deg);
}

/* Red swoosh line decoration */
.hero__image-wrapper::after {
  content: '';
  position: absolute;
  pointer-events: none;
  z-index: 3;
  right: -18px;
  bottom: 15%;
  width: 70px;
  height: 110px;
  border: 3px solid transparent;
  border-right-color: rgba(208, 16, 16, 0.6);
  border-radius: 50%;
  transform: rotate(25deg);
}

.hero__image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Decorative dots around hero image */
.hero__dots {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 0;
}

.hero__dots::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 40px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(208, 16, 16, 0.18);
  box-shadow:
    60px -20px 0 6px rgba(16, 144, 96, 0.12),
    -20px 100px 0 4px rgba(208, 16, 16, 0.1);
}

.hero__dots::after {
  content: '';
  position: absolute;
  bottom: 30px;
  right: 10px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(16, 144, 96, 0.16);
  box-shadow:
    -40px 30px 0 5px rgba(208, 16, 16, 0.1),
    30px -60px 0 3px rgba(16, 144, 96, 0.08);
}

.hero__image-placeholder {
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--color-primary-50), var(--color-secondary-50));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-4);
}

.hero__image-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--color-primary);
  opacity: 0.5;
}

.hero__image-placeholder span {
  color: var(--color-gray-400);
  font-size: var(--fs-sm);
}

.hero__float-card {
  position: absolute;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  animation: float 4s ease-in-out infinite;
}

.hero__float-card--top {
  top: -20px;
  right: -30px;
  animation-delay: 0s;
}

.hero__float-card--bottom {
  bottom: 60px;
  right: -30px;
  left: auto;
  animation-delay: 2s;
}

.hero__float-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__float-icon--green {
  background: var(--color-primary-50);
  color: var(--color-primary);
}

.hero__float-icon--orange {
  background: var(--color-secondary-50);
  color: var(--color-secondary);
}

.hero__float-text {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-800);
}

.hero__float-subtext {
  font-size: var(--fs-xs);
  color: var(--color-gray-500);
}

/* ── Trusted By / Logos ── */
.trusted {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-gray-100);
  border-bottom: 1px solid var(--color-gray-100);
}

.trusted__label {
  text-align: center;
  font-size: var(--fs-sm);
  color: var(--color-gray-400);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
  font-weight: var(--fw-medium);
  margin-bottom: var(--space-8);
}

.trusted__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-12);
  flex-wrap: wrap;
}

/* ── Brand Accent (SVG seesaw animation) ── */
.brand-accent {
  margin-top: var(--space-12);
  display: flex;
  justify-content: center;
  position: relative;
}

.brand-accent__halo {
  position: absolute;
  border-radius: 999px;
  filter: blur(12px);
  opacity: 0.12;
}

.brand-accent__halo--red {
  top: 34px;
  left: 92px;
  width: 76px;
  height: 76px;
  background: rgba(213, 57, 46, 0.36);
  animation: haloPulseA 6.4s ease-in-out infinite;
}

.brand-accent__halo--green {
  top: 16px;
  right: 72px;
  width: 92px;
  height: 92px;
  background: rgba(68, 164, 105, 0.3);
  animation: haloPulseB 6.4s ease-in-out infinite;
}

.brand-accent__stage {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 560 / 300;
}

.brand-accent__mark {
  position: absolute;
  inset: 0;
  width: 71%;
  height: 100%;
  left: 50%;
  object-fit: contain;
  transform: translateX(-50%);
  transform-origin: 50% 59%;
  filter: drop-shadow(0 24px 28px rgba(18, 56, 37, 0.16));
  animation: brandRock 6.6s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.brand-accent__spark {
  position: absolute;
  border-radius: 999px;
  filter: drop-shadow(0 8px 12px rgba(18, 56, 37, 0.14));
}

.brand-accent__spark--red {
  top: 116px;
  left: 82px;
  width: 12px;
  height: 12px;
  background: #d5392e;
  animation: sparkDriftA 6.4s ease-in-out infinite;
}

.brand-accent__spark--green {
  top: 108px;
  right: 90px;
  width: 14px;
  height: 14px;
  background: #44a469;
  animation: sparkDriftB 6.4s ease-in-out infinite;
}

.brand-accent__line {
  position: absolute;
  display: block;
  border-radius: 999px;
  opacity: 0.88;
}

.brand-accent__line--red {
  left: 70px;
  bottom: 38px;
  width: 92px;
  height: 28px;
  border-left: 4px solid rgba(213, 57, 46, 0.72);
  border-bottom: 4px solid rgba(213, 57, 46, 0.72);
  transform: rotate(-14deg);
}

.brand-accent__line--green {
  right: 64px;
  bottom: 50px;
  width: 108px;
  height: 42px;
  border-right: 4px solid rgba(68, 164, 105, 0.72);
  border-bottom: 4px solid rgba(68, 164, 105, 0.72);
  transform: rotate(16deg);
}

.brand-accent__shadow {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 220px;
  height: 18px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(18, 56, 37, 0.14) 0%, rgba(18, 56, 37, 0.06) 45%, rgba(18, 56, 37, 0) 78%);
}

@keyframes brandRock {
  0%, 100% { transform: translateX(-50%) rotate(-2.4deg) translateY(0); }
  50% { transform: translateX(calc(-50% + 52px)) rotate(11.8deg) translateY(10px); }
}

@keyframes haloPulseA {
  0%, 100% { opacity: 0.08; transform: scale(0.96); }
  50% { opacity: 0.14; transform: scale(1.03); }
}

@keyframes haloPulseB {
  0%, 100% { opacity: 0.07; transform: scale(1); }
  50% { opacity: 0.13; transform: scale(1.05); }
}

@keyframes sparkDriftA {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(5px, -4px); opacity: 0.8; }
}

@keyframes sparkDriftB {
  0%, 100% { transform: translate(0, 0); opacity: 1; }
  50% { transform: translate(-5px, 4px); opacity: 0.82; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-accent__mark,
  .brand-accent__halo--red,
  .brand-accent__halo--green,
  .brand-accent__spark--red,
  .brand-accent__spark--green {
    animation: none;
  }
}

.trusted__logo {
  height: 36px;
  opacity: 0.4;
  filter: grayscale(100%);
  transition: all var(--duration-normal) var(--ease-out);
}

.trusted__logo:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ── Categories Strip ── */
.categories-strip {
  padding: var(--space-16) 0;
}

.categories-strip__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
}

.category-tile {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  border-radius: var(--radius-xl);
  background: var(--color-white);
  border: 2px solid var(--color-gray-100);
  transition: all var(--duration-normal) var(--ease-out);
  cursor: pointer;
}

.category-tile:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.category-tile__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-lg);
  font-size: var(--fs-2xl);
}

.category-tile__name {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--color-gray-800);
}

.category-tile__count {
  font-size: var(--fs-xs);
  color: var(--color-gray-400);
  margin-top: var(--space-1);
}

/* ── CTA Banner ── */
.cta-banner {
  position: relative;
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-accent) 0%, #45a04b 55%, #3a8f41 100%); /* zielony z logo (feedback 10.06) */
  color: var(--color-white);
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.cta-banner .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.cta-banner__title {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.cta-banner__desc {
  font-size: var(--fs-md);
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: var(--lh-relaxed);
}

/* ── Process Stack - Large horizontal cards with images ── */
.process-stack {
  display: grid;
  gap: var(--space-6);
}

.pcard {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.45fr) 1fr;
  gap: var(--space-8);
  align-items: center;
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-100);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.04);
  transition: all var(--duration-normal) var(--ease-out);
  overflow: visible;
}

.pcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(16, 24, 40, 0.08);
  border-color: rgba(16, 144, 96, 0.12);
}

/* Overlapping stack effect */
.pcard + .pcard { margin-top: -16px; }

/* Image with organic blob shape */
.pcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: visible;
}

.pcard__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 42% 58% 62% 38% / 38% 32% 68% 62%;
  box-shadow: 0 12px 36px rgba(16, 24, 40, 0.1);
  transition: border-radius var(--duration-slower) var(--ease-out);
}

.pcard:nth-child(2) .pcard__img { border-radius: 58% 42% 38% 62% / 44% 62% 38% 56%; }
.pcard:nth-child(3) .pcard__img { border-radius: 36% 64% 56% 44% / 52% 38% 62% 48%; }
.pcard:nth-child(4) .pcard__img { border-radius: 62% 38% 42% 58% / 36% 56% 44% 64%; }

.pcard:hover .pcard__img {
  border-radius: 48% 52% 52% 48% / 46% 48% 52% 54%;
}

/* Decorative arcs on images */
.pcard__arc {
  position: absolute;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid transparent;
  pointer-events: none;
  z-index: 2;
}

.pcard__arc--green {
  top: -12px;
  left: -12px;
  border-top-color: rgba(24, 166, 99, 0.5);
  border-left-color: rgba(24, 166, 99, 0.35);
  transform: rotate(-20deg);
}

.pcard__arc--red {
  bottom: -10px;
  right: -10px;
  border-bottom-color: rgba(208, 16, 16, 0.45);
  border-right-color: rgba(208, 16, 16, 0.3);
  transform: rotate(15deg);
}

/* Content side */
.pcard__body {
  position: relative;
  padding: var(--space-2) 0;
}

.pcard__num {
  position: absolute;
  top: -20px;
  right: 0;
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: var(--fw-extrabold);
  line-height: 1;
  color: var(--color-gray-900);
  opacity: 0.04;
  user-select: none;
}

.pcard__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--color-gray-900);
  margin-bottom: var(--space-3);
}

.pcard__desc {
  font-size: var(--fs-sm);
  color: var(--color-gray-500);
  line-height: var(--lh-relaxed);
  margin-bottom: var(--space-4);
  max-width: 480px;
}

.pcard__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pcard__tags span {
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: var(--color-gray-50);
  border: 1px solid var(--color-gray-100);
  font-size: var(--fs-xs);
  color: var(--color-gray-600);
  font-weight: var(--fw-medium);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--space-10);
  }

  .hero__title {
    font-size: var(--fs-4xl);
  }

  .hero__desc {
    margin: 0 auto var(--space-8);
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__stats {
    justify-content: center;
  }

  .hero__float-card {
    display: none;
  }

  .hero__visual {
    justify-content: center;
  }

  .hero__visual::before {
    width: 120px;
    height: 120px;
    right: -10px;
    top: -5px;
  }

  .hero__visual::after {
    width: 90px;
    height: 90px;
    left: -15px;
    bottom: 10px;
  }

  .hero__image-wrapper {
    width: min(100%, 380px);
    aspect-ratio: 4 / 4.8;
    border-radius: 42% 58% 62% 38% / 38% 32% 68% 62%;
  }

  .categories-strip__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pcard {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .pcard__media {
    max-width: 400px;
    margin: 0 auto;
  }

  .pcard__num {
    font-size: 5rem;
    top: -10px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: auto;
    padding: var(--space-12) 0;
  }

  .hero__title {
    font-size: var(--fs-3xl);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__stats {
    gap: var(--space-6);
  }

  .hero__image-wrapper {
    width: min(100%, 320px);
    aspect-ratio: 4 / 4.5;
    border-radius: 42% 58% 62% 38% / 38% 32% 68% 62%;
  }

  .hero__visual::before {
    width: 80px;
    height: 80px;
    right: -5px;
    top: 0;
  }

  .hero__visual::after {
    width: 60px;
    height: 60px;
    left: -8px;
    bottom: 5px;
  }

  .hero__dots {
    display: none;
  }

  .categories-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pcard {
    padding: var(--space-4);
  }

  .pcard__num {
    font-size: 4rem;
  }

  .pcard__arc {
    display: none;
  }
}
