.staff-section {
  margin: 30px 0;
}

.staff-section__title {
  font-size: 25px;
  font-weight: bold;
  margin-bottom: 30px;
}

.staff {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: 10px 0 30px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.staff::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.staff__item {
  flex: 0 0 calc(33.333% - 14px);
  min-width: calc(33.333% - 14px);
  background: #fff;
  border-radius: 5px;
  border: 1px solid #979797;
  padding: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.staff__item:hover {
  transform: translateY(-5px);
}

.staff__photo {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
}

.staff__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.staff__item:hover .staff__photo img {
  transform: scale(1.05);
}

.staff__photo--no-image {
  background: #e9ecef;
}

.staff__no-photo-text {
  color: #6c757d;
  font-size: 14px;
  font-style: italic;
}

.staff__info {
  padding: 10px 5px;
}

.staff__name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
  color: #000;
}

.staff__position {
  font-size: 15px;
  color: #666;
  line-height: 1.4;
}

.staff__arrows {
  position: relative;
  margin-top: 20px;
  display: none;
}

.staff__arrow {
  position: absolute;
  top: -220px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #000;
  z-index: 2;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.staff__arrow:hover {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transform: translateY(-50%) scale(1.1);
}

.staff__arrow--left {
  left: -20px;
}

.staff__arrow--right {
  right: -20px;
}

@media (max-width: 1000px) {
  .staff__item {
    flex: 0 0 calc(50% - 10px);
    min-width: calc(50% - 10px);
  }

  .staff__arrow--left {
    left: 0;
  }

  .staff__arrow--right {
    right: 0;
  }
}

@media (max-width: 768px) {
  .staff__item {
    flex: 0 0 calc(100% - 20px);
    min-width: calc(100% - 20px);
  }

  .staff__arrow {
    display: none;
  }
}

@media (min-width: 1001px) {
  .staff__arrows {
    display: block;
  }
}