.team {
  --p-top: 60px;
  padding-top: calc(var(--scroll-padding-top) + var(--p-top));
}

.team__container {
  flex-direction: column;
  gap: 40px;
  display: flex;
}

.team__text {
  text-align: center;
}

.team-swiper {
  margin-bottom: 40px;
  overflow: visible;
}

.team-member {
  flex-direction: column;
  gap: 10px;
  display: flex;
}

.team-member__img {
  object-fit: cover;
  border-radius: 20px;
  width: 100%;
  height: 312px;
}

.team-member__name {
  width: fit-content;
  height: 34px;
  color: var(--color-white);
  letter-spacing: 0.32px;
  background: var(--color-secondary-light-blue);
  backdrop-filter: blur(10px);
  border-radius: 9px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 86%;
  display: flex;
}

@media (width <= 1439px) {
  .team-swiper-btn-wrap {
    display: none;
  }
}

@media (width >= 768px) {
  .team-member__img {
    height: 428px;
  }
}

@media (width >= 1440px) {
  .team__text {
    max-width: 860px;
    margin-top: -10px;
    font-size: 24px;
  }

  .team-pagination {
    display: none;
  }

  .team-member__img {
    height: 428px;
  }
}

.storyblocks__list {
  gap: 20px;
  display: grid;
}

.storyblock--base {
  background: var(--color-section-bg);
  border-radius: 20px;
  padding: 10px;
  line-height: 130%;
}

.storyblock--base span {
  font-weight: 900;
}

.story__title {
  margin-bottom: 10px;
}

.story__img {
  object-fit: cover;
  border-radius: 10px;
  width: 100%;
  height: auto;
}

@media (width <= 1439px) {
  .storyblock--main .story__title,
  .storyblock--main .story__text {
    text-align: center;
  }

  .storyblock--img {
    grid-row: 2 / 3;
    margin: 10px 0;
  }

  .story__text {
    max-width: 220px;
    margin: 0 auto;
  }
}

@media (width >= 768px) {
  .storyblocks__list {
    grid-template-columns: 1fr 1fr;
  }

  .storyblock {
    grid-row: auto;
  }

  .storyblock:nth-of-type(2) {
    grid-area: 2 / 1 / 4 / 2;
  }

  .storyblock:nth-of-type(3) {
    grid-area: 1 / 2 / 3 / 3;
  }

  .storyblock:nth-of-type(4) {
    grid-area: 3 / 2 / 4 / 3;
  }

  .storyblock--img {
    grid-column: 1 / 3;
  }
}

@media (width >= 1440px) {
  .story {
    padding: 20px;
  }

  .storyblocks__list {
    grid-row: auto;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .storyblock {
    grid-row: auto;
    font-size: 24px;
  }

  .storyblock:nth-of-type(2) {
    grid-area: 2 / 1 / 4 / 2;
  }

  .storyblock:nth-of-type(3) {
    grid-area: 1 / 2 / 3 / 3;
  }

  .storyblock:nth-of-type(4) {
    grid-area: 3 / 2 / 4 / 3;
  }

  .storyblock--base {
    padding: 40px;
  }

  .storyblock--img {
    grid-column: 1 / 3;
    margin-top: 140px;
  }

  .story__title {
    margin-bottom: 22px;
  }

  .story__text {
    max-width: 500px;
  }

  .story__img {
    border-radius: 20px;
  }
}
