/* team PAGE */

/* team-title-area */

.team-title-area {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  margin-top: 70px;
  position: relative;
  gap: 0;
  background: #9fcffa;
}

.team-title-area-breadcrumbs {
  background: #f2f2f2;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 1;
}

.team-title-area-breadcrumbs .breadcrumbs-list {
  padding-left: 0;
}

.team-title-area-content {
  display: flex;
  height: 500px;
  align-items: flex-end;
}

.team-title-text {
  padding: 67px 0 92px;
  background: #1f377b;
  position: relative;
  color: #fff;
  width: 100%;
}

.team-title-text:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  bottom: 0;
  left: -100%;
  background: inherit;
}

.team-title-text:after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: -100%;
  right: -100%;
  background: inherit;
}

.team-title {
  font-size: 164px;
  font-weight: 500;
  line-height: 1;
  transform: translateX(-10px);
}

.team-text {
  padding-top: 6px;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.4;
  width: 80%;
}

@media (max-width: 1024px) {
  .team-title-area-content {
    height: 425px;
  }

  .team-title-text {
    padding: 26px 0 60px;
  }

  .team-title {
    font-size: 104px;
  }

  .team-text {
    font-size: 18px;
    width: 60%;
  }
}

@media (max-width: 767px) {
  .team-title-area-content {
    height: 340px;
  }

  .team-title-text {
    padding: 33px 0 43px;
  }

  .team-title {
    font-size: 64px;
  }

  .team-text {
    font-size: 16px;
    width: 100%;
  }
}

/* team-listing */

.team-listing {
  padding: 78px 0 134px;
  background: #9fcffa;
}

.team-listing-content {
  display: flex;
  flex-direction: column;
  gap: 56px;
}

.team-list {
  display: flex;
  flex-direction: column;
  gap: 47px;
}

.team-list-title-area {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.team-item {
  display: flex;
  flex-direction: column;
}

.team-item-photo-area {
  height: 330px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.team-item-photo {
  position: absolute;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.team-item-info {
  width: 100%;
  background: #fff;
  padding: 14px 17px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: #000;
}

.team-item-name {
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}

.team-item-desc {
  font-size: 16px;
  line-height: 1.2;
  font-weight: 400;
  min-height: 60px;
}

.team-item-link {
  opacity: 0.5;
  text-decoration: none;
  font-size: 16px;
  line-height: 1;
  font-weight: 400;
}

.team-item-link:hover {
  text-decoration: underline;
}

/* ===== TEAM GRID MODE ===== */

.team-list.is-grid .team-slider {
  overflow: visible;
}

.team-list.is-grid .swiper-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  row-gap: 20px;
  transform: none !important;
}

.team-list.is-grid .swiper-slide {
  width: calc((100% - 16px) / 3); /* 3 в ряд */
  flex: 0 0 auto;
}

/* навигация скрываем */
.team-list.is-grid .team-swiper-prev,
.team-list.is-grid .team-swiper-next {
  display: none;
}

@media (max-width: 1024px) {
  .team-listing {
    overflow: hidden;
    padding: 40px 0 64px;
  }

  .team-slider {
    width: 100%;
    overflow: visible;
  }

  .team-item-photo-area {
    height: 300px;
  }

  .team-item-name {
    font-size: 20px;
  }

  .team-item-desc,
  .team-item-link {
    font-size: 14px;
  }
}

@media (max-width: 820px) {
    .team-item-photo-area {
      height: 225px;
    }
    
    .team-item-desc {
        min-height: 70px;
    }
}

@media (max-width: 767px) {
  .team-list {
    position: relative;
    padding-bottom: 70px;
  }

  .team-slider-navigation {
    position: absolute;
    bottom: 0;
    left: 0;
  }
}

/* CTA */

.cta {
  height: 100vh;
  background: #6c2f16;
  position: relative;
}

.inner-cta {
  padding: 92px 0;
}

.inner-cta .cta-content {
  width: 100%;
  background: red;
  position: relative;
  overflow: hidden;
  max-height: 640px;
}

.cta-bg {
  background: #6c2f16;
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.cta-bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  z-index: 0;
}

.cta-content {
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  position: relative;
}

.cta-slogan {
  color: #fff;
  font-size: 76px;
  line-height: 1;
  max-width: 1000px;
  text-align: center;
  font-weight: 600;
  z-index: 3;
}

.cta-btn {
  background-color: transparent;
  box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 0.1) inset;
  -webkit-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  -moz-box-shadow: 0px 0px 0px 1px rgba(255, 255, 255, 1) inset;
  z-index: 3;
}

@media (max-width: 1024px) {
  .cta {
    height: 50vh;
  }

  .cta-slogan {
    font-size: 64px;
  }

  .inner-cta {
    padding: 64px 0;
  }
  
  .cta-content {
      max-height: 50vh;
  }
}

@media (max-width: 820px) {
  .cta-slogan {
    font-size: 54px;
  }

  .inner-cta .cta-content {
    max-height: 480px;
  }
}

@media (max-width: 767px) {
  .cta-slogan {
    font-size: 44px;
  }

  .cta-btn {
    font-size: 12px;
    padding: 20px;
  }

  .inner-cta {
    padding: 44px 0;
  }

  .inner-cta .cta-content {
    max-height: 300px;
  }
  
  .cta-content {
      max-height: 50vh;
  }

  .inner-cta .cta-slogan {
    font-size: 32px;
    max-width: 90%;
  }
}

/* --- CTA --- */

