.calendar-archive-block {
  max-width: 350px;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  font-family: 'Inter', sans-serif;
}

.calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-header button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #333;
}

.current-month {
  font-weight: 600;
  font-size: 16px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 600;
  color: #666;
  margin-bottom: 10px;
}

.calendar-dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  gap: 5px;
}

.calendar-dates .day {
  padding: 5px 0;
  transition: all 0.2s;
  font-size: 12px;
  text-align: center;
}

.calendar-dates .day.active {
  cursor: pointer;
  color: #D6101F;
  border: 1px solid #D6101F;
}

.calendar-dates .day.inactive {
  color: #ccc;
  cursor: default;
  background: transparent;
}

.calendar-dates .day.today {
  background: #17B5CC;
  color: #fff;
}

.calendar-dates .day.empty {
  background: transparent;
  cursor: default;
}

@media (max-width: 500px) {
  .calendar-archive-block {
    max-width: 100%;
    padding: 15px;
  }
  .calendar-header button {
    font-size: 18px;
  }
  .current-month {
    font-size: 14px;
  }
  .calendar-days {
    font-size: 12px;
  }
  .calendar-dates .day {
    padding: 8px 0;
    font-size: 12px;
  }
}

/* Модалка */
.event-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.event-modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 12px;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.close-modal {
  float: right;
  font-size: 24px;
  cursor: pointer;
}

.event-item {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.event-item h3 {
  margin: 0 0 5px;
  font-size: 18px;
}

.event-date {
  font-size: 14px;
  color: #666;
}
