.ec-team-hero {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #080d28;
  color: #ffffff;
}

.ec-team-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ec-team-hero__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: grayscale(.12);
}

.ec-team-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(8, 13, 40, .95) 0%, rgba(8, 13, 40, .72) 44%, rgba(8, 13, 40, .3) 100%),
    linear-gradient(180deg, rgba(8, 13, 40, .28) 0%, rgba(8, 13, 40, .96) 100%);
}

.ec-team-hero__container,
.ec-team-page-intro__container,
.ec-team-page-section__container,
.ec-team-page-cta__container {
  width: min(100% - var(--ec-container-offset) * 2, var(--ec-container));
  margin-left: auto;
  margin-right: auto;
}

.ec-team-hero__container {
  position: relative;
  z-index: 3;
  padding: 42px 0 72px;
}

.ec-team-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-bottom: 48px;
  color: rgba(255, 255, 255, .68);
  font-size: 13px;
  line-height: 1.2;
}

.ec-team-breadcrumbs a {
  color: rgba(255, 255, 255, .72);
  transition: .25s ease;
}

.ec-team-breadcrumbs a:hover {
  color: #f26a21;
}

.ec-team-breadcrumbs span {
  color: #ffffff;
}

.ec-team-breadcrumbs a::after {
  content: "/";
  margin-left: 11px;
  color: rgba(255, 255, 255, .35);
}

.ec-team-hero__content {
  max-width: 900px;
}

.ec-team-hero__eyebrow,
.ec-team-page-intro__label,
.ec-team-page-cta__label {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: #f26a21;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ec-team-hero__eyebrow::after,
.ec-team-page-intro__label::after,
.ec-team-page-cta__label::after {
  content: "";
  width: 72px;
  height: 1px;
  background: #f26a21;
}

.ec-team-hero__title {
  position: relative;
  display: inline-block;
  margin: 0 0 24px;
  padding-bottom: 12px;
  color: #ffffff;
  font-size: 62px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ec-team-hero__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #f26a21;
}

.ec-team-hero__text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 18px;
  line-height: 1.62;
}

.ec-team-page-intro {
  padding: 82px 0 44px;
  background: #ffffff;
  color: #080d28;
}

.ec-team-page-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
  gap: 34px;
  align-items: stretch;
}

.ec-team-page-intro__content {
  padding: 46px 52px;
  border: 1px solid #dfe3ec;
  background: #ffffff;
}

.ec-team-page-intro__title {
  position: relative;
  margin: 0 0 28px;
  padding-bottom: 18px;
  color: #080d28;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.ec-team-page-intro__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 250px;
  max-width: 100%;
  height: 2px;
  background: #f26a21;
}

.ec-team-page-intro__text p {
  max-width: 900px;
  margin: 0 0 18px;
  color: #4f586b;
  font-size: 16px;
  line-height: 1.72;
}

.ec-team-page-intro__text p:last-child {
  margin-bottom: 0;
}

.ec-team-gallery {
  min-width: 0;
  background: #080d28;
  overflow: hidden;
}

.ec-team-gallery-slider {
  position: relative;
  height: 100%;
  min-height: 560px;
  overflow: hidden;
}

.ec-team-gallery-slider .swiper-slide {
  height: auto;
}

.ec-team-gallery-slider img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  display: block;
  object-fit: cover;
  object-position: center top;
}

.ec-team-gallery__nav {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  height: 60px;
}

.ec-team-gallery__btn {
  border: 0;
  background: #080d28;
  color: #f26a21;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: .25s ease;
}

.ec-team-gallery__btn:hover {
  background: #f26a21;
  color: #ffffff;
}

.ec-team-gallery__progress {
  position: relative;
  align-self: center;
  overflow: hidden;
  height: 2px;
  margin: 0 20px;
  background: rgba(255, 255, 255, .2);
}

.ec-team-gallery__progress .swiper-pagination-progressbar-fill {
  background: #f26a21;
}

