/* === 1 СТРОКА: СПИСОК ГОДОВ === */
.year-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

@media (max-width: 991.98px) {
  .year-list {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    justify-content: flex-start !important;
    padding: 15px 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 50%;
  }
  .year-list::-webkit-scrollbar {
    display: none;
  }
  .year-list .btn-year {
    flex: 0 0 auto;
    font-size: 1.4rem;
    scroll-snap-align: center;
  }
  .year-list .btn-year.active {
    font-size: 2.2rem;
  }
}

.year-list .btn-year {
  font-family: 'Alumni Sans', sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  color: #888;
  background: none;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  padding: 0 10px;
  line-height: 1;
}
.year-list .btn-year:hover {
  color: #333;
  transform: translateY(-2px);
}
.year-list .btn-year.active {
  font-weight: 800;
  font-size: 2.8rem;
  color: #111;
  background-image: url("../gold.webp");
  background-size: 200px auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gold-shimmer-text 10s infinite linear;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

@keyframes gold-shimmer-text {
  0% { background-position: 0% 0%; }
  100% { background-position: 200px 0%; }
}

/* === 2-4 СТРОКА: ПОБЕДИТЕЛЬ === */
.winner-icon-wrapper img {
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}
.winner-icon-wrapper img:hover {
  transform: scale(1.05) rotate(3deg);
}
.winner-project-name {
  font-size: 1.8rem;
  color: #555555;
  letter-spacing: -0.2px;
  font-weight: 500;
}
.winner-region-title {
  font-family: 'Alumni Sans', sans-serif !important;
  font-size: 4.5rem;
  letter-spacing: 1px;
  color: #111111;
  font-weight: 800 !important;
  line-height: 1.1;
}

/* === 5 СТРОКА: СЛАЙДЕР ПОБЕДИТЕЛЯ === */
.winner-slider-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}
.winner-slider-container .carousel-item img {
  height: 480px;
  object-fit: cover;
  border-radius: 10px;
}

/* === 6 СТРОКА: ОПИСАНИЕ ПРОЕКТА === */
.winner-description-wrapper {
  line-height: 1.8;
  font-size: 1.1rem;
  color: #4a4a4a;
  position: relative;
}
.winner-description-wrapper p {
  margin-bottom: 1.5rem;
}
.winner-project-description-content {
  transition: max-height 0.5s ease;
  overflow: hidden;
}
.winner-description-collapsed {
  max-height: 250px; /* Высота для ~3 абзацев */
  position: relative;
}
.winner-description-expanded {
  max-height: none;
}
.winner-description-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2;
}

/* === 7 СТРОКА: ЛАУРЕАТЫ КОНКУРСА === */
.section-title {
  font-family: 'Alumni Sans', sans-serif !important;
  font-size: 3rem;
  font-weight: 800;
  color: #111;
  position: relative;
  padding-bottom: 12px;
  text-transform: uppercase;
}

