/* ==================================================
   HOME PAGE
================================================== */

.home-page {
  width: 100%;
  overflow: clip;
}

/* ==================================================
   HOME HERO
================================================== */

.home-hero {
  position: relative;
  z-index: 1;
  margin-top: -96px;
  padding-top: 96px;
  overflow: visible;
  background: var(--Primary-colors-Grey-200);
}

/* HERO ANIMATED BACKGROUND */
.home-hero__background {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.home-hero__blob {
  position: absolute;
  width: 640px;
  height: 640px;
  filter: blur(53.099998474121094px);
  opacity: 0.8;
  transform: translate3d(0, 0, 0);
  will-change: transform, border-radius;
}

.home-hero__blob--one {
  top: -35%;
  left: 50%;
  background: rgba(37, 191, 160, 0.15);
  animation: home-hero-blob-one 8s ease-in-out infinite alternate;
}

.home-hero__blob--two {
  left: calc(50% - 100px + 269px);
  bottom: -20%;
  width: 829px;
  height: 555px;
  background: rgba(113, 89, 237, 0.15);
  animation: home-hero-blob-two 8s ease-in-out infinite alternate;
  animation-delay: -3s;
}

@keyframes home-hero-blob-one {
  0% {
    transform: translate3d(12%, -12%, 0) scale(1);
    border-radius: 44% 56% 63% 37% / 46% 36% 64% 54%;
  }

  50% {
    transform: translate3d(-5%, 5%, 0) scale(1.25);
    border-radius: 62% 38% 42% 58% / 38% 61% 39% 62%;
  }

  100% {
    transform: translate3d(-8%, 8%, 0) scale(0.95);
    border-radius: 36% 64% 55% 45% / 58% 42% 58% 42%;
  }
}

@keyframes home-hero-blob-two {
  0% {
    transform: translate3d(5%, 10%, 0) scale(1.1);
    border-radius: 61% 39% 52% 48% / 42% 58% 42% 58%;
  }

  50% {
    transform: translate3d(-5%, -2%, 0) scale(0.9);
    border-radius: 38% 62% 36% 64% / 62% 38% 62% 38%;
  }

  100% {
    transform: translate3d(2%, -12%, 0) scale(1.1);
    border-radius: 54% 46% 65% 35% / 35% 55% 45% 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__blob {
    animation: none;
  }
}

/* HERO IMAGE */
.home-hero__image {
  position: absolute;
  top: 125px;
  right: calc(50% - 780px + 269px);
  z-index: 1;
  width: 265px;
  height: 666px;
  pointer-events: none;
}

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

.home-hero__container {
  position: relative;
}

.home-hero__layout {
  position: relative;
}

.home-hero__content {
  position: relative;
  z-index: 2;
  grid-column: 1 / span 8;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-block: 144px 168px;
}

.home-hero__title {
  margin: 0;
}

.home-hero__title-main,
.home-hero__title-accent {
  display: inline;
}

.home-hero__description {
  max-width: 670px;
  margin: 40px 0 0;
}

.home-hero__links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
}

.home-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 357px;
  padding: 32px;
  text-decoration: none;
  border: 1px solid var(--Primary-colors-Grey-300);
  border-radius: 25px;
  transition: border-color 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-card__content {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.home-hero-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--Primary-colors-Blue-500);
  border-radius: 50%;
  transition: background-color 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-card__icon img {
  display: block;
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.home-hero-card__label {
  min-width: 0;
  color: var(--Primary-colors-Dark-Blue-700);
  transition: color 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-card__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--Primary-colors-Grey-300);
  border-radius: 50%;
}

.home-hero-card__arrow img {
  transform-origin: center;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.home-hero-card:hover {
  border-color: var(--Primary-colors-Green-500);
}

.home-hero-card:hover .home-hero-card__label {
  color: var(--Primary-colors-Green-500);
}

.home-hero-card:hover .home-hero-card__icon {
  background: var(--Primary-colors-Green-500);
}

.home-hero-card:hover .home-hero-card__arrow img {
  transform: rotate(45deg);
}

/* HERO PULSING POINTS */
.home-hero__circle {
  position: absolute;
  z-index: 2;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
}

.home-hero__circle::before,
.home-hero__circle::after,
.home-hero__circle-inner::before,
.home-hero__circle-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(232, 125, 125, 0.4);
  border-radius: 50%;
  animation: home-hero-circle-pulse 3s linear infinite;
}

.home-hero__circle::before {
  animation-delay: 0s;
}

.home-hero__circle::after {
  animation-delay: 0.75s;
}

.home-hero__circle-inner {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
}

.home-hero__circle-inner::before {
  animation-delay: 1.5s;
}

.home-hero__circle-inner::after {
  animation-delay: 2.25s;
}

.home-hero__circle-cover {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: var(--System-colors-Error-400);
  border-radius: 50%;
  transform: scale(0.6);
}

.home-hero__circle--brain {
  top: 15%;
  left: 25%;
}

.home-hero__circle--spine {
  top: 65%;
  left: 77%;
}

@keyframes home-hero-circle-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }

  100% {
    transform: scale(5);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero__circle::before,
  .home-hero__circle::after,
  .home-hero__circle-inner::before,
  .home-hero__circle-inner::after {
    animation: none;
  }
}