.ec-team-page-section {
  padding: 44px 0;
  background: #ffffff;
  color: #080d28;
}

.ec-team-page-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 34px;
  margin-bottom: 34px;
}

.ec-team-page-section__title {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  color: #080d28;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ec-team-page-section__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 250px;
  max-width: 100%;
  height: 2px;
  background: #f26a21;
}

.ec-team-page-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.ec-team-card--department {
  min-height: 420px;
}

.ec-team-card--department .ec-team-card__content {
  padding: 0 20px 18px;
}

.ec-team-card--department:hover .ec-team-card__content {
  transform: translateY(-72px);
}

.ec-team-card--department .ec-team-card__email {
  font-size: 13px;
  overflow-wrap: anywhere;
}

.ec-team-card--department .ec-team-card__bottom {
  font-size: 16px;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.ec-team-page-cta {
  padding: 44px 0 88px;
  background: #ffffff;
}

.ec-team-page-cta__container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 42px 46px;
  background:
    linear-gradient(90deg, rgba(8, 13, 40, .94), rgba(8, 13, 40, .84)),
    url("../img/dsc_6757.jpg.webp") center / cover no-repeat;
  color: #ffffff;
}

.ec-team-page-cta__title {
  margin-bottom: 14px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 800;
  text-transform: uppercase;
}

.ec-team-page-cta__text {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 15px;
  line-height: 1.6;
}

.ec-team-page-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 48px;
  padding: 13px 26px;
  border: 1px solid #f26a21;
  background: #f26a21;
  color: #ffffff;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  transition: .25s ease;
}

.ec-team-page-cta__btn:hover {
  background: transparent;
  color: #ffffff;
}

@media (max-width: 1199px) {
  .ec-team-page-intro__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr);
  }

  .ec-team-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ec-team-card--department {
    min-height: 390px;
  }
}

@media (max-width: 991px) {
  .ec-team-hero {
    min-height: 420px;
  }

  .ec-team-hero__container {
    padding: 34px 0 58px;
  }

  .ec-team-hero__title {
    font-size: 46px;
  }

  .ec-team-page-intro {
    padding: 58px 0 34px;
  }

  .ec-team-page-intro__grid {
    grid-template-columns: 1fr;
  }

  .ec-team-gallery-slider,
  .ec-team-gallery-slider img {
    min-height: 460px;
  }

  .ec-team-page-section {
    padding: 34px 0;
  }

  .ec-team-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ec-team-card--department {
    min-height: 430px;
  }

  .ec-team-page-cta {
    padding: 34px 0 58px;
  }

  .ec-team-page-cta__container {
    grid-template-columns: 1fr;
  }

  .ec-team-page-cta__btn {
    width: fit-content;
  }
}

@media (max-width: 575px) {
  .ec-team-hero {
    min-height: 390px;
  }

  .ec-team-breadcrumbs {
    margin-bottom: 34px;
    font-size: 12px;
  }

  .ec-team-hero__title {
    font-size: 34px;
  }

  .ec-team-hero__text {
    font-size: 15px;
  }

  .ec-team-page-intro {
    padding: 44px 0 28px;
  }

  .ec-team-page-intro__content {
    padding: 28px 22px;
  }

  .ec-team-page-intro__title {
    font-size: 25px;
  }

  .ec-team-page-intro__title::after,
  .ec-team-page-section__title::after {
    width: 170px;
  }

  .ec-team-gallery-slider,
  .ec-team-gallery-slider img {
    min-height: 420px;
  }

  .ec-team-page-section {
    padding: 28px 0;
  }

  .ec-team-page-section__title {
    font-size: 27px;
  }

  .ec-team-page-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ec-team-card--department {
    min-height: 430px;
  }

  .ec-team-page-cta {
    padding: 28px 0 44px;
  }

  .ec-team-page-cta__container {
    padding: 30px 22px;
  }

  .ec-team-page-cta__title {
    font-size: 22px;
  }

  .ec-team-page-cta__btn {
    width: 100%;
  }
}