.box_whyInstaKolko.heroSmall {
  padding: 55px 0;
}

.heroSmall .div_whyInstaKolko {
  text-align: center;
}

.heroSmall .heroContent {
  display: block;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.heroSmall .heroContent h1 {
  margin-bottom: 14px;
  color: #FFFFFF;
  font-size: var(--heading-size);
  font-weight: 800;
}

.heroSmall .heroContent .heroSubtitle {
  max-width: 640px;
  margin: 0 auto;
  color: #FFFFFF;
  font-size: var(--large-text-size);
  font-weight: 400;
  line-height: 1.5;
}

.heroInner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  box-sizing: border-box;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

.heroLogo img {
  display: block;
  width: auto;
  height: 200px;
  filter: brightness(0) invert(1);
}

.heroProjectLogo,
.heroProjectTitle {
  display: block;
  flex: 0 0 300px !important;
  width: 300px !important;
  max-width: 300px !important;
  margin: 0;
  line-height: 0;
}

.heroProjectLogo img,
.heroProjectTitle img {
  display: block;
  width: 100% !important;
  max-width: 300px !important;
  height: auto !important;
  object-fit: contain;
  filter: brightness(0) invert(1) !important;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.heroProjectLogo:hover img {
  opacity: 0.8;
  transform: scale(1.02);
}

.heroContent {
  flex: 1;
  min-width: 0;
  max-width: 700px;
  text-align: left;
}

.heroContent h1 {
  margin-bottom: 14px;
  color: #FFFFFF;
  font-size: var(--heading-size);
  font-weight: 800;
}

.heroContent .heroSubtitle {
  margin: 0;
  color: #FFFFFF;
  font-size: var(--large-text-size);
  font-weight: 400;
  line-height: 1.5;
}

.box_content .rowBox > .rowColumn:only-child {
  flex-basis: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
}

.boxTop .logoTop img {
  height: 76px;
}

.box_content .form,
.div_content .form {
  background-color: #0079f5;
}

.image_content {
  flex: 1;
}

.image_content img {
  display: block;
  width: 100%;
  max-width: 500px;
  border-radius: 15px;
}

.rowBox.howWeLearn {
  display: flex;
  align-items: center;
  gap: 40px;
}

.rowBox.howWeLearn .rowColumn:first-child {
  flex: 1;
}

.rowBox.howWeLearn .boxImgRight {
  flex: 0 0 300px;
}

.boxImgDesc.smaller {
  width: 200px;
}

.boxImgDesc.small {
  width: 300px;
}

.projectText {
  max-width: 1000px;
}

.projectText p,
.projectText li {
  line-height: 1.7;
}

.projectText ul {
  margin-top: 20px;
  padding-left: 25px;
}

.projectText li {
  margin-bottom: 10px;
}

.projectLink {
  margin-top: 25px;
}

.projectLink a {
  color: #004d99;
  font-weight: bold;
}

.programRow {
  display: flex;
  align-items: stretch;
  gap: 30px;
  margin-bottom: 30px;
}

.programRow .programCard {
  box-sizing: border-box;
  width: calc(50% - 15px);
  padding: 30px;
  background-color: #ffffff;
  border-radius: 20px;
}

.programRow .programCard h3 {
  margin-top: 0;
}

.programRow .programCardDouble {
  box-sizing: border-box;
  width: calc(100% - 15px);
  padding: 30px;
  background-color: #ffffff;
  border-radius: 20px;
}

.programRow .programCardDouble h3 {
  margin-top: 0;
}

.programRow .programCardFull {
  width: 100%;
}

.programIntro {
  width: 100%;
  margin-bottom: 40px;
}

.pillarsGrid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 10px;
}

.pillarCard {
  box-sizing: border-box;
  width: calc(50% - 10px);
  padding: 25px 30px;
  background-color: #ffffff;
  border-radius: 20px;
}

.pillarCard h3 {
  margin-top: 0;
  color: #4CAF50;
}

.pillarCard p {
  margin-bottom: 0;
}

.stepsList {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 10px;
}

.stepItem {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 25px 30px;
  background-color: #ffffff;
  border-radius: 20px;
}

.stepItem .stepNumber {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: bold;
  background-color: #4CAF50;
  border-radius: 50%;
}

.stepItem p {
  margin: 0;
}

.quoteBox {
  margin: 30px 0;
  padding: 40px;
  text-align: center;
  background-color: #ffffff;
  border-radius: 20px;
}

.quoteBox p {
  margin: 0;
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1.5;
}

.quoteBox .quoteContact {
  margin-top: 20px;
  font-size: 1rem;
  font-weight: normal;
}

.quoteBox .quoteContact a {
  color: inherit;
}


.btn {
  display: inline-block;
  margin-top: auto;
  padding: 10px 24px;
  color: #ffffff;
  font-weight: bold;
  text-decoration: none;
  background-color: #4CAF50;
  border-radius: 10px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: #45a049;
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}


@media screen and (max-width: 800px) {
  /* Nawigacja */
  .navbar ul {
    flex-wrap: wrap;
  }

  .navbar .signup {
    margin-left: 0;
  }


  .box_whyInstaKolko.heroSmall {
    padding: 40px 0;
  }

  .heroInner {
    flex-direction: column;
    gap: 25px;
    padding: 0 20px;
    text-align: center;
  }

  .heroContent {
    text-align: center;
  }

  .heroLogo img {
    height: 150px;
  }

  .heroProjectLogo,
  .heroProjectTitle {
    flex: none !important;
    width: 240px !important;
    max-width: 240px !important;
  }

  .heroProjectLogo img,
  .heroProjectTitle img {
    width: auto;
    max-width: 240px !important;
    height: auto;
  }


  .programRow {
    flex-direction: column;
    gap: 20px;
  }

  .programRow .programCard,
  .programRow .programCardFull,
  .programIntro,
  .pillarCard {
    width: 100%;
  }


  .stepItem {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: auto;
  }

  .quoteBox {
    padding: 25px;
  }
}