/* ==================================================
   KIM JESTEŚMY
================================================== */

.home-intro {
  position: relative;
  padding-block: 96px 0;
  background: var(--Primary-colors-Grey-200);
}

.home-intro__layout {
  position: relative;
}

.home-intro__left {
  grid-column: 1 / span 5;
  min-width: 0;
}

.home-intro__eyebrow {
  margin: 0;
  color: var(--Primary-colors-Blue-500);
}

.home-intro__title {
  margin: 8px 0 0;
}

.home-intro__title-main,
.home-intro__title-accent {
  display: inline;
}

.home-intro__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 32px;
  overflow: hidden;
  border-radius: 25px;
}

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

.home-intro__right {
  grid-column: 8 / -1;
  min-width: 0;
  padding-top: 40px;
}

.home-intro__description {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-intro__description p {
  margin: 0;
}

.home-intro__support {
  margin-top: 48px;
}

.home-intro__support-title {
  margin: 0;
}

.home-intro__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.home-intro__list li {
  position: relative;
  margin: 0;
  padding-left: 17px;
}

.home-intro__list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--Primary-colors-Blue-500);
  box-shadow: 0 0 6px 0 var(--Primary-colors-Blue-500);
  border-radius: 50%;
  transform: translateY(-50%);
}

/* ==================================================
   ZESPÓŁ WIELOSPECJALISTYCZNY
================================================== */

.home-team {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 70svh;
  background-color: var(--Primary-colors-Grey-200);
}

.home-team::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(
    68% 46% at 50% 50.08%,
    rgba(113, 89, 237, 0.10) 54.38%,
    rgba(113, 89, 237, 0) 100%
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.home-team .site-container {
  position: relative;
  z-index: 1;
}

.home-team__content {
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding-top: 300px;
  padding-bottom: 300px;
  text-align: center;
}

.home-team__eyebrow {
  color: var(--Primary-colors-Blue-500);
}

.home-team__title {
  margin: 8px 0 0;
}

.home-team__specialists {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 12px;
  width: 100%;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.home-team__specialist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.home-team__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--Primary-colors-Grey-100);
}

.home-team__icon svg {
  display: block;
  width: 20px;
  height: 20px;
  color: inherit;
}

.home-team__icon svg [fill]:not([fill="none"]) {
  fill: currentColor;
}

.home-team__icon svg [stroke]:not([stroke="none"]) {
  stroke: currentColor;
}

.home-team__label {
  color: var(--Primary-colors-Dark-Blue-600);
}

/* ==================================================
   CO ZYSKASZ
================================================== */

.home-benefits {
  position: relative;
  padding-block: 0 96px;
  background-color: var(--Primary-colors-Grey-200);
}

.home-benefits__layout {
  position: relative;
}

.home-benefits__heading {
  grid-column: 1 / span 5;
  min-width: 0;
}

.home-benefits__eyebrow {
  margin: 0;
  color: var(--Primary-colors-Blue-500);
}

.home-benefits__title {
  margin: 8px 0 0;
}

.home-benefits__title-main,
.home-benefits__title-accent {
  display: block;
}

.home-benefits__intro {
  grid-column: 8 / -1;
  min-width: 0;
  padding-top: 40px;
}

.home-benefits__intro p {
  margin: 0;
}

.home-benefits__cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin: 96px 0 0;
  padding: 0;
  list-style: none;
}

.home-benefits__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  min-height: 0;
  padding: 32px;
  background-color: var(--Primary-colors-Grey-100);
  border: 1px solid var(--Primary-colors-Grey-300);
  border-radius: 25px;
}

.home-benefits__card-number {
  display: inline-block;
  margin-right: 8px;
  color: var(--Primary-colors-Blue-500);
}