.silver-card-wrapper {
  background: url("../silver.webp") repeat;
  padding: 2px;
  border-radius: 10px;
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: silver-shimmer-bg 15s infinite linear;
  background-size: 200px auto;
}
@keyframes silver-shimmer-bg {
  0% { background-position: 0% 0%; }
  100% { background-position: 200px 0%; }
}
.silver-card-wrapper:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  animation-duration: 8s;
}
.laureate-card {
  border-radius: 9px;
  background-color: #ffffff;
  padding: 30px 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.laureate-coat-of-arms {
  height: 100px;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.silver-card-wrapper:hover .laureate-coat-of-arms {
  transform: scale(1.08);
}
.laureate-btn {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-family: 'Alumni Sans', sans-serif !important;
  border: 1.5px solid transparent !important;
  background-image: linear-gradient(#fff, #fff), url("../silver.webp") !important;
  background-origin: border-box !important;
  background-clip: padding-box, border-box !important;
  border-radius: 10px !important;
  padding: 10px 24px;
  font-weight: 700;
  font-size: 1.2rem;
  color: #333 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.laureate-btn::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background: url("../silver.webp") repeat;
  z-index: -1;
  transition: height 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.laureate-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  color: #000 !important;
}
.laureate-btn:hover:not(:disabled)::before {
  height: 100%;
}
.laureate-btn:disabled {
  opacity: 0.6;
  background-image: linear-gradient(#f8f9fa, #f8f9fa), none !important;
  border-color: #dee2e6 !important;
  cursor: not-allowed;
}

/* === МОДАЛЬНОЕ ОКНО === */
.silver-badge {
  background-image: url("../silver.webp") !important;
  background-repeat: repeat !important;
  background-color: transparent !important;
  color: #111 !important;
  font-family: 'Alumni Sans', sans-serif !important;
  font-size: 1.1rem !important;
  font-weight: 800 !important;
  letter-spacing: 1px;
  padding: 8px 20px !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-transform: uppercase;
  animation: silver-shimmer-badge 12s infinite linear;
  background-size: 200px auto !important;
}

@keyframes silver-shimmer-badge {
  from { background-position: 0 0; }
  to { background-position: 200px 0; }
}

/* === 8 СТРОКА: КОРОТКИЙ СПИСОК === */
.short-list-container {
  position: relative;
  border-right: 1px solid #eaeaea;
  padding-right: 10px;
}
.short-list-item {
  font-family: 'Alumni Sans', sans-serif !important;
  font-size: 1.4rem;
  color: #333 !important;
  background: none !important;
  border: none !important;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  text-align: left;
  width: 100%;
  transition: color 0.15s ease;
  display: block;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.short-list-item:hover {
  color: var(--color-purple, #9932CC) !important;
}
.short-list-item.active {
  color: var(--color-purple, #9932CC) !important;
  font-weight: 700;
}

/* Выпадающий список для мобильных */
.shortlist-mobile-select {
  font-family: 'Alumni Sans', sans-serif !important;
  font-size: 1.4rem !important;
  font-weight: 600;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 15px;
  color: #333;
  background-color: #fff;
  width: 100%;
  margin-bottom: 20px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.shortlist-mobile-select:focus {
  border-color: var(--color-purple, #9932CC);
  outline: none;
  box-shadow: 0 0 0 3px rgba(153, 50, 204, 0.1);
}

/* Анимированная градиентная рамка при наведении */
.shortlist-hover-bg {
  position: absolute;
  left: 0;
  width: 100%;
  height: 0;
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
  pointer-events: none;
  border-radius: 8px;
  z-index: 0;
  overflow: hidden;
  padding: 1px; /* Толщина рамки */
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.shortlist-hover-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1000px; /* Фиксированный большой размер для покрытия любого региона */
  height: 1000px;
  background: conic-gradient(from 0deg, var(--color-turquoise), var(--color-purple), var(--color-turquoise));
  animation: rotate-shortlist-gradient 3s linear infinite;
  transform: translate(-50%, -50%);
  transform-origin: center;
}

@keyframes rotate-shortlist-gradient {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.shortlist-project-content {
  padding: 0 0 0 40px;
}
@media (max-width: 991.98px) {
  .shortlist-project-content {
    padding: 10px 0 0 0;
  }
}
.shortlist-project-title {
  font-family: 'Alumni Sans', sans-serif !important;
  font-size: 2.4rem;
  font-weight: 800;
  color: #000 !important;
  margin-bottom: 15px;
  line-height: 1.1;
}

/* Адаптивность для мобильных */
@media (max-width: 991.98px) {
  .short-list-container {
    border-right: none;
    border-bottom: 1px solid #eaeaea;
    padding-right: 0;
    padding-bottom: 15px;
    margin-bottom: 20px;
  }
  .winner-slider-container .carousel-item img {
    height: 320px;
  }
  .winner-project-name {
    font-size: 1.4rem;
  }
  .winner-region-title {
    font-size: 3rem;
  }
}
