/* Золотой и серебряный статусы для годов */
.year-text {
  font-family: 'Alumni Sans', sans-serif;
  letter-spacing: 0.5px;
}
.text-gold {
  color: #d4af37 !important;
  font-weight: 800 !important;
  font-size: 1.4rem !important;
  text-shadow: 0 0 5px rgba(212, 175, 55, 0.2);
  transition: all 0.2s ease;
  display: inline-block;
}
.text-silver {
  color: #8a9597 !important;
  font-weight: 700 !important;
  font-size: 1.3rem !important;
  transition: all 0.2s ease;
  display: inline-block;
}
.text-normal-year {
  color: #6c757d;
  font-weight: 500;
  font-size: 1.2rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.year-item {
  text-align: center;
  padding: 10px 0;
  cursor: pointer;
  position: relative;
}

@keyframes shimmer-text {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Эффекты при наведении */
.year-item:hover .year-text {
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: shimmer-text 10s linear infinite !important;
}

.year-item:hover .text-normal-year {
  background-image: linear-gradient(90deg, var(--color-purple) 0%, #f195ff 50%, var(--color-purple) 100%);
}
.year-item:hover .text-gold {
  background-image: linear-gradient(90deg, #d4af37 0%, #fff9e6 50%, #d4af37 100%);
}
.year-item:hover .text-silver {
  background-image: linear-gradient(90deg, #8a9597 0%, #f5f5f5 50%, #8a9597 100%);
}

/* Линия таймлайна и ползунок */
.years-nav-container {
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none;  /* IE and Edge */
  padding-bottom: 5px;
  position: relative;
}

.years-nav-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.years-nav-list {
  min-width: max-content;
  display: flex;
  justify-content: space-between;
}

.years-timeline-line {
  position: relative;
  width: 100%;
  height: 1px; /* ~1мм */
  background-color: #dee2e6;
  margin-top: 15px;
  margin-bottom: 25px;
}

.year-item {
  text-align: center;
  padding: 10px 15px;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  min-width: 80px;
}

.years-slider-knob {
  position: absolute;
  height: 2px;
  background: var(--main-gradient);
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 5;
}

/* Контейнеры с фиксированной минимальной высотой для предотвращения прыжков контента */
.region-sliders-container {
  min-height: 450px;
}
.projects-content-container {
  min-height: 300px;
}

/* Заглушка, если нет фото */
.region-slider-placeholder {
  background-color: #fafbfc;
  min-height: 350px;
  border-radius: 10px !important;
}

@media (max-width: 991px) {
  .region-sliders-container {
    min-height: auto;
  }
  .region-slider-placeholder {
    min-height: 250px;
  }
  .projects-content-container {
    min-height: auto;
  }
  .js-region-badge img {
    height: 70px !important;
    margin-bottom: 1rem;
  }
  .js-region-badge {
    margin-left: 0 !important;
    width: 100%;
  }
  .display-4 {
    font-size: 2.2rem !important;
  }
  .region-statuses-text {
    font-size: 1.2rem !important;
    gap: 10px !important;
  }
  .region-slider-wrapper img {
    height: 300px !important;
  }
}


/* Слайдеры */
.region-slider-wrapper {
  transition: opacity 0.3s ease;
}
.region-slider-wrapper img {
  height: 500px;
  width: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.carousel {
  border-radius: 10px;
  overflow: hidden;
}

/* Специфический контур */
.card-pulse-gradient {
  position: relative;
  background-color: #ffffff !important;
  border: 1px solid #e9ecef !important;
  border-radius: 10px !important;
}
.x-small {
  font-size: 0.7rem !important;
}

  .region-nav-link {
    text-decoration: none !important;
    transition: all 0.3s ease;
  }
  .gradient-text-animate {
    color: #212529;
    transition: all 0.3s ease;
    font-weight: 800;
    font-family: 'Alumni Sans', sans-serif;
    font-size: 1.8rem;
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
  }
  .region-nav-link:hover .gradient-text-animate {
    background: var(--main-gradient);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradient-flow 3s linear infinite;
    transform: scale(1.02);
  }
  @keyframes gradient-flow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
  }
  .region-nav-label {
    font-size: 0.8rem;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 2px;
    font-weight: 600;
  }
  .nav-icon {
    -webkit-text-fill-color: initial;
    color: var(--color-purple);
    font-size: 1.4rem;
    transition: transform 0.3s ease;
  }
  .region-nav-link:hover .bi-chevron-left {
    transform: translateX(-5px);
  }
  .region-nav-link:hover .bi-chevron-right {
    transform: translateX(5px);
  }