/* ==================================================
   O NAS PAGE
================================================== */

.about-page {
  position: relative;
  isolation: isolate;
  width: 100%;
  overflow: clip;
  background-color: var(--Primary-colors-Grey-200);
}


/* ==================================================
   O NAS INTRO
================================================== */

.about-intro {
  position: relative;
  margin-top: -96px;
  padding-top: 96px;
}

.about-intro__container {
  position: relative;
}

.about-intro__layout {
  position: relative;
  padding-block: 144px 168px;
}

.about-intro__content {
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

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

.about-intro__title {
  margin: 8px 0 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.about-intro__title-accent {
  margin-top: 0;
}

.about-intro__description {
  margin: 40px 0 0;
  color: var(--Primary-colors-Dark-Blue-600);
}


/* ==================================================
   O NAS ANIMATED BACKGROUND
================================================== */

.about-page__background {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: visible;
  pointer-events: none;
}

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

.about-page__blob--one {
  top: -320px;
  left: 25%;
  background: rgba(37, 191, 160, 0.15);
  animation: about-page-blob-one 8s ease-in-out infinite alternate;
}

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


/* ==================================================
   BLOB ANIMATIONS
================================================== */

@keyframes about-page-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 about-page-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%;
  }
}


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

.about-team {
  position: relative;
}

.about-team__container {
  position: relative;
  margin-bottom: 168px;
}

.about-team__layout {
  align-items: start;
}

.about-team__heading {
  grid-column: 1 / 6;
  min-width: 0;
}

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

