.px-team {
  max-width: var(--maxWidth);
  margin: 0 auto;
  width: var(--baseWidth);
  padding-top: 115px;
  position: relative;
}
@media screen and (max-width: 1024px) {
  .px-team {
    padding-top: 40px;
  }
}
@media screen and (max-width: 600px) {
  .px-team {
    padding-top: 0;
  }
}
.px-team .headline {
  margin-bottom: 20px;
  padding-right: 328px;
}
@media screen and (max-width: 1024px) {
  .px-team .headline {
    padding-right: 200px;
  }
}
@media screen and (max-width: 600px) {
  .px-team .headline {
    padding-right: 0;
  }
}
.px-team .team-filter {
  display: flex;
  gap: clamp(0.5555555556rem, 0.1051051051rem + 2.5337837838vw, 2.2222222222rem);
  flex-wrap: wrap;
}
.px-team .team-filter .filter-btn {
  color: var(--contrastColorInverted);
  cursor: pointer;
  transition: var(--baseTransition);
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 2.25px;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
}
.px-team .team-filter .filter-btn:hover {
  color: var(--mainColorLightest);
}
.px-team .team-filter .filter-btn.active {
  color: var(--contrastColorInverted);
  text-decoration: underline;
}
.px-team .team-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
  margin: 0 auto;
}
.px-team .team-items.small-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}
.px-team .team-items.small-grid .team-item {
  aspect-ratio: 1;
}
.px-team .team-items.small-grid .team-item .image .name {
  padding: 25px;
  padding-top: 100px;
  font-size: 16px;
}
.px-team .team-items .team-item {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}
.px-team .team-items .team-item.show {
  display: block;
}
.px-team .team-item {
  cursor: pointer;
  transition: var(--baseTransition);
  text-decoration: none;
  color: inherit;
  aspect-ratio: 1;
  border-radius: var(--borderRadius);
  overflow: hidden;
}
.px-team .team-item:hover .image .name {
  transform: translateY(0);
  opacity: 1;
}
.px-team .team-item .image {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.px-team .team-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}
.px-team .team-item .image .name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: var(--greenBlack);
  color: var(--contrastColorInverted);
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}
.px-team .team-item .image .name.name-reversed .word-reversed {
  display: inline-block;
  direction: rtl;
  unicode-bidi: bidi-override;
}
.px-team .team-item:hover:not(.team-item-you) .name {
  transform: translateY(0);
  opacity: 1;
}
.px-team .team-item.team-item-you {
  background: var(--contrastColorInverted);
}
.px-team .team-item.team-item-you .image {
  background: var(--contrastColorInverted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.px-team .team-item.team-item-you .image::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 6.06%, rgba(255, 255, 255, 0.3) 14.83%, rgba(255, 255, 255, 0.5) 32.38%, rgba(255, 255, 255, 0.7) 41.15%, rgba(255, 255, 255, 0.8) 49.92%, rgba(255, 255, 255, 0.9) 58.7%, #FFF 67.47%, #FFF 76.24%);
}
.px-team .team-item.team-item-you .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.px-team .team-item.team-item-you .image .link-text {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: var(--greenBlack);
  color: var(--contrastColorInverted);
  text-align: center;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.3s ease-out, opacity 0.2s ease-out;
}
.px-team .team-item.team-item-you:hover .image .link-text {
  transform: translateY(0);
  opacity: 1;
}
.px-team .filter-section {
  display: flex;
  gap: 20px clamp(1.1111111111rem, 0.5105105105rem + 3.3783783784vw, 3.3333333333rem);
  padding-right: 328px;
  margin-bottom: clamp(1.1111111111rem, 0.5105105105rem + 3.3783783784vw, 3.3333333333rem);
}
@media screen and (max-width: 1024px) {
  .px-team .filter-section {
    padding-right: 210px;
    position: relative;
  }
}
@media screen and (max-width: 960px) {
  .px-team .filter-section {
    flex-direction: column;
  }
}
@media screen and (max-width: 600px) {
  .px-team .filter-section {
    padding-right: 0;
  }
}
.px-team .filter-section .head-image {
  position: absolute;
  top: -10px;
  right: 0;
  width: 328px;
  height: 228px;
}
@media screen and (max-width: 1024px) {
  .px-team .filter-section .head-image {
    width: 200px;
    height: 140px;
    top: unset;
    bottom: 0;
  }
}
@media screen and (max-width: 600px) {
  .px-team .filter-section .head-image {
    display: none;
  }
}
.px-team .filter-section .head-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.px-team .name-toggle {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.px-team .name-toggle .toggle-label {
  color: var(--contrastColorInverted);
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}
.px-team .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 22px;
}
.px-team .switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.px-team .switch input:checked + .slider {
  background-color: var(--mainColorLighter_2);
}
.px-team .switch input:checked + .slider:before {
  transform: translateX(26px);
}
.px-team .switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--contrastColorInverted);
  transition: 0.4s;
  border-radius: 34px;
}
.px-team .switch .slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 2px;
  bottom: 2px;
  background-color: var(--mainColor);
  transition: 0.4s;
  border-radius: 50%;
}
.px-team.show-names .team-item .name, .px-team.show-names .team-item .link-text {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
@media screen and (max-width: 1300px) {
  .px-team .team-items {
    grid-template-columns: repeat(4, 1fr);
  }
  .px-team .team-items.small-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .px-team .team-items {
    grid-template-columns: repeat(2, 1fr);
  }
  .px-team .team-items.small-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.team-popup-content {
  position: relative;
  background: var(--contrastColorInverted);
  width: 92%;
  max-width: var(--maxWidth);
  margin: 40px auto;
  padding: clamp(1.1111111111rem, 0.5105105105rem + 3.3783783784vw, 3.3333333333rem);
  border-radius: 10px;
}
.team-popup-content .team-top-section {
  display: flex;
  gap: 0 46px;
  margin-bottom: 13px;
}
.team-popup-content .team-top-section .team-top-left-section {
  flex: 1;
}
.team-popup-content .team-top-section .team-image-container {
  position: relative;
  max-height: 568px;
}
.team-popup-content .team-top-section .team-image-container::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 22.89%, rgba(255, 255, 255, 0.5) 76.89%, #FFF 88.89%);
}
.team-popup-content .team-top-section img {
  max-width: 363px;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
@media screen and (max-width: 1024px) {
  .team-popup-content .team-top-section {
    flex-direction: column;
  }
  .team-popup-content .team-top-section img {
    aspect-ratio: 1;
    object-position: top;
    max-width: 200px;
    display: none;
  }
}
.team-popup-content .team-title {
  color: var(--mainColor, #007C60);
  font-size: clamp(1.1111111111rem, 0.960960961rem + 0.8445945946vw, 1.6666666667rem);
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  margin-bottom: 10px;
}
.team-popup-content .team-title.team-title-reversed .word-reversed {
  display: inline-block;
  direction: rtl;
  unicode-bidi: bidi-override;
}
.team-popup-content .team-position {
  color: var(--fontColor, #808285);
  font-size: clamp(1rem, 0.954954955rem + 0.2533783784vw, 1.1666666667rem);
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  margin-bottom: 0;
}
.team-popup-content .team-text {
  font-size: clamp(0.8888888889rem, 0.8138138138rem + 0.4222972973vw, 1.1666666667rem);
  margin-bottom: clamp(1.1111111111rem, 0.8108108108rem + 1.6891891892vw, 2.2222222222rem);
  margin-top: clamp(1.1111111111rem, 0.8108108108rem + 1.6891891892vw, 2.2222222222rem);
}
.team-popup-content .team-bottom-section {
  display: flex;
  gap: clamp(1.1111111111rem, 0.7207207207rem + 2.1959459459vw, 2.5555555556rem);
  justify-content: space-between;
}
@media screen and (max-width: 1024px) {
  .team-popup-content .team-bottom-section {
    flex-direction: column;
  }
}
.team-popup-content .team-skills {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-bottom: 5px;
}
.team-popup-content .team-skills .team-skill {
  display: flex;
  gap: 0px 28px;
  font-size: clamp(1rem, 0.8948948949rem + 0.5912162162vw, 1.3888888889rem);
  font-style: normal;
  font-weight: 700;
  color: var(--mainColor);
}
.team-popup-content .team-skills .team-skill img {
  max-width: 100%;
}
@media screen and (max-width: 600px) {
  .team-popup-content .team-skills .team-skill {
    flex-direction: column;
  }
}
.team-popup-content .team-trust img {
  max-width: 180px;
  height: auto;
}
.team-popup-content .team-badges {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  max-width: 363px;
  flex-wrap: wrap;
  gap: 20px;
}
.team-popup-content .team-badges .team-badge {
  display: flex;
  background-color: var(--mainColorLighter_2);
  align-items: center;
  height: fit-content;
  border-radius: 50px;
  gap: 5px;
  padding-right: 24px;
  width: fit-content;
}
.team-popup-content .team-badges .team-badge-years {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--mainColor);
  border-radius: 50%;
  color: var(--contrastColorInverted);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.team-popup-content .team-badges .team-badge-text {
  color: var(--mainColor);
  font-size: 21px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
}
@media screen and (max-width: 1300px) {
  .team-popup-content .team-badges {
    flex-direction: column;
    justify-content: flex-start;
    flex-grow: unset;
  }
}
@media screen and (max-width: 768px) {
  .team-popup-content {
    padding: 25px;
    margin: 20px;
    width: calc(100% - 40px);
  }
  .team-popup-content .team-top-section {
    flex-direction: column;
  }
  .team-popup-content .team-top-section img {
    width: 100%;
    height: 300px;
  }
  .team-popup-content .team-skills {
    grid-template-columns: 1fr;
  }
  .team-popup-content .team-badges {
    flex-wrap: wrap;
    justify-content: center;
  }
}
.mfp-fade.mfp-bg {
  opacity: 0;
  transition: var(--baseTransition);
}
.mfp-fade.mfp-bg.mfp-ready {
  opacity: 0.9;
}
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s ease-out;
}
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
  transform: translateY(0);
}
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
  transform: translateY(-20px);
}