.home-benefits__card-title {
  margin: 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.home-benefits__card-description {
  margin: 8px 0 0;
}

.home-benefits__card--highlight {
  justify-content: center;
}

.home-benefits__callout {
  margin: 0;
  color: var(--Primary-colors-Blue-500);
}


/* ==================================================
   WAŻNA INFORMACJA
================================================== */

.home-reminder {
  position: relative;
  background-color: var(--Primary-colors-Grey-200);
}

.home-reminder__layout {
  position: relative;
}

.home-reminder .card-notice {
  grid-column: 3 / 11;
}

/* ==================================================
   DLACZEGO TO WAŻNE
================================================== */

.home-importance {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  background-color: var(--Primary-colors-Grey-200);
}

.home-importance::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(
    100% 52% at 50% 50.08%,
    rgba(37, 191, 160, 0.10) 54.38%,
    rgba(37, 191, 160, 0.00) 100%
  );
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  pointer-events: none;
}

.home-importance__container {
  position: relative;
  z-index: 1;
}

.home-importance__layout {
  align-items: top;
  padding-block: 396px 271px;
}

.home-importance__heading {
  grid-column: 1 / span 5;
  min-width: 0;
}

.home-importance__eyebrow {
  margin: 0;
  color: var(--Primary-colors-Blue-500);
}

.home-importance__title {
  margin: 8px 0 0;
}

.home-importance__title-main,
.home-importance__title-accent {
  display: inline;
}

.home-importance__content {
  grid-column: 8 / -1;
  min-width: 0;
  padding-top: 40px;
}

.home-importance__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-importance__list li {
  position: relative;
  margin: 0;
  padding-left: 17px;
}

.home-importance__list li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 5px;
  height: 5px;
  background: var(--Primary-colors-Blue-500);
  box-shadow: 0 0 6px 0 var(--Primary-colors-Blue-500);
  border-radius: 50%;
  transform: translateY(-50%);
}

.home-importance__conclusion {
  margin: 32px 0 0 17px;
  color: var(--Primary-colors-Dark-Blue-700);
}

/* ==================================================
   KOGO KONSULTUJEMY
================================================== */

.home-consultations {
  position: relative;
  padding-bottom: 0px;
  background-color: var(--Primary-colors-Grey-200);
}

.home-consultations__heading {
  grid-column: 4 / 10;
  min-width: 0;
  text-align: center;
}

.home-consultations__eyebrow {
  margin: 0;
  color: var(--Primary-colors-Blue-500);
}

.home-consultations__title {
  margin: 8px 0 0;
}

.home-consultations__title-main,
.home-consultations__title-accent {
  display: inline;
}

.home-consultations__list {
  position: relative;
  grid-column: 3 / 11;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.home-consultations__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 20px;
  row-gap: 20px;
  min-width: 0;
  padding: 32px;
  background-color: var(--Primary-colors-Grey-100);
  border: 1px solid var(--Primary-colors-Grey-300);
  border-radius: 25px;
}

.home-consultations__number {
  grid-column: 1;
  grid-row: 1 / span 2;
  color: var(--Primary-colors-Blue-500);
}

