.calendar_row {
  width: 100%;
  max-width: 1480px;
  min-width: 320px;
  margin: 60px auto 0;
  user-select: none;
}

.calendar-wrapper {
  position: relative;
  width: 100%;
  max-width: 1480px;
  min-width: 320px;
  padding: 0 20px;
}

.month-header {
  position: absolute;
  top: -40px;
  left: 0;
  font-size: 18px;
  font-weight: 500;
  color: #333;
  padding: 5px 10px;
  background: white;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 20;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
}

.month-header.active {
  opacity: 1;
}

.calendar-container {
  width: 100%;
  overflow-x: auto;
  padding: 10px 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.calendar-container::-webkit-scrollbar {
  display: none;
}

.calendar {
  display: flex;
  gap: 8px;
  padding: 0 15px 0 5px;
}

.calendar-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 64px;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  -webkit-backdrop-filter: blur(1.8px);
  backdrop-filter: blur(1.8px);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .calendar-item {
      width: 56px;
      height: 80px;
  }
  
  .day-number {
      font-size: 20px !important;
  }
  
  .day-name, .month-name {
      font-size: 12px !important;
  }
  
  .month-header {
      font-size: 16px;
      top: -35px;
  }
}

@media (max-width: 480px) {
  .calendar-item {
      width: 50px;
      height: 72px;
  }
  
  .day-number {
      font-size: 18px !important;
  }
  
  .nav-button {
      width: 32px !important;
      height: 32px !important;
  }
  
  .nav-button.prev {
      left: -16px !important;
  }
  
  .nav-button.next {
      right: -16px !important;
  }
}

@media (max-width: 320px) {
  .calendar-item {
      width: 46px;
      height: 68px;
  }
  
  .day-number {
      font-size: 16px !important;
  }
  
  .day-name, .month-name {
      font-size: 11px !important;
  }
}

.month-indicator {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 6px;
  height: 6px;
  background-color: #ffdb4d;
  border-radius: 50%;
  display: none;
}

.month-start .month-indicator {
  display: block;
}

.calendar-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  background: #fff;
}

.calendar-item.active {
  background: #ffdb4d;
}

.day-name {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
  text-transform: lowercase;
}

/* Красный цвет для субботы и воскресенья */
.saturday .day-name,
.sunday .day-name {
  color: #f33;
}

.day-number {
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 4px;
}

.month-name {
  font-size: 14px;
  color: #999;
  text-transform: lowercase;
}

.today .day-name,
.today .month-name {
  color: #333;
  font-weight: 500;
}

.today .day-number {
  color: #f33;
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.calendar-wrapper:hover .nav-button {
  pointer-events: auto;
}

.nav-button:hover {
  background: #ffdb4d;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.nav-button.prev {
  left: 0;
}

.nav-button.next {
  right: 0;
}

.nav-button svg {
  width: 20px;
  height: 20px;
  fill: #333;
}

.nav-button.disabled {
  opacity: 0.3;
  pointer-events: none;
}

.selected-date-info {
  margin-top: 20px;
  padding: 15px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.selected-date-info h3 {
  margin-bottom: 10px;
  color: #333;
}

.selected-date-info p {
  margin: 5px 0;
  color: #666;
}