.about-team__title {
  margin: 8px 0 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.about-team__title span,
.about-team__title em {
  display: inline;
}

.about-team__description {
  grid-column: 8 / 13;
  margin-top: 37px;
  min-width: 0;
  color: var(--Primary-colors-Dark-Blue-600);
}

.about-team__description p {
  margin: 0;
}

.about-team__cards {
  position: relative;
  grid-column: 3 / 11;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin: 96px 0 0;
  padding: 0;
}

.about-team__card {
  display: flex;
  align-items: flex-start;
  width: 100%;
  padding: 32px 32px;
  border: 1px solid var(--Primary-colors-Grey-300);
  border-radius: 25px;
  background-color: var(--Primary-colors-Grey-100);
}

.about-team__card-marker {
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  margin-top: 10px;
  margin-right: 32px;
  border-radius: 50%;
  background-color: var(--Primary-colors-Blue-500);
  box-shadow: 0 0 6px 0 var(--Primary-colors-Blue-500);
}

.about-team__card-content {
  min-width: 0;
}

.about-team__card-title {
  margin: 0;
  color: var(--Primary-colors-Blue-500);
}

.about-team__card-text {
  margin: 20px 0 0;
}


/* ==================================================
   KIM JESTEŚMY — BLOBS
================================================== */

.about-team__blob {
  position: absolute;

  width: 640px;
  height: 640px;

  filter: blur(53.099998474121094px);
  opacity: 0.8;

  pointer-events: none;

  transform: translate3d(0, 0, 0);
  will-change: transform, border-radius;
}


.about-team__blob--pink {
  top: 1%;
  left: calc(100% - 40px);

  background: rgba(113, 89, 237, 0.15);

  animation:
    about-team-blob-pink 8s ease-in-out infinite alternate;
}


.about-team__blob--green {
  bottom: 0%;
  right: calc(100% - 50px);

  background: rgba(37, 191, 160, 0.15);

  animation:
    about-team-blob-green 8s ease-in-out infinite alternate;

  animation-delay: -3s;
}


/* ==================================================
   BLOB ANIMATIONS
================================================== */

@keyframes about-team-blob-pink {

  0% {
    transform:
      translate3d(8%, -8%, 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 about-team-blob-green {

  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%;
  }

}


/* ==================================================
   WSPÓŁPRACUJĄCE OŚRODKI
================================================== */

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

.about-centers__container {
  position: relative;
  padding-top: 96px;
  margin-bottom: 168px;
}

.about-centers__layout {
  align-items: start;
}

.about-centers__heading {
  grid-column: 4 / 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

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

.about-centers__title {
  margin: 8px 0 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.about-centers__title span,
.about-centers__title em {
  display: inline;
}

.about-centers__cards {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
  margin-top: 96px;
}

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

.about-centers__logo {
  display: flex;
  align-items: center;
  height: 48px;
  margin-bottom: auto;
}

.about-centers__name {
  margin: 24px 0 0;
  color: var(--Primary-colors-Dark-Blue-600);
}


/* ==================================================
   NASZ ZESPÓŁ
================================================== */

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

.about-doctors__blob {
  position: absolute;
  width: 640px;
  height: 640px;
  filter: blur(53.099998474121094px);
  opacity: 0.8;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  will-change: transform, border-radius;
}

.about-doctors__blob--pink {
  top: 6%;
  left: calc(100% - 40px);
  background: rgba(113, 89, 237, 0.15);
  animation: about-doctors-blob-pink 8s ease-in-out infinite alternate;
}

.about-doctors__blob--green {
  bottom: 5%;
  right: calc(100% - 50px);
  background: rgba(37, 191, 160, 0.15);
  animation: about-doctors-blob-green 8s ease-in-out infinite alternate;
  animation-delay: -3s;
}


/* ==================================================
   BLOB ANIMATIONS
================================================== */

@keyframes about-doctors-blob-pink {
  0% {
    transform:
      translate3d(8%, -8%, 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 about-doctors-blob-green {
  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%;
  }
}


/* ==================================================
   NASZ ZESPÓŁ — INTRO
================================================== */

.about-doctors__container {
  position: relative;
  padding-top: 96px;
  margin-bottom: 168px;
}

.about-doctors__intro {
  align-items: start;
}

.about-doctors__heading {
  grid-column: 1 / 6;
  min-width: 0;
}

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

.about-doctors__title {
  margin: 8px 0 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.about-doctors__description {
  grid-column: 8 / 13;
  margin-top: 37px;
  min-width: 0;
  color: var(--Primary-colors-Dark-Blue-600);
}

.about-doctors__description p {
  margin: 0;
}


/* ==================================================
   SPECIALTY
================================================== */

.about-doctors__specialty {
  grid-column: 1 / -1;
  margin-top: 192px;
}

.about-doctors__specialty-heading {
  display: flex;
  align-items: center;
  gap: 22px;
}

.about-doctors__specialty-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background-color: var(--Primary-colors-Blue-500);
}

.about-doctors__specialty-icon img {
  display: block;
  width: 15px;
  height: 20px;
  object-fit: contain;
}

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


/* ==================================================
   DOCTOR CARDS
================================================== */

.about-doctors__cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}

.about-doctors__card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--Primary-colors-Grey-300);
  border-radius: 25px;
  background-color: var(--Primary-colors-Grey-100);
}

.about-doctors__photo {
  width: 100%;
  aspect-ratio: 23 / 25;
  overflow: hidden;
}

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

.about-doctors__card-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 32px 32px 32px;
}

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

.about-doctors__name {
  margin: 8px 0 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.about-doctors__quote {
  margin: 22px 0 0;
  color: var(--Primary-colors-Dark-Blue-600);
}


/* ==================================================
   PATRONAT
================================================== */

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

.about-patronage__container {
  position: relative;
}

.about-patronage__layout {
  align-items: start;
  padding-top: 96px;
  margin-bottom: 0px;
}

.about-patronage__heading {
  grid-column: 1 / 6;
  min-width: 0;
}

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

.about-patronage__title {
  margin: 8px 0 0;
  color: var(--Primary-colors-Dark-Blue-700);
}

.about-patronage__title span,
.about-patronage__title em {
  display: inline;
}

.about-patronage__list {
  grid-column: 7 / 13;
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
  margin-top: 37px;
}

.about-patronage__item {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.about-patronage__logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 210px;
  height: 56px;
  min-width: 0;
}

.about-patronage__logo img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 56px;
  height: auto;
}

.about-patronage__text {
  margin: 0;
  color: var(--Primary-colors-Dark-Blue-600);
}



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

@media (max-width: 1024px) {

  /* ==================================================
     O NAS
  ================================================== */

  .about-page {
    overflow: clip;
  }

  .about-intro {
    margin-top: -82px;
    padding-top: 82px;
  }

  .about-intro__layout {
    padding-block: 48px 0;
  }

  .about-intro__content {
    grid-column: 1 / -1;
    max-width: none;
    text-align: center;
  }

  .about-intro__description {
    margin-top: 24px;
    font-size: 16px;
  }

  .about-page__blob {
    width: 220px;
    height: 220px;
  }

  .about-page__blob--one {
    top: 1%;
    left: 50%;
    animation-name: about-page-blob-one-tablet;
  }

  @keyframes about-page-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);
    }
  }


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

  .about-team__container {
    margin-bottom: 120px;
  }

  .about-team__layout {
    margin-top: 120px;
  }

  .about-team__heading {
    grid-column: 1 / -1;
  }

  .about-team__description {
    grid-column: 1 / -1;
    margin-top: 24px;
  }

  .about-team__cards {
    grid-column: 1 / -1;
    margin-top: 64px;
  }

  .about-team__card {
    padding: 28px;
  }

  .about-team__blob {
    width: 220px;
    height: 220px;
  }

  .about-team__blob--pink {
    top: 10%;
    right: -30%;
  }

  .about-team__blob--green {
    bottom: 10%;
    left: -30%;
  }


  /* ==================================================
     WSPÓŁPRACUJĄCE OŚRODKI
  ================================================== */

  .about-centers__container {
    padding-top: 0px;
    margin-bottom: 120px;
  }

  .about-centers__heading {
    grid-column: 1 / -1;
  }

  .about-centers__cards {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
    margin-top: 40px;
  }

  .about-centers__card {
    min-height: 225px;
    padding: 28px;
  }


  /* ==================================================
     NASZ ZESPÓŁ
  ================================================== */

  .about-doctors__container {
    margin-bottom: 120px;
    padding-top: 0;
  }

  .about-doctors__heading {
    grid-column: 1 / -1;
  }

  .about-doctors__description {
    grid-column: 1 / -1;
    margin-top: 24px;
  }

  .about-doctors__specialty {
    margin-top: 96px;
  }

  .about-doctors__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-doctors__card-content {
    padding: 28px;
  }

  .about-doctors__blob {
    width: 220px;
    height: 220px;
  }

  .about-doctors__blob--pink {
    top: 10%;
    right: -30%;
  }

  .about-doctors__blob--green {
    bottom: 10%;
    right: -30%;
  }


  /* ==================================================
     PATRONAT
  ================================================== */

  .about-patronage__layout {
    margin-top: 0px;
    padding-top: 0px;
    margin-bottom: 0px;
  }

  .about-patronage__heading {
    grid-column: 1 / -1;
  }

  .about-patronage__description {
    margin-top: 24px;
  }

  .about-patronage__list {
    grid-column: 1 / -1;
    margin-top: 64px;
  }

  .about-patronage__item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-patronage__logo {
    width: 100%;
  }
}


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

@media (max-width: 767px) {

  .about-doctors__cards {
    grid-template-columns: 1fr;
  }
}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

  .about-page__blob,
  .about-team__blob,
  .about-doctors__blob {
    animation: none;
  }

  .about-centers__card,
  .about-doctors__card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
