:root {
  --color-primary: #E70F1F;
  --color-secondary: #808080;
  --color-accent: #DE8A0D;
  --color-dark: #000000;
  --color-highlight: #ED60EF;
  --color-bg: #f5f5f5;
  --color-card: #ffffff;
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  max-width: 1400px;
  position: relative;
}

.carousel-container {
  flex: 1;
  overflow: hidden;
  padding: 40px 0;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: grab;
  user-select: none;
}

.carousel-track:active {
  cursor: grabbing;
}

.carousel-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px;
  background: var(--color-card);
  border-radius: 16px;
  border: 2px solid transparent;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.4s var(--transition-smooth);
  position: relative;
  overflow: hidden;
  width: 220px;
  height: 320px;
}

.carousel-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.carousel-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.carousel-card:hover::before {
  opacity: 1;
}

.carousel-card.center {
  border-color: var(--color-primary);
  transform: scale(1.1);
  transform-origin: center center;
  box-shadow: 0 16px 50px rgba(231, 15, 31, 0.2);
}

.carousel-card.center::before {
  opacity: 1;
}

.carousel-card.side {
  opacity: 0.6;
  transform: scale(0.85);
  transform-origin: center center;
  filter: grayscale(0.3);
}

.carousel-card.far {
  opacity: 0.3;
  transform: scale(0.7);
  transform-origin: center center;
  filter: grayscale(0.6);
}

.card-photo-wrapper {
  position: relative;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.card-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  transition: border-color 0.3s ease;
}

.center .card-photo {
  width: 140px;
  height: 140px;
  border-color: var(--color-primary);
  border-width: 4px;
}

.card-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--color-dark);
  margin-bottom: 6px;
  text-align: center;
  transition: color 0.3s ease;
}

.center .card-name {
  font-size: 20px;
  color: var(--color-primary);
}

.card-position {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-secondary);
  text-align: center;
  line-height: 1.4;
}

.card-decorator {
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: 2px;
  margin-top: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.center .card-decorator {
  opacity: 1;
}

.carousel-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  background: var(--color-card);
  color: var(--color-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  transform: scale(1.1);
}

.carousel-arrow:active {
  transform: scale(0.95);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 30px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-secondary);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.dot:hover {
  opacity: 0.6;
}

.dot.active {
  background: var(--color-primary);
  opacity: 1;
  transform: scale(1.2);
}

@media (max-width: 1024px) {
  .carousel-card.center {
    transform: scale(1.05);
  }

  .carousel-card.side {
    opacity: 0.5;
    transform: scale(0.8);
  }

  .carousel-card.far {
    opacity: 0.2;
    transform: scale(0.6);
  }
}

@media (max-width: 768px) {
  .carousel-wrapper {
    gap: 6px;
  }

  .carousel-wrapper::before,
  .carousel-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50px;
    z-index: 2;
    pointer-events: none;
  }

  .carousel-wrapper::before {
    left: 0;
    background: linear-gradient(to right, rgba(245, 245, 245, 0.9), transparent);
  }

  .carousel-wrapper::after {
    right: 0;
    background: linear-gradient(to left, rgba(245, 245, 245, 0.9), transparent);
  }

  .carousel-arrow {
    width: 28px;
    height: 28px;
    border-width: 1px;
    background: transparent;
    z-index: 3;
  }

  .carousel-arrow svg {
    width: 14px;
    height: 14px;
  }
}