.home-consultations__item-title {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.home-consultations__description {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

/* ==================================================
   TABLET / MOBILE
================================================== */

@media (max-width: 1024px) {

  .home-hero {
    display: flex;
    flex-direction: column;
    margin-top: -82px;
    padding-top: 82px;
  }

  .home-hero__container {
    order: 2;
  }

  .home-hero__image {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    order: 3;
    width: 155px;
    height: 390px;
    margin: 72px auto 96px;
    pointer-events: none;
  }

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

  .home-hero__circle {
    position: absolute;
    z-index: 2;
  }

  .home-hero__circle--brain {
    top: 20%;
    left: 43%;
  }

  .home-hero__circle--spine {
    top: 65%;
    left: 77%;
  }

  .home-hero__content {
    grid-column: 1 / -1;
    max-width: none;
    padding-block: 48px 0;
  }

  .home-hero__description {
    max-width: none;
    font-size: 16px;
    margin-top: 24px;
  }

  .home-hero__links {
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin-top: 40px;
  }

  .home-hero-card {
    width: 100%;
    max-width: 100%;
    padding: 24px;
  }

  .home-hero-card__label {
    font-size: 19px;
  }

  .home-hero__blob {
    width: 220px;
    height: 220px;
  }

  .home-hero__blob--one {
    top: 60%;
    left: 50%;
    animation-name: home-hero-blob-one-tablet;
  }

  .home-hero__blob--two {
    z-index: -1;
    left: 50%;
    bottom: 5%;
    width: 350px;
    height: 260px;
    animation-name: home-hero-blob-two-tablet;
  }

  @keyframes home-hero-blob-one-tablet {
    0% {
      transform: translate3d(-50%, -12%, 0) scale(1);
    }

    50% {
      transform: translate3d(-50%, 5%, 0) scale(1.25);
    }

    100% {
      transform: translate3d(-50%, 8%, 0) scale(0.95);
    }
  }

  @keyframes home-hero-blob-two-tablet {
    0% {
      transform: translate3d(-50%, 10%, 0) scale(1.1);
    }

    50% {
      transform: translate3d(-50%, -2%, 0) scale(0.9);
    }

    100% {
      transform: translate3d(-50%, -12%, 0) scale(1.1);
    }
  }

  .home-intro {
    padding-block: 0 0;
  }

  .home-intro__layout {
    position: relative;
  }

  .home-intro__image {
    margin-top: 40px;
  }

  .home-intro__left {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .home-intro__right {
    grid-column: 1 / -1;
    padding-top: 40px;
  }

  /* ZESPÓŁ WIELOSPECJALISTYCZNY */

  .home-team .site-container {
    width: calc(100% - var(--container-mobile-offset));
  }

  .home-team {
    min-height: auto;
    padding-block: 200px;
  }

  .home-team__content {
    grid-column: 1 / -1;
    padding-top: 0;
    padding-bottom: 0;
  }

  .home-team__specialists {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 20px;
    row-gap: 56px;
    max-width: 560px;
    margin-top: 56px;
    padding: 0 20px;
  }

  .home-benefits {
    padding-block: 0 96px;
  }

  .home-benefits__heading {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .home-benefits__intro {
    grid-column: 1 / -1;
    padding-top: 24px;
  }

  .home-benefits__cards {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 64px;
  }

  .home-benefits__card {
    width: 100%;
    padding: 28px;
  }

  .home-benefits__card--highlight {
    justify-content: center;
  }

  .home-reminder {
    padding-block: 0 0;
  }

  .home-reminder .card-notice {
    grid-column: 1 / -1;
  }

  .home-importance__layout {
    padding-block: 200px;
  }

  .home-importance__heading {
    grid-column: 1 / -1;
    min-width: 0;
  }

  .home-importance__content {
    grid-column: 1 / -1;
    padding-top: 24px;
  }

  .home-importance__list {
    gap: 16px;
  }

  .home-importance__conclusion {
    margin: 32px 0 0 17px;
  }

  .home-consultations {
    height: auto;
    padding-bottom: 0px;
  }

  .home-consultations__heading {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: center;
  }

  .home-consultations__list {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 40px;
  }

  .home-consultations__item {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 20px;
    row-gap: 20px;
    padding: 28px;
  }

  .home-consultations--stack-ready {
    height: auto;
  }

  .home-consultations--stack-ready .home-consultations__container {
    position: static;
  }

  .home-consultations--stack-ready .home-consultations__layout {
    align-items: start;
  }

  .home-consultations--stack-ready .home-consultations__list {
    display: flex;
    height: auto;
  }

  .home-consultations--stack-ready .home-consultations__item {
    position: static;
    transform: none;
    will-change: auto;
  }
}

/* ==================================================
   TABLET — GLOBAL CONTAINER WIDTH
================================================== */

@media (min-width: 768px) and (max-width: 1024px) {

  .home-team .site-container {
    width: calc(100% - var(--container-tablet-offset));
  }
}

/* ==================================================
   TABLET / MOBILE — TAP EFFECT
================================================== */

@media (max-width: 1024px) {

  .home-hero-card:hover {
    border-color: var(--Primary-colors-Grey-300);
  }

  .home-hero-card:hover .home-hero-card__label {
    color: var(--Primary-colors-Dark-Blue-700);
  }

  .home-hero-card:hover .home-hero-card__icon {
    background: var(--Primary-colors-Blue-500);
  }

  .home-hero-card:hover .home-hero-card__arrow img {
    transform: none;
  }

  .home-hero-card:active {
    border-color: var(--Primary-colors-Green-500);
  }

  .home-hero-card:active .home-hero-card__label {
    color: var(--Primary-colors-Green-500);
  }

  .home-hero-card:active .home-hero-card__icon {
    background: var(--Primary-colors-Green-500);
  }

  .home-hero-card:active .home-hero-card__arrow img {
    transform: rotate(45deg);
  }

}
