.draws-dates-wrapper {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.draws-dates {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.draws-dates::-webkit-scrollbar {
  display: none;
}

.draw-date {
  flex: 1;
  padding: 8px 10px;
  background: #fff;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 80px;
  user-select: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  font-size: 14px;
}
.draw-date:hover:not(.future) {
  transform: translateY(-2px);
}
.draw-date.active {
  background: var(--orange);
  color: var(--green);
  box-shadow: 0 2px 12px rgba(0, 115, 170, 0.3);
}
.draw-date.future {
  opacity: 0.5;
  cursor: default;
  background: #fff;
}
.draws-dates {
  cursor: grab;
}

.draws-dates:active {
  cursor: grabbing;
}

.draw-item {
  display: none;
  animation: fadeIn 0.3s ease;
}
.draw-item.active {
  display: block;
}
.winners-grid {
  columns: 3;
  column-gap: 12px;
  margin-top: 20px;
}
.winner {
  color: #206d69;
  font-size: 14px;
  font-weight: bold;
  break-inside: avoid;
  padding: 8px 0;
}

.gallery-section {
  margin: 20px 0;
}

.gallery-wrapper {
  position: relative;
}

.gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.gallery-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 5px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  -ms-overflow-style: none;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.gallery-row::-webkit-scrollbar {
  display: none;
}

.gallery-row:active {
  cursor: grabbing;
}
.gallery-row.dragged .gallery-item {
  pointer-events: none;
}

/* Блокируем ссылки во время перетаскивания */
.gallery-row.dragging .gallery-item {
  pointer-events: none;
}

.gallery-item {
  flex: 0 0 auto;
  display: block;
  width: 240px;
  height: 240px;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  position: relative;
}

.gallery-item:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ===== АНИМАЦИЯ ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 992px) {
  .winners-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .winners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .date-day {
    font-size: 18px;
  }

  .date-month {
    font-size: 11px;
  }
  .gallery-item {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 480px) {
  .winners-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .date-day {
    font-size: 16px;
  }

  .date-month {
    font-size: 10px;
  }
  .gallery-item {
    width: 120px;
    height: 120px;
  }
}
